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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var Oe,WXO,jq2,b1,hX,T8O,P2,Rq,v2,oq,LX8,dP1,kT,Sei,ZEi,xT,mPT,X28,UP2,ZS,P11,p2h,KX2,oTh,Qq8,PN,g1,sv,BN,rXq,r1,DPi,DS,CH,$$,z8T,Mz,J9,qeP,HEh,tQX,O5,VQ2,bk,N82,dg,$P8,hg,MQe,cXq,OHe,rg,iHX,bHX,j7h,T12,LnP,B9,FXT,Q2,yX8,Wne,mzX,E$8,wNT,nU,A9X,XNX,Uz1,lSX,PfT,pNE,v$O,Jg,Q7T,s78,r9X,Cfi,qvq,FD,b_,n$8,$zT,L0,V5O,J9X,M5P,hA,uUP,dA,eLO,Yh,Et,AA,SW,X5,y9E,c98,Fn2,PM,W88,OUO,iUE,jNh,bUQ,kh,TgX,L8T,l_,hRh,S5T,DG,IPT,E7q,C0,lPq,aPX,eR2,Pkq,p91,QNq,v7Q,HM,$h,sN2,rgQ,DZq,q5i,$Z8,cgO,O0X,dAO,dC,St8,IGe,IQ,mj,
Y4,wC,Av,vD,oQ,Q0,XMX,qI,lGe,pM1,MI,u7,K7P,cD,Fy,y0,WG,gh2,ohX,QR8,k9X,sRQ,BAQ,rAX,DAi,xAX,C_i,T8,jP,qtX,nhQ,fGX,H0X,G9e,tWe,mI,VW1,Ya,EK,wb,Ax,UK,MWe,eP,JAe,OzX,pI,izX,bzE,jQX,KI,TC8,LjQ,vG,gb,SBT,QN,adi,mIX,ka,E4X,YBP,wDP,Avh,XDP,UI2,rb,ldX,eDX,Dh,P7e,pDh,xa,z8,CI,qE,RDh,v41,KjP,nI,o4X,QQX,kbE,G8,tx,$a,VN,ME,uN,Jx,sQ8,BCi,rvO,DIi,xI2,zD2,C78,qBX,n4E,fdX,GbX,Fp,HzX,tL1,OM,$I8,bi,jp,VL8,uyP,Jv2,cvO,yvX,WI8,OIh,TbP,LIq,dET,hv8,SKq,ZI2,IhX,EaE,d4,wGi,AxQ,XGQ,UEe,lh8,evE,pGi,xEe,zvT,CN1,nah,fh2,AU,G8O,
XH,NbX,MPe,upT,JxX,cx8,FIi,yxO,Wq1,pw,iwX,$EE,bwq,jG2,T4T,Lqq,dGE,h5h,SMX,ZwX,IIX,YM1,mG2,AUT,E3E,wQ8,lIX,e5q,Pii,XQ1,R5h,UGq,v3X,qG,g3Q,nw,GK,o3X,kK1,sGX,DGX,$Gi,z5T,xGh,qM8,fIE,CiX,uH8,N4O,JU8,cUX,Fq8,yUX,WlE,i5O,O5E,b5E,j8T,TDi,LlT,hpX,Z5q,INX,aN2,YVX,m91,v6X,ui,g6Q,Q81,kP8,s88,BDh,rVe,x9h,zpX,CJX,iJ,bJ,qV2,trq,dD,hV,MrP,uuX,Tui,svT,Y6,rtQ,Cth,xrE,z0P,lJ,qoT,nb1,GxE,HSq,tzE,$r8,VzX,Nuq,MzX,p5,Jth,FCP,ct2,W32,B5,x6,ivi,bvh,jWX,T0Q,L31,dCq,SCQ,IkT,ZvO,uJ,c5,ehP,Fu,bt,K3Q,jz,vXh,gXQ,Tx,QW8,oXO,qC8,
nXq,GTX,$CX,Vsq,Msq,ukO,J_T,F3X,Wp1,Ou8,Zq,TOe,hqO,ST8,ZuE,Ipq,ap1,dmO,je1,buh,av,iuX,mmQ,Evq,Um1,ALq,Eo,eqi,p38,RqT,KpX,vvX,Uo,gve,QeP,ovE,kZh,BO8,pS,fpX,HuX,$mi,NOT,MJP,JLe,gu,QH,ov,WYO,uqE,O9h,Bj,Tv1,xb,zx,hAP,IfQ,m8E,YFQ,EOO,CS,wO2,AS1,XOX,lfT,eA2,PPi,pOP,KY1,fS,vOT,gOq,Hj,Mr,k78,saX,BvE,Jt,x8h,zAT,qFP,iW,$81,Vq8,Nvi,Mq8,usX,Lv,d0,h_,Ss,FYq,IW,ySO,WJX,OB8,iBX,j1X,TeX,bB1,m3,LJ8,ZBh,EC,Sm8,ItP,dJQ,atE,A_,Ymq,EGq,wZq,A8Q,UJP,XZ1,ltX,pZe,eWe,KJ1,s18,r8E,xJX,Cy2,ft2,nGX,qmh,G5O,tNh,VN2,$JX,NeT,u0E,
J8h,c8X,OPT,QP,j22,bPX,T3O,LA2,sC,BU,dyP,S0e,IFe,Y0Q,wB1,EFX,yP,Aqi,ZPh,R_8,KAP,vF8,TZ,gFi,Q2X,B31,xyq,DyX,nFX,fFP,GsQ,HPX,$yX,Jq2,V3h,M31,u22,cq1,FAe,W1X,yqi,iqE,Oq1,AL,bqQ,TlX,L1X,ZqX,Ku,v3,Iuq,auQ,gO,wbX,sT,B3,rO,lui,Dp,pb8,Cu,RHX,K1Q,vJq,gJi,fu,oJQ,kDP,ssq,rCX,xpe,qk8,fuT,JL,GDX,HqO,tHO,$p1,VH1,NlO,MH2,u9Q,yY,F1e,yCO,WM2,OV1,iVT,bVP,j5P,Ta1,LMe,dkE,h$X,SOT,ZVX,dv,PXe,pgq,hS,Sq,Ia,R$q,KMe,v0i,g0O,o0X,Q58,kUX,xkE,z$X,CXO,qOP,n01,wv,Xs,UF,lP,p9,Ra,K9,GUi,gv,txh,oa,$kX,VxX,Qy,NaX,MxX,utT,jJ2,L_P,
I5T,E9X,Yr8,Tm8,wSQ,UX2,rHX,K_T,qre,g9X,Cv1,n9e,xO,Gcq,C9,tK8,$Xi,NmE,MKh,uW8,cHh,f9,yH8,WmX,O_8,i_X,b_q,juX,TET,F_Q,h3h,SP8,Z_q,HO,whQ,AoE,E1h,Udq,lrT,P8e,phE,e38,kFe,BEX,DdX,z3E,Om,H_Q,GFq,M4X,Joi,co2,FmX,yoE,W5i,O2E,Zt,Z2e,aQX,hXe,de1,IQi,b2X,Yle,K5Q,A1i,X_X,Ueh,xe8,CmP,DeX,tli,r18,i2O,H28,w_8,RX8,zXO,meQ,TiT,jiQ,L5X,Sl8,Bi8,kG,TGO,dqE,hbh,Sz8,ZbO,UqX,Kwe,vy8,fB,oyO,sx8,xqX,Dqq,CjT,qzO,GHE,f6O,HbX,cZ,tD8,$qQ,NGe,VD8,F0,y4T,FwQ,c4Q,bdh,WR1,jMO,idE,Tdh,WB,LRT,Zd8,hcX,S18,a3e,mfX,ESh,j3,XsP,wsX,Uf2,
ps8,RcX,gSe,QMQ,hq,S3,rPO,DfX,ZF,I2,xfX,a2,mA,zc8,YF,CnP,E0,q1Q,nS8,Aq,f3e,GBX,Hd1,tE1,$fX,NdX,VET,uLT,FRP,cPX,yPh,WoO,MEe,OpP,j42,bp8,JP8,TtX,LoX,PB,dLX,SxP,hlX,ZpE,IOe,Yx8,aOi,EzX,R2,AI8,XmE,wm8,lO8,elh,Pw1,vz1,Q48,DLX,qxO,KP,GJP,HpX,vB,tki,kF,s0,JIX,o2,DF,cIh,Fo1,W92,OFq,bFh,T6i,L91,dsh,hK8,IvO,wtX,Y8T,ZFE,AT2,XtQ,qy,EN1,UsX,Gs,lve,eK8,P3i,ptT,gN8,RKe,vNE,sy8,B6O,C38,zKX,fvX,N6e,M7E,JT1,F9Q,yTT,OD1,iDX,bDq,TYX,LNq,dcE,ZD8,YQh,EqO,ILP,AsQ,UcX,XRX,wR8,lLO,PUX,pRE,R9E,KNE,vqE,Wb,Ok,jH,Lq,QdX,kNh,
BYP,xcX,dl,hC,z9O,SH,nq8,fL8,GNO,Is,NYT,cs8,ys1,WDq,OfE,ifq,bf1,LD2,m1,d$X,Zfe,YJ,IbE,Y3q,Es2,wkE,m$X,PMh,KDi,pkO,vsh,Q6X,s6T,r$1,CM1,z6e,GRq,le,Hf1,tb2,eH,$$T,Pb,VbO,NQX,MbQ,J$Q,uSE,c$E,FDX,y$h,WBh,daE,SiO,IAO,Z41,jBX,i4Q,maQ,ElX,lAE,euT,RuE,kpP,B7X,vb,rN1,xaX,zu1,qi1,H4E,$a8,N7X,Mmq,u18,JN1,OOE,cNX,T9e,LH8,hfq,Q3,ZOi,IBP,aBX,mnO,YRe,EHO,wx2,XxE,UnO,rl,lB8,efX,Rfq,xJ,pxP,vHX,kyQ,Cq,sKX,B9X,rY8,zfX,CE8,Dn8,nH1,to2,$nX,VoX,tC,N9q,cYP,FHe,Mp,OWE,yYi,WO8,bW2,TNq,LOQ,ZWX,mVX,a8T,I8h,Y$q,wyO,AEP,pyE,XyQ,
RQQ,gB8,KO2,rEX,zQX,q$T,f8q,JEX,FOE,yET,bcX,Tq2,Qw,qk,IRi,EgX,YY8,AR8,XTT,lRq,U2P,eje,PZO,nV,a58,aRX,wT1,m2P,zU,J3,KcO,vge,kM8,s$T,Bq8,rRX,D22,x2e,zji,yw,CZO,WS,qYX,ngO,fRT,GME,bv,HcE,VO8,MOP,u8X,igE,j38,TpX,LFP,h4h,S9X,aJ,IcX,acq,mvh,Y9X,E8X,wq1,XqT,lc8,PKT,pqE,LQT,g8Q,du1,ZrX,Iw1,Ur,awX,muq,Y_8,AuX,UuO,XLX,eFQ,pLh,pe,KQT,v2q,RF8,g2h,o2h,kie,Bci,szX,ruP,Qzi,DuO,xuP,zFX,Csq,q_T,n2e,fwh,Gi8,Hrh,VdE,$uO,Nc8,urh,Mdh,RJ,Ju1,yuX,jPq,cu1,T5h,LU8,dNO,hUP,wX8,XXO,UNO,eUQ,PrX,zc,vVT,k38,B5X,Ce,zUO,xNE,CrX,
fe,q2q,nV8,fm1,HN2,tXQ,$Nh,VXT,MXX,uZX,Tke,OKE,bK2,dge,Lri,htX,SLh,ICO,mgO,EPq,Aph,gP1,kn8,Bke,rpE,Dgq,xg2,zt1,qLe,nPQ,HKX,tn8,$gq,VnP,NkX,MnO,uBX,JpQ,ypX,bmO,Wh,OP,i8,b8,jLh,L_,Lge,E_Q,eIE,Uhh,CHO,qZE,n_h,hI1,YZi,IzX,GzO,HmX,tui,AeE,VuX,Muq,Jei,yeX,WxO,XE,e4,Ph,dl2,LxP,IxT,axh,eiE,pPh,KxQ,vdX,QVO,sV2,kLq,DlQ,ziq,tfP,GLE,q61,H6E,nd8,$lh,u$8,qd,jlE,Oh8,Lf1,d5e,ShQ,ZhE,f_,IXi,YhP,EoP,wwX,XwQ,A51,to,Jo,Kf8,voh,W_,goO,oo1,Qle,klX,slT,BnT,r51,D5Q,x58,zVP,CoX,qhX,no8,fXT,GlE,Ol,Hhe,tTe,$58,VTq,NnX,MT1,
u4X,J5X,c52,Ffq,y5E,WKe,bm,i1X,jCO,LKQ,SAi,as2,mTq,YAi,w$X,X$T,UTe,lsE,ZQ,KKE,p$Q,vYh,gY2,oY8,sCO,BTE,rze,xT8,P_,Cdh,lm,nYq,fse,p2,GOX,H1q,tUO,$TX,K2,uo2,cz1,iAe,OAh,jbT,ToX,B_,LhE,doX,SSO,IHX,aHQ,YSX,EuE,ZAO,wdi,eYP,KhT,vu8,ri,guq,ouT,rD2,Qbe,sb8,BoE,nui,xoX,fHX,HAE,$oE,Vee,Noq,MeQ,uih,JDQ,FhP,yDE,WGX,OQq,iQT,jrT,LGi,SgT,mii,wV2,XVi,ePP,f2,PFO,pV8,RPX,KGE,vEO,oEX,QrO,kj8,srT,BZO,rjh,Di1,xi8,zPQ,CF2,qge,fyQ,nEe,tCO,VCT,t1,NZX,JjT,uM2,Vv,yjh,Wu2,jHX,d68,TWT,bZe,ZZ8,Sph,ERX,I7T,c_,m6e,PVe,X7X,U6q,l78,
eNE,p7T,Kuh,RNX,FT,yv,BWh,gRX,sHO,kEX,oRE,QHO,x6e,CV2,nRE,qpq,tST,HZO,NWO,MS8,JdX,cd1,unQ,Fu8,WZ8,ydX,i7q,TPQ,dG,LZX,dQ2,Z7Q,EAq,eTO,SD,pW8,gAP,s_T,kYh,oAE,Q_i,Yy,xQe,BPX,r0T,zTh,qq2,CGX,GYi,H7h,$Q1,VZX,NPT,MZi,uj1,c0X,FZi,gG,WzX,QE,OYh,TMq,LzP,rG,d1T,Snh,Xle,qq,m1Q,Anh,Yn8,EUX,Ppi,plP,ewE,RwP,Kzq,Qm8,vUi,k2e,sm1,fb,rne,D1E,x1Q,BM2,Cp8,zw8,GH,G2i,uaQ,JnX,cnT,Fz8,yn8,WV8,jF8,i8Q,b8X,O88,LVO,SWO,aKQ,m3e,Eth,Nq,weQ,Ay2,Xeh,lK8,eSh,P$q,peQ,RSq,KVh,gth,FF,otE,sF8,kIE,ryq,BVQ,D3i,x3X,zST,yE,qWQ,JyP,M9X,
yy1,WsX,LsO,dDX,hGe,SUq,Z$X,I_e,YUh,Ei2,wY2,AGO,l_2,eG1,P9Q,pY2,RGQ,KsX,vi8,giE,oi1,QAQ,sAi,ByX,rGT,zG2,qU1,H$O,GCT,f_1,niE,VyQ,Nyi,U1,My1,uCX,JG1,cG8,OG1,FsO,iGh,yGq,bGq,pd,jj1,THi,LTX,WTO,dbX,IDO,aDQ,mb8,vs,Yci,EZh,wvO,AM1,Xv8,UbX,eBE,PST,pvP,RBX,gZ8,vZ8,BHO,KTP,oM,rMi,oZO,sjX,zBE,qcQ,t_O,GVP,HGE,fDe,nZO,xS,$b2,NHq,M_e,uhO,JMT,cMi,iM1,yMX,FTE,W6E,mR8,IZX,OMh,ZMh,lZX,e7X,PRX,puh,R7Q,K6O,vDi,QO1,sO8,r7O,xRX,z7Q,CRX,GeT,fZX,HME,$RX,bw,Mhq,uIO,J7P,c78,Lp,dt,WEP,bCP,Ss2,mMX,Ys8,Ep8,waX,AK8,XaX,lWE,P6X,
eze,pa8,KEO,vph,gpe,opQ,Qfi,kr2,a4,sfT,qsQ,npT,xMQ,DM8,C6Q,zzX,Mti,$MX,Ex,uAE,JKh,cK8,FE2,yKq,Wb8,OLE,iL1,bLX,TsE,d_8,S7h,IoX,m_X,Al2,X8T,U_1,Pg1,enX,loh,p8e,RnX,gWE,Q0X,kQe,s08,Ux,rlT,D_e,x_q,CgE,znE,q7X,foX,GQX,HLe,$_8,VAX,tAq,FbX,Oy2,iyP,by2,jgO,Lv8,T28,dSE,ZyX,Ilh,al1,mSP,EC1,YGT,AwQ,P0E,e1q,R12,Kv1,vCX,sge,B2h,rwq,DSP,C01,qGQ,GfQ,tF1,HyQ,$Sq,Cp,VFX,N2X,Fv1,cw2,ywX,W$h,ilX,bl2,L$T,hse,SI2,ZlX,IjX,aj8,mWh,YIi,EQ8,wrX,ArX,UWO,Xrq,ljO,esh,PxX,prQ,Rs1,K$h,vQq,oQT,QcX,gQe,tI,BSi,rr2,DWX,xWP,zsi,qIe,
fjO,G$h,Hlq,tRX,$Wi,VRh,MRE,uQO,crO,yrO,O38,TIO,b38,i32,jXq,LWT,SXe,dU8,hmX,Iee,YX8,EeX,wE8,XEX,UUX,leX,PlX,Rmh,emX,KWQ,veP,geO,oeE,QXX,kSh,BIh,sXe,rQQ,DUX,xUh,zm8,Cli,qXX,neX,feX,tcX,$U8,GSe,H3q,uP8,JQi,dwE,bRe,LeQ,h2X,TX8,j7,Sfh,ZR1,aTT,ExX,YfX,wAP,AbX,To,d6,UwX,lTh,Zv,Iy,R2e,e21,PCT,gxE,k_X,BXE,rbP,DwQ,xwT,z28,qfX,nxP,fTE,G_8,HR8,t8O,$wh,YN,V8X,NXO,w6,M8e,uf8,Jb1,cb2,Fe1,ybe,U8,l3,W2e,OkQ,e7,ik2,bkX,jpX,TJX,dBO,hdi,ZkX,Ec8,YaQ,mBX,wF2,AmE,pFX,l9P,edX,UBX,P2E,pF,gcE,ocQ,QpQ,ku1,spQ,rm8,C2i,xBO,
Ry,DBP,Hkq,$BX,VvE,NJX,MvX,uw8,F22,ymP,it1,btX,jIh,TKe,d0X,heq,Sbi,Zt2,aEe,m08,YbT,w48,AJX,U02,lEX,KL2,gKE,vKX,QIX,D08,x0q,ze1,CbE,kN,Bt,s8,qbq,nKP,fEX,Gd2,tGE,$0X,VGO,NK1,uxq,cJ2,FLQ,yJX,r6,WkE,ix8,bxX,Lkq,dOh,Dv,xN,Zxh,hJE,IVe,Yde,aV8,Efe,CF,AO8,X68,eJO,p68,qs,KkX,vfE,gf2,ofX,QtX,kWi,st1,rOO,C4e,qdq,GWX,nf1,fV8,Hx8,t2O,M2X,$O2,NRi,umE,JOe,cOe,WdX,OjX,ijq,bj8,jEE,ZjO,SJ2,wo8,UK1,ct,lYO,o6e,eCQ,Puq,RCQ,vrX,grq,DKh,xKi,iU,zCe,Cue,qJT,nrq,fYO,HjX,$KT,GaQ,t$X,NFQ,V$h,uz1,JF2,cF2,Fd2,yF2,W0i,OTX,iT1,
L0X,Su1,dHh,ZTQ,I4X,a4h,TN,mHi,YuO,dY,wnT,Ej2,AaT,Xnq,l4h,eZE,pn1,RZO,K08,vje,gji,kA8,raQ,zZh,xH8,Cz2,quh,GAX,F08,ViX,Wt8,OaE,baX,jS2,hxe,I0Q,mt1,a0e,EnT,wIi,AZ2,XI2,Ut8,l0O,P51,Kt1,vn8,gn2,on8,sSe,kke,xt8,zxX,C58,qHi,nni,f08,Ha1,pD,$t8,gY,NrO,uKX,JZ8,OnE,bnT,dj8,SwO,ZnP,a$P,mjE,YwP,wcq,Xc8,Uje,PIq,RaX,gM1,vMX,KPe,rY,QwP,oMO,k4T,swP,BU8,r21,DjT,xjh,zaX,qwE,nMe,f$8,Hn8,V0Q,G4X,t0X,NUQ,M0i,ucq,J2e,FP2,y2X,dY8,hrT,SDX,Zi1,IaT,YD2,fD,laX,eri,Pa1,pJX,RrX,GN,HR,JV,BzX,$q,rf1,CaQ,nLX,qDX,VG,faX,G6T,$AE;
_.W2=function(W,O){if(Error.captureStackTrace)Error.captureStackTrace(this,_.W2);else{var b=Error().stack;b&&(this.stack=b)}W&&(this.message=String(W));O!==void 0&&(this.cause=O)};
Oe=function(){throw Error("B");};
WXO=function(W,O){O=String.fromCharCode.apply(null,O);return W==null?O:W+O};
jq2=function(W){var O=!1;O=O===void 0?!1:O;if(OE8){if(O&&(iEq?!W.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(W)))throw Error("C");W=(bEi||(bEi=new TextEncoder)).encode(W)}else{for(var b=0,T=new Uint8Array(3*W.length),L=0;L<W.length;L++){var h=W.charCodeAt(L);if(h<128)T[b++]=h;else{if(h<2048)T[b++]=h>>6|192;else{if(h>=55296&&h<=57343){if(h<=56319&&L<W.length){var Z=W.charCodeAt(++L);if(Z>=56320&&Z<=57343){h=(h-55296)*1024+Z-56320+65536;T[b++]=h>>18|
240;T[b++]=h>>12&63|128;T[b++]=h>>6&63|128;T[b++]=h&63|128;continue}else L--}if(O)throw Error("C");h=65533}T[b++]=h>>12|224;T[b++]=h>>6&63|128}T[b++]=h&63|128}}W=b===T.length?T:T.subarray(0,b)}return W};
b1=function(W){_.i1.setTimeout(function(){throw W;},0)};
_.LE=function(W,O){return W.lastIndexOf(O,0)==0};
hX=function(W,O){var b=W.length-O.length;return b>=0&&W.indexOf(O,b)==b};
_.Zi=function(W){return/^[\s\xa0]*$/.test(W)};
_.aq=function(W,O){return W.indexOf(O)!=-1};
_.mX=function(W,O){return _.aq(W.toLowerCase(),O.toLowerCase())};
_.w8=function(W,O){var b=0;W=Ee(String(W)).split(".");O=Ee(String(O)).split(".");for(var T=Math.max(W.length,O.length),L=0;b==0&&L<T;L++){var h=W[L]||"",Z=O[L]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];Z=/(\d*)(\D*)(.*)/.exec(Z)||["","","",""];if(h[0].length==0&&Z[0].length==0)break;b=T8O(h[1].length==0?0:parseInt(h[1],10),Z[1].length==0?0:parseInt(Z[1],10))||T8O(h[2].length==0,Z[2].length==0)||T8O(h[2],Z[2]);h=h[3];Z=Z[3]}while(b==0)}return b};
T8O=function(W,O){return W<O?-1:W>O?1:0};
_.AX=function(){var W=_.i1.navigator;return W&&(W=W.userAgent)?W:""};
P2=function(W){if(!Ue||!l1)return!1;for(var O=0;O<l1.brands.length;O++){var b=l1.brands[O].brand;if(b&&_.aq(b,W))return!0}return!1};
Rq=function(W){return _.aq(_.AX(),W)};
v2=function(){return Ue?!!l1&&l1.brands.length>0:!1};
oq=function(){return v2()?!1:Rq("Opera")};
LX8=function(){return v2()?!1:Rq("Trident")||Rq("MSIE")};
dP1=function(){return v2()?P2("Microsoft Edge"):Rq("Edg/")};
kT=function(){return Rq("Firefox")||Rq("FxiOS")};
_.B2=function(){return Rq("Safari")&&!(_.se()||(v2()?0:Rq("Coast"))||oq()||(v2()?0:Rq("Edge"))||dP1()||(v2()?P2("Opera"):Rq("OPR"))||kT()||Rq("Silk")||Rq("Android"))};
_.se=function(){return v2()?P2("Chromium"):(Rq("Chrome")||Rq("CriOS"))&&!(v2()?0:Rq("Edge"))||Rq("Silk")};
_.h88=function(){return Rq("Android")&&!(_.se()||kT()||oq()||Rq("Silk"))};
Sei=function(W){var O={};W.forEach(function(b){O[b[0]]=b[1]});
return function(b){return O[b.find(function(T){return T in O})]||""}};
ZEi=function(W){var O=_.AX();if(W==="Internet Explorer"){if(LX8())if((W=/rv: *([\d\.]*)/.exec(O))&&W[1])O=W[1];else{W="";var b=/MSIE +([\d\.]+)/.exec(O);if(b&&b[1])if(O=/Trident\/(\d.\d)/.exec(O),b[1]=="7.0")if(O&&O[1])switch(O[1]){case "4.0":W="8.0";break;case "5.0":W="9.0";break;case "6.0":W="10.0";break;case "7.0":W="11.0"}else W="7.0";else W=b[1];O=W}else O="";return O}var T=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");b=[];for(var L;L=T.exec(O);)b.push([L[1],L[2],L[3]||void 0]);
O=Sei(b);switch(W){case "Opera":if(oq())return O(["Version","Opera"]);if(v2()?P2("Opera"):Rq("OPR"))return O(["OPR"]);break;case "Microsoft Edge":if(v2()?0:Rq("Edge"))return O(["Edge"]);if(dP1())return O(["Edg"]);break;case "Chromium":if(_.se())return O(["Chrome","CriOS","HeadlessChrome"])}return W==="Firefox"&&kT()||W==="Safari"&&_.B2()||W==="Android Browser"&&_.h88()||W==="Silk"&&Rq("Silk")?(O=b[2])&&O[1]||"":""};
_.IiX=function(W){if(v2()&&W!=="Silk"){var O=l1.brands.find(function(b){return b.brand===W});
if(!O||!O.version)return NaN;O=O.version.split(".")}else{O=ZEi(W);if(O==="")return NaN;O=O.split(".")}return O.length===0?NaN:Number(O[0])};
xT=function(){return Ue?!!l1&&!!l1.platform:!1};
_.ai8=function(){return xT()?l1.platform==="Android":Rq("Android")};
mPT=function(){return Rq("iPhone")&&!Rq("iPod")&&!Rq("iPad")};
_.zX=function(){return mPT()||Rq("iPad")||Rq("iPod")};
_.YeX=function(){return xT()?l1.platform==="macOS":Rq("Macintosh")};
_.ETh=function(){return xT()?l1.platform==="Windows":Rq("Windows")};
_.w2T=function(){return xT()?l1.platform==="Chrome OS":Rq("CrOS")};
_.CE=function(W){return W[W.length-1]};
_.qP=function(W,O,b){O=_.AX1(W,O,b);return O<0?null:typeof W==="string"?W.charAt(O):W[O]};
_.AX1=function(W,O,b){for(var T=W.length,L=typeof W==="string"?W.split(""):W,h=0;h<T;h++)if(h in L&&O.call(b,L[h],h,W))return h;return-1};
X28=function(W){for(var O=_.GX,b=typeof W==="string"?W.split(""):W,T=W.length-1;T>=0;T--)if(T in b&&O.call(void 0,b[T],T,W))return T;return-1};
_.Vh=function(W,O){return _.$T(W,O)>=0};
_.NP=function(W,O){_.Vh(W,O)||W.push(O)};
_.c2=function(W,O){O=_.$T(W,O);var b;(b=O>=0)&&_.MP(W,O);return b};
_.MP=function(W,O){Array.prototype.splice.call(W,O,1)};
_.Ov=function(W){var O=W.length;if(O>0){for(var b=Array(O),T=0;T<O;T++)b[T]=W[T];return b}return[]};
_.Tw=function(W,O){for(var b=1;b<arguments.length;b++){var T=arguments[b];if(_.j5(T)){var L=W.length||0,h=T.length||0;W.length=L+h;for(var Z=0;Z<h;Z++)W[L+Z]=T[Z]}else W.push(T)}};
_.li2=function(W,O,b,T){Array.prototype.splice.apply(W,UP2(arguments,1))};
UP2=function(W,O,b){return arguments.length<=2?Array.prototype.slice.call(W,O):Array.prototype.slice.call(W,O,b)};
ZS=function(W,O){O=O||W;for(var b=0,T=0,L={};T<W.length;){var h=W[T++],Z=_.LH(h)?"o"+_.d1(h):(typeof h).charAt(0)+h;Object.prototype.hasOwnProperty.call(L,Z)||(L[Z]=!0,O[b++]=h)}O.length=b};
_.e8e=function(W,O,b){b=b||_.a7;for(var T=0,L=W.length,h;T<L;){var Z=T+(L-T>>>1);var a=b(O,W[Z]);a>0?T=Z+1:(L=Z,h=!a)}return h?T:-T-1};
_.Ev=function(W,O,b){if(!_.j5(W)||!_.j5(O)||W.length!=O.length)return!1;var T=W.length;b=b||P11;for(var L=0;L<T;L++)if(!b(W[L],O[L]))return!1;return!0};
_.a7=function(W,O){return W>O?1:W<O?-1:0};
P11=function(W,O){return W===O};
p2h=function(W,O,b){O=Array.prototype.splice.call(W,O,1);Array.prototype.splice.call(W,b,0,O[0])};
KX2=function(W){return R8q[W]||""};
oTh=function(W){if(!vT2)return _.w1(W);W=gTq.test(W)?W.replace(gTq,KX2):W;W=atob(W);for(var O=new Uint8Array(W.length),b=0;b<W.length;b++)O[b]=W.charCodeAt(b);return O};
Qq8=function(W,O){W.__closure__error__context__984382||(W.__closure__error__context__984382={});W.__closure__error__context__984382.severity=O};
_.lf=function(W){W=Error(W);Qq8(W,"warning");return W};
PN=function(W,O){if(W!=null){var b;var T=(b=kX2)!=null?b:kX2={};b=T[W]||0;b>=O||(T[W]=b+1,W=Error(),Qq8(W,"incident"),b1(W))}};
g1=function(W,O,b){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(b===void 0?0:b)&&Symbol.for&&W?Symbol.for(W):W!=null?Symbol(W):Symbol():O};
sv=function(W,O){o7||_.Qq in W||sqQ(W,B8P);W[_.Qq]|=O};
BN=function(W,O){o7||_.Qq in W||sqQ(W,B8P);W[_.Qq]=O};
rXq=function(W){if(4&W)return 512&W?512:1024&W?1024:0};
r1=function(W){sv(W,34);return W};
DPi=function(W){sv(W,32);return W};
DS=function(){return typeof BigInt==="function"};
CH=function(W,O){return O===void 0?W.copyOnWrite!==x$&&!!(2&(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Qq]|0)):!!(2&O)&&W.copyOnWrite!==x$};
_.HN=function(W,O){if(W!=null)if(typeof W==="string")W=W?new qz(W,nH):_.fH();else if(W.constructor!==qz)if(xPT&&W!=null&&W instanceof Uint8Array)W=W.length?new qz(new Uint8Array(W),nH):_.fH();else{if(!O)throw Error();W=void 0}return W};
$$=function(W,O){if(typeof O!=="number"||O<0||O>=W.length)throw Error();};
z8T=function(W,O,b){O=O&128?0:-1;var T=W.length,L;if(L=!!T)L=W[T-1],L=L!=null&&typeof L==="object"&&L.constructor===Object;for(var h=T+(L?-1:0),Z=0;Z<h;Z++)b(Z-O,W[Z]);if(L){W=W[T-1];for(var a in W)!isNaN(a)&&b(+a,W[a])}};
Mz=function(W){return W&128?Vq:void 0};
J9=function(W){W.isGuard_doNotManuallySetPrettyPlease=!0;return W};
qeP=function(){var W=C12;return J9(function(O){for(var b in W)if(O===W[b]&&!/^[0-9]+$/.test(b))return!0;return!1})};
_.FU=function(W){var O=W;if(nTe(O)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(O))throw Error(String(O));}else if(fi1(O)&&!Number.isSafeInteger(O))throw Error(String(O));return cN?BigInt(W):W=GXQ(W)?W?"1":"0":nTe(W)?W.trim()||"0":String(W)};
HEh=function(W,O){if(W.length>O.length)return!1;if(W.length<O.length||W===O)return!0;for(var b=0;b<W.length;b++){var T=W[b],L=O[b];if(T>L)return!1;if(T<L)return!0}};
tQX=function(W){var O=W>>>0;yq=O;W9=(W-O)/4294967296>>>0};
O5=function(W){if(W<0){tQX(-W);var O=_.S($P8(yq,W9));W=O.next().value;O=O.next().value;yq=W>>>0;W9=O>>>0}else tQX(W)};
VQ2=function(W,O){var b=O*4294967296+(W>>>0);return Number.isSafeInteger(b)?b:_.ik(W,O)};
bk=function(W,O){var b=O&2147483648;b&&(W=~W+1>>>0,O=~O>>>0,W==0&&(O=O+1>>>0));W=VQ2(W,O);return typeof W==="number"?b?-W:W:b?"-"+W:W};
_.ik=function(W,O){O>>>=0;W>>>=0;if(O<=2097151)var b=""+(4294967296*O+W);else DS()?b=""+(BigInt(O)<<BigInt(32)|BigInt(W)):(b=(W>>>24|O<<8)&16777215,O=O>>16&65535,W=(W&16777215)+b*6777216+O*6710656,b+=O*8147497,O*=2,W>=1E7&&(b+=W/1E7>>>0,W%=1E7),b>=1E7&&(O+=b/1E7>>>0,b%=1E7),b=O+N82(b)+N82(W));return b};
N82=function(W){W=String(W);return"0000000".slice(W.length)+W};
_.jB=function(W,O){O&2147483648?DS()?W=""+(BigInt(O|0)<<BigInt(32)|BigInt(W>>>0)):(O=_.S($P8(W,O)),W=O.next().value,O=O.next().value,W="-"+_.ik(W,O)):W=_.ik(W,O);return W};
dg=function(W){if(W.length<16)O5(Number(W));else if(DS())W=BigInt(W),yq=Number(W&BigInt(4294967295))>>>0,W9=Number(W>>BigInt(32)&BigInt(4294967295));else{var O=+(W[0]==="-");W9=yq=0;for(var b=W.length,T=O,L=(b-O)%6+O;L<=b;T=L,L+=6)T=Number(W.slice(T,L)),W9*=1E6,yq=yq*1E6+T,yq>=4294967296&&(W9+=Math.trunc(yq/4294967296),W9>>>=0,yq>>>=0);O&&(O=_.S($P8(yq,W9)),W=O.next().value,O=O.next().value,yq=W,W9=O)}};
$P8=function(W,O){O=~O;W?W=~W+1:O+=1;return[W,O]};
hg=function(W){return Array.prototype.slice.call(W)};
_.SB=function(W,O){throw Error(O===void 0?"unexpected value "+W+"!":O);};
_.ZP=function(W){if(W!=null&&typeof W!=="number")throw Error("I`"+typeof W+"`"+W);return W};
_.E5=function(W){if(W==null||typeof W==="number")return W;if(W==="NaN"||W==="Infinity"||W==="-Infinity")return Number(W)};
MQe=function(W){if(W!=null&&typeof W!=="boolean")throw Error("J`"+_.U5(W)+"`"+W);return W};
_.uOT=function(W){if(W==null||typeof W==="boolean")return W;if(typeof W==="number")return!!W};
_.pU=function(W){switch(typeof W){case "bigint":return!0;case "number":return P9(W);case "string":return JXX.test(W);default:return!1}};
_.RN=function(W){if(!P9(W))throw _.lf("enum");return W|0};
_.KU=function(W){return W==null?W:P9(W)?W|0:void 0};
cXq=function(W){if(typeof W!=="number")throw _.lf("int32");if(!P9(W))throw _.lf("int32");return W|0};
_.v9=function(W){return W==null?W:cXq(W)};
_.gg=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return P9(W)?W|0:void 0};
_.oN=function(W){if(W==null)return W;if(typeof W==="string"&&W)W=+W;else if(typeof W!=="number")return;return P9(W)?W>>>0:void 0};
OHe=function(W){var O=0;O=O===void 0?0:O;if(!_.pU(W))throw _.lf("int64");var b=typeof W;switch(O){case 512:switch(b){case "string":return Q2(W);case "bigint":return String(s5(64,W));default:return FXT(W)}case 1024:switch(b){case "string":return yX8(W);case "bigint":return _.FU(s5(64,W));default:return Wne(W)}case 0:switch(b){case "string":return Q2(W);case "bigint":return _.FU(s5(64,W));default:return B9(W)}default:return _.SB(O,"Unknown format requested type for int64")}};
rg=function(W){return W==null?W:OHe(W)};
iHX=function(W){if(W[0]==="-")return!1;var O=W.length;return O<20?!0:O===20&&Number(W.substring(0,6))<184467};
bHX=function(W){var O=W.length;return W[0]==="-"?O<20?!0:O===20&&Number(W.substring(0,7))>-922337:O<19?!0:O===19&&Number(W.substring(0,6))<922337};
j7h=function(W){if(W<0){O5(W);var O=_.ik(yq,W9);W=Number(O);return DP(W)?W:O}O=String(W);if(iHX(O))return O;O5(W);return VQ2(yq,W9)};
T12=function(W){if(bHX(W))return W;dg(W);return _.jB(yq,W9)};
LnP=function(W){if(iHX(W))return W;dg(W);return _.ik(yq,W9)};
B9=function(W){W=x7(W);DP(W)||(O5(W),W=bk(yq,W9));return W};
_.dzX=function(W){W=x7(W);return W>=0&&DP(W)?W:j7h(W)};
FXT=function(W){W=x7(W);if(DP(W))W=String(W);else{var O=String(W);bHX(O)?W=O:(O5(W),W=_.jB(yq,W9))}return W};
_.hL2=function(W){W=x7(W);if(W>=0&&DP(W))W=String(W);else{var O=String(W);iHX(O)?W=O:(O5(W),W=_.ik(yq,W9))}return W};
Q2=function(W){var O=x7(Number(W));if(DP(O))return String(O);O=W.indexOf(".");O!==-1&&(W=W.substring(0,O));return T12(W)};
yX8=function(W){var O=x7(Number(W));if(DP(O))return _.FU(O);O=W.indexOf(".");O!==-1&&(W=W.substring(0,O));return DS()?_.FU(s5(64,BigInt(W))):_.FU(T12(W))};
Wne=function(W){return DP(W)?_.FU(B9(W)):_.FU(FXT(W))};
_.Sv2=function(W){return DP(W)?_.FU(_.dzX(W)):_.FU(_.hL2(W))};
_.ZHX=function(W){var O=x7(Number(W));if(DP(O)&&O>=0)return String(O);O=W.indexOf(".");O!==-1&&(W=W.substring(0,O));return LnP(W)};
_.IST=function(W){var O=x7(Number(W));if(DP(O)&&O>=0)return _.FU(O);O=W.indexOf(".");O!==-1&&(W=W.substring(0,O));return DS()?_.FU((0,_.z1)(64,BigInt(W))):_.FU(LnP(W))};
_.aS8=function(W){if(W==null)return W;if(typeof W==="bigint")return CU(W)?W=Number(W):(W=s5(64,W),W=CU(W)?Number(W):String(W)),W;if(_.pU(W))return typeof W==="number"?B9(W):Q2(W)};
mzX=function(W,O){O=O===void 0?!1:O;var b=typeof W;if(W==null)return W;if(b==="bigint")return String(s5(64,W));if(_.pU(W))return b==="string"?Q2(W):O?FXT(W):B9(W)};
_.YvE=function(W){var O=typeof W;if(W==null)return W;if(O==="bigint")return _.FU(s5(64,W));if(_.pU(W))return O==="string"?yX8(W):Wne(W)};
E$8=function(W){if(W==null)return W;var O=typeof W;if(O==="bigint")return String(s5(64,W));if(_.pU(W)){if(O==="string")return Q2(W);if(O==="number")return B9(W)}};
wNT=function(W){if(W==null)return W;var O=typeof W;if(O==="bigint")return String((0,_.z1)(64,W));if(_.pU(W)){if(O==="string")return _.ZHX(W);if(O==="number")return _.dzX(W)}};
_.qZ=function(W){if(typeof W!=="string")throw Error();return W};
nU=function(W){if(W!=null&&typeof W!=="string")throw Error();return W};
_.fU=function(W){return W==null||typeof W==="string"?W:void 0};
A9X=function(W,O,b,T){if(W!=null&&W[tg]===$7)return W;if(!Array.isArray(W))return b?T&2?((W=O[V2])||(W=new O,r1(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),W=O[V2]=W),O=W):O=new O:O=void 0,O;b=W[_.Qq]|0;T=b|T&32|T&2;T!==b&&BN(W,T);return new O(W)};
XNX=function(W,O,b){W=O?cXq(W):_.gg(W);return W==null?b?0:void 0:W|0};
Uz1=function(W){return W};
lSX=function(W){return W};
PfT=function(W,O,b,T,L,h){W=A9X(W,T,b,h);L&&(W=eLO(W));return W};
pNE=function(W){return[W,this.get(W)]};
v$O=function(){return RLE||(RLE=new NZ(r1([]),void 0,void 0,void 0,KnE))};
Jg=function(W){var O=MZ(uk);return O?W[O]:void 0};
Q7T=function(W,O){var b=b===void 0?!1:b;if(MZ(g$X)&&MZ(uk)&&void 0===g$X){var T=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=T[uk];if(!L)return;if(L=L.reviveUnknownFields)try{L(T,O,o$Q);return}catch(h){b1(h)}}b&&(W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(b=MZ(uk))&&b in W&&(W=W[b])&&delete W[O])};
s78=function(W,O){var b=MZ(uk),T;o7&&b&&((T=W[b])==null?void 0:T[O])!=null&&PN(kwe,3)};
r9X=function(W,O){O<100||PN(B1T,1)};
Cfi=function(W,O,b,T){var L=T!==void 0;T=!!T;var h=MZ(uk),Z;!L&&o7&&h&&(Z=W[h])&&c9(Z,r9X);h=[];var a=W.length;Z=4294967295;var m=!1,w=!!(O&64),A=w?O&128?0:-1:void 0;if(!(O&1)){var X=a&&W[a-1];X!=null&&typeof X==="object"&&X.constructor===Object?(a--,Z=a):X=void 0;if(w&&!(O&128)&&!L){m=!0;var l;Z=((l=Dzi)!=null?l:Uz1)(Z-A,A,W,X)+A}}O=void 0;for(l=0;l<a;l++){var p=W[l];if(p!=null&&(p=b(p,T))!=null)if(w&&l>=Z){var K=l-A,k=void 0;((k=O)!=null?k:O={})[K]=p}else h[l]=p}if(X)for(var r in X)a=X[r],a!=null&&
(a=b(a,T))!=null&&(l=+r,p=void 0,w&&!Number.isNaN(l)&&(p=l+A)<Z?h[p]=a:(l=void 0,((l=O)!=null?l:O={})[r]=a));O&&(m?h.push(O):h[Z]=O);L&&MZ(uk)&&(W=Jg(W))&&W instanceof xz8&&(h[uk]=zL2(W));return h};
qvq=function(W){W[0]=FD(W[0]);W[1]=FD(W[1]);return W};
FD=function(W){switch(typeof W){case "number":return Number.isFinite(W)?W:""+W;case "bigint":return CU(W)?Number(W):""+W;case "boolean":return W?1:0;case "object":if(Array.isArray(W)){var O=W[_.Qq]|0;return W.length===0&&O&1?void 0:Cfi(W,O,FD)}if(W!=null&&W[tg]===$7)return n$8(W);if(W instanceof qz){O=W.JSC$6815_value_;if(O==null)W="";else if(typeof O==="string")W=O;else{if(vT2){for(var b="",T=0,L=O.length-10240;T<L;)b+=String.fromCharCode.apply(null,O.subarray(T,T+=10240));b+=String.fromCharCode.apply(null,
T?O.subarray(T):O);O=btoa(b)}else O=_.WM(O);W=W.JSC$6815_value_=O}return W}if(W instanceof NZ)return W=W.size!==0?Array.from(Ot.prototype.entries.call(W),qvq):void 0,W;return}return W};
b_=function(W,O){if(O){Dzi=O==null||O===Uz1||O[fSi]!==GwQ?Uz1:O;try{return n$8(W)}finally{Dzi=void 0}}return n$8(W)};
n$8=function(W){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Cfi(W,W[_.Qq]|0,FD)};
$zT=function(W){switch(typeof W){case "boolean":return HHX||(HHX=[0,void 0,!0]);case "number":return W>0?void 0:W===0?t5P||(t5P=[0,void 0]):[-W,void 0];case "string":return[0,W];case "object":return W}};
L0=function(W,O,b){return W=_.jW(W,O[0],O[1],b?1:2)};
_.jW=function(W,O,b,T){T=T===void 0?0:T;if(W==null){var L=32;b?(W=[b],L|=128):W=[];O&&(L=L&-8380417|(O&1023)<<13)}else{if(!Array.isArray(W))throw Error("L");L=W[_.Qq]|0;2048&L&&!(2&L)&&V5O();if(L&256)throw Error("N");if(L&64)return T!==0||L&2048||BN(W,L|2048),W;if(b&&(L|=128,b!==W[0]))throw Error("O");a:{b=W;L|=64;var h=b.length;if(h){var Z=h-1,a=b[Z];if(a!=null&&typeof a==="object"&&a.constructor===Object){O=L&128?0:-1;Z-=O;if(Z>=1024)throw Error("Q");for(var m in a)h=+m,h<Z&&(b[h+O]=a[m],delete a[m]);
L=L&-8380417|(Z&1023)<<13;break a}}if(O){m=Math.max(O,h-(L&128?0:-1));if(m>1024)throw Error("R");L=L&-8380417|(m&1023)<<13}}}L|=64;T===0&&(L|=2048);BN(W,L);return W};
V5O=function(){PN(N1X,5)};
J9X=function(W,O){if(typeof W!=="object")return W;if(Array.isArray(W)){var b=W[_.Qq]|0;return W.length===0&&b&1?void 0:M5P(W,b,O)}if(W!=null&&W[tg]===$7)return uUP(W);if(W instanceof NZ){O=W.arrayState;if(O&2)return W;if(!W.size)return;b=r1(Array.from(Ot.prototype.entries.call(W)));if(W.valueCtor)for(W=0;W<b.length;W++){var T=b[W],L=T[1];L==null||typeof L!=="object"?L=void 0:L!=null&&L[tg]===$7?L=uUP(L):Array.isArray(L)?L=M5P(L,L[_.Qq]|0,!!(O&32)):L=void 0;T[1]=L}return b}if(W instanceof qz)return W};
M5P=function(W,O,b){if(O&2)return W;!b||4096&O||16&O?W=dA(W,O,!1,b&&!(O&16)):(sv(W,34),O&4&&Object.freeze(W));return W};
hA=function(W,O,b){W=new W.constructor(O);b&&(W.copyOnWrite=x$);W.noLegacyNull=x$;return W};
uUP=function(W){var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=O[_.Qq]|0;return CH(W,b)?W:SW(W,O,b)?hA(W,O):dA(O,b)};
dA=function(W,O,b,T){T!=null||(T=!!(34&O));W=Cfi(W,O,J9X,T);T=32;b&&(T|=2);O=O&8380609|T;BN(W,O);return W};
eLO=function(W){var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=O[_.Qq]|0;return CH(W,b)?SW(W,O,b)?hA(W,O,!0):new W.constructor(dA(O,b,!1)):W};
Yh=function(W){if(W.copyOnWrite!==x$)return!1;var O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;O=dA(O,O[_.Qq]|0);sv(O,2048);W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=O;W.copyOnWrite=void 0;W.noLegacyNull=void 0;return!0};
Et=function(W){if(!Yh(W)&&CH(W,W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Qq]|0))throw Error();};
AA=function(W,O){O===void 0&&(O=W[_.Qq]|0);O&32&&!(O&4096)&&BN(W,O|4096)};
SW=function(W,O,b){return b&2?!0:b&32&&!(b&4096)?(BN(O,b|2),W.copyOnWrite=x$,!0):!1};
X5=function(W,O,b,T,L){var h=b+(L?0:-1),Z=W.length-1;if(Z>=1+(L?0:-1)&&h>=Z){var a=W[Z];if(a!=null&&typeof a==="object"&&a.constructor===Object)return a[b]=T,O}if(h<=Z)return W[h]=T,O;if(T!==void 0){var m;Z=((m=O)!=null?m:O=W[_.Qq]|0)>>13&1023||536870912;b>=Z?T!=null&&(h={},W[Z+(L?0:-1)]=(h[b]=T,h)):W[h]=T}return O};
_.eW=function(W,O,b,T,L){var h=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=h[_.Qq]|0;T=CH(W,Z)?1:T;L=!!L||T===3;T===2&&Yh(W)&&(h=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Z=h[_.Qq]|0);W=c98(h,O);var a=W===Ut?7:W[_.Qq]|0,m=Fn2(a,Z);var w=4&m?!1:!0;if(w){4&m&&(W=hg(W),a=0,m=l_(m,Z),Z=X5(h,Z,O,W));for(var A=0,X=0;A<W.length;A++){var l=b(W[A]);l!=null&&(W[X++]=l)}X<A&&(W.length=X);b=(m|4)&-513;m=b&=-1025;m&=-4097}m!==a&&(BN(W,m),2&m&&Object.freeze(W));return W=y9E(W,m,h,
Z,O,T,w,L)};
y9E=function(W,O,b,T,L,h,Z,a){var m=O;h===1||(h!==4?0:2&O||!(16&O)&&32&T)?PM(O)||(O|=!W.length||Z&&!(4096&O)||32&T&&!(4096&O||16&O)?2:256,O!==m&&BN(W,O),Object.freeze(W)):(h===2&&PM(O)&&(W=hg(W),m=0,O=l_(O,T),T=X5(b,T,L,W)),PM(O)||(a||(O|=16),O!==m&&BN(W,O)));2&O||!(4096&O||16&O)||AA(b,T);return W};
c98=function(W,O,b){W=RR(W,O,b);return Array.isArray(W)?W:Ut};
Fn2=function(W,O){2&O&&(W|=2);return W|1};
PM=function(W){return!!(2&W)&&!!(4&W)||!!(256&W)};
W88=function(W){return _.HN(W,!0)};
OUO=function(W,O){var b=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,T=b[_.Qq]|0;a:{var L=T;T=CH(W,T);!T&&Yh(W)&&(b=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=b[_.Qq]|0);var h=RR(b,O);W=!1;if(h==null){if(T){O=v$O();break a}h=[]}else if(h.constructor===NZ)if(h.arrayState&2&&!T)h=Array.from(Ot.prototype.entries.call(h));else{O=h;break a}else Array.isArray(h)?W=!!((h[_.Qq]|0)&2):h=[];if(T){if(!h.length){O=v$O();break a}W||(W=!0,r1(h))}else if(W){W=!1;T=h;T=hg(T);for(h=0;h<
T.length;h++){var Z=T[h]=hg(T[h]);Array.isArray(Z[1])&&(Z[1]=r1(Z[1]))}h=T}!W&&L&32&&DPi(h);T=new NZ(h,void 0,XNX,XNX);L=X5(b,L,O,T);W||AA(b,L);O=T}return O};
_.K0=function(W,O,b,T){Et(W);var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=L[_.Qq]|0;if(b==null)return X5(L,h,O),W;var Z=b===Ut?7:b[_.Qq]|0,a=Z,m=PM(Z),w=m||Object.isFrozen(b);m||(Z=0);w||(b=hg(b),a=0,Z=l_(Z,h),w=!1);Z|=5;var A;m=(A=rXq(Z))!=null?A:0;for(A=0;A<b.length;A++){var X=b[A],l=T(X,m);Object.is(X,l)||(w&&(b=hg(b),a=0,Z=l_(Z,h),w=!1),b[A]=l)}Z!==a&&(w&&(b=hg(b),Z=l_(Z,h)),BN(b,Z));X5(L,h,O,b);return W};
_.vM=function(W,O,b,T,L){Et(W);var h=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X5(h,h[_.Qq]|0,O,(T==="0"?Number(b)===0:b===T)?void 0:b,L);return W};
_.gA=function(W,O,b){if(O&2)throw Error();var T=Mz(O),L=c98(W,b,T),h=L===Ut?7:L[_.Qq]|0,Z=Fn2(h,O);if(2&Z||PM(Z)||16&Z)L=hg(L),h=0,Z=l_(Z,O),X5(W,O,b,L,T);Z&=-13;Z!==h&&BN(L,Z);return L};
iUE=function(W){if(o7){var O;return(O=W[Qf])!=null?O:W[Qf]=new Map}if(Qf in W)return W[Qf];O=new Map;Object.defineProperty(W,Qf,{value:O});return O};
jNh=function(W,O,b,T,L){var h=iUE(W),Z=bUQ(h,W,O,b,L);Z!==T&&(Z&&(O=X5(W,O,Z,void 0,L)),h.set(b,T));return O};
bUQ=function(W,O,b,T,L){var h=W.get(T);if(h!=null)return h;for(var Z=h=0;Z<T.length;Z++){var a=T[Z];RR(O,a,L)!=null&&(h!==0&&(b=X5(O,b,h,void 0,L)),h=a)}W.set(T,h);return h};
kh=function(W,O,b,T,L){var h=!1;T=RR(W,T,L,function(Z){var a=A9X(Z,b,!1,O);h=a!==Z&&a!=null;return a});
if(T!=null)return h&&!CH(T)&&AA(W,O),T};
TgX=function(W,O,b,T,L,h,Z,a){var m=CH(W,b);h=m?1:h;Z=!!Z||h===3;m=a&&!m;(h===2||m)&&Yh(W)&&(O=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=O[_.Qq]|0);W=c98(O,L);var w=W===Ut?7:W[_.Qq]|0,A=Fn2(w,b);if(a=!(4&A)){var X=W,l=b,p=!!(2&A);p&&(l|=2);for(var K=!p,k=!0,r=0,q=0;r<X.length;r++){var f=A9X(X[r],T,!1,l);if(f instanceof T){if(!p){var M=CH(f);K&&(K=!M);k&&(k=M)}X[q++]=f}}q<r&&(X.length=q);A|=4;A=k?A&-4097:A|4096;A=K?A|8:A&-9}A!==w&&(BN(W,A),2&A&&Object.freeze(W));if(m&&!(8&A||!W.length&&
(h===1||(h!==4?0:2&A||!(16&A)&&32&b)))){PM(A)&&(W=hg(W),A=l_(A,b),b=X5(O,b,L,W));T=W;m=A;for(w=0;w<T.length;w++)X=T[w],A=eLO(X),X!==A&&(T[w]=A);m|=8;A=m=T.length?m|4096:m&-4097;BN(W,A)}return W=y9E(W,A,O,b,L,h,a,Z)};
L8T=function(W){W==null&&(W=void 0);return W};
l_=function(W,O){return W=(2&O?W|2:W&-3)&-273};
_.dZi=function(W,O,b,T,L){Et(W);O=_.eW(W,O,L,2,!0);var h;L=(h=rXq(O===Ut?7:O[_.Qq]|0))!=null?h:0;O.push(b(T,L));return W};
hRh=function(W,O,b,T,L,h,Z){Et(W);var a=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;W=TgX(W,a,a[_.Qq]|0,b,O,2,!0);if(h&&Z)L!=null||(L=W.length-1),$$(W,L),W.splice(L,h),W.length||(W[_.Qq]&=-4097);else{if(h){if(typeof L!=="number"||L<0||L>W.length)throw Error();}else T=T!=null?T:new b;L!=void 0?W.splice(L,h,T):W.push(T);L=b=W===Ut?7:W[_.Qq]|0;(T=CH(T))?(b&=-9,W.length===1&&(b&=-4097)):b|=4096;b!==L&&BN(W,b);T||AA(a)}};
S5T=function(W,O){if(typeof W==="string")return new BM(oTh(W),O);if(Array.isArray(W))return new BM(new Uint8Array(W),O);if(W.constructor===Uint8Array)return new BM(W,!1);if(W.constructor===ArrayBuffer)return W=new Uint8Array(W),new BM(W,!1);if(W.constructor===qz)return O=rA(W)||new Uint8Array(0),new BM(O,!0,W);if(W instanceof Uint8Array)return W=W.constructor===Uint8Array?W:new Uint8Array(W.buffer,W.byteOffset,W.byteLength),new BM(W,!1);throw Error();};
DG=function(){var W=function(){throw Error();};
Object.setPrototypeOf(W,W.prototype);return W};
IPT=function(W,O){var b=b===void 0?ZU8:b;return new z9(W,O,b)};
E7q=function(W,O,b,T,L){O=aPX(O,T);O!=null&&(b=_.mZX(W,b),L(O,W),_.Y52(W,b))};
C0=function(W,O,b,T){var L=T[W];if(L)return L;L={};L.binaryFields=T;L.messageMetadata=$zT(T[0]);var h=T[1],Z=1;h&&h.constructor===Object&&(L.extensions=h,h=T[++Z],typeof h==="function"&&(L.isMessageSet=!0,w9h!=null||(w9h=h),Agq!=null||(Agq=T[Z+1]),h=T[Z+=2]));for(var a={};h&&Array.isArray(h)&&h.length&&typeof h[0]==="number"&&h[0]>0;){for(var m=0;m<h.length;m++)a[h[m]]=h;h=T[++Z]}for(m=1;h!==void 0;){typeof h==="number"&&(m+=h,h=T[++Z]);var w=void 0;if(h instanceof z9)var A=h;else A=X9Q,Z--;h=void 0;
if((h=A)==null?0:h.$$isMsg){h=T[++Z];w=T;var X=Z;typeof h==="function"&&(h=h(),w[X]=h);w=h}h=T[++Z];X=m+1;typeof h==="number"&&h<0&&(X-=h,h=T[++Z]);for(;m<X;m++){var l=a[m];w?b(L,m,A,w,l):O(L,m,A,l)}}return T[W]=L};
lPq=function(W){return Array.isArray(W)?W[0]instanceof z9?W:[UZq,W]:[W,void 0]};
aPX=function(W,O){if(W instanceof _.qA)return W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(W))return L0(W,O,!1)};
eR2=function(W,O,b,T){var L=b.$$binaryReaderFn;W[O]=T?function(h,Z,a){return L(h,Z,a,T)}:L};
Pkq=function(W,O,b,T,L){var h=b.$$binaryReaderFn,Z,a;W[O]=function(m,w,A){return h(m,w,A,a||(a=C0(n0,eR2,Pkq,T).messageMetadata),Z||(Z=p91(T)),L)}};
p91=function(W){var O=W[RR8];if(O!=null)return O;var b=C0(n0,eR2,Pkq,W);O=b.isMessageSet?function(T,L){return w9h(T,L,b)}:function(T,L){for(;K8e(L)&&L.nextWireType_!=4;){var h=L.nextField_,Z=b[h];
if(Z==null){var a=b.extensions;a&&(a=a[h])&&(a=v7Q(a),a!=null&&(Z=b[h]=a))}if(Z==null||!Z(L,T,h)){a=L;Z=a.fieldCursor_;G9(a);if(a.discardUnknownFields)var m=void 0;else{var w=a.decoder_.cursor_-Z;a.decoder_.cursor_=Z;m=g71(a.decoder_,w)}w=a=Z=void 0;var A=T;m&&((Z=(a=(w=A[uk])!=null?w:A[uk]=new xz8)[h])!=null?Z:a[h]=[]).push(m)}}if(T=Jg(T))T.reviveUnknownFields=b.binaryFields[o7O];return!0};
W[RR8]=O;W[o7O]=QNq.bind(W);return O};
QNq=function(W,O,b,T){var L=this[n0],h=this[RR8],Z=L0(void 0,L.messageMetadata,!1),a=Jg(W);if(a){var m=!1,w=L.extensions;if(w){L=function(K,k,r){if(r.length!==0)if(w[k])for(K=_.S(r),k=K.next();!k.done;k=K.next()){k=k1X(k.value);try{m=!0,h(Z,k)}finally{k.free()}}else T==null||T(W,k,r)};
if(O==null)c9(a,L);else if(a!=null){var A=a[O];A&&L(a,O,A)}if(m){var X=W[_.Qq]|0;if(X&2&&X&2048&&(b==null||!b.reviveIntoImmutable))throw Error();var l=Mz(X),p=function(K,k){if(RR(W,K,l)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;default:throw Error();}k!=null&&(X=X5(W,X,K,k,l));delete a[K]};
O==null?z8T(Z,Z[_.Qq]|0,function(K,k){p(K,k)}):p(O,RR(Z,O,l))}}}};
v7Q=function(W){W=lPq(W);var O=W[0].$$binaryReaderFn;if(W=W[1]){var b=p91(W),T=C0(n0,eR2,Pkq,W).messageMetadata;return function(L,h,Z){return O(L,h,Z,T,b)}}return O};
HM=function(W,O,b){W[O]=b.$$binaryWriterFn};
$h=function(W,O,b,T){var L,h,Z=b.$$binaryWriterFn;W[O]=function(a,m,w){return Z(a,m,w,h||(h=C0(tA,HM,$h,T).messageMetadata),L||(L=sN2(T)))}};
sN2=function(W){var O=W[Bg8];if(!O){var b=C0(tA,HM,$h,W);O=function(T,L){return rgQ(T,L,b)};
W[Bg8]=O}return O};
rgQ=function(W,O,b){z8T(W,W[_.Qq]|0,function(T,L){if(L!=null){var h=DZq(b,T);h?h(O,L,T):T<500||PN(xZh,3)}});
(W=Jg(W))&&c9(W,function(T,L,h){Vf(O,O.encoder_.end());for(T=0;T<h.length;T++)Vf(O,rA(h[T])||new Uint8Array(0))})};
DZq=function(W,O){var b=W[O];if(b)return b;if(b=W.extensions)if(b=b[O]){b=lPq(b);var T=b[0].$$binaryWriterFn;if(b=b[1]){var L=sN2(b),h=C0(tA,HM,$h,b).messageMetadata;b=W.isMessageSet?Agq(h,L):function(Z,a,m){return T(Z,a,m,h,L)}}else b=T;
return W[O]=b}};
_.zRT=function(W,O,b){if(Array.isArray(O)){var T=O[_.Qq]|0;if(T&4)return O;for(var L=0,h=0;L<O.length;L++){var Z=W(O[L]);Z!=null&&(O[h++]=Z)}h<L&&(O.length=h);b&&(BN(O,(T|5)&-1537),T&2&&Object.freeze(O));return O}};
_.NA=function(W,O,b){return new z9(W,O,b)};
_.Ck1=function(W,O,b){return new z9(W,O,b)};
_.u_=function(W,O,b){X5(W,W[_.Qq]|0,O,b,Mz(W[_.Qq]|0))};
q5i=function(W,O,b){O=_.E5(O);O!=null&&(_.JA(W,b,1),W=W.encoder_,b=cM||(cM=new DataView(new ArrayBuffer(8))),b.setFloat64(0,+O,!0),yq=b.getUint32(0,!0),W9=b.getUint32(4,!0),_.F5(W,yq),_.F5(W,W9))};
_.yf=function(W,O,b){O=E$8(O);if(O!=null){switch(typeof O){case "string":n7X(O)}if(O!=null)switch(_.JA(W,b,0),typeof O){case "number":W=W.encoder_;O5(O);fP8(W,yq,W9);break;case "bigint":b=BigInt.asUintN(64,O);b=new HUX(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));fP8(W.encoder_,b.JSC$6867_lo,b.JSC$6867_hi);break;default:b=n7X(O),fP8(W.encoder_,b.JSC$6867_lo,b.JSC$6867_hi)}}};
$Z8=function(W,O,b){O=_.gg(O);O!=null&&O!=null&&(_.JA(W,b,0),_.tB8(W.encoder_,O))};
_.Nge=function(W,O,b){VBh(W,b,wNT(O))};
_.MBe=function(W,O,b){O=_.uOT(O);O!=null&&(_.JA(W,b,0),W.encoder_.JSC$6869_buffer_.push(O?1:0))};
_.Jge=function(W,O,b){O=_.fU(O);O!=null&&uD1(W,b,jq2(O))};
cgO=function(W,O,b,T,L){O=aPX(O,T);O!=null&&(b=_.mZX(W,b),L(O,W),_.Y52(W,b))};
_.F8Q=function(W,O,b){O=O==null||typeof O=="string"||O instanceof qz?O:void 0;O!=null&&uD1(W,b,S5T(O,!0).buffer)};
_.yge=function(W,O,b){O=_.gg(O);O!=null&&(O=parseInt(O,10),_.JA(W,b,0),_.tB8(W.encoder_,O))};
_.WD=function(W,O){return function(b,T){var L={treatNewDataAsImmutable:!0};T&&Object.assign(L,T);b=k1X(b,void 0,void 0,L);try{var h=new W,Z=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;p91(O)(Z,b);var a=h}finally{b.free()}return a}};
_.OB=function(W){return function(O){return W7Q(O,W)}};
O0X=function(W){return function(){return W7Q(this,W)}};
_.i0X=function(W){return J9(function(O){return O instanceof W&&!CH(O)})};
_.i7=function(W){return function(O){return b01(W,O)}};
dAO=function(W,O){return jR2({child:W,origin:O||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:TAi,getPayloadCase:function(b){return b.getPayloadCase()},
createInitMessage:function(b){var T=new b7,L=new L7X;b=_.jL(L,1,b);return _.Tb(T,5,Lz,b)}})};
dC=function(W){return{valueOf:W}.valueOf()};
St8=function(){var W=null;if(!hkT)return W;try{var O=function(b){return b};
W=hkT.createPolicy("goog#html",{createHTML:O,createScript:O,createScriptURL:O})}catch(b){}return W};
IGe=function(){Z0e===void 0&&(Z0e=St8());return Z0e};
_.SL=function(W){var O=IGe();W=O?O.createScriptURL(W):W;return new hv(W)};
_.Zd=function(W){if(W instanceof hv)return W.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
IQ=function(W){return W.toString().indexOf("`")===-1};
mj=function(W){return new _.aQ(aGi,W)};
Y4=function(W){return W instanceof _.aQ};
_.EB=function(W){if(Y4(W))return W.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
wC=function(W){return new mAX(function(O){return O.substr(0,W.length+1).toLowerCase()===W+":"})};
Av=function(W,O){O=O===void 0?Yt8:O;if(Y4(W))return W;for(var b=0;b<O.length;++b){var T=O[b];if(T instanceof mAX&&T.isValid(W))return mj(W)}};
_.l7=function(W,O){O=O===void 0?Yt8:O;return Av(W,O)||Xy};
_.eL=function(W){var O=window;if(typeof MediaSource!=="undefined"&&W instanceof MediaSource||typeof O.ManagedMediaSource!=="undefined"&&W instanceof O.ManagedMediaSource)return mj(URL.createObjectURL(W));O=W.type;O.toLowerCase()==="application/octet-stream"?O=!0:(O=O.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),O=(O==null?void 0:O.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(O[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(O[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(O[1])||/^font\/[\w-]+$/i.test(O[1])));if(!O)throw Error("da");return mj(URL.createObjectURL(W))};
_.RQ=function(W){for(var O=_.PD.apply(1,arguments),b=[W[0]],T=0;T<O.length;T++)b.push(String(O[T])),b.push(W[T+1]);return mj(b.join(""))};
_.wMX=function(W){if(!Eh8){a:{var O=document.createElement("a");try{O.href=W}catch(b){W=void 0;break a}W=O.protocol;W=W===":"||W===""?"https:":W}return W}try{O=new URL(W)}catch(b){return"https:"}return O.protocol};
_.Kz=function(W){W instanceof _.aQ?W=_.EB(W):W=AAX.test(W)?W:void 0;return W};
vD=function(W,O){O=_.Kz(O);O!==void 0&&(W.href=O)};
oQ=function(W){var O=IGe();W=O?O.createHTML(W):W;return new gC(W)};
Q0=function(W){if(W instanceof gC)return W.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.k4=function(W,O){W.src=_.Zd(O).toString()};
XMX=function(W,O){W.setAttribute("sandbox","");for(var b=0;b<O.length;b++)W.sandbox.supports&&!W.sandbox.supports(O[b])||W.sandbox.add(O[b])};
_.UAO=function(W,O,b){W.removeAttribute("srcdoc");switch(O){case 0:if(b instanceof hv)throw new sB("TrustedResourceUrl",0);XMX(W,[]);O=_.Kz(b);O!==void 0&&(W.src=O);break;case 1:if(!(b instanceof hv))throw new sB(typeof b,1);XMX(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.k4(W,b);break;case 2:if(b instanceof hv)throw new sB("TrustedResourceUrl",2);XMX(W,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
O=_.Kz(b);O!==void 0&&(W.src=O);break;default:_.SB(O)}};
_.BD=function(W,O,b,T){O=_.Kz(O);return O!==void 0?W.open(O,b,T):null};
_.x4=function(W){W=W===void 0?document:W;var O,b;W=(b=(O=W).querySelector)==null?void 0:b.call(O,"script[nonce]");return W==null?"":W.nonce||W.getAttribute("nonce")||""};
_.Cz=function(W){var O=IGe();W=O?O.createScript(W):W;return new _.zb(W)};
qI=function(W){if(W instanceof _.zb)return W.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
lGe=function(W){var O=_.x4(W.ownerDocument);O&&W.setAttribute("nonce",O)};
_.nz=function(W,O){W.textContent=qI(O);lGe(W)};
_.fz=function(W,O){W.src=_.Zd(O);lGe(W)};
_.Gb=function(W,O){if(W.nodeType===1&&/^(script|style)$/i.test(W.tagName))throw Error("da");W.innerHTML=Q0(O)};
_.HD=function(W,O,b,T){if(W.length===0)throw Error("da");W=W.map(function(h){if(h instanceof ekE)h=h.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return h});
var L=b.toLowerCase();if(W.every(function(h){return L.indexOf(h)!==0}))throw Error("ea`"+b);
O.setAttribute(b,T)};
_.tv=function(W,O,b){if(O instanceof hv)W.href=_.Zd(O).toString(),W.rel=b;else{if(P_X.indexOf(b)===-1)throw Error("fa`"+b);O=_.Kz(O);O!==void 0&&(W.href=O,W.rel=b)}};
pM1=function(W){return"function"==typeof _.V0&&W instanceof _.V0};
_.Rk2=function(W){if(pM1(W))return W.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.NI=function(W,O){O=_.Kz(O);O!==void 0&&(W.href=O)};
MI=function(W,O){W&&(O=W.indexOf(O),0<=O&&W.splice(O,1))};
u7=function(W){return typeof W==="function"};
K7P=function(W){return W instanceof Jv||W&&"closed"in W&&u7(W.remove)&&u7(W.add)&&u7(W.unsubscribe)};
cD=function(){};
Fy=function(W){vhX(function(){throw W;})};
y0=function(W){return W};
WG=function(){return gh2(_.PD.apply(0,arguments))};
gh2=function(W){return W.length===0?y0:W.length===1?W[0]:function(O){return W.reduce(function(b,T){return T(b)},O)}};
ohX=function(W){var O;return(O=W!=null?W:void 0)!=null?O:Promise};
QR8=function(W,O){return new OK(function(b){var T=0;return O.schedule(function(){T===W.length?b.complete():(b.next(W[T++]),b.closed||this.schedule())})})};
k9X=function(W,O){if(!W)throw Error("ga");return new OK(function(b){var T=new Jv;T.add(O.schedule(function(){var L=W[Symbol.asyncIterator]();T.add(O.schedule(function(){var h=this;L.next().then(function(Z){Z.done?b.complete():(b.next(Z.value),h.schedule())})}))}));
return T})};
sRQ=function(W,O,b){O=O.schedule(function(){try{b.call(this)}catch(T){W.error(T)}},0);
W.add(O)};
BAQ=function(W,O){return new OK(function(b){var T;b.add(O.schedule(function(){T=W[iN]();sRQ(b,O,function(){var L=T.next(),h=L.value;L.done?b.complete():(b.next(h),this.schedule())})}));
return function(){var L;return u7((L=T)==null?void 0:L.return)&&T.return()}})};
rAX=function(W,O){return new OK(function(b){var T=new Jv;T.add(O.schedule(function(){var L=W[bN]();T.add(L.subscribe({next:function(h){T.add(O.schedule(function(){return b.next(h)}))},
error:function(h){T.add(O.schedule(function(){return b.error(h)}))},
complete:function(){T.add(O.schedule(function(){return b.complete()}))}}))}));
return T})};
DAi=function(W,O){return new OK(function(b){return O.schedule(function(){return W.then(function(T){b.add(O.schedule(function(){b.next(T);b.add(O.schedule(function(){return b.complete()}))}))},function(T){b.add(O.schedule(function(){return b.error(T)}))})})})};
xAX=function(W){return new TypeError("ha`"+(W!==null&&typeof W==="object"?"an invalid object":"'"+W+"'"))};
C_i=function(W,O){if(W!=null){if(u7(W[bN]))return rAX(W,O);if(zkQ(W))return QR8(W,O);if(u7(W==null?void 0:W.then))return DAi(W,O);if(Symbol.asyncIterator&&u7(W==null?void 0:W[Symbol.asyncIterator]))return k9X(W,O);if(u7(W==null?void 0:W[iN]))return BAQ(W,O)}throw xAX(W);};
T8=function(W,O){return O?C_i(W,O):jP(W)};
jP=function(W){if(W instanceof OK)return W;if(W!=null){if(u7(W[bN]))return qtX(W);if(zkQ(W))return nhQ(W);if(u7(W==null?void 0:W.then))return fGX(W);if(Symbol.asyncIterator&&u7(W==null?void 0:W[Symbol.asyncIterator]))return G9e(W);if(u7(W==null?void 0:W[iN]))return H0X(W)}throw xAX(W);};
qtX=function(W){return new OK(function(O){var b=W[bN]();if(u7(b.subscribe))return b.subscribe(O);throw new TypeError("ia");})};
nhQ=function(W){return new OK(function(O){for(var b=0;b<W.length&&!O.closed;b++)O.next(W[b]);O.complete()})};
fGX=function(W){return new OK(function(O){W.then(function(b){O.closed||(O.next(b),O.complete())},function(b){return O.error(b)}).then(null,Fy)})};
H0X=function(W){return new OK(function(O){for(var b=W[iN]();!O.closed;){var T=b.next(),L=T.value;T.done?O.complete():O.next(L)}return function(){return u7(b==null?void 0:b.return)&&b.return()}})};
G9e=function(W){return new OK(function(O){tWe(W,O).catch(function(b){return O.error(b)})})};
tWe=function(W,O){var b,T,L,h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:_.LI(m,2,3);var w=W[Symbol.asyncIterator];h=w!==void 0?w.call(W):new $AE(_.S(W));case 5:return _.Y(m,h.next(),8);case 8:T=m.yieldResult;if(T.done){m.jumpTo(3);break}Z=T.value;O.next(Z);m.jumpTo(5);break;case 3:_.hx(m);_.SP(m,9);if(!T||T.done||!(L=h.return)){m.jumpTo(9);break}return _.Y(m,L.call(h),9);case 9:_.hx(m,0,0,1);if(b)throw b.error;_.Zh(m,10,1);break;case 10:_.Zh(m,4);break;case 2:a=_.ID(m);b={error:a};m.jumpTo(3);
break;case 4:O.complete(),_.aD(m)}})};
mI=function(W,O){return O?QR8(W,O):nhQ(W)};
VW1=function(W){return u7(W[W.length-1])?W.pop():void 0};
Ya=function(W){var O=W[W.length-1];return O&&u7(O.schedule)?W.pop():void 0};
EK=function(){var W=_.PD.apply(0,arguments),O=Ya(W);return O?QR8(W,O):mI(W)};
wb=function(W){var O=u7(W)?W:function(){return W};
return new OK(function(b){return b.error(O())})};
Ax=function(W){return function(O){if(u7(O==null?void 0:O.lift))return O.lift(function(b){try{return W(b,this)}catch(T){this.error(T)}});
throw new TypeError("ja");}};
UK=function(){return Ax(function(W,O){var b=null;W._refCount++;var T=new Xp(O,void 0,void 0,void 0,function(){if(!W||W._refCount<=0||0<--W._refCount)b=null;else{var L=W._connection,h=b;b=null;!L||h&&L!==h||L.unsubscribe();O.unsubscribe()}});
W.subscribe(T);T.closed||(b=W.connect())})};
MWe=function(){var W=NAT;var O=O===void 0?0:O;return Ax(function(b,T){T.add(W.schedule(function(){return b.subscribe(T)},O))})};
eP=function(W){return Ax(function(O,b){var T=0;O.subscribe(new Xp(b,function(L){b.next(W.call(void 0,L,T++))}))})};
JAe=function(W){return eP(function(O){return u5E(O)?W.apply(null,_.PG(O)):W(O)})};
OzX=function(W){if(W.length===1){var O=W[0];if(cAQ(O))return{args:O,keys:null};if(O&&typeof O==="object"&&F7P(O)===yAi)return W=Wj2(O),{args:W.map(function(b){return O[b]}),
keys:W}}return{args:W,keys:null}};
pI=function(){var W=_.PD.apply(0,arguments),O=Ya(W),b=VW1(W);W=OzX(W);var T=W.args,L=W.keys;if(T.length===0)return T8([],O);O=new OK(izX(T,O,L?function(h){for(var Z={},a=0;a<h.length;a++)Z[L[a]]=h[a];return Z}:y0));
return b?O.pipe(JAe(b)):O};
izX=function(W,O,b){b=b===void 0?y0:b;return function(T){bzE(O,function(){for(var L=W.length,h=Array(L),Z=L,a=W.map(function(){return!1}),m=!0,w={i$jscomp$260:0};w.i$jscomp$260<L;w={i$jscomp$260:w.i$jscomp$260},w.i$jscomp$260++)bzE(O,function(A){return function(){T8(W[A.i$jscomp$260],O).subscribe(new RD(T,function(X){h[A.i$jscomp$260]=X;
m&&(a[A.i$jscomp$260]=!0,m=!a.every(y0));m||T.next(b(h.slice()))},function(){return--Z===0}))}}(w),T)},T)}};
bzE=function(W,O,b){W?b.add(W.schedule(O)):O()};
jQX=function(W,O,b,T){var L=[],h=0,Z=0,a=!1,m=function(w){h++;jP(b(w,Z++)).subscribe(new Xp(O,function(A){O.next(A)},void 0,function(){h--;
for(var A={};L.length&&h<T;A={bufferedValue:void 0})A.bufferedValue=L.shift(),m(A.bufferedValue);!a||L.length||h||O.complete()}))};
W.subscribe(new Xp(O,function(w){return h<T?m(w):L.push(w)},void 0,function(){a=!0;
!a||L.length||h||O.complete()}));
return function(){L=null}};
KI=function(W,O){var b=b===void 0?Infinity:b;if(u7(O))return KI(function(T,L){return eP(function(h,Z){return O(T,h,L,Z)})(jP(W(T,L)))},b);
typeof O==="number"&&(b=O);return Ax(function(T,L){return jQX(T,L,W,b)})};
TC8=function(W){W=W===void 0?Infinity:W;return KI(y0,W)};
LjQ=function(){var W=_.PD.apply(0,arguments);return TC8(1)(mI(W,Ya(W)))};
vG=function(W){return new OK(function(O){jP(W()).subscribe(O)})};
gb=function(W,O,b){if(u7(b)){var T=b;b=void 0}if(T)return gb(W,O,b).pipe(JAe(T));T=_.S(u7(W.addEventListener)&&u7(W.removeEventListener)?dI1.map(function(Z){return function(a){return W[Z](O,a,b)}}):u7(W.addListener)&&u7(W.removeListener)?hDi.map(SBT(W,O)):u7(W.on)&&u7(W.off)?ZzP.map(SBT(W,O)):[]);
var L=T.next().value,h=T.next().value;return!L&&zkQ(W)?KI(function(Z){return gb(Z,O,b)})(mI(W)):new OK(function(Z){if(!L)throw new TypeError("ka");
var a=function(){var m=_.PD.apply(0,arguments);return Z.next(1<m.length?m:m[0])};
L(a);return function(){return h(a)}})};
SBT=function(W,O){return function(b){return function(T){return W[b](O,T)}}};
QN=function(){var W=_.PD.apply(0,arguments),O=Ya(W);var b=typeof W[W.length-1]==="number"?W.pop():Infinity;return W.length?W.length===1?jP(W[0]):TC8(b)(mI(W,O)):oD};
adi=function(W){return W.length===1&&IdT(W[0])?W[0]:W};
mIX=function(){var W=adi(_.PD.apply(0,arguments));return Ax(function(O,b){var T=[O].concat(_.PG(W)),L=function(){if(!b.closed)if(T.length>0){try{var h=jP(T.shift())}catch(a){L();return}var Z=new Xp(b,void 0,cD,cD);b.add(h.subscribe(Z));Z.add(L)}else b.complete()};
L()})};
ka=function(W){return Ax(function(O,b){var T=0;O.subscribe(new Xp(b,function(L){return W.call(void 0,L,T++)&&b.next(L)}))})};
E4X=function(){var W=_.PD.apply(0,arguments);W=adi(W);return W.length===1?jP(W[0]):new OK(YBP(W))};
YBP=function(W){return function(O){for(var b=[],T={i$jscomp$263:0};b&&!O.closed&&T.i$jscomp$263<W.length;T={i$jscomp$263:T.i$jscomp$263},T.i$jscomp$263++)b.push(jP(W[T.i$jscomp$263]).subscribe(new Xp(O,function(L){return function(h){if(b){for(var Z=0;Z<b.length;Z++)Z!==L.i$jscomp$263&&b[Z].unsubscribe();b=null}O.next(h)}}(T))))}};
wDP=function(){var W=_.PD.apply(0,arguments),O=VW1(W),b=adi(W);return b.length?new OK(function(T){var L=b.map(function(){return[]}),h=b.map(function(){return!1});
T.add(function(){L=h=null});
for(var Z={sourceIndex$jscomp$1:0};!T.closed&&Z.sourceIndex$jscomp$1<b.length;Z={sourceIndex$jscomp$1:Z.sourceIndex$jscomp$1},Z.sourceIndex$jscomp$1++)jP(b[Z.sourceIndex$jscomp$1]).subscribe(new Xp(T,function(a){return function(m){L[a.sourceIndex$jscomp$1].push(m);L.every(function(w){return w.length})&&(m=L.map(function(w){return w.shift()}),T.next(O?O.apply(null,_.PG(m)):m),L.some(function(w,A){return!w.length&&h[A]})&&T.complete())}}(Z),void 0,function(a){return function(){h[a.sourceIndex$jscomp$1]=
!0;
!L[a.sourceIndex$jscomp$1].length&&T.complete()}}(Z)));
return function(){L=h=null}}):oD};
Avh=function(W){var O,b,T;return!!W&&typeof W.active==="boolean"&&typeof((O=W.clock)==null?void 0:O.now)==="function"&&((b=W.clock)==null?void 0:b.timeline)!==void 0&&!((T=W.lastMeasurement)==null||!T.timestamp)&&typeof W.equivalentTo==="function"&&typeof W.extrapolateToNow==="function"&&typeof W.extrapolateToTime==="function"&&typeof W.map==="function"&&typeof W.joinWith==="function"};
XDP=function(W){function O(b){return typeof b==="boolean"||typeof b==="string"||typeof b==="number"||b===void 0||b===null}
return O(W)?!0:Array.isArray(W)?W.every(O):typeof W==="object"?Object.keys(W).every(function(b){return typeof b==="string"})&&Object.values(W).every(function(b){return Array.isArray(b)?b.every(O):O(b)}):!1};
UI2=function(W){if(XDP(W))return W;if(Avh(W))return{lastMeasurement:{value:UI2(W.lastMeasurement.value),timestamp:sK(W.lastMeasurement.timestamp,new BG(0,W.lastMeasurement.timestamp.timeline))},active:W.active};try{return JSON.parse(JSON.stringify(W))}catch(O){}return String(W)};
rb=function(W,O){return function(b){return new OK(function(T){return b.subscribe(function(L){W.timeExecution(O,function(){T.next(L)})()},function(L){W.timeExecution(O,function(){T.error(L)})()},function(){W.timeExecution(O,function(){T.complete()})()})})}};
ldX=function(W,O){var b=!1;return new OK(function(T){var L=W.setTimeout(function(){b=!0;T.next(!0);T.complete()},O);
return function(){b||W.clearTimeout(L)}})};
eDX=function(W){W=W.global;if(W.fetchLater)return W.fetchLater.bind(W)};
Dh=function(W){return Ax(function(O,b){var T=null,L=!1,h;T=O.subscribe(new Xp(b,void 0,function(Z){h=jP(W(Z,Dh(W)(O)));T?(T.unsubscribe(),T=null,h.subscribe(b)):L=!0}));
L&&(T.unsubscribe(),T=null,h.subscribe(b))})};
P7e=function(W,O,b){return function(T,L){var h=b,Z=O,a=0;T.subscribe(new Xp(L,function(m){var w=a++;Z=h?W(Z,m,w):(h=!0,m);L.next(Z)},void 0,void 0))}};
pDh=function(W){W=W===void 0?null:W;return Ax(function(O,b){var T=!1;O.subscribe(new Xp(b,function(L){T=!0;b.next(L)},void 0,function(){T||b.next(W);
b.complete()}))})};
xa=function(){return Ax(function(W,O){W.subscribe(new Xp(O,cD))})};
z8=function(W){return Ax(function(O,b){O.subscribe(new Xp(b,function(){return b.next(W)}))})};
CI=function(W){return W<=0?function(){return oD}:Ax(function(O,b){var T=0;
O.subscribe(new Xp(b,function(L){++T<=W&&(b.next(L),W<=T&&b.complete())}))})};
qE=function(W){var O=O===void 0?y0:O;var b;W=(b=W)!=null?b:RDh;return Ax(function(T,L){var h,Z=!0;T.subscribe(new Xp(L,function(a){var m=O(a);if(Z||!W(h,m))Z=!1,h=m,L.next(a)}))})};
RDh=function(W,O){return W===O};
v41=function(W){W=W===void 0?KjP:W;return Ax(function(O,b){var T=!1;O.subscribe(new Xp(b,function(L){T=!0;b.next(L)},void 0,function(){return T?b.complete():b.error(W())}))})};
KjP=function(){return new g4h};
nI=function(){var W=_.PD.apply(0,arguments);return function(O){return LjQ(O,EK.apply(null,_.PG(W)))}};
o4X=function(W){return Ax(function(O,b){var T=0;O.subscribe(new Xp(b,function(L){W.call(void 0,L,T++,O)||(b.next(!1),b.complete())},void 0,function(){b.next(!0);
b.complete()}))})};
QQX=function(){return Ax(function(W,O){var b=[];W.subscribe(new Xp(O,function(T){b.push(T);1<b.length&&b.shift()},void 0,function(){for(var T=_.S(b),L=T.next();!L.done;L=T.next())O.next(L.value);
O.complete()},function(){b=null}))})};
kbE=function(W,O){var b=arguments.length>=2;return function(T){return T.pipe(W?ka(function(L,h){return W(L,h,T)}):y0,QQX(),b?pDh(O):v41(function(){return new g4h}))}};
G8=function(W){var O=u7(W)?W:function(){return W};
return u7()?Ax(function(b,T){var L=O();(void 0)(L).subscribe(T).add(b.subscribe(L))}):function(b){var T=new fI(b,O);
u7(b==null?void 0:b.lift)&&(T.lift=b.lift);T.source=b;T.subjectFactory=O;return T}};
tx=function(W){var O=new HG(W,void 0,void 0);return function(b){return G8(function(){return O})(b)}};
$a=function(W,O){return Ax(P7e(W,O,arguments.length>=2))};
VN=function(){var W=_.PD.apply(0,arguments),O=Ya(W);return Ax(function(b,T){(O?LjQ(W,b,O):LjQ(W,b)).subscribe(T)})};
ME=function(W){return Ax(function(O,b){var T=null,L=0,h=!1;O.subscribe(new Xp(b,function(Z){var a;(a=T)==null||a.unsubscribe();a=L++;jP(W(Z,a)).subscribe(T=new Xp(b,function(m){return b.next(m)},void 0,function(){T=null;
h&&!T&&b.complete()}))},void 0,function(){(h=!0,!T)&&b.complete()}))})};
uN=function(W,O){O=O===void 0?!1:O;return Ax(function(b,T){var L=0;b.subscribe(new Xp(T,function(h){var Z=W(h,L++);(Z||O)&&T.next(h);!Z&&T.complete()}))})};
Jx=function(W,O,b){var T=u7(W)||O||b?{next:W,error:O,complete:b}:W;return T?Ax(function(L,h){L.subscribe(new Xp(h,function(Z){var a;(a=T.next)==null||a.call(T,Z);h.next(Z)},function(Z){var a;
(a=T.error)==null||a.call(T,Z);h.error(Z)},function(){var Z;
(Z=T.complete)==null||Z.call(T);h.complete()}))}):y0};
sQ8=function(){var W=_.PD.apply(0,arguments),O=VW1(W);return Ax(function(b,T){for(var L=W.length,h=Array(L),Z=W.map(function(){return!1}),a=!1,m={i$jscomp$273:0};m.i$jscomp$273<L;m={i$jscomp$273:m.i$jscomp$273},m.i$jscomp$273++)jP(W[m.i$jscomp$273]).subscribe(new Xp(T,function(w){return function(A){h[w.i$jscomp$273]=A;
a||Z[w.i$jscomp$273]||(Z[w.i$jscomp$273]=!0,(a=Z.every(y0))&&(Z=null))}}(m),void 0,cD));
b.subscribe(new Xp(T,function(w){a&&(w=[w].concat(_.PG(h)),T.next(O?O.apply(null,_.PG(w)):w))}))})};
BCi=function(W){var O=[],b=0,T;for(T in W)O[b++]=T;return O};
rvO=function(W,O){for(var b in W)if(W[b]==O)return!0;return!1};
DIi=function(W,O,b){for(var T in W)if(O.call(b,W[T],T,W))return T};
xI2=function(W){if(!W||typeof W!=="object")return W;if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);if(W instanceof Date)return new Date(W.getTime());var O=Array.isArray(W)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(W)||W instanceof DataView?{}:new W.constructor(W.length),b;for(b in W)O[b]=xI2(W[b]);return O};
zD2=function(W){var O=arguments.length;if(O==1&&Array.isArray(arguments[0]))return zD2.apply(null,arguments[0]);if(O%2)throw Error("oa");for(var b={},T=0;T<O;T+=2)b[arguments[T]]=arguments[T+1];return b};
C78=function(W){var O=arguments.length;if(O==1&&Array.isArray(arguments[0]))return C78.apply(null,arguments[0]);for(var b={},T=0;T<O;T++)b[arguments[T]]=!0;return b};
_.cG=function(W){return new ekE(W[0].toLowerCase())};
qBX=function(W){try{return new URL(W,window.document.baseURI)}catch(O){return new URL("about:invalid")}};
n4E=function(W,O){var b=O.createRange();b.selectNode(O.body);W=oQ(W);return b.createContextualFragment(Q0(W))};
fdX=function(W){W=W.nodeName;return typeof W==="string"?W:"FORM"};
GbX=function(W){W=W.nodeType;return W===1||typeof W!=="number"};
Fp=function(W,O,b){W.setAttribute(O,b)};
HzX=function(W){return W.parts.map(function(O){var b=O.descriptor;return""+O.url+(b?" "+b:"")}).join(" , ")};
_.yN=function(W){var O=_.PD.apply(1,arguments);if(O.length===0)return _.SL(W[0]);for(var b=W[0],T=0;T<O.length;T++)b+=encodeURIComponent(O[T])+W[T+1];return _.SL(b)};
_.WQ=function(W,O){W=_.Zd(W).toString();var b=W.split(/[?#]/),T=/[?]/.test(W)?"?"+b[1]:"";return tL1(b[0],T,/[#]/.test(W)?"#"+(T?b[2]:b[1]):"",O)};
tL1=function(W,O,b,T){function L(Z,a){Z!=null&&(Array.isArray(Z)?Z.forEach(function(m){return L(m,a)}):(O+=h+encodeURIComponent(a)+"="+encodeURIComponent(Z),h="&"))}
var h=O.length?"&":"?";T.constructor===Object&&(T=Object.entries(T));Array.isArray(T)?T.forEach(function(Z){return L(Z[1],Z[0])}):T.forEach(L);
return _.SL(W+O+b)};
OM=function(W,O,b,T){this.top=W;this.right=O;this.bottom=b;this.left=T};
$I8=function(W){W=W.global;if(W.PendingGetBeacon)return W.PendingGetBeacon};
bi=function(W){return function(O){return O.pipe(VL8(W,G8(new ii)))}};
jp=function(W){return function(O){return O.pipe(VL8(W,tx(1)))}};
VL8=function(W,O){function b(T){return new OK(function(L){return T.subscribe(function(h){TK(W,function(){return void L.next(h)},3)},function(h){TK(W,function(){return void L.error(h)},3)},function(){TK(W,function(){return void L.complete()},3)})})}
return WG(b,MWe(),O,UK(),b)};
uyP=function(W){var O=NCE(W);return O===null?new Lw(null):O.pipe(eP(function(b){b=b.serialize();if(MLX)b=_.i1.btoa(b);else{for(var T=[],L=0,h=0;h<b.length;h++){var Z=b.charCodeAt(h);Z>255&&(T[L++]=Z&255,Z>>=8);T[L++]=Z}b=_.WM(T)}return b}),CI(1),jp(W.queue))};
Jv2=function(W){var O=O===void 0?{}:O;if(typeof Event==="function")return new Event(W,O);if(typeof document!=="undefined"){var b=document.createEvent("CustomEvent");b.initCustomEvent(W,O.bubbles||!1,O.cancelable||!1,O.detail);return b}throw Error();};
cvO=function(W){return typeof W==="string"?document.getElementById(W):W};
yvX=function(W){var O=!1;O=O===void 0?!1:O;if(W.tagName==="IMG"){if(W.complete&&(!W.naturalWidth||!W.naturalHeight))return!0;var b;if(O&&((b=W.style)==null?void 0:b.display)==="none")return!0}var T,L;return Fjh.test((T=W.getAttribute("width"))!=null?T:"")&&Fjh.test((L=W.getAttribute("height"))!=null?L:"")};
WI8=function(W,O){if(W.tagName==="IMG")return W.naturalWidth&&W.naturalHeight?!0:!1;try{if(W.readyState)var b=W.readyState;else{var T,L;b=(T=W.contentWindow)==null?void 0:(L=T.document)==null?void 0:L.readyState}return b==="complete"}catch(h){return O===void 0?!1:O}};
OIh=function(W){W||(W=function(O,b,T){O.addEventListener(b,T)});
return W};
TbP=function(W,O){var b=iIE();b=b===void 0?new bIQ:b;if(W=cvO(W)){var T=OIh(T);for(var L=!1,h=function(r){L||(L=!0,O(r))},Z,a=2,m=0;m<jDT.length;++m)if(jDT[m]===W.tagName){a=3;
Z=[W];break}Z||(Z=W.querySelectorAll(jDT.join(",")));var w=0,A=0,X=!0,l=W=!1;m={};for(var p=0;p<Z.length;m={isImg:void 0},p++){var K=Z[p];if(!yvX(K))if(m.isImg=K.tagName==="IMG",WI8(K,b.crossDomainLoadedDefault))W=!0,m.isImg&&(X=!0);else{w++;var k=function(r){return function(q){w--;!w&&X&&h(a);r.isImg&&(q=q&&q.type==="error",A--,q||(X=!0),!A&&l&&X&&h(a))}}(m);
T(K,"load",k);m.isImg&&(A++,T(K,"error",k))}}A===0&&(X=!0);Z=null;Z=_.i1.document.readyState==="complete";if(w===0&&!W&&Z)a=5;else if(w||!W){T(_.i1,"load",function(){!b.pendingImagesBlockLoad||!A&&X?h(4):l=!0});
return}h(a)}};
LIq=function(W,O,b){if(W)for(var T=0;W!=null&&T<500&&!b(W);++T)W=O(W)};
dET=function(W,O){LIq(W,function(b){try{return b===b.parent?null:b.parent}catch(T){}return null},O)};
hv8=function(W,O){if(W.tagName=="IFRAME")O(W);else{W=W.querySelectorAll("IFRAME");for(var b=0;b<W.length&&!O(W[b]);++b);}};
SKq=function(W){return(W=W.ownerDocument)&&(W.parentWindow||W.defaultView)||null};
ZI2=function(W,O,b){try{var T=JSON.parse(b.data)}catch(Z){}if(typeof T==="object"&&T&&T.type==="creativeLoad"){var L=SKq(W);if(b.source&&L){var h;dET(b.source,function(Z){try{if(Z.parent===L)return h=Z,!0}catch(a){}});
h&&hv8(W,function(Z){if(Z.contentWindow===h)return O(T),!0})}}};
IhX=function(W){return typeof W==="string"?document.getElementById(W):W};
EaE=function(){var W={};return W[0]=_.yN(ahT,"current"),W[1]=_.yN(mEe),W[2]=_.yN(YKh),W};
d4=function(W,O){return W.left===O.left&&W.top===O.top&&W.width===O.width&&W.height===O.height};
wGi=function(W,O){return{left:Math.max(W.left,O.left),top:Math.max(W.top,O.top),width:Math.max(0,Math.min(W.left+W.width,O.left+O.width)-Math.max(W.left,O.left)),height:Math.max(0,Math.min(W.top+W.height,O.top+O.height)-Math.max(W.top,O.top))}};
AxQ=function(W,O){return{left:Math.round(W.left+O.x),top:Math.round(W.top+O.y),width:W.width,height:W.height}};
XGQ=function(W,O,b){if(W&&O!==null&&O!=O.top){if(!O.top)return new _.hU(-12245933,-12245933);O=O.top}try{return(b===void 0?0:b)?(new _.hU(O.innerWidth,O.innerHeight)).round():_.Sp(O).round()}catch(T){return new _.hU(-12245933,-12245933)}};
UEe=function(W,O,b){try{if(W){if(!O.top)return new OM(-12245933,-12245933,-12245933,-12245933);O=O.top}var T=XGQ(W,O,b),L=T.height,h=T.width;if(h===-12245933)return new OM(h,h,h,h);var Z=ZI(IG(O.document)),a=Z.x,m=Z.y;return new OM(m,a+h,m+L,a)}catch(w){return new OM(-12245933,-12245933,-12245933,-12245933)}};
lh8=function(W){var O;return(O=W.google_tag_data)!=null?O:W.google_tag_data={}};
evE=function(W){var O,b;return typeof((O=W.navigator)==null?void 0:(b=O.userAgentData)==null?void 0:b.getHighEntropyValues)==="function"};
pGi=function(W){if(!evE(W))return null;var O=lh8(W);if(O.uach_promise)return O.uach_promise;W=W.navigator.userAgentData.getHighEntropyValues(PNQ).then(function(b){O.uach!=null||(O.uach=b);return b});
return O.uach_promise=W};
xEe=function(W){var O;return Rv2(KIi(vaT(gaT(oaE(QDX(k8P(sDX(BbO(new rxT,W.architecture||""),W.bitness||""),W.mobile||!1),W.model||""),W.platform||""),W.platformVersion||""),W.uaFullVersion||""),((O=W.fullVersionList)==null?void 0:O.map(function(b){var T=new DE1;T=_.aG(T,1,b.brand);return _.aG(T,2,b.version)}))||[]),W.wow64||!1)};
zvT=function(W){var O,b;return(b=(O=pGi(W))==null?void 0:O.then(function(T){return xEe(T)}))!=null?b:null};
CN1=function(W,O){return new OK(function(b){var T=!1,L=Array(O.length);L.fill(void 0);var h=new Set,Z=new Set,a=function(X,l){W.running?(L[l]=X,h.add(l),T||(T=!0,TK(W,function(){T=!1;b.next(_.Ov(L))},1))):b.error(new mq(l))},m=function(X,l){Z.add(l);
h.add(l);TK(W,function(){b.error(X)},1)},w=function(X){Z.add(X);
TK(W,function(){Z.size===O.length&&b.complete()},1)},A=O.map(function(X,l){return X.subscribe(function(p){return void a(p,l)},function(p){return void m(p,l)},function(){return void w(l)})});
return function(){A.forEach(function(X){return void X.unsubscribe()})}})};
nah=function(W,O,b){function T(){if(O.debugChannel){var r=O.debugChannel,q=r.next;var f={creativeId:O.debugNames.getName(b),requiredSignals:L,signals:Object.assign({},h),hasPrematurelyCompleted:Z,errorMessage:a,erroredSignalKey:m};f={specMajor:2,specMinor:0,specPatch:0,timestamp:sK(O.timeProvider.now(),new BG(0,O.timeProvider.timeline)),instanceId:O.debugNames.getName(O.symbol),creativeState:f};q.call(r,f)}}
for(var L=Object.keys(W),h={},Z=!1,a=null,m=null,w={},A=new Set,X=[],l=[],p=_.S(L),K=p.next(),k={};!K.done;k={key$jscomp$374:void 0},K=p.next())k.key$jscomp$374=K.value,K=W[k.key$jscomp$374],K instanceof Lw?(w[k.key$jscomp$374]=K.value,A.add(k.key$jscomp$374),O.debugChannel&&(h[String(k.key$jscomp$374)]=UI2(K.value))):(K=K.pipe(qE(function(r,q){return Avh(r)||Avh(q)?!1:r===q}),eP(function(r){return function(q){O.debugChannel&&(h[String(r.key$jscomp$374)]=UI2(q),T());
var f={};return f[r.key$jscomp$374]=q,f}}(k)),Dh(function(r){return function(q){if(q instanceof mq)throw new qKe(String(r.key$jscomp$374));
throw q;}}(k)),Jx(function(r){return function(){A.add(r.key$jscomp$374)}}(k),function(r){return function(q){m=String(r.key$jscomp$374);
a=String(q);T()}}(k),function(r){return function(){A.has(r.key$jscomp$374)||(Z=!0,T())}}(k))),l.push(k.key$jscomp$374),X.push(K));
(W=Object.keys(h).length>0)&&T();p=CN1(O.queue,X).pipe(Dh(function(r){if(r instanceof mq)throw new Y3(String(l[r.inputObservableIndex]));throw r;}),eP(function(r){return Object.freeze(Object.assign.apply(Object,[{},
w].concat(_.PG(r))))}));
return(X=X.length>0)&&W?QN(EK(Object.freeze(w)),p):X?p:EK(Object.freeze(w))};
fh2=function(W,O,b,T,L){return W.performanceMonitor.timeExecution.bind(W.performanceMonitor)(733,function(){var h={};try{return O.pipe(Dh(function(Z){T(Object.assign({},h,{error:Z}));return oD}),KI(function(Z){try{var a=b(W,Z)}catch(w){return T(Object.assign({},h,{error:w instanceof Error?w:String(w)})),oD}var m={};
return nah(a,W,Z.symbol).pipe(Jx(function(w){m=w}),tx(1),UK()).pipe(L,Dh(function(w){T(Object.assign({},m,{error:w}));
return oD}),nI(void 0),eP(function(){return!0}))})).pipe($a(function(Z){return Z+1},0),Dh(function(Z){T(Object.assign({},h,{error:Z}));
return oD}))}catch(Z){return T(Object.assign({},h,{error:Z})),oD}})()};
AU=function(W){var O=new Map;if(typeof W!=="object"||W===null)return O;Object.values(W).forEach(function(b){b&&typeof b.extrapolateToNow==="function"&&(O.has(b.clock.timeline)||O.set(b.clock.timeline,b.clock.now()))});
return O};
G8O=function(W,O){return typeof W==="string"?encodeURIComponent(W):typeof W==="number"?String(W):Array.isArray(W)?W.map(function(b){return G8O(b,O)}).join(","):W instanceof BG?W.toString():W&&typeof W.extrapolateToNow==="function"?G8O(W.extrapolateUsingTimestampMap(O).value,O):W===!0?"1":W===!1?"0":W===void 0||W===null?null:W instanceof HIX?tPQ(W):[W.top,
W.left,W.top+W.height,W.left+W.width].join()};
XH=function(W,O){W=Object.entries(W).map(function(b){var T=_.S(b);b=T.next().value;T=T.next().value;T=G8O(T,O);return T===null?"":b+"="+T}).filter(function(b){return b!==""});
return W.length?W.join("&"):""};
NbX=function(W,O){var b=$EE,T=VPQ;O=O===void 0?.01:O;return function(L){O>0&&Math.random()<=O&&(W.global.HTMLFencedFrameElement&&W.global.fence&&typeof W.global.fence.reportEvent==="function"&&W.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),L=Object.assign({},L,{errorMessage:L.error instanceof Error&&L.error.message?L.error.message:String(L.error),errorStack:L.error instanceof Error&&L.error.stack?String(L.error.stack):null,errorName:L.error instanceof
Error&&L.error.name?String(L.error.name):null,errorContext:String(W.performanceMonitor.timedFunctionContext),errorEscapedQueryId:L.escapedQueryId}),b(Object.assign({},L,{payloadMapper:function(){return function(h){try{return T(Object.assign({},h))}catch(Z){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),AU(L)).forEach(function(h){W.beaconFactory.makeBeacon(h).sendNow()}))}};
MPe=function(){var W=_.PD.apply(0,arguments);return function(O){var b=O.pipe(tx(1),UK());O=W.map(function(T){return b.pipe(T,nI(!0))});
return pI(O).pipe(CI(1),xa())}};
upT=function(){var W=_.PD.apply(0,arguments);return function(O){var b=O.pipe(tx(1),UK());O=W.map(function(T){return b.pipe(T,nI(!0))});
return QN.apply(null,_.PG(O)).pipe(CI(1),xa())}};
JxX=function(W,O){return function(b){var T=b.pipe(tx(1),UK());b=T.pipe(W,nI(!0));T=T.pipe(WG(O,tx(),UK()),nI(!0));b=pI([b,T]);return E4X(b,T).pipe(CI(1),xa())}};
cx8=function(W,O,b){b(!0)};
FIi=function(W,O){return WG(ME(function(b){var T=W(b),L=O(b),h={};return T&&L&&h?new OK(function(Z){L(T,h,function(a){Z.next(Object.assign({},b,{canEmit:a}));Z.complete()});
return function(){}}):UM}),ka(function(b){return b.canEmit}))};
yxO=function(W){var O={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(b){return b.pipe(ME(function(T){return new OK(function(L){function h(){a.disconnect();m.unsubscribe()}
var Z=W.MutationObserver;if(Z&&T.ref!==void 0){var a=new Z(function(w){L.next(w)});
a.observe(T.ref,O);var m=T.JSC$7364_released.subscribe(h);return h}})}))}};
Wq1=function(W){if(W.measurementDeferralState===3)return null;if(W.timeOnScreenReason!==void 0){var O=W.creativeFound===!1?"n":null;if(O!==null)return O}return W.geometricMeasurementErrors instanceof li?"msf":W.contextValidationErrors instanceof ep?"c":W.contextVisibilityKnown===!1?"pv":W.geometricMeasurementErrors||W.contextValidationErrors?"x":null};
pw=function(W,O){return W.replace(Ow8,function(b,T){try{var L=_.PQ.get(O,T);if(L==null||L.toString()==null)return b;L=L.toString();if(L==""||!_.Zi(L==null?"":String(L)))return encodeURIComponent(L).replace(/%2C/g,",")}catch(h){}return b})};
iwX=function(W,O){var b=Object.assign({},W),T=W.userAgentClientHints;b=(delete b.userAgentClientHints,b);b=W.payloadMapper(b);var L=XH(b,O);return _.RG(W.urlPrefixes,function(h){var Z="";typeof T==="string"&&(Z="&"+XH({uach:T},O));var a={};return pw(h,(a.VIEWABILITY=L,a))+Z})};
$EE=function(W,O){var b=W.payloadMapper(W),T=XH(b,O);return T?_.RG(W.urlPrefixes,function(L){L=L.indexOf("?")>=0?L:L+"?";L="?&".indexOf(L.slice(-1))>=0?L:L+"&";return L+T}):W.urlPrefixes};
bwq=function(){return WG(ka(function(W){return W!==void 0}),eP(function(W){return W}))};
jG2=function(W){return WG(eP(function(){return!0}),VN(!1),jp(W))};
T4T=function(W){return W.length<=0?oD:pI(W.map(function(O){var b=0;return O.pipe(eP(function(T){return{index:b++,value:T}}))})).pipe(ka(function(O){return O.every(function(b){return b.index===O[0].index})}),eP(function(O){return O.map(function(b){return b.value})}))};
Lqq=function(W,O){W.currentState&&(W.previousState=W.currentState);W.currentState=O;W.previousState&&W.previousState.value?(O=Math.max(0,sK(O.timestamp,W.previousState.timestamp)),W.totalTime+=O,W.consecutiveTime+=O):W.consecutiveTime=0;return W};
dGE=function(){return WG($a(Lqq,{totalTime:0,consecutiveTime:0}),eP(function(W){return W.totalTime}))};
h5h=function(){return WG($a(Lqq,{totalTime:0,consecutiveTime:0}),eP(function(W){return W.consecutiveTime}))};
SMX=function(W,O){return function(b){return T4T(O.map(function(T){return b.pipe(W(T))}))}};
ZwX=function(){var W;return WG(Jx(function(O){return void(W=O.timestamp)}),h5h(),eP(function(O){return{timestamp:W,
value:Math.round(O)}}))};
IIX=function(W,O){return d4(W.topWindowViewportExternalGeometry,O.topWindowViewportExternalGeometry)&&d4(W.elementGeometry,O.elementGeometry)&&d4(W.exposedViewportLocalGeometry,O.exposedViewportLocalGeometry)&&d4(W.intersectionGeometry,O.intersectionGeometry)&&W.elementGeometrySourceName===O.elementGeometrySourceName&&W.measurementRequests===O.measurementRequests&&W.viewportGeometrySourceName===O.viewportGeometrySourceName&&W.viewportLocalAppOffset.x===O.viewportLocalAppOffset.x&&W.viewportLocalAppOffset.y===
O.viewportLocalAppOffset.y};
YM1=function(W,O){return function(b){return function(T){var L=T.pipe(G8(new ii),UK());T=b.element.pipe(qE());L=L.pipe(eP(function(h){return h.value}));
return pI([T,L,O]).pipe(eP(function(h){var Z=_.S(h);h=Z.next().value;var a=Z.next().value;Z=Z.next().value;if(h.ref===void 0)var m={top:0,left:0,width:0,height:0};else{m=h.ref.getBoundingClientRect();var w=h.ref,A=W.global,X=new _.Kw(0,0),l=vQ(_.g4(w));if(oG(l,"parent")){do{if(l==A)var p=_.Qr(w);else p=aI2(w),p=new _.Kw(p.left,p.top);X.x+=p.x;X.y+=p.y}while(l&&l!=A&&l!=l.parent&&(w=l.frameElement)&&(l=l.parent))}m={top:X.y,left:X.x,width:m.width,height:m.height}}m=AxQ(m,a.viewportLocalAppOffset);
A=wGi(m,a.exposedViewportLocalGeometry);X=W.timeProvider.now();l=Object;w=l.assign;if(Z!==2||W.inCrossDomainIframe||A.width<=0||A.height<=0)var K=!1;else try{var k=W.document.elementFromPoint(A.left+A.width/2,A.top+A.height/2);K=k?!mG2(k,h):!1}catch(r){K=!1}return{timestamp:X,value:w.call(l,{},a,{elementGeometrySourceName:"geo",intersectionGeometry:K?k3.intersectionGeometry:A,elementGeometry:m})}}),bi(W.queue))}}};
mG2=function(W,O,b){b=b===void 0?0:b;return W.ref===void 0||O.ref===void 0?!1:W.ref===O.ref||_.sM(O.ref,function(T){return T===W.ref})?!0:O.ref.ownerDocument&&O.ref.ownerDocument.defaultView&&O.ref.ownerDocument.defaultView===O.ref.ownerDocument.defaultView.top?!1:b<10&&O.ref.ownerDocument&&O.ref.ownerDocument.defaultView&&O.ref.ownerDocument.defaultView.frameElement?mG2(W,new BQ(O.ref.ownerDocument.defaultView.frameElement),b+1):!0};
AUT=function(W){return function(O){return O.pipe(W.ResizeObserver?E3E(W):wQ8(W),tx(1),UK())}};
E3E=function(W){return function(O){return O.pipe(ME(function(b){var T=W.ResizeObserver;if(!T||b.ref===void 0)return EK(k3.elementGeometry);var L=(new OK(function(h){function Z(){b.ref!==void 0&&a.unobserve(b.ref);a.disconnect();m.unsubscribe()}
if(b.ref===void 0)return h.complete(),function(){};
var a=new T(function(w){w.forEach(function(A){h.next(A)})});
a.observe(b.ref);var m=b.JSC$7364_released.subscribe(Z);return Z})).pipe(rb(W.performanceMonitor,736),eP(function(h){return h.contentRect}));
return QN(EK(b.ref.getBoundingClientRect()),L)}),qE(d4))}};
wQ8=function(W){return function(O){var b=O.pipe(yxO(W)),T=W.onResize;b=QN(O.pipe(eP(function(){return Jv2("resize")})),b,T);
return pI(O,b).pipe(rb(W.performanceMonitor,737),eP(function(L){L=_.S(L).next().value;return L.ref===void 0?void 0:L.ref.getBoundingClientRect()}),bwq(),qE(d4))}};
lIX=function(W,O){var b=XQ1(W,O).pipe(tx(1),UK());return function(T){return function(L){L=L.pipe(ME(function(h){return h.element}),qE());
return pI([b,L]).pipe(ME(function(h){var Z=_.S(h);h=Z.next().value;Z=Z.next().value;return UGq(W,h.intersectionObserver,AUT(W),h.observations,T,h.flushRecords,Z)}),bi(W.queue))}}};
e5q=function(W){return eP(function(O){return O.value.viewportGeometrySourceName!=="nio"?O:Object.assign({},O,{value:Object.assign({},O.value,{exposedViewportLocalGeometry:r4(W,!0),topWindowViewportExternalGeometry:r4(W,!0)})})})};
Pii=function(W,O){return EK(O).pipe(W,eP(function(){return O}))};
XQ1=function(W,O){return W.timeProvider.timeline!==pQh?wb(new li(2)):W.MutationObserver?typeof IntersectionObserver==="undefined"?wb(new li(0)):(new OK(function(b){var T=new ii,L=new DI(T.next.bind(T),{threshold:[].concat(_.PG(O))});b.next({observations:T.pipe(rb(W.performanceMonitor,735)),intersectionObserver:L,flushRecords:function(h){h=L.takeRecords(h);h.length>0&&T.next(h)}})})).pipe(CI(1),tx(1),UK()):wb(new li(1))};
R5h=function(W){return C_i(W.sort(function(O,b){return O.time-b.time}),NAT)};
UGq=function(W,O,b,T,L,h,Z){return new OK(function(a){function m(){K||(K=!0,Z.ref!==void 0&&O.unobserve(L,Z.ref),A.unsubscribe(),p.unsubscribe(),l.unsubscribe(),k.unsubscribe())}
if(Z.ref!==void 0){Kq8(O,L);O.observe(L,Z.ref);var w=new x3({timestamp:W.timeProvider.now(),value:Object.assign({},k3,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),A=T.pipe(KI(function(r){return R5h(r)}),ka(function(r){return r.target===Z.ref}),eP(function(r){return{timestamp:new BG(r.time,pQh),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:r.rootBounds||Cw,topWindowViewportExternalGeometry:r.rootBounds||r4(W,!0),measurementRequests:X,elementGeometrySourceName:"nio",intersectionGeometry:r.intersectionRect,elementGeometry:r.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:r.isIntersecting,isV2Visible:r.isVisible}}}),G8(w),UK()).subscribe(a),X=new ii,l=X.subscribe(function(){h(L);
a.next({timestamp:W.timeProvider.now(),value:w.value.value});Z.ref!==void 0&&(O.unobserve(L,Z.ref),O.observe(L,Z.ref))}),p=Pii(b,Z).subscribe(function(){X.next()}),K=!1,k=Z.JSC$7364_released.subscribe(function(){return m()});
return m}})};
v3X=function(W,O){var b=W.getOnBackgrounded().pipe(eP(function(){return"b"}));
return E4X(O,b).pipe(CI(1),jp(W.queue))};
qG=function(W){return function(O){var b;return O.pipe(Jx(function(T){return void(b=T.timestamp)}),eP(function(T){return T.value}),W,eP(function(T){return{timestamp:b,
value:T}}))}};
g3Q=function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.elementGeometry.width*W.elementGeometry.height)};
nw=function(W,O,b){b=b===void 0?function(T,L){return T===L}:b;
return W.timestamp.equals(O.timestamp)&&b(W.value,O.value)};
GK=function(W,O){return O.pipe(eP(function(b){return new fw(W.timeProvider,{timestamp:W.timeProvider.now(),value:b})}))};
o3X=function(W){return function(O){return O.pipe(sQ8(W),eP(function(b){var T=_.S(b);b=T.next().value;T=T.next().value;var L=b.value;return{timestamp:b.timestamp,value:L>=1?!0:L<=0?!1:L>=T}}))}};
kK1=function(){return WG(ka(function(W,O){return O>0}),QG2,VN(-1),qE())};
sGX=function(W,O,b){return W?pI([O,b]).pipe(ka(function(T){var L=_.S(T);T=L.next().value;L=L.next().value;return T.timestamp.equals(L.timestamp)}),eP(function(T){var L=_.S(T);
T=L.next().value;L=L.next().value;return T.value>L.value?T:L})):O};
DGX=function(W){return function(O){var b=O.pipe(B4Q),T=O.pipe(rU1);return W instanceof OK?W.pipe(ME(function(L){return sGX(L,b,T)})):sGX(W.value,b,T)}};
$Gi=function(W,O,b,T){var L=T.geometryIsOccluded,h=T.exposureThreshold,Z=T.wasLargeAdAtRender,a=T.allowLargeAdThreshold,m=T.largeAdExposureThreshold,w=T.mayUseViewportShareExposure,A=T.hasMeasurementStarted;T=T.useIntersectionObserverV2;O=xGh(W,b,O);b=z5T(W,b);T=CiX(O,T);var X=qM8(W,L,w,O),l=X.pipe(eP(function(jQ){return jQ.value}),qE(),jp(W),$a(function(jQ,y){return Math.max(jQ,y)},0)),p=X.pipe(eP(function(jQ){return jQ.value}),kK1(),jp(W)),K=O.pipe(n3T,eP(function(jQ){return jQ.value}),CI(2),qE(),
jp(W));
Z=fIE(W,O,Z,a);var k=Z.pipe(VN(!1),qE(),eP(function(jQ){return jQ?m:h}));
a=X.pipe(o3X(k),qE(),jp(W));var r=pI([a,O]).pipe(ka(function(jQ){var y=_.S(jQ);jQ=y.next().value;y=y.next().value;return jQ.timestamp.equals(y.timestamp)}),eP(function(jQ){var y=_.S(jQ);
jQ=y.next().value;y=y.next().value;return{visible:jQ.value,geometry:y.value.elementGeometry}}),$a(function(jQ,y){return!y.visible&&jQ.visible?jQ:y},{visible:!1,
geometry:Cw}),eP(function(jQ){return jQ.geometry}),VN(Cw),jp(W),qE(d4));
w=w instanceof OK?w.pipe(qE(),z8()):UM;k=pI([w,k]).pipe(z8());var q=O.pipe(ka(function(jQ){return jQ.value.viewportGeometrySourceName!=="ns"&&jQ.value.elementGeometrySourceName!=="ns"}),$a(function(jQ){return jQ+1},0),VN(0),jp(W)),f=b.pipe(z8(!0),VN(!1),jp(W));
f=pI([A,f]).pipe(eP(function(jQ){var y=_.S(jQ);jQ=y.next().value;y=y.next().value;return jQ&&!y}),jp(W));
var M=O.pipe(GKE,qE()),V=M.pipe(eP(function(jQ){return jQ.value}),$a(function(jQ,y){return Math.max(jQ,y)},0),qE(),jp(W));
W=M.pipe(eP(function(jQ){return jQ.value}),kK1(),jp(W));
return{shouldResetExposureSignals:w,shouldResetViewabilitySignals:k,geometrySignals:{readyGeometryWithDefault:O,measurementStrategy:O.pipe(HwX),creativePosition:r.pipe(qE(d4)),visible:a.pipe(qE(nw)),timestampedExposure:X.pipe(qE(nw)),maximumExposure:l,minimumExposure:p,browserSize:O.pipe(tpX,qE(_.Ev)),timestampedScreenShare:M,maxScreenShare:V,minScreenShare:W,geometricMeasurementErrors:b,measurementRequests:O.pipe(eP(function(jQ){return jQ.value.measurementRequests})),
isLargeAd:Z,geometryIsOccluded:L,hasMeasurementStarted:A,geometryMeasurable:f,validMeasurementCount:q,loadTimeExposure:K,v2VisibilityBitVector:T}}};
z5T=function(W,O){return O.pipe(ka(function(){return!1}),eP(function(b){return b}),Dh(function(b){return HQ(new Lw(b),W)}))};
xGh=function(W,O,b){return O.pipe(mIX(UM),jp(W)).pipe(qE(function(T,L){return nw(T,L,IIX)}),VN({timestamp:b.now(),
value:k3}),jp(W))};
qM8=function(W,O,b,T){b=T.pipe(DGX(b),qG(eP(function(L){return Math.round(L*100)/100})),jp(W));
return O instanceof Lw?b:pI([b,O]).pipe(eP(function(L){var h=_.S(L);L=h.next().value;h=h.next().value;return{timestamp:h.timestamp.maximum(L.timestamp),value:h.value?0:L.value}}),qE(nw),jp(W))};
fIE=function(W,O,b,T){O=[O.pipe(eP(function(L){return L.value.elementGeometry.width*L.value.elementGeometry.height>=242500}))];
b instanceof OK&&O.push(b.pipe(eP(function(L){return!!L})));
b=pI(O);return T?b.pipe(eP(function(L){return L.some(function(h){return h})}),VN(!1),qE(),jp(W)):HQ(new Lw(!1),W)};
CiX=function(W,O){W=pI([W,O]).pipe(eP(function(L){var h=_.S(L);L=h.next().value;if(h.next().value&&L.value.isIntersecting)return L.value.isV2Visible}),qE());
var b=W.pipe(eP(function(L){return L===void 0?!0:L}),$a(function(L,h){return L||!h},!1)),T=W.pipe($a(function(L,h){return h===void 0?L:h?!1:L!=null?L:!0},void 0),eP(function(L){return!!L}));
return pI([O,wDP(W,b,T)]).pipe(eP(function(L){var h=_.S(L);L=h.next().value;var Z=_.S(h.next().value);h=Z.next().value;var a=Z.next().value;Z=Z.next().value;var m=0;if(!L)return 0;if(h===void 0)return 16;h&&(m|=1);h||(m|=2);a&&(m|=4);Z&&(m|=8);return m}))};
uH8=function(W,O,b,T,L){var h=tU.timeThresholdMs;var Z=Z===void 0?new Vpq(O,T):Z;return(new OK(function(a){var m=b.pipe(VN(void 0),ME(function(){return N4O(L)})).pipe(eP(function(w){var A=w.value;
w=w.timestamp;var X=A.visible;A=A.consecutiveViewTime;var l=A>=h;l||!X?$3(Z):(w=Math.max(0,sK(O.now(),w)),Mpq(Z,Math.max(0,h-A-w)));return l}),$a(function(w,A){return A||w},!1),qE()).subscribe(a);
return function(){Z.dispose();m.unsubscribe()}})).pipe(uN(function(a){return!a},!0),jp(W))};
N4O=function(W){return T4T([W,W.pipe(ZwX())]).pipe(eP(function(O){var b=_.S(O);O=b.next().value;b=b.next().value;return{timestamp:O.timestamp,value:{visible:O.value,consecutiveViewTime:b.value}}}),qE(function(O,b){return nw(O,b,function(T,L){return T.consecutiveViewTime===L.consecutiveViewTime&&T.visible===L.visible})}))};
JU8=function(){return WG(h5h(),$a(function(W,O){return Math.max(W,O)},0),eP(function(W){return Math.round(W)}))};
cUX=function(W){return WG(o3X(EK(W)),JU8())};
Fq8=function(W,O){return O instanceof OK?O.pipe(ME(function(b){return(b=b?15:null)?wb(new li(b)):W})):(O=O.value?15:null)?wb(new li(O)):W};
yUX=function(W){var O=new li(13);if(W.length<1)return{chain:oD,capturedErrors:oD};var b=new ii,T=W[0];return{chain:W.slice(1).reduce(function(L,h){return L.pipe(Dh(function(Z){b.next(Z);return h}))},T).pipe(Dh(function(L){b.next(L);
return wb(O)}),G8(new ii),UK()),
capturedErrors:b}};
WlE=function(W,O){var b=W.pipe(G8(new ii),UK());return ME(function(T){return b.pipe(O(T))})};
i5O=function(W,O){if(W.inCrossDomainIframe)return wb(new li(6));var b=new ii;return QN(EK({}),O,b).pipe(eP(function(){return{timestamp:W.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:O5E(W),topWindowViewportExternalGeometry:r4(W,!0),measurementRequests:b,viewportLocalAppOffset:{x:0,y:0}}}}),bi(W.queue))};
O5E=function(W){var O=r4(W,!1);if(!W.inIframe||!Vr(W.global.parent)||W.global.parent===W.global)return O;var b=new NG(W.global.parent,W.debugChannel);b.beaconFactory=W.beaconFactory;b=O5E(b);W=W.global.frameElement.getBoundingClientRect();return wGi(AxQ(wGi(b,W),{x:O.left-W.left,y:O.top-W.top}),O)};
b5E=function(W){if(W.prerendering)return 3;var O;return(O={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[W.visibilityState||W.webkitVisibilityState||W.mozVisibilityState||""])!=null?O:0};
j8T=function(W){return W.document.JSC$7375_onVisibilityChange.pipe(eP(function(O){return O==="visible"}),qE(),jp(W.queue))};
TDi=function(W,O,b){var T;return O.pipe(qE(),ME(function(L){return b.pipe(eP(function(){if(!T){T=!0;try{L.next()}finally{T=!1}}return!0}))}),VN(!1),jp(W.queue))};
LlT=function(W){return WG(qG(eP(function(O){return O>=1?!0:O<=0?!1:O>=W})),dGE(),eP(function(O){return Math.round(O)}))};
hpX=function(W,O,b,T,L){var h=d9E;if(h.length>1)for(var Z=0;Z<h.length-1;Z++)if(h[Z]<h[Z+1])throw Error();Z=L.pipe(VN(void 0),ME(function(){return b.pipe(ZwX())}),qE(),jp(W));
L=L.pipe(VN(void 0),ME(function(){return b.pipe(JU8())}),qE(),jp(W));
return{totalMeasurementTime:T.pipe(VN(void 0),ME(function(){return O.pipe(eP(function(a){return{timestamp:a.timestamp,value:!0}}),dGE())}),qE(),jp(W)),
totalUnviewedTime:T.pipe(VN(void 0),ME(function(){return O.pipe(eP(function(a){return{timestamp:a.timestamp,value:a.value===0}}),dGE())}),qE(),jp(W)),
maxTimeOnScreen:T.pipe(VN(void 0),ME(function(){return O.pipe(SMX(cUX,h))}),qE(_.Ev),jp(W)),
timeOnScreen:T.pipe(VN(void 0),ME(function(){return O.pipe(SMX(LlT,h),eP(function(a){return a.map(function(m,w){return w>0?m-a[w-1]:m})}))}),qE(_.Ev),jp(W)),
maxConsecutiveViewTime:L,consecutiveViewTime:Z.pipe(qE(nw),jp(W))}};
Z5q=function(W){var O=!0;O=O===void 0?!1:O;return WG(ME(function(b){return SVi(W.document,b,O)}),jp(W.queue))};
INX=function(W,O,b){var T=b.pipe(eP(function(L){return{value:L,timestamp:W.timeProvider.now()}}),qE(nw));
return O instanceof OK?O.pipe(qE(),ME(function(L){return L?HQ(new Lw({value:!1,timestamp:W.timeProvider.now()}),W.queue):T})):O.value===!1?T:new Lw(!1)};
aN2=function(W,O,b,T,L,h,Z){var a=tU;O=O instanceof OK?O.pipe(VN(!1),qE()):O;var m=!W.isMobile();b=INX(W,b,T);W=Z.measurableCreative.pipe(jG2(W.queue));return Object.assign({},a,{geometryIsOccluded:b,wasLargeAdAtRender:L,allowLargeAdThreshold:m,mayUseViewportShareExposure:O,hasMeasurementStarted:W,useIntersectionObserverV2:h})};
YVX=function(W,O,b,T,L,h){var Z=1;h=h===void 0?!0:h;Z=Z===void 0?.01:Z;var a=a===void 0?W.timeProvider.intervalObservable(100).pipe(jp(W.queue)):a;return W.performanceMonitor.timeExecution(916,function(){return m91(W,O.pipe(bi(W.queue)),b.pipe(bi(W.queue)),T,L,h,Z,a)})()};
m91=function(W,O,b,T,L,h,Z,a){var m=j8T(W).pipe(eP(function(A){return!A})),w=new E6X(W,[new w5X(W,d9E),
new AVX(W,a)]);a=MPe(X5O,U9X);return fh2(W,O,function(A,X){var l=HQ(new Lw(X.element),A.queue).pipe(Z5q(A),jp(A.queue)),p={loadedElement:l,shouldMeasure:l.pipe(z8(!0)),measurableCreative:l.pipe(eP(function(jQ){var y=y===void 0?Symbol():y;return Object.freeze({symbol:y,element:HQ(new Lw(jQ),A.queue)})})),
creativeSearchResult:HQ(new Lw("mue"),A.queue)},K=new Lw(!1),k=new Lw(!1),r=new Lw(17),q=new Lw(!1),f=new Lw(!1),M=HQ(MG,A.queue);K=w.buildGeometrySource(p,{inApp:K,useV2:!1,requestSource:HQ(r,A.queue)}).geometrySource;p=aN2(A,q,k,m,f,M,p);k=$Gi(A.queue,A.timeProvider,K,p);p=k.geometrySignals;q=k.shouldResetViewabilitySignals;k=hpX(A.queue,p.timestampedExposure,p.visible,k.shouldResetExposureSignals,q);q=uH8(A.queue,A.timeProvider,q,p.measurementRequests,p.visible);f=b.pipe(ka(function(jQ){return jQ===
X.element.ref}),eP(function(){return"ur"}));
M=ldX(A.timeProvider,L).pipe(z8("t"));f=v3X(A,QN(f,M));M=TDi(A,p.measurementRequests,f.pipe(ka(function(jQ){return jQ!==null})));
K=f.pipe(ka(function(jQ){return jQ!==null}),eP(function(){return b5E(A.global.document)===1}));
var V=lN1(A.document);return Object.assign({},{beaconFactory:new Lw(A.beaconFactory),context:new Lw(A),inferredPingId:new Lw("lidar2"),timeOnScreenPingId:new Lw("lidartos"),binaryContext:new Lw(17),binaryVersion:new Lw(T),requestSource:r,contextValidationErrors:new Lw(A.validate()?null:new ep),contextVisibilityKnown:new Lw(V),payloadMapper:new Lw(VPQ),endOfSessionReason:f,timeOnScreenReason:f,requestMeasurementOnEndOfSession:M,hasImpressionFired:ep2,crossDomainIframeState:new Lw(A.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:MG,inFetchLaterBeaconExperiment:MG,isTurtlex:MG,turtlexReportEventData:new Lw(""),reportFencedFrameEvent:UM,isViewableAttributionEnabled:MG,inViewableAttributionExperiment:new Lw(0),fetchBeaconFactory:UM,supportsPendingBeacon:MG,supportsFetchLater:MG,emit:new Lw(cx8),beginToRenderEvent:new Lw(Symbol()),activeViewUnmeasurableEvent:new Lw(Symbol()),activeViewViewableEvent:new Lw(Symbol()),creativeFound:ep2,immediateUrlPrefixes:new Lw(X.immediateUrls),timeOnScreenUrlPrefixes:new Lw(X.timeOnScreenUrls),
cpmavUrls:UM,viewableRelayUrls:UM,measurementDeferralState:new Lw(2),urlSerializer:new Lw(iwX),viewUrlSerializer:new Lw(PJ8),isCreativeLoaded:l.pipe(jG2(A.queue)),pageVisible:m.pipe(eP(function(jQ){return!jQ})),
eosPageVisible:K,timestampedExposureHistory:p.timestampedExposure.pipe($a(function(jQ,y){jQ.push(y);return jQ},[]))},p,{viewable:GK(A,q),
maxTimeOnScreen:GK(A,k.maxTimeOnScreen),timeOnScreen:GK(A,k.timeOnScreen),maxConsecutiveViewTime:GK(A,k.maxConsecutiveViewTime),consecutiveViewTime:k.consecutiveViewTime.pipe(eP(function(jQ){return new fw(A.timeProvider,jQ)})),
totalMeasurementTime:GK(A,k.totalMeasurementTime),totalUnviewedTime:GK(A,k.totalUnviewedTime),userAgentClientHints:uyP(A),clientOrderPingCounter:new Lw(new HIX)})},NbX(W,Z),upT(h?JxX(a,p5e):JxX(a,RpQ),KlX))};
v6X=function(W){var O=_.PD.apply(1,arguments).filter(Boolean).join("&");if(!O)return W;var b=W.match(/[?&]adurl=/);return b?W.slice(0,b.index+1)+O+"&"+W.slice(b.index+1):W+(W.indexOf("?")<0?"?":"&")+O};
ui=function(W,O){return O?"&"+W+"="+encodeURIComponent(O):""};
g6Q=function(){try{var W,O;return!!((W=window)==null?0:(O=W.top)==null?0:O.location.href)&&!1}catch(b){return!0}};
_.JU=function(W){W&&typeof W.dispose=="function"&&W.dispose()};
_.cQ=function(W){for(var O=0,b=arguments.length;O<b;++O){var T=arguments[O];_.j5(T)?_.cQ.apply(null,T):_.JU(T)}};
Q81=function(){var W=o6e();W=W===void 0?"bevasrsg":W;return new Promise(function(O){var b=window===window.top?window:g6Q()?window:window.top,T=b[W],L;((L=T)==null?0:L.bevasrs)?O(new FH(T.bevasrs)):(T||(T={},T=(T.nqfbel=[],T),b[W]=T),T.nqfbel.push(function(h){O(new FH(h))}))})};
kP8=function(W){var O={c:W.sD,e:W.h7I,mc:W.rrQ,me:W.dfe};W.jQ&&(O.co={c:W.jQ.hDC,a:W.jQ.hcJ,s:W.jQ.oTa});return O};
s88=function(W){var O,b,T={sD:W.c,h7I:W.e,rrQ:(O=W.mc)!=null?O:!1,dfe:(b=W.me)!=null?b:!1};W.co&&(T.jQ={hDC:W.co.c,hcJ:W.co.a,oTa:W.co.s});return T};
BDh=function(W){return function(){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W(),2);O=b.yieldResult;return b.return({f:function(){return O.b7v()},
c:function(T){return O.myh(T)},
m:function(T){return O.ah(s88(T))},
mws:function(T){return O.rK(s88(T))}})})}};
rVe=function(W,O){var b=o6e();b=b===void 0?"bevasrsg":b;O={s:function(h){var Z;return W.snapshot(Object.assign({},h.c&&{sD:h.c},h.s&&{u5v:h.s},{ras:(Z=h.p)!=null?Z:!0}))},
e:function(h){var Z;return void((Z=W.vbS)==null?void 0:Z.call(W,h))},
c:function(h,Z){return W.fSC(h,Z)},
p:W.laZ,l:function(){return W.hFn()},
wpc:O?BDh(O):void 0};var T=window===window.top?window:g6Q()?window:window.top,L=T[b];if(L){L.bevasrs=O;if(L.nqfbel!==void 0)for(b=_.S(L.nqfbel),T=b.next();!T.done;T=b.next())T=T.value,T(O);L.nqfbel=void 0}else L={},L=(L.bevasrs=O,L.nqfbel=void 0,L),T[b]=L};
x9h=function(W){var O=O===void 0?49:O;var b=[];_.yr(W,D9e,6,_.W5()).forEach(function(T){_.OV(T,2)<=O&&b.push(_.OV(T,1))});
return b};
zpX=function(W){var O=O===void 0?49:O;var b=[];_.yr(W,D9e,6,_.W5()).forEach(function(T){_.OV(T,2)>O&&b.push(_.OV(T,1))});
return b};
CJX=function(W){W.then(function(){},function(){})};
iJ=function(W){return{fieldType:1,fieldName:W}};
bJ=function(W){return{fieldType:2,fieldName:W}};
_.jr=function(W){return{fieldType:3,fieldName:W}};
qV2=function(){function W(){L[0]=1732584193;L[1]=4023233417;L[2]=2562383102;L[3]=271733878;L[4]=3285377520;A=w=0}
function O(X){for(var l=Z,p=0;p<64;p+=4)l[p/4]=X[p]<<24|X[p+1]<<16|X[p+2]<<8|X[p+3];for(p=16;p<80;p++)X=l[p-3]^l[p-8]^l[p-14]^l[p-16],l[p]=(X<<1|X>>>31)&4294967295;X=L[0];var K=L[1],k=L[2],r=L[3],q=L[4];for(p=0;p<80;p++){if(p<40)if(p<20){var f=r^K&(k^r);var M=1518500249}else f=K^k^r,M=1859775393;else p<60?(f=K&k|r&(K|k),M=2400959708):(f=K^k^r,M=3395469782);f=((X<<5|X>>>27)&4294967295)+f+q+M+l[p]&4294967295;q=r;r=k;k=(K<<30|K>>>2)&4294967295;K=X;X=f}L[0]=L[0]+X&4294967295;L[1]=L[1]+K&4294967295;L[2]=
L[2]+k&4294967295;L[3]=L[3]+r&4294967295;L[4]=L[4]+q&4294967295}
function b(X,l){if(typeof X==="string"){X=unescape(encodeURIComponent(X));for(var p=[],K=0,k=X.length;K<k;++K)p.push(X.charCodeAt(K));X=p}l||(l=X.length);p=0;if(w==0)for(;p+64<l;)O(X.slice(p,p+64)),p+=64,A+=64;for(;p<l;)if(h[w++]=X[p++],A++,w==64)for(w=0,O(h);p+64<l;)O(X.slice(p,p+64)),p+=64,A+=64}
function T(){var X=[],l=A*8;w<56?b(a,56-w):b(a,64-(w-56));for(var p=63;p>=56;p--)h[p]=l&255,l>>>=8;O(h);for(p=l=0;p<5;p++)for(var K=24;K>=0;K-=8)X[l++]=L[p]>>K&255;return X}
for(var L=[],h=[],Z=[],a=[128],m=1;m<64;++m)a[m]=0;var w,A;W();return{reset:W,update:b,digest:T,digestString:function(){for(var X=T(),l="",p=0;p<X.length;p++)l+="0123456789ABCDEF".charAt(Math.floor(X[p]/16))+"0123456789ABCDEF".charAt(X[p]%16);return l}}};
trq=function(W,O){O=O===void 0?n6O:O;if(!fNT){var b;W=(b=W.navigator)==null?void 0:b.userAgentData;if(!W||typeof W.getHighEntropyValues!=="function"||W.brands&&typeof W.brands.map!=="function")return Promise.reject(Error("ya"));GP8((W.brands||[]).map(function(L){var h=new H51;h=_.aG(h,1,L.brand);return _.aG(h,2,L.version)}));
typeof W.mobile==="boolean"&&_.TP(L5,2,W.mobile);fNT=W.getHighEntropyValues(O)}var T=new Set(O);return fNT.then(function(L){var h=L5.clone();T.has("platform")&&_.aG(h,3,L.platform);T.has("platformVersion")&&_.aG(h,4,L.platformVersion);T.has("architecture")&&_.aG(h,5,L.architecture);T.has("model")&&_.aG(h,6,L.model);T.has("uaFullVersion")&&_.aG(h,7,L.uaFullVersion);return h.serialize()}).catch(function(){return L5.serialize()})};
dD=function(W,O,b,T){this.initialValue_=W;this.maxValue_=O;this.currBaseValue_=this.currValue_=W;this.randomFactor_=b||0;this.backoffFactor_=T||2};
hV=function(W){this.src=W;this.listeners={};this.typeCount_=0};
MrP=function(){for(var W;W=$9h.remove();){try{W.fn.call(W.scope)}catch(O){b1(O)}VrX.put(W)}NDX=!1};
_.Sr=function(W){switch(W){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}};
uuX=function(W){switch(W){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""}};
_.JVe=function(){};
Tui=function(W){return{xbD:new cV8(W),errorCount:new Fl1(W),eventCount:new yVE(W),rhf:new WCi(W),bGF:new OSe(W),yXr:new iSX(W),v3Z:new bSX(W),q6V:new jv8(W)}};
svT=function(W,O,b,T){W=LCe(dr8(h02(new _.ZN(1828,"0"),W),new SoX));O.length&&ZSX(W,Iqh(new QvX,O));T!==void 0&&(W.destinationUrl=T);var L=new kxO(1828,"","",!1,"",W.build());_.a8(L,W);var h=new ml({flush:function(Z){try{L.flush(Z)}catch(a){b(a)}}});
h.addOnDisposeCallback(function(){setTimeout(function(){try{h.snapshotAndFlush()}finally{L.dispose()}})});
h.invocationLimit=1E5;h.flushInterval=3E4;h.JSC$7791_flushTimer.setInterval(3E4);return h};
Y6=function(){var W,O,b;return(b=(W=globalThis.performance)==null?void 0:(O=W.now)==null?void 0:O.call(W))!=null?b:Date.now()};
rtQ=function(W,O,b){if(W.disable)return new Buh;O=O?x9h(O):[];if(b)return b.dVZ(O),b.share();W={zv:W.zv,lpI:W.ldS,oOx:W.eSa,destinationUrl:W.destinationUrl,htS:W.htS,hL:W.hL};b=O;b=b===void 0?[]:b;return new EV(W,b)};
_.Dr2=function(W){if(!W)return null;W=_.wD(W,4);return W===null||W===void 0?null:_.SL(W)};
Cth=function(W,O){return O?xrE(O):W?z0P(W):Promise.resolve()};
xrE=function(W){return new Promise(function(O,b){var T=_.AV("SCRIPT"),L=_.Dr2(W);_.fz(T,L);T.onload=function(){_.Xu(T);O()};
T.onerror=function(){_.Xu(T);b(Error("Ja"))};
(UV("HEAD")[0]||document.documentElement).appendChild(T)})};
z0P=function(W){return new Promise(function(O){var b=_.AV("SCRIPT");if(W){var T=_.wD(W,6);T=T===null||T===void 0?null:_.Cz(T)}else T=null;_.nz(b,T);(UV("HEAD")[0]||document.documentElement).appendChild(b);_.Xu(b);O()})};
lJ=function(W,O,b){var T,L=new Promise(function(h){T=setTimeout(h,O)});
return Promise.race([W.finally(function(){return void clearTimeout(T)}),
L.then(b)])};
qoT=function(W,O){try{return globalThis.sessionStorage.setItem(W,O),!0}catch(b){return!1}};
nb1=function(W,O,b,T){O=O===void 0?0:O;b=b===void 0?W.length:b;var L=0;for(T&&(L=nb1(T));O<b;O++)T=typeof W==="string"?W.charCodeAt(O):W[O],L=fqe(31,L)+T|0;return L};
GxE=function(W,O){return[nb1(W,0,W.length>>1,O),nb1(W,W.length>>1)]};
HSq=function(W){var O=_.S(GxE(W,er));W=O.next().value;O=O.next().value;return W.toString(16)+O.toString(16)};
tzE=function(W,O){var b=GxE(O);W=new Uint32Array(W.buffer);O=W[0];var T=_.S(b);b=T.next().value;T=T.next().value;for(var L=1;L<W.length;L+=2){for(var h=O,Z=L,a=b,m=T,w=0;w<22;w++)Z=Z>>>8|Z<<24,Z+=h|0,Z^=a+38293,h=h<<3|h>>>29,h^=Z,m=m>>>8|m<<24,m+=a|0,m^=w+38293,a=a<<3|a>>>29,a^=m;h=[h,Z];W[L]^=h[0];L+1<W.length&&(W[L+1]^=h[1])}};
$r8=function(W,O,b,T,L){var h=(4-(er.length+b.length)%4)%4,Z=new Uint8Array(4+h+er.length+4+b.length),a=new DataView(Z.buffer),m=0;a.setUint32(m,Math.random()*4294967295);m=m+4+h;Z.set(er,m);m+=er.length;a.setUint32(m,L);Z.set(b,m+4);tzE(Z,T);return W.insert(O,function(w){return void globalThis.sessionStorage.removeItem(w)})?qoT(O,_.WM(Z))?"s":"t":"i"};
VzX=function(W,O){var b=globalThis.sessionStorage.getItem(W);if(!b)return["m"];try{var T=_.w1(b);tzE(T,O)}catch(L){return globalThis.sessionStorage.removeItem(W),["c"]}for(O=4;O<7&&T[O]===0;)O++;for(b=0;b<er.length;b++)if(T[O++]!==er[b])return globalThis.sessionStorage.removeItem(W),["d"];b=(new DataView(T.buffer)).getUint32(O);return Math.floor(Date.now()/1E3)>=b?(globalThis.sessionStorage.removeItem(W),["e"]):["a",new Uint8Array(T.buffer,O+4)]};
Nuq=function(W){return globalThis.TextEncoder?(new TextEncoder).encode(W):_.P5(W)};
MzX=function(W){var O=W,b;return function(){if(O){var T=O;O=void 0;b=T.apply(this,arguments)}return b}};
p5=function(W){return J9(function(O){if(O instanceof W)return!0;var b,T,L=O==null?void 0:(b=O.ownerDocument)==null?void 0:(T=b.defaultView)==null?void 0:T[W.name];return ud2(L)&&O instanceof L})};
_.v5=function(W,O,b){_.R8.call(this);this.JSC$8001_listener_=W;this.JSC$8001_interval_=O||0;this.handler_=b;this.callback_=(0,_.K5)(this.JSC$8003_doAction_,this)};
_.o8=function(W){W=Jth(W);return _.SL(W)};
Jth=function(W){return W===null?"null":W===void 0?"undefined":W};
FCP=function(W){if(W&&W.focus)if(W!==document.activeElement)W.focus();else return ct2(function(){return _.I(function(O){document.activeElement&&document.activeElement.blur();return O.return(ct2(function(){W.focus()}))})})};
_.ytO=function(W){var O=O===void 0?5:O;setTimeout(function(){var b;return _.I(function(T){T.nextAddress==1&&(b=document.activeElement);if(T.nextAddress!=5)return(document.activeElement===b||document.activeElement===document.body)&&O>=0&&W?_.Y(T,FCP(W),5):T.jumpTo(0);if(document.activeElement===W)return T.return();W=W.parentElement;--O;return T.jumpTo(2)})},15)};
ct2=function(W){return new Promise(function(O){requestAnimationFrame(function(){O(W())})})};
W32=function(W){if(_.QC)W(_.QC);else{var O;((O=k6)!=null?O:k6=[]).push(W)}};
B5=function(){!_.QC&&_.sV&&_.Ovh(_.sV());return _.QC};
_.Ovh=function(W){_.QC=W;var O;(O=k6)==null||O.forEach(W32);k6=void 0};
_.rD=function(W){_.QC&&_.QC.beforeLoadModuleCode(W)};
_.DN=function(){_.QC&&_.QC.JSC$8952_setLoaded()};
x6=function(W){return CU(W)?Number(W):String(W)};
ivi=function(W){this.action=W;this.wfv=!1};
bvh=function(W,O){ivi.call(this,"set-drive-options");this.appId=W;this.appOrigin=O};
jWX=function(W){ivi.call(this,"visibility");this.visible=W};
T0Q=function(W,O,b){zP.call(this,W,O,b)};
L31=function(W){C5.call(this,W)};
dCq=function(W){W=W&&W.getWindow()||window;return W.gadgets&&W.gadgets.rpc};
SCQ=function(W,O){var b=O&&O.getWindow()||window;if(dCq(O))W();else if(hhX)hhX.push(W);else var T=hhX=[W],L=b.setInterval(function(){if(dCq(O)){b.clearInterval(L);for(var h=0;h<T.length;h++)T[h]();hhX=null}},100)};
IkT=function(W,O){var b=new q9(W);_.a8(O,b);var T={passive:!1};O.listen(b,"mousewheel",function(L){return void ZvO(W,L)},T).listen(W,"scroll",function(L){return void ZvO(W,L)},T)};
ZvO=function(W,O){var b;a:{for(b=O.target;b;){if(b.nodeType==1){var T=_.n5(b,"overflowY");if(T=="auto"||T=="scroll")break a}b=b.parentNode}b=null}if(!b||!_.f5(W,b)||b.scrollHeight==b.clientHeight||O.deltaY>0&&Math.abs(b.scrollTop-(b.scrollHeight-b.clientHeight))<=1||O.deltaY<0&&b.scrollTop==0)O.preventDefault(),O.stopPropagation()};
uJ=function(W,O,b,T,L,h,Z,a,m){a=a===void 0?!1:a;m=m===void 0?!1:m;zP.call(this,void 0,void 0,void 0);zP.call(this,h?h+" picker modal-dialog":"picker modal-dialog",!0,b);_.GP(W,"protocol");this.iframeManager_=new ak8;this.targetId_=H5();this.rpcToken_=H5();W=_.tV(W);_.$6(W,"hostId");b=_.$6(W,"parent");this.useGapi_=!m&&!0||(b==null?void 0:b.includes("onepick.corp.google.com"));a&&_.VC(W,"fv2","true");this.setUrl(W.toString());this.preferredDialogWidth_=T;this.preferredDialogHeight_=L;T!==void 0||
L!==void 0?T=!0:(T=_.$6(_.tV(W.toString()),"hostId"),mCP||(mCP=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),T=!mCP.has(T));this.autoSizeDialog_=T;this.JSC$8191_gadgetsDomHelper_=Z||this.JSC$8142_dom_;O&&(Z=this.JSC$8191_gadgetsDomHelper_,O=_.$6(_.tV(this.JSC$8193_url_),"grugl")=="true"?YCe:EXO,dCq(Z)||(Z=Z||IG(document),T=Z.createElement("SCRIPT"),_.fz(T,O),T.type="text/javascript",Z.JSC$7330_document_.body.appendChild(T)));
W=W.toString();O=null;Z=W.indexOf("/picker?");Z>-1?O=W.substring(0,Z+8-1):hX(W,"/picker")&&(O=W);O&&this.setRelayUrl(O+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(W=this.buttons_,W.JSC$8176_element_=this.buttonEl_,W.render()):_.Gb(this.buttonEl_,wU8),_.N9(this.buttonEl_,!!this.buttons_))};
_.lkT=function(W){var O=O===void 0?A_8:O;var b=_.d1(W),T=function(h){h=_.S(h);h.next();h=JV(h);return O(b,h)},L=function(h){var Z=_.S(h);
h=Z.next().value;Z=JV(Z);return W.apply(h,Z)};
return function(){var h=_.PD.apply(0,arguments),Z=this||_.i1,a=XUX.get(Z);a||(a={},XUX.set(Z,a));return UCE(a,[this].concat(_.PG(h)),L,T)}};
c5=function(W){var O={};W=W.replace(/\r/g,"").split("\n");for(var b=0;b<W.length;b++){var T=W[b],L=T.indexOf(":");L<0||(O[T.substring(0,L)]=T.substring(L+2,T.length))}return O};
ehP=function(W,O,b){b=b===void 0?function(){}:b;
O=_.S(O);for(var T=O.next();!T.done;T=O.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;if(T instanceof Array&&T.includes(W)||T===W)return L()}return b()};
Fu=function(W,O,b){b=b===void 0?function(){}:b;
return W?O():b()};
_.pUh=function(W){var O;return((O=PWi.documentOverride)!=null?O:W).__wizdispatcher};
bt=function(W){var O=Oo;Oo=W;return O};
K3Q=function(W,O){var b;if((b=W)==null?0:b.isDisposed)throw Error("nb`"+String(W.debugName));for(;W!==void 0;){b=W;if(b.retrieve)return b.retrieve(O,{optional:!0});W=W.parent}return Rh8};
jz=function(W){return{"\u0275prov":{providedIn:"root",token:Symbol(W),factory:void 0,value:void 0}}};
vXh=function(W){var O=bt(W);W={};return W[Symbol.dispose]=function(){bt(O)},W};
gXQ=function(W,O){W.disposables||(W.disposables=[]);W.disposables.push(O)};
Tx=function(W){var O=Oo;O&&!O.isDisposed&&(gXQ(O,W),W.parent=O)};
QW8=function(W){if(W.disposables){for(var O=_.S(W.disposables),b=O.next();!b.done;b=O.next())b=b.value,typeof b==="function"?b():oXO(b);W.disposables.length=0}};
oXO=function(W){if(!W.isDisposed){W.isDisposed=!0;var O;(O=W[Symbol.dispose])==null||O.call(W);delete W.parent;QW8(W)}};
qC8=function(W){var O={retrieve:function(b){switch(b.\u0275prov.token){case kTX.\u0275prov.token:var T=W.asyncDeps;break;case sWX.\u0275prov.token:T=W.rootElement;break;case B0h.\u0275prov.token:T=W.modelRootElement;break;case r_h.\u0275prov.token:T=W.appContext;break;case DCO.\u0275prov.token:T=W.rendererData;break;case xC1.\u0275prov.token:T=W.injectingConstructor;break;case zhX.\u0275prov.token:T=W.dispatcher}if(T)b=T;else a:{for(T=O.parent;T;){var L=T;if(L.retrieve){b=L.retrieve(b);break a}T=
T.parent}T=b.\u0275prov.token;L=CWX[T];L!==void 0?b=L:(L=b.\u0275prov.providedIn,b.\u0275prov.factory?(b=b.\u0275prov.factory(),T&&L==="root"&&(CWX[T]=b)):b=Rh8)}return b}};
Tx(O);return O};
nXq=function(W){if(typeof document!=="undefined"&&document&&document.getElementById&&(W=document.getElementById(W))){var O=W.tagName.toUpperCase();if(O=="SCRIPT"||O=="LINK")return W}return null};
GTX=function(W,O){if((W=W===void 0?"":W)&&O)throw Error("ub");var b="";var T=_.i1._F_jsUrl;(W=O||nXq(W))&&(b=W.src?W.src:W.getAttribute("href"));if(T&&b){if(T!=b)throw Error("vb`"+T+"`"+b);b=T}else b=T||b;if(!fke(b))throw Error("wb");return b};
$CX=function(){if(!Hvi){Hvi=!0;try{var W=GTX(_.i1._F_jsUrl?"":"base-js")}catch(T){return}var O=ts8(LS(W)),b=Object.keys(O);b.length!==0&&W32(function(T){for(var L=_.S(b),h=L.next();!h.done;h=L.next()){h=h.value;for(var Z=_.S(Object.keys(O[h])),a=Z.next();!a.done;a=Z.next())T.addExtraEdge(h,a.value)}})}};
Vsq=function(W,O,b){var T;return W&&O?W+"__"+O:(T=W!=null?W:O)!=null?T:b};
Msq=function(){var W=Object.assign({},N0X);Object.getOwnPropertyNames(N0X).forEach(function(O){du[O]!==void 0&&(W[O]=du[O])});
return W};
ukO=function(W,O){if(du.enablePerformanceTiming){var b,T;(T=(b=performance).mark)==null||T.call(b,W+"Start__"+O)}};
J_T=function(W,O){if(du.enablePerformanceTiming){var b,T;(T=(b=performance).measure)==null||T.call(b,W+"__"+O,W+"Start__"+O)}};
F3X=function(W,O){var b=Object.create(c_2);b.debugName=O;!Oo||Tx(b);O=bt(b);try{W(b)}finally{bt(O)}return function(){return void oXO(b)}};
Wp1=function(W){return ht(W)&&y_8 in W};
Ou8=function(W,O){return Object.is(W,O)};
Zq=function(W){var O=Sz;Sz=W;return O};
TOe=function(W){if(Iv)throw Error("da");if(Sz!==null){var O=Sz.nextProducerIndex++;iuX(Sz);O<Sz.producerNode.length&&Sz.producerNode[O]!==W&&av(Sz)&&buh(Sz.producerNode[O],Sz.producerIndexOfThis[O]);Sz.producerNode[O]!==W&&(Sz.producerNode[O]=W,Sz.producerIndexOfThis[O]=av(Sz)?je1(W,Sz,O):0);Sz.producerLastReadVersion[O]=W.version}};
hqO=function(W){if(!av(W)||W.dirty)if(W.dirty||W.lastCleanEpoch!==Lph)(W.producerMustRecompute(W)||dmO(W))&&W.producerRecomputeValue(W),W.dirty=!1,W.lastCleanEpoch=Lph};
ST8=function(W){if(W.liveConsumerNode!==void 0){var O=Iv;Iv=!0;try{for(var b=_.S(W.liveConsumerNode),T=b.next();!T.done;T=b.next()){var L=T.value;L.dirty||(W=void 0,L.dirty=!0,ST8(L),(W=L.consumerMarkedDirty)==null||W.call(L,L))}}finally{Iv=O}}};
ZuE=function(){var W;return((W=Sz)==null?void 0:W.consumerAllowSignalWrites)!==!1};
Ipq=function(W){W&&(W.nextProducerIndex=0);return Zq(W)};
ap1=function(W,O){Zq(O);if(W&&W.producerNode!==void 0&&W.producerIndexOfThis!==void 0&&W.producerLastReadVersion!==void 0){if(av(W))for(O=W.nextProducerIndex;O<W.producerNode.length;O++)buh(W.producerNode[O],W.producerIndexOfThis[O]);for(;W.producerNode.length>W.nextProducerIndex;)W.producerNode.pop(),W.producerLastReadVersion.pop(),W.producerIndexOfThis.pop()}};
dmO=function(W){iuX(W);for(var O=0;O<W.producerNode.length;O++){var b=W.producerNode[O],T=W.producerLastReadVersion[O];if(T!==b.version)return!0;hqO(b);if(T!==b.version)return!0}return!1};
je1=function(W,O,b){mmQ(W);if(W.liveConsumerNode.length===0&&W.producerNode!==void 0)for(var T=0;T<W.producerNode.length;T++)W.producerIndexOfThis[T]=je1(W.producerNode[T],W,T);W.liveConsumerIndexOfThis.push(b);return W.liveConsumerNode.push(O)-1};
buh=function(W,O){mmQ(W);if(W.liveConsumerNode.length===1&&W.producerNode!==void 0)for(var b=0;b<W.producerNode.length;b++)buh(W.producerNode[b],W.producerIndexOfThis[b]);b=W.liveConsumerNode.length-1;W.liveConsumerNode[O]=W.liveConsumerNode[b];W.liveConsumerIndexOfThis[O]=W.liveConsumerIndexOfThis[b];W.liveConsumerNode.length--;W.liveConsumerIndexOfThis.length--;O<W.liveConsumerNode.length&&(b=W.liveConsumerIndexOfThis[O],W=W.liveConsumerNode[O],iuX(W),W.producerIndexOfThis[b]=O)};
av=function(W){var O,b;return W.consumerIsAlwaysLive||((b=W==null?void 0:(O=W.liveConsumerNode)==null?void 0:O.length)!=null?b:0)>0};
iuX=function(W){W.producerNode!=null||(W.producerNode=[]);W.producerIndexOfThis!=null||(W.producerIndexOfThis=[]);W.producerLastReadVersion!=null||(W.producerLastReadVersion=[])};
mmQ=function(W){W.liveConsumerNode!=null||(W.liveConsumerNode=[]);W.liveConsumerIndexOfThis!=null||(W.liveConsumerIndexOfThis=[])};
Evq=function(W){var O=Object.create(YTQ);O.computation=W;W=function(){hqO(O);TOe(O);if(O.value===mC)throw O.error;return O.value};
W[Yb]=O;return W};
Um1=function(W,O){var b=Object.create(w3P);b.value=W;O!==void 0&&(b.equal=O);W=function(){TOe(b);return b.value};
W[Yb]=b;return[W,function(T){return ALq(b,T)},
function(T){ZuE()||X3X(b);ALq(b,T(b.value))}]};
ALq=function(W,O){ZuE()||X3X(W);if(!W.equal(W.value,O)){W.value=O;W.version++;Lph++;ST8(W);var b;(b=lpT)==null||b(W)}};
Eo=function(W){var O=Zq(null);try{return W()}finally{Zq(O)}};
_.wu=function(W,O,b){b=b===void 0?"":b;W=Um1(W,O==null?void 0:O.equals);var T=W[0],L=T[Yb];L.debugName=Vsq(O==null?void 0:O.debugName,b,"[signal]");if(!du.enablePerformanceTiming)return W;var h=W[1],Z=W[2];return[T,function(a){eqi(function(){return void h(a)},L)},
function(a){eqi(function(){return void Z(a)},L)}]};
eqi=function(W,O){ukO("signalSet",O.debugName);try{W()}finally{J_T("signalSet",O.debugName)}};
p38=function(W,O){var b=_.S(_.wu(W,void 0,"cPpJzc"));W=b.next().value;b=b.next().value;W[PqO]=b;W[At]=O;return W};
RqT=function(W){return!!W&&typeof W==="object"&&Object.getPrototypeOf(W)===Object.prototype};
KpX=function(W){return typeof W==="function"&&PqO in W&&typeof W[PqO]==="function"};
vvX=function(W,O){Object.defineProperty(W,At,{get:function(){return O}})};
Uo=function(W,O){if(Xd(W)){var b=W.map(function(h){return Uo(h,O)});
vvX(b,O);return b}if(RqT(W)){b={};W=_.S(Object.entries(W));for(var T=W.next();!T.done;T=W.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;b[T]=Uo(L,O)}vvX(b,O);return b}return p38(W,O)};
gve=function(W){if(Xd(W))return W.map(function(L){return gve(L)});
if(RqT(W)){var O={};W=_.S(Object.entries(W));for(var b=W.next();!b.done;b=W.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;O[b]=gve(T)}return O}return KpX(W)?W():W};
QeP=function(){var W={height:0,width:0};if(!RqT(W))throw Error("Ib");var O=Symbol("Jb");return[Uo(W,O),function(b,T){if(b[At]===O)if(typeof T==="function"){var L=[].concat(_.PG(gve(b)));T=T(L)||L;ovE(b,[].concat(_.PG(T)))}else ovE(b,T);else throw Error("Kb");}]};
ovE=function(W,O){if(KpX(W))W[PqO](O);else if(Xd(W)&&Xd(O))O=Uo(O,W[At]),W.length=0,W.push.apply(W,_.PG(O));else if((RqT(W)||Xd(W))&&(Xd(O)||typeof O==="object"&&O!==null)){O=_.S(Object.entries(O));for(var b=O.next();!b.done;b=O.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;var L=W,h=L[b];Object.hasOwn(W,b)?ovE(h,T):L[b]=Uo(T,W[At])}}else throw Error("Lb");};
kZh=function(W){return Object.create(Object.assign({},lt,W))};
BO8=function(){var W;return(W=sei)!=null?W:sei=kZh({consumerAllowSignalWrites:!0})};
_.Pj=function(W,O,b){b=b===void 0?"":b;W=Evq(W);var T=W[Yb];T.debugName=Vsq(O==null?void 0:O.debugName,b,"[computed]");(O==null?void 0:O.equals)!=null&&(T.equal=O.equals);return W};
pS=function(W){var O=Zq(rLe);try{W()}finally{Zq(O)}};
fpX=function(W){if(!W.isDisposed)switch(W.effectType){case Dmq:xmT.schedule(W);break;case zqe:CqO.schedule(W);break;case qTX:nvT.schedule(W);break;default:_.SB(W.effectType)}};
HuX=function(W){GZ1.push(W);return function(){var O=GZ1.indexOf(W);O!==-1&&GZ1.splice(O,1)}};
$mi=function(){if(Rv>0)xmT.flush();else for(var W=_.S(tJX),O=W.next();!O.done;O=W.next())O.value.flush()};
NOT=function(W){for(var O=_.S(W),b=O.next();!b.done;b=O.next()){var T=b.value;for(b=[T];T.parent!==void 0;)T=T.parent,VJP(T)&&W.has(T)&&b.push(T);for(;b.length>0;)T=b.pop(),W.delete(T),T.run()}};
MJP=function(W){Rv--;if(W){W=_.S(tJX);for(var O=W.next();!O.done;O=W.next())O.value.clear()}else Rv>0||$mi()};
JLe=function(W){var O=W.component;var b=W.debugInstance;W=W.fn;var T=uqE(O);KS={name:b?T+" ("+b+")":T,isReactive:O.componentType!==vj,parent:KS};O=W();KS=KS.parent;return O};
gu=function(){var W=KS;return W?W.isReactive:!1};
QH=function(W,O){var b=KS;O&&(KS=O);try{return W()}catch(h){W=h;ov(W,KS);if(W!==cLP){FpO=KS;O=[];for(var T=Oo;T;){var L=void 0;O.push((L=T.debugName)!=null?L:"[context]");L=void 0;T=(L=T.parent)!=null?L:null}yLi=O.reverse()}cLP=W;throw W;}finally{KS=b}};
ov=function(W,O){try{var b=WYO(O);if(b&&!W.componentStack&&(W.componentStack=b,du.enableComponentStacksInErrorMessages)){var T=W.message+"\n\nComponent stack: "+b;W.stack&&(W.stack=W.stack.replace(W.message,T));W.message=T}}catch(L){}};
WYO=function(W){if(ht(W)&&W.name!==void 0&&W.isReactive!==void 0&&W.parent!==void 0||W===null){for(var O=0,b="";O<20&&W;)b+=W.name+" > ",W=W.parent,O++;W=b.slice(0,-3)}else if(du.enableContextBasedComponentStacks){a:{for(W=W===void 0?Oo:W;W;){if(Wp1(W))break a;O=void 0;W=(O=W.parent)!=null?O:null}W=null}W=W.getComponentStack().slice(0,20).join(" > ")}else W="";return W};
uqE=function(W){return W.debugName||W.name||"[component]"};
O9h=function(W,O,b){O=Object.create(O);O.effectFn=W;b&&(O.debugName=b);Tx(O);du.enableContextBasedComponentStacks||(O.componentStack=KS);return O};
_.kb=function(W,O){W=O9h(W,i91,O);fpX(W)};
_.so=function(W){var O=Oo;if(O){var b=du.enableContextBasedComponentStacks?void 0:KS;gXQ(O,function(){var T=Zq(BO8());try{du.enableContextBasedComponentStacks?W():QH(function(){return void W()},b)}catch(L){throw du.enableContextBasedComponentStacks&&ov(L),L;
}finally{Zq(T)}})}};
Bj=function(W,O){var b={};(O===void 0||O)&&Tx(b);O=bt(b);try{W(b)}finally{bt(O)}return function(){return void oXO(b)}};
_.ru=function(W){return typeof W==="function"?W():(W==null?0:W[b9T])?W.get():W};
_.Dq=function(W,O){W=O9h(W,jai,O);fpX(W)};
Tv1=function(W){if(Oo)throw Error("rb");Bj(W,!1)};
xb=function(W,O){W=bt(W);try{return Eo(O)}finally{bt(W)}};
zx=function(W,O){var b=WYO(FpO),T,L;var h=(L=(T=yLi)==null?void 0:T.slice())!=null?L:[];O={componentStack:b,contextTrace:h,errorSeverity:3,featureFlags:Msq(),tagName:O};return[W,O]};
hAP=function(W,O,b){if(Object.hasOwnProperty.call(LYT,W)&&(W=LYT[W],Object.hasOwnProperty.call(W,O)&&(W=W[O],W instanceof Array))){for(var T=null,L=!1,h=0,Z=W.length;h<Z;++h){var a=W[h],m=a.contingentAttribute;if(!m)return a.contract;T===null&&(T={});m=Object.hasOwnProperty.call(T,m)?T[m]:T[m]=b(m);if(m===a.requiredValue)return a.contract;m==null&&(L=!0)}if(L)return null}O=d8X[O];return typeof O==="number"?O:null};
IfQ=function(W,O,b){var T=null;(W=SFi[W])&&(T=W[O]);return typeof T!=="number"&&((W=SFi["*"])&&(T=W[O]),typeof T!=="number")?!1:!0===Z9X[T][String(b).toLowerCase()]};
m8E=function(W,O){O=hAP(W.toLowerCase(),O,function(){var T;(T=du.handleError)==null||T.call.apply(T,[du].concat(_.PG(zx(Error("Qb"),W.toLowerCase()))))});
if(O===null)return null;var b;return(b=afE[O])!=null?b:null};
YFQ=function(W,O,b){if(b===null||b===void 0)return b;W=m8E(W,O);return W===null?b:W(O,b)};
EOO=function(){};
CS=function(W,O){for(;W.length>O;)W.pop()};
wO2=function(W){W=Array(W);CS(W,0);return W};
AS1=function(W,O,b){if(b==null)W.removeAttribute(O);else{var T;(T=O.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":O.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?W.setAttributeNS(T,O,b):W.setAttribute(O,b)}};
XOX=function(W,O,b){W[O]=b};
lfT=function(W,O,b){W=W.style;if(typeof b==="string")W.cssText=b;else{W.cssText="";for(var T in b)if(U82.call(b,T)){O=W;var L=T,h=b[T];L.indexOf("-")>=0?O.setProperty(L,h):O[L]=h}}};
eA2=function(W,O,b){var T=typeof b;T==="object"||T==="function"?W[O]=b:AS1(W,O,b)};
PPi=function(){var W=new EOO;W[qr.default]=eA2;W.style=lfT;return W};
pOP=function(W,O,b,T){(T[O]||T[qr.default])(W,O,b)};
KY1=function(W,O,b){O=new RAX(O,b);return W.__incrementalDOMData=O};
fS=function(W,O){if(W.__incrementalDOMData)return W.__incrementalDOMData;var b=W.nodeType===1?W.localName:W.nodeName,T=W.nodeType===1?W.getAttribute("key"):null;O=KY1(W,b,W.nodeType===1?T||O:null);if(W.nodeType===1&&(W=W.attributes,b=W.length)){T=O._attrsArr||(O._attrsArr=wO2(b*2));for(var L=0,h=0;L<b;L+=1,h+=2){var Z=W[L],a=Z.value;T[h]=Z.name;T[h+1]=a}}return O};
vOT=function(W,O,b,T,L){return O==b&&T==L};
gOq=function(W){for(var O=Gx,b=Hj();b!==W;){var T=b.nextSibling;O.removeChild(b);tt.deleted.push(b);b=T}};
Hj=function(){return $b?$b.nextSibling:Gx.firstChild};
Mr=function(){$b=Hj()};
k78=function(W,O,b){Mr();var T;a:{if(T=$b){do{var L=T,h=W,Z=O,a=fS(L,Z);if(oO1(L,h,a.nameOrCtor,Z,a.key))break a}while(O&&(T=T.nextSibling))}T=null}T||(W==="#text"?(b=ut.createTextNode(""),KY1(b,"#text",null),W=b):(T=ut,L=Gx,typeof W==="function"?T=new W:T=(L=W==="svg"?"http://www.w3.org/2000/svg":W==="math"?"http://www.w3.org/1998/Math/MathML":L==null||fS(L).nameOrCtor==="foreignObject"?null:L.namespaceURI)?T.createElementNS(L,W):T.createElement(W),KY1(T,W,O),W=T,b&&W.setAttribute("nonce",b)),tt.created.push(W),
T=W);b=T;if(b!==$b){if(Qa1.indexOf(b)>=0)for(W=Gx,O=b.nextSibling,T=$b;T!==null&&T!==b;)L=T.nextSibling,W.insertBefore(T,O),T=L;else Gx.insertBefore(b,$b);$b=b}};
saX=function(W,O,b){k78(W,O,b);Gx=$b;$b=null;return Gx};
BvE=function(){gOq(null);$b=Gx;Gx=Gx.parentNode};
Jt=function(){$b=Gx.lastChild};
x8h=function(W,O){O=O===void 0?{}:O;var b=O.matches===void 0?vOT:O.matches;return function(T,L,h){var Z=tt,a=ut,m=Qa1,w=cj,A=Fd,X=$b,l=Gx,p=oO1;ut=T.ownerDocument;tt=new rSO(T);oO1=b;cj=[];Fd=[];$b=null;var K=Gx=T.parentNode,k,r=D8T.call(T);if((k=r.nodeType===11||r.nodeType===9?r.activeElement:null)&&T.contains(k)){for(r=[];k!==K;)r.push(k),k=k.parentNode||(K?k.host:null);K=r}else K=[];Qa1=K;try{return W(T,L,h)}finally{T=tt,yH&&T.deleted.length>0&&yH(T.deleted),ut=a,tt=Z,oO1=p,cj=w,Fd=A,$b=X,Gx=l,
Qa1=m}}};
zAT=function(W,O,b,T){WU.push(pOP);WU.push(W);WU.push(O);WU.push(b);WU.push(T)};
qFP=function(W,O,b){var T=Fd;O=O._attrsArr||(O._attrsArr=wO2(T.length));for(var L=!O.length||!1,h=0;h<T.length;h+=2){var Z=T[h];if(L)O[h]=Z;else if(O[h]!==Z)break;var a=T[h+1];if(L||O[h+1]!==a)O[h+1]=a,zAT(W,Z,a,b)}if(h<T.length||h<O.length){for(h=L=h;h<O.length;h+=2)OC[O[h]]=O[h+1];for(h=L;h<T.length;h+=2)L=T[h],Z=T[h+1],OC[L]!==Z&&zAT(W,L,Z,b),O[h]=L,O[h+1]=Z,delete OC[L];CS(O,T.length);for(var m in OC)zAT(W,m,void 0,b),delete OC[m]}W=CPe;CPe=b=WU.length;for(m=W;m<b;m+=5)(0,WU[m])(WU[m+1],WU[m+
2],WU[m+3],WU[m+4]);CPe=W;CS(WU,W);CS(T,0)};
iW=function(W){k78("#text",null);var O=$b;var b=fS(O);if(b.text!==W){b=b.text=W;for(var T=1;T<arguments.length;T+=1)b=(0,arguments[T])(b);O.data!==b&&(O.data=b)}};
$81=function(W,O,b){if(b===!1&&nO8.has(O))AS1(W,O,null);else if(O!=="idomKey"&&O!=="skip"&&O!=="skipchildren"&&O!=="children"&&O!=="el"){if(O.startsWith("on"))if(O[2]===":"){if(b===void 0||b===null){var T;(T=du.handleError)==null||T.call.apply(T,[du].concat(_.PG(zx(Error("Wb`"+O),W.tagName))));W[O]=void 0;return}if(typeof b!=="object"||b===null)throw Error("Xb`"+O+"`"+typeof b);if(typeof b.getFn!=="function")throw Error("Yb`"+O+"`"+Object.keys(b));var L=b.getFn(0),h=O.slice(3);if((T=gu())&&W["on"+
h]===void 0)W.addEventListener(h,L),_.so(function(){return void W.removeEventListener(h,L)});
else if(T||!ffQ.includes(h))W["on"+h]=L}else{G7Q(W,O,b);return}else if(O.startsWith("data-")&&typeof b==="string")try{b=H9q(b)}catch(Z){b="zSoyz"}typeof b!=="function"||W._disposeEffects!=null?(du.enableAttributeSanitization&&(b=YFQ(W.tagName,O,b)),O==="style"?tqE(W,O,b):O.startsWith("prop:")?(O=O.slice(5),W[O]=b):G7Q(W,O,b)):(W._signalProps||(W._signalProps=[]),W._signalValues||(W._signalValues=[]),W._signalProps.push(O))}};
Vq8=function(W,O,b){b=(b===void 0?{}:b).isReactive;if(O==null?0:O.el){var T=O.el;if(typeof T==="function")T(W);else{var L;(L=T.onRender)==null||L.call(T,W);W._disposeRef||(W._disposeRef=function(){var h;(h=T.onUnmount)==null||h.call(T);delete W._disposeRef},b&&_.so(function(){var h;
return void((h=W._disposeRef)==null?void 0:h.call(W))}))}}};
Nvi=function(W){return ht(W)&&bW in W};
Mq8=function(W){return Nvi(W)?W[bW].flattened:W};
usX=function(W,O){var b=_.PD.apply(2,arguments),T;O=(T=O)!=null?T:{};T={};return T.type=W,T.props=O,T.children=b,T[js]=!0,T};
_.TT=function(W){return W.children};
Lv=function(W){var O=JS8!==usX;JS8=W?cST:usX;return O};
d0=function(W){return _.LH(W)?"nodeType"in W:!1};
h_=function(){return document.createTextNode("")};
Ss=function(W){W=document.createTextNode(String(W));W._isSignalTextNode=!0;return W};
FYq=function(W){var O=document.createElement("div");if(!(W instanceof gC)){if(W.contentKind!==Zk)throw Error("Ub");W=oQ(W.toString())}_.Gb(O,W);W=_.S(O.childNodes);for(var b=W.next();!b.done;b=W.next())b.value._isSafeOrSanitizedHtmlNode=!0;return O};
IW=function(W){W=typeof W;return W==="string"||W==="number"||W==="boolean"};
ySO=function(W){return W instanceof hv||Y4(W)||"function"==typeof _.V0&&W instanceof _.V0||!1};
WJX=function(W,O){var b=W.parentElement;if(!b)return O;b.replaceChild(O,W);return O};
OB8=function(W,O){var b=W[0].parentElement;if(b)if(W[0].previousSibling||W[W.length-1].nextSibling){b.insertBefore(O,W[0]);for(var T=W.length-1;T>=0;T--)b.removeChild(W[T])}else b.textContent="",b.appendChild(O);return O};
iBX=function(W,O){if(W[0].parentElement)for(var b=W[0].parentElement,T=O.length,L=W.length,h=T,Z=0,a=0,m=W[L-1].nextSibling,w=null;Z<L||a<h;)if(W[Z]===O[a])Z++,a++;else{for(;W[L-1]===O[h-1];)L--,h--;if(L===Z)for(var A=h<T?a?O[a-1].nextSibling:O[h-a]:m;a<h;){var X=O[a++];b.insertBefore(X,A)}else if(h===a)for(;Z<L;)A=W[Z],w&&w.has(A)||b.removeChild(A),Z++;else if(W[Z]===O[h-1]&&O[a]===W[L-1])A=W[--L].nextSibling,b.insertBefore(O[a++],W[Z++].nextSibling),b.insertBefore(O[--h],A),W[L]=O[h];else{if(!w)for(w=
new Map,A=a;A<h;)w.set(O[A],A++);A=w.get(W[Z]);if(A==null)b.removeChild(W[Z]),Z++;else if(a<A&&A<h){X=Z;for(var l=1,p=void 0;++X<L&&X<h&&(p=w.get(W[X]))!=null&&p===A+l;)l++;if(l>A-a)for(X=W[Z];a<A;)b.insertBefore(O[a++],X);else b.replaceChild(O[a++],W[Z++])}else Z++}}return O};
j1X=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("gc`"+W.length+"`"+W.map(bB1).join(", "));W=W[0]}if(W==null)return null;if(!(W instanceof _.zb)){var O,b;if((O=window)==null?0:(b=O.trustedTypes)==null?0:b.isScript(W))throw Error("fc");if(String(W).trim().length===0)return null;throw Error("hc`"+bB1(W));}return W};
TeX=function(W){if(Array.isArray(W)){if(W.length>1)throw Error("ic`"+W.length+"`"+W.map(bB1).join(", "));W=W[0]}if(W==null)return null;if(!pM1(W)){if(String(W).trim().length===0)return null;throw Error("jc`"+bB1(W));}return W};
bB1=function(W){return"("+typeof W+") "+(W!=null&&typeof W==="object"?W.constructor.name:typeof W)+" "+W};
m3=function(W,O){function b(){L=!1;O.isControlFlowComponent&&Rv++;var h=T[0],Z=T[bW].flattened,a=Lv(!0);try{var m=W(),w=LJ8(h,m,T);Array.isArray(w)||(T[bW].flattened=[w]);var A=T[bW].flattened;if(Z&&(!Array.isArray(Z)||Z.length!==0)){var X=Array.isArray(Z)?Z[0]:Z,l=X[aW],p=X._disposeEffects;X._disposeEffects=void 0;X=Array.isArray(A)?A[0]:A;X[aW]=l;X[aW]&&(X[aW].numNodes=X===A?1:A.length);X._disposeEffects=p}T[0]=w;O.isControlFlowComponent&&MJP(!1)}catch(K){throw O.isControlFlowComponent&&MJP(!0),
K;}finally{Lv(a)}}
O=O===void 0?{}:O;var T=dJQ(),L=!0;_.Dq(function(){(hWX==null?0:hWX.logger)&&!L?hWX.logger.logGraft(T[0],b):b()},O.debugName);
return T};
LJ8=function(W,O,b){for(;typeof O==="function";)O=O();if(O!=null&&O[js]){var T,L,h;(h=du.handleError)==null||h.call.apply(h,[du].concat(_.PG(zx(Error("kc`"+((T=O.type)==null?void 0:T.TAG_NAME)),(L=O.type)==null?void 0:L.TAG_NAME))))}if(W==null)return O==null?h_():IW(O)?Ss(O):ySO(O)?Ss(O.toString()):d0(O)?O:O.length===0?h_():Sm8(O,b);if(d0(W)){if(O==null)return WJX(W,h_());if(IW(O))return ZBh(W,O);if(ySO(O))return ZBh(W,O.toString());if(d0(O))return WJX(W,O);if(O.length===0)return WJX(W,h_());O=Sm8(O,
b);iBX([W],b[bW].flattened);return O}W=EC(W);if(O==null)return OB8(W,h_());if(IW(O))return OB8(W,Ss(O));if(ySO(O))return OB8(W,Ss(O.toString()));if(d0(O))return iBX(W,[O])[0];if(O.length===0)return OB8(W,h_());O=Sm8(O,b);iBX(W,b[bW].flattened);return O};
ZBh=function(W,O){W.nodeType===Node.TEXT_NODE?W.textContent!==String(O)&&(W.textContent=String(O)):W=WJX(W,Ss(O));return W};
EC=function(W,O,b){return ItP(W,O!=null?O:[],b===void 0?!1:b)};
Sm8=function(W,O){var b=EC(W,void 0,!0);if(b.length===0)return h_();O[bW].flattened=b;return W};
ItP=function(W,O,b,T,L){O=O===void 0?[]:O;b=b===void 0?!1:b;L=L===void 0?-1:L;if(W==null)return O;if(W instanceof w0)return W=W.render(),ItP(W,O,b,T,L);if(d0(O)&&O.nodeType===Node.ELEMENT_NODE)switch(O.tagName){case "SCRIPT":b=j1X(W);b!==null&&_.nz(O,b);return;case "STYLE":b=TeX(W);b!==null&&(O.textContent=_.Rk2(b));return}IW(W)&&(W=Ss(W),T&&b&&(T[L]=W));if(W!=null&&W.contentKind===Zk||W instanceof gC){b=FYq(W);b=Array.from(b.childNodes);b=_.S(b);for(W=b.next();!W.done;W=b.next())atE(O,W.value);return O}ySO(W)&&
(W=Ss(W.toString()),T&&b&&(T[L]=W));if(d0(W))return atE(O,W);if(Array.isArray(W)){for(var h=0;h<W.length;h++)ItP(W[h],O,b,W,h);return O}if(typeof W==="function"){W=m3(W,{debugName:"qmF2ne"})[0];if(Array.isArray(W)){b=_.S(W);for(W=b.next();!W.done;W=b.next())atE(O,W.value);return O}T&&b&&(T[L]=W);return atE(O,W)}if(W!=null&&W[js]){T=Lv(!0);L=JS8;try{h=L.apply(null,[W.type,W.props].concat(_.PG(W.children)))}finally{Lv(T)}return ItP(h,O,b)}var Z;(Z=du.handleError)==null||Z.call.apply(Z,[du].concat(_.PG(zx(Error("lc")))));
return O};
dJQ=function(W){var O={};O=Object.assign([],(O[bW]={flattened:[]},O));if(!W)return O;O[0]=Sm8(W,O);return O};
atE=function(W,O){Array.isArray(W)?W.push(O):W.appendChild(O);return W};
A_=function(W){if(!du.enableLazyTsx)return W;if(Array.isArray(W)){for(var O=0;O<W.length;O++)W[O]=A_(W[O]);return W}return W instanceof w0?(W=W.render(),A_(W)):W};
Ymq=function(W,O){var b,T,L=uqE(W),h=function(p){T=p;p=Lv(!0);var K=Zq(Xk);ukO("render",L);try{b=A_(W(O))}finally{J_T("render",L),Zq(K),Lv(p)}};
h=du.enableContextPerComponent?F3X(h,L):Bj(h,du.alwaysTrackContexts||!!Oo);Wp1(T);if(!O.renderedFromIdom){var Z=bt(T);try{return mJX(W,O,b),b}finally{bt(Z)}}!Nvi(b)&&Array.isArray(b)&&(b=dJQ(b));var a=Mq8(b);Z=Array.isArray(a)?a[0]:a;var m=!1;if(Z){var w,A=(w=O==null?void 0:O.idomKey)!=null?w:W;w=a!==Z;Z._disposeEffects=h;var X=Z[aW]||{},l=Nvi(b)?b:X.sourceDynamicRange;Object.assign(X,{key:A,numNodes:w?a.length:1,context:T,higherOrder:!!Z[aW],sourceDynamicRange:l});Z[aW]=X}else m=!0;(function(){var p=
bt(T);try{mJX(W,O,a)}finally{bt(p)}})();
m&&h();return b};
EGq=function(W){var O={},b;for(b in W)O={prev$jscomp$23:void 0,next$jscomp$32:void 0},O.prev$jscomp$23=UC[b],O.next$jscomp$32=W[b],UC[b]=function(T){return function(){var L=_.PD.apply(0,arguments);T.prev$jscomp$23.apply(null,_.PG(L));T.next$jscomp$32.apply(null,_.PG(L))}}(O)};
wZq=function(){if(gu())throw Error("mc");return lW};
A8Q=function(W,O){if(!W.__unmounted&&O){W.__unmounted=!0;try{W.didUnmount()}catch(L){var b,T;(T=du.handleError)==null||T.call.apply(T,[du].concat(_.PG(zx(L,(b=W.JSC$8266___type)==null?void 0:b.TAG_NAME))))}UC.didUnmount(W);W.el=null;O.__instance&&delete O.__instance}};
UJP=function(W,O,b){W._signalProps!=null&&W._disposeEffects==null&&((b===void 0?0:b)?W._disposeEffects=Bj(function(){return void XZ1(W,O)},du.alwaysTrackContexts||!!Oo):XZ1(W,O))};
XZ1=function(W,O){_.Dq(function(){for(var b=W._signalProps,T=W._signalValues,L=0;L<b.length;L++){var h=b[L],Z=O[h]();T[L]!==Z&&(T[L]=Z,$81(W,h,Z))}},"e3YVbb")};
ltX=function(W,O,b){var T,L=[];W._disposeEffects=Bj(function(){_.Dq(function(){var h=b();if(h===null||h===void 0)h="";if(IW(h)||h===null)T!=null||(T=document.createTextNode("")),T.parentNode!==W&&(T._isSignalTextNode=!0,W.insertBefore(T,O)),T.textContent=String(h);else if(h!=null&&h.contentKind===Zk||h instanceof gC){for(var Z=L.length>0?L[L.length-1].nextSibling:O,a=_.S(L),m=a.next();!m.done;m=a.next())W.removeChild(m.value);h=FYq(h);L=Array.from(h.childNodes);h=_.S(L);for(a=h.next();!a.done;a=h.next())W.insertBefore(a.value,
Z)}else throw m=(a=(Z=KS)==null?void 0:Z.name)!=null?a:"unknown",Error("bc`"+m+"`"+typeof h);},"VvDgC")},du.alwaysTrackContexts||!!Oo)};
pZe=function(W,O){var b=_.PD.apply(2,arguments);O!=null||(O={});return!du.enableLazyTsx||KS!=null&&!gu()?eWe(W,O,b):new Pyq(W,O,b)};
eWe=function(W,O,b){if(W===_.TT)return b;if(typeof W==="function"){KS&&!gu()&&(O.renderedFromIdom=!0);var T=function(){var h=RW8(W,O,b);if(h)return h;b.length>0&&(O.children=b.length===1?b[0]:b);if(W.componentType===vj){var Z;F3X(function(){var a=O;if(W.componentType!==vj)Z=!1;else{a||(a={});var m=new es(a,W),w=Zq(Xk);try{var A=m.render(a)}finally{Zq(w)}A instanceof HTMLElement?(A.__instance=m,m.el=A,m.JSC$8266___type=W,W.TAG_NAME=A.tagName.toLowerCase(),UC.didPatch(m),Z=A):Z=A}},W.name);
if(Z)return Z}return Ymq(W,O)};
return du.enableContextBasedComponentStacks?T():JLe({component:W,debugInstance:O.debugInstance,fn:T})}T=KJ1(W,O);for(var L in O)$81(T,L,O[L]);UJP(T,O);EC(b,T);Vq8(T,O,{isReactive:!0});vGQ(T,O);return T};
KJ1=function(W,O){W=(gG8.has(W.toLowerCase())?0:oGe.has(W.startsWith("svg:")?W.replace("svg:",""):W))?document.createElementNS("http://www.w3.org/2000/svg",W.startsWith("svg:")?W.replace("svg:",""):W):Q1e(W,O)||document.createElement(W);W[k52]=!0;return W};
s18=function(W){if(W){var O;(O=W._disposeRef)==null||O.call(W);var b;(b=W._disposeEffects)==null||b.call(W);W.__instance&&W.__instance instanceof PU&&(O=W.__instance,A8Q(O,W),O instanceof es&&O.disposeEffects());for(O=0;O<W.childNodes.length;O++)s18(W.childNodes[O])}};
r8E=function(W){BeX.push(W)===1&&requestAnimationFrame(function(){setTimeout(function(){var O=[].concat(_.PG(BeX));BeX=[];O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;try{for(var T=0;T<b.length;T++)s18(b[T])}catch(L){T=b=void 0,(T=(b=du).handleError)==null||T.call.apply(T,[b].concat(_.PG(zx(L))))}}})})};
_.E=function(W,O){return JS8.apply(null,[W,O].concat(_.PG(_.PD.apply(2,arguments))))};
xJX=function(){var W=document.body.firstElementChild;window.ng||W.__ngContext__||(W.__ngContext__={},W.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=DJe)};
_.U=function(W){var O=W.cond;if(O===void 0)return W.else&&W.else();var b=_.Pj(function(){return!!O()},void 0,"JHVi8"),T=function(){var L=O();
if(!L){var h;(h=du.handleError)==null||h.call.apply(h,[du].concat(_.PG(zx(zWi.nonNullableCondIsNull()))))}return L};
return m3(function(){var L=b(),h;Bj(function(){var Z=Zq(Xk);try{h=A_(L?W.then(T):W.else&&W.else())}finally{Zq(Z)}},!0);
return h},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
Cy2=function(W){return _.U(W)};
_.pv=function(W){return W.keyBy==="INDEX"?qmh(W):nGX(W)};
ft2=function(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next()){var b=void 0;(b=O.value)==null||b()}};
nGX=function(W){var O=W.keyBy===void 0||W.keyBy==="REFERENCE",b=O?function(A){return A}:W.keyBy,T=[],L=[],h=[],Z=[],a=[],m=[],w=!0;
_.so(function(){ft2(Z)});
return m3(function(){var A=W.each(),X=A.length;if(X===0){if(T.length===0&&!w)return h;ft2(Z);T=A;L=[];for(A=0;A<T.length;A++)L.push(b(T[A]));h=[];Z=[];a=[];m=[];W.fallback&&(Z[0]=G5O(function(){h[0]=A_(W.fallback())}));
w=!1;return h}for(var l=new HBe,p=T.length-1;p>=0;p--)l.push(L[p],p);p=Array(X);for(var K=Array(X),k=Array(X),r=Array(X),q=Array(O?0:X),f={i$jscomp$486:0};f.i$jscomp$486<X;f={i$jscomp$486:f.i$jscomp$486,item$jscomp$103:void 0,key$jscomp$523:void 0},f.i$jscomp$486++){f.item$jscomp$103=A[f.i$jscomp$486];f.key$jscomp$523=b(f.item$jscomp$103);var M=l.pop(f.key$jscomp$523);M!=null?(k[f.i$jscomp$486]=h[M],K[f.i$jscomp$486]=L[M],p[f.i$jscomp$486]=Z[M],r[f.i$jscomp$486]=a[M],O||(q[f.i$jscomp$486]=m[M]),pS(function(V){return function(){r[V.i$jscomp$486](V.i$jscomp$486);
if(!O)q[V.i$jscomp$486](V.item$jscomp$103)}}(f)),delete Z[M]):p[f.i$jscomp$486]=G5O(function(V){return function(){var jQ=_.S(_.wu(V.i$jscomp$486,void 0,"Fqk1zd")),y=jQ.next().value;
jQ=jQ.next().value;r[V.i$jscomp$486]=jQ;K[V.i$jscomp$486]=V.key$jscomp$523;if(O)k[V.i$jscomp$486]=A_(W.children(V.item$jscomp$103,y));else{var d8=_.S(_.wu(V.item$jscomp$103,void 0,"GBj5de"));jQ=d8.next().value;d8=d8.next().value;q[V.i$jscomp$486]=d8;k[V.i$jscomp$486]=A_(W.children(jQ,y))}}}(f))}ft2(Z);
T=A;L=K;h=k;Z=p;a=r;m=q;w=!1;return k},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
qmh=function(W){var O=[],b=[],T=[],L=[],h=!1;_.so(function(){for(var Z=_.S(L),a=Z.next();!a.done;a=Z.next())a=a.value,a()});
return m3(function(){var Z=W.each();h&&Z.length>0&&(L.pop()(),O.pop(),h=!1);for(var a=Array(Z.length),m={i$jscomp$487:0};m.i$jscomp$487<Z.length;m={i$jscomp$487:m.i$jscomp$487},m.i$jscomp$487++)if(m.i$jscomp$487<O.length)O[m.i$jscomp$487]!==Z[m.i$jscomp$487]&&(pS(function(A){return function(){return void b[A.i$jscomp$487](Z[A.i$jscomp$487])}}(m)),O[m.i$jscomp$487]=Z[m.i$jscomp$487]),a[m.i$jscomp$487]=T[m.i$jscomp$487];
else{var w=G5O(function(A){return function(){O[A.i$jscomp$487]=Z[A.i$jscomp$487];var X=_.S(_.wu(Z[A.i$jscomp$487],void 0,"kGMqJe")),l=X.next().value;X=X.next().value;b[A.i$jscomp$487]=X;a[A.i$jscomp$487]=A_(W.children(l,A.i$jscomp$487))}}(m));
L[m.i$jscomp$487]=w}for(;O.length>Z.length;)O.pop(),L.pop()(),b.pop();Z.length===0&&!h&&W.fallback&&(m=G5O(function(){a[0]=A_(W.fallback())}),L[0]=m,h=!0);
return T=a},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
G5O=function(W){var O=Oo;return Bj(function(b){var T=Zq(Xk);try{b.parent=O,W(b)}finally{Zq(T)}},!1)};
_.RW=function(W){return W};
_.Kv=function(W){return{isDefault:!0,children:W.children}};
_.vU=function(W){var O=tNh(W),b=_.Pj(function(){return $JX(O)},void 0,"F1PF4");
return m3(function(){var T=b(),L;Bj(function(){var h=Zq(Xk);try{L=A_(T())}finally{Zq(h)}});
return L},{debugName:W.debugInstance,
isControlFlowComponent:!0})};
tNh=function(W){W=W.children;return Array.isArray(W)?W:[W]};
VN2=function(W){var O=W.props;W=W.getChildren()[0];return O.when?{when:O.when,children:W}:{isDefault:!0,children:W}};
$JX=function(W){var O=function(){return null};
W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,b!=null&&b[js]&&(b=b.type===_.Kv?{isDefault:!0,children:b.children[0]}:{when:b.props.when,children:b.children[0]}),b instanceof w0&&(b=VN2(b)),b.isDefault)O=b.children;else if(b.when())return b.children;return O};
NeT=function(W){var O=null,b;return{value:null,onRender:function(T){if(b&&T!==b){var L;(L=O)==null||L();b._disposeRef=void 0}b=T;O=W(T)||null},
onUnmount:function(){var T;(T=O)==null||T();O=null}}};
u0E=function(W){var O=wZq();if(O==null)throw MNP.PRIMITIVE_INVALID_HOOK_CALL();var b=O.hookCounter++;O.hooks||(O.hooks=[]);var T=O.hooks;T[b]||(T[b]={key:W,host:O});if(W!==T[b].key){if(O.JSC$8266___type){var L;W=(L=O.JSC$8266___type)==null?void 0:L.name}else W=O instanceof es?uqE(O.functionComponent):"<"+O.el.tagName.toLowerCase()+">";throw MNP.OUT_OF_ORDER_HOOK_CALL(W);}return T[b]};
J8h=function(W,O){return!W||W.length!==(O==null?void 0:O.length)||W.some(function(b,T){return b!==O[T]})};
c8X=function(W,O){var b=u0E("onChange"),T=wZq();J8h(b.deps,O)&&(b.deps=O,b.pendingEffect=W,T.__syncEffects||(T.__syncEffects=[]),T.__syncEffects.push(b))};
OPT=function(W,O){var b;O!=null?b=O:b=_.pUh(document).getAppContext();b.get(FJe).JSC$25479_getEventTarget().dispatchEvent(new y8e(WAX,W,Zk))};
_.g0=function(W,O){var b=b===void 0?{enableDevtools:!1}:b;var T=function(){var h=Zq(Xk);try{return Bj(function(){var Z=_.pUh(_.g4(W)),a;var m=qC8({rootElement:{value:W},appContext:b.appContext||(Z==null?void 0:(a=Z.getOptionalAppContext)==null?void 0:a.call(Z)),dispatcher:Z});Z=bt(m);m=Lv(!0);Rv++;try{EC(O(),W),MJP(!1)}catch(w){throw MJP(!0),w;}finally{Lv(m),bt(Z)}},!1)}catch(Z){throw du.enableContextBasedComponentStacks&&ov(Z),Z;
}finally{Zq(h)}},L=du.enableContextBasedComponentStacks?T():QH(T);
W[iPX]=!0;b.legacyTriggerSoyRendererEvents&&OPT(W,b.appContext);return function(){W.textContent="";L();W[iPX]=!1}};
_.oW=function(W){if(VJP(Sz)){var O;(O=du.handleError)==null||O.call.apply(O,[du].concat(_.PG(zx(Error("ac")))))}var b=Oo,T=du.enableContextBasedComponentStacks?void 0:KS;Promise.resolve().then(function(){if(b&&!b.isDisposed){var L=bt(b);try{du.enableContextBasedComponentStacks?W():QH(function(){return void W()},T)}catch(h){throw du.enableContextBasedComponentStacks&&ov(h),h;
}finally{bt(L)}}})};
QP=function(W,O){c8X(function(){return Eo(W)},O)};
_.kX=function(W){gu()?_.oW(function(){Eo(W)}):c8X(function(){return Eo(W)},[])};
j22=function(W){var O=[].concat(_.PG(W));W.length=0;W=_.S(O);for(O=W.next();!O.done;O=W.next()){O=O.value;bPX(O);var b=O.pendingEffect;O.pendingEffect=null;if(b=b==null?void 0:b())O.pendingCleanup=b}};
bPX=function(W){var O=W.pendingCleanup;W.pendingCleanup=null;O==null||O()};
T3O=function(W,O){if(gu())return W();var b=u0E("useMemoInternal");J8h(b.deps,O)&&(b.deps=O,b.value=W());return b.value};
LA2=function(W,O){return T3O(W,O)};
sC=function(W){return T3O(W,[])};
BU=function(W){return sC(function(){return{value:W}})};
_.r0=function(W,O){if(!W)return null;W=Object.keys(W);W=_.S(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;var T=b.toLowerCase();if(T.indexOf(O,T.length-O.length)>-1)return b}return null};
_.zT=function(){var W=arguments,O=_.Dk;W.length>1?O[W[0]]=W[1]:W.length===1&&Object.assign(O,W[0])};
_.Cv=function(W,O){return W in _.Dk?_.Dk[W]:O};
_.qC=function(W,O){return!!_.Cv(W,O)};
dyP=function(W){var O=_.Dk.EXPERIMENT_FLAGS;return O?O[W]:void 0};
S0e=function(W){h_1.forEach(function(O){return O(W)})};
_.fv=function(W){return W&&window.yterr?function(){try{return W.apply(this,arguments)}catch(O){_.nv(O)}}:W};
_.nv=function(W){var O=_.GT("yt.logging.errors.log");O?O(W,"ERROR",void 0,void 0,void 0,void 0,void 0):(O=_.Cv("ERRORS",[]),O.push([W,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.zT("ERRORS",O));S0e(W)};
_.HU=function(W,O,b,T,L){var h=_.GT("yt.logging.errors.log");h?h(W,"WARNING",O,b,T,void 0,L):(h=_.Cv("ERRORS",[]),h.push([W,"WARNING",O,b,T,void 0,L]),_.zT("ERRORS",h))};
IFe=function(W,O){O=W.split(O);for(var b={},T=0,L=O.length;T<L;T++){var h=O[T].split("=");if(h.length===1&&h[0]||h.length===2)try{var Z=ZPh(h[0]||""),a=ZPh(h[1]||"");if(Z in b){var m=b[Z];Array.isArray(m)?_.Tw(m,a):b[Z]=[m,a]}else b[Z]=a}catch(l){var w=l,A=h[0],X=String(IFe);w.args=[{key:A,value:h[1],query:W,method:aFX===X?"unchanged":X}];my8.hasOwnProperty(A)||_.HU(w)}}return b};
Y0Q=function(W){var O=[];_.PQ.forEach(W,function(b,T){var L=_.t_(T);_.$X(Array.isArray(b)?b:[b],function(h){h==""?O.push(L):O.push(L+"="+_.t_(h))})});
return O.join("&")};
_.VP=function(W){W.charAt(0)==="?"&&(W=W.substring(1));return IFe(W,"&")};
_.NC=function(W){return W.indexOf("?")!==-1?(W=(W||"").split("#")[0],W=W.split("?",2),_.VP(W.length>1?W[1]:W[0])):{}};
_.MC=function(W,O){return EFX(W,O||{},!0)};
wB1=function(W,O){return EFX(W,O||{},!1)};
EFX=function(W,O,b){var T=W.split("#",2);W=T[0];T=T.length>1?"#"+T[1]:"";var L=W.split("?",2);W=L[0];L=_.VP(L[1]||"");for(var h in O)if(b||!_.PQ.containsKey(L,h))L[h]=O[h];return _.uW(W,L)+T};
yP=function(W){if(!O)var O=window.location.href;var b=_.J_(W)[1]||null,T=_.cU(W);return b&&T?Fk(W,O):T?_.cU(O)===T&&(Number(_.J_(O)[4]||null)||null)===(Number(_.J_(W)[4]||null)||null):!0};
_.XBe=function(W){W=Aqi(W);return W===null?!1:W[0]==="com"&&W[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Aqi=function(W){W=_.cU(W);return W!==null?W.split(".").reverse():null};
ZPh=function(W){return W&&W.match(UyX)?W:W3(W)};
_.OT=function(W){return new lFh(W)};
_.iq=function(){e_e||(e_e=new POE);return e_e};
R_8=function(W){var O=_.bq,b,T;_.I(function(L){b=_.iq();return(T=b.resolve(_.OT(O)))?(W(T),L.return(Promise.resolve(T))):L.return(b.resolve(new pB1(O)).then(function(h){W(h);return h}))})};
_.e=function(W){W=TZ(W);return typeof W==="string"&&W==="false"?!1:!!W};
_.Lu=function(W,O){W=TZ(W);return W===void 0&&O!==void 0?O:Number(W||0)};
KAP=function(W){W=TZ(W);return Array.isArray(W)?_.RG(W,function(O){return Number(O||0)}):[Number(W||0)]};
_.dO=function(W){W=TZ(W);return W!==void 0?String(W):""};
_.hL=function(W){W=TZ(W);return Array.isArray(W)?_.RG(W,function(O){return String(O||"")}):[String(W||"")]};
vF8=function(){return _.Cv("EXPERIMENTS_TOKEN","")};
TZ=function(W){return _.Cv("EXPERIMENT_FLAGS",{})[W]};
gFi=function(){for(var W=[],O=_.Cv("EXPERIMENTS_FORCED_FLAGS",{}),b=_.S(Object.keys(O)),T=b.next();!T.done;T=b.next())T=T.value,W.push({key:T,value:String(O[T])});b=_.Cv("EXPERIMENT_FLAGS",{});T=_.S(Object.keys(b));for(var L=T.next();!L.done;L=T.next())L=L.value,L.startsWith("force_")&&O[L]===void 0&&W.push({key:L,value:String(b[L])});return W};
Q2X=function(){if(!oF2)return null;var W=oF2();return"open"in W?W:null};
_.ksP=function(W){switch(_.SJ(W)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.SJ=function(W){return W&&"status"in W?W.status:-1};
_.Zp=function(W,O){typeof W==="function"&&(W=_.fv(W));return window.setTimeout(W,O)};
_.Ie=function(W,O){typeof W==="function"&&(W=_.fv(W));return window.setInterval(W,O)};
_.ae=function(W){window.clearTimeout(W)};
B31=function(W){W=_.NC(W);for(var O=_.S(s2e),b=O.next();!b.done;b=O.next())if(W[b.value]!==void 0)return!0;return!1};
xyq=function(W,O,b,T,L,h,Z,a){b=b===void 0?"GET":b;T=T===void 0?"":T;a=a===void 0?!1:a;var m=Q2X();if(!m)return null;var w=function(){(m&&"readyState"in m?m.readyState:0)===4&&O&&_.fv(O)(m)};
"onloadend"in m?m.addEventListener("loadend",w,!1):m.onreadystatechange=w;_.e("debug_forward_web_query_parameters")&&(W=rq2(W,window.location.search));m.open(b,W,!0);h&&(m.responseType=h);Z&&(m.withCredentials=!0);b=b==="POST"&&(window.FormData===void 0||!(T instanceof FormData));if(L=DyX(W,L))for(var A in L)m.setRequestHeader(A,L[A]),"content-type"===A.toLowerCase()&&(b=!1);b&&m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(a&&"setAttributionReporting"in XMLHttpRequest.prototype){W=
{eventSourceEligible:!0,triggerEligible:!1};try{m.setAttributionReporting(W)}catch(X){_.HU(X)}}m.send(T);return m};
DyX=function(W,O){O=O===void 0?{}:O;var b=yP(W),T=_.Cv("INNERTUBE_CLIENT_NAME"),L=_.e("web_ajax_ignore_global_headers_if_set"),h;for(h in z_E){var Z=_.Cv(z_E[h]),a=h==="X-Goog-AuthUser"||h==="X-Goog-PageId";h!=="X-Goog-Visitor-Id"||Z||(Z=_.Cv("VISITOR_DATA"));var m;if(!(m=!Z)){if(!(m=b||(_.cU(W)?!1:!0))){m=W;var w;if(w=_.e("add_auth_headers_to_remarketing_google_dot_com_ping")&&h==="Authorization"&&(T==="TVHTML5"||T==="TVHTML5_UNPLUGGED"||T==="TVHTML5_SIMPLY"))w=Aqi(m),w=w===null?!1:w[1]==="google"?
!0:w[2]==="google"?w[0]==="au"&&w[1]==="com"?!0:w[0]==="uk"&&w[1]==="co"?!0:!1:!1;w&&(m=_.mp(m)||"",m=m.split("/"),m="/"+(m.length>1?m[1]:""),w=m==="/pagead");m=w?!0:!1}m=!m}m||L&&O[h]!==void 0||T==="TVHTML5_UNPLUGGED"&&a||(O[h]=Z)}"X-Goog-EOM-Visitor-Id"in O&&"X-Goog-Visitor-Id"in O&&delete O["X-Goog-Visitor-Id"];if(b||!_.cU(W))O["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(b||!_.cU(W)){try{var A=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(X){}A&&(O["X-YouTube-Time-Zone"]=
A)}document.location.hostname.endsWith("youtubeeducation.com")||!b&&_.cU(W)||(O["X-YouTube-Ad-Signals"]=Y0Q(COh()));return O};
_.q0X=function(W,O){var b=_.cU(W);_.e("debug_handle_relative_url_for_query_forward_killswitch")||!b&&yP(W)&&(b=document.location.hostname);var T=_.mp(W);T=(b=b&&(b.endsWith("youtube.com")||b.endsWith("youtube-nocookie.com")))&&T&&T.startsWith("/api/");if(!b||T)return W;var L=_.VP(O),h={};_.$X(s2e,function(Z){L[Z]&&(h[Z]=L[Z])});
return wB1(W,h)};
nFX=function(W,O){O.method="POST";O.postParams||(O.postParams={});return _.Yv(W,O)};
fFP=function(W,O){var b=_.Cv("XSRF_FIELD_NAME"),T;O.headers&&(T=O.headers["Content-Type"]);return!O.excludeXsrf&&(!_.cU(W)||O.withCredentials||_.cU(W)===document.location.hostname)&&O.method==="POST"&&(!T||T==="application/x-www-form-urlencoded")&&!(O.postParams&&O.postParams[b])};
_.Yv=function(W,O){var b=O.format||"JSON";W=GsQ(W,O);var T=HPX(W,O),L=!1,h=t3q(W,function(m){if(!L){L=!0;a&&_.ae(a);var w=_.ksP(m),A=null,X=400<=m.status&&m.status<500,l=500<=m.status&&m.status<600;if(w||X||l)A=$yX(W,b,m,O.convertToSafeHtml);w&&(w=V3h(b,m,A));A=A||{};X=O.context||_.i1;w?O.onSuccess&&O.onSuccess.call(X,m,A):O.onError&&O.onError.call(X,m,A);O.onFinish&&O.onFinish.call(X,m,A)}},O.method,T,O.headers,O.responseType,O.withCredentials);
T=O.timeout||0;if(O.onTimeout&&T>0){var Z=O.onTimeout;var a=_.Zp(function(){L||(L=!0,h.abort(),_.ae(a),Z.call(O.context||_.i1,h))},T)}return h};
GsQ=function(W,O){O.includeDomain&&(W=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+W);var b=_.Cv("XSRF_FIELD_NAME");if(O=O.urlParams)O[b]&&delete O[b],W=_.MC(W,O);return W};
HPX=function(W,O){var b=_.Cv("XSRF_FIELD_NAME"),T=_.Cv("XSRF_TOKEN"),L=O.postBody||"",h=O.postParams;fFP(W,O)&&(h||(h={}),h[b]=T);(_.e("ajax_parse_query_data_only_when_filled")&&h&&Object.keys(h).length>0||h)&&typeof L==="string"&&(L=_.VP(L),_.PQ.extend(L,h),L=O.postBodyFormat&&O.postBodyFormat==="JSON"?JSON.stringify(L):_.ET(L));h=L||h&&!_.PQ.isEmpty(h);!N3q&&h&&O.method!=="POST"&&(N3q=!0,_.nv(Error("Gc")));return L};
$yX=function(W,O,b,T){var L=null;switch(O){case "JSON":try{var h=b.responseText}catch(Z){throw T=Error("Hc"),T.params=W,_.HU(T),Z;}W=b.getResponseHeader("Content-Type")||"";h&&W.indexOf("json")>=0&&(h.substring(0,5)===")]}'\n"&&(h=h.substring(5)),L=JSON.parse(h));break;case "XML":if(W=(W=b.responseXML)?M31(W):null)L={},_.$X(W.getElementsByTagName("*"),function(Z){L[Z.tagName]=u22(Z)})}T&&Jq2(L);
return L};
Jq2=function(W){if(_.LH(W))for(var O in W)O==="html_content"||hX(O,"_html")?W[O]=oQ(W[O]):Jq2(W[O])};
V3h=function(W,O,b){if(O&&O.status===204)return!0;switch(W){case "JSON":return!!b;case "XML":return Number(b&&b.return_code)===0;case "RAW":return!0;default:return!!b}};
M31=function(W){return W?(W=("responseXML"in W?W.responseXML:W).getElementsByTagName("root"))&&W.length>0?W[0]:null:null};
u22=function(W){var O="";_.$X(W.childNodes,function(b){O+=b.nodeValue});
return O};
cq1=function(W){if(W.name==="JavaException")return!0;W=W.stack;return W.includes("chrome://")||W.includes("-extension://")||W.includes("webkit-masked-url://")};
FAe=function(W){if(!W.stack)return!0;var O=!W.stack.includes("\n");return O&&W.stack.includes("ErrorType: ")||O&&W.stack.includes("Anonymous function (Unknown script")||W.stack.toLowerCase()==="not available"||W.fileName==="user-script"||W.fileName.startsWith("user-script:")?!0:!1};
_.wO=function(W){_.R8.call(this);this.JSC$8444_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!W};
W1X=function(W,O){var b=W.length,T=0,L=function(){return W.charCodeAt(T++)};
do{var h=yqi(L);if(h===Infinity)break;var Z=h>>3;switch(h&7){case 0:h=yqi(L);if(Z===O)return h;break;case 1:if(Z===O)return;T+=8;break;case 2:h=yqi(L);if(Z===O)return W.substr(T,h);T+=h;break;case 5:if(Z===O)return;T+=4;break;default:return}}while(T<b)};
yqi=function(W){var O=W(),b=O&127;if(O<128)return b;O=W();b|=(O&127)<<7;if(O<128)return b;O=W();b|=(O&127)<<14;if(O<128)return b;O=W();return O<128?b|(O&127)<<21:Infinity};
iqE=function(W,O,b,T){if(W)if(Array.isArray(W)){var L=T;for(T=0;T<W.length&&!(W[T]&&(L+=Oq1(T,W[T],O,b),L>500));T++);T=L}else if(typeof W==="object")for(L in W){if(W[L]){var h=L;var Z=W[L],a=O,m=b;h=typeof Z!=="string"||h!=="clickTrackingParams"&&h!=="trackingParams"?0:(Z=W1X(atob(Z.replace(/-/g,"+").replace(/_/g,"/")),2))?Oq1(h+".ve",Z,a,m):0;T+=h;T+=Oq1(L,W[L],O,b);if(T>500)break}}else b[O]=AL(W),T+=b[O].length;else b[O]=AL(W),T+=b[O].length;return T};
Oq1=function(W,O,b,T){b+="."+W;W=AL(O);T[b]=W;return b.length+W.length};
AL=function(W){try{return(typeof W==="string"?W:String(JSON.stringify(W))).substr(0,500)}catch(O){return"unable to serialize "+typeof W+" ("+O.message+")"}};
bqQ=function(W){switch(W){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}};
_.UT=function(W,O,b,T,L){_.Xq.set(W,O,{maxAge:b,path:"/",domain:T===void 0?"youtube.com":T,secure:L===void 0?!1:L})};
_.js2=function(W,O,b){_.Xq.remove(W,O===void 0?"/":O,b===void 0?"youtube.com":b)};
_.lq=function(){if(_.e("embeds_web_enable_cookie_detection_fix")){if(!_.i1.navigator.cookieEnabled)return!1}else if(!_.Xq.isEnabled())return!1;if(!_.Xq.isEmpty())return!0;_.e("embeds_web_enable_cookie_detection_fix")?_.Xq.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Xq.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Xq.get("TESTCOOKIESENABLED")!=="1")return!1;_.Xq.remove("TESTCOOKIESENABLED");return!0};
TlX=function(){var W=_.i1.navigator;return W?W.connection:void 0};
L1X=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(W){}};
_.hHX=function(){var W=TlX();if(W){var O=dph[W.type||"unknown"]||"CONN_UNKNOWN";W=dph[W.effectiveType||"unknown"]||"CONN_UNKNOWN";O==="CONN_CELLULAR_UNKNOWN"&&W!=="CONN_UNKNOWN"&&(O=W);if(O!=="CONN_UNKNOWN")return O;if(W!=="CONN_UNKNOWN")return W}};
ZqX=function(){var W=TlX();if(W!=null&&W.effectiveType)return SkE.hasOwnProperty(W.effectiveType)?SkE[W.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.P3=function(){try{return _.eJ(),!0}catch(W){return!1}};
_.eJ=function(W){if(_.Cv("DATASYNC_ID")!==void 0)return _.Cv("DATASYNC_ID");throw new _.pu("Datasync ID not set",W===void 0?"unknown":W);};
_.Re=function(W){this.mechanism=W};
Ku=function(W){this.mechanism=W};
v3=function(W){this.storage_=W;this.cachedIsStorageAvailable_=null};
Iuq=function(){var W=null;try{W=_.i1.localStorage||null}catch(O){}v3.call(this,W)};
auQ=function(){var W=null;try{W=_.i1.sessionStorage||null}catch(O){}v3.call(this,W)};
gO=function(W,O){this.mechanism_=W;this.JSC$8546_prefix_=O+"::"};
_.mph=function(W){var O=new Iuq;return O.isAvailable()?W?new gO(O,W):O:null};
_.YkX=function(W){var O=new auQ;return O.isAvailable()?W?new gO(O,W):O:null};
wbX=function(){var W;return(W=EJ8())==null?void 0:W.get("LAST_RESULT_ENTRY_KEY",!0)};
_.kv=function(W){ACQ||(_.oe?_.oe.logError(W):(_.QY.push({type:"ERROR",payload:W}),_.QY.length>10&&_.QY.shift()))};
sT=function(W,O){ACQ||(_.oe?_.oe.logEvent(W,O):(_.QY.push({type:"EVENT",eventType:W,payload:O}),_.QY.length>10&&_.QY.shift()))};
B3=function(W){if(W.indexOf(":")>=0)throw Error("Oc");};
rO=function(W){return W.substr(0,W.indexOf(":"))||W};
lui=function(){return(XbO||Up2)&&Dp("applewebkit")&&!Dp("version")&&(!Dp("safari")||Dp("gsa/"))};
Dp=function(W){var O=_.AX();return O?O.toLowerCase().indexOf(W)>=0:!1};
pb8=function(W,O,b,T){O=rO(O);var L=W instanceof Error?W:Error("Pc`"+W);if(L instanceof xv)return L;W={objectStoreNames:b,dbName:O,dbVersion:T};if(L.name==="QuotaExceededError")return new xv("QUOTA_EXCEEDED",W);if(_.zZ&&L.name==="UnknownError")return new xv("QUOTA_MAYBE_EXCEEDED",W);if(L instanceof eHO)return new xv("MISSING_INDEX",Object.assign({},W,{objectStore:L.objectStore,index:L.index}));if(L.name==="InvalidStateError"&&Pe8.some(function(h){return L.message.includes(h)}))return new xv("EXECUTE_TRANSACTION_ON_CLOSED_DB",
W);
if(L.name==="AbortError")return new xv("UNKNOWN_ABORT",W,L.message);L.args=[Object.assign({},W,{name:"IdbError",originalName:L.name})];L.level="WARNING";return L};
Cu=function(W,O,b){var T=wbX();return new xv("IDB_NOT_SUPPORTED",{context:{caller:W,publicName:O,version:b,hasSucceededOnce:T==null?void 0:T.hasSucceededOnce}})};
RHX=function(W){if(!W)throw Error();throw W;};
K1Q=function(W){return W};
vJq=function(W,O,b){var T=function(){try{W.removeEventListener("success",L),W.removeEventListener("error",h)}catch(Z){}},L=function(){O(W.result);
T()},h=function(){b(W.error);
T()};
W.addEventListener("success",L);W.addEventListener("error",h)};
gJi=function(W){return new Promise(function(O,b){vJq(W,O,b)})};
fu=function(W){return new qm(new nu(function(O,b){vJq(W,O,b)}))};
oJQ=function(W,O){return new qm(new nu(function(b,T){var L=function(){var h=W?O(W):null;h?h.then(function(Z){W=Z;L()},T):b()};
L()}))};
kDP=function(W,O,b){return new Promise(function(T,L){var h=O!==void 0?self.indexedDB.open(W,O):self.indexedDB.open(W);var Z=b.blocked,a=b.blocking,m=b.terminated,w=b.upgrade,A=b.closed,X,l=function(){X||(X=new GZ(h.result,{closed:A}));return X};
h.addEventListener("upgradeneeded",function(p){try{if(p.newVersion===null)throw Error("Uc");if(h.transaction===null)throw Error("Vc");p.dataLoss&&p.dataLoss!=="none"&&sT("IDB_DATA_CORRUPTED",{reason:p.dataLossMessage||"unknown reason",dbName:rO(W)});var K=l(),k=new QsX(h.transaction);w&&w(K,function(r){return p.oldVersion<r&&p.newVersion>=r},k);
k.done.catch(function(r){L(r)})}catch(r){L(r)}});
h.addEventListener("success",function(){var p=h.result;a&&p.addEventListener("versionchange",function(){a(l())});
p.addEventListener("close",function(){sT("IDB_UNEXPECTEDLY_CLOSED",{dbName:rO(W),dbVersion:p.version});m&&m()});
T(l())});
h.addEventListener("error",function(){L(h.error)});
Z&&h.addEventListener("blocked",function(){Z()})})};
ssq=function(W,O,b){b=b===void 0?{}:b;return kDP(W,O,b)};
_.tL=function(W,O){O=O===void 0?{}:O;var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return _.LI(Z,2),b=self.indexedDB.deleteDatabase(W),T=O,(L=T.blocked)&&b.addEventListener("blocked",function(){L()}),_.Y(Z,gJi(b),4);
if(Z.nextAddress!=2)return _.H3(Z,0);h=_.ID(Z);throw pb8(h,W,"",-1);})};
rCX=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.$v(Bli,O),2);b=T.yieldResult;return T.return(_.VY(b,["databases"],{enableRetries:!0,mode:"readwrite"},function(L){var h=L.objectStore("databases");return h.get(W.actualName).then(function(Z){if(Z?W.actualName!==Z.actualName||W.publicName!==Z.publicName||W.userIdentifier!==Z.userIdentifier:1)return h.put(W).then(function(){})})}))})};
_.Nm=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return W?_.Y(T,_.$v(Bli,O),2):T.return();b=T.yieldResult;return T.return(b.delete("databases",W))})};
_.DpX=function(W,O){var b,T;return _.I(function(L){return L.nextAddress==1?(b=[],_.Y(L,_.$v(Bli,O),2)):L.nextAddress!=3?(T=L.yieldResult,_.Y(L,_.VY(T,["databases"],{enableRetries:!0,mode:"readonly"},function(h){b.length=0;return Mm(h.objectStore("databases"),{},function(Z){W(Z.getValue())&&b.push(Z.getValue());return Z.continue()})}),3)):L.return(b)})};
xpe=function(W,O){return _.DpX(function(b){return b.publicName===W&&b.userIdentifier!==void 0},O)};
qk8=function(){var W,O,b,T;return _.I(function(L){switch(L.nextAddress){case 1:W=wbX();if((O=W)==null?0:O.hasSucceededOnce)return L.return(!0);var h;if(h=zHX)h=/WebKit\/([0-9]+)/.exec(_.AX()),h=!!(h&&parseInt(h[1],10)>=600);h&&(h=/WebKit\/([0-9]+)/.exec(_.AX()),h=!(h&&parseInt(h[1],10)>=602));if(h||uq)return L.return(!1);try{if(b=self,!(b.indexedDB&&b.IDBIndex&&b.IDBKeyRange&&b.IDBObjectStore))return L.return(!1)}catch(Z){return L.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return L.return(!1);
_.LI(L,2);T={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.Y(L,rCX(T,CeQ),4);case 4:return _.Y(L,_.Nm("yt-idb-test-do-not-use",CeQ),5);case 5:return L.return(!0);case 2:return _.ID(L),L.return(!1)}})};
fuT=function(){if(nJX!==void 0)return nJX;ACQ=!0;return nJX=qk8().then(function(W){ACQ=!1;var O;if((O=EJ8())!=null&&O.expiringStorage_){var b;O={hasSucceededOnce:((b=wbX())==null?void 0:b.hasSucceededOnce)||W};var T;(T=EJ8())==null||T.set("LAST_RESULT_ENTRY_KEY",O,2592E3,!0)}return W})};
JL=function(){return _.GT("ytglobal.idbToken_")||void 0};
_.Fq=function(){var W=JL();return W?Promise.resolve(W):fuT().then(function(O){(O=O?CeQ:void 0)&&_.c3("ytglobal.idbToken_",O);return O})};
GDX=function(W){if(!_.P3())throw W=new xv("AUTH_INVALID",{dbName:W}),_.kv(W),W;var O=_.eJ();return{actualName:W+":"+O,publicName:W,userIdentifier:O}};
HqO=function(W,O,b,T){var L,h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:return h=(L=Error().stack)!=null?L:"",_.Y(A,_.Fq(),2);case 2:Z=A.yieldResult;if(!Z)throw a=Cu("openDbImpl",W,O),_.e("ytidb_async_stack_killswitch")||(a.stack=a.stack+"\n"+h.substring(h.indexOf("\n")+1)),_.kv(a),a;B3(W);m=b?{actualName:W,publicName:W,userIdentifier:void 0}:GDX(W);_.LI(A,3);return _.Y(A,rCX(m,Z),5);case 5:return _.Y(A,ssq(m.actualName,O,T),6);case 6:return A.return(A.yieldResult);case 3:return w=
_.ID(A),_.LI(A,7),_.Y(A,_.Nm(m.actualName,Z),9);case 9:_.H3(A,8);break;case 7:_.ID(A);case 8:throw w;}})};
tHO=function(W,O,b){b=b===void 0?{}:b;return HqO(W,O,!1,b)};
$p1=function(W,O,b){b=b===void 0?{}:b;return HqO(W,O,!0,b)};
VH1=function(W,O){O=O===void 0?{}:O;var b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,_.Fq(),2);if(L.nextAddress!=3){b=L.yieldResult;if(!b)return L.return();B3(W);T=GDX(W);return _.Y(L,_.tL(T.actualName,O),3)}return _.Y(L,_.Nm(T.actualName,b),0)})};
NlO=function(W,O,b){W=W.map(function(T){return _.I(function(L){return L.nextAddress==1?_.Y(L,_.tL(T.actualName,O),2):_.Y(L,_.Nm(T.actualName,b),0)})});
return Promise.all(W).then(function(){})};
MH2=function(W){var O=O===void 0?{}:O;var b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,_.Fq(),2);if(L.nextAddress!=3){b=L.yieldResult;if(!b)return L.return();B3(W);return _.Y(L,xpe(W,b),3)}T=L.yieldResult;return _.Y(L,NlO(T,O,b),0)})};
u9Q=function(W,O){O=O===void 0?{}:O;var b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Fq(),2);if(T.nextAddress!=3){b=T.yieldResult;if(!b)return T.return();B3(W);return _.Y(T,_.tL(W,O),3)}return _.Y(T,_.Nm(W,b),0)})};
yY=function(W,O){return JCO(W,O)};
F1e=function(W){return _.$v(cCX(),W)};
yCO=function(W,O,b,T){var L,h,Z;return _.I(function(a){switch(a.nextAddress){case 1:return L={config:W,hashData:O,timestamp:T!==void 0?T:(0,_.WO)()},_.Y(a,F1e(b),2);case 2:return h=a.yieldResult,_.Y(a,h.clear("hotConfigStore"),3);case 3:return _.Y(a,h.put("hotConfigStore",L),4);case 4:return Z=a.yieldResult,a.return(Z)}})};
WM2=function(W,O,b,T,L){var h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:return h={config:W,hashData:O,configData:b,timestamp:L!==void 0?L:(0,_.WO)()},_.Y(m,F1e(T),2);case 2:return Z=m.yieldResult,_.Y(m,Z.clear("coldConfigStore"),3);case 3:return _.Y(m,Z.put("coldConfigStore",h),4);case 4:return a=m.yieldResult,m.return(a)}})};
OV1=function(W){var O,b;return _.I(function(T){return T.nextAddress==1?_.Y(T,F1e(W),2):T.nextAddress!=3?(O=T.yieldResult,b=void 0,_.Y(T,_.VY(O,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.OF(L.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(h){b=h.getValue()})}),3)):T.return(b)})};
iVT=function(W){var O,b;return _.I(function(T){return T.nextAddress==1?_.Y(T,F1e(W),2):T.nextAddress!=3?(O=T.yieldResult,b=void 0,_.Y(T,_.VY(O,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(L){return _.OF(L.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(h){b=h.getValue()})}),3)):T.return(b)})};
bVP=function(){return _.I(function(W){return _.Y(W,MH2("ytGcfConfig"),0)})};
j5P=function(){return"INNERTUBE_API_KEY"in _.Dk&&"INNERTUBE_API_VERSION"in _.Dk};
_.iP=function(){return{innertubeApiKey:_.Cv("INNERTUBE_API_KEY"),innertubeApiVersion:_.Cv("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Cv("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Cv("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Cv("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Cv("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.qC("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.qC("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Cv("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.IMT=function(W){var O={client:{hl:W.innertubeContextHostLanguage,gl:W.innertubeContextGeoLocation,clientName:W.innertubeContextClientName,clientVersion:W.innertubeContextClientVersion,configInfo:W.innertubeContextClientConfigInfo}};navigator.userAgent&&(O.client.userAgent=String(navigator.userAgent));var b=_.i1.devicePixelRatio;b&&b!=1&&(O.client.screenDensityFloat=String(b));b=vF8();b!==""&&(O.client.experimentsToken=b);b=gFi();b.length>0&&(O.request={internalExperimentFlags:b});Ta1(W,void 0,O);
LMe(void 0,O);dkE(void 0,O);h$X(W,void 0,O);SOT(void 0,O);_.e("start_client_gcf")&&ZVX(void 0,O);_.Cv("DELEGATED_SESSION_ID")&&!_.e("pageid_as_header_web")&&(O.user={onBehalfOfUser:_.Cv("DELEGATED_SESSION_ID")});!_.e("fill_delegate_context_in_gel_killswitch")&&(W=_.Cv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(O.user=Object.assign({},O.user,{serializedDelegationContext:W}));W=_.Cv("INNERTUBE_CONTEXT");var T;if(_.e("enable_persistent_device_token")&&(W==null?0:(T=W.client)==null?0:T.rolloutToken)){var L;
O.client.rolloutToken=W==null?void 0:(L=W.client)==null?void 0:L.rolloutToken}T=Object;L=T.assign;W=O.client;b={};for(var h=_.S(Object.entries(_.VP(_.Cv("DEVICE","")))),Z=h.next();!Z.done;Z=h.next()){var a=_.S(Z.value);Z=a.next().value;a=a.next().value;Z==="cbrand"?b.deviceMake=a:Z==="cmodel"?b.deviceModel=a:Z==="cbr"?b.browserName=a:Z==="cbrver"?b.browserVersion=a:Z==="cos"?b.osName=a:Z==="cosver"?b.osVersion=a:Z==="cplatform"&&(b.platform=a)}O.client=L.call(T,W,b);return O};
Ta1=function(W,O,b){W=W.innertubeContextClientName;if(W==="WEB"||W==="MWEB"||W===1||W===2)if(O){b=_.bP(O,aMQ,96)||new aMQ;var T=mkO();T=Object.keys(YO1).indexOf(T);T=T===-1?null:T;T!==null&&_.jq(b,3,T);_.jL(O,96,b)}else b&&(b.client.mainAppWebInfo=(T=b.client.mainAppWebInfo)!=null?T:{},b.client.mainAppWebInfo.webDisplayMode=mkO())};
LMe=function(W,O){var b=_.GT("yt.embedded_player.embed_url");b&&(W?(O=_.bP(W,E0O,7)||new E0O,_.aG(O,4,b),_.jL(W,7,O)):O&&(O.thirdParty={embedUrl:b}))};
dkE=function(W,O){var b;if(_.e("web_log_memory_total_kbytes")&&((b=_.i1.navigator)==null?0:b.deviceMemory)){var T;b=(T=_.i1.navigator)==null?void 0:T.deviceMemory;W?_.T7(W,95,rg(b*1E6)):O&&(O.client.memoryTotalKbytes=""+b*1E6)}};
h$X=function(W,O,b){if(W.appInstallData)if(O){var T;b=(T=_.bP(O,L9,62))!=null?T:new L9;_.aG(b,6,W.appInstallData);_.jL(O,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},b.client.configInfo.appInstallData=W.appInstallData)};
SOT=function(W,O){var b=_.hHX();b&&(W?_.jq(W,61,wg8[b]):O&&(O.client.connectionType=b));_.e("web_log_effective_connection_type")&&(b=ZqX())&&(W?_.jq(W,94,A3h[b]):O&&(O.client.effectiveConnectionType=b))};
_.lMQ=function(W,O,b){b=b===void 0?{}:b;var T={};_.Cv("EOM_VISITOR_DATA")?T={"X-Goog-EOM-Visitor-Id":_.Cv("EOM_VISITOR_DATA")}:T={"X-Goog-Visitor-Id":b.visitorData||_.Cv("VISITOR_DATA","")};if(O&&O.includes("www.youtube-nocookie.com"))return T;O=b.authorization||_.Cv("AUTHORIZATION");O||(W?O="Bearer "+_.GT("gapi.auth.getToken")().access_token:(XgO.instance||(XgO.instance=new XgO),W=Uk8(),_.e("pageid_as_header_web")||delete W["X-Goog-PageId"],T=Object.assign({},T,W)));O&&(T.Authorization=O);return T};
ZVX=function(W,O){var b=e$1();if(b){var T=b.coldConfigData,L=b.coldHashData;b=b.hotHashData;if(W){var h;O=(h=_.bP(W,L9,62))!=null?h:new L9;T=_.aG(O,1,T);_.aG(T,3,L).setHotHashData(b);_.jL(W,62,O)}else O&&(O.client.configInfo=O.client.configInfo||{},T&&(O.client.configInfo.coldConfigData=T),L&&(O.client.configInfo.coldHashData=L),b&&(O.client.configInfo.hotHashData=b))}};
dv=function(W){for(var O=W.length;--O>=0;)W[O]=0};
PXe=function(W,O,b,T,L){this.static_tree=W;this.extra_bits=O;this.extra_base=b;this.elems=T;this.max_length=L;this.has_stree=W&&W.length};
pgq=function(W,O){this.dyn_tree=W;this.max_code=0;this.stat_desc=O};
hS=function(W,O){W.pending_buf[W.pending++]=O&255;W.pending_buf[W.pending++]=O>>>8&255};
Sq=function(W,O,b){W.bi_valid>16-b?(W.bi_buf|=O<<W.bi_valid&65535,hS(W,W.bi_buf),W.bi_buf=O>>16-W.bi_valid,W.bi_valid+=b-16):(W.bi_buf|=O<<W.bi_valid&65535,W.bi_valid+=b)};
Ia=function(W,O,b){Sq(W,b[O*2],b[O*2+1])};
R$q=function(W,O){var b=0;do b|=W&1,W>>>=1,b<<=1;while(--O>0);return b>>>1};
KMe=function(W,O,b){var T=Array(16),L=0,h;for(h=1;h<=15;h++)T[h]=L=L+b[h-1]<<1;for(b=0;b<=O;b++)L=W[b*2+1],L!==0&&(W[b*2]=R$q(T[L]++,L))};
v0i=function(W){var O;for(O=0;O<286;O++)W.dyn_ltree[O*2]=0;for(O=0;O<30;O++)W.dyn_dtree[O*2]=0;for(O=0;O<19;O++)W.bl_tree[O*2]=0;W.dyn_ltree[512]=1;W.opt_len=W.static_len=0;W.last_lit=W.matches=0};
g0O=function(W){W.bi_valid>8?hS(W,W.bi_buf):W.bi_valid>0&&(W.pending_buf[W.pending++]=W.bi_buf);W.bi_buf=0;W.bi_valid=0};
o0X=function(W,O,b){g0O(W);hS(W,b);hS(W,~b);mY.arraySet(W.pending_buf,W.window,O,b,W.pending);W.pending+=b};
Q58=function(W,O,b,T){var L=O*2,h=b*2;return W[L]<W[h]||W[L]===W[h]&&T[O]<=T[b]};
kUX=function(W,O,b){for(var T=W.heap[b],L=b<<1;L<=W.heap_len;){L<W.heap_len&&Q58(O,W.heap[L+1],W.heap[L],W.depth)&&L++;if(Q58(O,T,W.heap[L],W.depth))break;W.heap[b]=W.heap[L];b=L;L<<=1}W.heap[b]=T};
xkE=function(W,O,b){var T=0;if(W.last_lit!==0){do{var L=W.pending_buf[W.d_buf+T*2]<<8|W.pending_buf[W.d_buf+T*2+1];var h=W.pending_buf[W.l_buf+T];T++;if(L===0)Ia(W,h,O);else{var Z=YO[h];Ia(W,Z+256+1,O);var a=s5Q[Z];a!==0&&(h-=BaP[Z],Sq(W,h,a));L--;Z=L<256?EF[L]:EF[256+(L>>>7)];Ia(W,Z,b);a=r32[Z];a!==0&&(L-=Dk2[Z],Sq(W,L,a))}}while(T<W.last_lit)}Ia(W,256,O)};
z$X=function(W,O){var b=O.dyn_tree,T=O.stat_desc.static_tree,L=O.stat_desc.has_stree,h=O.stat_desc.elems,Z,a=-1;W.heap_len=0;W.heap_max=573;for(Z=0;Z<h;Z++)b[Z*2]!==0?(W.heap[++W.heap_len]=a=Z,W.depth[Z]=0):b[Z*2+1]=0;for(;W.heap_len<2;){var m=W.heap[++W.heap_len]=a<2?++a:0;b[m*2]=1;W.depth[m]=0;W.opt_len--;L&&(W.static_len-=T[m*2+1])}O.max_code=a;for(Z=W.heap_len>>1;Z>=1;Z--)kUX(W,b,Z);m=h;do Z=W.heap[1],W.heap[1]=W.heap[W.heap_len--],kUX(W,b,1),T=W.heap[1],W.heap[--W.heap_max]=Z,W.heap[--W.heap_max]=
T,b[m*2]=b[Z*2]+b[T*2],W.depth[m]=(W.depth[Z]>=W.depth[T]?W.depth[Z]:W.depth[T])+1,b[Z*2+1]=b[T*2+1]=m,W.heap[1]=m++,kUX(W,b,1);while(W.heap_len>=2);W.heap[--W.heap_max]=W.heap[1];Z=O.dyn_tree;m=O.max_code;T=O.stat_desc.static_tree;L=O.stat_desc.has_stree;h=O.stat_desc.extra_bits;var w=O.stat_desc.extra_base,A=O.stat_desc.max_length,X,l=0;for(X=0;X<=15;X++)W.bl_count[X]=0;Z[W.heap[W.heap_max]*2+1]=0;for(O=W.heap_max+1;O<573;O++){var p=W.heap[O];X=Z[Z[p*2+1]*2+1]+1;X>A&&(X=A,l++);Z[p*2+1]=X;if(!(p>
m)){W.bl_count[X]++;var K=0;p>=w&&(K=h[p-w]);var k=Z[p*2];W.opt_len+=k*(X+K);L&&(W.static_len+=k*(T[p*2+1]+K))}}if(l!==0){do{for(X=A-1;W.bl_count[X]===0;)X--;W.bl_count[X]--;W.bl_count[X+1]+=2;W.bl_count[A]--;l-=2}while(l>0);for(X=A;X!==0;X--)for(p=W.bl_count[X];p!==0;)T=W.heap[--O],T>m||(Z[T*2+1]!==X&&(W.opt_len+=(X-Z[T*2+1])*Z[T*2],Z[T*2+1]=X),p--)}KMe(b,a,W.bl_count)};
CXO=function(W,O,b){var T,L=-1,h=O[1],Z=0,a=7,m=4;h===0&&(a=138,m=3);O[(b+1)*2+1]=65535;for(T=0;T<=b;T++){var w=h;h=O[(T+1)*2+1];++Z<a&&w===h||(Z<m?W.bl_tree[w*2]+=Z:w!==0?(w!==L&&W.bl_tree[w*2]++,W.bl_tree[32]++):Z<=10?W.bl_tree[34]++:W.bl_tree[36]++,Z=0,L=w,h===0?(a=138,m=3):w===h?(a=6,m=3):(a=7,m=4))}};
qOP=function(W,O,b){var T,L=-1,h=O[1],Z=0,a=7,m=4;h===0&&(a=138,m=3);for(T=0;T<=b;T++){var w=h;h=O[(T+1)*2+1];if(!(++Z<a&&w===h)){if(Z<m){do Ia(W,w,W.bl_tree);while(--Z!==0)}else w!==0?(w!==L&&(Ia(W,w,W.bl_tree),Z--),Ia(W,16,W.bl_tree),Sq(W,Z-3,2)):Z<=10?(Ia(W,17,W.bl_tree),Sq(W,Z-3,3)):(Ia(W,18,W.bl_tree),Sq(W,Z-11,7));Z=0;L=w;h===0?(a=138,m=3):w===h?(a=6,m=3):(a=7,m=4)}}};
n01=function(W){var O=4093624447,b;for(b=0;b<=31;b++,O>>>=1)if(O&1&&W.dyn_ltree[b*2]!==0)return 0;if(W.dyn_ltree[18]!==0||W.dyn_ltree[20]!==0||W.dyn_ltree[26]!==0)return 1;for(b=32;b<256;b++)if(W.dyn_ltree[b*2]!==0)return 1;return 0};
wv=function(W,O,b){W.pending_buf[W.d_buf+W.last_lit*2]=O>>>8&255;W.pending_buf[W.d_buf+W.last_lit*2+1]=O&255;W.pending_buf[W.l_buf+W.last_lit]=b&255;W.last_lit++;O===0?W.dyn_ltree[b*2]++:(W.matches++,O--,W.dyn_ltree[(YO[b]+256+1)*2]++,W.dyn_dtree[(O<256?EF[O]:EF[256+(O>>>7)])*2]++);return W.last_lit===W.lit_bufsize-1};
Xs=function(W,O){W.msg=AS[O];return O};
UF=function(W){for(var O=W.length;--O>=0;)W[O]=0};
lP=function(W){var O=W.state,b=O.pending;b>W.avail_out&&(b=W.avail_out);b!==0&&(mY.arraySet(W.output,O.pending_buf,O.pending_out,b,W.next_out),W.next_out+=b,O.pending_out+=b,W.total_out+=b,W.avail_out-=b,O.pending-=b,O.pending===0&&(O.pending_out=0))};
p9=function(W,O){var b=W.block_start>=0?W.block_start:-1,T=W.strstart-W.block_start,L=0;if(W.level>0){W.strm.data_type===2&&(W.strm.data_type=n01(W));z$X(W,W.l_desc);z$X(W,W.d_desc);CXO(W,W.dyn_ltree,W.l_desc.max_code);CXO(W,W.dyn_dtree,W.d_desc.max_code);z$X(W,W.bl_desc);for(L=18;L>=3&&W.bl_tree[fMi[L]*2+1]===0;L--);W.opt_len+=3*(L+1)+5+5+4;var h=W.opt_len+3+7>>>3;var Z=W.static_len+3+7>>>3;Z<=h&&(h=Z)}else h=Z=T+5;if(T+4<=h&&b!==-1)Sq(W,O?1:0,3),o0X(W,b,T);else if(W.strategy===4||Z===h)Sq(W,2+(O?
1:0),3),xkE(W,eq,PO);else{Sq(W,4+(O?1:0),3);b=W.l_desc.max_code+1;T=W.d_desc.max_code+1;L+=1;Sq(W,b-257,5);Sq(W,T-1,5);Sq(W,L-4,4);for(h=0;h<L;h++)Sq(W,W.bl_tree[fMi[h]*2+1],3);qOP(W,W.dyn_ltree,b-1);qOP(W,W.dyn_dtree,T-1);xkE(W,W.dyn_ltree,W.dyn_dtree)}v0i(W);O&&g0O(W);W.block_start=W.strstart;lP(W.strm)};
Ra=function(W,O){W.pending_buf[W.pending++]=O};
K9=function(W,O){W.pending_buf[W.pending++]=O>>>8&255;W.pending_buf[W.pending++]=O&255};
GUi=function(W,O){var b=W.max_chain_length,T=W.strstart,L=W.prev_length,h=W.nice_match,Z=W.strstart>W.w_size-262?W.strstart-(W.w_size-262):0,a=W.window,m=W.w_mask,w=W.prev,A=W.strstart+258,X=a[T+L-1],l=a[T+L];W.prev_length>=W.good_match&&(b>>=2);h>W.lookahead&&(h=W.lookahead);do{var p=O;if(a[p+L]===l&&a[p+L-1]===X&&a[p]===a[T]&&a[++p]===a[T+1]){T+=2;for(p++;a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&a[++T]===a[++p]&&T<A;);
p=258-(A-T);T=A-258;if(p>L){W.match_start=O;L=p;if(p>=h)break;X=a[T+L-1];l=a[T+L]}}}while((O=w[O&m])>Z&&--b!==0);return L<=W.lookahead?L:W.lookahead};
gv=function(W){var O=W.w_size,b;do{var T=W.window_size-W.lookahead-W.strstart;if(W.strstart>=O+(O-262)){mY.arraySet(W.window,W.window,O,O,0);W.match_start-=O;W.strstart-=O;W.block_start-=O;var L=b=W.hash_size;do{var h=W.head[--L];W.head[L]=h>=O?h-O:0}while(--b);L=b=O;do h=W.prev[--L],W.prev[L]=h>=O?h-O:0;while(--b);T+=O}if(W.strm.avail_in===0)break;L=W.strm;b=W.window;h=W.strstart+W.lookahead;var Z=L.avail_in;Z>T&&(Z=T);Z===0?b=0:(L.avail_in-=Z,mY.arraySet(b,L.input,L.next_in,Z,h),L.state.wrap===
1?L.adler=HV1(L.adler,b,Z,h):L.state.wrap===2&&(L.adler=vO(L.adler,b,Z,h)),L.next_in+=Z,L.total_in+=Z,b=Z);W.lookahead+=b;if(W.lookahead+W.insert>=3)for(T=W.strstart-W.insert,W.ins_h=W.window[T],W.ins_h=(W.ins_h<<W.hash_shift^W.window[T+1])&W.hash_mask;W.insert&&!(W.ins_h=(W.ins_h<<W.hash_shift^W.window[T+3-1])&W.hash_mask,W.prev[T&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=T,T++,W.insert--,W.lookahead+W.insert<3););}while(W.lookahead<262&&W.strm.avail_in!==0)};
txh=function(W,O){for(var b;;){if(W.lookahead<262){gv(W);if(W.lookahead<262&&O===0)return 1;if(W.lookahead===0)break}b=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,b=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);b!==0&&W.strstart-b<=W.w_size-262&&(W.match_length=GUi(W,b));if(W.match_length>=3)if(b=wv(W,W.strstart-W.match_start,W.match_length-3),W.lookahead-=W.match_length,W.match_length<=W.max_lazy_match&&W.lookahead>=3){W.match_length--;
do W.strstart++,W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart;while(--W.match_length!==0);W.strstart++}else W.strstart+=W.match_length,W.match_length=0,W.ins_h=W.window[W.strstart],W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+1])&W.hash_mask;else b=wv(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++;if(b&&(p9(W,!1),W.strm.avail_out===0))return 1}W.insert=W.strstart<2?W.strstart:2;return O===4?(p9(W,
!0),W.strm.avail_out===0?3:4):W.last_lit&&(p9(W,!1),W.strm.avail_out===0)?1:2};
oa=function(W,O){for(var b,T;;){if(W.lookahead<262){gv(W);if(W.lookahead<262&&O===0)return 1;if(W.lookahead===0)break}b=0;W.lookahead>=3&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,b=W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);W.prev_length=W.match_length;W.prev_match=W.match_start;W.match_length=2;b!==0&&W.prev_length<W.max_lazy_match&&W.strstart-b<=W.w_size-262&&(W.match_length=GUi(W,b),W.match_length<=5&&(W.strategy===1||W.match_length===3&&
W.strstart-W.match_start>4096)&&(W.match_length=2));if(W.prev_length>=3&&W.match_length<=W.prev_length){T=W.strstart+W.lookahead-3;b=wv(W,W.strstart-1-W.prev_match,W.prev_length-3);W.lookahead-=W.prev_length-1;W.prev_length-=2;do++W.strstart<=T&&(W.ins_h=(W.ins_h<<W.hash_shift^W.window[W.strstart+3-1])&W.hash_mask,W.prev[W.strstart&W.w_mask]=W.head[W.ins_h],W.head[W.ins_h]=W.strstart);while(--W.prev_length!==0);W.match_available=0;W.match_length=2;W.strstart++;if(b&&(p9(W,!1),W.strm.avail_out===0))return 1}else if(W.match_available){if((b=
wv(W,0,W.window[W.strstart-1]))&&p9(W,!1),W.strstart++,W.lookahead--,W.strm.avail_out===0)return 1}else W.match_available=1,W.strstart++,W.lookahead--}W.match_available&&(wv(W,0,W.window[W.strstart-1]),W.match_available=0);W.insert=W.strstart<2?W.strstart:2;return O===4?(p9(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(p9(W,!1),W.strm.avail_out===0)?1:2};
$kX=function(W,O){for(var b,T,L,h=W.window;;){if(W.lookahead<=258){gv(W);if(W.lookahead<=258&&O===0)return 1;if(W.lookahead===0)break}W.match_length=0;if(W.lookahead>=3&&W.strstart>0&&(T=W.strstart-1,b=h[T],b===h[++T]&&b===h[++T]&&b===h[++T])){for(L=W.strstart+258;b===h[++T]&&b===h[++T]&&b===h[++T]&&b===h[++T]&&b===h[++T]&&b===h[++T]&&b===h[++T]&&b===h[++T]&&T<L;);W.match_length=258-(L-T);W.match_length>W.lookahead&&(W.match_length=W.lookahead)}W.match_length>=3?(b=wv(W,1,W.match_length-3),W.lookahead-=
W.match_length,W.strstart+=W.match_length,W.match_length=0):(b=wv(W,0,W.window[W.strstart]),W.lookahead--,W.strstart++);if(b&&(p9(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return O===4?(p9(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(p9(W,!1),W.strm.avail_out===0)?1:2};
VxX=function(W,O){for(var b;;){if(W.lookahead===0&&(gv(W),W.lookahead===0)){if(O===0)return 1;break}W.match_length=0;b=wv(W,0,W.window[W.strstart]);W.lookahead--;W.strstart++;if(b&&(p9(W,!1),W.strm.avail_out===0))return 1}W.insert=0;return O===4?(p9(W,!0),W.strm.avail_out===0?3:4):W.last_lit&&(p9(W,!1),W.strm.avail_out===0)?1:2};
Qy=function(W,O,b,T,L){this.good_length=W;this.max_lazy=O;this.nice_length=b;this.max_chain=T;this.func=L};
NaX=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 mY.Buf16(1146);this.dyn_dtree=new mY.Buf16(122);this.bl_tree=new mY.Buf16(78);UF(this.dyn_ltree);UF(this.dyn_dtree);UF(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new mY.Buf16(16);this.heap=new mY.Buf16(573);UF(this.heap);this.heap_max=this.heap_len=0;this.depth=new mY.Buf16(573);UF(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};
MxX=function(W,O){if(!W||!W.state||O>5||O<0)return W?Xs(W,-2):-2;var b=W.state;if(!W.output||!W.input&&W.avail_in!==0||b.status===666&&O!==4)return Xs(W,W.avail_out===0?-5:-2);b.strm=W;var T=b.last_flush;b.last_flush=O;if(b.status===42)if(b.wrap===2)W.adler=0,Ra(b,31),Ra(b,139),Ra(b,8),b.gzhead?(Ra(b,(b.gzhead.text?1:0)+(b.gzhead.hcrc?2:0)+(b.gzhead.extra?4:0)+(b.gzhead.name?8:0)+(b.gzhead.comment?16:0)),Ra(b,b.gzhead.time&255),Ra(b,b.gzhead.time>>8&255),Ra(b,b.gzhead.time>>16&255),Ra(b,b.gzhead.time>>
24&255),Ra(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Ra(b,b.gzhead.os&255),b.gzhead.extra&&b.gzhead.extra.length&&(Ra(b,b.gzhead.extra.length&255),Ra(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(W.adler=vO(W.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(Ra(b,0),Ra(b,0),Ra(b,0),Ra(b,0),Ra(b,0),Ra(b,b.level===9?2:b.strategy>=2||b.level<2?4:0),Ra(b,3),b.status=113);else{var L=8+(b.w_bits-8<<4)<<8;L|=(b.strategy>=2||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6;b.strstart!==0&&(L|=
32);b.status=113;K9(b,L+(31-L%31));b.strstart!==0&&(K9(b,W.adler>>>16),K9(b,W.adler&65535));W.adler=1}if(b.status===69)if(b.gzhead.extra){for(L=b.pending;b.gzindex<(b.gzhead.extra.length&65535)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L)),lP(W),L=b.pending,b.pending!==b.pending_buf_size));)Ra(b,b.gzhead.extra[b.gzindex]&255),b.gzindex++;b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L));b.gzindex===b.gzhead.extra.length&&
(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){L=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L)),lP(W),L=b.pending,b.pending===b.pending_buf_size)){var h=1;break}h=b.gzindex<b.gzhead.name.length?b.gzhead.name.charCodeAt(b.gzindex++)&255:0;Ra(b,h)}while(h!==0);b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L));h===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===
91)if(b.gzhead.comment){L=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L)),lP(W),L=b.pending,b.pending===b.pending_buf_size)){h=1;break}h=b.gzindex<b.gzhead.comment.length?b.gzhead.comment.charCodeAt(b.gzindex++)&255:0;Ra(b,h)}while(h!==0);b.gzhead.hcrc&&b.pending>L&&(W.adler=vO(W.adler,b.pending_buf,b.pending-L,L));h===0&&(b.status=103)}else b.status=103;b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&lP(W),
b.pending+2<=b.pending_buf_size&&(Ra(b,W.adler&255),Ra(b,W.adler>>8&255),W.adler=0,b.status=113)):b.status=113);if(b.pending!==0){if(lP(W),W.avail_out===0)return b.last_flush=-1,0}else if(W.avail_in===0&&(O<<1)-(O>4?9:0)<=(T<<1)-(T>4?9:0)&&O!==4)return Xs(W,-5);if(b.status===666&&W.avail_in!==0)return Xs(W,-5);if(W.avail_in!==0||b.lookahead!==0||O!==0&&b.status!==666){T=b.strategy===2?VxX(b,O):b.strategy===3?$kX(b,O):kO[b.level].func(b,O);if(T===3||T===4)b.status=666;if(T===1||T===3)return W.avail_out===
0&&(b.last_flush=-1),0;if(T===2&&(O===1?(Sq(b,2,3),Ia(b,256,eq),b.bi_valid===16?(hS(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):b.bi_valid>=8&&(b.pending_buf[b.pending++]=b.bi_buf&255,b.bi_buf>>=8,b.bi_valid-=8)):O!==5&&(Sq(b,0,3),o0X(b,0,0),O===3&&(UF(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),lP(W),W.avail_out===0))return b.last_flush=-1,0}if(O!==4)return 0;if(b.wrap<=0)return 1;b.wrap===2?(Ra(b,W.adler&255),Ra(b,W.adler>>8&255),Ra(b,W.adler>>16&255),Ra(b,W.adler>>24&255),Ra(b,
W.total_in&255),Ra(b,W.total_in>>8&255),Ra(b,W.total_in>>16&255),Ra(b,W.total_in>>24&255)):(K9(b,W.adler>>>16),K9(b,W.adler&65535));lP(W);b.wrap>0&&(b.wrap=-b.wrap);return b.pending!==0?0:1};
utT=function(W){if(!(this instanceof utT))return new utT(W);W=this.options=mY.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},W||{});W.raw&&W.windowBits>0?W.windowBits=-W.windowBits:W.gzip&&W.windowBits>0&&W.windowBits<16&&(W.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new J3X;this.strm.avail_out=0;var O=this.strm;var b=W.level,T=W.method,L=W.windowBits,h=W.memLevel,Z=W.strategy;if(O){var a=1;b===-1&&(b=6);L<0?(a=0,L=-L):L>15&&
(a=2,L-=16);if(h<1||h>9||T!==8||L<8||L>15||b<0||b>9||Z<0||Z>4)O=Xs(O,-2);else{L===8&&(L=9);var m=new NaX;O.state=m;m.strm=O;m.wrap=a;m.gzhead=null;m.w_bits=L;m.w_size=1<<m.w_bits;m.w_mask=m.w_size-1;m.hash_bits=h+7;m.hash_size=1<<m.hash_bits;m.hash_mask=m.hash_size-1;m.hash_shift=~~((m.hash_bits+3-1)/3);m.window=new mY.Buf8(m.w_size*2);m.head=new mY.Buf16(m.hash_size);m.prev=new mY.Buf16(m.w_size);m.lit_bufsize=1<<h+6;m.pending_buf_size=m.lit_bufsize*4;m.pending_buf=new mY.Buf8(m.pending_buf_size);
m.d_buf=m.lit_bufsize;m.l_buf=3*m.lit_bufsize;m.level=b;m.strategy=Z;m.method=T;if(O&&O.state){O.total_in=O.total_out=0;O.data_type=2;b=O.state;b.pending=0;b.pending_out=0;b.wrap<0&&(b.wrap=-b.wrap);b.status=b.wrap?42:113;O.adler=b.wrap===2?0:1;b.last_flush=0;if(!c3O){T=Array(16);for(h=Z=0;h<28;h++)for(BaP[h]=Z,L=0;L<1<<s5Q[h];L++)YO[Z++]=h;YO[Z-1]=h;for(h=Z=0;h<16;h++)for(Dk2[h]=Z,L=0;L<1<<r32[h];L++)EF[Z++]=h;for(Z>>=7;h<30;h++)for(Dk2[h]=Z<<7,L=0;L<1<<r32[h]-7;L++)EF[256+Z++]=h;for(L=0;L<=15;L++)T[L]=
0;for(L=0;L<=143;)eq[L*2+1]=8,L++,T[8]++;for(;L<=255;)eq[L*2+1]=9,L++,T[9]++;for(;L<=279;)eq[L*2+1]=7,L++,T[7]++;for(;L<=287;)eq[L*2+1]=8,L++,T[8]++;KMe(eq,287,T);for(L=0;L<30;L++)PO[L*2+1]=5,PO[L*2]=R$q(L,5);FMe=new PXe(eq,s5Q,257,286,15);y38=new PXe(PO,r32,0,30,15);W_q=new PXe([],OeP,0,19,7);c3O=!0}b.l_desc=new pgq(b.dyn_ltree,FMe);b.d_desc=new pgq(b.dyn_dtree,y38);b.bl_desc=new pgq(b.bl_tree,W_q);b.bi_buf=0;b.bi_valid=0;v0i(b);b=0}else b=Xs(O,-2);b===0&&(O=O.state,O.window_size=2*O.w_size,UF(O.head),
O.max_lazy_match=kO[O.level].max_lazy,O.good_match=kO[O.level].good_length,O.nice_match=kO[O.level].nice_length,O.max_chain_length=kO[O.level].max_chain,O.strstart=0,O.block_start=0,O.lookahead=0,O.insert=0,O.match_length=O.prev_length=2,O.match_available=0,O.ins_h=0);O=b}}else O=-2;if(O!==0)throw Error(AS[O]);W.header&&(O=this.strm)&&O.state&&O.state.wrap===2&&(O.state.gzhead=W.header);if(W.dictionary){var w;typeof W.dictionary==="string"?w=ieP(W.dictionary):be8.call(W.dictionary)==="[object ArrayBuffer]"?
w=new Uint8Array(W.dictionary):w=W.dictionary;W=this.strm;h=w;Z=h.length;if(W&&W.state)if(w=W.state,O=w.wrap,O===2||O===1&&w.status!==42||w.lookahead)O=-2;else{O===1&&(W.adler=HV1(W.adler,h,Z,0));w.wrap=0;Z>=w.w_size&&(O===0&&(UF(w.head),w.strstart=0,w.block_start=0,w.insert=0),b=new mY.Buf8(w.w_size),mY.arraySet(b,h,Z-w.w_size,w.w_size,0),h=b,Z=w.w_size);b=W.avail_in;T=W.next_in;L=W.input;W.avail_in=Z;W.next_in=0;W.input=h;for(gv(w);w.lookahead>=3;){h=w.strstart;Z=w.lookahead-2;do w.ins_h=(w.ins_h<<
w.hash_shift^w.window[h+3-1])&w.hash_mask,w.prev[h&w.w_mask]=w.head[w.ins_h],w.head[w.ins_h]=h,h++;while(--Z);w.strstart=h;w.lookahead=2;gv(w)}w.strstart+=w.lookahead;w.block_start=w.strstart;w.insert=w.lookahead;w.lookahead=0;w.match_length=w.prev_length=2;w.match_available=0;W.next_in=T;W.input=L;W.avail_in=b;w.wrap=O;O=0}else O=-2;if(O!==0)throw Error(AS[O]);this._dict_set=!0}};
jJ2=function(W,O){O=O||{};O.gzip=!0;O=new utT(O);O.push(W,!0);if(O.err)throw O.msg||AS[O.err];return O.result};
L_P=function(W,O){var b=Tm8();b&&b.publish.call(b,W.toString(),W,O)};
I5T=function(W,O,b){var T=Tm8();if(!T)return 0;var L=T.subscribe(W.toString(),function(h,Z){var a=_.GT("ytPubsub2Pubsub2SkipSubKey");a&&a==L||(a=function(){if(dX8[L])try{if(Z&&W instanceof hgX&&W!=h)try{var m=W.dataClass,w=Z;if(!w.args||!w.version)throw Error("Xc");try{if(!m.version_){var A=new m;m.version_=A.version}var X=m.version_}catch(l){}if(!X||w.version!=X)throw Error("Yc");try{Z=Reflect.construct(m,_.Ov(w.args))}catch(l){throw l.message="yt.pubsub2.Data.deserialize(): "+l.message,l;}}catch(l){throw l.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+W.toString()+": "+l.message,l;}O.call(b||window,Z)}catch(l){_.nv(l)}},SrX[W.toString()]?_.GT("yt.scheduler.instance")?_.sF.addLowPriorityJob(a):_.Zp(a,0):a())});
dX8[L]=!0;Zee[W.toString()]||(Zee[W.toString()]=[]);Zee[W.toString()].push(L);return L};
E9X=function(){var W=a58,O=I5T(mXX,function(b){W.apply(void 0,arguments);Yr8(O)});
return O};
Yr8=function(W){var O=Tm8();O&&(typeof W==="number"&&(W=[W]),_.$X(W,function(b){O.unsubscribeByKey(b);delete dX8[b]}))};
Tm8=function(){return _.GT("ytPubsub2Pubsub2Instance")};
wSQ=function(W,O,b){b=b===void 0?{sampleRate:.1}:b;Math.random()<Math.min(.02,b.sampleRate/100)&&L_P("meta_logging_csi_event",{timerName:W,timelineData:O})};
_.AHX=function(W){return W?(W=W.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Cz(W):null:null};
_.BO=function(W){return W?(W=W.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.SL(W):null:null};
UX2=function(){XSO||(XSO=_.BO(_.Cv("WORKER_SERIALIZATION_URL")));return XSO||void 0};
_.egi=function(){var W=UX2();l5Q||W===void 0||(l5Q=new Worker(_.Zd(W),void 0));return l5Q};
_.Pv8=function(){return typeof Worker==="function"&&UX2()?!0:!1};
_.v9T=function(){if(_.Pv8()&&!pSX){var W=function(b){b=b.data;if(b.op==="gzippedGelBatch"){var T=RgQ.get(b.key);T&&(K_T(b.gzippedBatch,T.latencyPayload,T.url,T.options,T.sendFn),RgQ.delete(b.key))}},O=_.egi();
O&&(O.addEventListener("message",W),O.onerror=function(){RgQ.clear()},pSX=!0)}};
rHX=function(W,O,b,T,L){L=L===void 0?!1:L;var h={startTime:(0,_.WO)(),ticks:{},infos:{}};if(rv)try{var Z=g9X(O);if(Z!=null&&(Z>o9h||Z<QJe))T(W,b);else{if(_.e("gzip_gel_with_worker")&&(_.e("initial_gzip_use_main_thread")&&!kcO||!_.e("initial_gzip_use_main_thread"))){pSX||_.v9T();var a=_.egi();if(a&&!L){RgQ.set(sJO,{latencyPayload:h,url:W,options:b,sendFn:T});a.postMessage({op:"gelBatchToGzip",serializedBatch:O,key:sJO});sJO++;return}}var m=jJ2(Bmh(O));K_T(m,h,W,b,T)}}catch(w){_.HU(w),T(W,b)}else T(W,
b)};
K_T=function(W,O,b,T,L){kcO=!1;var h=(0,_.WO)();O.ticks.gelc=h;Df++;_.e("disable_compression_due_to_performance_degredation")&&h-O.startTime>=DXT&&(xXq++,_.e("abandon_compression_after_N_slow_zips")?Df===_.Lu("compression_disable_point")&&xXq>zgT&&(rv=!1):rv=!1);Cv1(O);T.headers||(T.headers={});T.headers["Content-Encoding"]="gzip";T.postBody=W;T.postParams=void 0;L(b,T)};
qre=function(W){var O=O===void 0?!1:O;var b=b===void 0?!1:b;var T=(0,_.WO)(),L={startTime:T,ticks:{},infos:{}},h=O?_.GT("yt.logging.gzipForFetch",!1):!0;if(rv&&h){if(!W.body)return W;try{var Z=b?W.body:typeof W.body==="string"?W.body:JSON.stringify(W.body);h=Z;if(!b&&typeof Z==="string"){var a=g9X(Z);if(a!=null&&(a>o9h||a<QJe))return W;b=O?{level:1}:void 0;h=jJ2(Bmh(Z),b);var m=(0,_.WO)();L.ticks.gelc=m;if(O){Df++;if((_.e("disable_compression_due_to_performance_degredation")||_.e("disable_compression_due_to_performance_degradation_lr"))&&
m-T>=DXT)if(xXq++,_.e("abandon_compression_after_N_slow_zips")||_.e("abandon_compression_after_N_slow_zips_lr")){O=xXq/Df;var w=zgT/_.Lu("compression_disable_point");Df>0&&Df%_.Lu("compression_disable_point")===0&&O>=w&&(rv=!1)}else rv=!1;Cv1(L)}}W.headers=Object.assign({},{"Content-Encoding":"gzip"},W.headers||{});W.body=h;return W}catch(A){return _.HU(A),W}}else return W};
g9X=function(W){try{return(new Blob(W.split(""))).size}catch(O){return _.HU(O),null}};
Cv1=function(W){_.e("gel_compression_csi_killswitch")||!_.e("log_gel_compression_latency")&&!_.e("log_gel_compression_latency_lr")||wSQ("gel_compression",W,{sampleRate:.1})};
n9e=function(){this.blockSize=-1};
xO=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var W=1;W<this.blockSize;++W)this.pad_[W]=0;this.total_=this.inbuf_=0;this.reset()};
Gcq=function(W){W=Object.assign({},W);delete W.Authorization;var O=f51();if(O){var b=new xO;b.update(_.Cv("INNERTUBE_API_KEY"));b.update(O);W.hash=_.WM(b.digest(),3)}return W};
C9=function(){HeQ||(HeQ=new _.z7("yt.innertube"));return HeQ};
tK8=function(W,O,b,T){if(T)return null;T=C9().get("nextId",!0)||1;var L=C9().get("requests",!0)||{};L[T]={method:W,request:O,authState:Gcq(b),requestTime:Math.round((0,_.WO)())};C9().set("nextId",T+1,86400,!0);C9().set("requests",L,86400,!0);return T};
$Xi=function(W){var O=C9().get("requests",!0)||{};delete O[W];C9().set("requests",O,86400,!0)};
NmE=function(W){var O=C9().get("requests",!0);if(O){for(var b in O){var T=O[b];if(!(Math.round((0,_.WO)())-T.requestTime<6E4)){var L=T.authState,h=Gcq(_.lMQ(!1));_.PQ.equals(L,h)&&(L=T.request,"requestTimeMs"in L&&(L.requestTimeMs=Math.round((0,_.WO)())),VK8(W,T.method,L,{}));delete O[b]}}C9().set("requests",O,86400,!0)}};
MKh=function(W){var O;return(W=W==null?void 0:(O=W.error)==null?void 0:O.code)&&W>=400&&W<=599?!1:!0};
uW8=function(W){var O;W=W==null?void 0:(O=W.error)==null?void 0:O.code;return!(W!==400&&W!==415)};
cHh=function(){if(JH8)return JH8();var W={};JH8=yY("LogsDatabaseV2",{objectStores:(W.LogsRequestsStore={addedAtVersion:2},W),shared:!1,upgrade:function(O,b,T){b(2)&&q8(O,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});b(3);b(5)&&(T=T.objectStore("LogsRequestsStore"),T.JSC$8605_wrapped.indexNames.contains("newRequest")&&T.JSC$8605_wrapped.deleteIndex("newRequest"),n9(T,"newRequestV2",["status","interface","timestamp"]));b(7)&&O.JSC$8590_wrapped.objectStoreNames.contains("sapisid")&&O.JSC$8590_wrapped.deleteObjectStore("sapisid");
b(9)&&O.JSC$8590_wrapped.objectStoreNames.contains("SWHealthLog")&&O.JSC$8590_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return JH8()};
f9=function(W){return _.$v(cHh(),W)};
yH8=function(W,O){var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return b={startTime:(0,_.WO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.Y(Z,f9(O),2);if(Z.nextAddress!=3)return T=Z.yieldResult,L=Object.assign({},W,{options:JSON.parse(JSON.stringify(W.options)),interface:_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.Y(Z,T.put("LogsRequestsStore",L),3);h=Z.yieldResult;b.ticks.tc=(0,_.WO)();F_Q(b);return Z.return(h)})};
WmX=function(W,O){var b,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return b={startTime:(0,_.WO)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.Y(A,f9(O),2);if(A.nextAddress!=3)return T=A.yieldResult,L=_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME",0),h=[W,L,0],Z=[W,L,(0,_.WO)()],a=IDBKeyRange.bound(h,Z),m="prev",_.e("use_fifo_for_networkless")&&(m="next"),w=void 0,_.Y(A,_.VY(T,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){return _.OF(X.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:a,direction:m},function(l){l.getValue()&&(w=l.getValue(),W==="NEW"&&(w.status="QUEUED",l.update(w)))})}),3);
b.ticks.tc=(0,_.WO)();F_Q(b);return A.return(w)})};
O_8=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,f9(O),2);b=T.yieldResult;return T.return(_.VY(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){var h=L.objectStore("LogsRequestsStore");return h.get(W).then(function(Z){if(Z)return Z.status="QUEUED",h.put(Z).then(function(){return Z})})}))})};
i_X=function(W,O,b,T){b=b===void 0?!0:b;var L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,f9(O),2);L=h.yieldResult;return h.return(_.VY(L,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(Z){var a=Z.objectStore("LogsRequestsStore");return a.get(W).then(function(m){return m?(m.status="NEW",b&&(m.sendCount+=1),T!==void 0&&(m.options.compress=T),a.put(m).then(function(){return m})):qm.resolve(void 0)})}))})};
b_q=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,f9(O),2);b=T.yieldResult;return T.return(b.delete("LogsRequestsStore",W))})};
juX=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,f9(W),2);O=T.yieldResult;b=(0,_.WO)()-2592E6;return _.Y(T,_.VY(O,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(L){return Mm(L.objectStore("LogsRequestsStore"),{},function(h){if(h.getValue().timestamp<=b)return h.delete().then(function(){return h.continue()})})}),0)})};
TET=function(){_.I(function(W){return _.Y(W,MH2("LogsDatabaseV2"),0)})};
F_Q=function(W){_.e("nwl_csi_killswitch")||wSQ("networkless_performance",W,{sampleRate:1})};
_.ddX=function(W){return _.$v(Lm8(),W)};
h3h=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,_.ddX(W),2);O=T.yieldResult;b=(0,_.WO)()-2592E6;return _.Y(T,_.VY(O,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){return Mm(L.objectStore("SWHealthLog"),{},function(h){if(h.getValue().timestamp<=b)return h.delete().then(function(){return h.continue()})})}),0)})};
SP8=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,_.ddX(W),2);O=b.yieldResult;return _.Y(b,O.clear("SWHealthLog"),0)})};
_.G7=function(W,O,b,T,L,h,Z){L=L===void 0?"":L;h=h===void 0?!1:h;Z=Z===void 0?!1:Z;if(W)if(b&&!Dp("cobalt"))_.HU(new _.pu("Legacy referrer-scrubbed ping detected")),W&&Z_q(W,void 0,{scrubReferrer:!0});else if(L)xyq(W,O,"POST",L,T);else if(_.Cv("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||T||Z)xyq(W,O,"GET","",T,void 0,h,Z);else{b:{try{c:{var a=new IrX({url:W});if(a.urlParamValues_.dsh==="1")var m=null;else{var w=a.urlParamValues_.ae;if(w==="1"){var A=a.urlParamValues_.adurl;if(A)try{m={version:3,directUrl:decodeURIComponent(A),
asyncUrl:v6X(a.JSC$7480_url_,"act=1","ri=1",ar1(a))};break c}catch(K){}}m=w==="2"?{version:4,directUrl:v6X(a.JSC$7480_url_,"dct=1","suid="+a.suid_,""),asyncUrl:v6X(a.JSC$7480_url_,"act=1","ri=1","suid="+a.suid_)}:null}}if(m){var X=_.mp(W);var l=!(!X||!X.endsWith("/aclk")||_.GP(W,"ri")!=="1");break b}}catch(K){}l=!1}if(l){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(W,"")){var p=!0;break b}}catch(K){}p=!1}p?(O&&O(),b=!0):b=!1}else b=!1;b||Z_q(W,O)}};
Z_q=function(W,O,b){b=b===void 0?{}:b;var T=new Image,L=""+mde++;YP8[L]=T;T.onload=T.onerror=function(){O&&YP8[L]&&O();delete YP8[L]};
b.scrubReferrer&&(T.referrerPolicy="no-referrer");T.src=W};
HO=function(W,O){E1h(W,O==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
whQ=function(W){var O;return((O=document.featurePolicy)==null?0:O.allowedFeatures().includes("attribution-reporting"))?W+"&nis=6":W+"&nis=5"};
AoE=function(W){if(!W)return!1;try{var O;if(((O=_.VP(W))==null?void 0:O.asm)==="4")return!0}catch(b){_.nv(b)}return!1};
E1h=function(W,O){O?(W=whQ(W),_.G7(W,void 0,void 0,void 0,"",!0,!0)):_.G7(W)};
Udq=function(){XhX||(XhX=new _.z7("yt.offline"));return XhX};
lrT=function(W){if(_.e("offline_error_handling")){var O=Udq().get("errors",!0)||{};O[W.message]={name:W.name,stack:W.stack};W.level&&(O[W.message].level=W.level);Udq().set("errors",O,2592E3,!0)}};
P8e=function(W,O,b,T){T=T===void 0?!1:T;O=_.e("web_fp_via_jspb")?Object.assign({},O):O;_.e("use_cfr_monitor")&&e38(W,O);if(_.e("use_request_time_ms_header"))O.headers&&yP(W)&&(O.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.WO)())));else{var L;if((L=O.postParams)==null?0:L.requestTimeMs)O.postParams.requestTimeMs=Math.round((0,_.WO)())}b&&Object.keys(O).length===0?_.G7(W):O.compress?O.postBody?(typeof O.postBody!=="string"&&(O.postBody=JSON.stringify(O.postBody)),rHX(W,O.postBody,
O,_.Yv,T)):rHX(W,JSON.stringify(O.postParams),O,nFX,T):_.Yv(W,O)};
phE=function(W,O){_.e("use_event_time_ms_header")&&yP(W)&&(O.headers||(O.headers={}),O.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.WO)())));return O};
_.Kmi=function(){R3X||(R3X=new _.Vy({logOfflineErrors:!0,enablePolling:!0}));return R3X};
e38=function(W,O){var b=O.onError?O.onError:function(){};
O.onError=function(L,h){N8().requestComplete(W,!1);b(L,h)};
var T=O.onSuccess?O.onSuccess:function(){};
O.onSuccess=function(L,h){N8().requestComplete(W,!0);T(L,h)}};
_.v1X=function(){return _.cU(document.location.toString())!=="www.youtube-nocookie.com"};
_.Quh=function(){return _.GT("ytNetworklessLoggingInitializationOptions")?_.g1i.isNwlInitialized:_.o1h};
kFe=function(W,O){if(_.e("polymer_on_demand_shady_dom")){var b;var T=(b=W.__shady_native_firstElementChild)!=null?b:W.firstElementChild}else T=W.firstElementChild;for(;T;){if(W=O(T)?T:kFe(T,O))return W;T=T.nextElementSibling}return null};
BEX=function(){var W=document;if("visibilityState"in W)return W.visibilityState;var O=suq+"VisibilityState";if(O in W)return W[O]};
_.ro8=function(W,O){var b;M8(W,function(T){b=O[T];return!!b});
return b};
_.JS=function(W){var O=DdX(W);O?O.focus():_.uP(W)};
DdX=function(W){return(W=kFe(W,function(O){return _.cO(O)?xdO(O)&&!!O.offsetParent:!1}))?W:null};
_.uP=function(W,O){W.hasAttribute("tabindex")||W.setAttribute("tabindex","-1");W.focus(O)};
z3E=function(W,O,b,T){T=T===void 0?{}:T;W.addEventListener&&(O!="mouseenter"||"onmouseenter"in document?O!="mouseleave"||"onmouseenter"in document?O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"):O="mouseout":O="mouseover");return _.PQ.findKey(Fs,function(L){var h=typeof L[4]==="boolean"&&L[4]==!!T,Z=_.LH(L[4])&&_.LH(T)&&_.PQ.equals(L[4],T);return!!L.length&&L[0]==W&&L[1]==O&&L[2]==b&&(h||Z)})};
_.WZ=function(W,O,b,T){T=T===void 0?{}:T;if(!W||!W.addEventListener&&!W.attachEvent)return"";var L=z3E(W,O,b,T);if(L)return L;L=++C8X.count+"";var h=!(O!="mouseenter"&&O!="mouseleave"||!W.addEventListener||"onmouseenter"in document);var Z=h?function(a){a=new yy(a);if(!_.sM(a.relatedTarget,function(m){return m==W},!0))return a.currentTarget=W,a.type=O,b.call(W,a)}:function(a){a=new yy(a);
a.currentTarget=W;return b.call(W,a)};
Z=_.fv(Z);W.addEventListener?(O=="mouseenter"&&h?O="mouseover":O=="mouseleave"&&h?O="mouseout":O=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(O="MozMousePixelScroll"),qPP()||typeof T==="boolean"?W.addEventListener(O,Z,T):W.addEventListener(O,Z,!!T.capture)):W.attachEvent("on"+O,Z);Fs[L]=[W,O,b,Z,T];return L};
_.frq=function(W,O,b){var T=T===void 0?{}:T;var L=_.WZ(W,O,function(){_.n12(L);b.apply(W,arguments)},T)};
_.n12=function(W){W&&(typeof W=="string"&&(W=[W]),_.$X(W,function(O){if(O in Fs){var b=Fs[O],T=b[0],L=b[1],h=b[3];b=b[4];T.removeEventListener?qPP()||typeof b==="boolean"?T.removeEventListener(L,h,b):T.removeEventListener(L,h,!!b.capture):T.detachEvent&&T.detachEvent("on"+L,h);delete Fs[O]}}))};
Om=function(W){this.callback_=W;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(W=0;W<4;W++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.WZ(window,"mousemove",(0,_.K5)(this.onMouseMove_,this));this.timerId_=_.Ie((0,_.K5)(this.checkPosition_,this),25)};
H_Q=function(){var W={};var O=W.preferMobileEvents===void 0?!1:W.preferMobileEvents;W=W.enableScrollEventListener===void 0?!0:W.enableScrollEventListener;if(_.GT("_lact",window)==null){var b=parseInt(_.Cv("LACT"),10);b=isFinite(b)?Date.now()-Math.max(b,0):-1;_.c3("_lact",b,window);_.c3("_fact",b,window);b==-1&&_.iy();_.WZ(document,"keydown",_.iy);_.WZ(document,"keyup",_.iy);_.WZ(document,"mousedown",_.iy);_.WZ(document,"mouseup",_.iy);O?_.WZ(window,"touchmove",function(){GFq("touchmove",200)},{passive:!0}):
(_.WZ(window,"resize",function(){GFq("resize",200)}),W&&_.WZ(window,"scroll",function(){GFq("scroll",200)}));
new Om(function(){GFq("mouse",100)});
_.WZ(document,"touchstart",_.iy,{passive:!0});_.WZ(document,"touchend",_.iy,{passive:!0})}};
GFq=function(W,O){t48[W]||(t48[W]=!0,_.sF.addLowPriorityJob(function(){_.iy();t48[W]=!1},O))};
_.iy=function(){_.GT("_lact",window)==null&&H_Q();var W=Date.now();_.c3("_lact",W,window);_.GT("_fact",window)==-1&&_.c3("_fact",W,window);(W=_.GT("ytglobal.ytUtilActivityCallback_"))&&W()};
_.by=function(){var W=_.GT("_lact",window);return W==null?-1:Math.max(Date.now()-W,0)};
_.de=function(W,O,b){var T=_.jN();if(T&&O){var L=T.subscribe(W,function(){var h=arguments,Z=function(){T5[L]&&O.apply&&typeof O.apply=="function"&&O.apply(b||window,h)};
try{_.$dT[W]?Z():_.Zp(Z,0)}catch(a){_.nv(a)}},b);
T5[L]=!0;LB[W]||(LB[W]=[]);LB[W].push(L);return L}return 0};
_.V4P=function(W){var O=_.jN();O&&(typeof W==="number"?W=[W]:typeof W==="string"&&(W=[parseInt(W,10)]),_.$X(W,function(b){O.unsubscribeByKey(b);delete T5[b]}))};
_.NE8=function(W,O){var b=_.jN();b&&b.publish.apply(b,arguments)};
_.uEe=function(W){var O=_.jN();if(O)if(O.clear(W),W)M4X(W);else for(var b in LB)M4X(b)};
_.jN=function(){return _.i1.ytPubsubPubsubInstance};
M4X=function(W){LB[W]&&(W=LB[W],_.$X(W,function(O){T5[O]&&delete T5[O]}),W.length=0)};
Joi=function(){var W,O;return"h5vcc"in h8&&((W=h8.h5vcc.traceEvent)==null?0:W.traceBegin)&&((O=h8.h5vcc.traceEvent)==null?0:O.traceEnd)?1:"performance"in h8&&h8.performance.mark&&h8.performance.measure?2:0};
co2=function(W){var O=Joi();switch(O){case 1:h8.h5vcc.traceEvent.traceBegin("YTLR",W);break;case 2:h8.performance.mark(W+"-start");break;case 0:break;default:_.SB(O,"unknown trace type")}};
FmX=function(W){var O=Joi();switch(O){case 1:h8.h5vcc.traceEvent.traceEnd("YTLR",W);break;case 2:O=W+"-start";var b=W+"-end";h8.performance.mark(b);h8.performance.measure(W,O,b);break;case 0:break;default:_.SB(O,"unknown trace type")}};
yoE=function(W){var O,b;(b=(O=window).onerror)==null||b.call(O,W.message,"",0,0,W)};
W5i=function(W){if(_.e("web_lifecycle_error_handling_killswitch"))return W();try{return W()}catch(O){yoE(O)}};
O2E=function(W){return[W.auth===void 0?"undefined":W.auth,W.isJspb===void 0?"undefined":W.isJspb,W.cttAuthInfo===void 0?"undefined":W.cttAuthInfo,W.tier===void 0?"undefined":W.tier].join("/")};
_.P=function(W,O){if(W)return W[O.name]};
Zt=function(){var W=_.GT("yt.logging.ims");W||(W=new SN,_.c3("yt.logging.ims",W));return W};
Z2e=function(W,O){if(W.endpoint==="log_event"){i2O(W);var b=b2X(W),T=jiQ(W.payload)||"",L=TiT(T),h=200;if(L){if(L.enabled===!1&&!_.e("web_payload_policy_disabled_killswitch"))return;h=L5X(L.tier);if(h===400){de1(W,O);return}}I1[b]=!0;b={cttAuthInfo:b,isJspb:!1,tier:h};Zt().storePayload(b,W.payload);hXe(O,!1,b,Sl8(T))}};
aQX=function(W,O,b){if(O.endpoint==="log_event"){i2O(void 0,O);var T=b2X(O,!0),L=TiT(W),h=200;if(L){if(L.enabled===!1&&!_.e("web_payload_policy_disabled_killswitch"))return;h=L5X(L.tier);if(h===400){IQi(W,O,b);return}}I1[T]=!0;T={cttAuthInfo:T,isJspb:!0,tier:h};Zt().storePayload(T,b_(O.payload));hXe(b,!0,T,Sl8(W))}};
hXe=function(W,O,b,T){O=O===void 0?!1:O;T=T===void 0?!1:T;W&&(a1=new W);W=_.Lu("tvhtml5_logging_max_batch_ads_fork")||_.Lu("tvhtml5_logging_max_batch")||_.Lu("web_logging_max_batch")||100;var L=(0,_.WO)(),h=meQ(O,b.tier),Z=h.lastDebounceQueueFromLogTimeMs;T&&(h.useVideoStatsEndPoint=!0);T=0;b&&(T=Zt().getSequenceCount(b));var a=function(){Yle({writeThenSend:!0},O,b.tier)};
T>=1E3?a():T>=W?EIe||(EIe=w_8(function(){a();EIe=void 0},0)):L-Z>=10&&(A1i(O,b.tier),h.lastDebounceQueueFromLogTimeMs=L)};
de1=function(W,O){if(W.endpoint==="log_event"){_.e("more_accurate_gel_parser")&&Zt().storePayload({isJspb:!1},W.payload);i2O(W);var b=b2X(W),T=new Map;T.set(b,[W.payload]);var L=jiQ(W.payload)||"";O&&(a1=new O);return new _.mJ(function(h,Z){a1&&a1.isReady()?X_X(T,a1,h,Z,{bypassNetworkless:!0},!0,Sl8(L)):h()})}};
IQi=function(W,O,b){if(O.endpoint==="log_event"){i2O(void 0,O);var T=b2X(O,!0),L=new Map;L.set(T,[b_(O.payload)]);b&&(a1=new b);return new _.mJ(function(h){a1&&a1.isReady()?Ueh(L,a1,h,{bypassNetworkless:!0},!0,Sl8(W)):h()})}};
b2X=function(W,O){var b="";if(W.dangerousLogToVisitorSession)b="visitorOnlyApprovedKey";else if(W.cttAuthInfo){if(O===void 0?0:O){O=W.cttAuthInfo.token;b=W.cttAuthInfo;var T=new lQO;b.videoId?T.setVideoId(b.videoId):b.playlistId&&YG(T,2,eX2,nU(b.playlistId));PmQ[O]=T}else O=W.cttAuthInfo,b={},O.videoId?b.videoId=O.videoId:O.playlistId&&(b.playlistId=O.playlistId),p_8[W.cttAuthInfo.token]=b;b=W.cttAuthInfo.token}return b};
Yle=function(W,O,b){W=W===void 0?{}:W;O=O===void 0?!1:O;new _.mJ(function(T,L){var h=meQ(O,b),Z=h.useVideoStatsEndPoint;h.useVideoStatsEndPoint=!1;RX8(h.queueTimer);RX8(h.queueMaxTimer);h.queueMaxTimer=0;a1&&a1.isReady()?b===void 0&&_.e("enable_web_tiered_gel")?K5Q(T,L,W,O,300,Z):K5Q(T,L,W,O,b,Z):(A1i(O,b),T())})};
K5Q=function(W,O,b,T,L,h){var Z=a1;b=b===void 0?{}:b;T=T===void 0?!1:T;L=L===void 0?200:L;h=h===void 0?!1:h;var a=new Map,m=new Map,w={isJspb:T,cttAuthInfo:void 0,tier:L},A={isJspb:T,cttAuthInfo:void 0};if(T){O=_.S(Object.keys(I1));for(L=O.next();!L.done;L=O.next())L=L.value,m=_.e("enable_web_tiered_gel")?Zt().smartExtractMatchingEntries({keys:[w,A],sizeLimit:1E3}):Zt().extractMatchingEntries({isJspb:!0,cttAuthInfo:L}),m.length>0&&a.set(L,m),(_.e("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.e("web_fp_via_jspb_and_json"))&&
delete I1[L];Ueh(a,Z,W,b,!1,h)}else{a=_.S(Object.keys(I1));for(w=a.next();!w.done;w=a.next())w=w.value,A=_.e("enable_web_tiered_gel")?Zt().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:w,tier:L},{isJspb:!1,cttAuthInfo:w}],sizeLimit:1E3}):Zt().extractMatchingEntries({isJspb:!1,cttAuthInfo:w}),A.length>0&&m.set(w,A),(_.e("web_fp_via_jspb_and_json")&&b.writeThenSend||!_.e("web_fp_via_jspb_and_json"))&&delete I1[w];X_X(m,Z,W,O,b,!1,h)}};
A1i=function(W,O){W=W===void 0?!1:W;O=O===void 0?200:O;var b=function(){Yle({writeThenSend:!0},W,O)},T=meQ(W,O),L=T===vIX||T===gIT?5E3:oI1;
_.e("web_gel_timeout_cap")&&!T.queueMaxTimer&&(L=w_8(function(){b()},L),T.queueMaxTimer=L);
RX8(T.queueTimer);L=_.Cv("LOGGING_BATCH_TIMEOUT",_.Lu("web_gel_debounce_ms",1E4));_.e("shorten_initial_gel_batch_timeout")&&QiT&&(L=k0h);L=w_8(function(){_.Lu("gel_min_batch_size")>0?Zt().getSequenceCount({cttAuthInfo:void 0,isJspb:W,tier:O})>=si8&&b():b()},L);
T.queueTimer=L};
X_X=function(W,O,b,T,L,h,Z){L=L===void 0?{}:L;var a=Math.round((0,_.WO)()),m=W.size,w=Bi8(Z);W=_.S(W);var A=W.next();for(Z={};!A.done;Z={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},A=W.next()){var X=_.S(A.value);A=X.next().value;X=X.next().value;Z.batchRequest=_.PQ.unsafeClone({context:_.IMT(O.config_||_.iP())});if(!_.j5(X)&&!_.e("throw_err_when_logevent_malformed_killswitch")){T();break}Z.batchRequest.events=X;
(X=p_8[A])&&r18(Z.batchRequest,A,X);delete p_8[A];Z.dangerousLogToVisitorSession=A==="visitorOnlyApprovedKey";DeX(Z.batchRequest,a,Z.dangerousLogToVisitorSession);xe8(L);Z.onSuccess$jscomp$3=function(l){_.e("start_client_gcf")&&_.sF.addLowPriorityJob(function(){return _.I(function(p){return _.Y(p,zXO(l),0)})});
m--;m||b()};
Z.networkFailures=0;Z.onError$jscomp$5=function(l){return function(){l.networkFailures++;if(L.bypassNetworkless&&l.networkFailures===1)try{VK8(O,w,l.batchRequest,CmP({writeThenSend:!0},l.dangerousLogToVisitorSession,l.onSuccess$jscomp$3,l.onError$jscomp$5,h)),QiT=!1}catch(p){_.nv(p),T()}m--;m||b()}}(Z);
try{VK8(O,w,Z.batchRequest,CmP(L,Z.dangerousLogToVisitorSession,Z.onSuccess$jscomp$3,Z.onError$jscomp$5,h)),QiT=!1}catch(l){_.nv(l),T()}}};
Ueh=function(W,O,b,T,L,h){T=T===void 0?{}:T;var Z=Math.round((0,_.WO)()),a={value:W.size},m=new Map([].concat(_.PG(W)));m=_.S(m);for(var w=m.next();!w.done;w=m.next()){var A=_.S(w.value).next().value,X=W.get(A);w=new qlO;var l=O.config_||_.iP(),p=new Em,K=new nIQ;_.aG(K,1,l.innertubeContextHostLanguage);_.aG(K,2,l.innertubeContextGeoLocation);_.jq(K,16,l.innertubeContextClientNameFieldNumber);_.aG(K,17,l.innertubeContextClientVersion);if(l.innertubeContextClientConfigInfo){var k=l.innertubeContextClientConfigInfo,
r=new L9;k.coldConfigData&&_.aG(r,1,k.coldConfigData);k.appInstallData&&_.aG(r,6,k.appInstallData);k.coldHashData&&_.aG(r,3,k.coldHashData);k.hotHashData&&r.setHotHashData(k.hotHashData);_.jL(K,62,r)}(k=_.i1.devicePixelRatio)&&k!=1&&_.T7(K,65,_.ZP(k));k=vF8();k!==""&&_.aG(K,54,k);k=gFi();if(k.length>0){r=new fQO;for(var q=0;q<k.length;q++){var f=new we;f.setKey(k[q].key);YG(f,2,G0h,nU(k[q].value));A8(r,15,we,f)}_.jL(p,5,r)}Ta1(l,K);LMe(p);dkE(K);h$X(l,K);SOT(K);_.e("start_client_gcf")&&ZVX(K);_.Cv("DELEGATED_SESSION_ID")&&
!_.e("pageid_as_header_web")&&(l=new ly,_.aG(l,3,_.Cv("DELEGATED_SESSION_ID")));!_.e("fill_delegate_context_in_gel_killswitch")&&(k=_.Cv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(r=_.bP(p,ly,3)||new ly,l=p,k=_.aG(r,18,k),_.jL(l,3,k));l=K;k=_.S(Object.entries(_.VP(_.Cv("DEVICE",""))));for(r=k.next();!r.done;r=k.next())q=_.S(r.value),r=q.next().value,q=q.next().value,r==="cbrand"?_.aG(l,12,q):r==="cmodel"?_.aG(l,13,q):r==="cbr"?_.aG(l,87,q):r==="cbrver"?_.aG(l,88,q):r==="cos"?_.aG(l,18,
q):r==="cosver"?_.aG(l,19,q):r==="cplatform"&&_.jq(l,42,bqQ(q));p.setClient(K);_.jL(w,1,p);if(K=PmQ[A])a:{if(_.wD(K,eN(K,eX2,1)))p=1;else if(K.getPlaylistId())p=2;else break a;_.jL(w,4,K);K=w.getContext()||new Em;l=_.bP(K,ly,3)||new ly;k=new PZ;k.setToken(A);_.jq(k,1,p);A8(l,12,PZ,k);_.jL(K,3,l)}delete PmQ[A];A=A==="visitorOnlyApprovedKey";H28()||_.pB(w,2,Z);!A&&(p=_.Cv("EVENT_ID"))&&(K=tli(),l=new $eQ,_.aG(l,1,p),_.pB(l,2,K),_.jL(w,5,l));xe8(T);if(_.e("jspb_serialize_with_worker")&&(p=_.egi())&&
T.writeThenSend){_.VlQ.set(NiX,{client:O,resolve:b,networklessOptions:T,isIsolated:L,useVSSEndpoint:h,dangerousLogToVisitorSession:A,requestsOutstanding:a});p.postMessage({op:"gelBatchToSerialize",batchRequest:b_(w),clientEvents:X,key:NiX});NiX++;break}if(X){p=[];for(K=0;K<X.length;K++)try{p.push(new R1(X[K]))}catch(M){_.nv(new _.pu("Transport failed to deserialize "+String(X[K])))}X=p}else X=[];X=_.S(X);for(p=X.next();!p.done;p=X.next())A8(w,3,R1,p.value);X={startTime:(0,_.WO)(),ticks:{},infos:{}};
w=w.serialize();X.ticks.geljspc=(0,_.WO)();_.e("log_jspb_serialize_latency")&&wSQ("gel_jspb_serialize",X,{sampleRate:.1});_.MlO(w,O,b,T,L,h,A,a)}};
_.MlO=function(W,O,b,T,L,h,Z,a){T=T===void 0?{}:T;a=a===void 0?{value:0}:a;h=Bi8(h);T=CmP(T,Z,function(m){_.e("start_client_gcf")&&_.sF.addLowPriorityJob(function(){return _.I(function(w){return _.Y(w,zXO(m),0)})});
a.value--;a.value||b()},function(){a.value--;
a.value||b()},L);
T.headers["Content-Type"]="application/json+protobuf";T.postBodyFormat="JSPB";T.postBody=W;VK8(O,h,"",T);QiT=!1};
xe8=function(W){_.e("always_send_and_write")&&(W.writeThenSend=!1)};
CmP=function(W,O,b,T,L){W={retry:!0,onSuccess:b,onError:T,networklessOptions:W,dangerousLogToVisitorSession:O,bypassMonitoring:!!L,headers:{},postBodyFormat:"",postBody:"",compress:_.e("compress_gel")||_.e("compress_gel_lr")};H28()&&(W.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.WO)())));return W};
DeX=function(W,O,b){H28()||(W.requestTimeMs=String(O));_.e("unsplit_gel_payloads_in_logs")&&(W.unsplitGelPayloadsInLogs=!0);!b&&(O=_.Cv("EVENT_ID"))&&(b=tli(),W.serializedClientEventId={serializedEventId:O,clientCounter:String(b)})};
tli=function(){var W=_.Cv("BATCH_CLIENT_COUNTER")||0;W||(W=Math.floor(Math.random()*65535/2));W++;W>65535&&(W=1);_.zT("BATCH_CLIENT_COUNTER",W);return W};
r18=function(W,O,b){if(b.videoId)var T="VIDEO";else if(b.playlistId)T="PLAYLIST";else return;W.credentialTransferTokenTargetId=b;W.context=W.context||{};W.context.user=W.context.user||{};W.context.user.credentialTransferTokens=[{token:O,scope:T}]};
i2O=function(W,O){var b=_.dO("il_payload_scraping")==="enable_il_payload_scraping";if(!_.GT("yt.logging.transport.enableScrapingForTest"))if(b)uTX=[],_.c3("yt.logging.transport.enableScrapingForTest",!0),_.c3("yt.logging.transport.scrapedPayloadsForTesting",uTX),_.c3("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.c3("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.c3("yt.logging.transport.scrapeClientEvent",!0);else return;b=_.GT("yt.logging.transport.scrapedPayloadsForTesting");var T=_.GT("yt.logging.transport.payloadToScrape");O&&(O=_.GT("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(O.payload)())&&b.push(O);O=_.GT("yt.logging.transport.scrapeClientEvent");if(T&&T.length>=1)for(var L=0;L<T.length;L++)if(W&&W.payload[T[L]])if(O)b.push(W.payload);else{var h=void 0;b.push(((h=W)==null?void 0:h.payload)[T[L]])}_.c3("yt.logging.transport.scrapedPayloadsForTesting",
b)};
H28=function(){return _.e("use_request_time_ms_header")||_.e("lr_use_request_time_ms_header")};
w_8=function(W,O){return _.e("transport_use_scheduler")===!1?_.Zp(W,O):_.e("logging_avoid_blocking_during_navigation")||_.e("lr_logging_avoid_blocking_during_navigation")?_.KB(_.sF,function(){if(_.J12().currentState==="none")W();else{var b={};_.J12().install((b.none={callback:W},b))}},O):_.KB(_.sF,W,O)};
RX8=function(W){_.e("transport_use_scheduler")?_.sF.cancelJob(W):_.ae(W)};
zXO=function(W){var O,b,T,L,h,Z,a,m,w,A;return _.I(function(X){return X.nextAddress==1?(T=(O=W)==null?void 0:(b=O.responseContext)==null?void 0:b.globalConfigGroup,L=_.P(T,c1q),Z=(h=T)==null?void 0:h.hotHashData,a=_.P(T,F5X),w=(m=T)==null?void 0:m.coldHashData,(A=_.iq().resolve(_.OT(vZ)))?Z?L?_.Y(X,y1O(A,Z,L),2):_.Y(X,y1O(A,Z),2):X.jumpTo(2):X.return()):w?a?_.Y(X,Wwi(A,w,a),0):_.Y(X,Wwi(A,w),0):X.jumpTo(0)})};
meQ=function(W,O){O=O===void 0?200:O;return W?O===300?vIX:Obi:O===300?gIT:ibQ};
TiT=function(W){if(_.e("enable_web_tiered_gel")){W=bb2[W||""];var O,b,T,L=_.iq().resolve(_.OT(vZ))==null?void 0:(O=jxX())==null?void 0:(b=O.loggingHotConfig)==null?void 0:(T=b.eventLoggingConfig)==null?void 0:T.payloadPolicies;if(L)for(O=0;O<L.length;O++)if(L[O].payloadNumber===W)return L[O]}};
jiQ=function(W){W=Object.keys(W);W=_.S(W);for(var O=W.next();!O.done;O=W.next())if(O=O.value,bb2[O])return O};
L5X=function(W){switch(W){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}};
Sl8=function(W){return W==="gelDebuggingEvent"};
Bi8=function(W){return(W===void 0?0:W)&&_.e("vss_through_gel_video_stats")?"video_stats":"log_event"};
kG=function(W,O,b,T){T=T===void 0?{}:T;var L={},h=Math.round(T.timestamp||(0,_.WO)());L.eventTimeMs=h<Number.MAX_SAFE_INTEGER?h:0;L[W]=O;W=_.by();L.context={lastActivityMs:String(T.timestamp||!isFinite(W)?-1:W)};T.sequenceGroup&&!_.e("web_gel_sequence_info_killswitch")&&(W=L.context,O=T.sequenceGroup,O={index:TGO(O),groupKey:O},W.sequence=O,T.endOfSequence&&delete Qj[T.sequenceGroup]);(T.sendIsolatedPayload?de1:Z2e)({endpoint:"log_event",payload:L,cttAuthInfo:T.cttAuthInfo,dangerousLogToVisitorSession:T.dangerousLogToVisitorSession},
b)};
TGO=function(W){Qj[W]=W in Qj?Qj[W]+1:0;return Qj[W]};
_.BZ=function(W,O,b){b=b===void 0?{}:b;var T=sm;_.qC("ytLoggingEventsDefaultDisabled",!1)&&sm===sm&&(T=null);kG(W,O,T,b)};
_.re=function(){if(_.e("web_fp_via_jspb")){var W=!0;W=W===void 0?!1:W;var O=Lw2;Lw2=[];if(O){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,W?kG(b.payloadName,b.payload,sm,b.options):_.BZ(b.payloadName,b.payload,b.options)}Yle(void 0,!0);if(!_.e("web_fp_via_jspb_and_json"))return}Yle(void 0,!1)};
dqE=function(W,O){var b;if((b=O)==null?0:b.componentStack)return O;if(W=W.componentStack)O||(O={}),O.componentStack=W;return O};
hbh=function(){_.$X(_.Cv("ERRORS")||[],function(W){_.Dt.apply(null,W)});
_.zT("ERRORS",[])};
_.xG=function(W){_.Dt(W)};
_.z5=function(W){_.Dt(W,"WARNING")};
Sz8=function(W){W instanceof Error?_.Dt(W):(W=_.LH(W)?JSON.stringify(W):String(W),W=new _.pu(W),W.name="RejectedPromiseError",_.z5(W))};
ZbO=function(W,O,b,T,L,h){O=O===void 0?"Unknown file":O;b=b===void 0?0:b;var Z=!1,a=dyP("log_window_onerror_fraction");if(a&&Math.random()<a)Z=!0;else{a=document.getElementsByTagName("script");for(var m=0,w=a.length;m<w;m++)if(a[m].src.indexOf("/debug-")>0){Z=!0;break}}Z&&(Z=!1,L?Z=!0:(typeof W==="string"?a=W:ErrorEvent&&W instanceof ErrorEvent?(Z=!0,a=W.message,O=W.filename,b=W.lineno,T=W.colno):(a="Unknown error",O="Unknown file",b=0),L=new _.pu(a),L.name="UnhandledWindowError",L.message=a,L.fileName=
O,L.lineNumber=b,isNaN(T)?delete L.columnNumber:L.columnNumber=T),_.e("wiz_enable_component_stack_propagation_killswitch")||(h=dqE(L,h)),h&&_.CB(L,h),Z?_.Dt(L):_.z5(L))};
_.Dt=function(W,O,b,T,L,h,Z,a){h=h===void 0?{}:h;h.name=b||_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=T||_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION");b=h;O=O===void 0?"ERROR":O;Z=Z===void 0?!1:Z;O=O===void 0?"ERROR":O;Z=Z===void 0?!1:Z;if(W&&(W.hasOwnProperty("level")&&W.level&&(O=W.level),_.e("console_log_js_exceptions")&&(T=[],T.push("Name: "+W.name),T.push("Message: "+W.message),W.hasOwnProperty("params")&&T.push("Error Params: "+JSON.stringify(W.params)),W.hasOwnProperty("args")&&T.push("Error args: "+
JSON.stringify(W.args)),T.push("File name: "+W.fileName),T.push("Stacktrace: "+W.stack),T=T.join("\n"),window.console.log(T,W)),!(I62>=5))){T=[];L=_.S(a6e);for(h=L.next();!h.done;h=L.next()){h=h.value;try{h()&&T.push(h())}catch(r){}}T=[].concat(_.PG(mqT),_.PG(T));var m=YzP(W);L=m.message||"Unknown Error";h=m.name||"UnknownError";var w=m.stack||W.stacktrace||"Not available";if(w.startsWith(h+": "+L)){var A=w.split("\n");A.shift();w=A.join("\n")}A=m.lineNumber||"Not available";m=m.fileName||"Not available";
var X=0;if(W.hasOwnProperty("args")&&W.args&&W.args.length)for(var l=0;l<W.args.length&&!(X=iqE(W.args[l],"params."+l,b,X),X>=500);l++);else if(W.hasOwnProperty("params")&&W.params){var p=W.params;if(typeof W.params==="object")for(l in p){if(p[l]){var K="params."+l,k=AL(p[l]);b[K]=k;X+=K.length+k.length;if(X>500)break}}else b.params=AL(p)}if(T.length)for(l=0;l<T.length&&!(X=iqE(T[l],"params.context."+l,b,X),X>=500);l++);navigator.vendor&&!b.hasOwnProperty("vendor")&&(b["device.vendor"]=navigator.vendor);
l={message:L,name:h,lineNumber:A,fileName:m,stack:w,params:b,sampleWeight:1};b=Number(W.columnNumber);isNaN(b)||(l.lineNumber=l.lineNumber+":"+b);if(W.level==="IGNORED")W=0;else a:{W=EyT();b=_.S(W.messageWeights);for(T=b.next();!T.done;T=b.next())if(T=T.value,l.message&&l.message.match(T.messageRegExp)){W=T.weight;break a}W=_.S(W.callbackWeights);for(b=W.next();!b.done;b=W.next())if(b=b.value,b.callback(l)){W=b.weight;break a}W=1}l.sampleWeight=W;W=_.S(wiT);for(b=W.next();!b.done;b=W.next())if(b=
b.value,b.patternsForType[l.name])for(L=_.S(b.patternsForType[l.name]),T=L.next();!T.done;T=L.next())if(h=T.value,T=l.message.match(h.regexp)){l.params["params.error.original"]=T[0];L=h.groups;h={};for(A=0;A<L.length;A++)h[L[A]]=T[A+1],l.params["params.error."+L[A]]=T[A+1];l.message=b.messageFn(h);break}l.params||(l.params={});W=EyT();l.params["params.errorServiceSignature"]="msg="+W.messageWeights.length+"&cb="+W.callbackWeights.length;l.params["params.serviceWorker"]="false";_.i1.document&&_.i1.document.querySelectorAll&&
(l.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new qJ(A41,"sample")).constructor!==qJ&&(l.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(l);if(l.sampleWeight!==0&&!XiX.has(l.message)){if(Z&&_.e("web_enable_error_204"))UqX(O===void 0?"ERROR":O,l);else{O=O===void 0?"ERROR":O;O==="ERROR"?(l6q.publish("handleError",l),_.e("record_app_crashed_web")&&eb8===0&&l.sampleWeight===1&&(eb8++,Z={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.e("report_client_error_with_app_crash_ks")||(Z.systemHealth={crashData:{clientError:{logMessage:{message:l.message}}}}),_.BZ("appCrashed",Z)),PjQ++):O==="WARNING"&&l6q.publish("handleWarning",l);if(_.e("kevlar_gel_error_routing")){Z=O;a=a===void 0?{}:a;b:{W=_.S(pi2);for(b=W.next();!b.done;b=W.next())if(Dp(b.value.toLowerCase())){W=!0;break b}W=!1}if(W)a=void 0;else{b={stackTrace:l.stack};l.fileName&&(b.filename=l.fileName);W=l.lineNumber&&l.lineNumber.split?l.lineNumber.split(":"):[];W.length!==
0&&(W.length!==1||isNaN(Number(W[0]))?W.length!==2||isNaN(Number(W[0]))||isNaN(Number(W[1]))||(b.lineNumber=Number(W[0]),b.columnNumber=Number(W[1])):b.lineNumber=Number(W[0]));W={level:"ERROR_LEVEL_UNKNOWN",message:l.message,errorClassName:l.name,sampleWeight:l.sampleWeight};Z==="ERROR"?W.level="ERROR_LEVEL_ERROR":Z==="WARNING"&&(W.level="ERROR_LEVEL_WARNNING");b={isObfuscated:!0,browserStackInfo:b};a.pageUrl=window.location.href;a.kvPairs=[];_.Cv("FEXP_EXPERIMENTS")&&(a.experimentIds=_.Cv("FEXP_EXPERIMENTS"));
T=_.Cv("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!dyP("web_disable_gel_stp_ecatcher_killswitch")&&T)for(L=_.S(Object.keys(T)),h=L.next();!h.done;h=L.next())h=h.value,a.kvPairs.push({key:h,value:String(T[h])});if(T=l.params)for(L=_.S(Object.keys(T)),h=L.next();!h.done;h=L.next())h=h.value,a.kvPairs.push({key:"client."+h,value:String(T[h])});T=_.Cv("SERVER_NAME");L=_.Cv("SERVER_VERSION");T&&L&&(a.kvPairs.push({key:"server.name",value:T}),a.kvPairs.push({key:"server.version",value:L}));a={errorMetadata:a,
stackTrace:b,logMessage:W}}a&&(_.BZ("clientError",a),(Z==="ERROR"||_.e("errors_flush_gel_always_killswitch"))&&_.re())}_.e("suppress_error_204_logging")||UqX(O,l)}try{XiX.add(l.message)}catch(r){}I62++}}};
UqX=function(W,O){var b=O.params||{};W={urlParams:{a:"logerror",t:"jserror",type:O.name,msg:O.message.substr(0,250),line:O.lineNumber,level:W,"client.name":b.name},postParams:{url:_.Cv("PAGE_NAME",window.location.href),file:O.fileName},method:"POST"};b.version&&(W["client.version"]=b.version);if(W.postParams){O.stack&&(W.postParams.stack=O.stack);O=_.S(Object.keys(b));for(var T=O.next();!T.done;T=O.next())T=T.value,W.postParams["client."+T]=b[T];if(b=_.Cv("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(O=
_.S(Object.keys(b)),T=O.next();!T.done;T=O.next())T=T.value,W.postParams[T]=b[T];(b=_.Cv("LAVA_VERSION"))&&(W.postParams["lava.version"]=b);b=_.Cv("SERVER_NAME");O=_.Cv("SERVER_VERSION");b&&O&&(W.postParams["server.name"]=b,W.postParams["server.version"]=O)}_.Yv(_.Cv("ECATCHER_REPORT_HOST","")+"/error_204",W)};
_.Rb1=function(W,O){O=O===void 0?"ERROR":O;var b=b===void 0?{}:b;var T=_.GT("ytbin.polymer.shared.lib.tampering.info");T&&(T=T())&&(b["params.tamperingInfo"]=T.sort().join(","));_.Dt(W,O,void 0,void 0,!0,b)};
_.CB=function(W){var O=_.PD.apply(1,arguments);W.args||(W.args=[]);Array.isArray(W.args)&&W.args.push.apply(W.args,_.PG(O))};
Kwe=function(W){W.level="IGNORED"};
vy8=function(W,O){mqT.push(W);O();mqT.pop()};
fB=function(W,O){for(var b in O)O.hasOwnProperty(b)&&(W=_.nB(W,b,O[b]));return W};
_.gyi=function(W,O,b){b=b===void 0?!1:b;if(!W)return null;if(W.adInfoDialogEndpoint||W.backstageImageUploadEndpoint||W.confirmDialogEndpoint||W.clientActionEndpoint||W.createBackstagePostDialogEndpoint||W.createCommentReplyDialogEndpoint||W.flowEndpoint||W.guideBuilderEndpoint||W.liveChatDialogEndpoint||W.modalEndpoint||W.openPopupAction||W.shareEndpoint||W.shareEntityEndpoint||W.showLiveChatItemEndpoint||W.subscriptionManagerEndpoint||W.unlimitedCreateFamilyEndpoint||W.unlimitedFamilyFlowEndpoint||
W.updateCommentDialogEndpoint||W.updateCommentReplyDialogEndpoint||W.userFeedbackEndpoint||W.videoEditorEndpoint||W.ypcCancelSurveyEndpoint)return O=_.Lu("polymer_report_client_url_requested_rate"),!b&&Math.random()<O&&_.z5(new _.pu("urlForEndpoint used on client endpoint",W)),null;var T=_.Lu("polymer_report_missing_web_navigation_endpoint_rate");if(W.liveChatEndpoint||W.liveChatReplayEndpoint)T=0;if(!W.commandMetadata&&!W.clickTrackingParams&&Math.random()<T){var L={},h;for(h in W)L[h]="1";_.z5(new _.pu("Missing navigation data",
L))}L="";if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url)L=W.commandMetadata.webCommandMetadata.url;else if(W.searchEndpoint)Math.random()<T&&_.z5(new _.pu("Should not manually handle search",W)),L="/results?search_query="+encodeURIComponent(W.searchEndpoint.query).replace(/%20/g,"+"),W.searchEndpoint.params&&(L+="&sp="+W.searchEndpoint.params);else if(W.watchEndpoint)Math.random()<T&&_.z5(new _.pu("Should not manually handle watch",W)),L="/watch?v="+
W.watchEndpoint.videoId,W.watchEndpoint.playlistId&&(L+="&list="+W.watchEndpoint.playlistId),W.watchEndpoint.index&&(L+="&index="+W.watchEndpoint.index),W.watchEndpoint.startTimeSeconds&&(L+="&t="+W.watchEndpoint.startTimeSeconds);else if(W.browseEndpoint)T=W.browseEndpoint.browseId,(h=W.browseEndpoint.canonicalBaseUrl)?L=h:T&&(L=T.substr(0,2),L=L==="FE"?T==="FEwhat_to_watch"?"/":T==="FEmy_videos"?"/my_videos":"/feed/"+T.substr(2):L==="VL"?"/playlist?list="+T.substr(2):"/channel/"+T),L&&W.browseEndpoint.query&&
(L=fB(L+"/search",{query:W.browseEndpoint.query})),L&&W.browseEndpoint.params&&(L=fB(L,{params:W.browseEndpoint.params}));else{if(W.urlEndpoint)return W.urlEndpoint.url;W.signInEndpoint?(L="https://accounts.google.com/ServiceLogin",T={},_.PQ.extend(T,O||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),O=T):W.uploadEndpoint?L="//www.youtube.com/upload":W.liveChatEndpoint?(L=W.liveChatEndpoint,T=_.PQ.clone(L),_.LH(L.continuation)&&(h=Object.keys(L.continuation)[0],
T.continuation=L.continuation[h].continuation),L=fB("/youtubei/v1/live_chat/get_live_chat",T)):W.liveChatReplayEndpoint?(L=_.PQ.clone(W.liveChatReplayEndpoint),L.currentPlayerState&&(_.PQ.extend(L,L.currentPlayerState),delete L.currentPlayerState),L=fB("/youtubei/v1/live_chat/get_live_chat_replay",L)):W.liveChatItemContextMenuEndpoint?L=fB("/youtubei/v1/live_chat/get_item_context_menu",W.liveChatItemContextMenuEndpoint):W.liveChatPurchaseMessageEndpoint?L=fB("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
W.liveChatPurchaseMessageEndpoint):W.openSuperStickerBuyFlowCommand?L=fB("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",W.openSuperStickerBuyFlowCommand):W.videoEditEndpoint?L=fB("/edit",{video_id:W.videoEditEndpoint.videoId}):W.liveDashboardEndpoint?L=W.liveDashboardEndpoint.videoId?fB("/live_dashboard",{v:W.liveDashboardEndpoint.videoId}):"/live_dashboard":W.signalNavigationEndpoint&&W.signalNavigationEndpoint.signal&&W.signalNavigationEndpoint.signal==="WEBCAM"?L="/webcam":W.getPdgBuyFlowCommand&&
(L=fB(W.getPdgBuyFlowCommand.buyflowApiPath,{params:W.getPdgBuyFlowCommand.params}))}return L||b?fB(L,O||{}):(_.z5(new _.pu("Error: Can't construct url for endpoint","keys:"+Object.keys(W).sort().join(","),W)),null)};
oyO=function(W){if(W){if(W.browseEndpoint)return!!W.browseEndpoint.nofollow;if(W.watchEndpoint)return!!W.watchEndpoint.nofollow;if(W.urlEndpoint)return!!W.urlEndpoint.nofollow}return!1};
_.kH8=function(W,O){var b=O+W,T=Qx8.get(b);if(T)return T;W=O+"-"+W.replace(/([A-Z])/g,"-$1").toLowerCase();Qx8.set(b,W);return W};
sx8=function(W){var O=_.r0(W,"action")||_.r0(W,"command")||_.r0(W,"endpoint");if(!O)return null;O=_.kH8(O,"yt");_.P(W,_.G5)&&(O+="-"+_.P(W,_.G5).signal.toLowerCase().replace(/_/g,"-"));return O};
xqX=function(W){try{var O=Object.keys(W)}catch(L){return[]}for(var b=0;b<O.length;b++){var T=O[b];if(BG8.test(T)||r4T.test(T))return Dqq(W[T])}return[]};
Dqq=function(W){return W.command?[W.command]:W.onExecutionAction?[W.onExecutionAction]:W.onResponseReceivedCommand?[W.onResponseReceivedCommand]:W.updateFlowCommand?[W.updateFlowCommand]:W.clientActions?W.clientActions:W.action?[W.action]:W.actions||W.commands||W.onResponseReceivedActions||W.onResponseReceivedCommands||W.onResponseReceivedEndpoints||[]};
CjT=function(W,O){O=O===void 0?!1:O;var b=_.iq().resolve(_.OT(HZ));b||(b=new zb8,_.iq().addProvider({provide:HZ,useValue:b}));return b&&W&&!_.PQ.isEmpty(W)?b.getUrl(W,O):""};
qzO=function(W,O,b){b=b===void 0?"":b;if(O){W.data=O;var T=CjT(O);T?(vD(W,T),oyO(O)||!yP(T)?W.rel="nofollow":W.removeAttribute("rel"),_.P(O,_.t8)&&_.P(O,_.t8).target==="TARGET_NEW_WINDOW"?W.target="_blank":b?W.target=b:W.removeAttribute("target")):(W.removeAttribute("href"),W.removeAttribute("rel"),W.removeAttribute("target"))}};
_.MJ=function(W,O){var b=Oo;if(gu())nye(W,function(){var h=_.PD.apply(0,arguments);xb(b,function(){O.apply(null,_.PG(h))})});
else{var T=_.$G.getInstance(),L=BU(O);c8X(function(){L.value=O});
_.kX(function(){var h={},Z=_.Vj(T,(h[W]=function(){var a=_.PD.apply(0,arguments);xb(b,function(){L.value.apply(L,_.PG(a))})},h));
return function(){var a={};_.NJ(T,(a[W]="",a),Z)}})}};
_.uy=function(W){return gu()?f6O(W):GHE(W)};
_.J8=function(W){return gu()?f6O(W):GHE(W)};
GHE=function(W){return sC(function(){return f6O(W)})};
f6O=function(W){var O=NeT(function(b){O.value&&O.value===b||(O.__count=O.__count?O.__count+1:1);O.value=b;var T=function(){var L=Zq(null);try{return W==null?void 0:W(b)}finally{Zq(L)}}();
return function(){T==null||T();O.value=null}});
return O};
HbX=function(W){var O=Oo,b=du.enableContextBasedComponentStacks?void 0:KS;return{getFn:function(){return function(T){if(!O.isDisposed){var L=function(){return Eo(function(){return W(T)})};
if(du.enableContextBasedComponentStacks)try{var h=L()}catch(Z){throw du.enableContextBasedComponentStacks&&ov(Z),Z;}else h=QH(L,b);h!==!0&&T.stopPropagation()}}}}};
cZ=function(W){if(typeof W.children==="function")return W.children(),null;W=_.S(W.children);for(var O=W.next();!O.done;O=W.next())O=O.value,O();return null};
tD8=function(W){var O;return((O=W.prototype)==null?void 0:O.render)===void 0};
$qQ=function(W){W=W.items.map(W.children);return W.length>0&&typeof W[0]==="string"?W.join(""):W};
NGe=function(W,O,b){b=b===void 0?!1:b;if(du.enableContextBasedComponentStacks)try{VD8(W,O,b)}catch(T){throw ov(T),T;}else QH(function(){return VD8(W,O,b)})};
VD8=function(W,O,b){b=((b===void 0?0:b)?MDh:uFT)(W,function(){F0(O)});
return b===null?W:b};
F0=function(W){if(W!==void 0&&W!==null)if(W instanceof w0)for(var O=Gx;Hj()!=null&&k52 in Hj()&&O.contains(Hj());)Mr();else if(Array.isArray(W))for(O=_.S(W),W=O.next();!W.done;W=O.next())F0(W.value);else if(W instanceof hv||"function"==typeof _.V0&&W instanceof _.V0)iW(W.toString());else if(d0(W)){if(Hj()!==W){var b,T;O=(T=(b=KS)==null?void 0:b.name)!=null?T:"unknown";throw Error("ec`"+W.tagName+"`"+O);}Mr()}else if(W!=null&&W.contentKind===Zk||W instanceof gC)for(O=FYq(W),O=Array.from(O.childNodes),
O=_.S(O),W=O.next();!W.done;W=O.next())Gx.appendChild(W.value),Mr();else if(Y4(W)&&(W=W.toString()),b=typeof W,b==="boolean"||b==="number"||b==="string")iW(W);else if(typeof W==="function"){O=Gx;var L=Hj();L&&(L._isSignalTextNode||L._isSafeOrSanitizedHtmlNode)||ltX(O,L,W);Mr()}else if(W.type===$qQ)F0(W.type(Object.assign({},W.props,{children:W.children[0]})));else{UC.beforeVisit(W);if(typeof W.type==="string"){a:{W.__open||saX(W.type,W.props.idomKey);L=Gx;for(O in W.props)if(W.props[O]!==J48){var h=
W.props[O];b=Fd;b.push(O);b.push(h)}O=du.attributes;O=O===void 0?yj:O;h=Gx;b=fS(h);qFP(h,b,O);UJP(L,W.props,!0);if((W.props.skip||W.props.skipchildren)&&Gx.hasChildNodes())Jt();else{if(W.type==="style"&&TeX(W.children)===null){Jt();O=void 0;break a}F0(W.children)}BvE();W.__open&&(W.__open=!1);Vq8(L,W.props);O=L}return O}if(W.type===_.TT)F0(W.children);else if(!c4Q(W)){O=W;try{FwQ(O)}catch(Z){W=Z,(h=du.handleError)==null||h.call.apply(h,[du].concat(_.PG(zx(W,(L=O.type)==null?void 0:L.TAG_NAME))))}O.__open&&
(BvE(),O.__open=!1)}}};
y4T=function(W,O){var b;tD8(W)?b=new es(O,W):b=new W(O);b.JSC$8266___type=W;b.__updateContext={nextState:b.state,isForced:!1};return b};
FwQ=function(W){var O=W.type,b=O.TAG_NAME;if(O===cZ)W.props.children=W.children,O(W.props);else{W.children.length>0&&(W.props.children=W.children);var T;(T=W.props).idomKey||(T.idomKey=O);if(b){var L=saX(b,W.props.idomKey);W.__open=!0;var h=L.__instance}h||(h=y4T(O,W.props),h.props=null,L&&(L.__instance=h,h.el=L));var Z;b=((Z=h.__updateContext)!=null?Z:{nextState:h.state,isForced:!1}).nextState;h.__updateContext=void 0;O.getDerivedStateFromProps&&(b=O.getDerivedStateFromProps(W.props,b));h.props=
W.props;h.state=b;Z=function(){var a=h;UC.beforeRender(a);var m=a.render(a.props);UC.afterRender(a,m);m?(a.props.idomKey&&(m.props.idomKey=a.props.idomKey),a=m):a=void 0;if(m=a)if(m.__open=W.__open,a=F0(m),W.__open=m.__open,!O.TAG_NAME)if(a)O.TAG_NAME=a.tagName.toLowerCase(),a.__instance=h,h.el=a;else{var w;if((w=h.hooks)==null?0:w.length){var A;(A=du.handleError)==null||A.call.apply(A,[du].concat(_.PG(zx(Error("kd")))))}}h.didPatch();UC.didPatch(h)};
(b=h.functionComponent)?JLe({component:b,debugInstance:h.props.debugInstance,fn:Z}):Z()}};
c4Q=function(W){var O=W.type;if(!tD8(O)||O===cZ||O.componentType===vj)return!1;W.props.children=W.children.length>1?W.children:W.children[0];var b,T=(b=W.props.idomKey)!=null?b:W.type,L;if(Hj()&&((L=Hj()[aW])==null?void 0:L.key)===T){var h=Hj(),Z=h[aW];if(!Z)throw Error("dc`"+h.tagName);var a;(a=Z.updateSignalsFromIdomProps)==null||a.call(Z,W.props);WR1(Z);return!0}if(Odi.has(O.name))throw a=O.name,O=(Z=(h=KS)==null?void 0:h.name)!=null?Z:"unknown",Error("cc`"+a+"`"+O);RW8(W.type,W.props,W.children);
W.props.renderedFromIdom=!0;(a=JLe({component:W.type,debugInstance:W.props.debugInstance,fn:function(){return Ymq(W.type,W.props)}}))&&idE(a);
return!0};
bdh=function(W){for(var O=0;O<EC(W).length;O++)Mr()};
WR1=function(W){var O=jMO();if(O)bdh(O);else for(var b=0;b<W.numNodes;b++)(O=jMO())?bdh(O):Mr()};
jMO=function(){var W;return(W=Hj()[aW])==null?void 0:W.sourceDynamicRange};
idE=function(W){W=Mq8(W);W=Array.isArray(W)?W:[W];W=_.S(W);for(var O=W.next();!O.done;O=W.next())Gx.insertBefore(O.value,Hj()),Mr()};
Tdh=function(W){var O=wZq(),b=sC(function(){return{value:typeof W==="function"?W():W}});
return[b.value,function(T){if(lW!==null){var L;(L=du.handleError)==null||L.call.apply(L,[du].concat(_.PG(zx(Error("ld")))))}b.value=typeof T==="function"?T(b.value):T;O.__updateContext={nextState:O.state,isForced:!0};T=bt(O.effectContext);L=Lv(!1);try{if(O.el){var h,Z={},a=(Z.props=O.props,Z.type=O.JSC$8266___type,Z.children=(h=O.props.children)!=null?h:[],Z[js]=!0,Z);try{NGe(O.el,a,!0)}catch(A){var m,w;(w=du.handleError)==null||w.call.apply(w,[du].concat(_.PG(zx(A,(m=O.JSC$8266___type)==null?void 0:
m.TAG_NAME))))}}}finally{Lv(L),bt(T)}}]};
WB=function(W,O){var b=Oo,T=function(L){xb(b,function(){O(L)})};
window.addEventListener(W,T,void 0);_.so(function(){window.removeEventListener(W,T,void 0)})};
_.iO=function(W,O){var b=Oo;_.kX(function(){var T,L=(T=O.observer)!=null?T:_.iq().resolve(O0);if(T=W.value){var h=LRT(T),Z=[];O.showOption&&Z.push(L.observe(T,function(){xb(b,function(){O.visibilityCallback(!0)})},O.showOption));
O.hideOption&&Z.push(L.observe(T,function(){xb(b,function(){O.visibilityCallback(!1)})},O.hideOption));
O.prescanOption&&O.prescanCallback&&Z.push(L.observe(T,function(){xb(b,function(){O.prescanCallback()})},O.prescanOption));
var a;h.visibilityMonitorKeys=((a=h.visibilityMonitorKeys)!=null?a:[]).concat(Z)}})};
LRT=function(W){var O;return(O=W.polymerController)!=null?O:W};
_.bO=function(W){W.componentType=vj};
Zd8=function(W,O){var b=dfT;return _.E(_.TT,null,Fu(du.enableLazyTsx,function(){return _.E(hcX,{id:b,value:W,children:O})},function(){var T=S18(b,W);
Tx(T);T=bt(T);try{return O()}finally{bt(T)}}))};
hcX=function(W){var O=W.children;W=S18(W.id,W.value);Tx(W);W=bt(W);try{return _.E(_.TT,null,A_(O()))}finally{bt(W)}};
S18=function(W,O){return Object.assign(Object.create(I38),{id:W,contextValue:O})};
a3e=function(W){var O,b=Oo;_.Dq(function(){var T=bt(b),L=Lv(!O);try{if(O)NGe(O,W.children(),!0);else if(O=A_(W.children()),!(O instanceof Element))throw Error("md");}finally{Lv(L),bt(T)}});
return O};
mfX=function(W){var O,b=Bj(function(){var T=Lv(!0);try{O=EC(W())}finally{Lv(T)}},!1);
return[O,b]};
ESh=function(W){W=W.buf.charCodeAt(W.pos++);return Y1Q[W]};
j3=function(W){var O=0,b=0;do{var T=ESh(W);O|=(T&31)<<b;b+=5}while(T&32);return O<0?O+4294967296:O};
XsP=function(W,O,b){wsX(W,O);W[O][APT].unshift(b)};
wsX=function(W,O){if(!W[O]||!W[O][APT]){var b=W[O],T=b?[b]:[];W[O]=function(){for(var L=_.S(T),h=L.next();!h.done;h=L.next())h.value.apply(this,arguments)};
W[O][APT]=T}};
Uf2=function(W){if(!W)return[];var O=[];W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,Array.isArray(b)?O.push.apply(O,_.PG(Uf2(b))):O.push(b);return O};
_.LP=function(W,O){if(W&&l3T.test(W)||W==="//")return W;if(ech===void 0){ech=!1;try{var b=new URL("b","http://a");b.pathname="c%20d";ech=b.href==="http://a/c%20d"}catch(T){}}O||(O=document.baseURI||window.location.href);if(ech)try{return(new URL(W,O)).href}catch(T){return W}Ts||(Ts=document.implementation.createHTMLDocument("temp"),Ts.base=Ts.createElement("base"),Ts.head.appendChild(Ts.base),Ts.anchor=Ts.createElement("a"),Ts.body.appendChild(Ts.anchor));Ts.base.href=O;Ts.anchor.href=W;return Ts.anchor.href||
W};
ps8=function(W,O){return W.replace(Pni,function(b,T,L,h){return T+"'"+_.LP(L.replace(/["']/g,""),O)+"'"+h})};
RcX=function(W){return W.substring(0,W.lastIndexOf("/")+1)};
gSe=function(){KRq=!1;for(var W=d3.length,O=0;O<W;O++){var b=d3[O];if(b)try{b()}catch(T){setTimeout(function(){throw T;})}}d3.splice(0,W);
vSE+=W};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(W){console.log("["+W.is+"]: registered")};
QMQ=function(W){oSO.push(W)};
hq=function(W){return kBO[W]||(kBO[W]=W.indexOf("-")<0?W:W.replace(sMT,function(O){return O[1].toUpperCase()}))};
S3=function(W){return kBO[W]||(kBO[W]=W.replace(BdE,"-$1").toLowerCase())};
rPO=function(W,O){var b=O.parentInfo&&rPO(W,O.parentInfo);if(b)for(W=b.firstChild,b=0;W;W=W.nextSibling){if(O.parentIndex===b++)return W}else return W};
DfX=function(W,O){W=W._methodHost||W;return function(b){if(W[O])W[O](b,b.detail);else console.warn("listener method `"+O+"` not defined")}};
ZF=function(W){return W.indexOf(".")>=0};
I2=function(W){var O=W.indexOf(".");return O===-1?W:W.slice(0,O)};
xfX=function(W,O){return W.indexOf(O+".")===0};
a2=function(W,O){return O.indexOf(W+".")===0};
mA=function(W,O,b){return O+b.slice(W.length)};
zc8=function(W,O){return W===O||xfX(W,O)||a2(W,O)};
YF=function(W){if(Array.isArray(W)){for(var O=[],b=0;b<W.length;b++)for(var T=W[b].toString().split("."),L=0;L<T.length;L++)O.push(T[L]);return O.join(".")}return W};
CnP=function(W){return Array.isArray(W)?YF(W).split("."):W.toString().split(".")};
E0=function(W,O,b){O=CnP(O);for(var T=0;T<O.length;T++){if(!W)return;W=W[O[T]]}b&&(b.path=O.join("."));return W};
q1Q=function(W,O,b){var T=CnP(O),L=T[T.length-1];if(T.length>1){for(O=0;O<T.length-1;O++)if(W=W[T[O]],!W)return;W[L]=b}else W[O]=b;return T.join(".")};
nS8=function(W,O,b){var T=W[O];if(!T)T=W[O]={};else if(!W.hasOwnProperty(O)&&(T=W[O]=Object.create(W[O]),b))for(var L in T)for(W=T[L],O=T[L]=Array(W.length),b=0;b<W.length;b++)O[b]=W[b];return T};
Aq=function(W,O,b,T,L,h){if(O){var Z=!1,a=w3++,m;for(m in b){var w=L?I2(m):m;if(w=O[w])for(var A=0,X=w.length,l=void 0;A<X&&(l=w[A]);A++)l.info&&l.info.lastRun===a||L&&!f3e(m,l.trigger)||(l.info&&(l.info.lastRun=a),l.fn(W,m,b,T,l.info,L,h),Z=!0)}return Z}return!1};
f3e=function(W,O){if(O){var b=O.name;return b==W||!(!O.structured||!xfX(b,W))||!(!O.wildcard||!a2(b,W))}return!0};
GBX=function(W,O,b,T,L){O=typeof L.method==="string"?W[L.method]:L.method;b=L.property;O?O.call(W,W.__data[b],T[b]):L.dynamicFn||console.warn("observer method `"+L.method+"` not defined")};
Hd1=function(W,O,b,T){b={value:b,queueProperty:!0};T&&(b.path=T);(0,_.X2)(W).dispatchEvent(new CustomEvent(O,{detail:b}))};
tE1=function(W,O,b,T,L,h){h=(T=(h?I2(O):O)!=O?O:null)?E0(W,T):W.__data[O];T&&h===void 0&&(h=b[O]);Hd1(W,L.eventName,h,T)};
$fX=function(W,O,b,T,L){b=W.__data[O];U0&&(b=U0(b,L.attrName,"attribute",W));W._propertyToAttribute(O,L.attrName,b)};
NdX=function(W){var O=W.constructor.__orderedComputedDeps;if(!O){O=new Map;for(var b=W.__computeEffects,T=VET(W),L=T.counts,h=T.ready,Z=T.total;T=h.shift();)O.set(T,O.size),(T=b[T])&&T.forEach(function(a){a=a.info.methodInfo;--Z;--L[a]===0&&h.push(a)});
Z!==0&&console.warn("Computed graph for "+W.localName+" incomplete; circular?");W.constructor.__orderedComputedDeps=O}return O};
VET=function(W){var O=W.__computeInfo,b={};W=W.__computeEffects;var T=[],L=0,h;for(h in O){var Z=O[h];L+=b[h]=Z.args.filter(function(m){return!m.literal}).length+(Z.dynamicFn?1:0)}for(var a in W)O[a]||T.push(a);
return{counts:b,ready:T,total:L}};
uLT=function(W,O,b,T,L){O=MEe(W,O,b,T,L);if(O===lO)return!1;L=L.methodInfo;if(W.__dataHasAccessor&&W.__dataHasAccessor[L])return W._setPendingProperty(L,O,!0);W[L]=O;return!1};
FRP=function(W,O,b,T,L,h,Z){b.bindings=b.bindings||[];T={kind:T,target:L,parts:h,literal:Z,isCompound:h.length!==1};b.bindings.push(T);T.target&&T.kind!="attribute"&&T.kind!="text"&&!T.isCompound&&T.parts[0].mode==="{"&&(b=T.parts[0],h=b.negate,T.listenerEvent=b.event||S3(L)+"-changed",T.listenerNegate=h);L=O.nodeInfoList.length;for(b=0;b<T.parts.length;b++){var a=T.parts[b];a.compoundIndex=b;h=W;Z=O;var m=T,w=a,A=L;if(!w.literal)if(m.kind==="attribute"&&m.target[0]==="-")console.warn("Cannot set attribute "+
m.target+' because "-" is not a valid attribute starting character');else for(a=w.dependencies,m={index:A,binding:m,part:w,evaluator:h},w=0;w<a.length;w++)A=a[w],typeof A=="string"&&(A=JP8(A),A.wildcard=!0),h._addTemplatePropertyEffect(Z,A.rootProperty,{fn:cPX,info:m,trigger:A})}};
cPX=function(W,O,b,T,L,h,Z){Z=Z[L.index];var a=L.binding,m=L.part;h&&m.source&&O.length>m.source.length&&a.kind=="property"&&!a.isCompound&&Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[a.target]?(b=b[O],O=mA(m.source,a.target,O),Z._setPendingPropertyOrPath(O,b,!1,!0)&&W._enqueueClient(Z)):(O=L.evaluator._evaluateBinding(W,m,O,b,T,h),O!==lO&&(a.isCompound&&(b=Z.__dataCompoundStorage[a.target],b[m.compoundIndex]=O,O=b.join("")),a.kind==="attribute"||a.target!=="textContent"&&
(a.target!=="value"||Z.localName!=="input"&&Z.localName!=="textarea")||(O=O==void 0?"":O),m=O,U0&&(m=U0(m,a.target,a.kind,Z)),a.kind=="attribute"?W._valueToNodeAttribute(Z,m,a.target):(a=a.target,Z.__isPropertyEffectsClient&&Z.__dataHasAccessor&&Z.__dataHasAccessor[a]?Z.__readOnly&&Z.__readOnly[a]||Z._setPendingProperty(a,m)&&W._enqueueClient(Z):W._setUnmanagedPropertyToNode(Z,a,m))))};
yPh=function(W,O,b){if(b.listenerEvent){var T=b.parts[0];W.addEventListener(b.listenerEvent,function(L){var h=b.target,Z=T.source,a=T.negate,m=L.detail,w=m&&m.path;w?(Z=mA(h,Z,w),L=m&&m.value):L=L.currentTarget[h];O.__readOnly&&O.__readOnly[Z]||!O._setPendingPropertyOrPath(Z,a?!L:L,!0,!!w)||m&&m.queueProperty||O._invalidateProperties()})}};
WoO=function(W,O,b,T,L,h){h=O.static||h&&(typeof h!=="object"||h[O.methodName]);L={methodName:O.methodName,args:O.args,methodInfo:L,dynamicFn:h};for(var Z=0,a=void 0;Z<O.args.length&&(a=O.args[Z]);Z++)a.literal||W._addPropertyEffect(a.rootProperty,b,{fn:T,info:L,trigger:a});h&&W._addPropertyEffect(O.methodName,b,{fn:T,info:L});return L};
MEe=function(W,O,b,T,L){T=W._methodHost||W;var h=T[L.methodName];if(h)return W=W._marshalArgs(L.args,O,b),W===lO?lO:h.apply(T,W);L.dynamicFn||console.warn("method `"+L.methodName+"` not defined")};
OpP=function(W){for(var O="",b=0;b<W.length;b++)O+=W[b].literal||"";return O};
j42=function(W){if(W=W.match(/([^\s]+?)\(([\s\S]*)\)/)){var O={methodName:W[1],static:!0,args:ip8};return W[2].trim()?bp8(W[2].replace(/\\,/g,"&comma;").split(","),O):O}return null};
bp8=function(W,O){O.args=W.map(function(b){b=JP8(b);b.literal||(O.static=!1);return b},this);
return O};
JP8=function(W){W=W.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var O={name:W,value:"",literal:!1},b=W[0];b==="-"&&(b=W[1]);b>="0"&&b<="9"&&(b="#");switch(b){case "'":case '"':O.value=W.slice(1,-1);O.literal=!0;break;case "#":O.value=Number(W),O.literal=!0}O.literal||(O.rootProperty=I2(W),O.structured=ZF(W),O.structured&&(O.wildcard=W.slice(-2)==".*",O.wildcard&&(O.name=W.slice(0,-2))));return O};
TtX=function(W,O,b){W=E0(W,b);W===void 0&&(W=O[b]);return W};
LoX=function(W,O,b,T){T={indexSplices:T};e3&&!W._overrideLegacyUndefined&&(O.splices=T);W.notifyPath(b+".splices",T);W.notifyPath(b+".length",O.length);e3&&!W._overrideLegacyUndefined&&(T.indexSplices=[])};
PB=function(W,O,b,T,L,h){LoX(W,O,b,[{index:T,addedCount:L,removed:h,object:O,type:"splice"}])};
dLX=function(W){W=ps8((W.body?W.body:W).textContent,W.baseURI);var O=document.createElement("style");O.textContent=W;return O};
SxP=function(W){W=W.trim().split(/\s+/);for(var O=[],b=0;b<W.length;b++)O.push.apply(O,_.PG(hlX(W[b])));return O};
hlX=function(W){var O=pP.import(W);if(!O)return console.warn("Could not find style data in module named",W),[];if(O._styles===void 0){W=[];W.push.apply(W,_.PG(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O)));var b=O.querySelector("template");b&&W.push.apply(W,_.PG(ZpE(b,O.assetpath)));O._styles=W}return O._styles};
ZpE=function(W,O){if(!W._styles){for(var b=[],T=W.content.querySelectorAll("style"),L=0;L<T.length;L++){var h=T[L],Z=h.getAttribute("include");Z&&b.push.apply(b,_.PG(SxP(Z).filter(function(a,m,w){return w.indexOf(a)===m})));
O&&(h.textContent=ps8(h.textContent,O));b.push(h)}W._styles=b}return W._styles};
IOe=function(W){return(W=pP.import(W))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var O=[];W=W.querySelectorAll("link[rel=import][type~=css]");for(var b=0;b<W.length;b++){var T=W[b];if(T.import){var L=T.import;if((T=T.hasAttribute("shady-unscoped"))&&!L._unscopedStyle){var h=dLX(L);h.setAttribute("shady-unscoped","");L._unscopedStyle=h}else L._style||(L._style=dLX(L));O.push(T?L._unscopedStyle:L._style)}}return O};
Yx8=function(W){W=W.trim().split(/\s+/);for(var O="",b=0;b<W.length;b++)O+=aOi(W[b]);return O};
aOi=function(W){var O=pP.import(W);if(O&&O._cssText===void 0){var b=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(O),T=O.querySelector("template");T&&(b+=EzX(T,O.assetpath));O._cssText=b||null}O||console.warn("Could not find style data in module named",W);return O&&O._cssText||""};
EzX=function(W,O){var b="";W=ZpE(W,O);for(O=0;O<W.length;O++){var T=W[O];T.parentNode&&T.parentNode.removeChild(T);b+=T.textContent}return b};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(W){var O="";W=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W);for(var b=0;b<W.length;b++)O+=W[b].textContent;return O};
R2=function(W,O){return{index:W,removed:[],addedCount:O}};
AI8=function(W,O,b,T){var L=0,h=0,Z=0,a=0,m=Math.min(O-L,T-h);if(L==0&&h==0)a:{for(Z=0;Z<m;Z++)if(W[Z]!==b[Z])break a;Z=m}if(O==W.length&&T==b.length){a=W.length;for(var w=b.length,A=0;A<m-Z&&wm8(W[--a],b[--w]);)A++;a=A}L+=Z;h+=Z;O-=a;T-=a;if(O-L==0&&T-h==0)return[];if(L==O){for(O=R2(L,0);h<T;)O.removed.push(b[h++]);return[O]}if(h==T)return[R2(L,O-L)];m=L;Z=h;T=T-Z+1;a=O-m+1;O=Array(T);for(w=0;w<T;w++)O[w]=Array(a),O[w][0]=w;for(w=0;w<a;w++)O[0][w]=w;for(w=1;w<T;w++)for(A=1;A<a;A++)if(W[m+A-1]===
b[Z+w-1])O[w][A]=O[w-1][A-1];else{var X=O[w-1][A]+1,l=O[w][A-1]+1;O[w][A]=X<l?X:l}m=O.length-1;Z=O[0].length-1;T=O[m][Z];for(W=[];m>0||Z>0;)m==0?(W.push(2),Z--):Z==0?(W.push(3),m--):(a=O[m-1][Z-1],w=O[m-1][Z],A=O[m][Z-1],X=w<A?w<a?w:a:A<a?A:a,X==a?(a==T?W.push(0):(W.push(1),T=a),m--,Z--):X==w?(W.push(3),m--,T=w):(W.push(2),Z--,T=A));W.reverse();O=void 0;m=[];for(Z=0;Z<W.length;Z++)switch(W[Z]){case 0:O&&(m.push(O),O=void 0);L++;h++;break;case 1:O||(O=R2(L,0));O.addedCount++;L++;O.removed.push(b[h]);
h++;break;case 2:O||(O=R2(L,0));O.addedCount++;L++;break;case 3:O||(O=R2(L,0)),O.removed.push(b[h]),h++}O&&m.push(O);return m};
XmE=function(W,O){return AI8(W,W.length,O,O.length)};
wm8=function(W,O){return W===O};
lO8=function(W){if(W instanceof ULT)return W.value;throw Error("Dd`"+W);};
elh=function(W,O){for(var b in O)b===null?W.style.removeProperty(b):W.style.setProperty(b,O[b])};
Pw1=function(W,O){return(W=window.getComputedStyle(W).getPropertyValue(O))?W.trim():""};
vz1=function(W){requestAnimationFrame(function(){pmO?pmO(W):(RlX||(RlX=new Promise(function(O){KoQ=O}),document.readyState==="complete"?KoQ():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&KoQ()})),RlX.then(function(){W&&W()}))})};
Q48=function(W){gz8=W&&W.shimcssproperties?!1:oz8||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
DLX=function(W){if(!(kJP.indexOf(W)>-1)&&W!=="touchend"&&s4E&&BtP&&rIi)return{passive:!0}};
qxO=function(W){for(var O=xLE?["click"]:kJP,b=0,T;b<O.length;b++)T=O[b],W?(zl8.length=0,document.addEventListener(T,CwQ,!0)):document.removeEventListener(T,CwQ,!0)};
KP=function(W){var O=W.type;return kJP.indexOf(O)>-1?O==="mousemove"?(O=W.buttons===void 0?1:W.buttons,W instanceof window.MouseEvent&&!nzX&&(O=fOT[W.which]||0),!!(O&1)):(W.button===void 0?0:W.button)===0:!1};
GJP=function(W){if(W.type==="click"){if(W.detail===0)return!0;var O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);if(!O.nodeType||O.nodeType!==Node.ELEMENT_NODE)return!0;O=O.getBoundingClientRect();var b=W.pageX;W=W.pageY;return!(b>=O.left&&b<=O.right&&W>=O.top&&W<=O.bottom)}return!1};
HpX=function(W,O,b){W.movefn=O;W.upfn=b;document.addEventListener("mousemove",O);document.addEventListener("mouseup",b)};
vB=function(W){document.removeEventListener("mousemove",W.movefn);document.removeEventListener("mouseup",W.upfn);W.movefn=null;W.upfn=null};
tki=function(W,O){for(var b=document.elementFromPoint(W,O),T=b;T&&T.shadowRoot&&!window.ShadyDOM;){var L=T;T=T.shadowRoot.elementFromPoint(W,O);if(L===T)break;T&&(b=T)}return b};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var O=$Lq(W);return O.length>0?O[0]:W.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var O=W.type,b=W.currentTarget.__polymerGestures;if(b&&(b=b[O])){if(!W.__polymerGesturesHandled&&(W.__polymerGesturesHandled={},O.slice(0,5)==="touch")){var T=W.changedTouches[0];O==="touchstart"&&W.touches.length===1&&(Vke=T.identifier);if(Vke!==T.identifier)return;s4E||(O==="touchstart"||O==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)}T=
W.__polymerGesturesHandled;if(!T.skip){for(var L=0,h;L<g3.length;L++)h=g3[L],b[h.name]&&!T[h.name]&&h.flow&&h.flow.start.indexOf(W.type)>-1&&h.reset&&h.reset();for(L=0;L<g3.length;L++)h=g3[L],b[h.name]&&!T[h.name]&&(T[h.name]=!0,h[O](W))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){var O=W.changedTouches[0],b=W.type;if(b==="touchstart")Nt8=O.clientX,Mk8=O.clientY,ug8=!1;else if(b==="touchmove"&&!ug8){ug8=!0;b="auto";for(var T=$Lq(W),L=0,h;L<T.length;L++)if(h=T[L],h.__polymerGesturesTouchAction){b=h.__polymerGesturesTouchAction;break}T=!1;L=Math.abs(Nt8-O.clientX);O=Math.abs(Mk8-O.clientY);W.cancelable&&(b==="none"?T=!0:b==="pan-x"?T=O>L:b==="pan-y"&&(T=L>O));T?W.preventDefault():
o2("track")}};
kF=function(W,O,b){return QM[O]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,O,b),!0):!1};
s0=function(W,O,b){return QM[O]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W,O,b),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,O,b){var T=QM[O],L=T.deps,h=T.name,Z=W.__polymerGestures;Z||(W.__polymerGestures=Z={});for(var a=0,m,w;a<L.length;a++)m=L[a],xLE&&kJP.indexOf(m)>-1&&m!=="click"||((w=Z[m])||(Z[m]=w={_count:0}),w._count===0&&W.addEventListener(m,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,DLX(m)),w[h]=(w[h]||0)+1,w._count=(w._count||0)+1);W.addEventListener(O,b);T.touchAction&&_.BB(W,T.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,O,b){var T=QM[O],L=T.deps;T=T.name;var h=W.__polymerGestures;if(h)for(var Z=0,a,m;Z<L.length;Z++)a=L[Z],(m=h[a])&&m[T]&&(m[T]=(m[T]||1)-1,m._count=(m._count||1)-1,m._count===0&&W.removeEventListener(a,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,DLX(a)));W.removeEventListener(O,b)};
JIX=function(W){g3.push(W);for(var O=0;O<W.emits.length;O++)QM[W.emits[O]]=W};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W){for(var O=0,b;O<g3.length;O++){b=g3[O];for(var T=0,L;T<b.emits.length;T++)if(L=b.emits[T],L===W)return b}return null};
_.BB=function(W,O){s4E&&W instanceof HTMLElement&&r3.run(function(){W.style.touchAction=O});
W.__polymerGesturesTouchAction=O};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(W,O,b){O=new Event(O,{bubbles:!0,cancelable:!0,composed:!0});O.detail=b;(0,_.X2)(W).dispatchEvent(O);O.defaultPrevented&&(W=b.preventer||b.sourceEvent)&&W.preventDefault&&W.preventDefault()};
o2=function(W){W=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W.info&&(W.info.prevent=!0)};
DF=function(W,O,b,T){O&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,W,{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:T,prevent:function(L){return o2(L)}})};
cIh=function(W,O,b){if(W.prevent)return!1;if(W.started)return!0;b=Math.abs(W.y-b);return Math.abs(W.x-O)>=5||b>=5};
Fo1=function(W,O,b){if(O){var T=W.moves[W.moves.length-2],L=W.moves[W.moves.length-1],h=L.x-W.x,Z=L.y-W.y,a=0;if(T){var m=L.x-T.x;a=L.y-T.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(O,"track",{state:W.state,x:b.clientX,y:b.clientY,dx:h,dy:Z,ddx:m,ddy:a,sourceEvent:b,hover:function(){return tki(b.clientX,b.clientY)}})}};
W92=function(W,O,b){var T=Math.abs(O.clientX-W.x),L=Math.abs(O.clientY-W.y),h=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b||O);!h||yI8[h.localName]&&h.hasAttribute("disabled")||!(isNaN(T)||isNaN(L)||T<=25&&L<=25||GJP(O))||W.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(h,"tap",{x:O.clientX,y:O.clientY,sourceEvent:O,preventer:b})};
OFq=function(W,O,b,T,L){var h;L&&(h=typeof b==="object"&&b!==null)&&(T=W.__dataTemp[O]);T=T!==b&&(T===T||b===b);h&&T&&(W.__dataTemp[O]=b);return T};
bFh=function(){if(xF&&!zs){if(!iFQ){iFQ=!0;var W=document.createElement("style");W.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(W)}return!0}return!1};
T6i=function(){return jyX};
L91=function(W,O){jyX=W;Object.setPrototypeOf(W,O.prototype);new O;jyX=null};
dsh=function(W,O){for(var b=0;b<O.length;b++){var T=O[b];if(!!W!=!!T.__hideTemplateChildren__)if(T.nodeType===Node.TEXT_NODE)W?(T.__polymerTextContent__=T.textContent,T.textContent=""):T.textContent=T.__polymerTextContent__;else if(T.localName==="slot")if(W)T.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.X2)((0,_.X2)(T).parentNode).replaceChild(T.__polymerReplaced__,T);else{var L=T.__polymerReplaced__;L&&(0,_.X2)((0,_.X2)(L).parentNode).replaceChild(T,L)}else T.style&&(W?(T.__polymerDisplay__=
T.style.display,T.style.display="none"):T.style.display=T.__polymerDisplay__);T.__hideTemplateChildren__=W;T._showHideChildren&&T._showHideChildren(W)}};
hK8=function(W){return(W=W.__dataHost)&&W._methodHost||W};
IvO=function(W,O,b){var T=b.mutableData?S8P:CP;qy.mixin&&(T=qy.mixin(T));var L=function(){return T.apply(this,arguments)||this};
_.R(L,T);L.prototype.__templatizeOptions=b;L.prototype._bindTemplate(W);ZFE(L,W,O,b);return L};
wtX=function(W,O,b,T){var L=b.forwardHostProp;if(L&&O.hasHostProps){var h=W.localName=="template",Z=O.templatizeTemplateClass;if(!Z){if(h){var a=b.mutableData?av2:ms2;Z=function(){return a.apply(this,arguments)||this};
_.R(Z,a);Z=O.templatizeTemplateClass=Z}else{var m=W.constructor;Z=function(){return m.apply(this,arguments)||this};
_.R(Z,m);Z=O.templatizeTemplateClass=Z}var w=O.hostProps,A;for(A in w)Z.prototype._addPropertyEffect("_host_"+A,Z.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Y8T(L)}),Z.prototype._createNotifyingProperty("_host_"+A);nP&&T&&EN1(O,b,T)}W.__dataProto&&Object.assign(W.__data,W.__dataProto);if(h)L91(W,Z),W.__dataTemp={},W.__dataPending=null,W.__dataOld=null,W._enableProperties();else{Object.setPrototypeOf(W,Z.prototype);O=O.hostProps;for(var X in O)X="_host_"+X,X in W&&(O=W[X],delete W[X],W.__data[X]=
O)}}};
Y8T=function(W){return function(O,b,T){W.call(O.__templatizeOwner,b.substring(6),T[b])}};
ZFE=function(W,O,b,T){var L=b.hostProps||{},h;for(h in T.instanceProps){delete L[h];var Z=T.notifyInstanceProp;Z&&W.prototype._addPropertyEffect(h,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:AT2(Z)})}if(T.forwardHostProp&&O.__dataHost)for(var a in L)b.hasHostProps||(b.hasHostProps=!0),W.prototype._addPropertyEffect(a,W.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:XtQ()})};
AT2=function(W){return function(O,b,T){W.call(O.__templatizeOwner,O,b,T[b])}};
XtQ=function(){return function(W,O,b){W.__dataHost._setPendingPropertyOrPath("_host_"+O,b[O],!0,!0)}};
qy=function(W,O,b){if(fP&&!hK8(W))throw Error("Jd");b=b||{};if(W.__templatizeOwner)throw Error("Kd");W.__templatizeOwner=O;var T=(O?O.constructor:CP)._parseTemplate(W),L=T.templatizeInstanceClass;L||(L=IvO(W,T,b),T.templatizeInstanceClass=L);var h=hK8(W);wtX(W,T,b,h);b=function(){return L.apply(this,arguments)||this};
_.R(b,L);b.prototype._methodHost=h;b.prototype.__dataHost=W;b.prototype.__templatizeOwner=O;b.prototype.__hostProps=T.hostProps;return b};
EN1=function(W,O,b){b=b.constructor._properties;W=W.propertyEffects;O=O.instanceProps;for(var T in W)if(!(b[T]||O&&O[T]))for(var L=W[T],h=0;h<L.length;h++){var Z=L[h].info.part;if(!Z.signature||!Z.signature.static){console.warn("Property '"+T+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
UsX=function(W,O){for(var b;O;)if(b=O.__dataHost?O:O.__templatizeInstance)if(b.__dataHost!=W)O=b.__dataHost;else return b;else O=(0,_.X2)(O).parentNode;return null};
Gs=function(W){return W.localName==="slot"};
lve=function(){for(var W=HB.prototype,O="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),b={},T=0;T<O.length;b={method$jscomp$30:void 0},T++)b.method$jscomp$30=O[T],W[b.method$jscomp$30]=function(L){return function(){return this.node[L.method$jscomp$30].apply(this.node,arguments)}}(b)};
eK8=function(W,O){for(var b={},T=0;T<O.length;b={name$jscomp$379:void 0},T++)b.name$jscomp$379=O[T],Object.defineProperty(W,b.name$jscomp$379,{get:function(L){return function(){return this.node[L.name$jscomp$379]}}(b),
configurable:!0})};
P3i=function(){for(var W=HB.prototype,O=["textContent","innerHTML","className"],b={},T=0;T<O.length;b={name$jscomp$380:void 0},T++)b.name$jscomp$380=O[T],Object.defineProperty(W,b.name$jscomp$380,{get:function(L){return function(){return this.node[L.name$jscomp$380]}}(b),
set:function(L){return function(h){this.node[L.name$jscomp$380]=h}}(b),
configurable:!0})};
ptT=function(){tq=document.documentElement.getAttribute("dir");tq=document.documentElement.getAttribute("dir");for(var W=0;W<$F.length;W++){var O=$F[W];O.__autoDirOptOut||O.setAttribute("dir",tq)}};
gN8=function(){VM=!0;requestAnimationFrame(function(){VM=!1;RKe(K98);setTimeout(function(){for(var W=0,O=Ny.length;W<O;W++)vNE(Ny.shift())})})};
RKe=function(W){for(;W.length;)vNE(W.shift())};
vNE=function(W){var O=W[0],b=W[1];W=W[2];try{b.apply(O,W)}catch(T){setTimeout(function(){throw T;})}};
_.oNP=function(W,O,b){VM||gN8();K98.push([W,O,b])};
_.My=function(W,O,b){VM||gN8();Ny.push([W,O,b])};
sy8=function(W,O){O=O===void 0?!1:O;if(!QyQ||!ko8||!QyQ.handlesDynamicScoping)return null;var b=ko8.ScopingShim;if(!b)return null;var T=b.scopeForNode(W),L=(0,_.X2)(W).getRootNode(),h=function(Z){if((0,_.X2)(Z).getRootNode()===L){var a=Array.from(QyQ.nativeMethods.querySelectorAll.call(Z,"*"));a.push(Z);for(Z=0;Z<a.length;Z++){var m=a[Z];if((0,_.X2)(m).getRootNode()===L){var w=b.currentScopeForNode(m);w!==T&&(w!==""&&b.unscopeNode(m,w),b.scopeNode(m,T))}}}};
h(W);return O?(O=new MutationObserver(function(Z){for(var a=0;a<Z.length;a++)for(var m=Z[a],w=0;w<m.addedNodes.length;w++){var A=m.addedNodes[w];A.nodeType===Node.ELEMENT_NODE&&h(A)}}),O.observe(W,{childList:!0,
subtree:!0}),O):null};
B6O=function(){document.body.removeAttribute("unresolved")};
C38=function(W){var O=W=W.replace(rTh,"").replace(Dsh,""),b=new xsO;b.start=0;b.end=O.length;for(var T=b,L=0,h=O.length;L<h;L++)if(O[L]==="{"){T.rules||(T.rules=[]);var Z=T,a=Z.rules[Z.rules.length-1]||null;T=new xsO;T.start=L+1;T.parent=Z;T.previous=a;Z.rules.push(T)}else O[L]==="}"&&(T.end=L+1,T=T.parent||b);return zKX(b,W)};
zKX=function(W,O){var b=O.substring(W.start,W.end-1);W.parsedCssText=W.cssText=b.trim();W.parent&&(b=O.substring(W.previous?W.previous.end:W.parent.start,W.start-1),b=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(b),b=b.replace(q8q," "),b=b.substring(b.lastIndexOf(";")+1),b=W.parsedSelector=W.selector=b.trim(),W.atRule=b.indexOf("@")===0,W.atRule?b.indexOf("@media")===0?W.type=4:b.match(nNT)&&(W.type=7,W.keyframesName=W.selector.split(q8q).pop()):b.indexOf("--")===
0?W.type=1E3:W.type=1);if(b=W.rules)for(var T=0,L=b.length,h=void 0;T<L&&(h=b[T]);T++)zKX(h,O);return W};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){return W.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var O=arguments[1],b=6-O.length;b--;)O="0"+O;return"\\"+O})};
fvX=function(W,O,b){b=b===void 0?"":b;var T="";if(W.cssText||W.rules){var L=W.rules;if(L&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(L))for(var h=0,Z=L.length,a=void 0;h<Z&&(a=L[h]);h++)T=fvX(a,O,T);else O?O=W.cssText:(O=W.cssText,O=O.replace(Go8,"").replace(HF2,""),O=O.replace(t7X,"").replace($sq,"")),(T=O.trim())&&(T="  "+T+"\n")}T&&(W.selector&&(b+=W.selector+" {\n"),b+=T,W.selector&&(b+="}\n\n"));return b};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(W){W=W[0];return!!W&&!!W.selector&&W.selector.indexOf("--")===0};
N6e=function(W){if(W=V7X[W])W._applyShimCurrentVersion=W._applyShimCurrentVersion||0,W._applyShimValidatingVersion=W._applyShimValidatingVersion||0,W._applyShimNextVersion=(W._applyShimNextVersion||0)+1};
M7E=function(W){return W._applyShimCurrentVersion===W._applyShimNextVersion};
JT1=function(W){W._applyShimValidatingVersion=W._applyShimNextVersion;W._validating||(W._validating=!0,uNX.then(function(){W._applyShimCurrentVersion=W._applyShimNextVersion;W._validating=!1}))};
F9Q=function(W){if(!W)return"";typeof W==="string"&&(W=C38(W));return fvX(W,cTT)};
yTT=function(W){!W.__cssRules&&W.textContent&&(W.__cssRules=C38(W.textContent));return W.__cssRules||null};
OD1=function(W,O,b,T){if(W){var L=!1,h=W.type;if(T&&h===4){var Z=W.selector.match(WNQ);Z&&(window.matchMedia(Z[1]).matches||(L=!0))}h===1?O(W):b&&h===7?b(W):h===1E3&&(L=!0);if((W=W.rules)&&!L)for(L=0,h=W.length,Z=void 0;L<h&&(Z=W[L]);L++)OD1(Z,O,b,T)}};
iDX=function(W,O){var b=W.indexOf("var(");if(b===-1)return O(W,"","","");a:{var T=0;var L=b+3;for(var h=W.length;L<h;L++)if(W[L]==="(")T++;else if(W[L]===")"&&--T===0)break a;L=-1}T=W.substring(b+4,L);b=W.substring(0,b);W=iDX(W.substring(L+1),O);h=T.indexOf(",");if(h===-1)return O(b,T.trim(),"",W);L=T.substring(0,h).trim();T=T.substring(h+1).trim();return O(b,L,T,W)};
bDq=function(W){if(uO!==void 0)return uO;if(W.__cssBuild===void 0){var O=W.getAttribute("css-build");if(O)W.__cssBuild=O;else{a:{O=W.localName==="template"?W.content.firstChild:W.firstChild;if(O instanceof Comment&&(O=O.textContent.trim().split(":"),O[0]==="css-build")){O=O[1];break a}O=""}if(O!==""){var b=W.localName==="template"?W.content.firstChild:W.firstChild;b.parentNode.removeChild(b)}W.__cssBuild=O}}return W.__cssBuild||""};
TYX=function(W,O,b,T){for(var L=O._noAccessors,h=Object.getOwnPropertyNames(O),Z=0;Z<h.length;Z++){var a=h[Z];if(!(a in T))if(L)W[a]=O[a];else{var m=Object.getOwnPropertyDescriptor(O,a);m&&(m.configurable=!0,Object.defineProperty(W,a,m))}}for(var w in jd1)O[w]&&(b[w]=b[w]||[],b[w].push(O[w]))};
LNq=function(W,O,b){O=O||[];for(var T=W.length-1;T>=0;T--){var L=W[T];L?Array.isArray(L)?LNq(L,O):O.indexOf(L)<0&&(!b||b.indexOf(L)<0)&&O.unshift(L):console.warn("behavior is null, check for missing or 404 import")}return O};
dcE=function(W,O){for(var b in O){var T=W[b],L=O[b];W[b]=!("value"in L)&&T&&"value"in T?Object.assign({value:T.value},L):L}};
ZD8=function(W,O,b){var T={},L=function(){return O.apply(this,arguments)||this};
_.R(L,O);L._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(Z)for(var m=0,w;m<Z.length;m++)w=Z[m],w.properties&&this.createProperties(w.properties),w.observers&&this.createObservers(w.observers,w.properties);W.properties&&this.createProperties(W.properties);W.observers&&this.createObservers(W.observers,W.properties);this._prepareTemplate()}else O._finalizeClass.call(this)};
L.prototype.created=function(){O.prototype.created.call(this);var m=T.created;if(m)for(var w=0;w<m.length;w++)m[w].call(this)};
L.prototype._registered=function(){var m=L.prototype;if(!m.hasOwnProperty("__hasRegisterFinished")){m.__hasRegisterFinished=!0;O.prototype._registered.call(this);xF&&a(m);m=Object.getPrototypeOf(this);var w=T.beforeRegister;if(w)for(var A=0;A<w.length;A++)w[A].call(m);if(w=T.registered)for(A=0;A<w.length;A++)w[A].call(m)}};
L.prototype._applyListeners=function(){O.prototype._applyListeners.call(this);var m=T.listeners;if(m)for(var w=0;w<m.length;w++){var A=m[w];if(A)for(var X in A)this._addMethodEventListenerToNode(this,X,A[X])}};
L.prototype._ensureAttributes=function(){var m=T.hostAttributes;if(m)for(var w=m.length-1;w>=0;w--){var A=m[w],X;for(X in A)this._ensureAttribute(X,A[X])}O.prototype._ensureAttributes.call(this)};
L.prototype.ready=function(){O.prototype.ready.call(this);var m=T.ready;if(m)for(var w=0;w<m.length;w++)m[w].call(this)};
L.prototype.attached=function(){O.prototype.attached.call(this);var m=T.attached;if(m)for(var w=0;w<m.length;w++)m[w].call(this)};
L.prototype.detached=function(){O.prototype.detached.call(this);var m=T.detached;if(m)for(var w=0;w<m.length;w++)m[w].call(this)};
L.prototype.attributeChanged=function(m,w,A){O.prototype.attributeChanged.call(this);var X=T.attributeChanged;if(X)for(var l=0;l<X.length;l++)X[l].call(this,m,w,A)};
_.Jq.Object.defineProperties(L,{properties:{configurable:!0,enumerable:!0,get:function(){var m={};if(Z)for(var w=0;w<Z.length;w++)dcE(m,Z[w].properties);dcE(m,W.properties);return m}},
observers:{configurable:!0,enumerable:!0,get:function(){var m=[];if(Z)for(var w=0,A;w<Z.length;w++)A=Z[w],A.observers&&(m=m.concat(A.observers));W.observers&&(m=m.concat(W.observers));return m}}});
if(b){Array.isArray(b)||(b=[b]);var h=O.prototype.behaviors;var Z=LNq(b,null,h);L.prototype.behaviors=h?h.concat(b):Z}var a=function(m){if(Z)for(var w=Z,A=0;A<w.length;A++)TYX(m,w[A],T,h9T);TYX(m,W,T,SQ8)};
xF||a(L.prototype);L.generatedFrom=W;return L};
YQh=function(W){var O=typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0};O.fastInit===void 0&&(O.fastInit=!0);return function(b){if(!O.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==_.cB)throw Error("Od");var T=b.prototype;T.is=O.is;XsP(T,"created",function(){this.hostElement=this;this.polymerController=this});
ILP(T,b,O.fastInit);O.notifyObserversOnUndefined&&(T._overrideLegacyUndefined=!0);if(aLX)for(var L=_.S(Object.getOwnPropertyNames(T)),h=L.next();!h.done;h=L.next()){h=h.value;var Z=Object.getOwnPropertyDescriptor(T,h);Z.enumerable===!1&&(Z.enumerable=!0,Object.defineProperty(T,h,Z))}if("template"in b)var a=function(){return b.template};
else O.template!==void 0&&(a=O.template);if(a!==void 0){var m;Object.defineProperty(T,"_template",{get:function(){m===void 0&&(m=a());return m},
set:function(w){m=w},
configurable:!0,enumerable:!0})}Polymer(T);b[mc8]=T}};
EqO=function(W){W=W===void 0?{}:W;W.fastInit===void 0&&(W.fastInit=!0);return function(O){if(!W.disableInheritanceCheck&&Object.getPrototypeOf(O.prototype).constructor!==F2)throw Error("Pd");ILP(O.prototype,O,W.fastInit)}};
ILP=function(W,O,b){b=b===void 0?!1:b;wR8(O);b?XsP(W,"created",function(){this.disableEnforceFastDefaultValuesCheck||AsQ(O,this)}):XsP(W,"ready",function(){for(var T={},L=_.S(Uf2(this.behaviors)),h=L.next();!h.done;h=L.next())h=h.value,h.properties&&Object.assign(T,XRX(this,h.properties));
Object.assign(T,XRX(this,this.properties));AsQ(O,this);L=_.S(Object.keys(T));for(h=L.next();!h.done;h=L.next())h=h.value,this[h]=T[h]})};
AsQ=function(W,O){if(aLX){W=new W;for(var b=_.S(Object.getOwnPropertyNames(W)),T=b.next();!T.done;T=b.next())T=T.value,O[T]=W[T];for(b=O;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){T=_.S(Object.getOwnPropertyNames(b));for(var L=T.next();!L.done;L=T.next())L=L.value,W.hasOwnProperty(L)||Object.defineProperty(W,L,UcX(O,L))}}else W.apply(O)};
UcX=function(W,O){return{get:function(){var b=W[O];return b instanceof Function?b.bind(W):b},
set:function(b){W[O]=b}}};
XRX=function(W,O){if(!O)return{};for(var b={},T=_.S(Object.keys(O)),L=T.next();!L.done;L=T.next())if(L=L.value,!O[L].readOnly){var h=W[L];h!==void 0&&(b[L]=h)}return b};
wR8=function(W){var O=new W;W=W.prototype.properties||{};for(var b=_.S(Object.keys(W)),T=b.next();!T.done;T=b.next())if(T=T.value,O.hasOwnProperty(T)){var L=W[T];typeof L==="function"&&(W[T]=L={type:L});O[T]!=null&&L.type===Object&&(L.type=lLO(O[T].constructor))}};
lLO=function(W){for(var O=_.S(e9E),b=O.next();!b.done;b=O.next())if(b=b.value,W===b)return b;return Object};
PUX=function(W){return function(O,b){O.behaviors=O.behaviors||[];O.behaviors.push(W||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",O,b).prototype:void 0));Object.defineProperty(O,b,{get:function(){return this},
enumerable:!0,configurable:!0})}};
pRE=function(W){W=W===void 0?{}:W;return function(O,b){O.properties=O.properties||{};W.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?W.type=lLO(Reflect.getMetadata("design:type",O,b)):W.type=String);var T=W,L=O.properties[b];O.properties[b]=L?Object.assign({},L,T):T}};
R9E=function(W){return function(O,b){O.listeners=O.listeners||{};O.listeners[W]=b}};
KNE=function(){var W=_.PD.apply(0,arguments);if(W.length===0)throw Error("Qd");return function(O,b){O.observers=O.observers||[];O.observers.push(b+"("+W.join(",")+")")}};
vqE=function(){var W=_.PD.apply(0,arguments);return function(O,b,T){var L=Object.getOwnPropertyDescriptor(O,b).get,h="__compute__"+b;Object.defineProperty(O,h,{value:L,enumerable:!0});O.properties=O.properties||{};L=O.properties[b];L||(L={},O.properties[b]=L);L.computed=h+"("+W.join(",")+")";T.get=void 0}};
_.yM=function(W,O,b){_.R8.call(this);this.JSC$9218_id_=null;this.usingListeners_=!1;this.JSC$9218_listener_=W;this.handler_=b;this.JSC$9218_win_=O||window;this.callback_=(0,_.K5)(this.JSC$9220_doAction_,this)};
Wb=function(W){this.range_=W};
Ok=function(W){this.range_=W};
jH=function(W,O,b){_.R8.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=W;this.scrollTimer_=new _.ie(50);this.JSC$9297_eventHandler_=new _.be(this);this.scrollDelta_=new _.Kw;this.containerIsActuallyContent_=W.tagName==="BODY"||W.tagName==="HTML";this.containerBounds_=gq2(W);this.containerIsActuallyContent_&&(W=_.Sp(),this.containerBounds_.height=W.height,this.containerBounds_.width=W.width);this.margin_=O||0;if(O){if(O=this.containerBounds_.clone(),W=this.margin_){var T=
Math.min(W,O.height*.25);O.top+=T;O.height-=2*T;W=Math.min(W,O.width*.25);O.left+=W;O.width-=2*W}}else O=this.containerBounds_;this.scrollBounds_=O;b||this.JSC$9297_eventHandler_.listen(_.g4(this.containerNode_),"mousemove",this.JSC$9299_onMouseMove);this.JSC$9297_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9299_onTick_)};
_.TD=function(W){this.mechanism=W};
Lq=function(W,O){this.JSC$9395_key_=W;this.JSC$9395_value_=O};
QdX=function(W){if(W>=55296&&W<=57343||W>1114111)return"\ufffd";W in oqi&&(W=oqi[W]);var O="";W>65535&&(W-=65536,O+=String.fromCharCode(W>>>10&1023|55296),W=56320|W&1023);return O+=String.fromCharCode(W)};
kNh=function(W,O){return W<O?1:-1};
BYP=function(){return function(W){return W.charAt(1)==="#"?W.charAt(2)==="X"||W.charAt(2)==="x"?QdX(parseInt(W.substr(3),16)):QdX(parseInt(W.substr(2),10)):sdX[W.slice(1,-1)]}};
xcX=function(W){return W.slice(1,W.length-1).trim().replace(rse,function(O){return Dci[O]||" "})};
dl=function(W){return W===32||W===9};
hC=function(W,O){return O<W.length?W.charCodeAt(O):-1};
z9O=function(W){for(;W;){if(W._lastLineBlank)return!0;var O=W.type;if(O==="list"||O==="item")W=W._lastChild;else break}return!1};
SH=function(W){if(CUT.test(W)){var O=1,b=0,T=0;for(W[b]=="|"&&b++;b<W.length;){switch(W[b]){case "|":T=1;break;case " ":break;case "\t":break;default:T&&(T=0,O++)}b++}return qQh.test(W)?-O:O}return 0};
nq8=function(W){return W=="table"||W=="row"||W=="cell"};
fL8=function(){return new Zu("document",[[1,1],[0,0]])};
GNO=function(){};
Is=function(){var W={safe:!1};W=W||{};W.softbreak=W.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=W};
NYT=function(W,O){var b="";if(W)if(W=W.toLowerCase(),W===" "||HDO.test(W))b="space";else if(t6q.test(W))b="esc";else if(W.length==1){if(!O||$c1.test(W))b=W}else b=V68.test(W)?W.replace("arrow",""):W=="multiply"?"*":W;return b};
cs8=function(W,O){var b=W.hasModifiers;if(O.key)b=NYT(O.key,b);else if(O.detail&&O.detail.key)b=NYT(O.detail.key,b);else{b=O.keyIdentifier;var T="";b&&(b in M6Q?T=M6Q[b]:uv8.test(b)?(b=parseInt(b.replace("U+","0x"),16),T=String.fromCharCode(b).toLowerCase()):T=b.toLowerCase());(b=T)||(b=O.keyCode,T="",Number(b)&&(b>=65&&b<=90?T=String.fromCharCode(32+b):b>=112&&b<=123?T="f"+(b-112+1):b>=48&&b<=57?T=String(b-48):b>=96&&b<=105?T=String(b-96):T=Jsh[b]),b=T);b=b||""}return b===W.key&&(!W.hasModifiers||
!!O.shiftKey===!!W.shiftKey&&!!O.ctrlKey===!!W.ctrlKey&&!!O.altKey===!!W.altKey&&!!O.metaKey===!!W.metaKey)};
ys1=function(W){return W.length===1?{combo:W,key:W,event:"keydown"}:W.split("+").reduce(function(O,b){var T=b.split(":");b=T[0];T=T[1];b in FN1?(O[FN1[b]]=!0,O.hasModifiers=!0):(O.key=b,O.event=T||"keydown");return O},{combo:W.split(":").shift()})};
WDq=function(W){return W.trim().split(" ").map(function(O){return ys1(O)})};
OfE=function(W,O){if(W&&W.fn){var b=W.fn;W.fn=function(){try{b.apply(this,arguments)}catch(T){if(T instanceof as)console.warn("Argument '"+T.arg+"'"+(O?" for method '"+O+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw T;}}}return W};
ifq=function(){var W=_.PD.apply(0,arguments);return W.length===0?function(O){return O}:W.length===1?W[0]:W.reduce(function(O,b){return function(){return O(b.apply(null,_.PG(_.PD.apply(0,arguments))))}})};
bf1=function(){var W=_.PD.apply(0,arguments);return function(O){return function(b,T){b=O(b,T);var L=function(){throw Error("Ae");},h={getState:b.getState,
dispatch:function(Z){return L.apply(null,[Z].concat(_.PG(_.PD.apply(1,arguments))))}};
T=W.map(function(Z){return Z(h)});
L=ifq.apply(null,_.PG(T))(b.dispatch);return Object.assign({},b,{dispatch:L})}}};
LD2=function(W){Object.keys(W).forEach(function(O){var b=W[O];if(typeof b(void 0,{type:j61})==="undefined")throw Error("Be`"+O);if(typeof b(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+TQ8()})==="undefined")throw Error("Ce`"+O+"`"+j61);})};
m1=function(W){for(var O=Object.keys(W),b={},T=0;T<O.length;T++){var L=O[T];typeof W[L]==="function"&&(b[L]=W[L])}var h=Object.keys(b);try{LD2(b)}catch(a){var Z=a}return function(a,m){a=a===void 0?{}:a;if(Z)throw Z;for(var w=!1,A={},X=0;X<h.length;X++){var l=h[X],p=a[l],K=(0,b[l])(p,m);if(typeof K==="undefined")throw a=m&&m.type,Error("De`"+(a?'"'+String(a)+'"':"(unknown type)")+"`"+l);A[l]=K;w=w||K!==p}return(w=w||h.length!==Object.keys(a).length)?A:a}};
d$X=function(W,O,b){function T(){if(A)throw Error("Ee");return a}
function L(p){if(typeof p!=="function")throw Error("Fe`"+typeof p);if(A)throw Error("Ge");var K=!0;w===m&&(w=m.slice());w.push(p);return function(){if(K){if(A)throw Error("He");K=!1;w===m&&(w=m.slice());var k=w.indexOf(p);w.splice(k,1);m=null}}}
function h(p){if(typeof p!=="object"||p===null)var K=!1;else{for(K=p;Object.getPrototypeOf(K)!==null;)K=Object.getPrototypeOf(K);K=Object.getPrototypeOf(p)===K}if(!K)throw Error("Ie`"+typeof p);if(typeof p.type==="undefined")throw Error("Je");if(A)throw Error("Ke");try{A=!0,a=Z(a,p)}finally{A=!1}K=m=w;for(var k=0;k<K.length;k++)(0,K[k])();return p}
if(typeof O==="function"&&typeof b==="function"||typeof b==="function"&&typeof arguments[3]==="function")throw Error("Le");typeof O==="function"&&typeof b==="undefined"&&(b=O,O=void 0);if(typeof b!=="undefined"){if(typeof b!=="function")throw Error("Me`"+typeof b);return b(d$X)(W,O)}if(typeof W!=="function")throw Error("Ne`"+typeof W);var Z=W,a=O,m=[],w=m,A=!1;h({type:j61});var X={},l=(X.dispatch=h,X.subscribe=L,X.getState=T,X.replaceReducer=function(p){if(typeof p!=="function")throw Error("Oe`"+
typeof p);Z=p;h({type:h61});return l},X[S3i]=function(){var p={};
return p.subscribe=function(K){function k(){K.next&&K.next(T())}
if(typeof K!=="object"||K===null)throw new TypeError("Pe`"+typeof K);k();return{unsubscribe:L(k)}},p[S3i]=function(){return this},p},X);
return l};
Zfe=function(W){function O(){L&&(L=!1,W());h&&T()}
function b(){requestAnimationFrame(O)}
function T(){var a=Date.now();if(L){if(a-Z<2)return;h=!0}else L=!0,h=!1,setTimeout(b,20);Z=a}
var L=!1,h=!1,Z=0;return T};
YJ=function(W){return typeof W==="number"?W:parseFloat(W)||0};
IbE=function(W){return _.PD.apply(1,arguments).reduce(function(O,b){return O+YJ(W["border-"+b+"-width"])},0)};
_.v=function(W,O){O=Q0(oQ(O));W.innerHTML=O};
Y3q=function(W){var O=abX;O||(O=m$X(),O=abX=_.PQ.transpose(O));O=O[W];return typeof O==="string"?O:_.Ek(W)};
Es2=function(W){W=String(W).toLowerCase();var O=m$X()[W];return typeof O==="string"?O:_.wl(W)};
wkE=function(W){W=W.toLowerCase();W=m$X()[W];return typeof W==="string"?W:null};
m$X=function(){if(!A$P){for(var W=Object.assign({},XkX),O=_.S(U$Q),b=O.next();!b.done;b=O.next())b=b.value,W[b.toLowerCase()]=b;A$P=W}return A$P};
PMh=function(W,O){var b=window.customElements;return b&&b.get(W)||lbX[W]===!0?2:O.name==="HTMLUnknownElement"?1:O.name==="HTMLElement"&&e6P.test(W)?3:0};
KDi=function(W,O){switch(O){case "innerHTML":return pkO(W)===1?2:null;case "textContent":return W=pkO(W),W===1||W===6?1:null;default:var b,T;return(T=(b=R61[W.localName])==null?void 0:b[O])!=null?T:null}};
pkO=function(W){var O=W.localName,b=PMh(O,W.constructor);switch(b){case 0:case 1:return vsh(O,W);case 3:case 2:return 1;default:_.SB(b,"got an unknown element classification")}};
vsh=function(W,O){var b=Object.hasOwnProperty.call(gsX,W)?gsX[W]:null;return b!==null?b:Object.hasOwnProperty.call(osX,W)&&O instanceof SVGElement?osX[W]:null};
Q6X=function(W,O){return O};
s6T=function(W){return(W=W.split(kRX,2))?{url:W[0],metadata:W[1]}:null};
r$1=function(W){var O=String(W.url).replace(BQe,encodeURIComponent);if(W=W.metadata){BQe.lastIndex=0;if(BQe.test(W))return null;O+=" "+W}return O};
CM1=function(W){function O(w){var A=w.localName;if(!w.getAttribute("is")&&PMh(A,w.constructor)===2){var X;return(X=m)!=null?X:m=document.createElement("polyresinuncustomized")}(w=a[A])||(w=a[A]=document.createElement(A));return w}
var b=W.reportHandler||void 0,T=W.safeTypesBridge||D$8,L=/^$/;if(W=W.allowedIdentifierPrefixes){W=_.S(W);for(var h=W.next();!h.done;h=W.next())L=new RegExp(L.source+"|^"+_.x$2(h.value))}b&&b(!1,"initResin",null);var Z=z6e(L,T,b),a={},m=null;return function(w,A,X){var l=w.nodeType;if(l!==Node.ELEMENT_NODE){if(l===Node.TEXT_NODE){A=w.parentElement;X=!A;if(A&&A.nodeType===Node.ELEMENT_NODE){l=A.localName;var p=PMh(l,A.constructor);switch(p){case 0:case 1:A=vsh(l,A);X=A===1||A===6;break;case 3:case 2:X=
!0;break;default:_.SB(p,"got an unknown element classification")}}if(X)return function(q){return""+T(q,"STRING",q)}}return function(q){if(!q&&q!==document.all)return q;
b&&b(!0,"Failed to sanitize "+(w.parentElement&&w.parentElement.nodeName)+" #text node to value "+q,w.parentElement);return AC}}var K=w.localName;
l=O(w);var k=null;switch(X){case "attribute":if(Es2(A)in l)break;return function(q){return q};
case "property":if(A in l){k=KDi(l,A);break}if((p=wkE(A))&&p in l)break;return function(q){return q};
default:_.SB(X,"got an unknown resin type, expected either 'property' or 'attribute'")}var r=X==="attribute"?A.toLowerCase():Y3q(A);k||(k=hAP(K,r,function(q){var f=w.getAttribute(q);return!f||/[\[\{]/.test(q)?null:f}));
return function(q){var f=Uk,M=null;if(!q&&q!==document.all)return q;if(k!=null){var V=Z[k],jQ=V.safeType;M=V.safeReplacement;jQ&&(f=T(q,jQ,Uk));f===Uk&&(V.filterString?(f=String(T(q,"STRING",q)),f=V.filterString(K,r,f)):V.filterRaw&&(f=V.filterRaw(K,r,q,w)),f===M&&(f=Uk))}f===Uk&&(f=M||AC,b&&b(!0,"Failed to sanitize attribute of <"+K+">: <"+K+" "+r+'="'+q+'">',w));return f}}};
z6e=function(W,O,b){return[,{filterRaw:function(T,L,h){return h},
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:q32,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:q32,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:AC,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:nsX,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(T,L,h){h=
String(h).toLowerCase();return IfQ(T,L,h)?h:AC},
safeReplacement:AC,safeType:void 0},,{filterRaw:void 0,filterString:function(T,L,h){return W.test(h)?h:AC},
safeReplacement:AC,safeType:"CONSTANT"},{filterRaw:function(T,L,h,Z){if(typeof h==="string")var a=(a=h.match(fbe))?a.map(s6T).filter(Boolean):[];else if(Array.isArray(h))a=h;else return q32;var m=a;a=[];var w=[],A={};if(Array.isArray(m))for(var X=0,l=m.length;X<l;++X){var p=m[X],K=p&&p.url;if(K){var k=O(K,"URL",A);if(k){var r=k!==A;(r?a:w).push({url:r?k:K,metadata:p.metadata})}}}else w.push(m);m=w.length?JSON.stringify(w):null;w=Uk;if(a.length){if(!Array.isArray(a))throw Error();w=a.map(r$1).filter(Boolean).join(" , ")||
Uk}m&&b&&b(!0,"Failed to sanitize attribute value of <"+T+">: <"+T+" "+L+'="'+h+'">: '+m,Z);return w===Uk?q32:w},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
GRq=function(W){var O=CM1(W);return function(b,T,L,h){return h||h===document.all?O(b,T,L)(h):h}};
le=function(W,O){function b(){function L(a,m,w){for(m=Reflect.getMetadata("parameters",a)||[];m.length<=w;)m.push(null);m[w]=m[w]||[];m[w].push(Z);Reflect.defineMetadata(m,a);return a}
var h=_.PD.apply(0,arguments);if(this instanceof b)return T.apply(this,h),this;var Z=new (Function.prototype.bind.apply(b,[null].concat(_.PG(h))));L.annotation=Z;return L}
var T=Hf1(O);b.prototype.toString=function(){return"@"+W};
return b.annotationCls=b};
Hf1=function(W){return function(){var O=_.PD.apply(0,arguments),b=this;W.forEach(function(T,L){L=O[L];if(Array.isArray(T))b[T[0]]=L&&L!==void 0?L:T[1];else for(var h in T)b[h]=L&&L[h]!==void 0?L[h]:T[h]})}};
tb2=function(W){return W!==void 0&&W!==null};
eH=function(W){if(typeof W==="string")return W;if(W===void 0||W===null)return""+W;if(W.overriddenName)return W.overriddenName;if(W.name)return W.name;W=W.toString();var O=W.indexOf("\n");return O===-1?W:W.substring(0,O)};
$$T=function(W){W.__forward_ref__=$$T;W.toString=function(){return eH(this())};
return W};
Pb=function(W){return typeof W==="function"&&W.hasOwnProperty("__forward_ref__")&&W.__forward_ref__===$$T?W():W};
VbO=function(W){return W?W.map(function(O){return new (Function.prototype.bind.apply(O.type.annotationCls,[null].concat(_.PG(O.args?O.args:[]))))}):[]};
NQX=function(W){for(var O=[],b=0;b<W.length;++b){if(O.indexOf(W[b])>-1){O.push(W[b]);break}O.push(W[b])}return O};
MbQ=function(W){return W.length>1?" ("+NQX(W.slice().reverse()).map(function(O){return eH(O.token)}).join(" -> ")+")":""};
J$Q=function(W,O,b,T){if(T){var L=Error("We``"+(T instanceof Error?T.message:T));L.ngOriginalError=T}else L=Error();L.addKey=uSE;L.keys=[O];L.injectors=[W];L.constructResolvingMessage=b;L.message=L.constructResolvingMessage();L.ngOriginalError=T;return L};
uSE=function(W,O){this.injectors.push(W);this.keys.push(O);this.message=this.constructResolvingMessage()};
c$E=function(W,O){return J$Q(W,O,function(){return"No provider for "+eH(this.keys[0].token)+"!"+MbQ(this.keys)})};
FDX=function(W,O){return J$Q(W,O,function(){return"Cannot instantiate cyclic dependency!"+MbQ(this.keys)})};
y$h=function(W,O,b){return J$Q(W,b,function(){var T=eH(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+T+"!"+MbQ(this.keys)+"."},O)};
WBh=function(W,O){for(var b=[],T=0,L=O.length;T<L;T++){var h=O[T];h&&h.length!=0?b.push(h.map(eH).join(" ")):b.push("?")}return Error("$e`"+eH(W)+"`"+b.join(", ")+"`"+eH(W))};
daE=function(W){var O=void 0,b=void 0;if(W&&W.useClass!==void 0){O=W.useClass;var T=Pb(W.useClass);var L=O4q.factory(T);T=i4Q(T)}else W&&W.useExisting!==void 0?(L=function(h){return h},T=[b4E(pq.get(Pb(W.useExisting)))]):W&&W.useFactory!==void 0?(L=W.useFactory,T=jBX(W.useFactory,W.deps)):(b=W.useValue,L=function(){return W.useValue},T=T7X);
return new LBQ(L,T,O,b)};
SiO=function(W){return new hue(pq.get(Pb(W.provide)),[daE(W)],W.multi)};
IAO=function(W){W=Z41(W,[]).map(SiO);for(var O=new Map,b=0;b<W.length;b++){var T=W[b],L=O.get(T.key.id);if(L){if(T.multiProvider!==L.multiProvider)throw Error("bf`"+L+"`"+T);if(T.multiProvider)for(var h=0;h<T.resolvedFactories.length;h++)L.resolvedFactories.push(T.resolvedFactories[h]);else O.set(T.key.id,T)}else L=void 0,T.multiProvider?L=new hue(T.key,T.resolvedFactories.slice(),T.multiProvider):L=T,O.set(T.key.id,L)}return Array.from(O.values())};
Z41=function(W,O){W.forEach(function(b){if(b instanceof aAe)O.push({provide:b,useClass:b});else if(b&&typeof b=="object"&&b.provide!==void 0)O.push(b);else if(b instanceof Array)Z41(b,O);else throw Error("Ze`"+b);});
return O};
jBX=function(W,O){if(O){var b=O.map(function(T){return[T]});
return O.map(function(T){return maQ(W,T,b)})}return i4Q(W)};
i4Q=function(W){var O=O4q.parameters(W);if(!O)return[];if(O.some(function(b){return b==null}))throw WBh(W,O);
return O.map(function(b){return maQ(W,b,O)})};
maQ=function(W,O,b){var T=null,L=!1;if(!Array.isArray(O))return O instanceof Yih?ElX(O.token,L,null):ElX(O,L,null);for(var h=null,Z=0;Z<O.length;++Z){var a=O[Z];if(a instanceof aAe)T=a;else if(a instanceof Yih)T=a.token;else if(a instanceof w1X)L=!0;else if(a instanceof ANq||a instanceof X1P)h=a}T=Pb(T);if(T!=null)return ElX(T,L,h);throw WBh(W,b);};
ElX=function(W,O,b){return new UaO(pq.get(Pb(W)),O,b)};
lAE=function(W,O){for(var b=Array(W.providers.length),T=0;T<W.providers.length;++T){var L=T;if(T<0||T>=W.providers.length)throw Error("af`"+T);b[L]=O(W.providers[T])}return b};
euT=function(W){return typeof W==="function"&&O4q.parameters(W).every(function(O){return!!O})};
RuE=function(W){var O=PQ8;p1P.get(W)||p1P.set(W,new O);return p1P.get(W)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(W)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,O){var b,T;if(W.contains(O))return!0;W=_.Rs(W).querySelectorAll("content,slot");for(b=0;b<W.length;++b){var L=_.Rs(W[b]).getDistributedNodes();for(T=0;T<L.length;++T)if(L[T].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(L[T],O))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){W.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W)&&W.preventDefault();W.targetTouches&&(W=W.targetTouches[0],KB8=W.pageX,vl8=W.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 W=0,O=Kq.length;W<O;W++)document.addEventListener(Kq[W],_._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 W=0,O=Kq.length;W<O;W++)document.removeEventListener(Kq[W],_._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(W){var O=_.Rs(W).rootTarget;W.type!=="touchmove"&&glO!==O&&(glO=O,ole=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Rs(W).path));if(!ole.length)return!0;if(W.type==="touchstart")return!1;W=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(W);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(ole,W.deltaX,W.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){for(var O=[],b=W.indexOf(QB8),T=0;T<=b;T++)if(W[T].nodeType===Node.ELEMENT_NODE){var L=W[T],h=L.style;h.overflow!=="scroll"&&h.overflow!=="auto"&&(h=window.getComputedStyle(L));h.overflow!=="scroll"&&h.overflow!=="auto"||O.push(L)}return O};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W,O,b){if(O||b)for(var T=Math.abs(b)>=Math.abs(O),L=0;L<W.length;L++){var h=W[L];if(T?b<0?h.scrollTop>0:h.scrollTop<h.scrollHeight-h.clientHeight:O<0?h.scrollLeft>0:h.scrollLeft<h.scrollWidth-h.clientWidth)return h}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(W){var O={deltaX:W.deltaX,deltaY:W.deltaY};"deltaX"in W||("wheelDeltaX"in W&&"wheelDeltaY"in W?(O.deltaX=-W.wheelDeltaX,O.deltaY=-W.wheelDeltaY):"wheelDelta"in W?(O.deltaX=0,O.deltaY=-W.wheelDelta):"axis"in W?(O.deltaX=W.axis===1?W.detail:0,O.deltaY=W.axis===2?W.detail:0):W.targetTouches&&(W=W.targetTouches[0],O.deltaX=KB8-W.pageX,O.deltaY=vl8-W.pageY));return O};
kpP=function(W){this.element=W;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
B7X=function(W){this.element=W;this.color=window.getComputedStyle(W).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");_.Rs(this.waveContainer).appendChild(this.wave);sB1(this)};
vb=function(W,O){for(var b in W)if(b.toLowerCase()===O.toLowerCase())return W[b]};
rN1=function(W,O){for(var b in W)if(b.toLowerCase()===O.toLowerCase()){delete W[b];break}};
xaX=function(W){W=_.PQ.clone(W);for(var O=0;O<Da8.length;++O){var b=Da8[O],T=vb(W,b);T&&(W["X-Goog-Upload-Header-"+b]=T,rN1(W,b))}return W};
zu1=function(W){W=_.PQ.clone(W);rN1(W,"X-Goog-Upload-Status")};
qi1=function(W){return CQq.some(function(O){return O.test(W)})};
H4E=function(W,O){var b;var T=(b=W.formContent)==null?void 0:b.locale;b=T==null?void 0:T.split("-")[0];T=T&&nli.includes(T)?T:b&&nli.includes(b)?b:void 0;T=(T!=null?T:"en").replaceAll("-","_").toLowerCase();var L;W=((L=W.initializationData)==null?0:L.useNightlyRelease)?"nightly":"live";var h;return(O==null?0:(h=O.getEnableAlohaBinarySplit)==null?0:h.call(O))?_.yN(fAE,W):_.yN(GpX,W,T)};
$a8=function(W,O,b,T){if(tm8)return tm8;var L=H4E(W,T);return tm8=O.feedbackV2GlobalObject?Promise.resolve(O.feedbackV2GlobalObject):new Promise(function(h,Z){var a=_.AV("SCRIPT");_.fz(a,L);a.onload=function(){O.feedbackV2GlobalObject?h(O.feedbackV2GlobalObject):Z(Error("ef"))};
a.onerror=function(){Z(Error("ff`"+L.toString()))};
b.body.appendChild(a)})};
N7X=function(W,O,b,T){if(VmE)return VmE;var L=H4E(W,T);return VmE=O.feedbackV2GlobalObject?Promise.resolve(O.feedbackV2GlobalObject):new Promise(function(h,Z){var a=_.AV("SCRIPT");_.fz(a,L);a.onload=function(){O.feedbackV2GlobalObject?h(O.feedbackV2GlobalObject):Z(Error("ef"))};
a.onerror=function(){Z(Error("ff`"+L.toString()))};
b.body.appendChild(a)})};
Mmq=function(W,O,b,T,L){L=L===void 0?!0:L;var h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:return h=Date.now(),_.Y(A,$a8(W,b,T,O),2);case 2:Z=A.yieldResult;if(!(L||((m=W.initializationData)==null?0:m.useNightlyRelease)||((w=W.initializationData)==null?0:w.isLocalServer))){a=Z.initializeFeedbackClient(W,h,O);A.jumpTo(3);break}return _.Y(A,Z.initializeFeedbackClientAsync(W,h,O),4);case 4:a=A.yieldResult;case 3:return a.initiateAloha(),A.return(a)}})};
u18=function(W,O,b,T){var L,h,Z;return _.I(function(a){if(a.nextAddress==1)return L=Date.now(),_.Y(a,N7X(W,b,T.document,O),2);if(a.nextAddress!=3)return h=a.yieldResult,_.Y(a,h.initializeFeedbackClientAsync(W,L,O,T),3);Z=a.yieldResult;Z.initiateAloha();return a.return(Z)})};
JN1=function(W,O,b){var T=!0;T=T===void 0?!0:T;var L,h,Z,a,m,w,A,X,l,p;return _.I(function(K){L=b||_.i1;if((h=O)==null?0:(a=(Z=h).getEnableAlohaBinarySplit)==null?0:a.call(Z)){m=L;if(m.isFormOpened)throw w=Error("gf"),w.name="DuplicateFormError",w;m.isFormOpened=!0;W.callbacks=W.callbacks||{};A=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(k){m.isFormOpened=!1;A(k)};
try{return K.return(u18(W,O,m,L))}catch(k){throw m.isFormOpened=!1,k;}}else{X=L;if(X.isFormOpened)throw l=Error("gf"),l.name="DuplicateFormError",l;X.isFormOpened=!0;W.callbacks=W.callbacks||{};p=W.callbacks.onClose||function(){};
W.callbacks.onClose=function(k){X.isFormOpened=!1;p(k)};
try{return K.return(Mmq(W,O,X,L.document,T))}catch(k){throw X.isFormOpened=!1,k;}}_.aD(K)})};
OOE=function(W,O){return _.I(function(b){return b.return(new Promise(function(T){var L=cNX(O!=null?O:"")+"/aloha_form_properties?productId="+W;FBQ(L,function(h){h=h.target;var Z=null;try{var a=JSON,m=a.stringify;if(h.JSC$7800_xhr_){var w=h.JSC$7800_xhr_.responseText;w.indexOf(")]}'\n")==0&&(w=w.substring(5));var A=(0,_.gl)(w)}else A=void 0;Z=b01(yNQ,m.call(a,A))}catch(X){m=new yNQ,A=WHX(),A=_.os(A,13,!1),A=_.os(A,14,!0),A=_.os(A,15,!0),A=_.os(A,20,!1),Z=_.jL(m,1,A)}T(Z)},"GET","",{},2E3,!0)}))})};
cNX=function(W){return qi1(W)?W:"https://www.google.com/tools/feedback"};
T9e=function(W){W=W.match(new RegExp(iOi,"gi"))||[];W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;a:{var b=_.S(bOq);for(var T=b.next();!T.done;T=b.next())if(T.value.test(O)){b=!1;break a}b=!0}if(!b)a:{b=_.S(jKi);for(T=b.next();!T.done;T=b.next())if(T.value.test(O)){b=!0;break a}b=!1}if(b)return!0}return!1};
LH8=function(W){switch(W){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"}};
hfq=function(W){if(window.crypto&&window.crypto.getRandomValues)try{var O=Array(W),b=new Uint8Array(W);window.crypto.getRandomValues(b);for(var T=0;T<O.length;T++)O[T]=b[T];return O}catch(h){}O=Array(W);for(b=0;b<W;b++){T=Date.now();for(var L=0;L<T%23;L++)O[b]=Math.random();O[b]=Math.floor(Math.random()*256)}if(dnX)for(b=1,T=0;T<dnX.length;T++)O[b%W]^=O[(b-1)%W]/4^dnX.charCodeAt(T),b++;return O};
Q3=function(W){W=hfq(W);for(var O=[],b=0;b<W.length;b++)O.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[b]&63));return O.join("")};
ZOi=function(W){W&&_.BZ("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:SRE,clientScreenNonce:W})};
IBP=function(W){return _.Cv("client-screen-nonce-store",{})[W===void 0?0:W]};
aBX=function(W,O){O=O===void 0?0:O;var b=_.Cv("client-screen-nonce-store");b||(b={},_.zT("client-screen-nonce-store",b));b[O]=W};
mnO=function(W){W=W===void 0?0:W;return W===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+W};
YRe=function(W){return _.Cv(mnO(W===void 0?0:W))};
_.sk=function(W){return(W=YRe(W===void 0?0:W))?new _.kJ({veType:W,youtubeData:void 0,jspbYoutubeData:void 0}):null};
EHO=function(){var W=_.Cv("csn-to-ctt-auth-info");W||(W={},_.zT("csn-to-ctt-auth-info",W));return W};
wx2=function(){return Object.values(_.Cv("client-screen-nonce-store",{})).filter(function(W){return W!==void 0})};
_.Bb=function(W){W=IBP(W===void 0?0:W);if(!W&&!_.qC("USE_CSN_FALLBACK",!0))return null;W||(W="UNDEFINED_CSN");return W?W:null};
XxE=function(W){for(var O=_.S(Object.values(AY1)),b=O.next();!b.done;b=O.next())if(_.Bb(b.value)===W)return!0;return!1};
UnO=function(W,O,b){var T=EHO();(b=_.Bb(b))&&delete T[b];O&&(T[W]=O)};
rl=function(W){return EHO()[W]};
_.Du=function(W,O,b,T){b=b===void 0?0:b;if(W!==IBP(b)||O!==_.Cv(mnO(b)))if(UnO(W,T,b),aBX(W,b),_.zT(mnO(b),O),O=function(){setTimeout(function(){ZOi(W)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(O)}catch(L){O()}else O()};
lB8=function(W,O){O=O===void 0?"":O;var b=[],T;for(T in W)if(W.hasOwnProperty(T)){var L=O!==""?O+"."+T:T;typeof W[T]==="object"?b.push.apply(b,_.PG(lB8(W[T],L))):b.push([L,W[T]])}b.sort();return b};
_.PEE=function(W){var O=_.PD.apply(1,arguments);if(!xJ(W)||O.some(function(T){return!xJ(T)}))throw Error("hf");
O=_.S(O);for(var b=O.next();!b.done;b=O.next())efX(W,b.value)};
efX=function(W,O){for(var b in O)if(xJ(O[b])){if(b in W&&!xJ(W[b]))throw Error("jf");b in W||(W[b]={});efX(W[b],O[b])}else if(pxP(O[b])){if(b in W&&!pxP(W[b]))throw Error("kf");b in W||(W[b]=[]);Rfq(W[b],O[b])}else W[b]=O[b];return W};
Rfq=function(W,O){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,xJ(b)?W.push(efX({},b)):pxP(b)?W.push(Rfq([],b)):W.push(b);return W};
xJ=function(W){return typeof W==="object"&&!Array.isArray(W)};
pxP=function(W){return typeof W==="object"&&Array.isArray(W)};
vHX=function(W){for(var O=_.S(Object.entries(KHX)),b=O.next();!b.done;b=O.next())if(b=_.S(b.value),b.next(),b=b.next().value,b==="SLI_STATUS_"+W)return b;return"SLI_STATUS_UNKNOWN"};
_.zD=function(W,O,b,T){return gHE(W,O,function(){return new _.oH2(W,O,b,T)})};
_.QK1=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
kyQ=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Cq=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
sKX=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
B9X=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
rY8=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
zfX=function(W){W&&(W.dataset?W.dataset[Dn8()]="true":_.HD([_.cG(xnh)],W,"data-loaded","true".toString()))};
CE8=function(W){return W?W.dataset?W.dataset[Dn8()]:W.getAttribute("data-loaded"):null};
Dn8=function(){return qR8.loaded||(qR8.loaded="loaded".replace(/\-([a-z])/g,function(W,O){return O.toUpperCase()}))};
_.qp=function(W,O,b){nH1(W,O,b===void 0?null:b)};
_.GyE=function(W,O){W&&O&&(W=""+_.d1(O),(W=fBQ[W])&&_.V4P(W))};
nH1=function(W,O,b){b=b===void 0?null:b;var T=_.HO8(W),L=document.getElementById(T),h=L&&CE8(L),Z=L&&!h;h?O&&O():(O&&(h=_.de(T,O),O=""+_.d1(O),fBQ[O]=h),Z||(L=to2(W,T,function(){CE8(L)||(zfX(L),_.NE8(T),_.Zp(function(){_.uEe(T)},0))},b)))};
to2=function(W,O,b,T){T=T===void 0?null:T;var L=_.AV("SCRIPT");L.id=O;L.onload=function(){b&&setTimeout(b,0)};
L.onreadystatechange=function(){switch(L.readyState){case "loaded":case "complete":L.onload()}};
T&&L.setAttribute("nonce",T);_.fz(L,_.o8(W));W=document.getElementsByTagName("head")[0]||document.body;W.insertBefore(L,W.firstChild);return L};
_.HO8=function(W){var O=document.createElement("a");vD(O,W);return"js-"+nq(O.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
$nX=function(W){var O=_.Cv("INNERTUBE_HOST_OVERRIDE");O&&(W=String(O)+String(_.fq(W)));return W};
VoX=function(W){var O={};_.e("json_condensed_response")&&(O.prettyPrint="false");return W=wB1(W,O)};
_.GD=function(W){return yP(W)?"same-origin":"include"};
_.Hb=function(W){return yP(W)?"same-origin":"cors"};
tC=function(W,O,b){b=b===void 0?{}:b;W={method:O===void 0?"POST":O,mode:_.Hb(W),credentials:_.GD(W)};O={};for(var T=_.S(Object.keys(b)),L=T.next();!L.done;L=T.next())L=L.value,b[L]&&(O[L]=b[L]);Object.keys(O).length>0&&(W.headers=O);return W};
_.$J=function(W,O){O=O===void 0?{}:O;return"service:"+W+"/"+Object.keys(O).sort().map(function(b){return b+":"+O[b]}).join("/")};
N9q=function(W){var O,b,T,L;W=(O=_.P(W,_.V3))==null?void 0:(b=O.watchEndpointSupportedOnesieConfig)==null?void 0:(T=b.html5PlaybackOnesieConfig)==null?void 0:(L=T.commonConfig)==null?void 0:L.url;if(!W)return[];O=new _.Np(W);return O.JSC$8032_domain_?["https://"+O.JSC$8032_domain_+"/generate_204"]:[]};
_.JYX=function(){return Mo8()||lui()||uGX&&Dp("version/")?!0:_.Cv("EOM_VISITOR_DATA")?!1:!0};
cYP=function(W){var O=W.docid||W.video_id||W.videoId||W.id;if(O)return O;O=W.raw_player_response;O||(W=W.player_response)&&(O=JSON.parse(W));return O&&O.videoDetails&&O.videoDetails.videoId||null};
FHe=function(W){return W.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Mp=function(W){return!isNaN(Number(W))&&!_.Zi(W)};
_.JC=function(W,O,b,T){T=T===void 0?!0:T;var L=_.Cv("VALID_SESSION_TEMPDATA_DOMAINS",[]),h=_.cU(window.location.href);h&&L.push(h);h=_.cU(W);if(_.Vh(L,h)||!h&&_.LE(W,"/"))if(L=document.createElement("a"),vD(L,W),W=L.href)if(W=_.fq(W),W=_.ue(W))T&&!O.csn&&(O.itct||O.ved)&&(O=Object.assign({csn:_.Bb()},O)),b?(b=parseInt(b,10),isFinite(b)&&b>0&&yYi(W,O,b)):yYi(W,O)};
OWE=function(W){var O=_.Cv("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.cU(window.location.href);b&&O.push(b);b=_.cU(W);if(!(_.Vh(O,b)||!b&&_.LE(W,"/")))return null;W=_.fq(W);(W=_.ue(W))?(W=WO8(W),W=(W=_.Xq.get(W,void 0)||null)?_.VP(W):{}):W=null;return W};
yYi=function(W,O,b){W=WO8(W);O=O?_.ET(O):"";b=b||5;_.JYX()&&_.UT(W,O,b)};
WO8=function(W){for(var O=_.S(iWX),b=O.next();!b.done;b=O.next())W=_.cb(W,b.value);return"ST-"+nq(W).toString(36)};
bW2=function(W,O){W.commandMetadata&&_.P(W.commandMetadata,_.F9)&&_.P(W.commandMetadata,_.F9).url&&(W=_.NC(_.P(W.commandMetadata,_.F9).url).adurl)&&_.XBe(W)&&_.JC(_.fq(W),{encoded_ad_playback_context:O})};
_.jn8=function(W){if(W.requestFullscreen)W=W.requestFullscreen(void 0);else if(W.webkitRequestFullscreen)W=W.webkitRequestFullscreen();else if(W.mozRequestFullScreen)W=W.mozRequestFullScreen();else if(W.msRequestFullscreen)W=W.msRequestFullscreen();else if(W.webkitEnterFullscreen)W=W.webkitEnterFullscreen();else return Promise.reject(Error("tf"));return W instanceof Promise?W:Promise.resolve()};
_.Wg=function(W){var O;_.ro8(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.y3()==W&&(O=document):O=W;if(O&&(W=_.ro8(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],O))){W.call(O)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.y3=function(){var W=W===void 0?!1:W;var O=_.ro8(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(W)for(;O&&O.shadowRoot;)O=O.shadowRoot.fullscreenElement;return O?O:null};
_.OO=function(W,O){O=O===void 0?!0:O;W.addEventListener("wheel",TNq);W.overscrollConfig={cooldown:O}};
_.iX=function(W){W.overscrollConfig=void 0;W.removeEventListener("wheel",TNq)};
TNq=function(W){var O=W.deltaY,b=W.target,T=null;if(window.Polymer&&window.Polymer.Element){if(b=W.path||W.composedPath&&W.composedPath()){b=_.S(b);for(var L=b.next();!L.done&&(L=L.value,!LOQ(L,O));L=b.next())if(L.overscrollConfig){T=L;break}}}else for(;b&&!LOQ(b,O);){if(b.overscrollConfig){T=b;break}b=b.parentElement}T&&(O=T.overscrollConfig,O.cooldown?(T=W.deltaY,b=O.lastDeltaY||0,O.lastDeltaY=T,L=O.lastStopped||0,b&&L&&b>0==T>0?Math.abs(b)>=Math.abs(T)?(T=L+1200,b=!1):(T=L+600,b=!0):(T=Date.now()+
600,b=!0),T>Date.now()&&(W.preventDefault(),b&&(O.lastStopped=Date.now()))):W.preventDefault())};
LOQ=function(W,O){return O<0&&W.scrollTop>0||O>0&&W.scrollTop<W.scrollHeight-W.clientHeight-1?(W=getComputedStyle(W).overflowY,W=="auto"||W=="scroll"):!1};
_.bX=function(W,O,b,T){T||(T={bubbles:!0,cancelable:!1,composed:!0});b!==null&&b!==void 0&&(T.detail=b);var L=new CustomEvent(O,T);_.e("untrack_fire_custom_event_killswitch")?W.dispatchEvent(L):Eo(function(){return void W.dispatchEvent(L)});
return L};
_.jx=function(W,O,b,T){O=new dVX(O,!(T===void 0||!T),b);_.bX(W,"yt-action",O);return O.returnValue};
_.TU=function(W,O,b){return _.jx(W,O,b,!0)};
_.LV=function(W,O,b){return _.jx(W,O,b)[0]};
_.Sx=function(W,O,b,T){O&&O.length&&O.forEach(function(L){var h=sx8(L);h&&(_.e("handle_service_request_actions")&&L.commandMetadata&&L.commandMetadata.webCommandMetadata&&L.commandMetadata.webCommandMetadata.sendPost?_.da(b?b:W,[L]):_.TU(W,h,[L,b,T]))})};
_.da=function(W,O){var b=[W];O&&b.push.apply(b,O);O=_.jx(W,"yt-service-request",b);return O.length>0&&(O=O[0],_.bX(W,"yt-service-request-sent",O),O&&O.ajaxPromise)?(O.ajaxPromise.then(function(T){_.bX(W,"yt-service-request-completed",T)},function(T){_.bX(W,"yt-service-request-error",{error:T,
params:b})},W),O.ajaxPromise):_.ZM()};
_.a5=function(W,O){if(_.e("handle_service_request_actions"))_.Sx(O,W,O);else{W=_.S(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;var T=void 0;((T=_.P(b,_.I5))==null?0:T.commands)?_.a5(_.P(b,_.I5).commands,O):(T=void 0,((T=_.P(b,_.mM))==null?0:T.actions)?_.a5(_.P(b,_.mM).actions,O):(T=void 0,((T=_.P(b.commandMetadata,_.F9))==null?0:T.sendPost)?_.da(O,[b]):_.Sx(O,[b],O)))}}};
_.S$O=function(W,O,b){O=O===void 0?{}:O;typeof O==="function"&&(O={callback:O});b||O._c&&O._c.jsl&&O._c.jsl.h||_.PQ.extend(O,{_c:{jsl:{h:_.Cv("GAPI_HINT_PARAMS")}}});(O.gapiHintOverride||_.Cv("GAPI_HINT_OVERRIDE"))&&(b=_.NC(document.location.href).gapi_jsh)&&_.PQ.extend(O,{_c:{jsl:{h:b}}});hQ1(W,O)};
_.EO=function(W,O,b){O=O===void 0?{}:O;W=(W=W in Y0?Y0[W]:b)||"";b={};for(var T in O){b={key$jscomp$788:b.key$jscomp$788};b.key$jscomp$788=T;var L=function(h){return function(){return String(O[h.key$jscomp$788])}}(b);
W=W.replace(new RegExp("\\$\\{"+b.key$jscomp$788+"\\}","gi"),L);W=W.replace(new RegExp("\\$"+b.key$jscomp$788,"gi"),L)}return W};
_.wa=function(W,O){return ZWX(W in Y0?Y0[W]:{},O)};
ZWX=function(W,O){var b=_.Cv("I18N_PLURAL_RULES");b||(b=function(T){return T==1?"one":"other"});
return(W=W["case"+O]||W[b(O)])?W.replace("#",O.toString()):O+""};
mVX=function(W){var O=I8h(W),b=document.getElementById(O),T=b&&CE8(b);T||b&&!T||(b=a8T(W,O,function(){if(!CE8(b)){zfX(b);_.NE8(O);var L=_.A3(_.uEe,O);_.Zp(L,0)}}))};
a8T=function(W,O,b){var T=document.createElement("link");T.id=O;T.onload=function(){b&&setTimeout(b,0)};
W=_.o8(W);_.tv(T,W,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(T);return T};
I8h=function(W){var O=_.AV("A");vD(O,mj(W));return"css-"+nq(O.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.EBq=function(W){var O=Y$q();W!==O&&(O=_.Xt(),!_.e("web_autonav_allow_off_by_default")&&W||_.UO(0,141,!0),_.UO(0,140,!W),O.save())};
Y$q=function(){var W=_.Xt();return _.e("web_autonav_allow_off_by_default")&&!W.getFlag(141)&&_.Cv("AUTONAV_OFF_BY_DEFAULT")?!1:!W.getFlag(140)};
wyO=function(W,O){var b,T;W=((b=W.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(T=b.videoAuthorizationToken)==null?void 0:T.credentialTransferTokens)||[];for(b=0;b<W.length;++b)if(W[b].scope===O)return W[b].token||void 0};
AEP=function(W){for(var O=0,b=0;b<W.length;b++)O=O*31+W.charCodeAt(b),b<W.length-1&&(O%=0x800000000000);return O%1E5};
_.lX=function(W){return _.GT("ytcsi."+(W||"")+"data_")||XyQ(W)};
_.UVq=function(W){W=_.lX(W);W.metadata||(W.metadata={});return W.metadata};
_.l8E=function(W){W=_.lX(W);W.tick||(W.tick={});return W.tick};
_.eQh=function(W){W=_.lX(W);if(W.gel){var O=W.gel;O.gelInfos||(O.gelInfos={});O.gelTicks||(O.gelTicks={})}else W.gel={gelTicks:{},gelInfos:{}};return W.gel};
_.PBX=function(W){W=_.eQh(W);W.gelInfos||(W.gelInfos={});return W.gelInfos};
pyE=function(W){var O=_.lX(W).nonce;O||(O=Q3(16),_.lX(W).nonce=O);return O};
XyQ=function(W){var O={tick:{},info:{}};_.c3("ytcsi."+(W||"")+"data_",O);return O};
RQQ=function(){var W=_.GT("ytcsi.debug");W||(W=[],_.c3("ytcsi.debug",W),_.c3("ytcsi.reference",{}));return W};
_.vBT=function(W){W=W||"";var O=KO2();if(O[W])return O[W];var b=RQQ(),T={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};b.push(T);return O[W]=T};
gB8=function(W){W=W||"";var O=KO2();O[W]&&delete O[W];var b=RQQ(),T={timerName:W,info:{},tick:{},span:{},jspbInfo:[]};b.push(T);O[W]=T};
KO2=function(){var W=_.GT("ytcsi.reference");if(W)return W;RQQ();return _.GT("ytcsi.reference")};
_.QnO=function(W){return oB8[W]||"LATENCY_ACTION_UNKNOWN"};
rEX=function(W,O,b){b=b===void 0?{}:b;var T=!1;_.qC("ytLoggingEventsDefaultDisabled",!1)&&(T=!0);T=T?null:sm;b=b===void 0?{}:b;var L=Math.round(b.timestamp||(0,_.WO)());_.pB(O,1,L<Number.MAX_SAFE_INTEGER?L:0);L=new khX;if(b.lact)_.pB(L,1,isFinite(b.lact)?b.lact:-1);else if(b.timestamp)_.pB(L,1,-1);else{var h=_.by();_.pB(L,1,isFinite(h)?h:-1)}if(b.sequenceGroup&&!_.e("web_gel_sequence_info_killswitch")){h=b.sequenceGroup;var Z=TGO(h),a=new snq;_.pB(a,2,Z);_.aG(a,1,h);_.jL(L,3,a);b.endOfSequence&&delete BNX[b.sequenceGroup]}_.jL(O,
33,L);(b.sendIsolatedPayload?IQi:aQX)(W,{endpoint:"log_event",payload:O,cttAuthInfo:b.cttAuthInfo,dangerousLogToVisitorSession:b.dangerousLogToVisitorSession},T)};
_.R5=function(){return(_.e("csi_use_time_origin")||_.e("csi_use_time_origin_tvhtml5"))&&_.pV.timeOrigin?Math.floor(_.pV.timeOrigin):_.pV.timing.navigationStart};
_.DVP=function(W,O){_.KV("_start",W,O)};
_.vg=function(W,O){if(!_.e("web_csi_action_sampling_enabled")||!_.lX(O).actionDisabled){var b=_.vBT(O||"");_.PEE(b.info,W);W.loadType&&(b=W.loadType,_.UVq(O).loadType=b);_.PEE(_.PBX(O),W);b=pyE(O);O=_.lX(O).cttAuthInfo;xVX().info(W,b,O)}};
zQX=function(){var W,O,b,T;return((T=_.iq().resolve(_.OT(vZ))==null?void 0:(W=jxX())==null?void 0:(O=W.loggingHotConfig)==null?void 0:(b=O.csiConfig)==null?void 0:b.debugTicks)!=null?T:[]).map(function(L){return Object.values(L)[0]})};
_.KV=function(W,O,b){if(!_.e("web_csi_action_sampling_enabled")||!_.lX(b).actionDisabled){var T=pyE(b),L;if(L=_.e("web_csi_debug_sample_enabled")&&T){(_.iq().resolve(_.OT(vZ))==null?0:jxX())&&!CBX&&(CBX=!0,_.KV("gcfl",(0,_.WO)(),b));var h,Z,a;L=(_.iq().resolve(_.OT(vZ))==null?void 0:(h=jxX())==null?void 0:(Z=h.loggingHotConfig)==null?void 0:(a=Z.csiConfig)==null?void 0:a.debugSampleWeight)||0;if(h=L!==0)b:{h=zQX();if(h.length>0)for(Z=0;Z<h.length;Z++)if(W===h[Z]){h=!0;break b}h=!1}h?(L=AEP(T)%L!==
0,_.lX(b).debugTicksExcludedLogged||(h={},h.debugTicksExcluded=L,_.vg(h,b)),_.lX(b).debugTicksExcludedLogged=!0):L=!1}if(!L){W[0]!=="_"&&q$T(W,b,O);L=_.vBT(b||"");L.tick[W]=O||(0,_.WO)();if(L.callback&&L.callback[W])for(L=_.S(L.callback[W]),h=L.next();!h.done;h=L.next())h=h.value,h();L=_.eQh(b);L.gelTicks&&(L.gelTicks[W]=!0);h=_.l8E(b);L=O||(0,_.WO)();_.e("log_repeated_ytcsi_ticks")?W in h||(h[W]=L):h[W]=L;h=_.lX(b).cttAuthInfo;W==="_start"?xVX().baseline(T,O,h):xVX().tick(W,T,O,h);_.nBq(b);return L}}};
q$T=function(W,O,b){if(_.pV.mark)if(W.startsWith("mark_")||(W="mark_"+W),O&&(W+=" ("+O+")"),b===void 0||_.e("web_csi_disable_alt_time_performance_mark"))_.pV.mark(W);else{b=_.e("csi_use_performance_navigation_timing")?b-_.pV.timeOrigin:b-(_.pV.timeOrigin||_.pV.timing.navigationStart);try{_.pV.mark(W,{startTime:b})}catch(T){}}};
f8q=function(){var W,O=(W=_.pV.getEntriesByType)==null?void 0:W.call(_.pV,"mark");O&&O.forEach(function(b){if(b.name.startsWith("mark_")){var T;(T=_.pV.clearMarks)==null||T.call(_.pV,b.name)}})};
_.GhP=function(){switch(BEX()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.HWE=function(W){var O={},b=function(h,Z,a){Z=Z.match("_rid")?Z.split("_rid")[0]:Z;typeof a==="number"&&(a=JSON.stringify(a));h.requestIds?h.requestIds.push({endpoint:Z,id:a}):h.requestIds=[{endpoint:Z,id:a}]};
W=_.S(Object.entries(W));for(var T=W.next();!T.done;T=W.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;switch(T){case "GetBrowse_rid":b(O,T,L);break;case "GetGuide_rid":b(O,T,L);break;case "GetHome_rid":b(O,T,L);break;case "GetPlayer_rid":b(O,T,L);break;case "GetSearch_rid":b(O,T,L);break;case "GetSettings_rid":b(O,T,L);break;case "GetTrending_rid":b(O,T,L);break;case "GetWatchNext_rid":b(O,T,L);break;case "yt_red":O.isRedSubscriber=!!L;break;case "yt_ad":O.isMonetized=!!L}}return O};
_.tYX=function(W){var O=_.o5("aft",W);if(O)return O;O=_.Cv((W||"")+"TIMING_AFT_KEYS",["ol"]);for(var b=O.length,T=0;T<b;T++){var L=_.o5(O[T],W);if(L)return L}return NaN};
_.$V8=function(W,O){_.c3("ytglobal.timing"+(O||"")+"ready_",W)};
_.o5=function(W,O){if(W=_.l8E(O)[W])return typeof W==="number"?W:W[W.length-1]};
_.nBq=function(W){var O=_.o5("_start",W),b=_.tYX(W),T=!VY1;O&&b&&T&&(L_P(NNe,new MY8(Math.round(b-O),W)),VY1=!0)};
JEX=function(W){XyQ(W);uV8();f8q();W||(_.Cv("TIMING_ACTION")&&_.zT("PREVIOUS_ACTION",_.Cv("TIMING_ACTION")),_.zT("TIMING_ACTION",""))};
_.cE8=function(W){W=W===void 0?{}:W;_.fv(function(){Qw();gB8();JEX();_.$V8(!1);W.cttAuthInfo&&(_.lX().cttAuthInfo=W.cttAuthInfo);_.zT("TIMING_AFT_KEYS",[]);W.isHot?_.k0({loadType:"hot"}):_.k0({loadType:"warm"});_.zT("TIMING_ACTION","");delete _.Cv("TIMING_INFO",{}).yt_lt;_.fv(_.DVP)(W.startTime,void 0)})()};
_.sO=function(W,O,b,T){O=O===void 0?{}:O;_.fv(function(){var L=b?b:W;FOE(L);var h=O.sampleRate;if(!_.e("web_csi_action_sampling_enabled")||h===void 0||h<=1)h=!1;else{var Z=pyE(L);h=AEP(Z)%h!==0}h&&(_.lX(L).actionDisabled=!0);_.vBT(L||"").info.actionType=W;O.cttAuthInfo&&(_.lX(L).cttAuthInfo=O.cttAuthInfo);_.zT(L+"TIMING_ACTION",W);_.fv(_.DVP)(O.startTime,L);h={actionType:T||_.QnO(W)};O.logPreviousAction&&(h.previousAction=_.QnO(_.Cv("TIMING_ACTION")));(Z=_.Bb())&&Z!=="UNDEFINED_CSN"&&(h.clientScreenNonce=
Z);_.k0(h,L);_.$V8(!0,L)})()};
FOE=function(W){_.fv(function(){Qw(W);gB8(W);JEX(W)})()};
yET=function(){_.fv(function(){var W=[],O;for(O in _.GT("ytcsi.".slice(0,-1)))O.endsWith("data_")&&W.push(O.slice(0,-5));W=_.S(W);for(O=W.next();!O.done;O=W.next())FOE(O.value);Qw()})()};
_.OcX=function(W){return _.fv(function(){return _.Wc8("_start",W)})()};
_.k0=function(W,O,b){_.fv(_.vg)(W,O,b===void 0?!1:b)};
_.Bg=function(W,O,b){return _.fv(_.KV)(W,O,b)};
_.Wc8=function(W,O){return _.fv(function(){var b=_.l8E(O);return W in b})()};
bcX=function(W){if(!_.e("universal_csi_network_ticks"))return"";W=_.mp(W)||"";for(var O=Object.keys(ic8),b=0;b<O.length;b++){var T=O[b];if(W.includes(T))return T}return""};
Tq2=function(W){if(!_.e("universal_csi_network_ticks"))return function(){};
var O=ic8[W];return O?(_.ra(O),function(){var b=_.e("universal_csi_network_ticks")?(b=j$1[W])?_.ra(b):!1:!1;return b}):function(){}};
_.ra=function(W,O,b){return _.fv(function(){if(_.Wc8(W,b))return!1;_.Bg(W,O,b);return!0})()};
_.DM=function(W,O,b){_.fv(function(){if(!_.OcX(b)||_.Wc8(W,b))return!1;_.Bg(W,O,b);return!0})()};
_.x0=function(W){return _.fv(_.o5)(W,void 0)};
Qw=function(W){_.OcX(W)&&_.Bg("aa",void 0,W)};
_.Zc8=function(W,O,b,T,L,h,Z,a,m){var w=LcE();a=new _.kJ({veType:O,youtubeData:h,jspbYoutubeData:a});h=zU({},w);L&&(h.cttAuthInfo=L);L={csn:w,pageVe:a.getAsJson()};_.e("expectation_logging")&&m&&m.screenCreatedLoggingExpectations&&(L.screenCreatedLoggingExpectations=m.screenCreatedLoggingExpectations);b&&b.visualElement?(L.implicitGesture={parentCsn:b.clientScreenNonce,gesturedVe:b.visualElement.getAsJson()},Z&&(L.implicitGesture.gestureType=Z)):b&&_.z5(new _.pu("newScreen() parent element does not have a VE - rootVe",
O));T&&(L.cloneCsn=T);W?kG("screenCreated",L,W,h):_.BZ("screenCreated",L,h);L_P(mXX,new d2O(w));CV.clear();hjE.clear();SYe.clear();return w};
qk=function(W,O,b,T,L){IRi(W,O,b,[T],L===void 0?!1:L)};
IRi=function(W,O,b,T,L){L=L===void 0?!1:L;for(var h=zU({cttAuthInfo:rl(O)||void 0},O),Z=_.S(T),a=Z.next();!a.done;a=Z.next()){a=a.value;var m=a.getAsJson();(_.PQ.isEmpty(m)||!m.trackingParams&&!m.veType)&&_.z5(Error("uf"));if(_.e("no_client_ve_attach_unless_shown")){var w=aRX(a,O);if(m.veType&&!hjE.has(w)&&!SYe.has(w)&&!L){if(!_.e("il_attach_cache_limit")||CV.size<1E3){CV.set(w,[W,O,b,a]);return}_.e("il_attach_cache_limit")&&CV.size>1E3&&_.z5(new _.pu("IL Attach cache exceeded limit"))}a=aRX(b,O);
CV.has(a)?m2P(b,O):SYe.set(a,!0)}}T=T.filter(function(A){A.csn!==O?(A.csn=O,A=!0):A=!1;return A});
b={csn:O,parentVe:b.getAsJson(),childVes:_.RG(T,function(A){return A.getAsJson()})};
O==="UNDEFINED_CSN"?nV("visualElementAttached",h,b):W?kG("visualElementAttached",b,W,h):_.BZ("visualElementAttached",b,h)};
EgX=function(W,O,b,T,L){YY8(W,O,b,L)};
YY8=function(W,O,b,T){wT1(b,O);var L=zU({cttAuthInfo:rl(O)||void 0},O);b={csn:O,ve:b.getAsJson(),eventType:1};T&&(b.clientData=T);O==="UNDEFINED_CSN"?nV("visualElementShown",L,b):W?kG("visualElementShown",b,W,L):_.BZ("visualElementShown",b,L)};
AR8=function(W,O,b,T){wT1(b,O);var L=zU({cttAuthInfo:rl(O)||void 0},O);b={csn:O,ve:b.getAsJson(),eventType:4};T&&(b.clientData=T);O==="UNDEFINED_CSN"?nV("visualElementShown",L,b):W?kG("visualElementShown",b,W,L):_.BZ("visualElementShown",b,L)};
XTT=function(W,O,b,T,L){var h=(T=T===void 0?!1:T)?16:8;T=zU({cttAuthInfo:rl(O)||void 0,endOfSequence:T},O);b={csn:O,ve:b.getAsJson(),eventType:h};L&&(b.clientData=L);O==="UNDEFINED_CSN"?nV("visualElementHidden",T,b):W?kG("visualElementHidden",b,W,T):_.BZ("visualElementHidden",b,T)};
lRq=function(W,O,b,T,L){U2P(W,O,b,void 0,T,L)};
U2P=function(W,O,b,T,L){wT1(b,O);T=T||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var h=zU({cttAuthInfo:rl(O)||void 0},O);b={csn:O,ve:b.getAsJson(),gestureType:T};L&&(b.clientData=L);O==="UNDEFINED_CSN"?nV("visualElementGestured",h,b):W?kG("visualElementGestured",b,W,h):_.BZ("visualElementGestured",b,h)};
eje=function(W,O,b,T){var L=zU({cttAuthInfo:rl(O)||void 0},O);b={csn:O,ve:b.getAsJson(),clientData:T};O==="UNDEFINED_CSN"?nV("visualElementStateChanged",L,b):W?kG("visualElementStateChanged",b,W,L):_.BZ("visualElementStateChanged",b,L)};
PZO=function(){var W=hfq(16);for(var O=[],b=0;b<W.length;b++)O.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(W[b]&63));return O.join("")};
nV=function(W,O,b){pTO.push({payloadName:W,payload:b,jspbPayload:void 0,options:O});RjQ||(RjQ=E9X())};
a58=function(W){if(pTO){for(var O=_.S(pTO),b=O.next();!b.done;b=O.next())b=b.value,b.payload&&(b.payload.csn=W.csn,_.BZ(b.payloadName,b.payload,b.options));pTO.length=0}RjQ=0};
aRX=function(W,O){return""+W.getAsJson().veType+W.getAsJson().veCounter+O};
wT1=function(W,O){if(_.e("no_client_ve_attach_unless_shown")){var b=aRX(W,O);hjE.set(b,!0);m2P(W,O)}};
m2P=function(W,O){W=aRX(W,O);CV.has(W)&&(O=CV.get(W)||[],qk(O[0],O[1],O[2],O[3],!0),CV.delete(W))};
zU=function(W,O){_.e("log_sequence_info_on_gel_web")&&(W.sequenceGroup=O);return W};
_.fV=function(W,O,b){_.fv(qk)(void 0,W,O,b)};
_.GU=function(W,O,b){_.fv(IRi)(void 0,W,O,b)};
_.Hg=function(W,O){_.fv(EgX)(void 0,W,O,void 0,void 0,void 0)};
_.t3=function(W,O,b){_.fv(function(){_.$X(O,function(T){AR8(void 0,W,T,b)})})()};
_.$0=function(W,O,b,T){_.fv(function(){_.$X(O,function(L){XTT(void 0,W,L,b,T)})})()};
_.Vw=function(W,O,b){_.fv(lRq)(void 0,W,O,b,void 0)};
_.Nk=function(W,O,b,T){_.fv(U2P)(void 0,W,O,b,T,void 0)};
_.Mk=function(W,O,b){_.fv(eje)(void 0,W,O,b,void 0)};
J3=function(W){return uX.get(W)};
KcO=function(W,O){uX.set(W,O)};
vge=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(W){return(+W^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+W/4).toString(16)})};
kM8=function(W,O){O=O===void 0?{}:O;if(cg&&cg.sample(W,O)){var b=ggi++,T,L;W=new ogT(W,O,performance.now(),b,Q$T,(L=(T=Ft)==null?void 0:T.traceId)!=null?L:b);if(Ft){var h;(h=Ft).children||(h.children=[]);Ft.children.push(W)}b=_.S(cg.spanProcessors);for(T=b.next();!T.done;T=b.next())h=L=void 0,(h=(L=T.value).onSpanStart)==null||h.call(L,W);return Ft=W}};
s$T=function(W){var O;return(O=cg)==null?void 0:O.sample(W,void 0)};
Bq8=function(W){Q$T=vge();cg=W};
rRX=function(W,O,b){if(!W)return O(b);var T=void 0;try{return O(b)}catch(L){throw T="error",L;}finally{W==null||W.close(T)}};
D22=function(W,O){var b=Object.keys(W);W=new _.pu("[Command Handler] "+O,{filteredCommandNames:b,originalCommand:W});_.Dt(W)};
x2e=function(W,O){D22(W,O+" was called but not set")};
zji=function(W){return function(){return new W}};
yw=function(W){return function(){return _.iq().resolve(W)}};
CZO=function(W,O){var b=_.P(W,_.G5);if(b&&(b=O[b.signal]))return b();W=_.S(Object.keys(W));for(b=W.next();!b.done;b=W.next())if(b=b.value,O[b]&&(b=O[b]))return b()};
WS=function(W,O,b,T){return{browseEndpoint:{browseId:W},commandMetadata:{webCommandMetadata:{url:O,rootVe:b,webPageType:T===void 0?"WEB_PAGE_TYPE_BROWSE":T}}}};
qYX=function(W,O,b){var T=O=O===void 0?0:O;b=b===void 0?0:b;var L=b-T;return _.Or(W,"PPSV",void 0,void 0,(L>600?0:L<60||b<=0||T/b>.9)?0:O)};
_.Or=function(W,O,b,T,L){var h="/watch?v="+W;W={videoId:W};O&&(W.playlistId=O,h+="&list="+O);T&&(h+="&pp="+T);L&&(W.startTimeSeconds=L,h+="&t="+L+"s");O={watchEndpoint:W,commandMetadata:{webCommandMetadata:{url:h,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};b&&(O.clickTrackingParams=b);T&&(_.P(O,_.V3).playerParams=T);return O};
ngO=function(W){return{browseEndpoint:{browseId:"VL"+W},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+W,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
fRT=function(W){if(W){var O;if(W){var b=(O=_.P(W.commandMetadata,_.F9))==null?void 0:O.url;O=!(!b||b==="/service_ajax")}else O=!1;if(O)return W;var T;if(W=(T=_.P(W,_.I5))==null?void 0:T.commands)for(T=_.S(W),W=T.next();!W.done;W=T.next())if(W=fRT(W.value))return W}};
_.iv=function(W){return{runs:[{text:W}]}};
GME=function(W,O){return W&&O?{runs:[{text:W,navigationEndpoint:O}]}:void 0};
bv=function(W){return W?_.iv(W):void 0};
_.jK=function(W){return W?{simpleText:W}:void 0};
_.Tc=function(W){var O=W.type;W=W.payload;O={type:O};W!==void 0&&(O.payload=W);return O};
HcE=function(W,O,b){for(var T=Object.assign({},W),L=_.S(Object.keys(O)),h=L.next();!h.done;h=L.next()){h=h.value;var Z=W[h],a=O[h];if(a===void 0)delete T[h];else if(Z===void 0)T[h]=a;else if(Array.isArray(a)&&Array.isArray(Z))T[h]=b?[].concat(_.PG(Z),_.PG(a)):a;else if(!Array.isArray(a)&&_.LH(a)&&!Array.isArray(Z)&&_.LH(Z))T[h]=HcE(Z,a,b);else if(typeof a===typeof Z)T[h]=a;else return O=new _.pu("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:h,originalValue:Z,updateValue:a}),
_.Dt(O),W}return T};
VO8=function(W){if(!W.length)return"";try{if(tO2)return tO2.decode(W);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(W)}catch(Z){}for(var O=0,b=[],T=W.length;O<T;){for(var L=0;L<1024&&O<T;){var h=W[O++];if(h<128)$2X[L++]=h;else{if(h<224)h=(h&31)<<6|W[O++]&63;else if(h<240)h=(h&15)<<12|(W[O++]&63)<<6|W[O++]&63;else{if(L+1===1024){--O;break}h=(h&7)<<18|(W[O++]&63)<<12|(W[O++]&63)<<6|W[O++]&63;h-=65536;$2X[L++]=55296|h>>10;h=56320|h&1023}$2X[L++]=h}}h=String.fromCharCode.apply(String,
$2X);L<1024&&(h=h.substring(0,L));b.push(h)}return b.join("")};
MOP=function(W,O){var b;if((b=Nqq)==null?0:b.encodeInto)return O=Nqq.encodeInto(W,O),O.read<W.length?W.length*4:O.written;for(var T=b=0;T<W.length;T++){var L=W.charCodeAt(T);L<128?O[b++]=L:(L<2048?O[b++]=L>>6|192:((L&64512)===55296&&T+1<W.length&&(W.charCodeAt(T+1)&64512)===56320?(L=65536+((L&1023)<<10)+(W.charCodeAt(++T)&1023),O[b++]=L>>18|240,O[b++]=L>>12&63|128):O[b++]=L>>12|224,O[b++]=L>>6&63|128),O[b++]=L&63|128)}return b};
u8X=function(W,O){W=new Uint8Array(W);O&&W.set(O);return W};
_.dm=function(W){W=new JRi(new cRX([_.w1(decodeURIComponent(W))]));if(FcX(W,2)){var O=Le(W);var b=W.pos;var T=W.arrayView;b=b===void 0?0:b;var L=O===void 0?-1:O;b=b===void 0?0:b;L=L===void 0?-1:L;if(T.totalLength&&L){L<0&&(L=T.totalLength-b);T.focus(b);if(!(b-T.arrayPos+L<=T.arrays[T.arrayIdx].length)){var h=T.arrayIdx,Z=T.arrayPos;T.focus(b+L-1);Z=new Uint8Array(T.arrayPos+T.arrays[T.arrayIdx].length-Z);for(var a=0,m=h;m<=T.arrayIdx;m++)Z.set(T.arrays[m],a),a+=T.arrays[m].length;T.arrays.splice(h,
T.arrayIdx-h+1,Z);T.arrayIdx=0;T.arrayPos=0;T.focus(b)}h=T.arrays[T.arrayIdx];T=new DataView(h.buffer,h.byteOffset+b-T.arrayPos,L)}else T=new DataView(new ArrayBuffer(0));T=new Uint8Array(T.buffer,T.byteOffset,T.byteLength);W.pos+=O;O=T}else O=void 0;O=O?VO8(O):void 0;W=FcX(W,4)?Le(W):void 0;T=yRi[W];if(typeof T==="undefined")throw W=new _.pu("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:W}),_.Dt(W),W;return{entityTypeFieldNumber:W,entityType:T,entityId:O}};
_.Z5=function(W,O,b){b=b===void 0?0:b;var T=new WFX;if(Nqq)W=Nqq.encode(W);else{var L=new Uint8Array(Math.ceil(W.length*1.2)),h=MOP(W,L);L.length<h&&(L=new Uint8Array(h),h=MOP(W,L));L.length>h&&(L=L.subarray(0,h));W=L}W!==void 0&&(hH(T,18),L=W.length,hH(T,L),SK(T,L),T.buf.set(W,T.pos),T.pos+=L);W=OgT[O];if(typeof W==="undefined")throw b=new _.pu("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:O}),_.Dt(b),b;W!==void 0&&(hH(T,32),hH(T,W));hH(T,40);hH(T,1);O=new Uint8Array(T.buf.buffer,
T.buf.byteOffset,T.pos);return encodeURIComponent(_.WM(O,b))};
igE=function(W){W=W.key||W.id;if(!W)throw Error("yf");return W};
j38=function(W,O){W=W===void 0?{}:W;return bgP(W,O)};
TpX=function(W,O,b,T){if(T===void 0)return T=Object.assign({},W[O]||{}),b=(delete T[b],T),T={},Object.assign({},W,(T[O]=b,T));var L={},h={};return Object.assign({},W,(h[O]=Object.assign({},W[O],(L[b]=T,L)),h))};
LFP=function(W,O,b,T,L){var h=W[O];if(h==null||!h[b])return W;T=HcE(h[b],T,L==="REPEATED_FIELDS_MERGE_OPTION_APPEND");L={};h={};return Object.assign({},W,(h[O]=Object.assign({},W[O],(L[b]=T,L)),h))};
_.IJ=function(W,O,b){return W[O]?W[O][b]||null:null};
h4h=function(){if(dvP)return dvP();var W={};dvP=yY("PersistentEntityStoreDb",{objectStores:(W.EntityStore={addedAtVersion:1},W.EntityAssociationStore={addedAtVersion:2},W),shared:!1,upgrade:function(O,b){b(1)&&n9(q8(O,"EntityStore",{keyPath:"key"}),"entityType","entityType");b(2)&&(O=q8(O,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),n9(O,"byParentEntityKey","parentEntityKey"),n9(O,"byChildEntityKey","childEntityKey"))},
version:3});return dvP()};
S9X=function(W){return _.$v(h4h(),W)};
aJ=function(W){return window.Int32Array?new Int32Array(W):Array(W)};
IcX=function(W){return _.$v(Zg8(),W)};
acq=function(W){return new m_("WRONG_DATA_TYPE",{encoderVersion:W})};
mvh=function(W){return W instanceof Error?new m_("UNKNOWN_ENCODE_ERROR",{originalMessage:W.message}):new m_("UNKNOWN_ENCODE_ERROR")};
Y9X=function(W){return W instanceof Error?new m_("UNKNOWN_DECODE_ERROR",{originalMessage:W.message}):new m_("UNKNOWN_DECODE_ERROR")};
E8X=function(W,O){W=W instanceof m_?W:O(W);_.Dt(W);throw W;};
wq1=function(W){W=(new TextEncoder).encode(W).subarray(0,16);var O=new Uint8Array(16);O.set(W);return O};
XqT=function(W){var O=Ac2[W];if(O)return O;_.z5(new _.pu("Entity model not found.",{entityType:W}))};
_.Y9=function(){UvT||(UvT=lc8());return UvT};
lc8=function(){var W,O,b;return _.I(function(T){if(T.nextAddress==1)return _.LI(T,2),_.Y(T,_.Fq(),4);if(T.nextAddress!=2){W=T.yieldResult;if(!W||!_.P3()||typeof _.i1.BroadcastChannel==="undefined")return T.return();O=new e4e;return T.return(new Er(W,O))}b=_.ID(T);b instanceof Error&&_.Dt(b);return T.return()})};
_.wm=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1){b=W.mutations;if(!b||b.length<=0)return T.return();O&&O.dispatch(_.Tc({type:"ENTITY_LOADED",payload:b}));return _.Y(T,PKT(b),2)}b.length=0;_.aD(T)})};
PKT=function(W){var O;return _.I(function(b){return b.nextAddress==1?_.Y(b,_.Y9(),2):(O=b.yieldResult)?_.Y(b,_.AH(O,"readwrite",function(T){for(var L={},h=_.S(W),Z=h.next(),a={};!Z.done;a={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},Z=h.next())a.mutation$jscomp$4=Z.value,a.mutation$jscomp$4.entityKey&&pqE(a.mutation$jscomp$4)&&(a.mutationEntityType$jscomp$3=(0,_.PQ.getAnyKey)(a.mutation$jscomp$4.payload),Z=void 0,a.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(Z=function(m){return function(){return _.R4P(T,
m.mutation$jscomp$4.payload[m.mutationEntityType$jscomp$3],m.mutationEntityType$jscomp$3)}}(a)),a.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(Z=function(m){return function(){return KF8(T,m.mutation$jscomp$4.entityKey)}}(a)),a.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(Z=function(m){return function(){return v82(T,m.mutation$jscomp$4.entityKey,m.mutation$jscomp$4.payload[m.mutationEntityType$jscomp$3],m.mutationEntityType$jscomp$3)}}(a)),Z&&(L[a.mutation$jscomp$4.entityKey]=
L[a.mutation$jscomp$4.entityKey]?L[a.mutation$jscomp$4.entityKey].then(Z):Z()));
return qm.all(Object.values(L))}),0):b.return()})};
pqE=function(W){var O;W=(O=W.options)==null?void 0:O.persistenceOption;return W==="ENTITY_PERSISTENCE_OPTION_PERSIST"||W==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
LQT=function(W,O){var b,T;_.I(function(L){if(L.nextAddress==1)return _.Y(L,_.Y9(),2);if(L.nextAddress!=3)return(b=L.yieldResult)?_.Y(L,_.AH(b,"readonly",function(h){var Z={},a=Object.keys(O).map(function(m){var w=O[m]?[].concat(_.PG(O[m])):[];return g8Q(h,m,w,Z)});
return qm.all(a).then(function(){return Z})}),3):L.return();
T=L.yieldResult;Object.keys(T).length>0&&W.dispatch(TcX(T));_.aD(L)})};
g8Q=function(W,O,b,T){return XW(W,O,b).then(function(L){T[O]=du1(b,L)})};
du1=function(W,O){if(O.length!==W.length)throw Error("Bf");return O.reduce(function(b,T,L){b[W[L]]=T;return b},{})};
ZrX=function(W){var O=W.filter(function(L){var h;return(L==null?void 0:(h=L.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_COMPLETE"}).length,b=W.filter(function(L){var h;
return(L==null?void 0:(h=L.transferEntity)==null?void 0:h.transferState)==="TRANSFER_STATE_FAILED"}).length,T=W.filter(function(L){var h;
return(L==null?void 0:(h=L.transferEntity)==null?void 0:h.transferState)&&hFh.includes(L.transferEntity.transferState)});
if(!(O||T!=null&&T.length))return 0;O=_.S_2(T)+O;W=W.length-b;return W===0?0:Math.round(O*100/W)/100};
_.S_2=function(W){var O=[];O=O.concat.apply(O,_.PG(W.filter(function(h){return h.streamEntity}).map(function(h){var Z=Object.assign({},h.streamEntity),a,m=(a=h.transferEntity)==null?void 0:a.transferState;
Z.streamsProgress=Z.streamsProgress||[];Z.streamsProgress=Z.streamsProgress.map(function(w){var A=Object.assign({},w);A.numBytesDownloaded=m==="TRANSFER_STATE_COMPLETE"?w.numTotalBytes:w.numBytesDownloaded;return A});
return Z}).map(function(h){return h.streamsProgress})));
var b=W=0;O=_.S(O);for(var T=O.next();!T.done;T=O.next()){var L=T.value;T=Number(L.numBytesDownloaded);L=Number(L.numTotalBytes);b+=isNaN(T)?0:T;W+=isNaN(L)?0:L}return W===0?0:Math.round(b*100/W)/100};
Iw1=function(W){if(!W||!W.expirationTimestamp||!W.action)return!1;var O=(0,_.WO)()/1E3;return Number(W.expirationTimestamp)>=O};
Ur=function(W){return W&&W.expirationTimestamp&&W.action?Iw1(W)&&W.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.lv=function(W){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(W||"TRANSFER_STATE_UNKNOWN")};
awX=function(W){var O=new WFX;if(W!==void 0){var b=Math.ceil(Math.log2(W.length*4+2)/7);b=b===void 0?2:b;hH(O,10);O.submessagePosStack.push(O.pos);O.submessagePosStack.push(b);O.pos+=b;SK(O,W.length*1.2);b=MOP(W,O.buf.subarray(O.pos));O.pos+b>O.buf.length&&(SK(O,b),b=MOP(W,O.buf.subarray(O.pos)));O.pos+=b;W=O.submessagePosStack.pop();b=O.submessagePosStack.pop();for(var T=O.pos-b-W;W--;){var L=W?128:0;O.view.setUint8(b++,T&127|L);T>>=7}}O=new Uint8Array(O.buf.buffer,O.buf.byteOffset,O.pos);return(new TextDecoder("utf-8")).decode(O)};
_.eK=function(W){var O=0;W=_.S(W);for(var b=W.next(),T={};!b.done;T={transferState$jscomp$3:void 0},b=W.next()){var L=b.value,h=void 0;b=(h=L.streamEntity)!=null?h:{};h=void 0;T.transferState$jscomp$3=(h=L.transferEntity)==null?void 0:h.transferState;h=L=void 0;((L=b)==null?0:(h=L.streamsProgress)==null?0:h.length)&&b.streamsProgress.forEach(function(Z){return function(a){a=Number(Z.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?a.numTotalBytes:a.numBytesDownloaded);isFinite(a)&&(O+=a)}}(T))}return O};
muq=function(W){return W.some(function(O){var b;if(!(O==null?0:(b=O.transferEntity)==null?0:b.transferState)){var T;return!(O==null?0:(T=O.policyEntity)==null?0:T.action)||O.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return hFh.includes(O.transferEntity.transferState)})};
Y_8=function(W,O){if(!O)return!1;if(_.e("of_pb_en_po_ks"))return!0;var b;W=(b=_.IJ(W,"offlineVideoPolicy",_.Z5(O,"offlineVideoPolicy")))!=null?b:void 0;return!!W&&Ur(W)};
_.wLQ=function(W){var O=["TRANSFER_STATE_COMPLETE"];O=O===void 0?E2Q:O;return W.filter(function(b){var T,L;return O.includes((L=(T=b.transferEntity)==null?void 0:T.transferState)!=null?L:"TRANSFER_STATE_UNKNOWN")})};
AuX=function(W,O){if(O){var b,T=(b=_.IJ(W,"playbackData",_.Z5(O,"playbackData")))!=null?b:null,L;b=(L=_.IJ(W,"transfer",_.Z5(O,"transfer")))!=null?L:null;var h;L=(h=_.IJ(W,"offlineVideoStreams",_.Z5(O,"offlineVideoStreams")))!=null?h:null;var Z;W=(Z=_.IJ(W,"offlineVideoPolicy",_.Z5(O,"offlineVideoPolicy")))!=null?Z:null;if(T||b||L||W)return{playbackDataEntity:T,transferEntity:b,streamEntity:L,policyEntity:W}}};
_.PS=function(W){var O=W.playbackData;if(!O)return[];var b=[];O=_.S(Object.keys(O));for(var T=O.next();!T.done;T=O.next()){var L=T.value;if(!XLX(W,_.dm(L).entityId)&&(T=AuX(W,_.dm(L).entityId))){var h=void 0,Z=void 0;L=(Z=Number((h=_.IJ(W,"playbackData",L))==null?void 0:h.streamDownloadTimestampSeconds))!=null?Z:(0,_.WO)();b.push({entity:T,streamDownloadTimestamp:L})}}return b.sort(function(a,m){var w=a.streamDownloadTimestamp,A=m.streamDownloadTimestamp;return A===w?a.entity.streamEntity&&!m.entity.streamEntity?
1:-1:A-w}).map(function(a){return a.entity})};
UuO=function(W){return _.wLQ(_.PS(W))};
_.lw2=function(W){return _.PS(W).filter(function(O){var b;if(((b=O.policyEntity)==null?0:b.action)&&O.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var T;if((T=O.transferEntity)==null?0:T.transferState){var L;return hFh.includes((L=O.transferEntity)==null?void 0:L.transferState)}return!0})};
XLX=function(W,O){var b;return((b=_.IJ(W,"downloadStatusEntity",_.Z5(O,"downloadStatusEntity")))==null?void 0:b.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
eFQ=function(W){var O;if(W==null?0:(O=W.playbackDataEntity)==null?0:O.key)return _.dm(W.playbackDataEntity.key).entityId;var b;if(W==null?0:(b=W.transferEntity)==null?0:b.key)return _.dm(W.transferEntity.key).entityId;var T;if(W==null?0:(T=W.streamEntity)==null?0:T.key)return _.dm(W.streamEntity.key).entityId;var L;if(W==null?0:(L=W.policyEntity)==null?0:L.key)return _.dm(W.policyEntity.key).entityId};
pLh=function(W){var O=new Set,b;W=(b=W.mainDownloadsListEntity)==null?void 0:b[Ps8];var T;if(!(W==null?0:(T=W.downloads)==null?0:T.length))return O;var L;W==null||(L=W.downloads)==null||L.forEach(function(h){(h==null?0:h.videoItem)&&O.add(h.videoItem)});
return O};
pe=function(W,O){if(O){var b=_.IJ(W,"mainVideoEntity",_.Z5(O,"mainVideoEntity")),T=_.IJ(W,"downloadStatusEntity",_.Z5(O,"downloadStatusEntity")),L=_.IJ(W,"ytMainChannelEntity",_.Z5(O,"ytMainChannelEntity")),h={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};W=AuX(W,O);T=(T==null?void 0:T.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.e("woffle_render_failed_download_state_ks")&&(T==null?void 0:T.downloadState)==="DOWNLOAD_STATE_FAILED";!W&&T&&(W=h);if(W&&b&&
L)return Object.assign({},{videoEntity:b,channelEntity:L},W)}};
KQT=function(W,O){return RF8(W,O)==="TRANSFER_STATE_COMPLETE"&&Y_8(W,O)};
v2q=function(W,O){if(!O)return!1;var b;W=(b=_.IJ(W,"playbackData",_.Z5(O,"playbackData")))!=null?b:void 0;return!!W&&!!W.playerResponseJson};
RF8=function(W,O){if(!O)return"TRANSFER_STATE_UNKNOWN";var b=_.IJ(W,"transfer",_.Z5(O,"transfer"));if(b){var T;return(T=b.transferState)!=null?T:"TRANSFER_STATE_UNKNOWN"}b=_.IJ(W,"offlineOrchestrationActionWrapperEntity",_.Z5(O,"offlineOrchestrationActionWrapperEntity"));W=_.IJ(W,"mainVideoEntity",_.Z5(O,"mainVideoEntity"));return b||W?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
g2h=function(W,O){if(!O)return"TRANSFER_STATE_UNKNOWN";if(W=_.IJ(W,"transfer",_.Z5(O,"transfer"))){var b;return(b=W.transferState)!=null?b:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
o2h=function(W,O){return O&&(W=_.IJ(W,"videoPlaybackPositionEntity",_.Z5(O,"videoPlaybackPositionEntity")),W==null?0:W.lastPlaybackPositionSeconds)?Number(W.lastPlaybackPositionSeconds):0};
kie=function(W,O){return Qzi(W).some(function(b){var T;return(b==null?void 0:(T=b.mainPlaylistEntity)==null?void 0:T.playlistId)===O})};
Bci=function(W,O,b){var T=szX(W,O);if(!T.length)return[];O=[];T=_.S(T);for(var L=T.next();!L.done;L=T.next()){L=L.value;var h=pe(W,L);b&&RF8(W,L)!=="TRANSFER_STATE_COMPLETE"||h&&O.push(h)}return O};
szX=function(W,O){if(!O)return[];var b=_.Z5(O,"mainPlaylistEntity"),T;O=(T=W.mainPlaylistEntity)==null?void 0:T[b];T=[];if(O==null||!O.videos)return T;O=_.S(O.videos);for(b=O.next();!b.done;b=O.next()){b=b.value;var L=void 0,h=void 0,Z=void 0,a=(L=W)==null?void 0:(h=L.mainPlaylistVideoEntity)==null?void 0:(Z=h[b])==null?void 0:Z.video;a&&(b=_.dm(a).entityId)&&T.push(b)}return T};
ruP=function(W,O){if(O){var b=_.IJ(W,"mainPlaylistEntity",_.Z5(O,"mainPlaylistEntity")),T=_.IJ(W,"mainPlaylistDownloadStateEntity",_.Z5(O,"mainPlaylistDownloadStateEntity"));W=_.IJ(W,"ytMainChannelEntity",_.Z5(O,"ytMainChannelEntity"));if(T&&b)return Object.assign({},{mainPlaylistEntity:b,mainPlaylistDownloadStateEntity:T},!!W&&{channelEntity:W})}};
Qzi=function(W){return DuO(W).sort(function(O,b){return b.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return O.downloadedPlaylistEntities})};
DuO=function(W){var O=W.mainPlaylistDownloadStateEntity,b=[];if(!O)return b;for(var T=_.S(Object.keys(O)),L=T.next();!L.done;L=T.next()){var h=L.value;L=ruP(W,_.dm(h).entityId);var Z=void 0;h=Number((Z=O[h])==null?void 0:Z.addedTimestampMillis);Z=isNaN(h)?(0,_.WO)():h;L!==void 0&&b.push({downloadedPlaylistEntities:L,addedTimestampMillis:Z})}return b};
xuP=function(W){var O,b=(O=W.mainPlaylistVideoEntity)!=null?O:{};return new Set(Qzi(W).reduce(function(T,L){T=T===void 0?[]:T;var h,Z;L==null||(h=L.mainPlaylistEntity)==null||(Z=h.videos)==null||Z.forEach(function(a){var m;(a=(m=b[a])==null?void 0:m.video)&&T.push(a)});
return T},[]))};
zFX=function(W){return"downloadedMusicPlaylistEntities"in W};
Csq=function(W){return"mainPlaylistEntity"in W&&"mainPlaylistDownloadStateEntity"in W};
q_T=function(W){return"videoEntity"in W&&"channelEntity"in W};
n2e=function(W){var O=W.musicPlaylistDownloadMetadataEntity,b=[];if(!O)return b;for(var T=_.S(Object.keys(O)),L=T.next();!L.done;L=T.next()){L=L.value;a:{var h=W,Z=_.dm(L).entityId;if(Z){var a=_.IJ(h,"musicPlaylist",_.Z5(Z,"musicPlaylist"));h=_.IJ(h,"musicPlaylistDownloadMetadataEntity",_.Z5(Z,"musicPlaylistDownloadMetadataEntity"));if(a&&h){a={musicPlaylistEntity:a,musicPlaylistDownloadStateEntity:h};break a}}a=void 0}h=void 0;L=Number((h=O[L])==null?void 0:h.addedTimestampMillis);L=isNaN(L)?(0,_.WO)():
L;a!==void 0&&b.push({downloadedMusicPlaylistEntities:a,addedTimestampMillis:L})}return b};
fwh=function(W){var O=new Set;W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,"musicPlaylistEntity"in b&&"musicPlaylistDownloadStateEntity"in b){b=_.S(b.musicPlaylistEntity.tracks);for(var T=b.next();!T.done;T=b.next())O.add(T.value)}return O};
Gi8=function(W,O){if(O){var b=_.IJ(W,"musicTrack",_.Z5(O,"musicTrack")),T=_.IJ(W,"musicArtist",_.Z5(O,"musicArtist"))||{};if((W=AuX(W,O))&&b&&T)return Object.assign({},{musicTrackEntity:b,musicArtistEntity:T},W)}};
Hrh=function(W){var O=W.musicTrackDownloadMetadataEntity,b=[];if(!O)return[];O=_.S(Object.keys(O));for(var T=O.next();!T.done;T=O.next()){var L=T.value;T=Gi8(W,_.dm(L).entityId);var h=void 0;L=Number((h=_.IJ(W,"musicTrackDownloadMetadataEntity",L))==null?void 0:h.addedTimestampMillis);h=isNaN(L)?(0,_.WO)():L;T!==void 0&&b.push({downloadedMusicEntities:T,addedTimestampMillis:h})}return b};
VdE=function(W,O){if(!O)return[];if(Object.values(tdh).includes(O))return $uO(W,O);O=_.Z5(O,"musicPlaylist");var b;W=(b=W.musicPlaylist)==null?void 0:b[O];b=[];if(W==null||!W.tracks)return b;W=_.S(W.tracks);for(O=W.next();!O.done;O=W.next())(O=_.dm(O.value).entityId)&&b.push(O);return b};
$uO=function(W,O){var b=new Set,T=n2e(W).map(function(h){return h.downloadedMusicPlaylistEntities});
T=fwh(T);T=_.S(T);for(var L=T.next();!L.done;L=T.next())(L=_.dm(L.value).entityId)&&b.add(L);return Nc8(W).downloadedMusicEntities.filter(function(h){var Z;if((Z=h.musicTrackEntity)!=null&&Z.videoId){h=h.musicTrackEntity;if(Z=O==="PPOM"?!0:!b.has(h.videoId))b:switch(h=h.musicVideoType,O){case "PPSE":Z=h==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:Z=h!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}h=Z}else h=!1;return h}).map(function(h){var Z;
return(Z=h.musicTrackEntity)==null?void 0:Z.videoId})};
Nc8=function(W){var O=Hrh(W).sort(function(b,T){return T.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:zFX(b)?b.downloadedMusicPlaylistEntities:{}});
W=n2e(W).sort(function(b,T){return T.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return"downloadedMusicEntities"in b?b.downloadedMusicEntities:zFX(b)?b.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:O,downloadedMusicPlaylistEntities:W}};
urh=function(W,O){O=_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?VdE(W,O):szX(W,O);if(!O.length)return"TRANSFER_STATE_UNKNOWN";O=O.map(function(b){return g2h(W,b)});
return Mdh(O)};
Mdh=function(W){var O=new Set(W);if(O.has("TRANSFER_STATE_FAILED")&&O.size===1)return"TRANSFER_STATE_FAILED";O.delete("TRANSFER_STATE_FAILED");if(O.has("TRANSFER_STATE_UNKNOWN")&&O.size===1)return"TRANSFER_STATE_PRE_TRANSFER";O.delete("TRANSFER_STATE_UNKNOWN");if(O.has("TRANSFER_STATE_PRE_TRANSFER")&&O.size===1||O.size===0)return"TRANSFER_STATE_PRE_TRANSFER";W=O.has("TRANSFER_STATE_TRANSFERRING");O=O.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return W||O?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
RJ=function(W){var O=W.mainVideoDownloadStateEntity,b=[];if(!O)return[];O=_.S(Object.keys(O));for(var T=O.next();!T.done;T=O.next()){var L=T.value;if(!XLX(W,_.dm(L).entityId)){T=pe(W,_.dm(L).entityId);var h=void 0,Z=void 0;L=(Z=Number((h=_.IJ(W,"mainVideoDownloadStateEntity",L))==null?void 0:h.addedTimestampMillis))!=null?Z:(0,_.WO)();T!==void 0&&b.push({downloadedVideoEntities:T,addedTimestampMillis:L})}}return b};
Ju1=function(W){return RJ(W).sort(function(O,b){return b.addedTimestampMillis-O.addedTimestampMillis}).map(function(O){return O.downloadedVideoEntities})};
_.FQX=function(W){var O=xuP(W),b=_.Ke(W),T=pLh(W),L=RJ(W).filter(function(Z){var a,m;if((Z==null?void 0:(a=Z.downloadedVideoEntities)==null?void 0:(m=a.transferEntity)==null?void 0:m.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var w,A;Z=Z==null?void 0:(w=Z.downloadedVideoEntities)==null?void 0:(A=w.videoEntity)==null?void 0:A.key;return _.e("kevlar_use_library_entity")?Z&&(T.has(Z)||b[Z]):Z&&!O.has(Z)}),h=DuO(W).filter(function(Z){return urh(W,Z.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.PG(L),_.PG(h)).sort(function(Z,a){return a.addedTimestampMillis-Z.addedTimestampMillis}).map(function(Z){return cu1(Z)})};
yuX=function(W,O){if(O&&Y_8(W,O)){var b,T,L=(T=(b=_.IJ(W,"playbackData",_.Z5(O,"playbackData")))!=null?b:void 0)==null?void 0:T.playerResponseJson;if(L){try{var h=JSON.parse(L);var Z=_.IJ(W,"transfer",_.Z5(O,"transfer")),a=o2h(W,O);a&&(h=Object.assign({},h,{playerConfig:Object.assign({},h.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+a*1E3}}})}));h.cotn=Z==null?void 0:Z.cotn}catch(m){}return h}}};
_.iN1=function(W){var O,b,T;W=(T=(b=((O=W.downloadsPageViewConfigurationEntity)!=null?O:{})[WU2])==null?void 0:b.smartDownloadsOptInBannerVisibility)!=null?T:{};var L;return(L=_.P(W,ONQ))!=null?L:{}};
_.Ke=function(W){var O,b,T;W=(T=(b=((O=W.mainDownloadsListEntity)!=null?O:{})[_.bNQ])==null?void 0:b.downloads)!=null?T:[];O={};b=_.S(W);for(T=b.next();!T.done;T=b.next())W=void 0,O[(W=T.value.videoItem)!=null?W:""]=!0;return O};
jPq=function(W){var O=_.Ke(W);if(Object.keys(O).length===0)return!1;var b=W.mainVideoEntity;if(!b)return!0;b=_.S(Object.keys(b));for(var T=b.next();!T.done;T=b.next()){T=T.value;var L=_.dm(T).entityId;if(O[T]&&!XLX(W,L))return!1}return!0};
_.vS=function(W){var O=_.Ke(W);return RJ(W).sort(function(b,T){return b.addedTimestampMillis-T.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities}).filter(function(b){var T;
return(b=b==null?void 0:(T=b.videoEntity)==null?void 0:T.key)&&!!O[b]})};
cu1=function(W){return"downloadedVideoEntities"in W?W.downloadedVideoEntities:"downloadedPlaylistEntities"in W?W.downloadedPlaylistEntities:{}};
T5h=function(W){var O=_.Ke(W),b=xuP(W),T=RJ(W).filter(function(L){var h,Z;return(L=L==null?void 0:(h=L.downloadedVideoEntities)==null?void 0:(Z=h.videoEntity)==null?void 0:Z.key)&&!O[L]&&!b.has(L)});
W=DuO(W);return[].concat(_.PG(T),_.PG(W)).sort(function(L,h){return h.addedTimestampMillis-L.addedTimestampMillis}).map(function(L){return cu1(L)})};
_.gm=function(W){if(!_.e("kevlar_use_library_entity"))return T5h(W);var O=RJ(W).filter(function(T){var L,h;if(L=T=T==null?void 0:(L=T.downloadedVideoEntities)==null?void 0:(h=L.videoEntity)==null?void 0:h.key){var Z,a,m;L=((a=(Z=W.mainDownloadsListEntity)==null?void 0:Z[Ps8])==null?0:(m=a.downloads)==null?0:m.length)?pLh(W).has(T):!1}return L}),b=DuO(W);
return[].concat(_.PG(O),_.PG(b)).sort(function(T,L){return L.addedTimestampMillis-T.addedTimestampMillis}).map(function(T){return cu1(T)})};
LU8=function(W){var O=_.Ke(W),b=xuP(W);return Ju1(W).filter(function(T){var L;return(T=T==null?void 0:(L=T.videoEntity)==null?void 0:L.key)&&!O[T]&&!b.has(T)})};
dNO=function(W){if(!_.e("kevlar_use_library_entity"))return LU8(W);var O=_.Ke(W),b=pLh(W);return Ju1(W).filter(function(T){var L;return(T=T==null?void 0:(L=T.videoEntity)==null?void 0:L.key)&&!O[T]&&b.has(T)})};
hUP=function(W,O){O=_.Z5(O,"settingEntity");var b,T,L;return!!((L=(T=((b=W.settingEntity)!=null?b:{})[O])==null?void 0:T.settingOptionValue)!=null?L:{}).boolValue};
_.oJ=function(W){var O=_.vS(W);if(muq(O))return 0;var b=[];O=_.S(O);for(var T=O.next();!T.done;T=O.next()){T=T.value;var L=void 0,h=void 0;if((L=T)==null?0:(h=L.videoEntity)==null?0:h.key)L=_.dm(T.videoEntity.key).entityId,T=W,L=_.Z5(L,"mainVideoDownloadStateEntity"),T=_.IJ(T,"mainVideoDownloadStateEntity",L),(T=Number(T==null?void 0:T.addedTimestampMillis))&&b.push(T)}return Math.max.apply(Math,_.PG(b))};
_.k9=function(W){return W.ui.richGridMiniMode};
_.sr=function(W){return W.ui.richGridItemsPerRow};
_.S2X=function(W){return W.ui.richGridSlimItemsPerRow};
_.ZNQ=function(W){return W.ui.guideIsExpanded};
_.BS=function(W){return W.ui.miniplayerIsActive};
_.ImP=function(W){return W.ui.singleOptionSurveyIsActive};
_.rm=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.am8=function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.mN8=function(W){return W.ui.inlinePreviewIsActive};
_.Y2X=function(W){return W.ui.inlinePreviewIsEnabled};
_.EVX=function(W){return W.ui.miniplayerPlaybackState};
wX8=function(W){return W.ui.isOnline};
_.A6h=function(W){return W.ui.frostedGlassMode};
_.D5=function(W,O){return RF8(W.entities,O)};
_.x9=function(W,O){return urh(W.entities,O)};
XXO=function(W,O){var b;if(O){var T;W=(T=_.IJ(W.entities,"offlineVideoPolicy",_.Z5(O,"offlineVideoPolicy")))==null?void 0:T.action}else W=void 0;return(b=W)!=null?b:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
UNO=function(W,O){var b;O?(W=_.IJ(W.entities,"offlineVideoPolicy",_.Z5(O,"offlineVideoPolicy")),W=Number(W==null?void 0:W.expirationTimestamp)):W=void 0;return(b=W)!=null?b:0};
_.lmQ=function(W){return _.PS(W.entities).length};
eUQ=function(W,O){return pe(W.entities,O)};
PrX=function(W,O){return ruP(W.entities,O)};
zc=function(W,O){return(W=pe(W.entities,O))?_.S_2([W]):0};
_.pX8=function(W,O){var b=_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(b){var T=W.entities;var L=VdE(T,O);if(L.length){var h=[];L=_.S(L);for(var Z=L.next();!Z.done;Z=L.next())(Z=Gi8(T,Z.value))&&h.push(Z);T=h}else T=[]}else T=Bci(W.entities,O);var a;if(b){var m=W.entities;O?(O=_.Z5(O,"musicPlaylist"),m=(a=m.musicPlaylist)==null?void 0:a[O],a=m!=null&&m.tracks?m.tracks.length:0):a=0}else a=W.entities,O?(O=_.Z5(O,"mainPlaylistEntity"),a=(m=a.mainPlaylistEntity)==null?void 0:m[O],a=a!=null&&a.videos?
a.videos.length:0):a=0;return T.length!==a?0:T?ZrX(T):0};
_.RUX=function(W){return W.download.isLeaderTab};
_.KUq=function(W,O,b){if(!O&&b){var T=W.entities;if(b){var L=awX(b),h,Z;O=(Z=(h=_.IJ(T,"offlineabilityEntity",_.Z5(L,"offlineabilityEntity")))==null?void 0:h.addToOfflineButtonState)!=null?Z:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else O="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else h=W.entities,O?(Z=awX(O),O=(L=(T=_.IJ(h,"offlineabilityEntity",_.Z5(Z,"offlineabilityEntity")))==null?void 0:T.addToOfflineButtonState)!=null?L:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):O="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return O};
vVT=function(W,O){W=W.entities;if(O){O=awX(O);var b,T;O=(T=(b=_.IJ(W,"offlineabilityEntity",_.Z5(O,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?T:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else O="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return O};
_.gVO=function(W){var O=W.entities;W=wX8(W);var b=hUP(O,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.e("kevlar_modern_downloads_page")&&b)var T=!1;else{var L,h;O=(h=(L=((T=O.downloadsPageViewConfigurationEntity)!=null?T:{})[WU2])==null?void 0:L.smartDownloadsOptInBannerVisibility)!=null?h:{};T=W?!!O.visibleWithConnection:!!O.visibleWithoutConnection}return T};
_.oVT=function(W){return hUP(W.entities,"SMART_DOWNLOADS_ENABLED")};
_.QPX=function(W){return jPq(W.entities)};
k38=function(W){return _.vS(W.entities).every(function(O){var b;return(O==null?void 0:(b=O.transferEntity)==null?void 0:b.transferState)&&!hFh.includes(O.transferEntity.transferState)})};
_.sPT=function(W,O){return XLX(W.entities,O)};
B5X=function(W,O){if(O){var b,T;W=(T=(b=_.IJ(W.entities,"downloadStatusEntity",_.Z5(O,"downloadStatusEntity")))==null?void 0:b.downloadState)!=null?T:"DOWNLOAD_STATE_UNKNOWN"}else W="DOWNLOAD_STATE_UNKNOWN";return W};
Ce=function(W,O){return o2h(W.entities,O)};
zUO=function(W){W=_.r6e(W);var O=W.hours===void 0?0:W.hours,b=W.minutes===void 0?0:W.minutes,T=W.seconds===void 0?0:W.seconds,L=O>0;W=[];L&&(O=_.DNi(O),W.push(O));O=L;O=O===void 0?!1:O;b=(["af","be","lt"].includes(_.qX)||O)&&b<10?xNE().format(b):(new Intl.NumberFormat("en-u-nu-latn")).format(b);W.push(b);b=xNE().format(T);W.push(b);b=":";"da fi id si sr sr-Latn".split(" ").includes(_.qX)&&(b=".");return W.join(b)};
_.r6e=function(W){var O=W.hours||0,b=W.minutes||0,T=W.seconds||0;O=T+b*60+O*3600+(W.days||0)*86400+(W.weeks||0)*604800+(W.months||0)*2629800+(W.years||0)*31557600;if(O<=0)return{hours:0,minutes:0,seconds:0};W=O;O=Math.floor(W/3600);W%=3600;b=Math.floor(W/60);T=Math.floor(W%60);return{hours:O,minutes:b,seconds:T}};
_.DNi=function(W){W=(new Intl.NumberFormat("en-u-nu-latn")).format(W);var O=["fr"],b="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(_.qX)?W.replace(",","\u00a0"):O.includes(_.qX)?W.replace(",","\u202f"):b.includes(_.qX)?W.replace(",","."):W};
xNE=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
CrX=function(W){try{return(new _.ne(5)).format(W)}catch(O){}};
fe=function(W){return{thumbnailOverlayDownloadingRenderer:{state:W}}};
q2q=function(W){if(W=CrX(W))return{thumbnailOverlaySidePanelRenderer:{text:_.iv(W),icon:{iconType:"PLAYLISTS"}}}};
nV8=function(){var W=_.EO("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.iv(W),icon:{iconType:"PLAY_ALL"}}}};
fm1=function(W){W=_.Gc(W,2);return _.qX!=="ru"&&_.qX!=="es_419"&&_.qX!=="es-419"&&_.qX!=="es"&&_.qX!=="es_US"&&_.qX!=="es-US"&&_.qX!=="fr"&&_.qX!=="pl"&&_.qX!=="it"&&_.qX!=="nl"&&_.qX!=="uk"&&_.qX!=="fr_CA"&&_.qX!=="fr-CA"||W===""?W:W[0].toLocaleUpperCase()+W.substring(1)};
HN2=function(W){return function(O){var b=W(),T=_.Gc(O,b.dateFormat);O=_.Gc(O,b.timeFormat);var L=G3q.DATETIMEFORMATS[b.joinerStyle];L=L.replace(/'(?!')/g,"");L=L.replace("{0}",O);L=L.replace("{1}",T);return b.capitalize(L)}};
tXQ=function(W){return W?typeof W.seconds==="string"&&(W.nanos===void 0||typeof W.nanos==="number"):!1};
$Nh=function(W){return new Date(Number(W.seconds)*1E3+(W.nanos||0)*1E-6)};
_.Gc=function(W,O){if(typeof W.getTime==="function")W={date:W};else if(tXQ(W))W={date:$Nh(W)};else if(typeof tXQ(W.timestamp)&&typeof W.i18nInternalSecondsEastOfUtc==="number")W={date:$Nh(W.timestamp),timeZone:HS(-W.i18nInternalSecondsEastOfUtc/60)};else throw Error("Cf`"+JSON.stringify(W));var b=W;W=b.date;b=b.timeZone;O=VXT(O).format(W,b);_.qX==="zh-TW"&&(W=b?Number(VXT("H").format(W,b)):W.getHours(),O=W<5?O.replace("\u4e0a\u5348","\u51cc\u6668"):W<8?O.replace("\u4e0a\u5348","\u65e9\u4e0a"):W<12?
O.replace("\u4e0a\u5348","\u4e0a\u5348"):W<13?O.replace("\u4e0b\u5348","\u4e2d\u5348"):W<19?O.replace("\u4e0b\u5348","\u4e0b\u5348"):O.replace("\u4e0b\u5348","\u665a\u4e0a"));return O};
VXT=function(W){if(N5q.has(W))return N5q.get(W);var O=MXX(W);O=uZX(O);J68!==!0&&(J68=!0);c62=!0;c62=!1;O=new tH(O,G3q);N5q.set(W,O);return O};
MXX=function(W){return(new tH(W,G3q)).patternParts_.map(function(O){return O.type===0?"'"+O.text+"'":O.text}).join("")};
uZX=function(W){return _.qX==="en"||_.qX==="es_US"||_.qX==="es-US"?W:W.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(O,b,T){return"H".repeat(b.length)+T})};
Tke=function(W,O){FUh||(_.$9=_.y62,FUh=new WrO);var b=FUh;a:if(W=OKE(W),O=OKE(O||new Date),W>O)b=W.getTime()-O.getTime()>6048E5?_.Gc(W,1):iKQ(W);else{for(var T=0;bK2(W,12*(T+1))<O;)++T;if(T>0)b=b.format(-T,0);else{for(T=0;bK2(W,T+1)<O;)++T;if(T>0)b=b.format(-T,2);else{W=O.getTime()-W.getTime();O=_.S(jTX);for(T=O.next();!T.done;T=O.next()){T=T.value;var L=T.unit,h=Math.floor(W/T.unitDuration);if(h>=(T.threshold===void 0?1:T.threshold)){b=b.format(-h,L);break a}}b=b.format(-0,7)}}}return b};
OKE=function(W){if(typeof W.getTime==="function")return W;if(tXQ(W))return $Nh(W);throw Error("Df`"+JSON.stringify(W));};
bK2=function(W,O){for(var b=0,T;;++b)if(T=new Date(W.getFullYear(),W.getMonth()+O,W.getDate()-b,W.getHours(),W.getMinutes(),W.getSeconds()),T.getMonth()===(W.getMonth()+O)%12)return T};
_.VV=function(W){return{runs:[{text:W}]}};
_.NX=function(W){if(W&&W.simpleText)return W.simpleText;var O="";if(W&&W.runs)for(var b=0;b<W.runs.length;b++)W.runs[b].text&&(O+=W.runs[b].text);return O};
dge=function(W,O,b,T){return W.videoEntity&&!W.policyEntity&&b!=="DOWNLOAD_STATE_FAILED"?[fe("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Ur(W.policyEntity)&&O!=="TRANSFER_STATE_FAILED"&&O!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?O==="TRANSFER_STATE_PAUSED_BY_USER"?[fe("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.lv(O)?[fe("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:W.videoEntity.lengthSeconds?Lri(W.videoEntity.lengthSeconds,T):[]:
[fe("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Lri=function(W,O){var b=[{thumbnailOverlayTimeStatusRenderer:{text:_.iv(zUO({seconds:W})),style:"DEFAULT"}}];O&&(W=O<=0||W<=0?0:O>=W?100:Math.ceil(O*100/W),W>0&&b.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:W}}));return b};
htX=function(W,O,b,T,L){if(O==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(_.lv(O)||O==="TRANSFER_STATE_PRE_TRANSFER")var h=[fe("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var Z,a;if(O==="TRANSFER_STATE_COMPLETE"&&((Z=W.mainPlaylistEntity)==null?0:(a=Z.videos)==null?0:a.length)){if(_.e("web_modern_collections_v2")){var m;var w=(h=W.mainPlaylistEntity)==null?void 0:(m=h.videos)==null?void 0:m.length;h=(h=CrX(w))?{thumbnailOverlayBottomPanelRenderer:{text:_.iv(h),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var A;h=q2q((w=W.mainPlaylistEntity)==null?void 0:(A=w.videos)==null?void 0:A.length)}var X;h=[nV8(),Object.assign({},(X=h)!=null?X:{})]}else h=[]}X=h;a:if(O==="TRANSFER_STATE_PRE_TRANSFER")b=bv(_.EO("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(O==="TRANSFER_STATE_TRANSFER_IN_QUEUE")b=bv(_.EO("WAITING_TO_DOWNLOAD"));else if(_.lv(O))b=Math.floor(b*100).toString(),b=bv(_.EO("DOWNLOADING_PERCENT",{percent:b},"Downloading... "+b+"%"));else{if(T&&(_.e("playlist_is_offline_selector_killswitch")&&
(L=_.iq().resolve(_.Vy).isNetworkAvailable()),L)){b=GME(_.EO("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ngO(T));break a}b=void 0}O=O==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.EO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},X.length?{thumbnailOverlays:X}:{},b?{viewPlaylistText:b}:{viewPlaylistText:_.VV("")},O.length?{badges:O}:{})};
SLh=function(W,O,b,T,L,h){if(O==="TRANSFER_STATE_UNKNOWN"||!W)return{};if(T==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var Z=dge(W,O,T);if(W.videoEntity&&!W.policyEntity&&T!=="DOWNLOAD_STATE_FAILED"){var a=_.EO("WAITING_TO_DOWNLOAD");if(a)return{shortViewCountText:_.VV(a),publishedTimeText:void 0,thumbnailOverlays:Z}}if(!Ur(W.policyEntity)){h=W.policyEntity&&!Iw1(W.policyEntity)?_.EO("DOWNLOAD_EXPIRED",{},"Download expired"):
_.EO("TRANSFER_FAILED",{},"Download failed");var m;if((m=W.policyEntity)==null?0:m.shortMessageForDisabledAction)h=W.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:bv(h),publishedTimeText:void 0,thumbnailOverlays:Z}}if(O==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.VV(_.EO("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:Z};if(O==="TRANSFER_STATE_FAILED"||O==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.VV(_.EO("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:Z};if(O==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(m=_.EO("WAITING_TO_DOWNLOAD"),T==="DOWNLOAD_STATE_PAUSED"&&(m=_.EO("DOWNLOAD_PAUSED",{},"Download paused")),m))return{shortViewCountText:_.VV(m),publishedTimeText:void 0,thumbnailOverlays:Z};if(_.lv(O))return W=Math.floor(b*100).toString(),{shortViewCountText:_.VV(_.EO("DOWNLOADING_PERCENT",{percent:W},"Downloading... "+W+"%")),publishedTimeText:void 0,thumbnailOverlays:Z};O=void 0;W.videoEntity.publishedTimestampMillis&&
(O=new Date,L&&(O=new Date(L)),O=bv(Tke(new Date(Number(W.videoEntity.publishedTimestampMillis)),O)));L=[];_.e("kevlar_woffle_badge_killswitch")||(L=[{metadataBadgeRenderer:{label:_.EO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var w;W=bv((w=W.videoEntity.localizedStrings)==null?void 0:w.viewCount);return Object.assign({},h?{shortViewCountText:void 0}:{shortViewCountText:W},h?{}:{publishedTimeText:O},{badges:L,thumbnailOverlays:Z})};
ICO=function(W,O){W=W===void 0?ZK2:W;switch(O.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:O.payload.playlistId,inviteLinkURL:O.payload.inviteLinkUrl};default:return W}};
mgO=function(W,O){W=W===void 0?aCh:W;switch(O.type){case "SET_CURRENT_FORM_ID":return O=O.payload.formId,W.currentFormId===O?W:{currentFormId:O,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var b=O.payload;O=b.groupId;b=b.command;if(W.currentFormId){var T=Object.assign({},W.commandsMap);T[O]=b;W=Object.assign({},W,{commandsMap:T})}return W;case "RESET_COMMAND_MAP":return Object.assign({},W,{commandsMap:{}});default:return W}};
EPq=function(W,O){W=W===void 0?YLh:W;switch(O.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},W,{guideIsExpanded:O.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},W,{scrollAtTop:O.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},W,{guideIsVisibleButNotPersistent:O.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},W,{miniplayerIsActive:O.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},W,{singleOptionSurveyIsActive:O.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},W,{slimlineSurveyRatingSelectedIndex:O.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},W,{richGridMiniMode:O.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},W,{richGridItemsPerRow:O.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},W,{richGridSlimItemsPerRow:O.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},W,{richGridContainerWidth:O.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},W,{richGridStyle:O.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:O.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},W,{inlinePreviewIsActive:O.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},W,{inlinePreviewIsEnabled:O.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},W,{darkModeIsEnabled:O.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
W,{miniplayerPlaybackState:O.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},W,{tabGesturesIsActive:O.payload});case "SET_ONLINE_STATUS":return Object.assign({},W,{isOnline:O.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},W,{chipBarIsSticky:O.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},W,{frostedGlassMode:O.payload});default:return W}};
Aph=function(W,O){W=W===void 0?wHq:W;switch(O.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},W,{transcription:O.payload});case "SET_OVERLAY_STATE":return Object.assign({},W,{overlay:O.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return W}};
gP1=function(){return m1(Object.assign({},{continuation:XHe,entities:j38,download:UgT,reportChannelAbuse:lCQ,share:etT,talkToRecs:Phh,ui:EPq,voiceSearch:Aph,watch:pH8,ypc:RtO,shorts:KrX,radioButtonGroup:mgO,collabInviteLink:ICO},vPh))};
kn8=function(){return _.e("web_player_entities_middleware")?new MX(gP1(),[oPh,QTO]):new MX(gP1(),[oPh])};
_.uv=function(){sTX||(sTX=kn8());return sTX};
Bke=function(W,O,b){if(W.length)return{titleText:_.iv(O!=null?O:_.EO("DOWNLOADS",void 0,"Downloads")),contents:W.map(function(T){var L=T.videoEntity;T={videoId:L.videoId,title:bv(L.title),shortBylineText:bv(T.channelEntity.title),thumbnail:L.thumbnail};var h=L.videoId?Ce(_.uv().getState(),L.videoId):0;L.videoId&&b?T.navigationEndpoint=_.Or(L.videoId,b,void 0,void 0,h):L.videoId&&(T.navigationEndpoint=qYX(L.videoId,h,L.lengthSeconds));L.lengthSeconds&&(T.thumbnailOverlays=Lri(L.lengthSeconds,h));return{playlistPanelVideoRenderer:T}}),
totalVideos:W.length}};
rpE=function(W){return(W=(0,_.PQ.getValueByKeys)(W,"playlistId"))?{playlistId:W}:null};
Dgq=function(){return{}};
xg2=function(W,O){return new _.mJ(function(b,T){W.then(function(L){if(L){if(L=O(L))return b(L);T()}},T)})};
zt1=function(W){var O,b,T,L=(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.autoplay)==null?void 0:T.autoplay,h,Z,a;O=(h=W.contents)==null?void 0:(Z=h.twoColumnWatchNextResults)==null?void 0:(a=Z.playlist)==null?void 0:a.playlist;return L&&O&&O.playlistId?{rawResponse:W,autoplayRenderer:L,playlistPanelRenderer:O,playlistId:O.playlistId}:null};
qLe=function(W){var O=O===void 0?"UNKNOWN_INTERFACE":O;if(W.length===1)return W[0];var b=Chi[O];if(b){b=new RegExp(b);for(var T=_.S(W),L=T.next();!L.done;L=T.next())if(L=L.value,b.exec(L))return L}var h=[];Object.entries(Chi).forEach(function(Z){var a=_.S(Z);Z=a.next().value;a=a.next().value;O!==Z&&h.push(a)});
b=new RegExp(h.join("|"));W.sort(function(Z,a){return Z.length-a.length});
T=_.S(W);for(L=T.next();!L.done;L=T.next())if(L=L.value,!b.exec(L))return L;return W[0]};
_.JH=function(W){return"/youtubei/v1/"+qLe(W)};
_.cS=function(W){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:W}}}}};
_.FW=function(W){return _.cS(_.VV(W))};
nPQ=function(W,O){var b={mode:"NORMAL"};W&&(b.autoplayVideo=W.navigationEndpoint,b.nextButtonVideo=W.navigationEndpoint);O&&(b.previousButtonVideo=O.navigationEndpoint);return b};
HKX=function(W,O,b){if(!b||!b.sets)return{sets:[nPQ(W,O)]};var T=b.sets.find(function(Z){return Z.mode==="NORMAL"}),L=(0,_.PQ.unsafeClone)(b);
if(!T)return L.sets.push(nPQ(W,O)),L;if(!W)return b;T=_.PQ.getValueByKeys.apply(null,[T].concat(_.PG(fCe)));var h=_.PQ.getValueByKeys.apply(null,[W].concat(_.PG(Gne)));if(T===h)return b;L.sets=L.sets.filter(function(Z){return Z.mode!=="NORMAL"});
L.sets.push(nPQ(W,O));return L};
tn8=function(W){return!!W.playlistPanelVideoRenderer&&!W.playlistPanelVideoRenderer.unplayableText};
$gq=function(W){return!!W.playlistPanelVideoRenderer&&!!W.playlistPanelVideoRenderer.title};
VnP=function(W,O){if(O.contents&&!(W>=O.contents.length)&&(W=O.contents.slice(W).find(tn8)))return W.playlistPanelVideoRenderer};
NkX=function(W,O){if(O.contents)return(O=O.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===W}))?O.playlistPanelVideoRenderer:void 0};
MnO=function(W,O){return O.contents?O.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId===W}):-1};
uBX=function(W,O){return O.contents?O.contents.findIndex(function(b){return!!b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.playlistSetVideoId===W}):-1};
JpQ=function(W,O){W.contents&&O!==-1&&W.contents.splice(O,1).length===1&&W.totalVideos!==void 0&&(--W.totalVideos,delete W.videoCountText)};
_.cpE=function(W){var O=[];if(!W||!W.contents)return O;W=_.S(W.contents);for(var b=W.next();!b.done;b=W.next())b=b.value,b.playlistPanelVideoRenderer&&b.playlistPanelVideoRenderer.videoId&&O.push(b.playlistPanelVideoRenderer.videoId);return O};
_.Fr8=function(W){if(W&&W.contents)return(W=W.contents.find(function(O){return!!O.playlistPanelVideoRenderer&&!!O.playlistPanelVideoRenderer.selected})||W.contents[W.currentIndex])?W.playlistPanelVideoRenderer:void 0};
ypX=function(W,O,b,T,L,h,Z){L=L===void 0?!1:L;h=h===void 0?!1:h;Z=Z===void 0?!1:Z;if(W.contents&&W.contents.length!==0){T&&(W.contents=W.contents.filter(T));T=W.contents.length;for(var a=0;a<T;a++){var m=W.contents[a].playlistPanelVideoRenderer;m&&(a===O?(h&&delete m.menu,m.indexText=_.VV("\u25b6")):L||W.isInfinite||m.indexText===void 0?delete m.indexText:m.indexText=_.VV((a+1+b).toString()))}W.currentIndex=O+b;Z&&(delete W.videoCountText,W.totalVideos=T)}};
_.yV=function(W){W=WgT(W);if(W){var O=W.length;var b=-53%O;b<0&&(b=O+b);W=W.slice(O-b)+W.slice(0,O-b)}else W="";b="";for(O=0;O<W.length&&W[O]!==OmT;O++)b+=W[O];return b};
_.im8=function(W,O){var b=document.body;O=O===void 0?function(a){return a}:O;
var T,L=null;W=_.S(W);for(T=W.next();!T.done;T=W.next()){var h=T.value;T=document.createElement("div");L||(L=T);var Z=h[0];h=h[1];Z&&(T.id=O(Z));if(h)for(Z=_.S(h),h=Z.next();!h.done;h=Z.next())T.classList.add(O(h.value));b.appendChild(T);b=T}return[L,b]};
bmO=function(W,O){for(var b="",T=0;T<O;T++)b+=W.charAt(Math.floor(Math.random()*W.length));return b};
Wh=function(W){return bmO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",W)};
OP=function(W){return bmO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",W)};
i8=function(W){return bmO("0123456789",W)};
b8=function(){var W=performance.now(),O=new Date;var b="2."+O.getFullYear()+String(O.getMonth()+1).padStart(2,"0")+String(O.getDate()).padStart(2,"0");for(var T,L=Math.floor(Math.random()*11)+15,h=[],Z=0;Z<L;Z++)h.push(Math.floor(Math.random()*26476865)+24547720);T=h.join(",");var a=Wh(10),m=Wh(100),w=Wh(102),A=Wh(106),X=Wh(108),l=Wh(11),p=Wh(1140),K=Wh(123),k=Wh(14),r=Wh(16),q=Wh(1900),f=Wh(23),M=Wh(26),V=Wh(34),jQ=Wh(397),y=Wh(44),d8=Wh(5),pE=Wh(72),Qh=Wh(74),KE=Wh(75),fE=Wh(88),r8=Wh(91),nE="rr3---sn-5hneknee rr1---sn-ntqe6n7r rr2---sn-aigl6nzl rr5---sn-ntqe6nee rr4---sn-q4fl6nsr rr2---sn-q4fzene7 rr3---sn-ntqe6nes rr5---sn-5hne6ns6 rr3---sn-q4fl6nlz rr4---sn-5hne6nzy rr3---sn-q4fl6ndl rr3---sn-q4fl6ns6 rr5---sn-q4fl6nlz rr4---sn-5hne6nzk rr1---sn-q4fl6nds rr1---sn-ntqe6nee rr1---sn-q4flrnee rr3---sn-hgn7rn7k rr2---sn-q4flrnl7 rr5---sn-q4fzen7l".split(" ");
var tX=nE[Math.floor(Math.random()*nE.length)];var yh=(new Date("2010-01-01")).getTime();var Gw=(new Date(yh+Math.random()*((new Date).getTime()-yh))).toISOString().split("T")[0];for(var KH,h9=[],I7=0;I7<4;I7++)h9.push(Math.floor(Math.random()*100));KH=h9.join(".");var T1=Number(i8(5)),Y$=Number(i8(6)),aR=Number(i8(7)),f0=Number(i8(9)),SQ=i8(1),R7=i8(10),zw=i8(16),G1=i8(19),k$=i8(2),Nz=i8(20),NE=i8(21),XU=i8(3),u1=i8(4),pH=i8(5),IN=i8(6),vN=i8(7),lk=i8(8),ZG=i8(9);var Zf=bmO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var H9=[OP(5),OP(5),OP(5)].join("%2C"),lN=[i8(3),i8(5),i8(5)].join("%2C"),X0=OP(0),t9=OP(1),wg=OP(10),y2=OP(108),m7=OP(11),xX=OP(12),EM=OP(13),jJ=OP(14),Um=OP(15),rC=OP(16),h3=OP(17),eQ=OP(18),Di=OP(19),H2=OP(2),A9=OP(20),LU=OP(22),oR=OP(23),aN=OP(24),e5=OP(266),Uv=OP(3),m8=OP(30),p0=OP(34),S5=OP(35),UB=OP(36),gD=OP(4),xh=OP(40),M9=OP(43),zK=OP(47),Bh=OP(5),I8=OP(6),FO=OP(7),Ag=OP(75),eB=OP(8),st=OP(80),Dd=OP(9),T9="https://www."+OP(12)+".com",nS={},A$={},zB={},G1X={},Ug={},tJ={},$K={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:T}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:b},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+OP(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:b},{key:"client.name",value:"WEB"},{key:"client.fexp",value:T}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:NE+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+OP(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:xh,ypcGetOfflineUpsellEndpoint:{params:st}},trackingParams:S5+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&cnr="+k$+"&ratebypass=yes&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&c=WEB&txp="+vN+"&n="+r+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:Y$,width:640,height:360,lastModified:zw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vN,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+lN+"&mn="+
H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&cnr="+k$+"&ratebypass=yes&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&c=WEB&txp="+vN+"&n="+r+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+y2+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Y$,width:1280,
height:720,lastModified:zw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vN,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+H9+"&ms="+
H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&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="+X,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:aR,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aR,approxDurationMs:vN},{itag:248,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+H9+"&ms="+H9+"&mv="+
t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:aR,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:399,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&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="+X,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:aR,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:aR,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:136,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:aR,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y$,approxDurationMs:vN},{itag:247,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+
H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:aR,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:398,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+ZG+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:aR,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:ZG,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:135,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:Y$,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y$,approxDurationMs:vN},{itag:244,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+
H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+y2+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:Y$,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:397,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&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="+X,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Y$,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:134,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:Y$,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y$,highReplication:!0,approxDurationMs:vN},{itag:243,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:Y$,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:396,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:Y$,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:133,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:Y$,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y$,approxDurationMs:vN},{itag:242,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+
H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:Y$,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:395,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Y$,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Y$,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:160,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Y$,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:T1,approxDurationMs:vN},{itag:278,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+lN+"&mn="+
H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+X+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'video/webm; codecs="vp9"',bitrate:Y$,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:T1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:394,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&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="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=video%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&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="+X,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:T1,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:T1,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:vN},{itag:140,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=audio%2Fmp4&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Y$,
initRange:{start:"0",end:"631"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Y$,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vN,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+
k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=audio%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+vN+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:T1,initRange:{start:"0",end:"265"},indexRange:{start:XU,
end:u1},lastModified:zw,contentLength:vN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T1,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=audio%2Fwebm&ns="+
aN+"&gir="+Uv+"&clen="+vN+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+A+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:T1,initRange:{start:"0",end:"265"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:vN,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:T1,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:vN,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+tX+".googlevideo.com/videoplayback?expire="+R7+"&ei="+f+"&ip="+KH+"&id=o-AF"+M9+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+lN+"&mn="+H9+"&ms="+H9+"&mv="+t9+"&mvi="+SQ+"&pl="+k$+"&initcwndbps="+vN+"&siu="+SQ+"&spc="+y+"&vprv="+SQ+"&svpuc="+SQ+"&mime=audio%2Fwebm&ns="+aN+"&gir="+Uv+"&clen="+lk+"&dur="+lk+"&lmt="+zw+"&mt="+R7+"&fvip=3&keepalive="+Uv+"&c=WEB&txp="+
vN+"&n="+rC+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+X,mimeType:'audio/webm; codecs="opus"',bitrate:Y$,initRange:{start:"0",end:"265"},indexRange:{start:XU,end:u1},lastModified:zw,contentLength:lk,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Y$,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:vN,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="+ZG+"&docid="+l+"&ei="+f+"&feature="+a+"&fexp="+X0+"&ns="+H2+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+t9+"&el="+wg+"&len="+u1+"&of="+LU+
"&uga="+k$+"&vm="+e5},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+ZG+"&docid="+l+"&ei="+f+"&feature="+a+"&fexp="+X0+"&ns="+H2+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+t9+"&el="+wg+"&len="+u1+"&of="+LU+"&uga="+k$+"&vm="+e5},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+ZG+"&docid="+l+"&ei="+f+"&feature="+a+"&fexp="+X0+"&ns="+H2+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
t9+"&el="+wg+"&len="+u1+"&of="+LU+"&uga="+k$+"&vm="+e5},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+f+"&m="+fE+"&oid="+LU+"&plid="+r+"&pltype="+FO+"&ptchn="+LU+"&ptk="+k+"&video_id="+l},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+ZG+"&docid="+l+"&ei="+f+"&event="+jJ+"&feature="+a+"&fexp="+X0+"&ns="+H2+"&plid="+r+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+t9},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+l+"&ei="+f+"&feature="+
a+"&len="+u1+"&ns="+H2+"&plid="+r+"&ver="+SQ,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+l+"&caps="+Uv+"&opi="+ZG+"&xoaf="+SQ+"&hl="+H2+"&ip="+KH+"&ipbits="+SQ+"&expire="+R7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+KH+"&key="+Uv+"&lang="+d8,name:{simpleText:xX},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+l+"&caps="+Uv+"&opi="+ZG+"&xoaf="+SQ+"&hl="+H2+"&ip="+KH+"&ipbits="+SQ+"&expire="+R7+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+KH+"&key="+Uv+"&kind="+Uv+"&lang="+H2,name:{simpleText:EM},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:m7,title:eB,lengthSeconds:"1155",keywords:[I8,wg,FO,Bh],
channelId:aN,isOwnerViewing:!1,shortDescription:gD,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+p0,width:168,height:94},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+p0,width:196,height:110},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
l+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:vN,author:EM,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:vN,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+LU+"/featured_channel.jpg?v="+eB,width:40,height:40}]},trackingParams:S5+"=",navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"/channel/"+aN,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:aN}},channelName:EM,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:jJ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:aN,showPreferences:!1,subscribedButtonText:{runs:[{text:h3}]},unsubscribedButtonText:{runs:[{text:wg}]},trackingParams:S5+"=",unsubscribeButtonText:{runs:[{text:eB}]},serviceEndpoints:[{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[aN],params:eB}},{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xh,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:S5+"=",dialogMessages:[{runs:[{text:rC},{text:Dd},{text:EM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:rC}]},serviceEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[aN],params:eB}},accessibility:{label:Dd},trackingParams:S5+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Bh}]},accessibility:{label:eB},trackingParams:S5+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:I8}},unsubscribeAccessibility:{accessibilityData:{label:Bh}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:lk},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[aN],params:eB}},unsubscribeCommand:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[aN],params:eB}},addToWatchLaterCommand:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:m7,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:m7}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+l+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+UB+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
l+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+m7,width:1280,height:720},title:{simpleText:I8},description:{simpleText:xX},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+eB,externalChannelId:aN,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:vN,category:"Travel & Events",publishDate:Gw,ownerChannelName:EM,uploadDate:Gw}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Um},trackingParams:S5+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:xh,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:S5+"="}}],headerText:{simpleText:eB},icon:{infoCardIconRenderer:{trackingParams:S5+"="}},closeButton:{infoCardIconRenderer:{trackingParams:S5+"="}},trackingParams:S5+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:S5+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+m7+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Zf,interpreterSafeUrl:(nS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+m8+".js",nS),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:FO},{text:Dd,bold:!0}]},endpoint:{clickTrackingParams:xh,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:S5+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:jJ}]},actionButton:{buttonRenderer:{text:{runs:[{text:xX}]},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+l,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
l,target:"TARGET_NEW_WINDOW"}},trackingParams:S5+"="}},trackingParams:S5+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+pE+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+pE+"=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:vN,endMs:vN,title:{accessibility:{accessibilityData:{label:Dd}},simpleText:eB},metadata:{simpleText:gD},callToAction:{simpleText:gD},dismiss:{simpleText:gD},endpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"/channel/"+aN,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:aN}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:I8}]},subscribed:!1,enabled:!0,type:"FREE",channelId:aN,showPreferences:!1,
subscribedButtonText:{runs:[{text:jJ}]},unsubscribedButtonText:{runs:[{text:eQ}]},trackingParams:S5+"=",unsubscribeButtonText:{runs:[{text:eB}]},serviceEndpoints:[{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[aN],params:eB}},{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:xh,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:S5+
"=",dialogMessages:[{runs:[{text:wg},{text:gD},{text:Di}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Bh}]},serviceEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[aN],params:eB}},accessibility:{label:FO},trackingParams:S5+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:h3}]},
accessibility:{label:eQ},trackingParams:S5+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:A9}},unsubscribeAccessibility:{accessibilityData:{label:Bh}}}},trackingParams:S5+"=",isSubscribe:!0,id:Nz}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+p0,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+l+"/hqdefault.jpg?sqp=-oaymwE"+UB+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+l+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:vN,endMs:vN,title:{accessibility:{accessibilityData:{label:m7}},simpleText:eQ},metadata:{simpleText:Di},endpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
m7,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:m7,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+tX+".googlevideo.com/videoplayback?source=youtube&oeis="+SQ+"&c=WEB&oad="+u1+"&ovd="+u1+"&oaad="+pH+"&oavd="+pH+"&ocs="+XU+"&oewis="+SQ+"&oputc="+SQ+"&ofpcc="+SQ+"&siu="+SQ+"&msp="+SQ+"&odepv="+SQ+
"&id=o-AF"+M9+"&ip="+KH+"&initcwndbps="+vN+"&mt="+R7+"&oweuc="+X0}}}}},trackingParams:S5+"=",id:Nz,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:rC}},simpleText:rC},style:"DEFAULT"}}]}}],startMs:vN,trackingParams:S5+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:SQ,offsetEndMilliseconds:pH},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";ord="+R7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+XU+";dc_sk="+SQ+";dc_ctype="+k$+";dc_ref=http://www.youtube.com/video/"+m7+";dc_pubid="+SQ+";dc_btype=23?gclid="+r8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SQ+"&ns="+SQ+"&event="+SQ+"&device="+SQ+"&content_v="+l+"&el="+wg+"&ei="+f+"&devicever="+b+"&bti="+vN+"&format="+IN+"&break_type="+SQ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SQ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+KH+"&slot_pos="+SQ+"&slot_len="+SQ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+lN+"&ad_len="+pH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
m7+"&aqi="+f+"&ad_rmp="+SQ+"&sli="+SQ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+
";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+vN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&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"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&ctype="+XU+"&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"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_engaged_view&ctype="+XU+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+G1+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&dc_pubid="+SQ+"&dc_exteid="+Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&avm="+SQ+"&dc_pubid="+SQ+"&dc_exteid="+
Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&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="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
w+"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&dc_pubid="+SQ+"&dc_exteid="+Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xh,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+
XU+"&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/"+l+"/mqdefault.jpg",width:320,height:180}]},trackingParams:S5+"="},trackingParams:S5+
"=",templatedCountdown:{templatedAdText:{text:rC,isTemplated:!0,trackingParams:S5+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:jJ,isTemplated:!1,trackingParams:S5+"="},trackingParams:S5+"="}},trackingParams:S5+"=",skipOffsetMilliseconds:5E3}},trackingParams:S5+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:xX},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:A9,isTemplated:!1,trackingParams:S5+"="},trackingParams:S5+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:m7,isTemplated:!0,trackingParams:S5+"="}},trackingParams:S5+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(A$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+q+"&hl="+H2+"&origin=www.youtube.com&ata_theme="+gD,A$),trackingParams:S5+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:S5+"="}},hoverText:{runs:[{text:wg}]},trackingParams:S5+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:S5+"="},headline:{text:FO,isTemplated:!1,trackingParams:S5+"="},description:{text:Dd,
trackingParams:S5+"="},actionButton:{buttonRenderer:{text:{simpleText:h3},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"="}},startMs:SQ,trackingParams:S5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:wg},elementId:wg}},elementId:gD,trackingParams:S5+"=",legacyInfoCardVastExtension:wg,sodarExtensionData:{siub:rC,bgub:Bh,scs:FO,bgp:rC},externalVideoId:m7,adLayoutLoggingData:{serializedAdServingDataEntry:A9},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zK+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:S5+"="},
headline:{text:xX,isTemplated:!1,trackingParams:S5+"="},description:{text:jJ,isTemplated:!1,trackingParams:S5+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:FO},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+
Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+
SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:S5+"="}},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+
ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+
K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:S5+"="},abandonCommands:{commands:[{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&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="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+
SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xh,commandExecutorCommand:{commands:[{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:A9,isTemplated:!1,trackingParams:S5+
"="},trackingParams:S5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:eB},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+vN+";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="+ZG+";dc_trk_cid="+ZG+";ord="+R7+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+XU+";dc_sk="+SQ+";dc_ctype="+k$+";dc_ref=http://www.youtube.com/video/"+m7+";dc_pubid="+SQ+";dc_btype=23?gclid="+r8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+SQ+"&ns="+SQ+"&event="+SQ+"&device="+SQ+"&content_v="+l+"&el="+wg+"&ei="+f+"&devicever="+b+"&bti="+vN+"&format="+IN+"&break_type="+SQ+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+SQ+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+KH+"&slot_pos="+SQ+"&slot_len="+SQ+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
lN+"&ad_len="+pH+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+m7+"&aqi="+f+"&ad_rmp="+SQ+"&sli="+SQ}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+
M+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+vN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&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"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&ctype="+XU+"&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"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_engaged_view&ctype="+XU+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+
I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&dc_pubid="+SQ+"&dc_exteid="+Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+
"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+SQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&avm="+SQ+"&dc_pubid="+SQ+"&dc_exteid="+Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&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="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+w+"&sig="+oR+"&ad_cpn=[AD_CPN]&id="+I8+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+SQ},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+I8+"&dc_pubid="+SQ+"&dc_exteid="+Nz+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+IN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+
XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&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/"+l+"/mqdefault.jpg",width:320,height:180}]},trackingParams:S5+"="},trackingParams:S5+"=",templatedCountdown:{templatedAdText:{text:rC,isTemplated:!0,trackingParams:S5+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Di,isTemplated:!1,trackingParams:S5+"="},trackingParams:S5+"="}},
trackingParams:S5+"=",skipOffsetMilliseconds:5E3}},trackingParams:S5+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Bh},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:eB,isTemplated:!1,trackingParams:S5+"="},trackingParams:S5+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Dd,
isTemplated:!0,trackingParams:S5+"="}},trackingParams:S5+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:xh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(zB.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+q+"&hl="+H2+"&origin=www.youtube.com&ata_theme="+gD,zB),trackingParams:S5+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:S5+"="}},hoverText:{runs:[{text:gD}]},trackingParams:S5+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:S5+"="},headline:{text:gD,isTemplated:!1,trackingParams:S5+"="},description:{text:eQ,trackingParams:S5+"="},actionButton:{buttonRenderer:{text:{simpleText:Dd},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"="}},startMs:SQ,trackingParams:S5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:EM},elementId:I8}},elementId:Di,trackingParams:S5+"=",legacyInfoCardVastExtension:Um,sodarExtensionData:{siub:wg,bgub:I8,scs:Dd,bgp:Dd},externalVideoId:m7,adLayoutLoggingData:{serializedAdServingDataEntry:Bh},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qh+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:S5+"="},headline:{text:eB,
isTemplated:!1,trackingParams:S5+"="},description:{text:FO,isTemplated:!1,trackingParams:S5+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:I8},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:S5+"="}},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+
SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:S5+"="},abandonCommands:{commands:[{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&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="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+k$+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:xh,commandExecutorCommand:{commands:[{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:eQ,isTemplated:!1,trackingParams:S5+"="},trackingParams:S5+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:h3},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+SQ+";dc_exteid="+Nz+";met="+SQ+";ecn"+SQ+"="+SQ+";etm1="+SQ+";eid1="+
vN+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:jJ}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:pH,offsetEndMilliseconds:IN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+k$+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+b+"&m_pos_ms="+pH}},adSlotLoggingData:{serializedSlotAdServingDataEntry:h3}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:IN,offsetEndMilliseconds:IN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+XU+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
b+"&m_pos_ms="+IN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:IN,offsetEndMilliseconds:IN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+XU+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
b+"&m_pos_ms="+IN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:IN,offsetEndMilliseconds:IN},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+XU+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
b+"&m_pos_ms="+IN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:rC}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:IN,offsetEndMilliseconds:k$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+XU+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
b+"&m_pos_ms="+IN}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Di}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:k$,offsetEndMilliseconds:k$},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+f+"&m_pos="+k$+"&token=ALHj"+jQ+"&index="+SQ+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
b+"&m_pos_ms="+k$}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Di}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:wg,isTemplated:!1,trackingParams:S5+"="},description:{text:m7,isTemplated:!1,trackingParams:S5+"="},actionButton:{buttonRenderer:{text:{simpleText:FO},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zK+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:S5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+KE+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:S5+"="},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+
";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(G1X.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+q+"&hl="+H2+"&origin=www.youtube.com&ata_theme="+gD,G1X),trackingParams:S5+"="}},popupType:"DIALOG"}},trackingParams:S5+"="}},hoverText:{runs:[{text:wg}]},trackingParams:S5+"="}},adVideoId:m7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Di},associatedCompositePlayerBytesLayoutId:rC}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:m7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Di,isTemplated:!1,trackingParams:S5+"="},description:{text:EM,isTemplated:!1,trackingParams:S5+"="},actionButton:{buttonRenderer:{text:{simpleText:h3},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+
K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qh+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:S5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ag+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:S5+"="},navigationEndpoint:{clickTrackingParams:xh,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+
SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ug.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+q+"&hl="+H2+"&origin=www.youtube.com&ata_theme="+gD,Ug),trackingParams:S5+"="}},popupType:"DIALOG"}},trackingParams:S5+"="}},
hoverText:{runs:[{text:gD}]},trackingParams:S5+"="}},adVideoId:m7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+m7+"&cid="+M+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:A9},associatedCompositePlayerBytesLayoutId:rC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:A9}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Bh,
isTemplated:!1,trackingParams:S5+"="},description:{text:wg,isTemplated:!1,trackingParams:S5+"="},actionButton:{buttonRenderer:{text:{simpleText:wg},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+
k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:S5+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+zK+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:S5+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+KE+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:S5+
"="},navigationEndpoint:{clickTrackingParams:xh,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+ZG+";dc_trk_cid="+ZG+";dc_dbm_token="+X+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+SQ+";ord="+ZG+";dc_rui="+SQ+";dc_exteid="+Nz+";dc_av="+SQ+";dc_sk="+SQ+";dc_ctype="+k$+";dc_pubid="+SQ+";dc_btype=3?gclid="+r8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+p+"____________"+K+"AxAA&ase=2&num="+SQ+"&cid="+M+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+T9+"&label=video_click_to_advertiser_site&ctype="+XU+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:S5+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:xh,openPopupAction:{popup:{aboutThisAdRenderer:{url:(tJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+q+"&hl="+H2+"&origin=www.youtube.com&ata_theme="+gD,tJ),trackingParams:S5+"="}},popupType:"DIALOG"}},trackingParams:S5+
"="}},hoverText:{runs:[{text:A9}]},trackingParams:S5+"="}},adVideoId:m7,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+p+"____________"+K+"AxAA&sigh="+l+"&cid="+M+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:jJ},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:rC}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eQ}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:m8,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:m8,command:{innertubeCommand:{clickTrackingParams:xh,ypcGetOfflineUpsellEndpoint:{params:st}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:S5+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:R7,nanos:f0}}}},mLT=JSON.stringify($K),V$=performance.now()-W;return{objectRepresentation:$K,jsonRepresentation:mLT,generationTime:V$}};
jLh=function(W,O){if(W===O)return!0;if(!W||!O||typeof W!==typeof O)return!1;if(W instanceof Array&&O instanceof Array){if(W.length!==O.length)return!1;for(var b=0;b<W.length;b++)if(!jLh(W[b],O[b]))return!1;return!0}if(typeof W==="object"&&typeof O==="object"&&W&&O){for(b in W)if(!(b in O&&jLh(W[b],O[b])))return!1;for(var T in O)if(!(T in W))return!1;return!0}return!1};
_.TF=function(){if(!j4){j4=new ml(new TB1);var W=_.Lu("client_streamz_web_flush_count",-1);W!==-1&&(j4.invocationLimit=W)}return j4};
L_=function(W,O,b,T){if(W===O)return!0;if(Array.isArray(W)&&Array.isArray(O)){if(W.length!==O.length)return!1;for(var L=0;L<W.length;L++)if(!L_(W[L],O[L],b,T))return!1;return!0}if(W instanceof Set||O instanceof Set){if(W instanceof Set&&O instanceof Set){if(W.size!==O.size)return!1;T=_.S(W.values());for(L=T.next();!L.done;L=T.next())if(!O.has(L.value))return!1;return!0}return!1}if(W instanceof Function){if(T)return!0;W.name===""&&_.Dt(Error("Hf"),"ERROR");return!1}if(W instanceof Date&&O instanceof
Date)return W.getTime()===O.getTime();if(W instanceof Object&&O instanceof Object){if(Lge(W)&&Lge(O))try{return W.equals(O)}catch(Z){_.Dt(Error("If`"+Z),"ERROR")}L=Object.getOwnPropertyNames(W).filter(function(Z){return b?W[Z]!==void 0:!0});
var h=Object.getOwnPropertyNames(O).filter(function(Z){return b?O[Z]!==void 0:!0});
if(L.length!==h.length)return!1;L=_.S(L);for(h=L.next();!h.done;h=L.next())if(h=h.value,!L_(W[h],O[h],b,T))return!1;return!0}return!1};
Lge=function(W){W=Object.getPrototypeOf(W).equals;return W instanceof Function&&W.length===1};
_.SZe=function(){return _.I(function(W){if(W.nextAddress==1)return dh2!==2?W.jumpTo(2):_.Y(W,hI1(),3);W.nextAddress!=2&&(dh2=W.yieldResult);return W.return(dh2)})};
_.azq=function(){return _.I(function(W){if(W.nextAddress==1)return _.e("ab_pl_man")?ZmO!==2?W.jumpTo(2):_.Y(W,IzX(),3):W.return(1);W.nextAddress!=2&&(ZmO=W.yieldResult);return W.return(ZmO)})};
E_Q=function(){return _.I(function(W){if(W.nextAddress==1)return _.e("ab_fk_sk_cl")?mhe!==2?W.jumpTo(2):_.Y(W,YZi(),3):W.return(1);W.nextAddress!=2&&(mhe=W.yieldResult);return W.return(mhe)})};
_.X0E=function(){return _.I(function(W){if(W.nextAddress==1)return _.e("ab_det_apb_b")?w0X!==2?W.jumpTo(2):_.Y(W,AeE(),3):W.return(1);W.nextAddress!=2&&(w0X=W.yieldResult);return W.return(w0X)})};
eIE=function(){var W;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,Promise.all([_.SZe(),_.X0E(),_.azq(),E_Q()]),2);if(O.nextAddress!=3)return Uhh()?O.return(!0):_.Y(O,_.lzX(),3);W=O.yieldResult;return O.return(W===0)})};
Uhh=function(){var W=!1,O=function(b,T){PHh.increment(T,b);b===0&&(W=!0)};
O(_.p0X(),"j.s_");O(dh2,"f.i_");O(w0X,"a.b_");O(ZmO,"p.m_");O(mhe,"i.f_");RI8===2&&(RI8=_.Kg1(v_i));O(RI8,"e.h_");_.e("ks_det_gpbl")||O(_.g_O(),"p.i_");_.e("ks_get_o_pp")||O(_.o_O(),"g.o_");_.e("ab_deg_unex_thr")||O(_.QLX(),"a.o_");O(kzX,"s.t_");_.e("ab_det_sc_inj_enf")&&O(_.sLX(),"s.i_");O(BBE,"d.p_");O(_.reX(_.dE),"o.p_");O(_.Dh1()===0?0:_.xhX(),"o.a_");return _.e("debug_sk_em_precheck")?!0:W};
CHO=function(){var W=[].concat(_.PG(zIP));try{var O=b8();W.push({jsonRepresentation:O.jsonRepresentation,objectRepresentation:O.objectRepresentation})}catch(b){W=[].concat(_.PG(zIP))}return W};
qZE=function(){var W=["adPlacements","adSlots"];try{return W.filter(function(){return!0}).length!==W.length?0:1}catch(O){return 0}};
_.o_O=function(){if(qZE()===0)return 0;var W=b8(),O=W.objectRepresentation,b=(0,_.PQ.unsafeClone)(O),T=[];if(O&&typeof O==="object")for(var L in O)T.push(L);else return 4;W=W.objectRepresentation.adPlacements;if(!(W&&W.length>0))return 4;try{if(!jLh(T,Object.getOwnPropertyNames(O)))return 0}catch(h){return 0}return jLh(b,O)?1:0};
_.reX=function(W){var O=Object.getOwnPropertyNames(Object.prototype);W=_.S(W);for(var b=W.next();!b.done;b=W.next()){b=_.yV(b.value);for(var T=_.S(O),L=T.next();!L.done;L=T.next())if(b===L.value)return 0}return 1};
n_h=function(W){var O=_.yV(W[1]);if(W[0]===null)return O;W=W[0];for(var b={},T=0;T<W.length;T++){var L=_.yV(W[T]);if(T===0)b[L]=O;else{var h={};h[L]=b;b=h}}return b};
_.Dh1=function(){for(var W=_.ho,O=0;O<W.length;O++){var b=n_h(W[O]),T=[];T.push(b);if(T.length===0)return 0}return 1};
_.xhX=function(){for(var W=_.ho,O={},b=0;b<W.length;O={oix:void 0},b++){var T=[n_h(W[b])];O.oix=[];T.forEach(function(L){return function(h){L.oix[L.oix.length]=h}}(O));
if(O.oix.length===0)return 0}return 1};
_.p0X=function(){for(var W=_.S(CHO()),O=W.next();!O.done;O=W.next()){var b=O.value;O=b.jsonRepresentation;b=b.objectRepresentation;try{var T=JSON.parse(O);if(!L_(T,b,!1,!1))return 0}catch(L){return 0}}return 1};
_.sLX=function(){try{var W=_.hL("ab_det_sc_inj_val");W.length===1&&W[0]===""&&(W=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var O=document.querySelectorAll("script"),b=_.S(O),T=b.next();!T.done;T=b.next())for(var L=T.value,h=_.S(W),Z=h.next();!Z.done;Z=h.next()){var a=Z.value;O=void 0;if((O=L.textContent)==null?0:O.includes(a))return 0}}catch(m){return 4}return 1};
_.lzX=function(){var W,O,b,T,L,h,Z;return _.I(function(a){switch(a.nextAddress){case 1:_.LI(a,2),W=_.S(zIP),O=W.next();case 4:if(O.done)return a.return(1);T=b=O.value;L=T.jsonRepresentation;h=T.objectRepresentation;return _.Y(a,(new Response(L,{status:200})).json(),7);case 7:Z=a.yieldResult;if(!L_(Z,h,!1,!1))return a.return(0);O=W.next();a.jumpTo(4);break;case 2:return _.ID(a),a.return(4)}})};
_.QLX=function(){try{btoa("abc")}catch(W){return 0}return 1};
hI1=function(){var W,O,b,T,L,h,Z,a,m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:_.LI(X,2),W=_.S(CHO()),O=W.next();case 4:if(O.done)return X.return(1);T=b=O.value;L=T.jsonRepresentation;h=T.objectRepresentation;Z=btoa(L);a="data:application/json;base64,"+Z;m=new Request(a);Object.defineProperty(m,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(m,"method",{get:function(){return"POST"}});
Object.defineProperty(m,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(m,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(m,"body",{get:function(){return new ReadableStream}});
return _.Y(X,fetch(m),7);case 7:return w=X.yieldResult,_.Y(X,w.json(),8);case 8:A=X.yieldResult;if(!L_(A,h,!1,!1))return X.return(0);O=W.next();X.jumpTo(4);break;case 2:return _.ID(X),X.return(4)}})};
_.Kg1=function(W){for(var O=function(L){return _.yV(L)},b=2,T=0;T<W.length&&(b=_.fzq(_.im8(W[T],O)),b!==0);T++);
return b};
_.fzq=function(W){var O=_.S(W);W=O.next().value;O=O.next().value;try{var b=document.createElement("div");document.body.appendChild(b);var T=getComputedStyle(b).display;document.body.removeChild(b);if(T==="none")return 4;var L=getComputedStyle(O).display==="none"?0:1;document.body.removeChild(W);return L}catch(h){return 4}};
YZi=function(){var W,O,b;return _.I(function(T){W=new _.S4;O=document.createElement("button");O.classList.add("ytp-ad-skip-button");O.style.opacity="0";O.style.height="0px";O.style.width="0px";O.style.padding="0px";O.style.border="none";b=function(){O.parentElement&&O.parentElement.removeChild(O)};
O.onclick=function(){W.resolve(0);b()};
document.body.appendChild(O);setTimeout(function(){b();W.resolve(1)},50);
return T.return(W.promise)})};
IzX=function(){var W,O,b,T,L,h,Z;return _.I(function(a){W=new _.S4;O=document.createElement("ytd-player");try{document.body.prepend(O)}catch(m){return a.return(4)}b=function(){O.parentElement&&O.parentElement.removeChild(O)};
O.getElementsByTagName("div").length>0?T=O.getElementsByTagName("div")[0]:(T=document.createElement("div"),O.appendChild(T));L=document.createElement("div");T.appendChild(L);h=document.createElement("video");Z=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});h.src=_.EB(_.eL(Z));h.ontimeupdate=function(){b();W.resolve(0)};
L.appendChild(h);h.classList.add("html5-main-video");setTimeout(function(){L.classList.add("ad-interrupting")},200);
setTimeout(function(){b();W.resolve(1)},5E3);
return a.return(W.promise)})};
GzO=function(W,O){var b,T;return _.I(function(L){switch(L.nextAddress){case 1:b=[],T=0;case 2:if(!(T<3)){L.jumpTo(4);break}return _.Y(L,fetch(W,{cache:"no-store",method:O}).then(function(h){b.push(h.status)}).catch(function(){b.push(-1)}),3);
case 3:T++;L.jumpTo(2);break;case 4:return L.return(b)}})};
HmX=function(W){return W.domainLookupStart===0&&W.domainLookupEnd===0&&W.connectStart===0&&W.connectEnd===0};
tui=function(W,O,b){b=b===void 0?"GET":b;var T,L,h,Z,a,m,w,A,X,l;return _.I(function(p){if(p.nextAddress==1)return _.Y(p,Promise.all([GzO(W,b),GzO(O,b)]),2);T=p.yieldResult;L=_.S(T);h=L.next().value;Z=L.next().value;a=h;m=Z;if(Math.min.apply(Math,_.PG(m))!==Math.max.apply(Math,_.PG(m))||Math.min.apply(Math,_.PG(a))!==Math.max.apply(Math,_.PG(a)))return p.return(2);if(Math.min.apply(Math,_.PG(m))===Math.min.apply(Math,_.PG(a)))return p.return(1);A=(w=performance.getEntriesByName(W))==null?void 0:w[0];
l=(X=performance.getEntriesByName(O))==null?void 0:X[0];return A&&l?HmX(l)?p.return(1):HmX(A)?p.return(0):p.return(1):p.return(2)})};
AeE=function(){var W;return _.I(function(O){var b=[];var T;var L,h,Z;(L=T=(L=b8().objectRepresentation.streamingData)==null?void 0:(h=L.formats)==null?void 0:(Z=h[0])==null?void 0:Z.url)&&L&&!T.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(L=L.replace("initcwndbps","ctier=L&initcwndbps"),L=L.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),T={testUrl:L,baseUrl:T,method:"GET"}):T=void 0;T&&b.push(T);_.e("ab_net_tp_e")&&b.push({testUrl:_.i1.location.origin+"/ad_companion",baseUrl:_.i1.location.origin+
"/generate_204",method:"OPTIONS"});if(_.e("ad_net_pb_ab")){var a;b:{T=/api\/stats\/ads/;var m,w,A,X;L=(a=b8().objectRepresentation.adPlacements)==null?void 0:(m=a[0])==null?void 0:(w=m.adPlacementRenderer)==null?void 0:(A=w.renderer)==null?void 0:(X=A.linearAdSequenceRenderer)==null?void 0:X.linearAds;if(L!=null&&L.length&&(a=_.P(L[0],$hO))&&(a=a.pings,a!=null&&a.impressionPings))for(m=[].concat(_.PG(a.impressionPings)),a.progressPings&&(m=[].concat(_.PG(m),_.PG(a.progressPings))),a=_.S(m),m=a.next();!m.done;m=
a.next())if(m=m.value,m.baseUrl&&T.test(m.baseUrl)){a=m.baseUrl.replace("https://www.youtube.com","");break b}a=void 0}a&&b.push({testUrl:_.i1.location.origin+a,baseUrl:_.i1.location.origin+"/feed/download",method:"GET"})}if(_.e("ad_net_pb_pbp")){var l;b:{a=/api\/stats\/qoe/;if(m=b8().objectRepresentation.playbackTracking){w=[];w.push(m==null?void 0:(l=m.videostatsPlaybackUrl)==null?void 0:l.baseUrl);var p;w.push(m==null?void 0:(p=m.videostatsDelayplayUrl)==null?void 0:p.baseUrl);var K;w.push(m==
null?void 0:(K=m.videostatsWatchtimeUrl)==null?void 0:K.baseUrl);var k;w.push(m==null?void 0:(k=m.ptrackingUrl)==null?void 0:k.baseUrl);var r;w.push(m==null?void 0:(r=m.qoeUrl)==null?void 0:r.baseUrl);var q;w.push(m==null?void 0:(q=m.atrUrl)==null?void 0:q.baseUrl);l=_.S(w);for(p=l.next();!p.done;p=l.next())if((p=p.value)&&a.test(p)){l=p.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}l=void 0}l&&b.push({testUrl:_.i1.location.origin+l,baseUrl:_.i1.location.origin+
"/feed/download",method:"GET"})}b=b.length!==0?b[Math.floor(Math.random()*b.length)]:void 0;return(W=b)?O.return(tui(W.testUrl,W.baseUrl,W.method)):O.return(4)})};
_.g_O=function(){if(_.i1.tcb===void 0||_.i1.tcb===null||typeof _.i1.tcb!=="function")return 2;try{return _.i1.tcb()===!0?0:1}catch(W){return 0}};
VuX=function(W){switch(W){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.SB(W,"unknown result type")}};
_.NBO=function(W,O){var b=Number(_.Cv("CATSTAT",0));if(O.a8I===void 0)return b;O=O.a8I;W=VuX(W);return b&~(3<<O)|W<<O};
Muq=function(W){var O,b;if((W=(O=W.auxiliaryUi)==null?void 0:(b=O.messageRenderers)==null?void 0:b.bkaEnforcementMessageViewModel)&&W.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return W};
Jei=function(){for(var W=_.S(Object.values(_.uXX)),O=W.next();!O.done;O=W.next())O=O.value,O.isAsync&&O.a8I&&_.zT("CATSTAT",_.NBO(2,O))};
_.mm=function(W,O){W=_.Zr("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",W);(O===void 0?0:O)?_.ceX(W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.Iu(_.au(),W,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
yeX=function(){if(!FgX){if(Polymer.Base){var W=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{W.apply(this,arguments)}catch(X){_.nv(X)}};
var O=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{O.apply(this,arguments)}catch(X){_.nv(X)}};
var b=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{b.apply(this,arguments)}catch(X){_.nv(X)}};
var T=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{T.apply(this,arguments)}catch(X){_.nv(X)}};
var L=Polymer.Base._listen,h=new WeakMap;Polymer.Base._listen=function(X,l,p){var K=function(){try{p.apply(this,arguments)}catch(k){_.nv(k)}};
h.set(p,K);L.call(this,X,l,K)};
var Z=Polymer.Base._unlisten;Polymer.Base._unlisten=function(X,l,p){Z.call(this,X,l,h.get(p))}}if(Polymer.Async){var a=Polymer.Async,m=a._atEndOfMicrotask;
a._atEndOfMicrotask=function(){try{m.apply(a,arguments)}catch(X){_.nv(X)}}}if(Polymer.RenderStatus){var w=Polymer.RenderStatus,A=w.afterNextRender;
w.afterNextRender=function(X,l,p){A.call(w,X,function(){try{l.apply(this,arguments)}catch(K){_.nv(K)}},p)}}FgX=!0}};
_.Y1=function(W){var O=W?_.mp(W):"";if(O){if(O.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(O.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(O.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(O.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(O.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(O.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";O=O.toLowerCase();if(O==="/")return"home";if(O===
"/channel_memberships")return"channel-memberships-shopfront";if(O.indexOf("/feed/trending")===0)return"trending";if(O.indexOf("/feed/explore")===0)return"explore";if(O.indexOf("/live")===0)return"live";if(O.indexOf("/results")===0)return"search";if(O.indexOf("/sports")===0)return"sports";if(O.indexOf("/fashion")===0||O.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(O))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(O))return"learning";
if(O.indexOf("/channel/")===0||O.indexOf("/user/")===0||O.indexOf("/gaming")===0||O.indexOf("/post/")===0)return"channel";if(WxO(W))return"show";if(O==="/playlist"||O.indexOf("/playlist/")===0||O==="/view_play_list"||O.indexOf("/view_play_list/")===0||O.indexOf("/show/")===0)return"playlist";if(O==="/feed/history"||O.indexOf("/feed/history/")===0)return"history";if(O==="/new")return"labs";if(O==="/feed/subscriptions")return"subscriptions";if(O.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(O==="/history_controls")return"standalone";if(O.indexOf("/account")===0||O==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(O.indexOf("/paid_memberships")===0||O.indexOf("/refund")===0||O.indexOf("/purchases")===0||O.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(O.indexOf("/product")===0)return"yts-products";if(O.indexOf("/premium")===0||O.indexOf("/musicpremium")===0)return O.indexOf("/premium/offers")===0||O.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(O===
"/cart/checkout"||O==="/cart")return"ypc-checkout";if(O.indexOf("/feed/downloads")===0||O.indexOf("/redeem")===0||O.indexOf("/reporthistory")===0)return"browse";if(O.indexOf("/hashtag")===0)return"hashtag-landing-page";if(O.indexOf("/handle")===0)return"handle";if(O.indexOf("/source")===0)return"audio-pivot";if(O.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(O.indexOf("/playables")===0)return"playables";if(O.indexOf("/create/live/join")===0)return"open-in-app";if(O.indexOf("/shorts")===
0)return"shorts";if(O.indexOf("/feed/channels")===0)return"subscriptions-channels";(O=W?_.mp(W):"")&&O.indexOf("/watch")===0&&_.e("web_watch_enable_learning_journey")?(W=_.NC(W),W=!!W.list&&W.list.indexOf("LJPP")===0):W=!1;if(W)return"learning_journey_watch"}};
_.EP=function(W){var O,b;(W=(b=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:b.url)&&(O=_.Y1(W));return O};
WxO=function(W){var O=W?_.mp(W):"";if(!O)return!1;O=O.toLowerCase();return O.indexOf("/show/")===0||O.indexOf("/playlist")===0&&(W=_.NC(W),W.list&&W.list.indexOf("EL")===0)?!0:!1};
XE=function(W){var O="unknown",b;var T=((b=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:b.webPageType)||"";T?(b=T.toLowerCase(),b.startsWith("web_page_type_")&&(b=b.slice(14))):b=T;b&&O61[b.toUpperCase()]?O=O61[b.toUpperCase()]:_.P(W,_.wE)||_.P(W,i6O)?O="browse":_.P(W,_.Ao)?O="search":_.P(W,_.V3)&&(O="watch");O==="watch"&&_.EP(W||null)==="learning_journey_watch"&&(O="learning_journey_watch");O==="unknown"&&_.z5(Error("Kf`"+JSON.stringify({clickTrackingParams:W==null?void 0:W.clickTrackingParams,
commandMetadata:W==null?void 0:W.commandMetadata,allEndpointKeys:Object.keys(W||[])})));return O};
_.UP=function(W){if(!_.b62||W)_.b62=_.Sp();return _.b62};
_.jVi=function(W){return!!_.P(W,_.V3)||!!_.P(W,_.l8)&&_.e("kevlar_enable_shorts_prefetch")};
_.TwP=function(W,O){W=_.P(W,_.V3)||_.P(W,_.l8);return"v"+W.videoId+(W.playlistId?"-pl"+W.playlistId:"")+(O?"-an1":"")+(W.params?"-pr"+W.params:"")};
e4=function(W){return function(){return new W}};
Ph=function(W){var O=_.iq();return function(){return O.resolve(W)}};
dl2=function(W){var O=_.Lu("web_pbj_log_warning_rate",0);O=O>0&&Math.random()<O;if(!_.P(W,_.l8))return O&&_.z5(Error("Nf")),!1;var b;return _.e("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.P(W,_.l8))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:LxP(W)?!0:(O&&_.z5(Error("Of")),!1)};
LxP=function(W){var O=(_.P(W,_.V3)||_.P(W,_.l8)).videoId;if(!O||!hi8.test(O))return!1;var b;return(W=(b=_.P(W.commandMetadata,_.F9))==null?void 0:b.url)&&(W.includes(O)||W.startsWith("/clip"))?!0:!1};
_.Z6h=function(){var W=_.Xt();return W.getFlag(192)?W.getFlag(190):!(_.e("web_watch_cinematics_disabled_by_default")||_.e("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&S6Q())};
_.p_=function(W,O,b){var T={};T.currentUrl=O;T.vis=W.vis!==void 0?W.vis:0;T.splay=!1;O=_.Xt();T.autoCaptionsDefaultOn=O.getFlag(66);O.getFlag(141)?O.getFlag(140)?T.autonavState="STATE_OFF":T.autonavState="STATE_ON":T.autonavState="STATE_NONE";T.html5Preference="HTML5_PREF_WANTS";isNaN(_.Cv("STS"))||(T.signatureTimestamp=_.Cv("STS"));W.autonav&&(T.autoplay=!0,T.autonav=!0);W.mutedAutoplay&&(T.autoplay=!0,T.mutedAutoplay=!0);W.inlinePlayback&&(T.autoplay=!0,T.autonav=!1,T.isInlineUnmutedPlayback=!!W.inlineUnmuted);
T.referer=b;T.lactMilliseconds=W.lact!==void 0?W.lact.toString():"-1";_.e("enable_unknown_lact_fix_on_html5")&&T.lactMilliseconds==="-1"&&_.z5(new _.pu("Unknown LACT is set in playbackContext.",{"lact in tempData":W.lact||"undefined",autonav:W.autonav||"undefined"}));W={};O.getFlag(194)&&(W.hasShownAmbientMode=!0);O.getFlag(192)&&(W.hasToggledOffAmbientMode=!0);_.Z6h()&&(W.watchAmbientModeEnabled=!0);T.watchAmbientModeContext=W;return T};
IxT=function(W){var O={},b=W.pbis||0;b&&(O.playbackBeginsInSeconds=b);W.prefetch_reason&&W.prefetch_reason==="hc_pbis"&&(O.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return O};
_.K_=function(W){W=W===void 0?!1:W;var O=_.Xt(),b="USER_INTERFACE_THEME_LIGHT";O.getFlag(165)?b="USER_INTERFACE_THEME_DARK":O.getFlag(174)?b="USER_INTERFACE_THEME_LIGHT":_.Ru()&&(b="USER_INTERFACE_THEME_DARK");return W?b:axh()||b};
_.mlP=function(){return!_.e("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Ru=function(){return _.mlP()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.vh=function(){var W=_.Xt();return _.mlP()&&!W.getFlag(165)&&!W.getFlag(174)};
axh=function(){var W=W===void 0?window.location.href:W;if(_.e("kevlar_disable_theme_param"))return null;var O=_.mp(W);if(_.Y6T(O))return"USER_INTERFACE_THEME_DARK";try{var b=_.NC(W).theme;return EdX.get(b)||null}catch(T){}return null};
_.Y6T=function(W){return _.e("enable_dark_theme_only_on_shorts")?!(W==null||!W.startsWith("/shorts/")):!1};
_.XPX=function(W,O,b,T,L){O=O===void 0?!1:O;b=b===void 0?!1:b;var h=_.Cv("INNERTUBE_CONTEXT");if(!h)return _.Dt(Error("Rf")),{};h=(0,_.PQ.unsafeClone)(h);_.e("web_no_tracking_params_in_shell_killswitch")||delete h.clickTracking;h.client||(h.client={});var Z=h.client;Z.clientName==="MWEB"&&Z.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(Z.clientFormFactor=_.Cv("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");Z.screenWidthPoints=window.innerWidth;Z.screenHeightPoints=window.innerHeight;Z.screenPixelDensity=
Math.round(window.devicePixelRatio||1);Z.screenDensityFloat=window.devicePixelRatio||1;Z.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());Z.userInterfaceTheme=_.K_();if(!O){var a=_.hHX();a&&(Z.connectionType=a);_.e("web_log_effective_connection_type")&&(a=ZqX())&&(h.client.effectiveConnectionType=a)}var m;if(_.e("web_log_memory_total_kbytes")&&((m=_.i1.navigator)==null?0:m.deviceMemory)){var w;m=(w=_.i1.navigator)==null?void 0:w.deviceMemory;h.client.memoryTotalKbytes=""+m*1E6}O&&T&&!_.e("web_it_context_set_original_url_ks")&&
(Z.originalUrl=wPi(_.i1.location.href,T).toString());_.e("web_gcf_hashes_innertube")&&(a=e$1())&&(w=a.coldConfigData,m=a.coldHashData,a=a.hotHashData,h.client.configInfo=h.client.configInfo||{},w&&(h.client.configInfo.coldConfigData=w),m&&(h.client.configInfo.coldHashData=m),a&&(h.client.configInfo.hotHashData=a));w=_.NC(_.i1.location.href);!_.e("web_populate_internal_geo_killswitch")&&w.internalcountrycode&&(Z.internalGeo=w.internalcountrycode);!_.e("web_populate_client_screen_killswitch")&&L&&(Z.clientScreen=
L);Z.clientName==="MWEB"||Z.clientName==="WEB"?(Z.mainAppWebInfo={graftUrl:T||_.i1.location.href},_.e("kevlar_woffle")&&_.gE.instance&&(T=_.gE.instance,Z.mainAppWebInfo.pwaInstallabilityStatus=!T.appInstalledEventFired&&T.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),Z.mainAppWebInfo.webDisplayMode=mkO(),Z.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):Z.clientName==="TVHTML5"&&(!_.e("web_lr_app_quality_killswitch")&&
(T=_.Cv("LIVING_ROOM_APP_QUALITY"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{appQuality:T})),T=_.Cv("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(Z.tvAppInfo=Object.assign(Z.tvAppInfo||{},{certificationScope:T}));!_.e("web_populate_time_zone_itc_killswitch")&&(T=L1X())&&(Z.timeZone=T);(T=vF8())?Z.experimentsToken=T:delete Z.experimentsToken;Z=gFi();T=_.AWO();T=(0,_.PQ.getValues)(T.tokenJars);h.request=Object.assign({},h.request,{internalExperimentFlags:Z,consistencyTokenJars:T});!_.e("web_prequest_context_killswitch")&&
(Z=_.Cv("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(h.request.externalPrequestContext=Z);T=_.Xt();Z=T.getFlag(58);T=T.get("gsml","");h.user=Object.assign({},h.user);Z&&(h.user.enableSafetyMode=Z);T&&(h.user.lockedSafetyMode=!0);_.e("warm_op_csn_cleanup")?b&&(O=_.Bb())&&(h.clientScreenNonce=O):!O&&(O=_.Bb())&&(h.clientScreenNonce=O);W&&(h.clickTracking={clickTrackingParams:W});if(W=_.GT("yt.mdx.remote.remoteClient_"))h.remoteClient=W;_.ou.getInstance().setLocationOnInnerTubeContext(h);try{var A=COh(),
X=A.bid;delete A.bid;h.adSignalsInfo={params:[],bid:X};for(var l=_.S(Object.entries(A)),p=l.next();!p.done;p=l.next()){var K=_.S(p.value),k=K.next().value,r=K.next().value;A=k;X=r;W=void 0;(W=h.adSignalsInfo.params)==null||W.push({key:A,value:""+X})}var q,f;if(((q=h.client)==null?void 0:q.clientName)==="TVHTML5"||((f=h.client)==null?void 0:f.clientName)==="TVHTML5_UNPLUGGED"){var M=_.Cv("INNERTUBE_CONTEXT");M.adSignalsInfo&&(h.adSignalsInfo.advertisingId=M.adSignalsInfo.advertisingId,h.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",h.adSignalsInfo.limitAdTracking=M.adSignalsInfo.limitAdTracking)}}catch(V){_.Dt(V)}return h};
_.Ulq=function(W){var O=new QB(_.Cv("ONE_PICK_URL",""));O.urlParamMap_.set("hostId",W);(W=_.Cv("GAPI_LOCALE"))&&O.urlParamMap_.set("hl",W);(W=_.Cv("SESSION_INDEX"))&&O.urlParamMap_.set("authuser",W);(W=_.Cv("DELEGATED_SESSION_ID"))&&O.urlParamMap_.set("groupId",W);return O};
eiE=function(){var W=_.iq(),O=W.resolve(_.k1);W=W.resolve(_.sP);return new lxh(O,W)};
pPh=function(W){if(window.IntersectionObserver)return new PDP(W,400);throw new TypeError("Yf");};
KxQ=function(){var W=Hammer.TouchAction,O=W.prototype.preventDefaults;W.prototype.preventDefaults=function(b){var T=this.actions.indexOf("pan-down")>-1;if(!T)return O.call(this,b);if(!RiQ){var L=b.srcEvent;b=b.direction;var h;if((h=this.manager)==null?0:h.session.prevented)L.preventDefault();else if(T&&b&Hammer.DIRECTION_DOWN)return this.preventSrc(L)}}};
vdX=function(W){if(!W||W.size===0)return Hammer.DIRECTION_ALL;if(W.size===2){if(W.has("up")&&W.has("down"))return Hammer.DIRECTION_VERTICAL;if(W.has("right")&&W.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(W.size===1){if(W.has("up"))return Hammer.DIRECTION_UP;if(W.has("down"))return Hammer.DIRECTION_DOWN;if(W.has("right"))return Hammer.DIRECTION_RIGHT;if(W.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.od2=function(){return gdE?Promise.resolve(gdE):new Promise(function(W,O){var b=self.indexedDB.open("swpushnotificationsdb");b.onerror=O;b.onsuccess=function(){var T=b.result;if(T.objectStoreNames.contains("swpushnotificationsstore"))gdE=T,W(gdE);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.od2()};
b.onupgradeneeded=QVO})};
QVO=function(W){W=W.target.result;W.objectStoreNames.contains("swpushnotificationsstore")&&W.deleteObjectStore("swpushnotificationsstore");W.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
sV2=function(W){var O=kLq(),b;return _.I(function(T){switch(T.nextAddress){case 1:return _.LI(T,2),_.Y(T,W.match(O,{cacheName:"yt-appshell-assets"}),4);case 4:b=T.yieldResult;_.H3(T,3);break;case 2:_.ID(T);case 3:return T.return(b)}})};
kLq=function(){var W=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?Bwq.registration.scope:rWX;W.endsWith("/")&&(W=W.slice(0,-1));return W+"/app_shell_home"};
DlQ=function(W){W.map(function(O){return O.source}).join("|")};
_.xl8=function(W){return _.I(function(O){return O.return(sV2(W))})};
ziq=function(){var W=window.caches,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,_.xl8(W),2);O=b.yieldResult;return b.return(!!O)})};
tfP=function(){_.I(function(W){if(W.nextAddress==1){if(CD8)return W.jumpTo(0);CD8=!0;if(_.e("enable_system_health_primes_monitoring"))return _.Ie(q61,3E4),nd8(),W.return();if(!(Math.random()<_.Lu("web_system_health_fraction")))return W.jumpTo(0);fxO={heightPixels:screen.height,widthPixels:screen.width};rE&&!isNaN(rE.jsHeapSizeLimit)&&(fxO.memoryTotalKbytes=String(Math.round(rE.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(fxO.devicePixelRatio=window.devicePixelRatio);return _.Y(W,GLE(),4)}_.Ie(q61,
3E4);return _.Y(W,H6E(),0)})};
GLE=function(){return _.I(function(W){if(W.nextAddress==1)return Dr.intersectionObserverPresent="IntersectionObserver"in window,Dr.serviceWorkerPresent="serviceWorker"in navigator,Dr.webSharePresent="share"in navigator,Dr.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,Dr.cacheStoragePresent="caches"in window,Dr.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,Dr.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
Dr.webkitTemporaryStoragePresent="webkitTemporaryStorage"in x1&&x1.webkitTemporaryStorage&&"queryUsageAndQuota"in x1.webkitTemporaryStorage,Dr.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.Y(W,fuT(),2);Dr.indexedDbPresent=W.yieldResult;Dr.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;Dr.broadcastChannelPresent="BroadcastChannel"in window;Dr.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(Dr.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,Dr.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.aD(W)})};
q61=function(){var W=9E4+Math.random()*2E3;_.by()>W||(_.e("enable_system_health_primes_monitoring")?nd8():H6E())};
H6E=function(){var W;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,$lh(),2);W=O.yieldResult;_.BZ("systemHealthCaptured",W);_.aD(O)})};
nd8=function(){var W={metric:{}},O=VfX();O.networkEvents.length&&(W.metric.networkEvents=Nwh(O));_.BZ("systemHealthCaptured",W)};
$lh=function(){var W,O,b,T,L,h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:W={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)};O=window.screen;_.e("enable_is_extended_monitoring")&&O&&"isExtended"in O&&(W.isExtended=!!O.isExtended);b={metric:{staticContext:fxO,dynamicContext:W,webMetric:MfP,webApiSupport:Dr}};
if(T=_.Bb())b.csn=T;rE&&(b.metric.webMetric.currentHeapKbytes=Math.round(rE.usedJSHeapSize/1E3));window.matchMedia&&(b.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,b.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,b.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in x1&&typeof x1.getBattery==="function")){A.jumpTo(2);break}return _.Y(A,x1.getBattery(),3);case 3:if(L=
A.yieldResult)b.metric.dynamicContext.chargingStatus=L.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(b.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(Dr.storageEstimatePresent)return _.Y(A,navigator.storage.estimate(),8);if(!Dr.webkitTemporaryStoragePresent){A.jumpTo(5);break}return _.Y(A,u$8(),7);case 7:h=A.yieldResult;A.jumpTo(5);break;case 8:h=A.yieldResult;case 5:return b.metric.dynamicContext.deviceStorageQuotaMbytes=((Z=h)==null?0:Z.quota)?String(Math.round(h.quota/
1048576/10)*10):"-1",b.metric.dynamicContext.deviceStorageUsageMbytes=((a=h)==null?0:a.usage)?String(Math.round(h.usage/1048576/10)*10):"-1",m=b.metric.dynamicContext,_.Y(A,ziq(),9);case 9:return m.hasAppShell=A.yieldResult,w=VfX(),w.networkEvents.length&&(b.metric.networkEvents=Nwh(w)),A.return(b)}})};
u$8=function(){return new Promise(function(W){var O;Dr.webkitTemporaryStoragePresent&&(O=x1.webkitTemporaryStorage)!=null&&O.queryUsageAndQuota?x1.webkitTemporaryStorage.queryUsageAndQuota(function(b,T){W({usage:b,quota:T})}):W(void 0)})};
_.zF=function(W){W&=16777215;W=[(W&16711680)>>16,(W&65280)>>8,W&255];return JWP(W[0],W[1],W[2])};
_.C_=function(W){W=[(W&16711680)>>>16,(W&65280)>>>8,W&255,(W&4278190080)>>>24];var O=_.cWh(W,function(b){return b==(b&255)});
W[3]=(W[3]/255).toFixed(3);if(!O)throw Error("Zf`"+W.join(","));return"rgba("+W.join(",")+")"};
_.Fxi=function(W){return[(W&16711680)>>>16,(W&65280)>>>8,W&255]};
_.yW8=function(W){W=W.map(function(O){O/=255;return O<=.03928?O/12.92:Math.pow((O+.05)/1.05,2.4)});
return W[0]*.2126+W[1]*.7152+W[2]*.0722};
qd=function(W,O){W=_.Fxi(W);return"rgba("+W[0]+", "+W[1]+", "+W[2]+", "+O+")"};
_.WfX=function(){try{return!!self.localStorage}catch(W){return!1}};
jlE=function(){if(Oh8())_.z5(Error("$f"));else{var W=document.createElement("iframe");W.style.display="none";var O=O===void 0?window.location.href:O;var b=_.BO(_.Cv("PERSIST_IDENTITY_IFRAME_URL"));O=b?b:(new URL(O)).host.indexOf("studio")===0?_.yN(ihq,"persist_identity"):_.yN(bhi,"persist_identity");_.UAO(W,1,O);W.id="persist_identity";var T;(T=document.body)==null||T.appendChild(W)}};
Oh8=function(){var W=TnP;W||(W=document.querySelector("#persist_identity"));return W};
Lf1=function(){var W=!1;try{W=!!window.sessionStorage.getItem("session_logininfo")}catch(O){W=!0}return(_.Cv("INNERTUBE_CLIENT_NAME")==="WEB"||_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&W};
d5e=function(W,O){if(!Lf1())return!1;O||(O=_.Cv("LOGIN_INFO"));return O?(W.session_logininfo=O,!0):!1};
ShQ=function(W,O){W=W===void 0?!1:W;if((O===void 0||!O)&&hVq!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.qC("LOG_STICKINESS",!1)){O=_.Bb();var b=_.sk(),T={identityStickinessData:{initialState:hVq}};O&&b&&_.Mk(O,b,T)}if(O=Oh8())if(b=O.src?(new URL(O.src)).origin:"*",W){var L;(L=O.contentWindow)==null||L.postMessage({action:"clear"},b)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(W=window.sessionStorage.getItem("session_logininfo"))){var h;(h=O.contentWindow)==null||h.postMessage({loginInfo:W},b)}};
_.n_=function(W){W=W===void 0?!0:W;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.zT("LOGIN_INFO",""),W&&window.sessionStorage.setItem("from_switch_account","1"),ShQ(!0,W)}catch(O){}};
ZhE=function(W){W&&(W.startsWith("https://accounts.google.com/AddSession")?_.n_():W.startsWith("https://accounts.google.com/ServiceLogin")?_.n_():W.startsWith("https://myaccount.google.com")&&_.tV(W).getPath().endsWith("/youtubeoptions")&&_.n_())};
f_=function(W,O){ZhE(W);if(_.qC("LOGGED_IN",!0)&&Lf1()){var b=OWE(W);b==null&&(b={});d5e(b,O)&&_.JC(W,b)}};
IXi=function(){function W(O){for(O=O.target;O&&O.nodeName!=="A";)if(O=O.parentNode,!(O&&O instanceof HTMLElement))return;if(O&&!O.hasAttribute("download")&&O.getAttribute("rel")!=="external"&&O.href)return O.href}
document.addEventListener("mousedown",function(O){O.button!==0&&(O=W(O))&&f_(O)});
document.addEventListener("click",function(O){(O=W(O))&&f_(O)})};
YhP=function(){var W=new aXq;try{if(_.qC("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(a){W.increment(5,!1);return}if(_.Cv("LOGIN_INFO")){var O=m5h?m5h:window.location;_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&jlE();var b=OWE(O.href);b==null&&(b={});var T=b.session_logininfo,L=Number(window.sessionStorage.getItem("stickiness_reload")),h=T===_.Cv("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
L>=2||h)L>=2?W.increment(2,h):h?W.increment(7,h):window.sessionStorage.getItem("session_logininfo")||(W.increment(3,h),hVq="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Cv("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Cv("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))W.increment(4,h),window.sessionStorage.removeItem("stickiness_reload");
else if(L<2){window.sessionStorage.setItem("stickiness_reload",String(L+1));var Z=O.href;Z=_.cb(Z,"sttick");f_(Z,window.sessionStorage.getItem("session_logininfo"));Z=_.MC(Z,{sttick:L});W.increment(L,h);_.NI(O,Z)}}else W.increment(6,!1)}else _.n_(!1)}catch(a){}};
_.GF=function(W,O,b,T,L){O=O===void 0?{}:O;b=b===void 0?"":b;T=T===void 0?window:T;W=_.uW(W,O);f_(W);b=_.l7(W+b,L);_.NI(T.location,b)};
EoP=function(W){if(W.urlEndpoint){if(W=_.NC(W.urlEndpoint.url),W.adurl)return W3(W.adurl)}else if(W.watchEndpoint)return"//www.youtube.com/watch?v="+W.watchEndpoint.videoId;return null};
wwX=function(W){if(!W||!W.reportingPings)return null;var O={};W.reportingPings.forEach(function(b){b.pingType in O?O[b.pingType].push(b.url):O[b.pingType]=[b.url]});
return{adpings:Y0Q(O)}};
_.Hh=function(){return{isShellLoad:_.qC("IS_SHELL_LOAD",!1)}};
XwQ=function(){navigator.serviceWorker.getRegistrations().then(function(W){W.forEach(A51)})};
A51=function(W){W&&_.U52(lX8,W.scope)};
_.U52=function(W,O){O={scope:O||_.dO("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Zd(W),O)};
to=function(W,O,b,T){if(O&&O.serializedYpcCujLoggingParams){if(b){var L={};L.transactionErrorType=b;T&&(L.errorMessage=T);O.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:L}}}b={};b.ypcCujContext=O;W=_.Zr("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",W,b);_.Iu(_.au(),W,"FLOW_TYPE_YPC_ACQUISITION")}};
_.eVQ=function(W,O,b,T){var L={};L.serializedTransactionFlowLoggingParams=O;b&&(L.errorType=b);T&&(L.errorMessage=T);_.BZ(W,L);_.re()};
_.PoO=function(W){W&&_.eVQ("transactionFlowStarted",W)};
_.pwq=function(W){W&&_.eVQ("transactionFlowCancelled",W)};
_.$1=function(W,O,b){O&&_.eVQ("transactionFlowFailed",O,W,b)};
_.VB=function(){this.megabloxUrl_=null};
_.Nd=function(W){try{var O=RVX==null?void 0:RVX.composedPath(W)}catch(b){O=W.composedPath?W.composedPath():[]}return O&&O.length>0?O:W.composedPath?W.composedPath():[]};
_.Md=function(W){return _.Nd(W)[0]};
_.u8=function(W){if(!(W instanceof Element))return null;W=W.classList?Array.from(W.classList):void 0;if(!W)return null;var O=W.indexOf("style-scope");return O>-1&&O+1<W.length?W[O+1]:null};
Jo=function(W){if(!(W instanceof HTMLElement))return null;var O=W&&(W.$$||W.polymerController)?W.tagName.toLowerCase():null;return O?O:_.u8(W)};
Kf8=function(W,O){return W.replace(/[^a-z]*[^\s]+/g,function(b){return b+".style-scope."+O})};
voh=function(W,O){return O?W.split(",").map(function(b){return Kf8(b.trim(),O)}).join(", "):W};
_.yB=function(W){var O,b,T,L;return(L=(T=(b=(O=W.root)!=null?O:W.shadowRoot)!=null?b:W.__shady_native_shadowRoot)!=null?T:W.__shady_shadowRoot)!=null?L:W};
W_=function(W){return W instanceof ShadowRoot?ShadowRoot:W instanceof DocumentFragment?DocumentFragment:W instanceof Document?Document:HTMLElement};
goO=function(W){var O,b,T;return(T=(b=(O=W.parentElement)!=null?O:W.__shady_native_parentElement)!=null?b:W.__shady_parentElement)!=null?T:null};
oo1=function(W){var O,b,T;return(T=(b=(O=W.parentNode)!=null?O:W.__shady_native_parentNode)!=null?b:W.__shady_parentNode)!=null?T:null};
Qle=function(W){var O,b,T;return(T=(b=(O=W.__shady_parentNode)!=null?O:W.__shady_native_parentNode)!=null?b:W.parentNode)!=null?T:null};
klX=function(W){var O,b;return(b=(O=oo1(W))!=null?O:W.host)!=null?b:null};
slT=function(W){var O,b,T;return(T=(b=(O=W.nextSibling)!=null?O:W.__shady_native_nextSibling)!=null?b:W.__shady_nextSibling)!=null?T:null};
BnT=function(W){var O,b,T;return(T=(b=(O=W.previousSibling)!=null?O:W.__shady_native_previousSibling)!=null?b:W.__shady_previousSibling)!=null?T:null};
r51=function(W){var O,b,T;return(T=(b=(O=W.nextElementSibling)!=null?O:W.__shady_native_nextElementSibling)!=null?b:W.__shady_nextElementSibling)!=null?T:null};
D5Q=function(W){var O,b,T;return(T=(b=(O=W.previousElementSibling)!=null?O:W.__shady_native_previousElementSibling)!=null?b:W.__shady_previousElementSibling)!=null?T:null};
x58=function(W){var O,b,T;return new Set([].concat(_.PG((O=W.children)!=null?O:[]),_.PG((b=W.__shady_native_children)!=null?b:[]),_.PG((T=W.__shady_children)!=null?T:[])))};
zVP=function(W){var O,b,T;return new Set([].concat(_.PG((O=W.childNodes)!=null?O:[]),_.PG((b=W.__shady_native_childNodes)!=null?b:[]),_.PG((T=W.__shady_childNodes)!=null?T:[])))};
CoX=function(W){if(!W)return null;var O=_.u8(W);if(!O){var b;return(b=Node.prototype.getRootNode)==null?void 0:b.call(W)}O=O.toUpperCase();for(W=goO(W);W&&W.tagName!==O;)W=goO(W);return W?_.yB(W):null};
qhX=function(W){for(;W&&!(W instanceof HTMLElement);)W=klX(W);return W};
no8=function(W){var O=qhX(W);return W===O?_.u8(W):O?Jo(O):null};
fXT=function(W){return(W=qhX(W))?Jo(W):null};
GlE=function(W){if(W instanceof Comment)return!1;if(W instanceof Text){var O,b;if(((b=(O=W.textContent)==null?void 0:O.trim())!=null?b:"")==="")return!1}return!0};
Ol=function(W,O,b){var T=O(W);for(b=b===void 0?fXT(W):b;T&&(no8(T)!==b||!GlE(T));)W=T,T=O(W);return T};
Hhe=function(W,O,b){if(!O)return null;W=fXT(W);return no8(O)===W&&GlE(O)?O:Ol(O,b,W)};
tTe=function(W){return Ol(W,Qle,_.u8(W))};
$58=function(W){return Ol(W,r51)};
VTq=function(W){return Ol(W,slT)};
NnX=function(W){return Ol(W,D5Q)};
MT1=function(W){return Ol(W,BnT)};
u4X=function(W){return Hhe(W,W.firstChild||W.__shady_native_firstChild||W.__shady_firstChild||null,slT)};
J5X=function(W){var O,b,T;var L=(T=(b=(O=W.firstElementChild)!=null?O:W.__shady_native_firstElementChild)!=null?b:W.__shady_firstElementChild)!=null?T:null;return Hhe(W,L,r51)};
c52=function(W){var O,b,T;var L=(T=(b=(O=W.lastChild)!=null?O:W.__shady_native_lastChild)!=null?b:W.__shady_lastChild)!=null?T:null;return Hhe(W,L,BnT)};
Ffq=function(W){var O,b,T;var L=(T=(b=(O=W.lastElementChild)!=null?O:W.__shady_native_lastElementChild)!=null?b:W.__shady_lastElementChild)!=null?T:null;return Hhe(W,L,D5Q)};
y5E=function(W){var O=fXT(W);return Array.from(zVP(W)).filter(function(b){return no8(b)===O})};
WKe=function(W){var O=Jo(W);return Array.from(x58(W)).filter(function(b){return _.u8(b)===O})};
_.im=function(W,O,b){if(W instanceof HTMLElement&&_.u8(W)===b){var T=Array.from(W.classList).indexOf("style-scope");if(T===-1)W.classList.add("style-scope"),W.classList.add(O);else if(!(T+1>=W.classList.length)){T=W.classList[T+1];var L,h;W==null||(L=W.classList)==null||(h=L.replace)==null||h.call(L,T,O)}}if(W instanceof HTMLElement||W instanceof DocumentFragment)for(L=_.S(x58(W)),h=L.next();!h.done;h=L.next())_.im(h.value,O,b);return W};
bm=function(W,O){if(W instanceof HTMLElement&&_.u8(W)===O){var b=Array.from(W.classList).indexOf("style-scope");b===-1||b+1>=W.classList.length||W.classList.remove("style-scope",W.classList[b+1])}if(W instanceof HTMLElement||W instanceof DocumentFragment){b=_.S(W.children);for(var T=b.next();!T.done;T=b.next())bm(T.value,O)}return W};
_.O1X=function(W,O){return W_(W).prototype.appendChild.call(W,O)};
i1X=function(W,O){if(W===O)return!0;W=zVP(W);return Array.from(W).some(function(b){return i1X(b,O)})};
_.Q=function(W,O){if(W instanceof jl)return W;(O==null?0:O.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(W,"ownerDocument")&&Object.defineProperty(W,"ownerDocument",{get:function(){return window.document}});
return new jl(W)};
jCO=function(){var W=jl.prototype,O=[].concat(_.PG(b1X?[]:["getRootNode"]),["setAttribute","removeAttribute"]);O=_.S(O);for(var b=O.next(),T={};!b.done;T={method$jscomp$48:void 0},b=O.next())T.method$jscomp$48=b.value,W[T.method$jscomp$48]=function(L){return function(){return this.host[L.method$jscomp$48].apply(this.host,arguments)}}(T)};
LKQ=function(){var W=jl.prototype,O=[].concat(_.PG(b1X?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.PG(TT8?[]:["querySelector","querySelectorAll"]));O=_.S(O);for(var b=O.next(),T={};!b.done;T={method$jscomp$49:void 0},b=O.next())T.method$jscomp$49=b.value,W[T.method$jscomp$49]=function(L){return function(){return this.root[L.method$jscomp$49].apply(this.root,arguments)}}(T)};
SAi=function(){var W=jl.prototype,O=[].concat(_.PG(dT1?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.PG(hoX?[]:["parentNode"]));O=_.S(O);for(var b=O.next(),T={};!b.done;T={prop$jscomp$62:void 0},b=O.next())T.prop$jscomp$62=b.value,Object.defineProperty(W,T.prop$jscomp$62,{get:function(L){return function(){return this.host[L.prop$jscomp$62]}}(T),
configurable:!0})};
as2=function(){var W=jl.prototype,O=["activeElement"].concat(_.PG(dT1?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.PG(Z1h?[]:["children"]),_.PG(Is8?[]:["lastChild"]));O=_.S(O);for(var b=O.next(),T={};!b.done;T={prop$jscomp$63:void 0},b=O.next())T.prop$jscomp$63=b.value,Object.defineProperty(W,T.prop$jscomp$63,{get:function(L){return function(){return this.root[L.prop$jscomp$63]}}(T),
configurable:!0})};
mTq=function(){for(var W=jl.prototype,O=_.S(["innerHTML","textContent"]),b=O.next(),T={};!b.done;T={prop$jscomp$64:void 0},b=O.next())T.prop$jscomp$64=b.value,Object.defineProperty(W,T.prop$jscomp$64,{get:function(L){return function(){return this.root[L.prop$jscomp$64]}}(T),
set:function(L){return function(h){this.root[L.prop$jscomp$64]=h}}(T),
configurable:!0})};
YAi=function(W){var O=jl.prototype;W=_.S(Object.entries(W));for(var b=W.next(),T={};!b.done;T={fn$jscomp$361:void 0},b=W.next()){var L=_.S(b.value);b=L.next().value;L=L.next().value;T.fn$jscomp$361=L;O[b]=function(h){return function(){return h.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.PG(arguments)))}}(T)}};
w$X=function(){for(var W=jl.prototype,O=_.S(Object.entries(EYi)),b=O.next(),T={};!b.done;T={fn$jscomp$362:void 0},b=O.next()){var L=_.S(b.value);b=L.next().value;L=L.next().value;T.fn$jscomp$362=L;Object.defineProperty(W,b,{get:function(h){return function(){return h.fn$jscomp$362.apply(null,[this.host.node||this.host].concat(_.PG(arguments)))}}(T),
configurable:!0})}};
_.T0=function(W){return W instanceof AzX||W instanceof Document?W:new AzX(W)};
X$T=function(){for(var W=AzX.prototype,O=_.S("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),b=O.next(),T={};!b.done;T={method$jscomp$50:void 0},b=O.next())T.method$jscomp$50=b.value,W[T.method$jscomp$50]=function(L){return function(){return HTMLElement.prototype[L.method$jscomp$50].call.apply(HTMLElement.prototype[L.method$jscomp$50],[this.node].concat(_.PG(arguments)))}}(T)};
UTe=function(){for(var W=AzX.prototype,O=_.S("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),b=O.next(),T={};!b.done;T={prop$jscomp$65:void 0},b=O.next())T.prop$jscomp$65=b.value,Object.defineProperty(W,T.prop$jscomp$65,{get:function(L){return function(){var h;return(h=this.node["__shady_native_"+L.prop$jscomp$65])!=null?h:this.node[L.prop$jscomp$65]}}(T),
configurable:!0})};
_.L2=function(W,O,b){b===void 0&&(b=!W.classList.contains(O));b?W.classList.add(O):W.classList.remove(O)};
_.di=function(W,O,b){b===void 0&&(b=!W.hasAttribute(O));if(O==="class")throw Error("eg");b?_.T0(W).setAttribute(O,""):_.T0(W).removeAttribute(O)};
lsE=function(W){return(W.localName!=="slot"?[]:(0,_.h1)(W).assignedNodes({flatten:!0})).filter(function(O){return O.nodeType===Node.ELEMENT_NODE})};
_.eoi=function(W){return(W=_.Q(W).querySelector("slot"))&&W.localName==="slot"?lsE(W):[]};
_.Sl=function(W,O){window.ShadyCSS&&window.ShadyCSS.styleSubtree(W,O)};
ZQ=function(W,O){var b=O.bind(W);return function(T){b(T,T.detail)}};
_.Ii=function(W,O){var b=Pd2.get(W);b||(b=new WeakMap,Pd2.set(W,b));if(b.has(O))return b.get(O);if(_.e("web_fi_listen_disable_bound_fn_helper")){var T=O.bind(W);W=function(L){T(L,L==null?void 0:L.detail)}}else W=ZQ(W,O);
b.set(O,W);return W};
KKE=function(W,O){p$Q(W);W.created[RoX].push(O)};
p$Q=function(W){if(!W.created||!W.created[RoX]){var O=W.created,b=O?[O]:[];W.created=function(){for(var T=_.S(b),L=T.next();!L.done;L=T.next())L.value.apply(this)};
W.created[RoX]=b}};
vYh=function(W){return function(){var O=_.PD.apply(0,arguments);return function(b,T,L){W.apply(null,_.PG(O))(b,T,L)}}};
gY2=function(){return function(){var W=_.PD.apply(0,arguments);return function(O,b,T){PUX.apply(null,_.PG(W))(O,b,T)}}};
_.D=function(W){return gY2()(W)};
_.x=function(){return vYh(vqE).apply(null,_.PG(_.PD.apply(0,arguments)))};
_.ai=function(W){return _.e("pbcm_fi_listen_decorators")?oY8(W):vYh(R9E)(W)};
oY8=function(W){return function(O,b){KKE(O,function(){var T=this[b],L=_.e("web_fi_listen_disable_bound_fn_helper")?function(h){T(h,h.detail)}.bind(this):ZQ(this,T);
QCP.has(W)?kF(this.hostElement,W,L):this.hostElement.addEventListener(W,L)})}};
_.m5=function(){return vYh(KNE).apply(null,_.PG(_.PD.apply(0,arguments)))};
_.C=function(W){W=W===void 0?{}:W;return vYh(pRE)(W)};
_.YI=function(W){if(W.hostElement&&W!==W.hostElement){var O=_.Rs(W.hostElement);O=W.renderIdom?O:O.shadowRoot}O||(W=W.root,O=W instanceof Node?_.Rs(W):null);return O};
_.El=function(W){return kOP?sCO(W):function(O,b){Object.defineProperty(O,b,{get:function(){var T;return(T=_.YI(this))==null?void 0:T.querySelector(W)},
enumerable:!0,configurable:!0})}};
sCO=function(W){return function(O,b){Object.defineProperty(O,b,{get:function(){var T,L=(T=_.Q(this.hostElement))==null?void 0:T.querySelector(W);if(L)return L;var h;return(h=_.YI(this))==null?void 0:h.querySelector(W)},
enumerable:!0,configurable:!0})}};
_.wi=function(W){return kOP?BTE(W):function(O,b){Object.defineProperty(O,b,{get:function(){var T;return(T=_.YI(this))==null?void 0:T.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
BTE=function(W){return function(O,b){Object.defineProperty(O,b,{get:function(){var T,L=(T=_.Q(this.hostElement))==null?void 0:T.querySelectorAll(W);if(L==null?0:L.length)return L;var h;return(h=_.YI(this))==null?void 0:h.querySelectorAll(W)},
enumerable:!0,configurable:!0})}};
rze=function(W){return function(O){if(![_.cB,_.n].includes(Object.getPrototypeOf(O.prototype).constructor))throw Error("fg");YQh(Object.assign({},typeof W!=="string"?W:{is:W,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(O)}};
_.XT=function(){var W=W===void 0?{}:W;return function(O){if(![F2,_.A1].includes(Object.getPrototypeOf(O.prototype).constructor))throw Error("gg");EqO(Object.assign({},W,{disableInheritanceCheck:!0}))(O)}};
xT8=function(W,O){DTT[W]!=null||(DTT[W]=new Set);DTT[W].add(O)};
_.Ul=function(){var W=_.m5.apply(null,_.PG(_.PD.apply(0,arguments)));return function(O,b){xT8(O.is,b);W(O,b)}};
P_=function(W,O,b){if(lm(W)&&!zoQ.has(O)){O=O.replace(/^JSC\$[\d]+_/,"");O=O.replace(/\.\d+(\.|$)/g,function(h,Z){return".#"+Z});
el[W]!=null||(el[W]={});var T,L;(T=el[W])[L=O]!=null||(T[L]=new Set);el[W][O].has(b)||(el[W][O].add(b),_.BZ("polymerPropertyAccessEvent",{componentName:W,propertyName:O,accessType:b}))}};
Cdh=function(){return _.e("polymer_property_access_logging_debug")||_.e("polymer_enable_property_access_logging")};
lm=function(W){if(_.e("polymer_property_access_logging_debug"))return!0;if(!_.e("polymer_enable_property_access_logging"))return!1;qAE||(qAE=Date.now());return(nq(W)+qAE)%100<_.Lu("polymer_property_access_logging_percent")};
nYq=function(W,O){return lm(O)&&W.hostElement.loggingStatus?new Proxy(W,{get:function(b,T,L){if(b.hostElement.loggingStatus.bypassProxyController)return b[T];b.hostElement.loggingStatus.isExternalGet=!0;var h=b[T];b.hostElement.loggingStatus.isExternalGet=!1;if(h instanceof Function)return function(){var Z=_.PD.apply(0,arguments);try{return b.hostElement.loggingStatus.currentExternalCall=T,P_(O,T,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),h.apply(this===L?b:this,Z)}finally{b.hostElement.loggingStatus.currentExternalCall=
void 0}};
P_(O,T,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return h},
set:function(b,T,L){if(b.hostElement.loggingStatus.bypassProxyController)return b[T]=L,!0;b.hostElement.loggingStatus.isRendererStamper?P_(O,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):b.hostElement.loggingStatus.isDeclarativeExternal||P_(O,T,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{b.hostElement.loggingStatus.currentExternalSet=T,b[T]=L}finally{b.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):W};
fse=function(W,O){W&&W.loggingStatus&&!W.loggingStatus.isDeclarativeExternal&&!W.loggingStatus.isExternalGet&&W.loggingStatus.currentExternalSet!==O&&P_(W.tagName.toLowerCase(),O,"PROPERTY_ACCESS_GET_INTERNAL")};
p2=function(W,O,b){W&&(b||W.loggingStatus&&!W.loggingStatus.isInitializing&&!W.loggingStatus.isDefiningPropertyAccessor&&W.loggingStatus.currentExternalSet!==O)&&P_(W.tagName.toLowerCase(),O,"PROPERTY_ACCESS_SET_INTERNAL")};
GOX=function(){return{_definePropertyAccessor:function(W,O){var b=this,T=b.hostElement.loggingStatus;T&&(T.isDefiningPropertyAccessor=!0);var L=b[W];L!==void 0&&(b.__data?b._setPendingProperty(W,L):(b.__dataProto!=null||(b.__dataProto={}),b.__dataProto[W]=L));T&&(T.isDefiningPropertyAccessor=!1);Object.defineProperty(this,W,{get:function(){fse(b.hostElement,W);return this.__data[W]},
set:function(h){O||this._setPendingProperty(W,h,!0)&&this._invalidateProperties()}})},
created:function(){var W=this._setPendingProperty.bind(this);this._setPendingProperty=function(O,b,T){p2(this.hostElement,O);return W.apply(this,[O,b,T])}}}};
H1q=function(W){Cdh()&&_.D(Ri.prototype)(W.prototype,"__templateBindingLoggingBehavior")};
tUO=function(W,O){if(O.resolvedFactories.length!==W.resolvedFactories.length)return!0;O=_.S(O.resolvedFactories.entries());for(var b=O.next();!b.done;b=O.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;if(T.providerClass){if(T.providerClass!==W.resolvedFactories[b].providerClass)return!0}else if(T.providerValue){if(T.providerValue!==W.resolvedFactories[b].providerValue)return!0}else if(T.factory!==W.resolvedFactories[b].factory)return!0}return!1};
$TX=function(W,O){W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,b.constructor===Array)$TX(b,O);else{var T=O;T.has(b)||(b.inject&&T.add(b),b.behaviors&&$TX(b.behaviors,T))}};
K2=function(W,O){var b=W[O];W[O]=function(){var T=_.PD.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(b)return b.apply(this,T)}};
uo2=function(){_.v_.Class=function(b,T){b=VUX(b,T);K2(b.prototype,"created");return b};
K2(gi.prototype,"_initializeProperties");K2(_.oi.prototype,"_initializeProperties");if(NTE)K2(MUP,"created");else{var W=function(){K2(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))W();else{var O=customElements.define;customElements.define=function(b,T,L){O.call(customElements,b,T,L);b==="tp-yt-iron-list"&&(W(),customElements.define=O)}}}};
cz1=function(W,O){W.prototype.behaviors=W.prototype.behaviors||[];W.prototype.behaviors.unshift(Jzq.InjectBehavior);W.prototype.provide=O};
_.sl=function(W){return function(O){if(!W.disableElementRegistration){W.noInjection||cz1(O,W.providers);var b=O.prototype;b.__templateHelpers||PUX(Qv.prototype)(b,"__templateHelpers");b=W.is;FKq||(FKq=Date.now());(nq(b)+FKq)%100<_.Lu("polymer_log_prop_change_observer_percent")&&PUX(kI.prototype)(O.prototype,"__propertyObserverObserver");O.prototype.behaviors=O.prototype.behaviors||[];O.prototype.behaviors.unshift(_.yzX.YtHostElementBehavior);H1q(O);rze({is:W.is,notifyObserversOnUndefined:W.notifyObserversOnUndefined!==
!1,fastInit:W.fastInit,template:W.template,disableEnforceFastDefaultValuesCheck:!0})(O)}}};
_.G=function(W){return _.sl({is:W.is,template:W.template,disableElementRegistration:W.disableElementRegistration,cssBuildOptOut:W.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
iAe=function(W,O){if(Wh2){W=new W;for(var b=_.S(Object.getOwnPropertyNames(W)),T=b.next();!T.done;T=b.next())T=T.value,O[T]=W[T];for(b=O;b&&b!==Object.prototype;b=Object.getPrototypeOf(b)){T=_.S(Object.getOwnPropertyNames(b));for(var L=T.next();!L.done;L=T.next())L=L.value,W.hasOwnProperty(L)||Object.defineProperty(W,L,OAh(O,L))}}else W.apply(O)};
OAh=function(W,O){return{get:function(){var b=W[O];return b instanceof Function?b.bind(W):b},
set:function(b){W[O]=b}}};
jbT=function(W,O){for(var b=W._noAccessors,T=_.S(Object.getOwnPropertyNames(W)),L=T.next();!L.done;L=T.next())if(L=L.value,!bAq.has(L))if(b)O[L]=W[L];else{var h=Object.getOwnPropertyDescriptor(W,L);h&&(h.configurable=!0,Object.defineProperty(O,L,h))}};
ToX=function(W,O,b){return function(T){if(b){var L=b();T.model=L}if(W[O])W[O](T,T.detail)}};
B_=function(W){var O=[];if(typeof W==="string")W.length>0&&O.push.apply(O,_.PG(W.split(".")));else{W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,typeof b==="string"?O.push.apply(O,_.PG(b.split("."))):O.push(b)}return O};
LhE=function(W,O){if(O[O.length-1]!=="*"&&O[O.length-1]!=="splices"){for(var b=0;b<O.length;b++){if(!W)return;W=W[O[b]]}return W}};
doX=function(W,O){if(W.length>O.length)return!1;for(var b=0;b<W.length;b++)if(W[b]!==O[b])return!1;return!0};
SSO=function(W,O,b){if(O.type==="compute"){var T=O.getter.bind(b);var L=O.args}else T=function(){return b[O.method.methodName].apply(b,_.PG(_.PD.apply(0,arguments)))},L=O.method.args;
hY2(W,O.propertyKey,T,L,O.value)};
IHX=function(W,O){if(O.readOnly){var b=Object.getOwnPropertyDescriptor(W.model,O.propertyKey);Object.defineProperty(W.model,O.propertyKey,{get:b.get,set:function(){}});
W.model[ZAO(O.propertyKey)]=b.set}};
aHQ=function(W,O,b){if(b){var T=O.propertyKey,L=O.selector;O=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.PG(O.selectorArgs.map(function(h){return{type:"path",path:h}})));
hY2(W,T,function(h){var Z=_.PD.apply(1,arguments);return L.apply(null,[b.getState()].concat(_.PG(Z)))},O)}};
YSX=function(W,O,b){var T=_.Ek(O.propertyKey)+"-changed";moq(W,function(L){var h={value:L.value,queueProperty:!0};L.path.split(".").length>1&&(h.path=L.path);b.dispatchEvent(new CustomEvent(T,{detail:h}))},[{type:"wildcard",
path:O.propertyKey}])};
EuE=function(W,O,b){moq(W,function(){b[O.method.methodName].apply(b,_.PG(_.PD.apply(0,arguments)))},O.method.args)};
ZAO=function(W){return"_set"+(W.charAt(0).toUpperCase()+W.slice(1))};
wdi=function(){var W,O=Bj(function(b){W=b},!1);
return[W,O]};
eYP=function(W){W=W.trim().replace(ADq,",").replace(XdT,"$1");var O=W[0];O==="-"&&(O=W[1]);if(O>="0"&&O<="9")return{type:"literal",value:Number(W)};if(O==="'"||O==='"')return{type:"literal",value:W.slice(1,-1)};if(O=W.match(UoP)){O=O[1];var b=lHO[O];if(b)return{type:b,path:W.slice(0,-(O.length+1))}}return{type:"path",path:W}};
KhT=function(W){var O=W.match(PL8);if(O)return W={methodName:O[1],args:pde},O[2].trim()&&(O=O[2].replace(RYe,"&comma;").split(","),W.args=O.map(eYP)),W};
vu8=function(W,O,b,T){T=T===void 0?!1:T;O=_.Ek(O);var L=U0;L&&(b=L(b,O,"attribute",W));ri(W,b,O,T)};
ri=function(W,O,b,T){O=guq(O,T===void 0?!1:T);O===void 0?W.removeAttribute(b):W.setAttribute(b,O)};
guq=function(W,O){switch(typeof W){case "object":case "function":if(W instanceof Date)return W.toString();if(W){if((O===void 0?0:O)&&!_.e("polymer_reflect_objects_as_boolean_killswitch"))return W?"":void 0;O=window.trustedTypes?window.trustedTypes.isHTML(W)||window.trustedTypes.isScript(W)||window.trustedTypes.isScriptURL(W):void 0;if(O)return W;try{return JSON.stringify(W)}catch(b){_.z5(Error("Cg`"+W))}}break;case "boolean":return W?"":void 0;default:return W!==null&&W!==void 0?W.toString():void 0}};
ouT=function(W){if(W===void 0)throw Error("Dg");return W};
rD2=function(W,O,b,T){var L=Qbe(T);if(L.length){T=b;var h="property";kGO.test(b)?h="attribute":b[b.length-1]==="$"&&(b=b.slice(0,-1),h="attribute");var Z=sb8(L);Z&&h==="attribute"&&(b==="class"&&W.hasAttribute("class")&&(Z+=" "+W.getAttribute(b)),ri(W,Z,b));h==="attribute"&&T==="disable-upgrade$"&&W.setAttribute("disable-upgrade","");W.localName==="input"&&T==="value"&&W.setAttribute("value","");W.removeAttribute(T);h==="property"&&(b=_.wl(b));O=ouT(O);BoE(O,h,b,L);return!0}return b.slice(0,3)===
"on-"?(W.removeAttribute(b),(h=O).events!=null||(h.events=[]),O.events.push({name:b.slice(3),value:T}),!0):b==="id"?(O.id=T,!0):!1};
Qbe=function(W){for(var O=[],b=0,T;(T=DoT.exec(W))!==null;){T.index>b&&O.push({type:"literal",value:W.slice(b,T.index)});var L=T[1][0];b=!!T[2];T=T[3].trim();if(L==="{")throw Error("Eg");(L=KhT(T))?O.push({type:"method",negate:b,signature:L}):O.push({type:"path",negate:b,path:T});b=DoT.lastIndex}b&&b<W.length&&(W=W.substring(b))&&O.push({type:"literal",value:W});return O};
sb8=function(W){for(var O="",b=0;b<W.length;b++){var T=W[b];T.type==="literal"&&(O+=T.value)}return O};
BoE=function(W,O,b,T){W.bindings!=null||(W.bindings=[]);W.bindings.push({kind:O,target:b,parts:T})};
nui=function(W,O,b){var T=!1;if(W.localName==="template"){T=b;var L=O.stripWhitespace;L=xoX(W,L===void 0?!1:L);var h=W.content.ownerDocument.createDocumentFragment();L.content=h;h.appendChild(W.content);T&&(T.templateInfo=L);T=!0}else W.localName==="slot"&&(O.hasInsertionPoint=!0);if(W.firstChild&&(L=b,W.localName!=="script"&&W.localName!=="style")){h=0;for(var Z=W.firstChild;Z;){var a=Z;if(a.localName==="template"){var m=a.getAttribute("is");if((Z=m==="dom-if")||m==="dom-repeat"){a.removeAttribute("is");
m=a.ownerDocument.createElement("ps-"+m);a.parentNode.replaceChild(m,a);m.appendChild(a);var w=Array.from(a.attributes);w=_.S(w);for(var A=w.next();!A.done;A=w.next())A=A.value,Z?zYX.has(A.name)&&ri(m,A.value,A.name):CLP.has(A.name)?ri(m,A.value,A.name):qSe.has(A.name),a.removeAttribute(A.name);Z=m}else Z=a}if(Z.nodeType===Node.TEXT_NODE){a=void 0;m=W;for(w=Z;((a=w.nextSibling)==null?void 0:a.nodeType)===Node.TEXT_NODE;)A=void 0,(A=w).textContent!=null||(A.textContent=""),w.nextSibling.textContent&&
(w.textContent+=w.nextSibling.textContent),m.removeChild(w.nextSibling);if(O.stripWhitespace&&Z.textContent&&!Z.textContent.trim()){W.removeChild(Z);Z=Z.nextSibling;continue}}nui(Z,O,{parentIndex:h,parentInfo:L});Z.parentNode&&h++;Z=Z.nextSibling}}var X;if((X=W.hasAttributes)==null?0:X.call(W)){X=b=ouT(b);L=!1;h=Array.from(W.attributes);h=_.S(h);for(a=h.next();!a.done;a=h.next())a=a.value,L=rD2(W,X,a.name,a.value)||L;T=L||T}W.nodeType===Node.TEXT_NODE&&(X=Qbe(W.textContent),X.length&&(W.textContent=
sb8(X)||" ",b=ouT(b),BoE(b,"text","textContent",X),T=!0));b&&T&&(b.infoIndex=O.nodeInfoList.push(b)-1)};
xoX=function(W,O){O={nodeInfoList:[],stripWhitespace:(O===void 0?!1:O)||W.hasAttribute("strip-whitespace")};nui(W.content,O);return O};
fHX=function(W){Object.assign(W,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
HAE=function(W,O,b){O.signalCache!=null||(O.signalCache={});var T=O.signalCache[b];if(!T){var L=b.split("."),h,Z;T=_.e("web_polysi_immutable_root_fix_killswitch")?!((h=W.options)==null?0:(Z=h.immutableProps)==null?0:Z.has(L[0])):!GG1(W,L[0]);if(L.length>1&&T){var a=W.getPathMutationSignal(L);T=function(){var m=xb(W.owner,function(){return W.getWithPath([L[0]])}),w,A=(w=a())==null?void 0:w.value;
return{rootWasDefined:m!==void 0,value:A}}}else T=function(){var m=W.getWithPath(L);
return{rootWasDefined:m!==void 0,value:m}};
O.signalCache[b]=T}return T()};
$oE=function(W,O,b,T,L){O=O.parts.map(function(Z,a){if(Z.type==="literal"){b.partWasDefined!=null||(b.partWasDefined=[]);var m;(m=b.partWasDefined)[a]||(m[a]=Z.value!==void 0);return Z.value}var w;if(Z.type==="method"){var A,X=(A=(w=b.partWasDefined)==null?void 0:w[a])!=null?A:!1;X||(X=Z.signature.args.every(function(K){return K.type==="literal"}));
var l=!1,p=!0;w=Z.signature.args.map(function(K){if(K.type==="literal")return K.value;if(K.type!=="path")throw Error("Fg`"+K.type);var k=HAE(W,b,K.path);K=k.value;k=k.rootWasDefined;l||(l=k);p&&(p=k);return K});
X||(X=L===1?p:l);b.partWasDefined!=null||(b.partWasDefined={});b.partWasDefined[a]=X;if(!X)return;w=(a=HAE(W,b,Z.signature.methodName).value)&&typeof a==="function"?a.apply(T,w):void 0}else A=HAE(W,b,Z.path),w=A.value,b.partWasDefined!=null||(b.partWasDefined={}),(X=b.partWasDefined)[a]||(X[a]=w!==void 0||A.rootWasDefined);Z.negate&&(w=!w);return w});
if(O.length===1){var h;return((h=b.partWasDefined)==null?0:h[0])?O[0]:te2}return O.join("")};
Vee=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W&&"canNotifyPath"in W};
Noq=function(W){return typeof W==="object"&&!!W&&"notifyPath"in W};
MeQ=function(W){return"polymerController"in W};
uih=function(W,O){O=""+B_(O)[0];if(Vee(W))return W.canNotifyPath(O);if(MeQ(W)&&Vee(W.polymerController))return W.polymerController.canNotifyPath(O);if(Noq(W)){var b;return!((b=W.properties)==null||!b[O])}if(MeQ(W)&&Noq(W.polymerController)){var T;return!((T=W.polymerController.properties)==null||!T[O])}return!1};
JDQ=function(W,O,b){Vee(W)||Noq(W)?W.notifyPath(O,b):MeQ(W)&&(Vee(W.polymerController)||Noq(W.polymerController))&&W.polymerController.notifyPath(O,b)};
FhP=function(W,O,b){if(b!==te2){W.kind==="attribute"||W.target!=="textContent"&&(W.target!=="value"||O.localName!=="input"&&O.localName!=="textarea")||(b=b===void 0?"":b);var T,L=(T=cDe.Polymer)==null?void 0:T.sanitizeDOMValue;L&&(b=L(b,W.target,W.kind,O));if(W.kind==="attribute"){W=W.target;if(W==="class"||W==="name"||W==="slot")O=(0,_.h1)(O);ri(O,b,W)}else if(W=W.target,b!==O[W]||typeof b==="object")O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!0,P_(O.localName,W,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
O[W]=b,O.loggingStatus&&(O.loggingStatus.isDeclarativeExternal=!1)}};
yDE=function(W,O,b,T){var L=O.parts[0];if(O.parts.length!==1||L.type!=="path"||!uih(b,O.target))return!1;var h=_.S(L.path.split(".")),Z=h.next().value,a=JV(h);if(!_.e("web_polysi_immutable_root_fix_killswitch")&&GG1(W,Z))return!1;T.signalCache!=null||(T.signalCache={});h=T.signalCache[L.path];var m;h=(m=h)==null?void 0:m().value;if((h==null?void 0:h.path)!==void 0){T=B_(h.path);var w=B_(L.path);T=[O.target].concat(_.PG(T.slice(w.length-1)));JDQ(b,T,L.negate?!h.value:h.value);return!0}var A=DQ(W,Z);
var X=A.getChangeRecordSignal(a),l=!1;h=function(){if(!l){var K=xb(W.owner,function(){return A.getWithPath([])});
l||(l=K!==void 0)}return{value:X(),rootWasDefined:l}};
T.signalCache[L.path]=h;T.partWasDefined!=null||(T.partWasDefined={});h=h();(w=T.partWasDefined)[0]||(w[0]=h.rootWasDefined);var p=xb(W.owner,function(){return A.getWithPath(a)});
T.partWasDefined[0]&&xb(W.owner,function(){return void FhP(O,b,L.negate?!p:p)});
return!0};
WGX=function(W,O,b,T,L,h){if(!yDE(W,O,b,T)){var Z=$oE(W,O,T,L,h);xb(W.owner,function(){return void FhP(O,b,Z)})}};
OQq=function(W,O,b,T,L,h){b=_.S(b);for(var Z=b.next(),a={};!Z.done;a={infoIndex:void 0},Z=b.next()){Z=Z.value;var m=Z.bindings;a.infoIndex=Z.infoIndex;Z=Z.parentInfo;if(m){m=_.S(m);for(var w=m.next(),A={};!w.done;A={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},w=m.next()){A.b$jscomp$254=w.value;if(a.infoIndex===void 0)throw Error("Gg");A.bindingCtx$jscomp$4={};W.effect(function(X,l){return function(){L&&!L()||WGX(W,X.b$jscomp$254,O[l.infoIndex],X.bindingCtx$jscomp$4,T,h)}}(A,a))}}Z&&OQq(W,O,[Z],
T,L,h)}};
iQT=function(W,O){W=(O.parentInfo?iQT(W,O.parentInfo):W).firstChild;for(var b=0;W;W=W.nextSibling)if(O.parentIndex===b++)return W;throw Error("Hg");};
jrT=function(W,O,b,T){W=document.importNode(W.content,!0);W.__noInsertionPoint=!(T==null?0:T.hasInsertionPoint);for(var L=Array(O.length),h={},Z=0;Z<O.length;Z++){var a=O[Z],m=iQT(W,a);L[Z]=m;a.id&&(h[a.id]=m);if(a.templateInfo){var w=m.parentElement;w&&(w.templateInfo=a.templateInfo,w.parentSignalProxy=b,w.eventListenerHost=T.eventListenerHost,w.stampingEnabled=T.enabledSignal)}w=void 0;if((w=a.events)==null?0:w.length)for(w=0;w<a.events.length;w++){var A=a.events[w];bQP(T.eventListenerHost,m,A.name,
A.value,T.getModel)}}OQq(b,L,O,T.thisCtx,T.enabledSignal,T.methodInvocationRequirement);return{root:W,nodes:L,nodesById:h}};
LGi=function(W,O){W=W();var b;(b=TZh.ShadyCSS)==null||b.prepareTemplate(W,O);O=xoX(W);return{template:W,nodeInfoList:O.nodeInfoList,hasInsertionPoint:O.hasInsertionPoint}};
SgT=function(){diQ=!1;for(var W=xI.length,O=0;O<W;O++){var b=xI[O];if(b)try{b()}catch(T){Promise.resolve().then(function(){throw T;})}}xI.splice(0,W);
hPh+=W};
mii=function(W){diQ||(diQ=!0,ZQE.textContent=(Iye++).toString());xI.push(W);return ay2++};
_.qe=function(W,O,b){z0++;W=O?new Ygh(z0,W,O,b):new EE2(z0,W);C2.set(z0,W);return z0};
wV2=function(W){(W=C2.get(W))&&W.cancel()};
XVi=function(W,O){W=Aj8.get(W);return W?(O=W.get(O))?O:null:null};
_.n2=function(W,O,b,T){var L=XVi(W,O);if(!L){L=new Uie;var h=Aj8.get(W);h||(h=new Map,Aj8.set(W,h));h.set(O,L)}W=b.bind(W);L.run(W,T,void 0)};
_.lyT=function(W,O){var b;(b=XVi(W,O))==null||b.cancel()};
ePP=function(W){var O;(O=XVi(W,"doRender"))==null||O.flush()};
f2=function(W){var O;return(O=W.hostElement)!=null?O:W};
PFO=function(W){var O=W.indexOf(".");return O===-1?W:W.slice(0,O)};
pV8=function(W,O,b,T,L,h){h=(L=(T=h?PFO(O):O)?O:null)?W.get(L):W.__data[O];L&&h===void 0&&(h=b[O]);_.bX(W.hostElement,FHe(T)+"-changed",{value:h,queueProperty:!0,path:L!=null?L:void 0},{bubbles:!1,composed:!1})};
RPX=function(W,O){W.__isReflecting=!0;vu8(W.hostElement,O,W.__data[O]);W.__isReflecting=!1};
KGE=function(W){if(W._onIronRequestResizeNotifications){var O=W._onIronRequestResizeNotifications.bind(W);W._onIronRequestResizeNotifications=function(b){_.Md(b)!==W.hostElement&&O(b)}}W._ariaActiveAttributeChanged&&(W._ariaActiveAttributeChanged=W._ariaActiveAttributeChanged.bind(W.hostElement));
W._activeChanged&&(W._activeChanged=function(b){W.toggles?ri(W.hostElement,b?"true":"false",W.ariaActiveAttribute):W.hostElement.removeAttribute(W.ariaActiveAttribute);W._changedButtonState()});
W._asyncClick&&(W._asyncClick=function(){_.qe(function(){W.hostElement.click()},1)});
!W.keyEventTarget||W.keyEventTarget instanceof EventTarget||(W.keyEventTarget=f2(W.keyEventTarget));W._disabledChanged&&(W._disabledChanged=W._disabledChanged.bind(W.hostElement));W._observeItems&&(W._observeItems=function(b){var T=f2(b);return _.Rs(T).observeNodes(function(L){W._updateItems();W._updateSelected();_.bX(T,"iron-items-changed",L,{bubbles:!1,cancelable:!1})})});
W._updateItems&&W._updateItems===_.G0._updateItems&&(W._updateItems=function(){var b=_.Rs(W.hostElement).queryDistributedElements(W.selectable||"*");b=Array.prototype.filter.call(b,W._bindFilterItem);W._setItems(b)});
W._computeKeyboardClass&&(W._computeKeyboardClass=function(b){_.L2(W.hostElement,"keyboard-focus",b)});
W.ensureRipple&&(W.ensureRipple=function(b){if(W.hasRipple&&!W.hasRipple()){if(!W._createRipple)return;W._ripple=W._createRipple();W._ripple.noink=W.noink;var T=W._rippleContainer||W.hostElement;T&&_.Q(T).appendChild(W._ripple)}var L;if(b&&((L=W._ripple)==null?0:L.uiDownAction)){T=_.Q(W._rippleContainer||W.hostElement);var h;L=(h=b.composedPath())==null?void 0:h[0];T.contains(L)&&W._ripple.uiDownAction(b)}});
W._updateMultiselectable&&(W._updateMultiselectable=function(b){b?W.hostElement.setAttribute("aria-multiselectable","true"):W.hostElement.removeAttribute("aria-multiselectable")})};
vEO=function(W,O,b){b=_.S(b);for(var T=b.next();!T.done;T=b.next())iAe(T.value.constructor,W);iAe(O.constructor,W)};
oEX=function(W,O){W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,b.type==="signal"){var T=b.propertyKey;if(O.hasOwnProperty(T)&&O[T]!=null&&b.attributeType===Object){a:{T=O[T].constructor;for(var L=_.S(gEe),h=L.next();!h.done;h=L.next())if(h=h.value,T===h){T=h;break a}T=Object}b.attributeType=T}}};
QrO=function(){};
kj8=function(W){var O;return(O=W.hostElement)!=null?O:W};
srT=function(){throw Error("Lg");};
BZO=function(W,O){W.constructor.prototype.useSignals=!0;var b=new W.constructor;vEO(b,W,O.behaviors);oEX(O.reactiveSchemas,b);b={};for(var T=_.S(O.reactiveSchemas),L=T.next();!L.done;L=T.next())L=L.value,L.type==="signal"&&(b[L.propertyKey]=L.attributeType);var h={copyPropertiesToProto:srT,didRegister:!1,typesForSignals:b},Z=["disable-upgrade"].concat(_.PG(O.observedAttributes)),a=function(m){H_.call(this,W,O,h,m)};
_.R(a,H_);_.Jq.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
h.copyPropertiesToProto=function(){for(var m=0;m<O.behaviors.length;m++)jbT(O.behaviors[m],a.prototype);jbT(W,a.prototype)};
O.legacyOptimizations||h.copyPropertiesToProto();a.prototype.is=W.is;return a};
rjh=function(W,O){if(Object.getPrototypeOf(O.prototype).constructor!==_.n)throw Error("Mg");O.prototype.is=W.is;return BZO(O.prototype,W)};
Di1=function(W){return W.type==="compute"||W.type==="computeWithMethod"};
xi8=function(W){for(var O=W.reactiveSchemas.filter(Di1),b=new Map,T=new Map,L=new Map,h=_.S(O),Z=h.next();!Z.done;Z=h.next())Z=Z.value,b.set(Z.propertyKey,Z),T.set(Z.propertyKey,[]),L.set(Z.propertyKey,0);h=0;O=_.S(O);for(Z=O.next();!Z.done;Z=O.next()){Z=Z.value;for(var a=_.S(Z.type==="computeWithMethod"?Z.method.args:Z.args),m=a.next();!m.done;m=a.next())m=m.value,m.type!=="literal"&&(m=m.path.split(".")[0],T.has(m)&&(T.get(m).push(Z.propertyKey),L.set(Z.propertyKey,L.get(Z.propertyKey)+1),h++))}Z=
[].concat(_.PG(T.keys())).filter(function(w){return L.get(w)===0});
for(O=[];Z.length;)for(a=Z.shift(),O.push(b.get(a)),a=_.S(T.get(a)),m=a.next();!m.done;m=a.next())m=m.value,L.set(m,L.get(m)-1),h--,L.get(m)===0&&Z.push(m);b=W.reactiveSchemas.filter(function(w){return!Di1(w)});
W.reactiveSchemas=[].concat(_.PG(b),_.PG(O))};
zPQ=function(W,O){if(O.properties)for(var b=_.S(Object.entries(O.properties)),T=b.next();!T.done;T=b.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;W.properties[T]=typeof L==="function"?{type:L}:L}O.observers&&W.observers.push.apply(W.observers,_.PG(O.observers));O.disabledPolySiReactions&&W.disabledPolySiReactions.push.apply(W.disabledPolySiReactions,_.PG(O.disabledPolySiReactions))};
CF2=function(W,O){for(var b=O.length-1;b>=0;b--){var T=O[b];Array.isArray(T)?CF2(W,T):W.indexOf(T)<0&&W.unshift(T)}};
qge=function(W,O){W.reactiveSchemas=W.reactiveSchemas.filter(function(b){return b.type==="observe"&&O.includes(b.method.methodName)||Di1(b)&&O.includes(b.propertyKey)?!1:!0})};
fyQ=function(W,O){var b=O.prototype,T,L,h={is:W.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Jzq.InjectBehavior,Qv.prototype],disableElementRegistration:W.disableElementRegistration,provide:(T=W.providers)!=null?T:[],reactivityMode:W.reactivityMode,signalProperties:(L=b.signalProperties)!=null?L:[]};"template"in O?h.templateGetter=function(){return O.template}:W.getTemplate&&(h.templateGetter=W.getTemplate);
b.behaviors&&CF2(h.behaviors,b.behaviors);nEe(h,O);return h};
nEe=function(W,O){for(var b=O.prototype,T={properties:{},observers:[],disabledPolySiReactions:[]},L=_.S(W.behaviors),h=L.next();!h.done;h=L.next())zPQ(T,h.value);zPQ(T,b);if(W.signalProperties)for(b=_.S(W.signalProperties),L=b.next();!L.done;L=b.next())delete T.properties[L.value];b=_.S(Object.entries(T.properties));for(L=b.next();!L.done;L=b.next()){h=_.S(L.value);L=h.next().value;h=h.next().value;var Z=void 0;if((Z=W.signalProperties)==null||!Z.includes(L)){Z=void 0;var a=W,m=h.type;if(!m)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{m=Reflect.getMetadata("design:type",O,L);for(var w=_.S(Gji),A=w.next();!A.done;A=w.next())if(A=A.value,m===A){m=A;break a}m=Object}else m=String;h.computed||h.selector||(a.reactiveSchemas.push({type:"signal",propertyKey:L,value:h.value,attributeType:m,readOnly:h.readOnly}),a.observedAttributes.push(_.Ek(L)));h.reflectToAttribute&&a.reactiveSchemas.push({type:"reflect",propertyKey:L});if(h.computed){m=KhT(h.computed);if(!m)throw Error("Ng");a.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:L,method:m,value:h.value})}h.observer&&a.reactiveSchemas.push({type:"observe",method:{methodName:h.observer,args:[{type:"path",path:L}]}});h.notify&&a.reactiveSchemas.push({type:"notify",propertyKey:L});h.selector&&a.reactiveSchemas.push({type:"redux",propertyKey:L,selector:h.selector,selectorArgs:(Z=h.selectorArgs)!=null?Z:[]})}}HQe&&xi8(W);O=_.S(T.observers);for(L=O.next();!L.done;L=O.next())b=W,L=L.value,(h=KhT(L))?b.reactiveSchemas.push({type:"observe",method:h}):console.log('Warning: unable to parse observe declaration: "'+
L+'"');qge(W,T.disabledPolySiReactions)};
tCO=function(W,O){for(var b=0;b<O.length;b++){var T=O[b],L=void 0;(L=T).showHideApi!=null||(L.showHideApi={});L=void 0;!!W!==!((L=T.showHideApi)==null||!L.hideTemplateChildren)&&(T.nodeType===Node.TEXT_NODE?W?(T.showHideApi.polymerTextContent=T.textContent,T.textContent=""):(L=void 0,T.textContent=(L=T.showHideApi.polymerTextContent)!=null?L:null):T instanceof Element&&T.localName==="slot"?W?(T.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.h1)((0,_.h1)(T).parentNode).replaceChild(T.showHideApi.polymerReplaced,
T)):(L=T.showHideApi.polymerReplaced)&&(0,_.h1)((0,_.h1)(L).parentNode).replaceChild(T,L):T instanceof HTMLElement&&T.style&&(W?(T.showHideApi.polymerDisplay=T.style.display,T.style.display="none"):T.style.display=T.showHideApi.polymerDisplay));T.showHideApi.hideTemplateChildren=W;T.showHideChildren&&T.showHideChildren(W)}};
VCT=function(){if(!$i1){var W=document.createElement("style");W.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(W);$i1=!0}};
t1=function(){return _.e("disable_hidden_dom_if_using_stamper")||_.e("creator_disable_hidden_dom_if_using_stamper")};
NZX=function(W,O){var b=_.$I().getState();return O?W.apply(null,[b].concat(_.PG(O))):W(b)};
JjT=function(){if(MCX)return MCX;var W=_.S(_.wu(0,void 0,"Nl6eIe")),O=W.next().value;W.next();var b=W.next().value;_.$I().subscribe(function(){uM2(b)});
return MCX=O};
uM2=function(W){_.e("delay_redux_signal_update_killswitch")?W(function(O){return O+1}):cj1||(cj1=!0,Promise.resolve().then(function(){W(function(O){return O+1});
cj1=!1}))};
_.$I=function(){return FG1.getAppStore()};
Vv=function(W,O){return FG1.getSelectFn()(W,O)};
_.Ne=function(W){FG1.getDispatchFn()(W)};
yjh=function(W,O){var b={},T;for(T in W)b[T]=O(W[T],T);return b};
_.Me=function(W,O){return function(){var b;return(b=_.ru(W))!=null?b:O}};
_.um=function(W,O){var b=Object.assign({},W),T;for(T in O)O.hasOwnProperty(T)&&(b[T]=_.Me(W[T],O[T]));return b};
Wu2=function(W,O,b){W instanceof Element&&(b.debugName||(b.debugName="<"+W.tagName.toLowerCase()+(W.tagName.includes("-")?">":"."+W.className+">")),_.e("ytwiz_enable_debug_component_props")&&(W.debugProps||(W.debugProps=yjh(O,function(T){return function(){return T()}}))))};
_.J1=function(W,O){var b=function(T){var L={stack:[],error:void 0,hasError:!1};try{var h=OZh={};var Z=iZ1(L,kM8("component()")),a;if(((a=b)==null?0:a.idomCompat)&&T.renderedFromIdom){Z==null||Z.attr("idomCompat",!0);var m,w=typeof b.idomCompat==="object"?(m=b)==null?void 0:m.idomCompat.callbacks:{},A=_.S(bZe(T,w,b.debugName)),X=A.next().value;A.next();var l=A.next().value,p=jHX(W,X);h.privateValue=p;OZh=void 0;Wu2(p,X,b);Z==null||Z.attr("debugName",b.debugName);var K=Mq8(p),k=Array.isArray(K)?K[0]:
K;k[aW]||(k[aW]={});k[aW].updateSignalsFromIdomProps=l;return p}var r=yjh(T,TWT);var q=jHX(W,r);h.privateValue=q;OZh=void 0;Wu2(q,r,b);Z==null||Z.attr("debugName",b.debugName);return q}catch(f){L.error=f,L.hasError=!0}finally{Lui(L)}};
b.debugName=O===void 0?"":O;return b};
jHX=function(W,O){W=W(O);return A_(W)};
d68=function(W,O){W[O]||(W=new _.pu("IDOM interop setter undefined. Key:",O),_.Dt(W))};
TWT=function(W,O){return O==="children"||O==="ref"||typeof W==="function"||W===void 0?W:function(){return _.ru(W)}};
bZe=function(W,O,b){var T={},L={},h={},Z={},a;for(a in W){Z={key$jscomp$890:Z.key$jscomp$890};Z.key$jscomp$890=a;var m=W[Z.key$jscomp$890];if(Z.key$jscomp$890==="children"||Z.key$jscomp$890==="ref")T[Z.key$jscomp$890]=m;else if(typeof m==="function")Z.key$jscomp$890 in O||m.length>0?(h[Z.key$jscomp$890]=m,T[Z.key$jscomp$890]=function(A){return function(){return h[A.key$jscomp$890].apply(h,_.PG(_.PD.apply(0,arguments)))}}(Z)):T[Z.key$jscomp$890]=m;
else if(!(W[Z.key$jscomp$890]===void 0&&Z.key$jscomp$890 in O)){var w=_.S(_.wu(W[Z.key$jscomp$890],{debugName:"__cwis:"+b+":"+Z.key$jscomp$890},"cEBU8c"));m=w.next().value;w=w.next().value;T[Z.key$jscomp$890]=m;L[Z.key$jscomp$890]=w}}return[T,L,function(A){var X={},l;for(l in A)X={key$jscomp$891:X.key$jscomp$891,val$jscomp$117:void 0},X.key$jscomp$891=l,X.val$jscomp$117=A[X.key$jscomp$891],X.key$jscomp$891!=="children"&&X.key$jscomp$891!=="ref"&&(typeof X.val$jscomp$117==="function"?X.key$jscomp$891 in
O?h[X.key$jscomp$891]=X.val$jscomp$117:X.val$jscomp$117.length>0&&(h[X.key$jscomp$891]=X.val$jscomp$117,_.z5(new _.pu("Callback detected that was not set in the idomCompat callbacks map. Key:",X.key$jscomp$891))):X.key$jscomp$891 in O&&X.val$jscomp$117===void 0||(d68(L,X.key$jscomp$891),pS(function(p){return function(){L[p.key$jscomp$891](p.val$jscomp$117)}}(X))))}]};
ZZ8=function(W,O,b){var T=ZD8(W.prototype,hNE,W.prototype.behaviors);T.prototype.is=O;T.prototype.localName=O;b&&Sph(T,b);return function(L){L&&(T.prototype.hostElement=L);var h=new T;h.root=h;h.hostElement=L;return h}};
Sph=function(W,O){var b;Object.defineProperty(W.prototype,"_template",{get:function(){b===void 0&&(b=O());return b},
set:function(T){b=T},
configurable:!0,enumerable:!0})};
ERX=function(W,O,b,T){function L(){if(!p){for(var K=new Set,k=_.S(A),r=k.next();!r.done;r=k.next()){r=r.value;for(var q=_.S(Object.getOwnPropertyNames(r)),f=q.next();!f.done;f=q.next()){f=f.value;var M=void 0,V=(M=Object.getOwnPropertyDescriptor(r,f))==null?void 0:M.value;V&&V instanceof Function&&!c_(f)&&(!a[f]||_.e("polymer_forward_method_killswitch"))&&K.add(f)}}k=_.S(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(r=k.next();!r.done;r=k.next())q=_.S(r.value),r=q.next().value,
q=q.next().value,q.value instanceof Function&&!c_(r)&&K.add(r);p=K}return p}
I7T(W,O,T==null?void 0:T.providers);ILP(W.prototype,W,!0);var h=ZZ8(W,O,b),Z,a=(Z=W.prototype.properties)!=null?Z:{},m,w,A=(w=(m=W.prototype.behaviors)==null?void 0:m.flat(Infinity))!=null?w:[];b=_.S(A);for(Z=b.next();!Z.done;Z=b.next())a=Object.assign({},Z.value.properties,a);var X=[].concat(_.PG(a7E),_.PG(Object.keys(a).map(function(K){return _.Ek(K)}))),l=!1,p;
return{ctor:function(K,k){var r=h(K),q,f;K=[].concat(_.PG((q=T==null?void 0:T.allowedProps)!=null?q:[]),_.PG((f=T==null?void 0:T.allowedPropsFromBehaviors)!=null?f:[]));r.allowedProps=K.length>0?K:void 0;q={};f=_.S(X);for(K=f.next();!K.done;K=f.next())K=K.value,q[K]=_.wl(K);r.__dataAttributes=q;var M=r.ready.bind(r);r.ready=function(){k.beforeReady();M();if(lm(O)&&!l){var V=r.__templateInfo;if(V==null?0:V.hostProps){V=_.S(Object.keys(V.hostProps));for(var jQ=V.next();!jQ.done;jQ=V.next())P_(O,jQ.value,
"PROPERTY_ACCESS_GET_INTERNAL")}l=!0}};
r._overrideLegacyUndefined=!0;return r},
props:a,observedAttributes:X,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var K=[],k=new Set,r=_.S(Object.keys(a)),q=r.next();!q.done;q=r.next())q=q.value,K.push([q,a[q].readOnly]),k.add(q);r=L();q=_.S(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var f=q.next();!f.done;f=q.next())f=f.value,!m6e(f)||r.has(f)||k.has(f)||(K.push([f,!1]),k.add(f));k=_.S(Ype);for(r=k.next();!r.done;r=k.next())K.push([r.value,!0]);return K},
getPropsToForwardBeforeReady:function(K){for(var k=[],r=_.S(Object.entries(K)),q=r.next();!q.done;q=r.next()){var f=_.S(q.value);q=f.next().value;f=f.next().value;if(m6e(q)&&!(f instanceof Function)&&(k.push([q,!1]),lm(O))){var M=f=void 0;(M=(f=K)._createPropertyAccessor)==null||M.call(f,q)}}return k},
shouldForwardProp:m6e,shouldLog:lm}};
I7T=function(W,O,b){cz1(W,b);W.prototype.behaviors.unshift(w78);if(Cdh()){if(lm(O)){var T;(T=W.prototype).behaviors!=null||(T.behaviors=[]);W.prototype.behaviors.unshift(GOX())}H1q(W)}_.D(Qv.prototype)(W.prototype,"__templateHelpers")};
c_=function(W){return AdQ.has(W)||W.startsWith("__compute__")};
m6e=function(W){return!c_(W)&&!W.startsWith("_")&&!W.endsWith("_")};
PVe=function(W,O){function b(){var l=m();l=_.S(l);for(var p=l.next();!p.done;p=l.next()){var K=_.S(p.value);p=K.next().value;K=K.next().value;X7X(X.prototype,p,K)}T=!0}
var T=!1,L=W.ctor,h=W.getInitialMethods,Z=W.observedAttributes,a=W.getPropsToForwardBeforeReady,m=W.getPropsToForwardBeforeRegister,w=W.shouldForwardProp,A=W.shouldLog,X=function(){var l=HTMLElement.call(this)||this;l.didForwardDynamicProps=!1;l.loggingStatus={};T||b();l.inst=L(l,{beforeReady:function(){l.didForwardDynamicProps||(l.forwardDynamicProps(),l.didForwardDynamicProps=!0)}});
l.controllerProxy=nYq(l.inst,O);l.forwardMethods();return l};
_.R(X,HTMLElement);X.prototype.forwardMethods=function(){for(var l=this,p=_.S(this.inst.getExtraMethodsToForward()),K=p.next(),k={};!K.done;k={method$jscomp$60:void 0},K=p.next()){var r=_.S(K.value);K=r.next().value;r=r.next().value;k.method$jscomp$60=r;this[K]=function(q){return function(){return q.method$jscomp$60.call.apply(q.method$jscomp$60,[l.inst].concat(_.PG(_.PD.apply(0,arguments))))}}(k)}p=_.S(h());
for(k=p.next();!k.done;k=p.next())k=k.value,w(k)&&U6q(this,k),A(O)&&!c_(k)&&l78(this.inst,k)};
X.prototype.forwardDynamicProps=function(){var l=a(this.inst);l=_.S(l);for(var p=l.next();!p.done;p=l.next()){var K=_.S(p.value);p=K.next().value;K=K.next().value;X7X(this,p,K);A(O)&&!c_(p)&&eNE(this.inst,p)}};
X.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
X.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
X.prototype.attributeChangedCallback=function(l,p,K){this.inst.attributeChangedCallbackWrapper(l,p,K)};
_.Jq.Object.defineProperties(X.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return O}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Jq.Object.defineProperties(X,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Z}}});
customElements.define(O,X)};
X7X=function(W,O,b){W.hasOwnProperty(O)||Object.defineProperty(W,O,{get:function(){var T,L=((T=W.is)!=null?T:W.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||P_(L,O,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,T=this.polymerController[O],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,T},
set:function(T){if(!b){var L,h=((L=W.is)!=null?L:W.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||P_(h,O,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=O,this.loggingStatus.bypassProxyController=!0,this.polymerController[O]!==T&&(L={},this.polymerController.setProperties((L[O]=T,L)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
U6q=function(W,O,b){var T=W.polymerController;W[O]=function(){var L=_.PD.apply(0,arguments);W.loggingStatus.currentExternalCall=O;W.loggingStatus.bypassProxyController=!0;var h,Z=((h=W.is)!=null?h:W.tagName).toLowerCase();P_(Z,O,"PROPERTY_ACCESS_CALL_EXTERNAL");var a;h=(a=b!=null?b:T[O])==null?void 0:a.call.apply(a,[T].concat(_.PG(L)));W.loggingStatus.currentExternalCall=void 0;W.loggingStatus.bypassProxyController=!1;return h}};
l78=function(W,O){var b=W.hostElement,T=W[O];W[O]=function(){var L=_.PD.apply(0,arguments);if(b.loggingStatus.currentExternalCall!==O){var h,Z=((h=b.is)!=null?h:b.tagName).toLowerCase();P_(Z,O,"PROPERTY_ACCESS_CALL_INTERNAL")}return T==null?void 0:T.apply(W,L)}};
eNE=function(W,O){var b=Object.getOwnPropertyDescriptor(W,O);b&&!b.get&&Object.defineProperty(W,O,{get:function(){fse(W.hostElement,O);return b.value},
set:function(T){p2(W.hostElement,O);b.value=T}})};
p7T=function(W){return _.e("poly_si_dom_repeat_detached_fix_killswitch")||W.tagName!=="PS-DOM-REPEAT"?W.tagName==="DOM-REPEAT":!0};
Kuh=function(W,O){var b=RNX(W);W instanceof Element&&b.unshift(W);W=_.S(b.filter(p7T));for(var T=W.next();!T.done;T=W.next()){var L=void 0;T=_.S((L=T.value.__instances)!=null?L:[]);for(L=T.next();!L.done;L=T.next())if(L=L.value,L.root){L=Array.from(L.root.children);L=_.S(L);for(var h=L.next();!h.done;h=L.next())b.push.apply(b,_.PG(Kuh(h.value,O)))}}return b.filter(function(Z){return Z.usePatchedLifecycles&&Z.lifecycleIsConnected===O})};
RNX=function(W){var O=null;W instanceof Element?O=Element.prototype.querySelectorAll:W instanceof DocumentFragment&&(O=DocumentFragment.prototype.querySelectorAll);return O?Array.from(O.call(W,"*")):[]};
FT=function(W){Eo(function(){for(var O=_.S(Kuh(W,!1)),b=O.next();!b.done;b=O.next()){b=b.value;b.lifecycleIsConnected=!0;try{var T=void 0,L=void 0,h=void 0,Z=void 0;(T=(Z=b.polymerController)!=null?Z:b)==null||(h=(L=T).connectedCallback)==null||h.call(L)}catch(a){_.Dt(a)}}})};
yv=function(W){Eo(function(){for(var O=_.S(Kuh(W,!0)),b=O.next();!b.done;b=O.next()){b=b.value;b.lifecycleIsConnected=!1;try{var T=void 0,L=void 0,h=void 0,Z=void 0;(T=(Z=b.polymerController)!=null?Z:b)==null||(h=(L=T).disconnectedCallback)==null||h.call(L)}catch(a){_.Dt(a)}}})};
BWh=function(){if(!vRe){vRe=!0;var W=[Node];Wi&&W.push(Wi.Wrapper);var O=Node.prototype.insertBefore,b=Node.prototype.removeChild;W=_.S(W);for(var T=W.next(),L={};!T.done;L={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},T=W.next())T=T.value,L.nativeInsertBefore=T.prototype.insertBefore,T.prototype.insertBefore=function(Z){return function(a,m){if(a instanceof DocumentFragment){var w=Array.from(a.children);a=Z.nativeInsertBefore.call(this,a,m);
if(this.isConnected&&Z.nativeInsertBefore===O)for(m=_.S(w),w=m.next();!w.done;w=m.next())FT(w.value);return a}w=a instanceof Element&&a.isConnected;m=Z.nativeInsertBefore.call(this,a,m);w&&yv(a);this.isConnected&&FT(a);return m}}(L),L.nativeAppendChild=T.prototype.appendChild,T.prototype.appendChild=function(Z){return function(a){if(a instanceof DocumentFragment){var m=Array.from(a.children);
a=Z.nativeAppendChild.call(this,a);if(this.isConnected){m=_.S(m);for(var w=m.next();!w.done;w=m.next())FT(w.value)}return a}m=a instanceof Element&&a.isConnected;w=Z.nativeAppendChild.call(this,a);m&&yv(a);this.isConnected&&FT(a);return w}}(L),L.nativeRemoveChild=T.prototype.removeChild,T.prototype.removeChild=function(Z){return function(a){var m=a instanceof Element&&a.isConnected,w=Z.nativeRemoveChild.call(this,a);
m&&b===Z.nativeRemoveChild&&yv(a);return w}}(L),L.nativeReplaceChild=T.prototype.replaceChild,T.prototype.replaceChild=function(Z){return function(a,m){if(a instanceof DocumentFragment){var w=Array.from(a.children);
a=Z.nativeReplaceChild.call(this,a,m);if(this.isConnected)for(yv(m),m=_.S(w),w=m.next();!w.done;w=m.next())FT(w.value);return a}w=a instanceof Element&&a.isConnected;var A=this.isConnected,X=Z.nativeReplaceChild.call(this,a,m);A&&yv(m);w&&yv(a);A&&FT(a);return X}}(L);
W=[Element];Wi&&W.push(Wi.Wrapper);W=_.S(W);T=W.next();for(L={};!T.done;L={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},T=W.next())T=T.value,T.prototype.before=gRX(T.prototype.before),T.prototype.after=gRX(T.prototype.after),L.nativeReplaceWith=T.prototype.replaceWith,T.prototype.replaceWith=function(Z){return function(){var a=_.PD.apply(0,arguments),m=_.S(oRE(a)),w=m.next().value,
A=m.next().value;m=this.isConnected;Z.nativeReplaceWith.apply(this,a);a=_.S(A);for(A=a.next();!A.done;A=a.next())yv(A.value);if(m)for(yv(this),w=_.S(w),m=w.next();!m.done;m=w.next())m=m.value,m instanceof Element&&FT(m)}}(L),L.nativeRemove=T.prototype.remove,T.prototype.remove=function(Z){return function(){var a=this.isConnected;
Z.nativeRemove.call(this);a&&yv(this)}}(L),L.nativeInsertAdjacentElement=T.prototype.insertAdjacentElement,T.prototype.insertAdjacentElement=function(Z){return function(a,m){var w=m.isConnected;
a=Z.nativeInsertAdjacentElement.call(this,a,m);w&&yv(m);a.isConnected&&FT(a);return a}}(L),L.nativeSetAttribute=T.prototype.setAttribute,T.prototype.setAttribute=function(Z){return function(a,m){var w=QHO(this);
if(!w.usePatchedLifecycles)return Z.nativeSetAttribute.call(this,a,m);var A=this.getAttribute(a);Z.nativeSetAttribute.call(this,a,m);m=this.getAttribute(a);kEX(w,a,A,m)}}(L),L.nativeRemoveAttribute=T.prototype.removeAttribute,T.prototype.removeAttribute=function(Z){return function(a){var m=QHO(this);
if(!m.usePatchedLifecycles)return Z.nativeRemoveAttribute.call(this,a);var w=this.getAttribute(a);Z.nativeRemoveAttribute.call(this,a);w!==null&&kEX(m,a,w,null)}}(L),L.nativeToggleAttribute=T.prototype.toggleAttribute,T.prototype.toggleAttribute=function(Z){return function(a,m){var w=QHO(this);
if(!this.usePatchedLifecycles)return Z.nativeToggleAttribute.call(this,a,m);var A=this.getAttribute(a),X=A!==null;m=Z.nativeToggleAttribute.call(this,a,m);m!==X&&kEX(w,a,A,m?"":null);return m}}(L);
W=[Document,DocumentFragment,Element,ShadowRoot];Wi&&W.push(Wi.Wrapper);W=_.S(W);for(L=W.next();!L.done;L=W.next())L=L.value,L.prototype.prepend=gRX(L.prototype.prepend),L.prototype.append=gRX(L.prototype.append);(Wi==null?void 0:Wi.noPatch)===!0&&sHO();document.readyState==="complete"?FT(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&FT(document.body)});
var h=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");h&&h.get&&h.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:h.enumerable,configurable:!0,get:h.get,set:function(Z){Z||yv(this);h.set.call(this,Z);return Z}})}};
gRX=function(W){return function(){var O=_.PD.apply(0,arguments),b=_.S(oRE(O)),T=b.next().value;b=b.next().value;W.apply(this,O);O=_.S(b);for(b=O.next();!b.done;b=O.next())yv(b.value);if(this.isConnected)for(T=_.S(T),O=T.next();!O.done;O=T.next())O=O.value,O instanceof Element&&FT(O)}};
sHO=function(){for(var W=_.S(rd8),O=W.next();!O.done;O=W.next()){O=O.value.prototype;for(var b=_.S(D61),T=b.next();!T.done;T=b.next()){T=T.value;var L=Object.getOwnPropertyDescriptor(O,T);L&&Object.defineProperty(O,"__shady_native_"+T,L)}}};
kEX=function(W,O,b,T){var L,h;if((L=W.polymerController)==null?0:(h=L.observedAttributes)==null?0:h.includes(O))if(W=W.polymerController,W.attributeChangedCallbackWrapper)W.attributeChangedCallbackWrapper.call(W,O,b,T);else{var Z;(Z=W.attributeChangedCallback)==null||Z.call(W,O,b,T)}};
oRE=function(W){var O=[],b=[];W=_.S(W);for(var T=W.next();!T.done;T=W.next())T=T.value,T instanceof Element&&T.isConnected&&b.push(T),T instanceof DocumentFragment?O.push.apply(O,_.PG(Array.from(T.children))):O.push(T);return[O,b]};
QHO=function(W){return!(W instanceof Element)&&W.node instanceof Element?W.node:W};
x6e=function(W,O){var b=O?["children"].concat(_.PG(O)):["children"];O=[];b=_.S(b);for(var T=b.next();!T.done;T=b.next()){var L=T.value;if(W.hasOwnProperty(L)){T=W[L];T=typeof T==="function"?T():T;T=A_(Array.isArray(T)?T:[T]).flat();if(L!=="children"){L=FHe(L);for(var h=_.S(T),Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z instanceof Element&&Z.setAttribute("slot",L)}O.push(T)}}O.length===0?W=[]:(W=A_(_.E("div",null,O)),W=Array.from(W.childNodes));return W};
CV2=function(W,O,b){var T={};_.Dq(function(){var L={},h;for(h in O)if(O.hasOwnProperty(h)){var Z=void 0,a=void 0;if(!(((Z=b.slotProps)==null?0:Z.includes(h))||h==="children"||((a=b.callbackProps)==null?0:a.includes(h))||h==="ref")&&(Z=_.ru(O[h]),T[h]!==Z)){T[h]=Z;a=void 0;var m=(a=W.hostElement)!=null?a:W;zNX.has(h)&&(m[h]=Z);L[h]=Z}}pS(function(){if(W.setProperties)W.setProperties(L);else for(var w=_.S(Object.entries(L)),A=w.next();!A.done;A=w.next()){var X=_.S(A.value);A=X.next().value;X=X.next().value;
W[A]=X}})})};
nRE=function(W,O,b,T){var L=x6e(b,T.slotProps),h=(0,_.h1)(W);L=_.S(L);for(var Z=L.next();!Z.done;Z=L.next())h.appendChild(Z.value);CV2(O,b,T);T=_.S(T.callbackProps||[]);L=T.next();for(h={};!L.done;h={kebabEventName:void 0,eventListener:void 0},L=T.next())Z=L=L.value,String(L).substring(0,2)==="on"&&b[Z]?(h.kebabEventName=FHe(String(L).substring(2)),h.eventListener=b[Z],W.addEventListener(h.kebabEventName,h.eventListener),_.so(function(A){return function(){W.removeEventListener(A.kebabEventName,A.eventListener)}}(h))):
O[Z]=b[Z];
if(b.ref){b=_.S(qpq(b.ref));var a=b.next().value,m=b.next().value,w=O.attached.bind(O);O.attached=function(){a(W);w()};
_.so(function(){m()})}};
qpq=function(W){if(typeof W==="function"){var O;return[function(b){O=W(b)},
function(){var b;(b=O)==null||b()}]}if(!W.onRender||!W.onUnmount)throw Error("Rg");
return[W.onRender,W.onUnmount]};
tST=function(W,O,b,T,L){T=T===void 0?{}:T;var h=f71,Z=!1;h?(Z=!0,f71=void 0):(GET=O,h=document.createElement(O),GET=void 0);var a=h;a.usePatchedLifecycles=!0;a.lifecycleIsConnected=!1;h.loggingStatus={};var m=HZO(W,O,h,T,L);_.so(function(){a.lifecycleIsConnected&&(a.lifecycleIsConnected=!1,m.disconnectedCallback())});
Z||nRE(h,m,b,T);return h};
HZO=function(W,O,b,T,L){L=L===void 0?ERX:L;$6O[O]!=null||($6O[O]=L(W,O,T==null?void 0:T.getTemplate,T));var h=$6O[O],Z=h.ctor;L=h.getInitialMethods;var a=h.getPropsToForwardBeforeReady;W=h.getPropsToForwardBeforeRegister;T=h.shouldForwardProp;var m=h.observedAttributes,w=h.shouldLog,A=Z(b,{beforeReady:function(){var X=A;X._takeAttributes?X._takeAttributes():X.setPropertiesFromInitialAttributeValues&&X.setPropertiesFromInitialAttributeValues();X=_.S(a(b.polymerController));for(var l=X.next();!l.done;l=
X.next()){var p=_.S(l.value);l=p.next().value;p=p.next().value;X7X(b,l,p);w(O)&&!c_(l)&&eNE(b.polymerController,l)}b.polymerController=nYq(A,O)}});
b.polymerController=A;b.polymerController.observedAttributes=m;h=_.S(A.getExtraMethodsToForward());for(Z=h.next();!Z.done;Z=h.next())m=_.S(Z.value),Z=m.next().value,m=m.next().value,U6q(b,Z,m);L=_.S(L());for(h=L.next();!h.done;h=L.next())h=h.value,T(h)&&U6q(b,h),w(O)&&!c_(h)&&l78(A,h);W=_.S(W());for(T=W.next();!T.done;T=W.next())L=_.S(T.value),T=L.next().value,L=L.next().value,X7X(b,T,L);return A};
NWO=function(W,O){return Oz===O?(W.isInert=!0,Oz="",!0):VSO===O?(W.isInert=!0,VSO="",!0):!1};
MS8=function(W){var O=ij;ij=W;return O};
JdX=function(W){if(bj.has(W))VSO=W;else if(jD.has(W)&&ij&&unQ(ij)===W){var O;(O=ij)._numRenders!=null||(O._numRenders=0);ij._numRenders++;if(ij._numRenders>1)throw Error("Sg");return ij}};
cd1=function(W){bj.has(unQ(W))?VSO=unQ(W):jD.has(unQ(W))&&ij!==W&&(W._isInert=!0)};
unQ=function(W){var O;return(O=W==null?void 0:W.tagName.toLowerCase())!=null?O:""};
Fu8=function(W,O){if(W.componentType===vj)throw Error("Tg");jD.add(O);var b=function(){var T=HTMLElement.call(this)||this;T.is=O;if(GET===O)return T.isInert=!0,T;T.createElement();return T};
_.R(b,HTMLElement);b.prototype.createElement=function(){if(!this.isInert){f71=this;var T=_.S(mfX(function(){return _.E(W,null)})).next().value;
f71=void 0;fHX(this);return T}};
customElements.define(O,b)};
WZ8=function(W,O,b,T,L){W.prototype.is=O;(T==null?0:T.useSink)?ydX(W,O,b,T,L):(b=ERX(W,O,b,T),PVe(b,O));return W};
ydX=function(W,O,b,T,L){BWh();var h=_.J1(function(Z){return tST(W,O,Z,Object.assign({},T,{getTemplate:b}),L)},"a");
Fu8(h,O);return h};
i7q=function(W){return!O7i.has(W)};
TPQ=function(W,O,b,T){function L(){if(!X){for(var l=new Set(b7P),p=_.S(h.behaviors),K=p.next();!K.done;K=p.next()){K=K.value;for(var k=_.S(Object.getOwnPropertyNames(K)),r=k.next();!r.done;r=k.next()){r=r.value;var q=void 0,f=(q=Object.getOwnPropertyDescriptor(K,r))==null?void 0:q.value;f&&f instanceof Function&&(!w[r]||_.e("polymer_forward_method_killswitch"))&&l.add(r)}}p=_.S(Object.entries(Object.getOwnPropertyDescriptors(W.prototype)));for(K=p.next();!K.done;K=p.next())k=_.S(K.value),K=k.next().value,
k=k.next().value,k.value instanceof Function&&l.add(K);X=l}return X}
var h=fyQ({is:O,disableElementRegistration:!1,getTemplate:b,providers:T==null?void 0:T.providers,reactivityMode:T==null?void 0:T.reactivityMode},W);if((T==null?0:T.allowedProps)||(T==null?0:T.allowedPropsFromBehaviors)){var Z,a;h.allowedProps=[].concat(_.PG((Z=T.allowedProps)!=null?Z:[]),_.PG((a=T.allowedPropsFromBehaviors)!=null?a:[]))}var m=rjh(h,W);O=m.observedAttributes;var w={};b=_.S(h.reactiveSchemas);for(T=b.next();!T.done;T=b.next())if(T=T.value,T.type==="signal")w[T.propertyKey]={readOnly:T.readOnly},
T.readOnly&&(w[ZAO(T.propertyKey)]={readOnly:!0});else if(T.type==="compute"||T.type==="computeWithMethod"||T.type==="redux")w[T.propertyKey]={readOnly:!0};var A=h.reactiveSchemas.length,X;return{ctor:function(l,p){l=new m(l);l.beforeReady=p.beforeReady;return l},
props:w,observedAttributes:O,getInitialMethods:L,getPropsToForwardBeforeRegister:function(){for(var l=[],p=new Set,K=_.S(j_Q),k=K.next();!k.done;k=K.next())k=k.value,l.push([k,k!=="observers"&&k!=="properties"]),p.add(k);K=_.S(Object.keys(w));for(k=K.next();!k.done;k=K.next())k=k.value,l.push([k,w[k].readOnly]),p.add(k);K=L();k=_.S(Object.keys(Object.getOwnPropertyDescriptors(W.prototype)));for(var r=k.next();!r.done;r=k.next())r=r.value,!i7q(r)||K.has(r)||p.has(r)||(l.push([r,!1]),p.add(r));l.push(["allowedProps",
!0]);return l},
getPropsToForwardBeforeReady:function(l){var p=[];l=_.S(Object.keys(l));for(var K=l.next();!K.done;K=l.next()){K=K.value;var k=L();i7q(K)&&!k.has(K)&&p.push([K,!1])}l=_.S(h.reactiveSchemas.slice(A));for(K=l.next();!K.done;K=l.next())K=K.value,K.type!=="compute"&&K.type!=="computeWithMethod"&&K.type!=="redux"&&K.type!=="signal"||p.push([K.propertyKey,K.type==="signal"?K.readOnly:!0]);return p},
shouldForwardProp:i7q,shouldLog:lm}};
_.H=function(W,O,b,T){var L,h,Z=(h=(L=T)==null?void 0:L.mode)!=null?h:0;T!=null||(T={});var a;(a=T).reactivityMode!=null||(a.reactivityMode=0);Z===1&&_.hL("creator_poly_si_disable_list").includes(O)&&(Z=2);return Z===1?WZ8(W,O,b,Object.assign({},T,{useSink:!0}),TPQ):WZ8(W,O,b,Object.assign({},T,{useSink:Z===2}))};
_.TH=function(){return function(W,O,b,T){var L,h,Z=(h=(L=T)==null?void 0:L.mode)!=null?h:2;T!=null||(T={});var a;(a=T).reactivityMode!=null||(a.reactivityMode=0);if(Z===0)throw Error("Ug`"+Z);return ydX(W,O,b,T,Z===1?TPQ:void 0)}};
_.Lb=function(W){return _.e("creator_poly_si_killswitch")?!1:_.e("force_all_poly_si_batches")&&(W==="poly_si_all_on_test_check"||W==="creator_poly_si_batch_050"?0:W)||document.documentElement.hasAttribute("use-signals")?!0:!W||_.e(W+"_holdback_enabled")&&_.e("kevlar_polysi_holdback")?!1:_.e(W)};
dG=function(W){return W?W.icon?W.icon.iconType.toLowerCase():W.customThumbnail?"member":"":""};
LZX=function(W){if(!W)return"";W=_.S(W);for(var O=W.next();!O.done;O=W.next())if((O=O.value)&&O.liveChatAuthorBadgeRenderer&&(O=dG(O.liveChatAuthorBadgeRenderer))&&O!=="verified")return O;return""};
dQ2=function(W,O){if(!W)return null;var b;return((b=W.find(function(T){return T&&T.liveChatAuthorBadgeRenderer?dG(T.liveChatAuthorBadgeRenderer)===O:!1}))==null?void 0:b.liveChatAuthorBadgeRenderer)||null};
_.mQX=function(W){var O=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;W=hTX(W);O=hTX(O);var b=Sq8(W.hex);O=Sq8(O.hex);var T=O[0]/255;var L=O[1]/255,h=O[2]/255,Z=Math.max(T,L,h),a=Math.min(T,L,h),m=0,w=0,A=.5*(Z+a);Z!=a&&(Z==T?m=60*(L-h)/(Z-a):Z==L?m=60*(h-T)/(Z-a)+120:Z==h&&(m=60*(T-L)/(Z-a)+240),w=0<A&&A<=.5?(Z-a)/(2*A):(Z-a)/(2-2*A));T=[Math.round(m+360)%360,w,A];b=Z7Q(b,O);for(W=I1X(W.hex);b<4.5;){W=T[2]>=.5?W.darker((4.5-b)/2):W.brighter((4.5-b)/2);b=W.toString();
L=a1Q(b);if(!L.length)throw Error("Sd`"+b);b=L;b=Z7Q(b,O)}return W.hex()};
Z7Q=function(W,O){W=_.yW8(W);O=_.yW8(O);return(Math.max(W,O)+.05)/(Math.min(W,O)+.05)};
_.h4=function(W){return"#"+("000000"+(W&16777215).toString(16)).slice(-6)};
_.Yqh=function(W){for(var O=0,b=0;b<W.length;b++)O=W.charCodeAt(b)+((O<<5)-O);W="#";for(b=0;b<3;b++)W+=("00"+(O>>b*8&255).toString(16)).slice(-2);return W};
EAq=function(W){W=(W||"").split(":");W.length===1&&W.unshift("yt-icons");W[1]=W[1].toLowerCase();return W};
eTO=function(W,O){var b=(O=O===void 0?!1:O)?wWh:A0h,T=O?XWh:UQP;W.getIconNames().forEach(function(L){L=O?L:L.substring(L.indexOf(":")+1);W.name==="yt-icons"?l1T.add(L):L.includes("-filled")?b.add(L):T.add(L)})};
SD=function(W,O,b,T){b=b===void 0?!1:b;T=T===void 0?!1:T;var L,h,Z;return _.I(function(a){if(a.nextAddress==1)return _.Y(a,PG1,2);if(T)return a.return(l1T.has(W));L=b?wWh:A0h;h=b?XWh:UQP;return O?(Z=W.includes("-filled")?W:W.concat("-filled"),a.return(L.has(Z))):a.return(h.has(W))})};
_.KZe=function(W){if(pW8(W))return W;var O=W=W.toLowerCase();(W=RTO.get(W))&&(O=W);return O};
_.Z6=function(W){if(pW8(W))return W.toString();var O=vAh.get(W);if(O)return O;O=W.toLowerCase();var b="yt-icons",T=O.replace(/_/g,"-");switch(W){case "MY_CHANNEL":O="account_circle";break;case "ADD_TO_LIBRARY":O="add";break;case "ALERT_WARN_RED":O="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":O="person_music";break;case "BLOCK_USER":O="block";break;case "CAPTIONS":O="closed_caption";break;case "CLOSED_CAPTION":b="av";O="closed-caption";break;case "COLLECTION":b="maps";O="layers";break;case "CONTACT":b=
"icons";O="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":b="ytcp-icons";O=T.split("creator-studio-")[1];break;case "DISMISSAL":O="close";break;case "DO_NOT_DISTURB":O="block";break;case "DOGFOOD":b="icons";O="pets";break;case "DRAFT":O="paper_corner_folded";break;
case "EMPTY_LIKE":O="like_outline";break;case "EXIT_APP":O="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":O=T;break;case "GAMES":b="ytg";O="my-games";break;case "GO_TO_PAGE":O="arrow-forward";break;case "GROUP":b="social";break;case "HIDE":O="not_interested";break;case "INPUT_COMPONENT":b="icons";O="settings-input-component";break;case "KIDS_BLOCK":O="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":b="ytg";O="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":b=
"ytg";O="membership-post-purchase";break;case "MULTIVIEW":O="screen_multi_view";break;case "MY_LOCATION":b="maps";O=T;break;case "NOTIFICATIONS_INBOX":O="NOTIFICATIONS";break;case "NEXT":O="chevron_right";break;case "OFFLINE":O="power-settings-new";break;case "PAUSE":b="miniplayer";break;case "PAYMENT":b="icons";break;case "PHONE_DOWNLOAD":O="phone_download";break;case "PREMIUM_STANDALONE":b="yt-logos";O="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":b="yt-logos";O="premium_standalone_cairo";
break;case "QUESTION_ANSWER":O="question_answer";break;case "REDEEM":b="icons";O="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":O="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":O="library_add";break;case "SCHOOL":b="yt-sys-icons";O="creator_academy";break;case "SETTINGS_LIGHT":O="settings_applications";break;case "SETTINGS_MATERIAL":O="settings";break;case "SEARCH_HISTORY":O="watch_history";break;case "SHOPPING_BAG":O="bag";break;case "SOCIAL":case "PEOPLE":b=
"yt-icons";O="people";break;case "STAFF_PICK":b="ytg";O="spotlight";break;case "START_DVR":O="add";break;case "STOP_DVR":b="av";O="stop";break;case "TAB_LIKED":O="like";break;case "TAB_INBOX":O="mail";break;case "TERMS_OF_SERVICE":b="icons";O="description";break;case "TRENDING":O="fire";break;case "UNBLOCK_USER":O="remove";break;case "UNPLUGGED_DARK_THEME":b="image";O="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":O="live";break;case "UNPLUGGED_SPORTS":b="ytu";O="visibility-off";break;
case "VIDEOS":b="av";O="play-circle-filled";break;case "YOUTUBE":b="yt-logos";O="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":b="yt-logos-ext";O="yt-logo-red-updated";break;case "YOUTUBE_LOGO":b="yt-logos-ext";O="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":b="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":b="shorts";O=T;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":b="yt-sys-icons";O="youtube_improve_tv";break;case "OUTLINE_BAG":b=
"yt-sys-icons";O="bag";break;case "QUEUE_PLAY_LAST":b="yt-sys-icons";O="list_queue_last";break;case "SLASH_CIRCLE_LEFT":O="slash_circle_left";break;case "SPEED_1_POINT_2X":O="1_point_2x";break;case "SPEED_1_POINT_5X":O="1_point_5x";break;case "SPEED_1_POINT_8X":O="1_point_8x";break;case "SPEED_POINT_2X":O="point_2x";break;case "SPEED_POINT_5X":O="point_5x";break;case "SPEED_POINT_8X":O="point_8x";break;case "SPEED_1X":O="1x";break;case "SPEED_2X":O="2x";break;case "TAB_BOOKMARK":O="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":b="yt-sys-icons";O="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":b="yt-sys-icons";O="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":b="yt-sys-icons",O="tic_tac_toe"}O=b+":"+O;vAh.set(W,O);return O};
pW8=function(W){var O;_.e("kevlar_use_wil_icons")?O=!!_.iq().resolve(_.Ix).resolveIcon({iconName:W.toString()}):O=!1;return O};
_.mw=function(W,O,b,T){b=b===void 0?{}:b;T=T===void 0?!1:T;b===null&&(b={});var L=_.hL("kevlar_command_handler_command_banlist");L=_.S(L);for(var h=L.next();!h.done;h=L.next())if(h=W?W.hasOwnProperty(h.value):void 0,h)return!1;L=_.P(W.commandMetadata,_.F9);return T&&L!=null&&L.url?!1:!O.disableCommandHandlerOverride&&_.ax.instance?(T=_.ax.instance,b.form||(b.form={element:O}),b.form.element||(b.form.element=O),!b.clickedVisualElement&&O.visualElement&&(b.clickedVisualElement=O.visualElement),T.resolveCommand(W,
b),!0):!1};
gAP=function(W,O){W=Yy(W);for(var b=_.S(W.visibilityMonitorKeys||[]),T=b.next();!T.done;T=b.next())O.unobserveByKey(T.value);W.visibilityMonitorKeys=void 0};
s_T=function(W,O){if(_.Bb()){if(_.e("kevlar_vimio_use_shared_monitor"))oAE(W,O.data);else if(!oAE(W,O.data))return;var b=O.data,T=Q_i(b);if(_.e("enable_client_ve_spec_logging"))gAP(W,O.observer);else{var L=Yy(W);L.trackedParams&&L.trackedParams!==T&&gAP(W,O.observer)}L=Yy(W);!b||L.data&&L.data===b||(L.data=b);kYh(W,O);L.trackedParams=T}};
kYh=function(W,O){var b=O.observer;if(!b&&_.e("web_skip_missing_vimio_observer")){var T,L;_.z5(new _.pu("VisibilityObserver is not defined.",W.tagName,W.trackedParams,(T=O.data)==null?void 0:T.trackingParams,(L=O.data)==null?void 0:L.loggingDirectives))}else{var h=O.layer,Z=O.visibilityCallback||function(){},a=O.prescanCallback,m=Yy(W);
T=[];O.showOption&&T.push(b.observe(W,function(){O.skipLogging&&O.skipLogging()||_.Ez().reportShown(m,void 0,h);Z(!0)},O.showOption));
O.hideOption&&T.push(b.observe(W,function(){_.Ez().reportHidden(m,void 0,h);Z(!1)},O.hideOption));
O.prescanOption&&a&&T.push(b.observe(W,function(){a()},O.prescanOption));
m.visibilityMonitorKeys=T}};
oAE=function(W,O){W=Yy(W);if(W.visualElement&&!O)return!0;if(!O)return!1;var b=!1;if(_.e("enable_client_ve_spec_logging")){var T,L;b=!!((T=O.loggingDirectives)==null?0:(L=T.clientVeSpec)==null?0:L.uiType)}T=Q_i(O);if(!T&&!b)return!1;_.e("mweb_component_visibility_logging")&&(W.veContainer||(W.veContainer={}),W.veContainer.trackingParams=T);if(W.trackedParams&&W.trackedParams===T)return!1;var h;if(_.e("enable_client_ve_spec_logging")&&((h=W.visualElement)==null?0:h.isClientVe())){var Z;h=(Z=W.visualElement)==
null?void 0:Z.getAsJspb();var a,m,w,A;if(_.OV(h,2)===((a=O.loggingDirectives)==null?void 0:(m=a.clientVeSpec)==null?void 0:m.uiType)&&_.OV(h,3,-1)===((w=O.loggingDirectives)==null?void 0:(A=w.clientVeSpec)==null?void 0:A.elementIndex))return!1}if(_.e("enable_client_ve_spec_logging")){var X,l;!W.visualElement&&((X=O.loggingDirectives)==null?0:(l=X.clientVeSpec)==null?0:l.uiType)&&(a=O.loggingDirectives.clientVeSpec,O=a.uiType,Z=a.elementIndex,a=a.clientYoutubeData,W.visualElement=_.wG(_.A4(),{veType:O,
elementIndex:Z,clientYouTubeData:a}))}return!0};
Q_i=function(W){if(W==null?0:W.rendererContext){var O=_.P(W.rendererContext,_.XF);if(O==null?0:O.loggingDirectives)return O.loggingDirectives.trackingParams}return(W==null?0:W.loggingDirectives)?W.loggingDirectives.trackingParams:W==null?void 0:W.trackingParams};
Yy=function(W){var O;return(O=W.polymerController)!=null?O:W};
xQe=function(W){_.Ez();if(_.fv(Uz().JSC$10468_elementShouldLogGesture).bind(Uz())(W,4)){BPX(W);var O=r0T(W);DQ8.set(W,O)}};
BPX=function(W){DQ8.has(W)&&(DQ8.get(W).cancel("untrack hover element"),DQ8.delete(W))};
r0T=function(W){var O,b=[],T=!1,L=new _.mJ(function(h,Z){lj(W,"mouseenter",_.fv(function(){var a,m,w;return _.I(function(A){if(A.nextAddress==1)return O=(0,_.WO)(),a=zTh(W),b.push(a),m=CGX(W,function(){T=!0;Z(Error("Vg"))}),_.Y(A,a,2);
if(A.nextAddress!=3)return m&&eD(m),w=qq2(W),b.push(w),_.Y(A,w,3);h();_.aD(A)})}))});
L.then(function(){var h=(0,_.WO)()-O;h=Math.round(h);if(!(500>h||6E5<=h)){var Z=W.getScreenLayer?W.getScreenLayer():void 0;Z=_.Bb(Z)||"";var a=nA1(_.Ez(),W);_.Nk(Z,W.visualElement?W.visualElement:_.Pi(a),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:h}})}xQe(W)},function(){pb&&(pb(),pb=null);
T&&(BPX(W),xQe(W))});
return L};
zTh=function(W){var O;return(new _.mJ(function(b,T){pb=function(){T(Error("Wg"))};
O=_.sF.debounce(_.fv(function(){eD(L);b()}),1,100);
var L=_.Rx(W,"mousemove",O)})).thenCatch(function(){var b=_.sF.cancelDebouncedJobMap.get(O);
b&&_.sF.cancelJob(b)})};
qq2=function(W){var O;return(new _.mJ(function(b,T){pb=function(){T(Error("Xg"))};
O=lj(W,"mouseleave",_.fv(function(){b()}))})).thenCatch(function(){eD(O)})};
CGX=function(W,O){return lj(W,"mouseleave",_.fv(O))};
GYi=function(W){f1X&&_.Kb.cancel(f1X);f1X=_.Kb.run(function(){_.bX(W,"yt-visibility-refresh");f1X=0})};
H7h=function(W){W=Number(W);return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
$Q1=function(W){if(!W)return!1;if(_.P(W,_.tZ8))return!0;var O;if(W=(O=_.P(W,_.I5))==null?void 0:O.commands)for(O=_.S(W),W=O.next();!W.done;W=O.next())if(_.P(W.value,_.tZ8))return!0;return!1};
VZX=function(W){var O=!0;O=O===void 0?!0:O;if(!W.useSignals&&!W.experimentalPropertiesChanged||_.e("experimental_templating_behavior_nopatch_killswitch")){var b=W._propertiesChanged;W._propertiesChanged=function(T,L,h){O?W.debounceRender():W.doRender();b&&b.call(W,T,L,h)}}};
NPT=function(W,O){if(W.useSignals||W.experimentalPropertiesChanged)if(_.e("experimental_templating_behavior_nopatch_killswitch"))W.experimentalPropertiesChanged=function(){};
else return;var b=new Set,T=[W].concat(_.PG(W.behaviors));T=_.S(T);for(var L=T.next();!L.done;L=T.next()){L=L.value;for(var h in L.properties)b.has(h)||(W._addPropertyEffect(h,"function",O),b.add(h))}};
MZi=function(){var W=Polymer.Element,O=W._prepareTemplate;W._prepareTemplate=function(){O.call(this);var b=this.prototype;if(b.experimentalTemplatingInUse&&b.experimentalTemplatingInUse()&&b.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Dt(Error("Yg"));else{b=this.template.content.childNodes;for(var T=b.length-1;T>=0;T--){var L=b[T];L.nodeName!=="STYLE"&&L.nodeName!=="LINK"&&L.nodeName!=="SCRIPT"&&L.nodeName!=="#comment"&&L.remove()}}}};
uj1=function(W){var O=!0;O=O===void 0?!0:O;MZi();var b=W.ready;W.ready=function(){this._template=null;b.call(this)};
NPT(W,O?W.debounceRender:W.doRender)};
c0X=function(W,O,b){if(b===null||b===void 0)return b;var T=hAP(W.tagName.toLowerCase(),O,function(){throw Error("Qb");});
if(T===null)return b;T=J0q[T];var L;if((L=T.isUnwrappable)==null?0:L.call(T,b)){if(T.unwrap)return T.unwrap(b);throw Error("ah");}return T.filterString?T.filterString(W.tagName,O,String(b)):b};
FZi=function(W,O,b){var T=O[O.length-1]!=="$",L=c0X(W,O,b);if(T)if(typeof L==="function"&&O.startsWith("reactiveon")&&O===O.toLowerCase()){var h=Oo;XOX(W,O.slice(8),function(Z){xb(h,function(){L(Z)})})}else W[O]=L;
else b=L==null?null:String(L),AS1(W,O.slice(0,-1),b)};
gG=function(W){y0O.length===0&&requestAnimationFrame(function(){setTimeout(function(){var O=y0O.slice();y0O.length=0;O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;try{b()}catch(T){_.vi(T)}}})});
y0O.push(W)};
WzX=function(W){if(W){var O=W.component;if(O){var b;O==null||(b=O.events)==null||b.publish("DISCONNECTED");var T;O==null||(T=O.onDisconnected)==null||T.call(O)}var L,h;(L=W.__spec)==null||(h=L.didUnmount)==null||h.call(L);for(O=0;O<W.childNodes.length;O++)WzX(W.childNodes[O])}};
QE=function(W,O,b){var T=O&&O.key,L=cj;L[0]=W;L[1]=T;L[2]=void 0;for(var h in O)O.hasOwnProperty(h)&&(W=O[h],T=Fd,T.push(h),T.push(W));O=cj;a:{if(h=cj[2])for(W=0;W<h.length;W+=2)if(h[W]==="nonce"){h=h[W+1];break a}h=""}h=saX(O[0],O[1],h);W=fS(h);T=O[2];if(!W.staticsApplied&&(W.staticsApplied=!0,T&&T.length))if((L=W._attrsArr)&&L.length){for(L=0;L<T.length;L+=2)ox[T[L]]=L+1;L=W._attrsArr||(W._attrsArr=wO2(0));for(var Z=0,a=0;a<L.length;a+=2){var m=L[a],w=L[a+1],A=ox[m];A?T[A]===w&&delete ox[m]:(L[Z]=
m,L[Z+1]=w,Z+=2)}CS(L,Z);for(var X in ox)pOP(h,X,T[ox[X]],yj),delete ox[X]}else for(X=0;X<T.length;X+=2)pOP(h,T[X],T[X+1],yj);qFP(h,W,yj);CS(O,0);b&&b(Gx);BvE()};
OYh=function(W){var O=W.toString().toLowerCase();return function(b,T){QE(O,b,T)}};
_.ky=function(W,O,b){b===void 0?delete W[O.name]:W[O.name]=b};
_.sz=function(W){var O={androidIncludeFontPadding:!1},b=0,T=[],L=[],h=[];if(W.simpleText)return O.content=W.simpleText,O;if(W.runs===void 0)return O.content="",O;W=_.S(W.runs);for(var Z=W.next();!Z.done;Z=W.next()){Z=Z.value;var a=Z.text,m=void 0,w=(m=a)==null?void 0:m.length;if(a&&w){T.push(a);if(Z.bold||Z.italics||Z.strikethrough||Z.underline||Z.textColor!=null&&Z.textColor!==0||Z.deemphasize){a=L;m=a.push;var A={startIndex:b,length:w};Z.bold&&(A.weightLabel="FONT_WEIGHT_MEDIUM");Z.italics&&(A.italic=
!0);Z.strikethrough&&(A.strikethrough="LINE_STYLE_SINGLE");Z.underline&&(A.underline="LINE_STYLE_SINGLE");Z.textColor!=null&&Z.textColor!==0?document.documentElement.hasAttribute("dark")?A.fontColor=Z.darkModeTextColor||Z.textColor:A.fontColor=Z.textColor:Z.deemphasize&&(document.documentElement.hasAttribute("dark")?A.fontColor=parseInt("ff"+iY2("#aaa").substring(1),16):A.fontColor=parseInt("ff"+iY2("#606060").substring(1),16));m.call(a,A)}Z.navigationEndpoint&&(a=h,m=a.push,A={startIndex:b,length:w,
onTap:{innertubeCommand:Z.navigationEndpoint}},Z.loggingDirectives&&_.ky(A,bY8,Z.loggingDirectives),m.call(a,A));b+=w}}O.content=T.join("");O.styleRuns=L.length?L:void 0;O.commandRuns=h.length?h:void 0;return O};
TMq=function(W){if(W==null||!W.runs)return!0;W=_.S(W.runs);for(var O=W.next();!O.done;O=W.next())if(O=O.value,O.bracket||O.errorUnderline||O.deemphasize||_.P(O,Bi)||_.P(O,jmO))return!1;return!0};
LzP=function(W,O){return function(b){var T=O.unit;if(T!==b)throw Error("dh`"+W+"`"+T+"`"+b);return O}};
rG=function(W){if(!((W==null?0:W.value)&&(W==null?0:W.unit)))return"";switch(W.unit){case "DIMENSION_UNIT_FRACTION":var O="%";break;default:O="px"}W=W.value;O==="%"&&(W*=100);return""+W+O};
d1T=function(W){try{return W()}catch(O){_.z5(O)}};
_.xy=function(W){var O=_.P(W,_.D6);if(O)return O;if((O=_.P(W,hwe))&&O.commands)return Snh(O.commands);if((O=_.P(W,ZYq))&&O.commands)return Snh(O.commands);if((W=_.P(W,IUe))&&W.identifier&&W.command&&(aU8||(aU8=[]),!aU8.includes(W.identifier)))return aU8.push(W.identifier),_.P(W.command,_.D6)};
Snh=function(W){if(W.length!==0){var O=[];W=_.S(W);for(var b=W.next();!b.done;b=W.next())(b=_.xy(b.value))&&O.push(b);return{commandExecutorCommand:{commands:O}}}};
_.Cb=function(W){var O=W.defaultTarget,b=W.elementConfig,T=W.elementsCommand,L=W.skipOnClick,h=W.forceNewState,Z=W.additionalCommandArgs,a=W.innertubeCommand||_.xy(T);if(a){W={};var m=m1Q(a);T=m.navigatingCommand;m=m.href;T&&m?(W.href$=m,Yn8(W,T,m,O),_.e("web_atagconfig_pointerdown")&&EUX(W,T),h&&(W["force-new-state$"]=!0)):(W.role$="button",W.href$="javascript:void(0);");_.P(a,wl8)&&(W["aria-haspopup$"]=!0);L||(W.onclick=function(w){if(Anh(w)){var A=Object.assign({},{form:{element:w.target,event:w}},
Z);w.preventDefault();_.zH(a,A)}});
return Object.assign({},b,W)}};
Xle=function(W){if(W.length){if(W.length===1)return W[0];var O={};_.ky(O,_.I5,{commands:W});return O}};
qq=function(W){return W&&W.href$!=="javascript:void(0);"};
m1Q=function(W){var O,b=((O=_.P(W,_.I5))==null?void 0:O.commands)||[W];W=_.S(b);for(O=W.next();!O.done;O=W.next()){O=O.value;var T=void 0,L=void 0;b=(L=_.P((T=O)==null?void 0:T.commandMetadata,_.F9))==null?void 0:L.url;_.e("web_remove_web_navigation_endpoint_data")||(T=void 0,b=b||((T=_.P(O,U1P))==null?void 0:T.url));if(b&&b!=="/service_ajax"){if(T=Av(b,lU8))return W=_.EB(T),{navigatingCommand:O,href:W};_.z5(new _.pu("AttributedString URL could not be sanitized",b))}}return{}};
Anh=function(W){return W.button!==void 0?W.button===0&&!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey):!(W.shiftKey||W.altKey||W.metaKey||W.ctrlKey)};
Yn8=function(W,O,b,T){b=!yP(b);var L,h,Z;if((L=_.P(O,_.wE))!=null&&L.nofollow||(h=_.P(O,_.V3))!=null&&h.nofollow||(Z=_.P(O,_.t8))!=null&&Z.nofollow||b)W.rel$="nofollow";var a;O=((a=_.P(O,_.t8))==null?void 0:a.target)==="TARGET_NEW_WINDOW"?"_blank":T===void 0?"":T;W.target$=O};
EUX=function(W,O){O.clickTrackingParams&&(W.params={itct:O.clickTrackingParams});W.onpointerdown=function(b){ewE(b)};
W._data=O};
Ppi=function(W){(W.loggingUrls||[]).forEach(function(O){HO(O.baseUrl,O.attributionSrcMode)})};
plP=function(W){W.currentTarget._data&&Ppi(W.currentTarget._data)};
ewE=function(W){var O=W.currentTarget;W=d1T(function(){return O.href});
var b=O.params;W&&_.JC(W,b||{},8,!0)};
RwP=function(W,O){if(O=_.P(O,_.t8))(O==null?void 0:O.target)==="TARGET_NEW_WINDOW"&&(W.target="_blank"),O.nofollow&&(W.rel="nofollow")};
Kzq=function(W){W=_.P(W==null?void 0:W.commandMetadata,_.F9);return(W==null?0:W.url)?W.url:null};
_.nb=function(W,O){(W=_.xy(W))&&_.zH(W,O)};
_.zH=function(W,O){R_8(function(b){O?b.resolveCommand(W,O):b.resolveCommand(W)})};
Qm8=function(W,O){var b=["yt-core-attributed-string__link"];O!=null&&O.noLinkColor||((O==null?0:O.isOverlay)?b.push("yt-core-attributed-string__link--overlay-call-to-action-color"):b.push("yt-core-attributed-string__link--call-to-action-color"),(O==null?0:O.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color"));b={className:b.join(" "),tabindex$:"0"};var T=W.onTap||W.onLongPress;if(!T)return b;var L=vUi(W);L&&(b["aria-label$"]=L);O=_.Cb({elementsCommand:T,elementConfig:b,skipOnClick:!(O==
null||!O.skipOnClick),forceNewState:!0});W.onLongPress&&(T=new gU8(function(){var h=_.xy(W.onLongPress);h&&_.iq().resolve(_.bq).resolveCommand(h)}),O&&oUh(T,O));
return O||b};
vUi=function(W){var O,b;return(O=W.onTapOptions)==null?void 0:(b=O.accessibilityInfo)==null?void 0:b.accessibilityLabel};
k2e=function(W){var O=W;W<=16777215&&(O+=parseInt("ff000000",16));return _.C_(O)};
sm1=function(W){var O=W.isDarkTheme;var b=W.extension;W=W.runColor;var T=void 0;if(b=b==null?void 0:b.colorMap){O=O?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";b=_.S(b);for(var L=b.next();!L.done;L=b.next())if(L=L.value,O===L.key){T=L.value;break}}T==null&&W&&(T=W);if(T)return k2e(T)};
fb=function(W){var O=W.config;var b=W.image;var T=W.imageConfig;var L=W.imageWrapperConfig;var h=W.run;var Z=W.tag;var a=W.textLength;var m=W.startIndex===void 0?0:W.startIndex;W=W.length;m===void 0&&(m=0);h={run:h,startIndex:m,endIndex:W!==void 0?m+W:a,tag:Z};b&&(h.image=b);T&&(h.imageConfig=T);L&&(h.imageWrapperConfig=L);O&&(h.config=O);return h};
rne=function(W,O){var b=[];b.push("yt-core-attributed-string");(O==null?0:O.className)&&b.push(O==null?void 0:O.className);(O==null?0:O.ellipsisTruncate)?b.push("yt-core-attributed-string--ellipsis-truncate"):(O==null?0:O.noWrap)?b.push("yt-core-attributed-string--white-space-no-wrap"):(O==null?0:O.noPreWrap)||b.push("yt-core-attributed-string--white-space-pre-wrap");(O==null?0:O.linkInheritColor)&&b.push("yt-core-attributed-string--link-inherit-color");W.alignment&&b.push(BM2(W.alignment));W.lineBreakMode&&
b.push("yt-core-attributed-string--word-wrapping");return b.join(" ")};
D1E=function(W){if(W.weight)return W.weight;switch(W.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
x1Q=function(W){switch(W){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"}};
BM2=function(W){switch(W){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"}};
Cp8=function(W,O,b){var T=O;W.content&&b&&(b=W.content.indexOf("\n"),b!==-1&&(T=Math.min(O,b)));if(!W.content||W.content.length<=T)O=W;else if(W.attachmentRuns||W.commandRuns||W.decorationRuns||W.styleRuns||W.paragraphStyleRuns){O=GH(W.content,T);b=T;var L=W.attachmentRuns;if(L){var h=[];L=_.S(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Object.assign({},Z.value),Z.startIndex===void 0||Z.startIndex>=b||(Z.length||(Z.length=0),Z.length+Z.startIndex>b&&(Z.length=b-Z.startIndex),h.push(Z));b=h}else b=
void 0;h=zw8(T,W.commandRuns);L=T;var a=W.decorationRuns;if(a){Z=[];a=_.S(a);for(var m=a.next();!m.done;m=a.next()){m=m.value;var w=_.P(m.textDecorator,Hi);if(w&&w.startIndex!==void 0&&!(w.startIndex>=L)){m=Object.assign({},m,{textDecorator:{highlightTextDecorator:Object.assign({},w)}});w=_.P(m.textDecorator,Hi);if(!w.length||w.length+w.startIndex>L)w.length=L-w.startIndex;Z.push(m)}}L=Z}else L=void 0;Z=zw8(T,W.styleRuns);if(a=W.paragraphStyleRuns)for(W=[],a=_.S(a),m=a.next();!m.done;m=a.next()){var A=
m.value;m=Object.assign({},A);if(!(m.startIndex===void 0||m.startIndex>=T)){if(!m.length||m.length+m.startIndex>T)m.length=T-m.startIndex;w=[];var X=void 0,l=void 0;if((X=A)==null?0:(l=X.listGroup)==null?0:l.listItems)for(A=_.S(A.listGroup.listItems),X=A.next();!X.done;X=A.next())if(X=Object.assign({},X.value),!(X.startIndex===void 0||X.startIndex>=T)){if(!X.length||X.length+X.startIndex>T)X.length=T-X.startIndex;w.push(X)}w.length>0&&(m.listGroup||(m.listGroup={}),m.listGroup=Object.assign({},m.listGroup,
{listItems:w}));W.push(m)}}else W=void 0;O={content:O,attachmentRuns:b,commandRuns:h,decorationRuns:L,styleRuns:Z,paragraphStyleRuns:W}}else O=Object.assign({},W,{content:GH(W.content,T)});return O};
zw8=function(W,O){if(O){var b=[];O=_.S(O);for(var T=O.next();!T.done;T=O.next())if(T=Object.assign({},T.value),!(T.startIndex===void 0||T.startIndex>=W)){if(!T.length||T.length+T.startIndex>W)T.length=W-T.startIndex;b.push(T)}return b}};
GH=function(W,O){var b=O,T;if(T=b>0)T=W.charCodeAt(b-1),T=T>=55296&&T<=56319;T&&(b=W.charCodeAt(b),T=b>=56320&&b<=57343);T&&--O;return W.substring(0,O)};
G2i=function(W,O,b){b=b===void 0?qnX:b;if(W){var T=_.iq().resolve(O0);T||_.e("mweb_no_observer_killswitch")?s_T(W,{data:O,observer:T,visibilityCallback:b,hideOption:nUe,showOption:fUX,layer:W.layer}):_.z5(new _.pu("Warning: monitorVisibility called with null observer",W.tagName,O==null?void 0:O.loggingDirectives,O==null?void 0:O.trackingParams))}else _.z5(new _.pu("Warning: monitorVisibility called with null element",O==null?void 0:O.loggingDirectives,O==null?void 0:O.trackingParams,O==null?void 0:
O.rendererContext))};
uaQ=function(W,O){var b=[],T=W.content.length,L,h=(L=_.iq().resolve(_.OT(_.t4)))==null?void 0:L();if(W.paragraphStyleRuns){L=_.S(W.paragraphStyleRuns);for(var Z=L.next();!Z.done;Z=L.next()){var a=b.push,m=a.apply;var w=void 0;Z=Z.value;if((w=Z.listGroup)!=null&&w.listItems){w=[];b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var A="ul";break b;default:A="span"}w.push(fb({run:Z,textLength:T,tag:A,config:{className:"yt-core-attributed-string__list-group"},startIndex:Z.startIndex,length:Z.length}));
A=_.S(Z.listGroup.listItems);for(var X=A.next();!X.done;X=A.next()){X=X.value;b:switch(Z.listGroup.listType){case "LIST_TYPE_BULLET":var l="li";break b;default:l="span"}w.push(fb({run:Z,textLength:T,tag:l,startIndex:X.startIndex,length:X.length}))}Z=w}else Z=[];m.call(a,b,_.PG(Z))}}if(W.styleRuns&&(O==null||!O.noStyleRuns))for(L=_.S(W.styleRuns),a=L.next();!a.done;a=L.next()){a=a.value;m=sm1({extension:_.P(a.styleRunExtensions,HY1),isDarkTheme:h===void 0?!1:h,runColor:a.fontColor});w=[];m&&w.push("yt-core-attributed-string--link-inherit-color");
a.italic&&w.push("yt-core-attributed-string--italicized");a.underline&&a.strikethrough?w.push("yt-core-attributed-string--underline-strikethrough",x1Q(a.underline)):a.underline?w.push("yt-core-attributed-string--underlined",x1Q(a.underline)):a.strikethrough&&w.push("yt-core-attributed-string--strikethrough",x1Q(a.strikethrough));if(a.baselineOffset){a:switch(a.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":Z="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":Z=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:Z="yt-core-attributed-string--baseline-offset-unknown"}w.push(Z)}Z=w.join(" ");w=a;A={};if(w.weight||w.weightLabel)A.fontWeight=D1E(w).toString();m&&(A.color=m);b.push(fb({run:a,textLength:T,tag:"span",config:{className:Z,style:A},startIndex:a.startIndex,length:a.length}))}if(W.decorationRuns)for(L=_.S(W.decorationRuns),a=L.next();!a.done;a=L.next())a=a.value,m={},a.textDecorator&&(A=a.textDecorator,Z=h===void 0?!1:h,X=[],w=
_.P(A,Hi),A=_.P(A,tV8),w?(A=X,X=A.concat,l=[],(Z=sm1({extension:_.P(w.highlightTextDecoratorExtensions,$1q),isDarkTheme:Z,runColor:w.backgroundColor}))&&l.push("background-color: "+Z+";"),w.backgroundCornerRadius!==void 0&&l.push("border-radius: "+w.backgroundCornerRadius+"px;"),w.leftPadding!==void 0&&l.push("padding-left: "+w.leftPadding+"px;"),w.rightPadding!==void 0&&l.push("padding-right: "+w.rightPadding+"px;"),w.topPadding!==void 0&&l.push("padding-top: "+w.topPadding+"px;"),w.bottomPadding!==
void 0&&l.push("padding-bottom: "+w.bottomPadding+"px;"),X=X.call(A,l)):A&&(w=X,X=w.concat,Z=Z?"#2ba640":"#107516",Z=A.color?k2e(A.color):Z,Z=["padding: 2px;","border-top: solid "+Z+" 2px;","border-bottom: solid "+Z+" 2px;","background: linear-gradient(135deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+Z+" 3px, rgba(0, 0, 0, 0) 3px);"],X=X.call(w,Z)),Z=X.join(" "),m.style$=Z,Z=a.textDecorator,w=[],A=_.P(Z,tV8),_.P(Z,Hi)?w.push("yt-core-attributed-string--highlight-text-decorator"):
A&&w.push("yt-core-attributed-string--bracket-text-decorator"),Z=w.join(" "),m.className=Z,m.dir="auto"),Z=_.P(a.textDecorator,Hi),w=_.P(a.textDecorator,tV8),A=_.P(a.textDecorator,Hi),X=_.P(a.textDecorator,tV8),b.push(fb({run:a,textLength:T,tag:"span",config:m,startIndex:(Z==null?void 0:Z.startIndex)||(w==null?void 0:w.startIndex)||0,length:(A==null?void 0:A.length)||(X==null?void 0:X.length)||0}));if(W.commandRuns&&(O==null||!O.noEndpoints))for(h=_.S(W.commandRuns),L=h.next();!L.done;L=h.next())L=
L.value,a=Qm8(L,O),b.push(fb({run:L,textLength:T,tag:"a",config:a,startIndex:L.startIndex,length:L.length}));if(W.attachmentRuns)for(W=_.S(W.attachmentRuns),h=W.next();!h.done;h=W.next()){h=h.value;m=a=void 0;L={className:"yt-core-attributed-string--inline-block-mod"};if((m=h.element)==null?0:m.properties){m=(a=h.element)==null?void 0:a.properties;a=[];m=_.P(m,VVO);if(m==null?0:m.margin)m=m.margin,m.left&&a.push("margin-left: "+rG(m.left)+";"),m.right&&a.push("margin-right: "+rG(m.right)+";"),m.top&&
a.push("margin-top: "+rG(m.top)+";"),m.bottom&&a.push("margin-bottom: "+rG(m.bottom)+";");a=a.length!==0?a.join(" "):void 0;L.style$=a}Z=void 0;a={alt:"",preserveHeight:!0,preserveWidth:!0};m=["yt-core-attributed-string__image-element"];if(h.alignment){a:switch(h.alignment){case "ALIGNMENT_BASELINE":w="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":w="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:w=
"yt-core-attributed-string__image-element--image-alignment-bottom"}m.push(w)}if((Z=h.element)==null?0:Z.properties)Z=[],w=_.P(h.element.properties,VVO),(w==null?0:w.height)&&Z.push("height: "+rG(w.height)+";"),(w==null?0:w.width)&&Z.push("width: "+rG(w.width)+";"),Z=Z.length!==0?Z.join(" "):void 0,a.style$=Z,w=void 0,Z=((w=_.P(h.element.properties,NMQ))==null?void 0:w.label)||"",a.alt=Z;a.className=m.join(" ");m=void 0;A=w=void 0;Z=((A=h.element)==null?0:A.type)?(w=_.P(h.element.type,MVO))==null?
void 0:w.image:void 0;b.push(fb({run:h,textLength:T,tag:"img",image:Z,imageConfig:a,imageWrapperConfig:L,startIndex:h.startIndex,length:(m=h.length)!=null?m:0}))}if(O==null?0:O.headerRuns)for(O=_.S(O.headerRuns),W=O.next();!W.done;W=O.next())if(W=W.value,W.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(W.headerMapping)){a:{switch(W.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":h=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":h="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":h="yt-core-attributed-string--heading-3";break a}h=void 0}b.push(fb({run:W,textLength:T,tag:"span",config:h?{className:h}:void 0,startIndex:W.startIndex,length:W.length}))}return b};
_.$y=function(W){return(W==null?void 0:W.content)!==void 0};
JnX=function(W){return _.$y(W)?W:_.sz(W)};
cnT=function(W){return W.image!==void 0&&W.imageConfig!==void 0};
Fz8=function(W,O){if(O==null?0:O.userInput)for(W=_.S(W),O=W.next();!O.done;O=W.next())if(O=O.value,O.tag!=="a"&&O.tag!=="li"){var b=void 0;(b=O).config||(b.config={});O.config.dir=O.tag==="ul"?_.iq().resolve(_.VE):"auto"}};
yn8=function(W){return function(O){var b=W.run;(b.onTap!==void 0||b.onLongPress!==void 0)&&_.P(b,bY8)&&G2i(O,{loggingDirectives:_.P(b,bY8)})}};
WV8=function(W){return function(O){for(var b in W)(yj[b]||yj[qr["default"]])(O,b,W[b])}};
jF8=function(W,O){O88(O);var b={data:null,start:0,end:W.length,parts:[]};O=_.S(O);for(var T=O.next();!T.done;T=O.next())T=T.value,i8Q(b,T.startIndex,T.endIndex,T);b8X(W,b);return b};
i8Q=function(W,O,b,T){for(var L=_.S(W.parts),h=L.next();!h.done;h=L.next()){h=h.value;if(typeof h==="string")throw Error("fh");if(h.start<=O&&b<=h.end){i8Q(h,O,b,T);return}}W.parts.push({data:T,parts:[],start:O,end:b})};
b8X=function(W,O){for(var b=O.parts.length;b>=0;b--){var T=O.parts[b],L=O.parts[b-1],h=b===O.parts.length?O.end:T.start;L=b===0?O.start:L.end;h!==L&&O.parts.splice(b,0,W.slice(L,h));T&&b8X(W,T)}};
O88=function(W){W.sort(function(O,b){if(O.startIndex<b.startIndex)return-1;if(b.startIndex<O.startIndex)return 1;O=O.endIndex-O.startIndex;b=b.endIndex-b.startIndex;return O>b?-1:b>O?1:0})};
_.TVO=function(W){var O=W.thumbnails;if(O){W={sources:[]};O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T={};T.url=b.url;T.width=b.width;T.height=b.height;W.sources.push(T)}return W}};
LVO=function(W,O,b,T){if(!O)return W.length>=1?W[W.length-1]:null;if(T)for(var L=_.S(W),h=L.next();!h.done;h=L.next()){h=h.value;var Z=void 0,a=(Z=h.url)==null?void 0:Z.indexOf(T);if(a!==void 0&&a>=0)return h}T=_.S(W);for(L=T.next();!L.done;L=T.next())if(L=L.value,L.width&&L.height&&(b&&L.width>=O||!b&&L.height>=O))return L;for(O=W.length-1;O>=0;O--)if(b&&W[O].width||!b&&W[O].height)return W[O];return W[0]};
_.d3h=function(W){var O;return(W=(O=W.sources)==null?void 0:O[0])?W.width/W.height:0};
_.hSi=function(W){if(W.sources){W=_.S(W.sources);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=void 0;if((b=O.clientResource)==null?0:b.imageName)return O}}};
SWO=function(W){var O;if((O=W.clientResource)!=null&&O.imageColor)return _.C_(W.clientResource.imageColor)};
_.IKT=function(W,O,b,T,L,h,Z){if(!O||O.length===0||O[0].clientResource)return null;if(b&&O[0].url)return O[0].url;T===void 0&&(T=!0);if(T){var a;W=Z8i*(L||(W==null?void 0:(a=W.getBoundingClientRect())==null?void 0:a.width)||0)}else{var m;W=Z8i*(h||(W==null?void 0:(m=W.getBoundingClientRect())==null?void 0:m.height)||0)}O=LVO(O,W,T,Z);return(O==null?0:O.url)?O.url:(O==null?0:O.imageData)?O.imageData:null};
aKQ=function(W,O,b){b=b?[b]:[];W.opacity&&b.push("opacity: "+W.opacity+";");O&&W.placeholderColor?(W=_.C_(W.placeholderColor),b.push("background-color: "+W+";")):b.push("background-color: transparent;");return b.join(" ")};
m3e=function(W,O,b,T,L){var h=["yt-core-image"];O&&h.push(O);b||h.push("yt-core-image--fill-parent-height");T||h.push("yt-core-image--fill-parent-width");switch(W.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":h.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":h.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":h.push("yt-core-image--content-mode-center");break;default:h.push("yt-core-image--content-mode-scale-to-fill")}W.flipForRtlLayout&&
h.push("yt-core-image--flip-rtl");switch(L){case "TOP_START":var Z;h.push(((Z=document.body)==null?void 0:Z.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return h.join(" ")};
Eth=function(W){var O;if(W==null?0:(O=W.clientResource)==null?0:O.imageName){var b;W=(b=W.clientResource)==null?void 0:b.imageName;a:{switch(W){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":b="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":b="yt-logos-ext:yt-logo-updated";break a}b=void 0}return b||YWq.get(W)||W}};
Nq=function(W){return _.e("mweb_wiz_skip_render")?weQ(W):Ay2(W)};
weQ=function(W){return function(O){var b=saX("wink-root");Jt();BvE();NGe(b,_.E(W,O))}};
Ay2=function(W){var O=O===void 0?!1:O;return function(b){if(!O||!_.e("mweb_skip_keto_to_c3_if_no_data")||b.data!==void 0){var T=Lv(!1);try{var L=b.children;_.e("mweb_render_outside_patch_killswitch")||Gx?L?F0(_.E(W,b,L)):F0(_.E(W,b)):_.z5(new _.pu("ketoToC3 called outside of a patch",{tagName:W.TAG_NAME}))}finally{Lv(T)}}}};
Xeh=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
lK8=function(W,O){W.onViewportEntered=O;U3E.observe(W)};
eSh=function(){var W={rootMargin:"10%",threshold:.01};_.e("mweb_enable_set_io_root_to_null_safari")?W.root=null:_.e("mweb_enable_set_io_root_to_body_safari")&&(W.root=document.body);return new IntersectionObserver(function(O,b){O.filter(function(T){return T.intersectionRect.height>0}).forEach(function(T){T=T.target;
if(!_.e("mweb_enable_only_update_image_when_connected")||T.isConnected!==!1){var L;(L=T.onViewportEntered)==null||L.call(T);b.unobserve(T)}})},W)};
P$q=function(W,O,b,T,L){function h(){if(T){var a=T.loadedClass,m=T.notifyOnUnloaded;a&&_.Mq(W,a);m&&W.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function Z(){var a=b(O,W);a&&W.getAttribute("src")!==a&&(_.e("mweb_enable_only_update_image_when_connected")&&W.isConnected===!1||a===W.src||(W.src=a),h())}
L=L===void 0?!0:L;W.removeAttribute("src");h();O&&(L?lK8(W,Z):Z())};
peQ=function(W,O,b){if(!O)return!1;O=b(O,W);b=W.getAttribute("src");return O&&O===b&&W.complete};
RSq=function(W,O){for(var b in O)b==="className"?W.className=O[b]:(yj[b]||yj[qr.default])(W,b,O[b])};
KVh=function(W,O,b,T){Nq(_.uj)({contentMode:O.contentMode,loadedClass:O.loadedClass,isPreloaded:O.isPreloaded,notifyOnLoaded:O.notifyOnLoaded,notifyOnUnloaded:O.notifyOnUnloaded,preferredThumbnail:O.preferredThumbnail,preserveHeight:O.preserveHeight,preserveWidth:O.preserveWidth,objectPosition:O.objectPosition,targetWidth:O.targetWidth,targetHeight:O.targetHeight,shouldShowPlaceholder:O.shouldShowPlaceholder,useWidth:O.useWidth,alt:O.alt,className:O.className,onerror:O.onerror,onload:O.onload,style$:O.style$,
color:O.color,width:O.width,height:O.height,"aria-hidden$":O["aria-hidden$"],draggable:O.draggable,"data-disabled$":O["data-disabled$"],data:W,callback:b,renderLazy:T===void 0?!0:T,hideOn404:!1})};
gth=function(W,O,b){b=b===void 0?!1:b;var T=W.sources!==void 0?W:_.TVO(W);if(T){var L=O.onload;O.onload=function(m){var w=m.target;b&&w.naturalWidth===120||_.J4(w,"yt-core-image--loaded");O.notifyOnLoaded&&w.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));L==null||L(m)};
O.targetWidth&&O.preserveWidth&&(O.width=O.targetWidth);O.targetHeight&&O.preserveHeight&&(O.height=O.targetHeight);var h=_.hSi(T),Z=h&&Eth(h);if(Z)return(W=SWO(h))&&(O.color=W),{type:"icon",iconName:Z,config:Object.assign({},O,O.alt?{}:{"aria-hidden$":"true"},{"aria-label$":O.alt,role:"img"})};if(W.sources===void 0){O.alt=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label||O.alt;O.style$=aKQ(W,O.shouldShowPlaceholder,O.style$);var a;O.isPreloaded=!((a=_.P(W,
vtq))==null||!a.isPreloaded)}O.contentMode&&!T.contentMode&&(T.contentMode=O.contentMode);O.className=m3e(T,O.className,O.preserveHeight,O.preserveWidth,O.objectPosition);O.loadedClass="yt-core-image--loaded";return{type:"image",image:T,config:O}}};
_.ci=function(){var W=_.PD.apply(0,arguments);return _.J8(function(O){var b=W.map(function(T){return T(O)});
return function(){return void b.forEach(function(T){return void(T==null?void 0:T())})}})};
FF=function(W,O){var b=O==null?void 0:O.initial;return _.Pj(function(){_.ru(!0);return b=W(b)},{equals:O==null?void 0:O.isEqual},"rSlKsc")};
otE=function(W,O){if(W===O)return!0;if(W===void 0||O===void 0)return!1;var b,T,L,h,Z,a,m,w;return W.content===O.content&&((b=W.styleRuns)==null?void 0:b.length)===((T=O.styleRuns)==null?void 0:T.length)&&((L=W.commandRuns)==null?void 0:L.length)===((h=O.commandRuns)==null?void 0:h.length)&&((Z=W.attachmentRuns)==null?void 0:Z.length)===((a=O.attachmentRuns)==null?void 0:a.length)&&((m=W.decorationRuns)==null?void 0:m.length)===((w=O.decorationRuns)==null?void 0:w.length)};
sF8=function(W,O){if(W){var b=JnX(W);if(b!=null&&b.content)if(_.e("attr_string_reactive"))Nq(QFe)({text:W,config:O});else{var T=!(O==null||!O.ariaLabel)||!(b.commandRuns&&b.commandRuns.length!==0||b.paragraphStyleRuns&&b.paragraphStyleRuns.length!==0);W=T?O==null?void 0:O.ariaLabel:null;T=T?"text":null;QE("span",{className:rne(b,O),dir$:(O==null?0:O.userInput)?"auto":void 0,"aria-label$":W,role$:T},function(){if(b.styleRuns||b.commandRuns||b.attachmentRuns||b.decorationRuns){var L=uaQ(b,O);Fz8(L,
O);L=jF8(b.content,L);L=_.S(L.parts);for(var h=L.next();!h.done;h=L.next())kIE(h.value)}else iW(b.content)})}}};
kIE=function(W){typeof W==="string"?iW(W):cnT(W.data)?QE("span",W.data.imageWrapperConfig,function(){KVh(W.data.image,W.data.imageConfig)}):QE(W.data.tag,W.data.config,function(O){yn8(W.data)(O);
O=_.S(W.parts);for(var b=O.next();!b.done;b=O.next())kIE(b.value)})};
ryq=function(W){return W.parts.map(BVQ)};
BVQ=function(W){if(typeof W==="string")return W;W=cnT(W.data)?_.E("span",{el:_.ci(WV8(W.data.imageWrapperConfig))},_.E(_.uj,Object.assign({},{data:W.data.image},W.data.imageConfig))):_.E(W.data.tag,{el:_.ci(yn8(W.data),WV8(W.data.config))},W.parts.map(BVQ));return A_(W)};
D3i=function(W,O){return W===O?!0:W===void 0||O===void 0?!1:W.noStyleRuns===O.noStyleRuns&&W.noLinkColor===O.noLinkColor&&W.noEndpoints===O.noEndpoints&&W.headerRuns===O.headerRuns&&W.isOverlay===O.isOverlay&&W.linkInheritColor===O.linkInheritColor&&W.userInput===O.userInput};
x3X=function(W){return function(){var O,b,T,L,h,Z,a,m,w,A,X,l,p,K;return{ariaLabel:(O=W.ariaLabel)==null?void 0:O.call(W),className:(b=W.className)==null?void 0:b.call(W),ellipsisTruncate:(T=W.ellipsisTruncate)==null?void 0:T.call(W),isOverlay:(L=W.isOverlay)==null?void 0:L.call(W),linkInheritColor:(h=W.linkInheritColor)==null?void 0:h.call(W),noEndpoints:(Z=W.noEndpoints)==null?void 0:Z.call(W),noStyleRuns:(a=W.noStyleRuns)==null?void 0:a.call(W),noLinkColor:(m=W.noLinkColor)==null?void 0:m.call(W),
noPreWrap:(w=W.noPreWrap)==null?void 0:w.call(W),noWrap:(A=W.noWrap)==null?void 0:A.call(W),skipOnClick:(X=W.skipOnClick)==null?void 0:X.call(W),stopPropagation:(l=W.stopPropagation)==null?void 0:l.call(W),userInput:(p=W.userInput)==null?void 0:p.call(W),headerRuns:(K=W.headerRuns)==null?void 0:K.call(W)}}};
zST=function(W){return W.value===""||W.value==="true"?!0:W.value==="false"?!1:isNaN(Number(W.value))?W.value:Number(W.value)};
yE=function(W,O){W=new C$e(W,O);_.Dt(W);throw W;};
qWQ=function(W,O,b){var T=MS8(W);W._numRenders=0;try{var L=mfX(function(){return _.E(O,Object.assign({},b))})}catch(Z){var h=function(a){a.args||(a.args=[]);
a.args.push("Error in web component wrapper");a.args.push(W.tagName.toLowerCase());return a};
_.xG(Z instanceof Error?h(Z):new C$e("Wiz rendering error",W.tagName.toLowerCase()));throw Z;}finally{MS8(T)}return L};
_.O1=function(W,O,b){function T(A){var X={};A=_.S(A);for(var l=A.next();!l.done;l=A.next()){l=l.value;var p=void 0,K=void 0,k=void 0,r=_.wl((k=(K=(p=l).getAttribute)==null?void 0:K.call(p,"slot"))!=null?k:"children");if(p=X[r])p.push(l);else if(r in h||r==="children")X[r]=[l]}A=_.S(Object.keys(X));r=A.next();for(l={};!r.done;l={content$jscomp$55:void 0},r=A.next())r=r.value,r!=="children"&&(l.content$jscomp$55=X[r],X[r]=function(q){return function(){return q.content$jscomp$55}}(l));
return X}
b=b===void 0?{}:b;W.componentType!==vj||yE("Components must be marked reactive to be used from web component wrapper.",O);bj.has(O)&&yE("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",O);var L,h=(L=b.props)!=null?L:{};jD.add(O);var Z=ntT();L=function(){var A=Z.apply(this,arguments)||this;A.rawProps={};A.queuingRender=!1;A.dispose=function(){};
A.isWebComponentWrapper=!0;A.isReparenting=!1;A.hasRendered=!1;return A};
_.R(L,Z);L.prototype.render=function(){this.hasRendered=!0;for(var A=_.S([].concat(_.PG(this.attributes))),X=A.next();!X.done;X=A.next())X=X.value,X.name!=="slot"&&this.removeAttribute(X.name);A=Object.assign({},this.componentProps,this.slotProps);X=_.S(qWQ(this,W,A));A=X.next().value;X=X.next().value;!(A[0]instanceof Element)||A.length>1?yE("Wrapped Wiz components must return a single root element.",O):(A=A[0].tagName.toLowerCase(),A!==O&&yE("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(A+" !== '"+O),O),this.dispose=X)};
L.prototype.setUpProps=function(){for(var A=this.rawProps,X=this.attributes,l=_.S(Object.keys(h)),p=l.next();!p.done;p=l.next()){p=p.value;var K=void 0;((K=this)==null?0:K[p])&&this[p]!==fKP&&A[p]===void 0&&(A[p]=this[p],(K=Object.getOwnPropertyDescriptor(this.constructor.prototype,p))&&Object.defineProperty(this,p,K))}l=_.S(X);for(p=l.next();!p.done;p=l.next()){K=p.value;p=_.wl(K.name);var k=p==="class"&&!X.getNamedItem("class-name");if(p in h||k)K=zST(K),p!=="class"||A.className?A[p]=K:A.className=
K}X={};for(var r in h)h[r]!==_.Ws&&h[r]!==GIq&&(A[r]instanceof Function&&yE("Function props must be configured as STATIC, not SIGNAL.",O),p=_.S(_.wu(A[r],void 0,"Ri8MSe")),l=p.next().value,p=p.next().value,X[r]=p,A[r]=l);A=_.S([A,X]);this.componentProps=A.next().value;this.setters=A.next().value;this.slotProps=T(this.childNodes)};
L.prototype.connectedCallback=function(){Oz===O&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in h&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
L.prototype.disconnectedCallback=function(){if(!this._isInert){var A;a:{if(_.H88)for(A=this;A;){if(_.t9O.has(A)){A=!0;break a}A=A.parentElement}A=!1}if(A)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){A=_.S([].concat(_.PG(this.attributes)));for(var X=A.next();!X.done;X=A.next())X=X.value,X.name!=="slot"&&this.removeAttribute(X.name)}this.innerText="";fHX(this)}}};
L.prototype._setPendingPropertyOrPath=function(){};
L.prototype.notifyPath=function(){};
_.Jq.Object.defineProperties(L.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var a=_.S(Object.keys(h)),m=a.next(),w={};!m.done;w={prop$jscomp$103:void 0},m=a.next())w.prop$jscomp$103=m.value,m=void 0,((m=b.legacyPolymer)==null?0:m.forwardHostProps)&&zNX.has(w.prop$jscomp$103)||Object.defineProperty(L.prototype,w.prop$jscomp$103,{set:function(A){return function(X){var l=this;this._isInert||(this.setters?pS(function(){var p,K;return void((K=(p=l.setters)[A.prop$jscomp$103])==null?void 0:K.call(p,X))}):(this.rawProps[A.prop$jscomp$103]=X,this.queuingRender&&A.prop$jscomp$103===
"data"&&X!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(w),
get:$31.has(w.prop$jscomp$103)?void 0:function(){return fKP}});
customElements.define(O,L)};
_.V9X=function(W,O){return(W=_.bn(W,O))?_.EB(_.l7(W)):null};
_.jE=function(W){if(W=_.bn(W,Number.MAX_VALUE,void 0,"width"))return _.l7(W)};
_.bn=function(W,O,b,T){T=T===void 0?"width":T;if(!W||!W.length)return null;if(_.e("kevlar_tuner_should_always_use_device_pixel_ratio")){var L=window.devicePixelRatio;_.e("kevlar_tuner_should_clamp_device_pixel_ratio")?L=Math.min(L,_.Lu("kevlar_tuner_clamp_device_pixel_ratio")):_.e("kevlar_tuner_should_use_thumbnail_factor")&&(L=_.Lu("kevlar_tuner_thumbnail_factor"));NVi=L}else NVi||(NVi=window.devicePixelRatio);L=NVi;_.e("kevlar_tuner_should_always_use_device_pixel_ratio")?O*=L:L>1&&(O*=L);if(_.e("kevlar_tuner_min_thumbnail_quality"))return W[0].url||
null;L=W.length;if(_.e("kevlar_tuner_max_thumbnail_quality"))return W[L-1].url||null;if(b)for(var h=0;h<L;h++)if(W[h].url.indexOf(b)>=0)return W[h].url||null;for(b=0;b<L;b++)if(W[b][T]>=O)return W[b].url||null;for(O=L-1;O>0;O--)if(W[O][T])return W[O].url||null;return W[0].url||null};
JyP=function(){TB.size?setTimeout(function(){Ld(M9X)},0):ulq=0};
M9X=function(){var W=(0,_.WO)(),O=null,b=!1;TB.forEach(function(L){L.loaded=!0;L.loadTime=W;L.pendingPaint=!1;var h=cy2.get(L);h&&h.resolve(W);O=L;b||!L.ftlEligible&&L.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(b=!0)});
var T;((T=O)==null?0:T.markDirty)&&O.markDirty();TB.clear();ulq=0;b&&FVQ(W)};
yy1=function(W){TB.add(W);W.pendingPaint=!0;ulq||(ulq=_.dd(_.sF,JyP))};
WsX=function(W){W.loaded=!1;W.loadTime=Infinity;var O=cy2.get(W);O&&(O.reject(Error("lh")),cy2.delete(W));W.pendingPaint&&(TB.delete(W),W.pendingPaint=!1)};
_.O$P=function(W){var O=W.indexOf(":");return O===-1?{originalName:W}:{originalName:W.substring(0,O),datasyncId:W.substring(O+1)}};
_.b$q=function(){return _.I(function(W){if(i$X!==void 0)return W.return(i$X);i$X=new Promise(function(O){var b;return _.I(function(T){switch(T.nextAddress){case 1:return _.LI(T,2),_.Y(T,_.hP.open("test-only"),4);case 4:return _.Y(T,_.hP.delete("test-only"),5);case 5:_.H3(T,3);break;case 2:if(b=_.ID(T),b instanceof Error&&b.name==="SecurityError")return O(!1),T.return();case 3:O("caches"in window),_.aD(T)}})});
return W.return(i$X)})};
LsO=function(){return _.I(function(W){if(W.nextAddress==1)return _.Y(W,_.b$q(),2);if(!W.yieldResult)return W.return(void 0);jAX||(jAX=new Tye);return W.return(jAX)})};
dDX=function(W){var O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return _.Y(h,LsO(),2);case 2:O=h.yieldResult;if(!O)throw Error("nh");return _.Y(h,O.open("yt-player-local-img"),3);case 3:return b=h.yieldResult,_.Y(h,b.match(W),4);case 4:T=h.yieldResult;if(!T)throw Error("oh");return _.Y(h,T.blob(),5);case 5:return L=h.yieldResult,h.return(L)}})};
hGe=function(W,O){for(var b in W)if(W.hasOwnProperty(b)&&O[b])return b;return null};
SUq=function(W){return"stamp"+W.replace("-","_")+"_"};
Z$X=function(W){var O=W.match(/\[\[([\w\.]+)\]\]/);if(O&&O.length>1)return O[1];_.Dt(Error("qh`"+W));return null};
I_e=function(W){return W===void 0?_.qC("REUSE_COMPONENTS",!1):W||!1};
YUh=function(W,O,b){b&&(O.is?(a_h.has(O)&&(W=a_h.get(O),b=W.listener,delete O[W.property],b.type==="element"&&O.removeEventListener(b.eventName,b.handler),a_h.delete(O)),mDO(O)):O.__proto__==HTMLElement.prototype&&(O=new _.pu("Rendererstamper removed a non custom element","Stamper: "+W+" element: "+(O&&O.nodeName)),_.z5(O)))};
Ei2=function(W,O,b,T){var L=O.node?O.node:O;_.Q(b).parentNode===L&&(O.removeChild(b),YUh(W,b,T));if(W=SE.get(b))SE.delete(b),_.sF.cancelJob(W);b.hidden=!1};
wY2=function(W,O,b,T){if(O&&O.children&&(b=O.children[b]))if(_.qC("DEFERRED_DETACH"))for(;b&&!SE.has(b);){var L=W,h=O,Z=b,a=T;Z.hidden=!0;L=_.KB(_.sF,Ei2.bind(null,L,h,Z,a),0);SE.set(Z,L);b=b.nextElementSibling}else for(;(Z=O.lastElementChild)&&(O.removeChild(Z),YUh(W,Z,T),Z!=b););};
AGO=function(W){var O=_.uy();_.kX(function(){for(var b=_.S(W.slotContent),T=b.next();!T.done;T=b.next())O.value.appendChild(T.value)});
return _.E("__slot-el",{el:O,skip:!0})};
_.Z3=function(W,O,b){b=b===void 0?XYO:b;bj.add(O);var T;(T=b).propNames!=null||(T.propNames=[]);var L=new Set(b.propNames),h=ntT();T=function(){var w=h.call(this)||this;w.props={};w.isUpdating=!1;w.hasAttached=!1;w.isInert=!1;w.updateQueued=!1;w.initialClasses=[];NWO(w,O);return w};
_.R(T,h);T.prototype.forwardKebabCaseProp=function(w,A){w=_.wl(w);if(L.has(w)||w==="children")this.props[w]=A};
T.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var w=_.S(this.initialClasses),A=w.next();!A.done;A=w.next())(A=A.value)&&this.classList.add(A);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
T.prototype.handleSlottedContent=function(){for(var w=new Map,A=_.S(this.children),X=A.next();!X.done;X=A.next()){X=X.value;var l=void 0,p=(l=X.getAttribute("slot"))!=null?l:"children";(l=w.get(p))?l.push(X):w.set(p,[X]);if(!X.getAttribute("key")){var K=void 0,k=void 0;X.setAttribute("key",p+"_"+((k=(K=l)==null?void 0:K.length)!=null?k:0))}}w=_.S(w);for(A=w.next();!A.done;A=w.next())X=_.S(A.value),A=X.next().value,X=X.next().value,this.forwardKebabCaseProp(A,_.E(AGO,{slotContent:X}))};
T.prototype.connectedCallback=function(){var w=this;if(!NWO(this,O)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var A=_.S(this.attributes),X=A.next();!X.done;X=A.next())X=X.value,this.forwardKebabCaseProp(X.name,zST(X));this.handleSlottedContent();b.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){w.afterFirstPatch()});
this.hasAttached=!0}};
T.prototype.attributeChangedCallback=function(w,A,X){this.isInert||this.isUpdating||this.isConnected||w!=="class"||this.initialClasses.push.apply(this.initialClasses,_.PG(X.split(" ")))};
T.prototype.disconnectedCallback=function(){s18(this)};
T.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var w,A;NGe(this,_.E(W,Object.assign({},this.props,{idomKey:(A=(w=this.__incrementalDOMData)==null?void 0:w.key)!=null?A:O})),!0)}catch(l){var X=l instanceof Error?l:new _.pu("Wiz rendering error");X.args||(X.args=[]);X.args.push("Error in deprecated web component wrapper");X.args.push(O.toLowerCase());_.Dt(X);throw l;}finally{this.updateQueued=this.isUpdating=!1}}};
T.prototype.enqueueUpdate=function(){var w=this;return _.I(function(A){if(b.synchronous)return w.update(),A.return();if(w.updateQueued)return A.return();w.updateQueued=!0;return A.return(Promise.resolve().then(function(){w.update()}))})};
T.prototype.notifyPath=function(){b.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Jq.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var Z=_.S(b.propNames),a=Z.next(),m={};!a.done;m={prop$jscomp$105:void 0},a=Z.next())m.prop$jscomp$105=a.value,Object.defineProperty(T.prototype,m.prop$jscomp$105,{set:function(w){return function(A){this.isInert||A===this.props[w.prop$jscomp$105]||(this.props[w.prop$jscomp$105]=A,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(m)});
customElements.define(O,T)};
_.UDT=function(W,O){return _.IJ(W.entities,"markersEngagementPanelSyncEntity",O)};
l_2=function(W,O){return _.IJ(W.entities,"fantasyWinProbabilityEntity",O)};
eG1=function(W,O){return _.IJ(W.entities,"fantasyTeamEntity",O)};
P9Q=function(W,O){return _.IJ(W.entities,"fantasyPlayerEntity",O)};
pY2=function(W,O){return _.IJ(W.entities,"booleanEntity",O)};
RGQ=function(W,O){return _.IJ(W.entities,"qrCodeEntity",O)};
KsX=function(W){return _.IJ(W.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
vi8=function(){if(IM)return IM;if(window.lottie)return IM=Promise.resolve(window.lottie);var W=_.BO(_.Cv("LOTTIE_URL"));return W?IM=new Promise(function(O,b){var T=document.createElement("script");T.addEventListener("load",function(){O(lottie)});
T.addEventListener("error",function(L){var h="Lottie library failed to load.";L?L.message&&(h+=" Original description: "+L.message,_.CB(L,h)):L=Error(h);_.z5(L);b(L)});
T.setAttribute("async","");_.fz(T,W);document.head.appendChild(T)}):Promise.reject(Error("rh"))};
giE=function(){return IM?IM:vi8()};
oi1=function(W){if(W)switch(W){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.e("kevlar_use_wil_icons"))return W=(W=KsX(_.uv().getState()))&&W.animationLightUrl&&W.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:W.animationLightUrl,pathDarkTheme:W.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:60,lazyLoad:!0}:void 0,W?W:aM.get("LIKE")}};
QAQ=function(W){var O=oi1(W);if(O)return O;switch(W){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return aM.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return aM.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return aM.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return aM.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return aM.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return aM.get("NOTIFICATION_BELL")}};
sAi=function(W,O){if(!W||kC1)O=!1;else{if(W.closest){var b=!!oi1(O);b=_.Cv("ID_TOKEN")&&b?!!W.closest("segmented-like-dislike-button-view-model"):!1}else b=!1;if(!b)if(W.closest)if(b=!_.Cv("ID_TOKEN"),W=W.closest("ytd-subscription-notification-toggle-button-renderer-next"),b||!W)b=!1;else{var T;b=((T=W.data)==null?void 0:T.targetId)==="notification-bell"&&O!=="EXPAND_MORE"}else b=!1;O=b}return O};
ByX=function(W){var O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.LI(T,2),_.Y(T,fetch(W),4);case 4:return O=T.yieldResult,_.Y(T,O.json(),5);case 5:return T.return(T.yieldResult);case 2:b=_.ID(T),_.z5(b),_.aD(T)}})};
rGT=function(W,O){var b,T,L;return _.I(function(h){if(h.nextAddress==1)return(b=O?W.pathDarkTheme:W.path)?_.Y(h,Promise.all([ByX(b),vi8()]),2):h.return();T=h.yieldResult;L=T[0];mR.set(b,L);_.aD(h)})};
_.YS=function(){var W=_.PD.apply(0,arguments);return function(){for(var O="",b=_.S(W),T=b.next();!T.done;T=b.next())if(T=T.value,typeof T==="function"&&(T=T()),T)if(typeof T==="string")O+=" "+T;else for(var L in T)if(T.hasOwnProperty(L)){var h=T[L];typeof h==="function"&&(h=h());h&&(O+=" "+L)}O=O.trim()||void 0;return _.ru(O)}};
_.E1=function(W){var O;var b=W.data;var T=W.className;var L=W.animationName;var h=W.animationRef;var Z=(O=W.elRefForInterop)||_.uy(),a;_.so(function(){var A;return void((A=a)==null?void 0:A.destroy())});
var m;_.kb(function(){var A=_.ru(L);if(A!==m){m=A;var X=Object.assign({},{animationName:A,animationRef:_.ru(h)},_.ru(b));try{_.iq().resolve(DD2)().then(function(K){var k;(k=a)==null||k.destroy();k=X.animationRef;var r=X.listeners;K=K.loadAnimation(Object.assign({},{container:Z.value},X.animationConfig));k&&(k.lottieEl=K);if(r)for(k=_.S(Object.entries(r)),r=k.next();!r.done;r=k.next()){var q=_.S(r.value);r=q.next().value;(q=q.next().value)&&K.addEventListener(r,q)}a=K})}catch(K){A=K;
var l="LottieComponent error.";A.message&&(l+=" Original description: "+A.message);_.CB(A,l);_.z5(A);var p;((p=X.listeners)==null?0:p.error)&&X.listeners.error(A)}}});
var w=_.YS("ytLottieComponentHost",T);return _.E(Cy2,{cond:function(){return!O},
then:function(){return _.E("lottie-component",{class:w,el:Z})}})};
zG2=function(W,O,b,T){function L(Z,a){if(O.value===a&&W!=null&&W.value){for(;W.value.firstChild;)W.value.removeChild(W.value.firstChild);W.value.classList.add("yt-spec-icon-shape");Z(W.value,T)}}
b=_.xD2(_.iq().resolve(_.Ix),b);if(typeof b==="function")O.value=null,L(b,null);else{var h=new _.mJ(b.then,b);O.value=h;h.then(function(Z){L(Z,h)})}};
qU1=function(W,O){var b=document.createElement("div"),T=_.g0(b,function(){return _.E(_.U,{cond:W,then:function(L){return _.E(C91,{data:L,options:O})}})});
return[b,T]};
_.wd=function(){for(var W=[],O=_.S(_.PD.apply(0,arguments)),b=O.next();!b.done;b=O.next())if(b=b.value)if(typeof b==="string")W.push(b);else{b=_.S(Object.entries(b));for(var T=b.next();!T.done;T=b.next()){var L=_.S(T.value);T=L.next().value;(L=L.next().value)&&W.push(T)}}return W.join(" ")};
H$O=function(W){var O=_.uy(),b=BU(),T=Mp(W.character)||Mp(W.previousCharacter);c8X(function(){if(W.marginMultiplier){var L;(L=b.value)==null||L.cancel();T?(L=W.previousCharacter?Number(W.previousCharacter)+10:W.rollUp?0:30,W.shouldAnimate||(L-=niE(W,L))):(L=W.rollUp?0:2,W.shouldAnimate||(L-=W.rollUp?-1:1));O.value.style.marginTop="-"+L*W.marginMultiplier+"px";W.shouldAnimate?b.value=f_1(O.value,W,L,T):O.value.style.display=W.character?"":"none"}});
return _.E("animated-rolling-character",{el:O,class:"animated-rolling-character-wiz"},Fu(T,function(){for(var L=[],h=1;h<30;h++)L.push(_.E("div",null,h%10));return _.E(_.TT,null,_.E("div",null,"\u00a0"),L,_.E("div",null,"\u00a0"))},function(){return GCT(W.character)}))};
GCT=function(W){return _.E(_.TT,null,_.E("div",null,"\u00a0"),_.E(_.TT,null,Fu(!W||_.Zi(W),function(){return _.E("div",null,"\u00a0")},function(){return _.E("div",null,W)})),_.E("div",null,"\u00a0"))};
f_1=function(W,O,b,T){b=new Animation(new KeyframeEffect(W,[{transform:"translateY(0px)"},{transform:"translateY("+(T?niE(O,b):O.rollUp?-1:1)*O.marginMultiplier+"px)"}],tyT),document.timeline);O.character?(W.style.display="",b.onfinish=null):b.onfinish=function(){W.style.display="none"};
b.play();return b};
niE=function(W,O){var b=Number(W.character)+10;if(W.previousCharacter)if(W.character){var T=Number(W.character),L=Number(W.previousCharacter);W=W.rollUp?L<T?b:b+10:L<T?b-10:b}else W=W.rollUp?30:0;else W=W.character==="0"?b:W.rollUp?b-10:b+10;return O-W};
_.AP=function(W,O){return function(b){var T={},L;for(L in b){var h=void 0,Z=void 0;((h=O)==null?0:(Z=h.callbacks)==null?0:Z[L])||(T[L]=b[L])}return _.E(a3e,null,function(){for(var a in T)b[a]=_.ru(T[a]);b.disableReactiveLogging=!0;return _.E(W,Object.assign({},b))})}};
_.$Di=function(W){var O=BU(),b=BU();QP(function(){O.value=W.numberText;b.value=W.numberValue},[W.numberText]);
var T=W.fontSizeMultiplier?W.heightPx*W.fontSizeMultiplier:W.heightPx,L=LA2(function(){if(W.numberText){var Z=W.numberText;var a=W.forceRollUp||!b.value||!W.numberValue||b.value<W.numberValue;var m=!!W.shouldAnimate,w=O.value,A=[],X=0,l=0,p=(w?w.replace(/\D/g,"").length:0)-(Z?Z.replace(/\D/g,"").length:0);w=w?w.split(/(\d)/).filter(Boolean):[];for(Z=Z.split(/(\d)/).filter(Boolean);p<0;){var K=Z[l];A.push({character:K,rollUp:a,marginMultiplier:T,shouldAnimate:m});l++;Mp(K)&&p++}for(;X<p;)K=w[X],A.push({previousCharacter:K,
rollUp:a,marginMultiplier:T,shouldAnimate:m}),X++,Mp(K)||p++;for(;l<Z.length;)p=Z[l],K=w[X],Mp(p)===Mp(K)?(l++,X++):Mp(p)?(X++,p=void 0):Mp(K)&&(l++,K=void 0),A.push({character:p,previousCharacter:K,rollUp:a,marginMultiplier:T,shouldAnimate:m});a=A}else a=[];return a},[W.numberText]),h=W.numberText?["height: "+T+"px;",
"line-height: "+W.heightPx+"px;"].join(" "):"";return _.E("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:h,dir:"ltr","aria-hidden":"true"},L.map(function(Z){return _.E(H$O,Object.assign({},Z))}))};
VyQ=function(W){var O=W.nodeName;if(W.id)return O+="#"+W.id;if(W.classList)for(var b=_.S(W.classList),T=b.next();!T.done;T=b.next())O+="."+T.value;W.parentElement&&(O=VyQ(W.parentElement)+" > "+O);return O};
Nyi=function(W){return function(O){var b=kM8("event",{type:O.type});b&&O.target&&b.attr("nodepath",VyQ(O.target));return rRX(b,W,O)}};
_.XL=function(W){W&&s$T("event")&&(W=Nyi(W));return HbX(function(O){var b,T=(b=W)==null?void 0:b(O);return typeof T==="boolean"?T:!0})};
U1=function(W){return function(){return W()?W():void 0}};
My1=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
uCX=function(W){return new KeyframeEffect(W,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
JG1=function(W){var O=_.S(_.wu(W,void 0,"Clci1e")),b=O.next().value,T=O.next().value;b.current=W;return[b,function(L){return void T(b.current=L)}]};
_.ln=function(W){var O=FF(function(){return JG1(W())},{isEqual:function(b,T){return b[0].current===T[0].current}});
return[function(){return O()[0]()},
function(b){return void O()[1](b)}]};
_.eE=function(W){return function(){var O="",b;for(b in W){for(var T=W[b];typeof T==="function";)T=T();T!==void 0&&T!==null&&(O+="; "+b+": "+T)}return O.length>0?_.ru(O.slice(2)):_.ru()}};
cG8=function(W){switch(W){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"}};
OG1=function(W,O,b,T,L,h){var Z=FsO(W),a=Z.disabled,m=Z.iconPosition,w=Z.style,A=Z.focused,X=function(){return!!K()&&m()==="icon-only"},l=function(){return!!K()&&m()==="icon-only-40"},p=function(){return!!K()&&m()==="icon-with-label"},K=function(){return!!O||!(T==null||!T())};
return{type:function(){return w()==="call-to-action-inverse"?"text":w()==="overlay-dark"&&W().type!=="filled"&&W().type!=="tonal"?"tonal":W().type},
shouldFocus:function(){return(A()||(h==null?void 0:h()))&&!a()},
hasIconLeading:function(){return!!K()&&m()==="leading"},
hasIconTrailing:function(){return!!K()&&m()==="trailing"},
hasIconLeadingTrailing:function(){return!!K()&&!!(b||L!=null&&L())&&m()==="leading-trailing"},
hasIconOnly:X,hasIconOnly40:l,hasIconWithLabel:p,iconButton:function(){return X()||l()||p()},
visiblyDisabled:function(){return(a()?"disabled":W().state)==="disabled"||a()},
overrideSmallSizeIcon:function(){return yGq(W(),K())},
iconToRender:O?O:function(){return _.E(_.Ps,{icon:T,size:function(){return pd(W(),!0)},
active:function(){return W().toggled},
iconFilter:function(){return WTO(W())}})},
secondaryIconToRender:b?b:function(){return _.E(_.Ps,{icon:L,size:function(){return pd(W(),!0)},
active:function(){return W().toggled},
iconFilter:function(){return WTO(W())}})}}};
FsO=function(W){return{size:function(){return W().size},
style:function(){return W().style},
focused:function(){return W().focused},
disabled:function(){return W().disabled},
onTap:function(O){var b,T;return(T=(b=W()).onTap)==null?void 0:T.call(b,O)},
alignByText:function(){return W().alignByText},
aTagConfig:function(){return W().aTagConfig},
customColors:function(){return W().customColors},
segmentedPosition:function(){return W().segmentedPosition},
toggled:function(){return W().toggled},
toggleable:function(){return W().toggleable},
accessibilityLabel:function(){return W().accessibilityLabel},
onToggle:function(O){var b,T;return(T=(b=W()).onToggle)==null?void 0:T.call(b,O)},
iconPosition:function(){return W().iconPosition},
oneOffCustomTextWrap:function(){return W().oneOffCustomTextWrap},
disableTextEllipsis:function(){return W().disableTextEllipsis},
disableBackdropFilter:function(){return W().disableBackdropFilter},
tooltipText:function(){return W().tooltipText},
ariaHidden:function(){return W().ariaHidden},
tabIndex:function(){return W().tabIndex},
buttonText:function(){return W().buttonText},
formattedButtonText:function(){return W().formattedButtonText},
animatedTextProps:function(){return W().animatedTextProps}}};
iGh=function(W){return W.style==="overlay-dark"?4:W.style==="overlay"?W.type==="filled"?4:3:W.type==="filled"||W.style==="call-to-action-inverse"||W.style==="mono-inverse"?2:1};
yGq=function(W,O){O=(W.iconPosition==="icon-only"||W.iconPosition==="icon-only-40"||W.iconPosition==="icon-with-label")&&O;return!W.segmentedPosition&&O&&W.size==="S"};
bGq=function(){return!_.e("web_disable_backdrop_filter")};
pd=function(W,O){switch(W.size){case "XS":return 16;case "S":return yGq(W,O)?24:16;default:return 24}};
jj1=function(W){switch(W){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"}};
THi=function(W){switch(W){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"}};
LTX=function(W){switch(W){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"}};
WTO=function(W){if(W.style==="overlay-dark"&&W.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
dbX=function(W){if(!W)return{};var O=W.color,b=W.backgroundColor;W=W.borderColor;var T="";O&&(T+="color: "+O+";");b&&(T+="background-color: "+b+";");W&&(T+="border-color: "+W+";");return{style:T}};
IDO=function(W,O,b){var T=W.buttonText,L=W.formattedButtonText,h=W.formattedButtonTextLegacy,Z=W.animatedTextProps,a=W.style,m=W.size,w=W.focused,A=W.disabled,X=W.onTap,l=W.alignByText,p=W.aTagConfig,K=W.customColors,k=W.segmentedPosition,r=W.toggled,q=W.toggleable,f=W.accessibilityLabel,M=W.onToggle,V=W.iconPosition,jQ=W.oneOffCustomTextWrap,y=W.disableTextEllipsis,d8=W.disableBackdropFilter,pE=W.tooltipText,Qh=W.ariaHidden,KE=W.tabIndex,fE=W.state,r8=W.type;a==="call-to-action-inverse"&&(r8="text");
a==="overlay-dark"&&r8!=="filled"&&r8!=="tonal"&&(r8="tonal");var nE=!!O&&V==="leading",tX=!!O&&V==="trailing",yh=!!O&&!!b&&V==="leading-trailing",Gw=!!O&&V==="icon-only",KH=!!O&&V==="icon-only-40",h9=!!O&&V==="icon-with-label",I7=Gw||KH||h9;A&&(fE="disabled");var T1=fE==="disabled"||A;fE=yGq(W,!!O);var Y$={},aR=(Y$["yt-spec-button-shape-next"]=!0,Y$[jj1(r8)]=!0,Y$[THi(a)]=!T1,Y$["yt-spec-button-shape-next--disabled"]=!!T1,Y$[LTX(m)]=!0,Y$["yt-spec-button-shape-next--focused"]=!!w&&!A,Y$["yt-spec-button-shape-next--icon-trailing"]=
tX,Y$["yt-spec-button-shape-next--icon-leading"]=nE,Y$["yt-spec-button-shape-next--icon-leading-trailing"]=yh,Y$["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=yh&&!(T||L),Y$["yt-spec-button-shape-next--icon-button"]=Gw||h9,Y$["yt-spec-button-shape-next--icon-only-default"]=KH,Y$["yt-spec-button-shape-next--align-by-text"]=!!l,Y$["yt-spec-button-shape-next--segmented-start"]=k==="start",Y$["yt-spec-button-shape-next--segmented-end"]=k==="end",Y$["yt-spec-button-shape-next--override-small-size-icon"]=
fE,Y$["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!jQ,Y$["yt-spec-button-shape-next--disable-text-ellipsis"]=!!y,Y$["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!d8&&bGq(),Y$),f0=function(){if(Z)Nq(_.$Di)(Z);else if(h)h(V==="icon-with-label"||jQ?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(L){var Nz=V==="icon-with-label"||jQ;sF8(Object.assign({},L,Nz?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!Nz})}else T&&iW(T)},SQ=function(Nz){X==null||X(Nz);
q&&(M==null||M(Nz))},R7=p?hBX:ScE,zw=p?"aria-current$":"aria-pressed$",G1=function(){O&&(nE||yh||I7)&&function(){RM({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){O()})}();
(T||L||h||Z)&&!I7&&function(){RM({className:"yt-spec-button-shape-next__button-text-content"},function(){f0()})}();
tX&&function(){RM({className:"yt-spec-button-shape-next__icon"},function(){O()})}();
yh&&function(){RM({className:"yt-spec-button-shape-next__secondary-icon"},function(){b()})}();
A||Nq(_.Kd)({model:{color:iGh(W)}})},k$=function(){var Nz={};
R7(Object.assign({},(Nz.className=_.wd(aR),Nz.onclick=p?void 0:SQ,Nz.disabled=A,Nz["aria-disabled$"]=T1,Nz.style=A&&p?"pointer-events:none":void 0,Nz[zw]=q?!!r:void 0,Nz["aria-label$"]=f,Nz.title$=pE!=null?pE:"",Nz["aria-hidden$"]=Qh,Nz.tabindex$=KE,Nz),p,dbX(K)),function(){G1()})};
h9?(m={},a=(m["yt-spec-button-shape-with-label"]=!0,m["yt-spec-button-shape-with-label--is-overlay"]=a==="overlay"||a==="overlay-dark",m),ZG2({className:_.wd(a)},function(){k$();RM({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},f0)})):k$()};
aDQ=function(W,O){if(!Oo){var b;Tv1(function(){return b=Zd8(W,O)});
return b}return Zd8(W,O)};
mb8=function(){var W=K3Q(Oo||void 0,dfT);return W===Rh8||(W==null?void 0:W.name)==="\u0275NotFound"?void 0:W};
vs=function(W,O){_.zH(W,Object.assign({},O,{forceClickLogging:!0}))};
Yci=function(W,O,b,T){var L=void 0;return function(h){var Z=_.xy(b?W==null?void 0:W.onDisabledTap:W==null?void 0:W.onTap);if(Z){var a;L=(a=L)!=null?a:O==null?void 0:O.value;if(Z)if(_.e("web_button_vm_click_client_ve_killswitch"))vs(Z,Object.assign({},{form:{element:L,event:h}},void 0));else{var m;a=Z==null?void 0:Z.clickTrackingParams;var w,A=W==null?void 0:(m=W.loggingDirectives)==null?void 0:(w=m.clientVeSpec)==null?void 0:w.uiType;m=A&&!a?_.gd(A):void 0;vs(Z,Object.assign({},{form:{element:L,event:h}},
{clickedVisualElement:m}))}}T&&T(h)}};
EZh=function(W){switch(W){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"}};
wvO=function(W){switch(W){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"}};
AM1=function(W){switch(W){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"}};
Xv8=function(W){switch(W){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"}};
UbX=function(W,O){return _.IJ(W.entities,"engagementToolbarStateEntityPayload",O)};
eBE=function(W){(W=_.Pi(W))&&_.lD1(W)};
_.lD1=function(W){var O=_.Bb();O&&_.Hg(O,W)};
PST=function(W,O,b){_.jx(W,"yt-open-popup-action",[O,b||W])};
pvP=function(W,O){var b=_.r0(W,"endpoint"),T=_.r0(W,"action");return(b=T?T:b)&&O&&(b=O.navigationEndpointPopupMap[b])&&(W=_.GT(b,W),(b=_.r0(W,"renderer"))&&O.supportedPopups.hasOwnProperty(b))?{openPopupAction:{popupType:O.popupTypeMap[b],popup:W}}:null};
RBX=function(W,O,b,T){if(T){var L;b=b==null?void 0:(L=b.data)==null?void 0:L.contents;(L=b instanceof Array&&b.length?b[0]:b)&&(b=_.r0(L,"renderer"))&&T.supportedPopups.hasOwnProperty(b)&&(O.stopPropagation(),PST(W,{openPopupAction:{popupType:T.popupTypeMap[b],popup:L}}))}};
gZ8=function(W,O,b,T){T=T===void 0?!1:T;var L=KTP(O);if(L){L.href&&f_(L.href);var h=O.button;h=h!==void 0?h===0&&!oM(O):!oM(O);L.data&&h&&vZ8(W,L,O,b,T)}};
vZ8=function(W,O,b,T,L){L=L===void 0?!1:L;var h=_.Lu("pbj_navigate_limit",-1)===0;oZO(O);_.iq().resolve(_.OT(HZ));var Z=O.data;if(Object.keys(Z).length!==0)if(!_.e("unplugged_web_disable_actions_for_cec_endpoint")&&_.P(Z,_.I5))_.e("endpoint_behavior_command_executor_fix_killswitch")||(b.preventDefault(),b.stopPropagation()),_.Sx(W,[Z],W);else if(T=pvP(Z,T))Z.loggingUrls&&Z.loggingUrls.forEach(function(m){m.baseUrl&&_.G7(m.baseUrl)}),b.preventDefault(),b.stopPropagation(),PST(W,T,O);
else{var a=Qj2(0,O.data,b);if(W=O.getForm)W=W(),a.tempData=a.tempData||{},a.tempData=Object.assign({},a.tempData,W);W=_.Nd(b);if(T=W.find(function(m){return!!m.visualElement}))a.createScreenConfig=a.createScreenConfig||{},a.createScreenConfig.clickedVisualElement=T.visualElement;
if(!h)if(b.preventDefault(),b.stopPropagation(),_.P(Z,_.kVO)&&!L&&_.ax.instance)_.ax.instance.resolveCommand(Z,a);else if(_.e("kevlar_command_handler_formatted_string")&&!L&&_.ax.instance&&sjX(Z))L=W.find(function(m){return!!m.is})||b.target,b={form:Object.assign({},a,{event:b,
element:L,originatingNode:O})},_.ax.instance.resolveCommand(Z,b);else{Z=_.Nd(b);b=[];for(L=0;L<Z.length;L++)(h=Z[L].is)&&b.push(h);vy8({parents:b.join(","),text:O.innerText},function(){_.bX(O,"yt-navigate",a)})}}};
BHO=function(W){if(W=KTP(W))oZO(W),ZhE(W.href)};
KTP=function(W){W=_.Nd(W);for(var O,b=0;b<W.length;b++)if(O=W[b],O.tagName==="A"&&O.classList.contains("yt-simple-endpoint")){if(!O.data)break;return O}return null};
oM=function(W){return W.shiftKey||W.altKey||W.metaKey||W.ctrlKey};
rMi=function(W,O){var b={itct:O.clickTrackingParams};_.e("kevlar_client_side_screens")&&(!_.P(O,_.l8)||_.e("kevlar_exclude_endpoint_killswitch"))&&(b.endpoint=JSON.stringify(O));_.e("enable_unknown_lact_fix_on_html5")&&_.iq().resolve(_.OT(_.Qa))&&(b.lact=_.by());d5e(b);_.JC(W,b)};
oZO=function(W){W.href&&Object.keys(W.data).length!==0&&rMi(W.href,W.data)};
sjX=function(W){for(var O=_.S(Dbh),b=O.next();!b.done;b=O.next())if(W[b.value])return!1;return!0};
_.kS=function(W,O){if(O){var b={};xbh.forEach(function(T){T=zBE(O,T,"--yt-lightsource-");Object.assign(b,T)});
CSh.forEach(function(T){T=zBE(O,T,"--yt-basic-");Object.assign(b,T)});
_.Sl(W,b)}};
zBE=function(W,O,b){var T={};T[b+_.Ek(O)]=W&&W[O]?_.C_(W[O]):"";return T};
_.Bs=function(W,O,b){s1[W]||(s1[W]={});s1[W][O]=b};
_.rd=function(W){s1[W]||(s1[W]={});return s1[W]};
qcQ=function(W){if(!W)return{};var O=W.foregroundTitleColor,b=W.backgroundColor;W=W.borderColor;var T="text";W?T="outline":b&&(T="filled");return{type:T,customColors:{color:O?_.C_(O):void 0,backgroundColor:b?_.C_(b):void 0,borderColor:W?_.C_(W):void 0}}};
t_O=function(W){var O=W.renderer;var b=W.element;var T=W.commandController;var L=W.onTapCallback;var h=W.skipCommandHandling;var Z=W.overrides;var a=W.forceIcon;var m=W.forceModernIconButton;var w=W.forceDisabled;var A=W.isSubscribe===void 0?!1:W.isSubscribe;var X=W.isPressed===void 0?!1:W.isPressed;var l=W.useButtonSize===void 0?!1:W.useButtonSize;W=nZO(O);A&&(W.style="mono",W.type="filled");a=!O.icon||!a&&O.text?O.icon?O.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:m?"icon-only":"icon-only-40";a==="icon-only-40"&&(W.type="text");var p;m=Object;A=m.assign;l=fDe(O,l);X=!!O.isSelected||!_.e("web_propagate_is_pressed_killswitch")&&!!X;var K=O.isSelected!==void 0;w=w===void 0?O.isDisabled:w;var k=O.text?_.sz(O.text):void 0;var r,q,f,M=((r=O.accessibilityData)==null?void 0:(q=r.accessibilityData)==null?void 0:q.label)||((f=O.accessibility)==null?void 0:f.label);r=M?M:_.NX(O.text);b=GVP(O,b,T,L,h);T=HGE(O);T!=null&&T.length?(T=_.Cb({innertubeCommand:Xle(T),
forceNewState:!0}),T=qq(T)?T:void 0):T=void 0;return A.call(m,{},W,l,{iconPosition:a},Z,{focused:!1,toggled:X,toggleable:K,disabled:w,formattedButtonText:k,accessibilityLabel:r,onTap:b,aTagConfig:T},qcQ((p=O.colorData)==null?void 0:p.basicColorPaletteData),{oneOffCustomTextWrap:O.oneOffCustomTextWrap})};
GVP=function(W,O,b,T,L){return function(h){var Z=HGE(W);T(Z,h);if(!L){Z=_.S(Z);for(var a=Z.next();!a.done;a=Z.next())vs(a.value,{form:{element:O,event:h},commandController:b})}}};
HGE=function(W){var O=[];W.command&&O.push(W.command);W.serviceEndpoint&&O.push(W.serviceEndpoint);W.navigationEndpoint&&O.push(W.navigationEndpoint);return O};
fDe=function(W,O){if(O)switch(W.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(W.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
nZO=function(W){switch(W.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.D3=function(W){return _.Pj(function(){JjT()();return Vv(W)},void 0,"Icv7j")};
xS=function(W,O){return _.IJ(W.entities,"likeStatusEntity",O)};
$b2=function(W,O){return _.IJ(W.entities,"likeCountEntity",O)};
_.V_T=function(W,O){return _.IJ(W.entities,"stringEntity",O)};
NHq=function(W,O){if(!W)return!1;var b,T=(b=_.P(W,_.mM))==null?void 0:b.signal;if(T&&O.signalEndpointMap)return!!O.signalEndpointMap[T];var L;if((b=(L=_.P(W,_.Cd))==null?void 0:L.request)&&O.continuationEndpointMap)return!!O.continuationEndpointMap[b];for(var h in W)if(O.commandEndpointMap[h])return!0;return!1};
M_e=function(W,O){if(O.streamingEndpointMap)for(var b in W)if(O.streamingEndpointMap[b]&&(W=O.streamingEndpointMap[b]))return W()};
uhO=function(W,O){var b,T=(b=_.P(W,_.mM))==null?void 0:b.signal;if(T&&O.signalEndpointMap&&(b=O.signalEndpointMap[T]))return b();var L;if((b=(L=_.P(W,_.Cd))==null?void 0:L.request)&&O.continuationEndpointMap&&(L=O.continuationEndpointMap[b]))return L();for(var h in W)if(O.commandEndpointMap[h]&&(W=O.commandEndpointMap[h]))return W()};
JMT=function(W){var O={"Content-Type":"application/json"};_.Cv("EOM_VISITOR_DATA")?O["X-Goog-EOM-Visitor-Id"]=_.Cv("EOM_VISITOR_DATA"):_.Cv("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=_.Cv("VISITOR_DATA"));O["X-Youtube-Bootstrap-Logged-In"]=_.Cv("LOGGED_IN",!1);_.Cv("DEBUG_SETTINGS_METADATA")&&(O["X-Debug-Settings-Metadata"]=_.Cv("DEBUG_SETTINGS_METADATA"));W!=="cors"&&((W=_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(O["X-Youtube-Client-Name"]=W),(W=_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(O["X-Youtube-Client-Version"]=
W),(W=_.Cv("CHROME_CONNECTED_HEADER"))&&(O["X-Youtube-Chrome-Connected"]=W),(W=_.Cv("DOMAIN_ADMIN_STATE"))&&(O["X-Youtube-Domain-Admin-State"]=W),_.qC("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(W=_.Cv("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(O["X-YouTube-Lava-Device-Context"]=W));return O};
cMi=function(W,O){O.watchNextResponse||O.reelItemWatchResponse?O.watchNextResponse?W.content=O.watchNextResponse:W.content=O.reelItemWatchResponse:O.playerResponse?W.player=O.playerResponse:O.reelWatchSequenceResponse&&(W.reelSequence=O.reelWatchSequenceResponse)};
_.qf=function(W){if(!W)return null;for(var O=[],b=0;b<W.textSegments.length;b++){var T=W.textSegments[b];T.text?O.push(T):T.emojiId&&O.push({emoji_id:T.emojiId})}return{text_segments:O}};
iM1=function(W,O,b,T,L,h,Z){h=h===void 0?[]:h;var a=new _.nd;a.endpoint=b;if(!b)return _.xG(new _.pu("handle undefined endpoint",O.tagName)),a;var m=xqX(b);m.length&&(_.Sx(W,m,O,T),a.actions=m);b.loggingUrls&&b.loggingUrls.forEach(function(A){A.baseUrl&&HO(A.baseUrl,A.attributionSrcMode)});
m=!_.e("web_skip_impression_click_killswitch")&&T&&T.impression;if(b.clickTrackingParams&&!FTE(b)&&!yMX(O)&&!m&&(m=_.A4(),!_.fd(m,O))){var w=O.getScreenLayer&&O.getScreenLayer();w?m.clickCommand(b,null,w):m.clickCommand(b,null)}m=!1;for(w=0;w<h.length;w++)if((0,h[w])(O,b,T)){m=!0;break}!m&&W6E(b)&&(a.ajaxPromise=OMh(W,O,b,T,L,Z));return a};
yMX=function(W){var O;return(W=(O=W.data)==null?void 0:O.navigationEndpoint)&&!!W.clickTrackingParams};
FTE=function(W){var O=_.P(W,_.mM);if(O&&(O=O.signal)&&bM8.indexOf(O)>=0)return!0;for(var b in W)if(jOX.indexOf(b)>=0)return!0;return!1};
W6E=function(W){var O;if(((O=_.P(W,_.mM))==null?void 0:O.signal)==="CLIENT_SIGNAL")return!1;for(var b in W)if(TLe.indexOf(b)>=0)return!1;W=Object.keys(W);return W.length===1&&W[0]==="loggingUrls"?!1:!0};
mR8=function(W,O,b,T,L,h,Z){var a=_.GB.instance;if(a&&_.Hs(a,T))var m=_.tP(a,T,L).then(function(A){return(A==null?0:A.data)?A:{data:A}});
else m=W.requestDataForServiceEndpoint(T,L),_.P(T,L68)||_.P(T,dRh)||_.P(T,_.h7T)||_.P(T,SjQ)||_.z5(new _.pu("No RequestBuilder for endpoint",T));var w=_.$S();w.promise.thenCatch(function(){var A=_.r0(T,"action")||_.r0(T,"command")||_.r0(T,"endpoint");A&&(A=T[A],A.hasOwnProperty("onFailureAction")?_.Sx(O,[A.onFailureAction],b):A.hasOwnProperty("onFailureCommand")&&_.Sx(O,A.onFailureCommand,b));m.cancel("Resolver promise rejected")});
m.then(function(A){if(A){var X=A.error;if(X){if(h&&h.onServerError)h.onServerError(T,A);w.reject(new _.pu("Response error",T,X))}else if(A=A.data)if(X=A.error){if(h&&h.onServerError)h.onServerError(T,A);w.reject(new _.pu("Returned error",T,X))}else{ZMh(O,b,A,T);IZX(A);if(X=Dqq(A))for(var l=_.S(X),p=l.next();!p.done;p=l.next()){p=p.value;var K=_.iq().resolve(_.OT(aZ1))||Va;if(!_.GB.instance||!K.some(function(r){return!!_.P(T,r)})||_.e("kevlar_response_processor_allowlist_killswitch")){var k=K=void 0;
((k=_.P((K=p)==null?void 0:K.commandMetadata,_.F9))==null?0:k.sendPost)?_.da(O,[p]):_.Sx(O,[p],b)}}(l=_.P(A==null?void 0:A.frameworkUpdates,Nf))&&Z&&Z(l);if(h&&h.onSuccess)h.onSuccess(T,A);w.resolve(new _.Mf(A,X))}}else w.reject(new _.pu("Invalid service endpoint provided",T))},function(A){w.reject(A)});
return w.promise};
IZX=function(W){var O;(W=(O=_.P(W==null?void 0:W.onResponseReceivedCommand,_.Yj2))==null?void 0:O.continuationItems)&&(W==null?void 0:W.length)===1&&_.P(W[0],EDh)&&_.Bg("so_r",void 0,"search_overview_answer")};
OMh=function(W,O,b,T,L,h){var Z;return(Z=O.getNetworkManager&&O.getNetworkManager()?O.getNetworkManager():_.iq().resolve(_.OT(_.k1)))?mR8(Z,W,O,b,T,L,h):_.vi("No network manager.")};
ZMh=function(W,O,b,T){if(b=b.trackingParams||b.loggingDirectives&&b.loggingDirectives.trackingParams){var L;(_.P(T,wu1)||_.P(T,A71)||_.P(T,Xuh))&&T.clickTrackingParams?L=_.Pi(T.clickTrackingParams):_.e("web_graft_to_parent_command")&&T.clickTrackingParams&&(L=_.Pi(T.clickTrackingParams));var h;T=(h=O.getScreenLayer)==null?void 0:h.call(O);O=_.A4().graftServerVe(b,L,T);_.TU(W,"yt-store-grafted-ve-action",[O])}};
_.UR2=function(W){var O=new Image;return new _.mJ(function(b,T){O.addEventListener("load",function(){b()});
O.addEventListener("error",function(){T()});
O.src=W})};
lZX=function(W){return!!W};
e7X=function(W){return!!W};
PRX=function(W,O,b){var T=W.rowIndex;T!==void 0&&_.TU(W.hostElement,"yt-section-reactive-dismissal",[T,O,b])};
_.un=function(W,O,b){W=_.S(W);for(var T=W.next();!T.done;T=W.next()){T=T.value;if(T===O)break;for(var L=_.S(b),h=L.next();!h.done;h=L.next())if(h=h.value,T.tagName===h||!_.e("web_event_button_role_check_killswitch")&&T.role==="button"&&h==="BUTTON")return!0}return!1};
_.JP=function(W,O,b){W=_.S(W);for(var T=W.next();!T.done;T=W.next()){T=T.value;if(T===O)break;for(var L=_.S(b),h=L.next();!h.done;h=L.next())if(T.id===h.value)return!0}return!1};
puh=function(W,O){if(!W&&!O)return"medium";W=Math.max(W||0,O||0);return W>=256?"large":W>=96?"medium":"small"};
R7Q=function(W){switch(W){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.ya=function(){var W=_.iq().resolve(_.OT(_.cs));return W?(W=W.getCurrentPage())?_.FL(W):null:null};
_.Wm=function(){var W=_.ya();if(!W){var O=_.iq().resolve(_.OT(_.cs)),b=O?typeof O:"no page manager";O=O?O.getCurrentPage():null;b=new _.pu("Player is missing when requested.",b,O?O.tagName:"no page");_.Dt(b)}return W};
_.FL=function(W){return W&&W.getPlayer?W.getPlayer():null};
K6O=function(W,O){W={args:{raw_player_response:W}};O&&(W.args=Object.assign({},W.args,O));return W};
vDi=function(W){if(W.args){if(W.args.raw_player_response)return W.args.raw_player_response;if(W.args.player_response)return JSON.parse(W.args.player_response)}};
_.gD1=function(W,O){var b={url:"/watch?v="+W.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};W.playlistId&&(b.url+="&list="+W.playlistId);W.playerParams&&(b.url+="&pp="+W.playerParams);W={watchEndpoint:W,commandMetadata:{webCommandMetadata:b}};O&&(W.clickTrackingParams=O);return W};
QO1=function(){return oDX||!!_.GT("yt.player.Application")};
sO8=function(){return ke1||!!document.querySelector("link#player-css")};
r7O=function(){function W(){oDX=!0;BL2.resolve()}
var O,b;return _.I(function(T){BL2||(BL2=new _.S4,QO1()?W():(O=document.createElement("script"),O.addEventListener("load",W),b=_.o8(_.Cv("PLAYER_JS_URL")),_.fz(O,b),document.head.appendChild(O)));return T.return(BL2.promise)})};
xRX=function(){function W(){ke1=!0;DR2.resolve()}
if(!DR2)if(DR2=new _.S4,sO8())W();else{var O=document.createElement("link");O.id="player-css";O.addEventListener("load",W);var b=_.o8(_.Cv("PLAYER_CSS_URL"));_.tv(O,b,"stylesheet");document.head.appendChild(O)}return DR2.promise};
z7Q=function(){return QO1()&&sO8()?Promise.resolve([]):Promise.all([r7O(),xRX()])};
CRX=function(W,O,b){var T={args:{}};W&&(T.args.raw_player_response=W);O&&(T.args.raw_watch_next_response=O);b&&(T.args=Object.assign({},T.args,b));return T};
GeT=function(W,O,b){var T=!1;T=T===void 0?!0:T;W=typeof W==="string"?_.Ox(document,W):W;var L=qjO+"_"+_.d1(W),h=nDh[L];if(h&&T)return fZX(O,b)?h.api.loadVideoByPlayerVars(O.args||null):h.loadNewVideoConfig(O),h.api;h=new iw(W,L,O,b,void 0);nDh[L]=h;h.addOnDisposeCallback(function(){delete nDh[h.getId()]});
return h.api};
fZX=function(W,O){return O&&O.serializedExperimentFlags?O.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):W&&W.args&&W.args.fflags?W.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
HME=function(){var W=new _.S4;W.resolved=!1;var O=W.resolve;W.resolve=function(b){W.resolved=!0;O(b)};
return W};
$RX=function(W){var O={};th8().install((O.document_disposed={callback:W},O))};
bw=function(W,O){if(!W&&Math.random()<=_.Lu("kevlar_unified_player_logging_threshold")){W=Error("th`"+(O?O:"Unspecified error"));if(_.e("kevlar_unified_player_throw_errors"))throw W;_.z5(W)}};
_.VhQ=function(){var W=_.GT("ytDebugData.callbacks");W||(W={},_.c3("ytDebugData.callbacks",W));return W};
Mhq=function(W,O){var b=_.VhQ();if(_.e("web_dd_iu")||NLE.includes(W))b[W]=O};
uIO=function(){return _.I(function(W){return W.return({isLeader:_.RUX(_.uv().getState()),c:_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
J7P=function(){var W;_.I(function(O){if(O.nextAddress==1)return Mhq("APP_STATE",uIO),_.Y(O,_.iq().resolve(_.jk),2);W=O.yieldResult;Mhq("PI",function(){return _.I(function(b){return b.return(W.getVideoStats())})});
_.aD(O)})};
c78=function(W){var O=_.ue(_.fq(_.i1.location.href));W=_.ue(_.fq(W));return _.e("kevlar_clear_non_displayable_url_params")?O==Lp(W):Lp(O)==Lp(W)};
Lp=function(W){var O=_.F6O(W);W=W.slice(0);var b=["frags"];_.e("kevlar_hide_pp_url_param")&&b.push("pp");_.e("kevlar_hide_time_continue_url_param")&&b.push("time_continue");b=_.S(b);for(var T=b.next();!T.done;T=b.next())T=T.value,W=_.cb(_.ue(W),T);return _.ue(W)+(O?"#"+O:"")};
dt=function(W,O){O=Number(O)*1E3;var b=Math.round((0,_.WO)()),T=b.toString();W={innertubeResponse:W,serverDateTimestampMs:T,lastModifiedTimestampMs:T,expireTimestampMs:(b+O).toString()};if(O=_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME"))W.clientName=O;return W};
WEP=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++y7X};
_.OC8=function(){var W=_.sk(),O=_.Bb();O&&W&&_.$0(O,[W],!0)};
bCP=function(W){return W&&iC8.some(function(O){return W.includes(O)})};
Ss2=function(W){var O=_.P(W,_.t8);if(!O)return!1;var b=O.url,T=O.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!b)return _.Dt(Error("yh")),!1;if(O.target==="TARGET_NEW_WINDOW"){var L={};_.e("resolve_url_parent_tracking_params")&&(!_.cU(b)||Fk(window.location.href,b))&&(L={endpoint:W,itct:W.clickTrackingParams});d5e(L);W=null;try{if(T){a:{var h=b,Z=L;T=T===void 0?!1:T;Z&&_.JC(h,Z);var a=_.l7(h),m=_.EB(a);h!=m&&_.HU(Error("ag`"+h));h=m;try{if(T){m=h;m=whQ(m);f_(m);W=_.BD(window,m,"_blank",
"attributionsrc");break a}}catch(l){_.nv(l)}f_(h);W=_.BD(window,a,"_blank")}jfe(_.iq().resolve(Tfq),W,b);return!0}}catch(l){_.Dt(l)}_.JC(b,L);L={target:"_blank",noopener:_.e("set_window_noopener_ks")&&!O.allowOpener};O=window;a=Y4(b)?b:_.l7(typeof b.href!="undefined"?b.href:String(b));W=self.crossOriginIsolated!==void 0;h="strict-origin-when-cross-origin";window.Request&&(h=(new Request("/")).referrerPolicy);m=L.noreferrer;if(W&&m&&h==="unsafe-url")throw Error("qe");h=m&&!W;m=L.target||b.target;T=
[];Z=[];var w=!1;for(X in L){var A=L[X];switch(X){case "width":case "height":case "top":case "left":T.push(X+"="+A);break;case "target":break;case "noopener":case "noreferrer":A?Z.push(X):(w=!0,Z.push(X+"=false"));break;case "attributionsrc":T.push(X+(A?"="+A:""));break;default:T.push(X+"="+(A?1:0))}}var X=m!==void 0&&!["_blank","_self","_top","_parent",""].includes(m);X=kT()&&X;LE8&&W&&T.length===0&&Z.length>0&&!X&&!w?(Z.length===2&&(Z=["noreferrer"]),_.BD(O,a,m,Z[0]),W=dME()):(X=T.join(","),_.zX()&&
O.navigator&&O.navigator.standalone&&m&&m!="_self"?(X=_.AV("A"),vD(X,a),X.target=m,h&&(X.rel="noreferrer"),((L=L.attributionsrc)||L==="")&&X.setAttribute("attributionsrc",L),L=document.createEvent("MouseEvent"),L.initMouseEvent("click",!0,!0,O,1),X.dispatchEvent(L),X=dME()):h?(X=_.BD(O,"",m,X),O=_.EB(a),X&&(X.opener=null,O===""&&(O="javascript:''"),O='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+hI(O)+'">',O=oQ(O),(L=X.document)&&L.write&&(L.write(Q0(O)),
L.close()))):((X=_.BD(O,a,m,X))&&L.noopener&&(X.opener=null),X&&L.noreferrer&&(X.opener=null)),W=X);jfe(_.iq().resolve(Tfq),W,b);return!0}X=_.mp(b);X=bCP(X)||b==="https://studio.youtube.com/";O=!(!_.cU(b)||Fk(window.location.href,b));L=b.indexOf("disable_polymer=1")>=0;if(O||L||X)f_(b),Qw(),_.GF(b,void 0,void 0,window.top,hzh);else return _.z5(new _.pu("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",W)),!1;return!0};
_.aW8=function(W,O){O=O===void 0?0:O;if(!(_.P(W,ZCe)||_.P(W,IWi)||_.P(W,_.t8)&&_.P(W,_.t8).url))return!1;var b,T=(b=_.P(W,_.t8))==null?void 0:b.url;b=T?{externalLinkData:{url:T}}:null;return _.A4().clickCommand(W,b,O)};
mMX=function(W,O){return _.IJ(W.entities,"subscriptionStateEntity",O)};
Ys8=function(W,O){return _.IJ(W.entities,"subscriptionNotificationStateEntity",O)};
Ep8=function(W,O){return _.IJ(W.entities,"upcomingEventReminderStateEntity",O)};
waX=function(W,O){return _.IJ(W.entities,"engagementToolbarSurfaceEntityPayload",O)};
AK8=function(W,O){return _.IJ(W.entities,"triStateButtonStateEntityPayload",O)};
XaX=function(W,O){return _.IJ(W.entities,"commerceCartCheckoutButtonEntity",O)};
_.UMe=function(W,O){return _.IJ(W.entities,"playlistLoopStateEntity",O)};
lWE=function(W,O){return _.IJ(W.entities,"commandEntity",O)};
P6X=function(W,O,b,T,L){L=L===void 0?{}:L;return function(h){var Z,a;var m=((Z=W.loggingDirectives)==null?0:(a=Z.clientVeSpec)==null?0:a.uiType)?_.gd(W.loggingDirectives.clientVeSpec.uiType):void 0;L.clickedVisualElement||(L.clickedVisualElement=m);m=eze(W,O);b(m,h);m=_.S(m);for(Z=m.next();!Z.done;Z=m.next()){Z=Z.value;a=T;var w=h,A=L;A.form?A.form.event=w:A.form={element:a,event:w};vs(Z,A)}}};
eze=function(W,O){var b=[];O?(W.toggledCommand&&b.push(W.toggledCommand),W.toggledServiceEndpoint&&b.push(W.toggledServiceEndpoint)):(W.defaultCommand&&b.push(W.defaultCommand),W.defaultServiceEndpoint&&b.push(W.defaultServiceEndpoint),W.defaultNavigationEndpoint&&b.push(W.defaultNavigationEndpoint));return b};
pa8=function(W,O){var b=W.toggledStyle||W.style,T;switch((T=O?b:W.style)==null?void 0:T.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"}}};
_.Sk=function(){return _.I(function(W){return W.nextAddress==1?_.Y(W,_.iq().resolve(_.jk),2):W.return(_.iq().resolve(Rze)())})};
_.ZO=function(){return _.iq().resolve(Rze)()};
_.I4=function(){return sC(function(){return{lottieEl:void 0}})};
KEO=function(W,O){return W.startsWith(O.uniqueId)};
vph=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Sk(),2);O=T.yieldResult;if((b=O)==null||!b.addEventListener)return a4(),T.return();O.addEventListener("onCueRangeEnter",W);_.aD(T)})};
gpe=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Sk(),2);O=T.yieldResult;if((b=O)==null||!b.removeEventListener)return a4(),T.return();O.removeEventListener("onCueRangeEnter",W);_.aD(T)})};
opQ=function(W){var O,b,T,L,h;_.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,_.Sk(),2);O=Z.yieldResult;if((b=O)==null||!b.addCueRange)return a4(),Z.return();T=_.S(W.timings);for(L=T.next();!L.done;L=T.next())h=L.value,O.addCueRange(W.uniqueId+"-"+h,h/1E3,(h+100)/1E3);_.aD(Z)})};
Qfi=function(W){var O,b,T,L,h;_.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,_.Sk(),2);O=Z.yieldResult;if((b=O)==null||!b.removeCueRange)return a4(),Z.return();T=_.S(W.timings);for(L=T.next();!L.done;L=T.next())h=L.value,O.removeCueRange(W.uniqueId+"-"+h);_.aD(Z)})};
kr2=function(){var W,O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Sk(),2);W=T.yieldResult;if((O=W)==null||!O.getPlayerState)return a4(),T.return();b=W.getPlayerState();return T.return(b===2)})};
a4=function(){_.z5(new _.pu("Smartimation player does not exist or is corrupted"))};
sfT=function(){try{var W;return(W=window.CSS)!=null&&W.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(O){return _.z5(new _.pu("Smartimation CSS.supports threw an error")),!1}};
qsQ=function(W,O,b,T,L){var h=W.playlistId?BfT:rK8;O=O();b=b();L=!!W.videoId&&L()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.lv(O))return DM8({data:W,actionType:h,disabled:L},b);if(W.videoId&&T())return xMQ({data:W,actionType:h,disabled:L});switch(O){case "TRANSFER_STATE_UNKNOWN":return xMQ({data:W,actionType:h,disabled:L});case "TRANSFER_STATE_FAILED":return W.videoId?zzX({data:W,actionType:h,disabled:L}):C6Q({data:W,actionType:h,disabled:L});case "TRANSFER_STATE_COMPLETE":return C6Q({data:W,
actionType:h,disabled:L});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return DM8({data:W,actionType:h,disabled:L},b);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return W.videoId?zzX({data:W,actionType:h,disabled:L}):xMQ({data:W,actionType:h,disabled:L});default:return xMQ({data:W,actionType:h,disabled:L})}};
npT=function(W,O){var b=W.onTapCommand,T=_.xy(b);if(W.videoId&&_.P(T,_.mo))return _.P(T,_.mo).action=O,b;W.playlistId&&_.P(T,_.Yz)&&(_.P(T,_.Yz).action=O);return b};
xMQ=function(W){var O=W.data;var b=W.actionType;W=W.disabled;return{text:fW8,iconType:"OFFLINE_DOWNLOAD",onTap:npT(O,b.ACTION_ADD),disabled:W}};
DM8=function(W,O){var b=W.data;var T=W.actionType;W=W.disabled;var L="OFFLINE_DOWNLOAD";O>=0&&O<=.1?L="OFFLINE_DOWNLOADING_ZERO":O>.1&&O<=.3?L="OFFLINE_DOWNLOADING_TWENTY":O>.3&&O<=.5?L="OFFLINE_DOWNLOADING_FORTY":O>.5&&O<=.7?L="OFFLINE_DOWNLOADING_SIXTY":O>.7&&O<1?L="OFFLINE_DOWNLOADING_EIGHTY":O===1&&(L="OFFLINE_PIN");return{text:Gri,iconType:L,onTap:npT(b,T.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
C6Q=function(W){var O=W.data;var b=W.actionType;W=W.disabled;return{text:HCT,iconType:"OFFLINE_PIN",onTap:npT(O,b.ACTION_REMOVE_WITH_PROMPT),disabled:W}};
zzX=function(W){var O=W.data;var b=W.actionType;W=W.disabled;return{text:tte,iconType:"OFFLINE_DOWNLOAD",onTap:npT(O,b.ACTION_RETRY),disabled:W}};
Mti=function(W){var O=$MX;VtP.push(W);NfX||(O(function(){for(var b=_.S(VtP),T=b.next();!T.done;T=b.next())T=T.value,T();VtP.length=0;NfX=!1}),NfX=!0)};
$MX=function(W){Promise.resolve().then(W)};
Ex=function(W){W=_.S(Tdh(W));var O=W.next().value,b=W.next().value,T=!1;_.kX(function(){return function(){T=!0}});
return[O,function(L){Mti(function(){T&&!_.e("cow_prevent_state_setter_after_cleanup_killswitch")||b(L)})}]};
uAE=function(){var W=_.S(Ex(!1)),O=W.next().value,b=W.next().value;return function(){b(!O)}};
JKh=function(W){return sC(function(){return{value:W}})};
cK8=function(W,O){var b=JKh(W),T=JKh(O);QP(function(){b.value=W},[W]);
QP(function(){T.value=O},O&&O.length>=1?O:[void 0]);
var L=sC(function(){return{value:void 0}});
if(W!==b.value||T.value!==O||L.value===void 0)L.value=Vv(W,O);var h=uAE();_.kX(function(){function Z(){var m=Vv(b.value,O);m!==L.value&&(L.value=m,h())}
var a=_.$I().subscribe(Z);Z();return a});
return L.value};
_.wt=function(W,O){var b=JjT();return _.Pj(function(){b();return Vv(W,[_.ru(O)||""])},void 0,"HaeHEc")};
FE2=function(W){var O=_.wt(_.D5,function(){return W().videoId}),b=_.wt(_.x9,function(){return W().playlistId});
return function(){return W().videoId?O:W().playlistId?b:_.S(_.wu("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
yKq=function(W){var O=_.wt(zc,function(){return W().videoId}),b=_.wt(_.pX8,function(){return W().playlistId});
return function(){return W().videoId?O:W().playlistId?b:_.S(_.wu(0,void 0,"K4tgOc")).next().value}};
Wb8=function(W){var O=_.wt(_.sPT,function(){return W().videoId});
return function(){return W().videoId?O:_.S(_.wu(!1,void 0,"Oaxwcf")).next().value}};
OLE=function(W){var O=_.wt(vVT,function(){return W().videoId});
return function(){return W().videoId?O:_.S(_.wu("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
iL1=function(){return{}};
bLX=function(){var W,O;return(O=(W=_.iq().resolve(_.OT(_.t4)))==null?void 0:W())!=null?O:!1};
TsE=function(W,O){W=W===void 0?j01:W;switch(O.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},W,{isOpen:O.payload});default:return W}};
d_8=function(W,O){W=W===void 0?Lbe:W;switch(O.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},W,{isAllowed:O.payload});default:return W}};
S7h=function(W,O){W=W===void 0?hnQ:W;switch(O.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{errorMessage:O.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},W,{title:O.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},W,{privacy:O.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},W,{isDisabled:O.payload});default:return W}};
IoX=function(W,O){W=W===void 0?ZL8:W;switch(O.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},W,{isOpen:O.payload});default:return W}};
m_X=function(W,O){W=W===void 0?aoQ:W;switch(O.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},W,{isFullscreen:O.payload});case "SET_NAVIGATION_BUTTON":var b=O.payload.targetId,T=Object.assign({},W.navigationButtons);T[b]=O.payload.button;return Object.assign({},W,{navigationButtons:T});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},W,{topPanelId:O.payload});case "SET_SECONDARY_HEADER":return b=O.payload.panelId,T=Object.assign({},W.secondaryHeader),T[b]=O.payload.secondaryHeader,
Object.assign({},W,{secondaryHeader:T});default:return W}};
Al2=function(){return m1(Object.assign({},{entities:j38,voiceSearch:Aph,engagementPanel:m_X,bottomSheet:TsE,cinematicSetting:d_8,shorts:KrX,drawerLayout:IoX,createPlaylist:S7h,locationCollection:Y7P,reportChannel:EW2,reportForm:w8q},vPh))};
X8T=function(W,O){_.sF.addLowPriorityJob(function(){var b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return _.LI(h,2),_.Y(h,vi8(),4);case 4:return _.Y(h,fetch(W),5);case 5:return b=h.yieldResult,_.Y(h,b.json(),6);case 6:T=h.yieldResult;mR.set(W,T);requestAnimationFrame(function(){O(T)});
_.H3(h,0);break;case 2:L=_.ID(h),_.z5(L),_.aD(h)}})})};
U_1=function(W){var O={animationConfig:{},listeners:{}},b=function(){W(!0)};
O.listeners.data_failed=b;O.listeners.error=b;O.listeners.data_ready=function(){W(!1)};
return O};
Pg1=function(W){var O=W.model;var b=W.subscribed;var T=W.isOverlay;var L=W.element;var h=W.commandController;var Z=W.notificationState;if(b){var a,m;var w=(O==null?void 0:(a=O.buttonStyle)==null?void 0:a.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:O==null?void 0:(m=O.unsubscribeButtonContent)==null?void 0:m.buttonText}else{var A;w=O==null?void 0:(A=O.subscribeButtonContent)==null?void 0:A.buttonText}a:{var X;switch(O==null?void 0:(X=O.buttonStyle)==
null?void 0:X.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":a="S";break a;default:a="M"}}a:if(T)T="overlay";else switch(O.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":T="overlay";break a;default:T="mono"}a:if(b)var l="tonal";else switch((l=O.buttonStyle)==
null?void 0:l.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":l="tonal";break a;default:l="filled"}return{style:T,type:l,state:O.disableSubscribeButton?"disabled":"active",size:a,focused:W.focused,toggled:b,accessibilityLabel:loh(O,b,Z),buttonText:w,iconPosition:O.disableNotificationBell?"none":"leading-trailing",onTap:enX(O,b,L,h),disableTextEllipsis:!!W.disableTextEllipsis}};
enX=function(W,O,b,T){return function(L){if(O){var h;var Z=W.disableNotificationBell?_.xy(W==null?void 0:(h=W.unsubscribeButtonContent)==null?void 0:h.onTapCommand):_.xy(W==null?void 0:W.onShowSubscriptionOptions)}else{var a;Z=_.xy(W==null?void 0:(a=W.subscribeButtonContent)==null?void 0:a.onTapCommand)}Z&&vs(Z,{form:{element:b},commandController:T});L.stopPropagation()}};
loh=function(W,O,b){if(O){if(W==null?0:W.disableNotificationBell){var T;return W==null?void 0:(T=W.unsubscribeButtonContent)==null?void 0:T.accessibilityText}switch(b){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var L;return W==null?void 0:(L=W.bellAccessibilityData)==null?void 0:L.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var h;return W==null?void 0:(h=W.bellAccessibilityData)==null?void 0:h.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var Z;return W==null?void 0:(Z=
W.bellAccessibilityData)==null?void 0:Z.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var a;return W==null?void 0:(a=W.bellAccessibilityData)==null?void 0:a.disabledLabel;default:var m;return W==null?void 0:(m=W.unsubscribeButtonContent)==null?void 0:m.accessibilityText}}else{var w;return W==null?void 0:(w=W.subscribeButtonContent)==null?void 0:w.accessibilityText}};
p8e=function(W){if(W){switch(W){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":W="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":W="NOTIFICATIONS_OFF";break;default:W="NOTIFICATIONS_NONE"}return W}};
RnX=function(W,O,b){b.subscribed!==O&&((b=b.key)&&_.Ne(_.AI("subscriptionStateEntity",b,{key:b,subscribed:O})),W.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:O})),O||_.jx(W,"yt-unsubscribe-action"))};
gWE=function(W){W=_.P(_.xy(W),_.Kbe);var O,b,T,L;return(L=_.P(W==null?void 0:(O=W.panelLoadingStrategy)==null?void 0:(b=O.inlineContent)==null?void 0:(T=b.sheetViewModel)==null?void 0:T.content,vWi))==null?void 0:L.listItems};
Q0X=function(W,O){if(W.onShowSubscriptionOptions&&O&&(W=gWE(W.onShowSubscriptionOptions),W!=null&&W.length)){var b=p8e(O);W.forEach(function(T){T=_.P(T,_.oWT);var L,h,Z,a,m=T==null?void 0:(L=T.leadingImage)==null?void 0:(h=L.sources)==null?void 0:(Z=h[0])==null?void 0:(a=Z.clientResource)==null?void 0:a.imageName;T&&m&&(T.isSelected=m===b)})}};
kQe=function(W,O,b,T){O&&b?W.style.width=b+"px":!O&&T&&(W.style.width=T+"px")};
s08=function(W,O,b){var T;(T=W.lottieEl)==null||T.goToAndPlay(0);var L;(L=O.lottieEl)==null||L.goToAndPlay(0);_.Xg(_.sF,function(){var h;(h=b.lottieEl)==null||h.goToAndPlay(0)},300)};
Ux=function(){return _.iq().resolve(_.OT(BsE))||{}};
rlT=function(W){return typeof W==="function"};
_.lw=function(W){Object.keys(W);var O=function(b,T){var L=O.mapping||W;if(!b)return _.E(_.TT,null);if(Array.isArray(b)&&(b=D_e(L,O,b),Array.isArray(b))){if(!b.length)return _.E(_.TT,null);if(b.length>1){for(var h=!1,Z=!1,a=[],m={},w=0;w<b.length;m={data$jscomp$1828:void 0},w++)if(m.data$jscomp$1828=b[w],m.data$jscomp$1828){var A=x_q(m.data$jscomp$1828,L),X=A.mappingEntry;A=A.rendererName;X&&A&&(X&&(!rlT(X)&&znE(X)&&(Z=!0),!rlT(X)&&X.asyncId||(h=!0)),a.push(CgE(m.data$jscomp$1828,X,A,O,T)))}return Z&&
!h?_.E(_.TT,null,q7X()):_.E(_.TT,null,a)}b=b[0]}if(!b)return _.E(_.TT,null);b=D_e(L,O,[b])[0];if(!b)return _.E(_.TT,null);h=x_q(b,L);L=h.mappingEntry;h=h.rendererName;return L&&h?_.E(_.TT,null,CgE(b,L,h,O,T)):_.E(_.TT,null)};
O.mapping=W;return O};
_.nWT=function(W){var O=void 0,b;for(b in W)if(W.hasOwnProperty(b)){O=b;break}return O};
D_e=function(W,O,b){var T,L=(T=Ux().preProcessOptions)==null?void 0:T.idomOptions;if(!L)return b;Ux();return L.preProcessPropsIdom(W,b,O.triggerRerender)};
x_q=function(W,O){return(W=_.nWT(W))?{mappingEntry:O[W],rendererName:W}:{mappingEntry:void 0,rendererName:void 0}};
CgE=function(W,O,b,T,L){if(!O)return _.E(_.TT,null);var h={};L&&L[b]&&(h=Object.assign({},L[b]));W[b]!==void 0&&(h.data=W[b]);if(rlT(O))return O.debugName||(O.debugName=b),_.E(O,h);O.asyncId&&(T.pendingIdsMap=T.pendingIdsMap||{},T.pendingIdsMap[b]=O.asyncId);return O.templateFn?O.templateFn(h):znE(O)?q7X():_.E(_.TT,null)};
znE=function(W){var O;return(O=W.showPlaceholder)!=null?O:Ux().defaultShowPlaceholder};
q7X=function(){var W=Ux().placeholder;return W()};
foX=function(W,O){O=O===void 0?{shouldPersist:!0}:O;return{useUpdatableData:function(b,T){var L=[],h=_.S(_.ln(function(){var w=b();if(T!=null&&T.length&&L){var A=L.length>0;for(var X=!1,l=0;l<T.length;l++){var p=T[l]();A&&p!==L[l]&&(X=!0);L[l]=p}A=X}else A=!1;if(A)_.ek.remove(m());else if(A=_.ek.get(m()))return A;return w})),Z=h.next().value,a=h.next().value,m=_.Pj(function(){return W(b())},void 0,"VFraLb");
_.kb(function(){if(m()!=null){Pm.set(m(),[Z,a,!1]);var w=m();_.so(function(){Pm.delete(w)})}});
return[Z,function(w){a(w);O.shouldPersist&&_.ek.set(m(),w)}]},
getData:function(b){var T;return(T=Pm.get(W(b)))==null?void 0:T[0]()},
updateData:function(b,T){b=W(b);var L=Pm.get(b);if(!L)return!1;var h=_.S(L);L=h.next().value;h=h.next().value;T=T(L());h(T);O.shouldPersist&&_.ek.set(b,T);return!0},
useUpdatableDataIdom:function(b,T){var L=W(b),h=_.ek.get(L),Z=_.S(Ex(h!=null?h:b)),a=Z.next().value,m=Z.next().value,w=BU(h!=null?h:b);QP(function(){if(L!=null)return Pm.set(L,[function(){return w.value},
function(A){m(A);w.value=A},
Pm.has(L)]),_.sF.addJob(function(){_.pp(_.sF,function(){var A=Pm.get(L);A&&(A[2]=!1)},0)},8),function(){var A;
((A=Pm.get(L))==null?0:A[2])||Pm.delete(L)}},[L]);
QP(function(){a!==b&&(m(b),w.value=b)},T?[].concat(_.PG(T),[L]):[L]);
return[a,m]}}};
GQX=function(W){var O=_.S(_.wu(!0,void 0,"bKtO6d")),b=O.next().value;O.next();return function(){var T=A_(W.children());return _.E(_.U,{cond:b,then:function(){return T},
else:W.fallback})}()};
_.R4=function(W){var O=HLe(W),b=O.data,T=O.mapping,L=O.wrapper;O=O.pendingFallback;var h=function(){return tAq(_.ru(b))},Z=function(){var a=h(),m=[];
a=_.S(a);for(var w=a.next();!w.done;w=a.next()){var A=void 0;w=w.value;var X=void 0;for(A in w)if(!(!w).hasOwnProperty(A)){X=A;break}(A=X)&&m.push(A)}return m};
return W.data?_.E(GQX,{fallback:O},function(){return _.E(_.pv,{each:Z},function(a,m){var w=L?function(X){return L(function(){return T[a](X,m)},A,m)}:function(X){return T[a](X,m)};
w.debugName||(w.debugName=String(a));if(!T[String(a)])return document.createComment("");var A=$_8(h,a,m);return _.E(w,{data:A})})}):_.E(_.TT,null)};
HLe=function(W){var O=W.targetId||VAX(W.children);if(!W.data||!O||_.e("mweb_new_replaceables_killswitch"))return Object.assign({},W,{mapping:W.children,wrapper:void 0});var b="stamper-"+NsX++,T=function(){var a;return(a=_.ru(W.targetId))!=null?a:b};
O=_.S(MA8(function(){var a=tAq(W.data());a.targetId=T;return a})).next().value;
var L=Object.assign({},Ux().replaceableMapping,W.children);if(W.replacementWrapper){var h=L.notificationTextRenderer,Z=L.notificationMultiActionRenderer;h&&(L.notificationTextRenderer=function(a,m){return W.replacementWrapper(h({data:a.data},m))});
Z&&(L.notificationMultiActionRenderer=function(a,m){return W.replacementWrapper(Z({data:a.data},m))})}return Object.assign({},W,{data:O,
mapping:L,wrapper:function(a,m,w){return aDQ({targetId:T,stamperIndex:w},a)}})};
$_8=function(W,O,b){var T;return _.Pj(function(){var L=W()[b()];if(L)T=L[O];else return _.z5(new _.pu("Stamper failed to find "+String(O)+" at index "+b()+" of data array of length "+(W().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),T;return L[O]},void 0,"DHuMIe")};
VAX=function(W){W=_.S(Object.keys(W));for(var O=W.next();!O.done;O=W.next())if(O=O.value,uR8.includes(O)||Jlq.includes(O)||clh.includes(O))return!0;return!1};
tAq=function(W){return W?Array.isArray(W)?W:[W]:[]};
FbX=function(W){W=_.P(W,_.Kp);return(W==null?void 0:W.iconName)&&!(W==null?0:W.title)};
Oy2=function(W,O,b){var T;return _.E(_.TT,null,W==null?void 0:(T=W.actions)==null?void 0:T.map(function(L){return _.E("div",{class:function(){var h={"yt-flexible-actions-view-model-wiz__action":!0};h["yt-flexible-actions-view-model-wiz__action--row-action"]=O;h["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(FbX(L))var Z=!0;else if(Z=_.P(L,_.vm),(Z==null?0:Z.isToggled)&&FbX(Z==null?void 0:Z.toggledButtonViewModel)||(Z==null||!Z.isToggled)&&FbX(Z==null?void 0:Z.defaultButtonViewModel))Z=
!0;else{var a;Z=((a=_.P(L,ylX))==null?0:a.playlistId)?!0:!1}h=(h["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=Z,h["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=b,h);return _.wd(h)}},Wv8([L],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!O}}))}))};
iyP=function(W){var O=W.layout===1,b,T=((b=W.data)==null?void 0:b.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";b={};T=(b["yt-flexible-actions-view-model-wiz"]=!0,b["yt-flexible-actions-view-model-wiz--inline"]=!O,b["yt-flexible-actions-view-model-wiz--scrollable"]=T,b);var L,h;return _.E("yt-flexible-actions-view-model",{class:_.wd(W.className,T)},(L=W.data)==null?void 0:(h=L.actionsRows)==null?void 0:h.map(function(Z){if(O){var a;return _.E("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Oy2(Z,O,!((a=W.data)==null||!a.respectActionIntrinsicWidth)))}return Oy2(Z,O,!1)}))};
by2=function(W){return!(W==null||!W.iconName||(W==null?0:W.title))};
jgO=function(W){var O=_.P(W.data.toggleButtonViewModel,_.vm),b,T=(b=W.data.dislikeEntityKey)!=null?b:"",L=cK8(xS,[T]);O=Object.assign({},O,{isToggled:L?L.likeStatus==="DISLIKE":O.isToggled});return _.E("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.E(_.gt,{data:O,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(h){L&&h!==(L.likeStatus==="DISLIKE")&&L.key&&_.Ne(_.o4("likeStatusEntity",L.key,{likeStatus:h?"DISLIKE":"INDIFFERENT",hadUserInteraction:h}))}}))};
Lv8=function(W){var O=_.e("web_supports_animations_api"),b=_.P(W.data.toggleButtonViewModel,_.vm),T,L,h,Z,a=_.S(Ex({numberText:(Z=(T=W.likeCountEntity)==null?void 0:(L=T.likeCountIfIndifferent)==null?void 0:L.content)!=null?Z:"",numberValue:Number((h=W.likeCountEntity)==null?void 0:h.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),m=a.next().value,w=a.next().value,A,X,l,p;T=_.S(Ex({numberText:(p=(A=W.likeCountEntity)==null?void 0:(X=A.likeCountIfLiked)==null?void 0:X.content)!=null?
p:"",numberValue:Number((l=W.likeCountEntity)==null?void 0:l.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));A=T.next().value;var K=T.next().value;X=_.S(Ex());var k=X.next().value,r=X.next().value,q;X=(q=W.data.likeStatusEntityKey)!=null?q:"";var f,M;q=(M=(f=W.likeCountEntity)==null?void 0:f.key)!=null?M:"";var V=cK8(xS,[X]),jQ=cK8($b2,[q]);f=LA2(function(){return(V==null?void 0:V.likeStatus)==="LIKE"},[V]);
QP(function(){var y,d8=jQ&&((y=jQ.likeCountIfIndifferent)==null?void 0:y.content)!==m.numberText;if(!k&&d8){var pE,Qh;w({numberText:(Qh=jQ==null?void 0:(pE=jQ.likeCountIfIndifferent)==null?void 0:pE.content)!=null?Qh:"",numberValue:Number(jQ==null?void 0:jQ.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var KE,fE;K({numberText:(fE=jQ==null?void 0:(KE=jQ.likeCountIfLiked)==null?void 0:KE.content)!=null?fE:"",numberValue:Number(jQ==null?void 0:jQ.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[jQ]);
b=Object.assign({},b,{isToggled:f});O=O&&W.likeCountEntity;return _.E("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.E(_.gt,{data:b,buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:O?m:void 0,animatedTextPropsToggled:O?A:void 0,onToggle:function(y){T28(y,V,k,r)},
style:function(){return W.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
T28=function(W,O,b,T){b&&_.sF.cancelJob(b);b=_.sF.addLowPriorityJob(function(){T(void 0)},5E3);
T(b);O&&W!==(O.likeStatus==="LIKE")&&O.key&&_.Ne(_.AI("likeStatusEntity",O.key,{key:O.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
dSE=function(W,O,b,T){b&&_.sF.cancelJob(b);b=_.sF.addLowPriorityJob(function(){T(void 0)},5E3);
T(b);O&&W!==(O.likeStatus==="LIKE")&&O.key&&_.Ne(_.AI("likeStatusEntity",O.key,{key:O.key,likeStatus:W?"LIKE":"INDIFFERENT",hadUserInteraction:W}))};
ZyX=function(W){var O,b=_.P((O=W.data)==null?void 0:O.likeButtonViewModel,_.QU),T;O=_.P((T=W.data)==null?void 0:T.dislikeButtonViewModel,_.kz);var L,h=(L=cK8(xS,[(b==null?void 0:b.likeStatusEntityKey)||""]))!=null?L:b==null?void 0:b.likeStatusEntity;T=LA2(function(){var Z=W.data,a;Z=(Z==null?void 0:(a=Z.timedAnimationData)==null?void 0:a.animationTiming)||[];return{uniqueId:"like-dislike",timings:Z,enabled:(h==null?void 0:h.likeStatus)==="INDIFFERENT"&&Z.length>0,experimentEnabled:Z.length>0}},[W.data,
h]);return _.E("segmented-like-dislike-button-view-model",{class:_.wd(W.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.E(sx,{settings:T},_.E("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},b?_.E(h11,{data:b,likeCountEntity:W.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,O?_.E(SGi,{data:O,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
Ilh=function(W,O){var b=J3(W)||{layerNode:O};b.layerNode=O;KcO(W,b);W.getScreenLayer=function(){return Bm(b.layerNode)}};
al1=function(W){var O;W=W.parentNode;for(var b;W&&((O=J3(W))==null||!O.isRenderer)&&!((b=W.polymerController)!=null?b:W).isRenderer_;)W=W.parentNode||W.host;if(O=W)return J3(O)};
mSP=function(W){if(W){uX.delete(W);var O=_.iq().resolve(O0);gAP(W,O)}};
EC1=function(W,O,b){if(b===void 0?0:b){if(b=W.getAttribute("client-ve-type"),O.data&&!O.disableReactiveLogging||b)_.Dq(function(){YGT(W,_.ru(O.data))}),_.so(function(){return void mSP(W)})}else typeof O.data!=="function"&&YGT(W,O.data)};
YGT=function(W,O){wpi++;AwQ(W,O)&&_.sF.addJob(function(){_.pp(_.sF,function(){if(AwQ(W,O)&&W.ownerDocument.documentElement===document.documentElement&&W){var b;if(W.getAttribute("layer")){var T=b=Number(W.getAttribute("layer")),L=J3(W);L?L.layerNode.layer=T:Ilh(W,new XpO(T));(T=al1(W))&&(L=J3(W))!=null&&(L.layerNode.parent=T.layerNode)}else if(b=J3(W))b=Bm(b.layerNode);else{b=Bm;T=new XpO;if(L=al1(W))T.parent=L.layerNode;Ilh(W,T);b=b(T)}b!=null||(b=0);T=W.getAttribute("client-ve-type");L=Number(T);
var h=!1;T=!1;var Z=J3(W),a;if((a=Z)&&!(a=Z[rt]!==O)&&(a=L)){var m;a=((m=uX.get(W))==null?void 0:m.clientVeType)===void 0}a&&(Z[rt]=O,h=T=Z.isRenderer=!0);uX.has(W)&&(uX.get(W).clientVeType=L);W.visualElement&&(T=!0);if(_.e("wiz_next_ld_fix_client_ve_spec")){var w;m=((w=_.P(O==null?void 0:O.rendererContext,_.XF))==null?void 0:w.loggingDirectives)||(O==null?void 0:O.loggingDirectives)}else m=O==null?void 0:O.loggingDirectives;m&&m.clientVeSpec&&(w=USO(_.Ez(),W),w=_.ll8(_.A4(),m,w||void 0,b))&&(W.visualElement=
w);!W.visualElement&&L&&h&&(W.veType=L,w=void 0,_.e("wiz_next_client_ve_parent_fix")&&(w=USO(_.Ez(),W)),w=_.wG(_.A4(),W,w,b),W.visualElement=w);T&&(w=_.iq().resolve(O0),s_T(W,{data:O,observer:w,layer:b,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
AwQ=function(W,O){return(O==null?0:O.trackingParams)||(O==null?0:O.loggingDirectives)||_.P(O==null?void 0:O.rendererContext,_.XF)||W.getAttribute("client-ve-type")?!0:!1};
P0E=function(W){return _.e("cow_logging_in_component_wrapper")?function(O){EC1(O,W,!0)}:e1q};
e1q=function(){};
_.ppX=function(W,O){return _.IJ(W.entities,"accountLinkStatusEntity",O)};
R12=function(W,O){return _.IJ(W.entities,"hatsSurveyEntity",O)};
Kv1=function(W,O){return _.IJ(W.entities,"hatsSurveyStateEntity",O)};
vCX=function(W,O){return _.IJ(W.entities,"quantityIncrementerEntity",O)};
sge=function(W){var O=W.data;var b=W.className===void 0?"":W.className;var T=W.setMinWidth;W=W.forceIconOnly;var L=_.uy(P0E({data:O}));T=T?"ytwAccountLinkButtonViewModelHostMinWidth":"";var h=_.wt(_.ppX,function(){var X;return(X=_.ru(O).accountLinkStatusEntityKey)!=null?X:""}),Z=_.wt(_.ppX,function(){var X;
return(X=_.ru(O).accountLinkStatusSecondaryEntityKey)!=null?X:""}),a=function(){if(!_.e("web_account_link_secondary_killswitch")){var X,l;
return((X=h())==null?void 0:X.linked)||((l=Z())==null?void 0:l.linked)}var p;return(p=h())==null?void 0:p.linked};
_.kb(function(){var X=h();if(X){var l=gCX(new oCT,QgP(new kfe,!!X.linked));_.Sk().then(function(p){p&&(p.setAccountLinkState(_.WM(l.JSC$10072_serializeBinary(),4)),p.updateAccountLinkingConfig(!!X.linked))})}});
var m=function(){return _.P(_.ru(O).toggleButtonViewModel,_.vm)};
_.MJ("yt-signal-action-show-account-link-dialog",function(){if(m()){var X=a()?m().toggledButtonViewModel:m().defaultButtonViewModel;X=_.P(X,_.Kp);var l;if((l=h())==null?0:l.isWarning){l=_.P(_.ru(O).warningButtonViewModel,_.Kp);if(!l){_.HU(Error("zh"));return}X=l}var p;(l=_.xy((p=X)==null?void 0:p.onTap))&&_.a5([l],L.value)}else _.HU(Error("Ah"))});
var w=function(){var X=m();return Object.assign({},X,{isToggled:a()})},A=W?{iconPosition:"icon-only"}:{};
return _.E("account-link-button-view-model",{class:_.YS("ytwAccountLinkButtonViewModelHost",function(){return _.ru(b)},T),
el:L,"button-renderer":!0},_.E("div",null,_.E(_.U,{cond:function(){var X;if((X=h())==null?0:X.isWarning)return(X=_.P(_.ru(O).warningButtonViewModel,_.Kp))||_.HU(Error("zh")),X},
then:function(X){return _.E(_.DO,{data:X,buttonOverrides:A})},
else:function(){return _.E(_.gt,{data:w,buttonShapeOverrides:A})}})))};
B2h=function(W){switch(W){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
rwq=function(W){switch(W){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}};
DSP=function(W){switch(W){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.z1E=function(W){var O=_.Lu("web_generic_client_event_wait_period ",0);O||(O=3E5);var b=xSQ.get(W);!_.e("enable_web_client_experiment_event_timeout_killswitch")&&b&&(0,_.WO)()-b<O||(xSQ.set(W,(0,_.WO)()),_.BZ("genericClientExperimentEvent",{eventType:W}))};
C01=function(W){switch(W){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
qGQ=function(W){if(!W)return"";var O,b=(O=_.iq().resolve(_.OT(_.t4)))==null?void 0:O(),T;if(!b&&((T=W.vibrantColorPalette)==null?0:T.iconInactiveColor))return qd(W.vibrantColorPalette.iconInactiveColor,"1");var L;return b&&((L=W.darkColorPalette)==null?0:L.iconInactiveColor)?qd(W.darkColorPalette.iconInactiveColor,"1"):W.color?qd(W.color,"1"):W.sampledThumbnailColor?(W=W.sampledThumbnailColor,"rgba("+W.red+","+W.green+","+W.blue+");"):""};
_.xz=function(W,O){if(!W.includes("DATE_PLACEHOLDER"))return W;var b=new Date(0);b.setUTCSeconds(O);return W.replace("DATE_PLACEHOLDER",nCe(b))};
_.zJ=function(W){W=_.flh(W);return _.e("web_watch_enable_single_column_grid_view")?W:!1};
_.flh=function(W){return W.watch.isWatchNarrowWidth};
GfQ=function(W,O,b){return function(T){var L=W.command;L&&(vs(L,{form:{element:b}}),O([L],T))}};
tF1=function(W,O,b,T,L){return function(h){var Z=HyQ(W,b);Z&&vs(Z,{form:{element:T},commandController:L});O&&O.stopPropagation&&h.stopPropagation()}};
HyQ=function(W,O){if(W.signInEndpoint&&!_.e("web_subscribe_sign_in_endpoint_killswitch"))return W.signInEndpoint;if(O){if(W.serviceEndpoints)return W.serviceEndpoints[1];if(W.onUnsubscribeEndpoints)return W.onUnsubscribeEndpoints[0]}else{if(W.serviceEndpoints)return W.serviceEndpoints[0];if(W.onSubscribeEndpoints)return W.onSubscribeEndpoints[0]}};
$Sq=function(W,O){var b,T,L,h;O=O&&((b=W.unsubscribeAccessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)||((L=W.subscribeAccessibility)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label);return W.longSubscriberCountText?[O,_.NX(W.longSubscriberCountText)].filter(function(Z){return Z}).join(" "):O};
Cp=function(W,O){return O||(W==null?0:W.isChannelDelegate)?"disabled":"active"};
VFX=function(W,O){var b;switch((b=W.style)==null?void 0:b.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Cp(W)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Cp(W)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Cp(W,!0)};case "OVERLAY":return O?{style:"overlay",type:"tonal",state:Cp(W)}:{style:"overlay",type:"filled",state:Cp(W)};default:return O?{style:"mono",type:"tonal",state:Cp(W)}:{style:"mono",type:"filled",state:Cp(W)}}};
N2X=function(W,O){var b=W.map(function(T){return T.toString()});
return _.XL(function(T){if(b.includes(T.key)){O&&T.preventDefault();var L;(L=T.currentTarget)==null||L.click()}})};
_.MF1=function(){return N2X(["Enter"])};
_.u_E=function(){return N2X(["Enter"," "],!0)};
_.qL=function(W){if(W.composedPath)return W.composedPath();if(!W.__composedPath){for(var O=[],b=W.target;b;)O.push(b),b=b.parentNode;O.push(window);W.__composedPath=O}return W.__composedPath};
_.JwP=function(W,O,b){W=_.S(W);for(var T=W.next();!T.done;T=W.next()){T=T.value;if(T===O)break;for(var L=_.S(b),h=L.next();!h.done;h=L.next())if(h=h.value,T.tagName===h||T.role==="button"&&h==="BUTTON")return!0}return!1};
Fv1=function(W,O){var b,T=(b=O.observer)!=null?b:_.iq().resolve(O0);if(W){b=cw2(W);var L=[];O.showOption&&L.push(T.observe(W,function(){O.visibilityCallback(!0)},O.showOption));
O.hideOption&&L.push(T.observe(W,function(){O.visibilityCallback(!1)},O.hideOption));
O.prescanOption&&O.prescanCallback&&L.push(T.observe(W,function(){O.prescanCallback()},O.prescanOption));
var h;b.visibilityMonitorKeys=((h=b.visibilityMonitorKeys)!=null?h:[]).concat(L)}};
cw2=function(W){var O;return(O=W.polymerController)!=null?O:W};
_.fp=function(W){return!!_.np(W)};
_.Ol8=function(W,O){var b=mb8();QP(function(){var T=W.value;if(T)return ywX(T,O),W$h(T,O,void 0,void 0,void 0,b)},[O])};
_.GJ=function(W,O,b,T,L,h){var Z=mb8();_.kb(function(){var a=W.value;a&&(ywX(a,O(),h),a=W$h(a,O(),b,T,L,Z),_.so(a))})};
ywX=function(W,O,b){var T=ilX(O),L=bl2(O);O=T&&jcX;var h=L&&TSe;(T||L)&&Fv1(W,{visibilityCallback:function(Z){var a=_.iq().resolve(_.bq);Z&&T?a.resolveCommand(T,{form:{element:b?W:void 0},disableClickTracking:!0}):!Z&&L&&a.resolveCommand(L,{form:{element:b?W:void 0},disableClickTracking:!0})},
showOption:O,hideOption:h})};
W$h=function(W,O,b,T,L,h){var Z=new Map;if(O=_.np(O)){var a;W=(T==null?void 0:(a=T.onTap)==null?void 0:a.value)||W;b=L$T(O,W,b==null?void 0:b.onTap,L,h);W.addEventListener("click",b);Z.set("click",b)}return function(){for(var m=_.S(Z),w=m.next();!w.done;w=m.next()){var A=_.S(w.value);w=A.next().value;A=A.next().value;W.removeEventListener(w,A)}}};
_.np=function(W){var O;return(W=(O=_.P(W,dW8))==null?void 0:O.onTap)&&_.xy(W)};
ilX=function(W){var O;return(W=(O=_.P(W,dW8))==null?void 0:O.onVisible)&&_.xy(W)};
bl2=function(W){var O;return(W=(O=_.P(W,dW8))==null?void 0:O.onHidden)&&_.xy(W)};
L$T=function(W,O,b,T,L){var h=function(a){_.iq().resolve(_.bq).resolveCommand(W,a)},Z=function(a){T&&_.JwP(_.qL(a),O,T)||h(a.target?{form:{element:a.target,
sourceData:W,mutationContext:L}}:void 0)};
b&&(Z=function(a){b(a,h)});
return Z};
hse=function(W){switch(W){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}};
SI2=function(W){var O=W.numAvatarsInCluster;switch(W.clusterSize){case "small":return O===2?22:18;case "40":return O===2?24:22;default:return O===2?24:20}};
ZlX=function(W,O){return function(b){var T=Object.keys(O);_.kb(function(){if(W()){for(var L=_.S(T),h=L.next();!h.done;h=L.next())h=h.value,b.addEventListener(h,O[h]);_.so(function(){for(var Z=_.S(T),a=Z.next();!a.done;a=Z.next())a=a.value,b.removeEventListener(a,O[a])})}})}};
IjX=function(W){switch(SI2(W)){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""}};
aj8=function(W){switch(W){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""}};
mWh=function(W){switch(SI2(W)){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""}};
YIi=function(W){switch(W){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""}};
EQ8=function(W){switch(W){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}};
wrX=function(W){return W==="medium"||W==="48"||W==="large"||W==="extra-large"||W==="extra-extra-large"||W==="giant"};
ArX=function(W){return!!((W==null?0:W.includes(3))||(W==null?0:W.includes(5)))};
UWO=function(W){return{size:Xrq(W.data.avatarImageSize),onTap:W.onTap,decorations:W.decorations||[],badgeText:W.badgeText,accessibilityText:W.accessibilityText,avatarButtonCustomClassName:W.avatarButtonCustomClassName,clusterLayoutConfig:W.clusterLayoutConfig}};
Xrq=function(W){switch(W){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"}};
ljO=function(W){switch(W){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}};
esh=function(W){switch(W){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
PxX=function(W){var O=W.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",b,T=W.avatars&&W.avatars.length>0?(b=_.P(W.avatars[0],_.Hm))==null?void 0:b.avatarImageSize:"AVATAR_SIZE_UNKNOWN";b=ljO(T)||0;if(O){var L,h=(L=W.avatarClusterSize)!=null?L:"AVATAR_SIZE_M";O=ljO(h);var Z,a,m=Math.min((a=(Z=W.avatars)==null?void 0:Z.length)!=null?a:0,4),w;return{avatars:((w=W.avatars)==null?void 0:w.slice(0,4))||[],avatarSizeInPx:b,avatarStackStyle:{width:O+"px",height:O+"px",position:"relative"},avatarStyle:function(X){var l=
SI2({clusterSize:Xrq(h),numAvatarsInCluster:m,avatarIndex:X});var p=ljO(h);m===3&&X===2?(p=(p-l)/2,p=(_.Cv("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*p):p=void 0;return{position:"absolute",top:m===2&&X===1||m===3&&X===2||m===4&&X>=2?"0":void 0,bottom:m===2&&X===0||m>2&&X<2?"0":void 0,left:m===2&&X===1||m>2&&(X===1||X===3)?"0":void 0,right:m<=3&&X===0||m===4&&(X===0||X===2)?"0":void 0,transform:p?"translateX("+p+"px)":void 0,width:l+"px",height:l+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(X){return{clusterSize:Xrq(W.avatarClusterSize),numAvatarsInCluster:m,avatarIndex:X}},
avatarButtonCustomClassName:void 0}}var A;return{avatars:((A=W.avatars)==null?void 0:A.slice())||[],avatarSizeInPx:b,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:esh(T),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
prQ=function(W,O,b){return function(){vs(W,{form:{element:O},commandController:b})}};
Rs1=function(W){switch(W){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
K$h=function(W){switch(W){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
vQq=function(W){var O=W.data;W=W.hidden===void 0?!1:W.hidden;var b={};W={class:_.wd("yt-page-indicator-view-model",(b["yt-page-indicator-view-model__indicator--hidden"]=!O.indicatorCount,b)),hidden:W};if(O.indicatorCount){b=[];for(var T=0;T<O.indicatorCount;T++){var L={};L=_.wd("yt-page-indicator-view-model__indicator",(L["yt-page-indicator-view-model__indicator--selected"]=O.selectedIndex===T,L));b.push(_.E("div",{class:L}))}O=_.E(_.TT,null,b)}else O=_.E(_.TT,null);return _.E("yt-page-indicator-view-model",
W,O)};
oQT=function(W){W&&(gQe(W)?delete W.inlinePlayerData:"inlinePlaybackEndpoint"in W&&delete W.inlinePlaybackEndpoint)};
QcX=function(W){if("accessibilityText"in W)return W.accessibilityText||"";if("title"in W){var O,b,T;return((O=W.title)==null?void 0:(b=O.accessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)||""}if("accessibility"in W){var L,h;return((L=W.accessibility)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label)||""}return""};
gQe=function(W){return"inlinePlayerData"in W};
tI=function(W){return new k$X(W)};
_.sch=function(W,O,b,T,L,h){var Z=function(w){w.preventDefault()},a=function(){var w=W.value;
if(w)return(w._data=O)?(w.addEventListener("touchstart",ewE,{passive:!0}),w.addEventListener("click",plP),O.clickTrackingParams&&(w.params={itct:O.clickTrackingParams}),RwP(w,O),vD(w,Kzq(O)||"")):w.addEventListener("click",Z),function(){O?(w.removeEventListener("touchstart",ewE,{passive:!0}),w.removeEventListener("click",plP)):w.removeEventListener("click",Z)}},m=function(){var w=W.value;
if(w){var A=_.Cb({innertubeCommand:O,elementsCommand:b,forceNewState:T,stopPropagation:h});if(A)return w._data=A._data,A["aria-haspopup$"]&&w.setAttribute("aria-haspopup",A["aria-haspopup$"].toString()),A["force-new-state$"]&&w.setAttribute("force-new-state",A["force-new-state$"].toString()),A.href$&&vD(w,A.href$),A.rel$&&(w.rel=A.rel$),A.role$&&w.setAttribute("role",A.role$),A.target$&&(w.target=A.target$),w.params=A.params,A.onclick&&w.addEventListener("click",A.onclick),A.onpointerdown&&w.addEventListener("onpointerdown",
A.onpointerdown),function(){A.onclick&&w.removeEventListener("click",A.onclick);A.onpointerdown&&w.removeEventListener("onpointerdown",A.onpointerdown)}}};
QP(L?m:a,[O,b])};
BSi=function(W){var O=W.children;var b=W.className;var T=W.dir;var L=W.style;var h=W.role;var Z=W.ariaSelected;var a=W.ariaLabel;var m=W.ariaHidden;var w=W.ariaLabelledby;var A=W.ariaDescribedby;var X=W.command;var l=W.elementsCommand;var p=W.forceNewState;var K=W.isPlaceholder;var k=W.tabIdentifier;var r=W.target;var q=W.tabIndex;var f=W.useATagConfig;var M=W.stopPropagation;W=_.uy();_.sch(W,X,l,p,f,M);l=_.XL(function(){return M===!1});
return _.E("a",{el:W,"on:click":l,class:b,style:L,dir:T,role:h?h:X?void 0:"group","aria-hidden":m?!0:void 0,"aria-label":a,"aria-labelledby":w,"aria-describedby":A,"aria-selected":Z,tabindex:q!==void 0?q:void 0,target:r,"tab-identifier":k,"force-new-state":p?!0:void 0,"is-placeholder":K?!0:void 0},O)};
rr2=function(W){var O=W.data;W=_.XL(function(){var L=_.P(O.onTap,_.D6);L&&_.iq().resolve(_.bq).resolveCommand(L);return!1});
var b={sources:[{url:O.thumbnailUrl,width:120,height:90}]},T=O.rating&&O.ratingA11yLabel&&O.reviewsCount&&O.reviewsCountA11yLabel;return _.E("place-data-view-model",null,O.placeName&&O.placeCategory?_.E("div",{class:"yt-spec-place-data-view-model-shape","on:click":W},_.E(_.uj,{data:b,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.E(BSi,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.P(O.onTap,_.D6),forceNewState:!0,useATagConfig:!0},
_.E("h3",{class:"yt-spec-place-data-view-model-shape__name",title:O.placeName},O.placeName)),_.E("div",{class:"yt-spec-place-data-view-model-shape__metadata"},T?_.E("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.E("span",{class:"score",title:O.ratingA11yLabel},O.rating),_.E("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.E(_.Ps,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.E("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:O.reviewsCountA11yLabel},O.reviewsCount)):_.E("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.E("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.E("span",{class:"category",title:O.placeCategory},O.placeCategory)))):null)};
DWX=function(W){return function(O){W&&(W.thumbnailElRef=O.thumbnailElRef,W.thumbnail=O.thumbnail,W.thumbnailOverlays=O.thumbnailOverlays,W.thumbnailSize=O.thumbnailSize)}};
xWP=function(W){var O;return(O=W.sharedUi)==null?void 0:O.animatedThumbnailEnabled};
zsi=function(W){var O;return(O=W.sharedUi)==null?void 0:O.inlinePreviewEnabled};
_.Cx8=function(W){var O;return(O=W.sharedUi)==null?void 0:O.currentPageSubType};
qIe=function(W){switch(W){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
fjO=function(W){var O=_.S(_.wu(!1,void 0,"RIOonf")),b=O.next().value,T=O.next().value;_.kX(function(){var L=W==null?void 0:W();if(L){var h=_.iq().resolve(_.OT(nQe));if(h){var Z={triggeringElement:L,onDwellTriggeredFn:function(){T(!0)},
onDwellEndFn:function(){T(!1)}};
h.registerElement(Z);_.so(function(){h.unregisterElement(Z)})}}});
return b};
G$h=function(W,O,b){b?b(O):_.nb(O,W.target?{form:{element:W.target}}:void 0)};
_.$z=function(W,O,b,T){_.kb(function(){var L=W.value;if(L){var h=new Map,Z,a=(Z=O())==null?void 0:Z.onTap;a&&(Z=function(m){a:{var w=m.composedPath();w=_.S(w);for(var A=w.next();!A.done;A=w.next()){A=A.value;if(A===L)break;if(A.className.indexOf("HostIsClickableAdComponent")>=0||A.tagName==="A".toString()||A.tagName==="BUTTON".toString()){w=!0;break a}}w=!1}w||(_.e("enable_square_image_components_ui_web_with_float_button")?_.bX(W.value,"yt-navigate",{endpoint:_.xy(a)}):G$h(m,a,b))},(T==null?0:T())||
_.e("enable_web_home_top_landscape_image_layout_level_click")?(L.addEventListener("tap",Z),h.set("tap",Z)):(L.addEventListener("click",Z),h.set("click",Z)));
_.so(function(){for(var m=_.S(h),w=m.next();!w.done;w=m.next()){var A=_.S(w.value);w=A.next().value;A=A.next().value;L.removeEventListener(w,A)}})}})};
Hlq=function(W,O){var b,T=(b=W.interaction)==null?void 0:b.onTap;if(W=_.Cb({elementsCommand:T,forceNewState:!0,skipOnClick:!0}))return W.onclick=function(L){Anh(L)&&(L.preventDefault(),T&&G$h(L,T,O))},qq(W)?W:void 0};
tRX=function(W){switch(W){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
$Wi=function(W){switch(W){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"}};
VRh=function(W){switch(W){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"}};
_.NS8=function(W){return _.e("rich_grid_enable_dynamic_offset")&&W?Math.max(Math.round((W-_.Lu("rich_grid_dynamic_offset_anchor_width",1300))/100*_.Lu("rich_grid_dynamic_offset_offset_per_100",10)),_.Lu("rich_grid_dynamic_offset_lower_bound",-60)):0};
MRE=function(W,O){switch(O){case 4:return 16;case 1:return W<528?16:W<1024?32:48;case 2:return(W>=528?16:8)/2;case 3:return(W<528?16:W<1024?32:48)+(W>=528?16:8)/2;default:return 0}};
uQO=function(W){var O=W.originalContainerWidth;var b=W.sizing;var T=W.standardUnit;if(W.isCompactList&&O<528)return 1;switch(b){case "STANDARD":return T;case "COMPACT":return T+1;case "EXTRA_COMPACT":return _.e("web_responsive_extra_compact_2x")?T*2:_.e("web_responsive_current")?T===1?2:T%2===0?T/2*3:T+2:T<4?T*2:Math.ceil(T*3/2);case "MINI":return T>1?T*2:3;default:return T}};
crO=function(W){var O=W.containerWidth;var b=W.peek;var T=W.gutter;var L=W.numItems;W=W.ignoreMaxWidthLimit;O=b?Math.max((O-b-T*L)/L,0):Math.max((O-T*(L-1))/L,0);return W?O:Math.min(O,Jre)};
_.VU=function(W){var O=W.containerWidth;var b=W.hasPeek;var T=W.sizing;var L=W.marginSettings;var h=W.isCompactList;var Z=W.enableFullBleedForSingleCol;var a=W.standardUnitMinWidth;T=T||"STANDARD";b=!!b;W=O>=528?16:8;var m=b?O>=528?48:24:0;L=MRE(O,L);var w=Math.max(O-L*2,0);a=_.e("kevlar_disable_min_width_override")?void 0:a;a=Math.min(Math.max(Math.floor((w-m+W)/((a!=null?a:F$1)+_.NS8(O)+W)),1),6);var A=(Z=!!Z&&a===1)||a===1&&T!=="STANDARD";b=b||A?w:Math.min(w,(Jre+W)*a-W);T=uQO({originalContainerWidth:O,
sizing:T,standardUnit:a,isCompactList:h});return{itemWidth:crO({containerWidth:b,peek:m,gutter:W,numItems:T,ignoreMaxWidthLimit:A}),gutter:W,maxContainerWidth:b,numItems:T,margin:Z?0:L,contentMargin:MRE(O,1),typographyBump:crO({containerWidth:b,peek:m,gutter:W,numItems:a,ignoreMaxWidthLimit:A})>400&&!(h&&O<528),standardUnit:a}};
yrO=function(W){switch(W){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.WW8=function(W){if(W){var O;if((O=W.responsiveContainerConfiguration)==null?0:O.responsiveSize)return yrO(W.responsiveContainerConfiguration.responsiveSize);if(W.layoutSizing)switch(W.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"}}};
O38=function(W){if(W.fullbleed)return 1;switch(W.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
TIO=function(W,O,b,T,L,h,Z,a){a:switch(W){case 4:h=!!(h&&h<100);break a;default:h=!1}a:switch(W){case 3:case 4:var m=T==="LOCKUP_CONTENT_TYPE_CHANNEL"||T==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:m=!1}a:switch(W){case 5:var w=!0;break a;case 4:w=!1;break a;default:w=!1}a:if(W===4&&T==="LOCKUP_CONTENT_TYPE_SOURCE")var A=1;else switch(W){case 3:A=1;break a;default:A=0}return{isOverlay:w,isCard:i32(T,Z),sizing:O!=null?O:"STANDARD",typographyBump:b!=null?b:!1,isTiny:h,isCentered:m,isCollection:b38(T),
arrangement:A,addMarginForFullbleed:W===1&&T!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:W===1&&T==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:jXq(T,L,a),disableRounding:W===5||i32(T,Z)||W===1&&T==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:b38(T)?2:0,useLegacyTypography:!(a==null||!a.useLegacyTypography),useRichGridLegacyTypography:!(a==null||!a.useRichGridLegacyTypography)&&!_.e("web_enable_typography_bump")}};
b38=function(W){switch(W){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
i32=function(W,O){if(O&&W==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(W){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
jXq=function(W,O,b){if(O&&(b==null||!b.alwaysRespectPodcastShowAspectRatio||W!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(W){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}};
LWT=function(W){switch(W){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"}};
SXe=function(W,O,b){a:switch(W.badgeStyle){case "BADGE_OVERLAY":var T=!0;break a;default:T=!1}return{type:O?16:dU8(W.badgeStyle),brNzRatingBadgeType:hmX(W.badgeStyle),text:W.badgeText,icon:W.iconName,isOverlay:T,modern:b||_.e("web_modern_badge_view_model")}};
dU8=function(W){switch(W){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
hmX=function(W){switch(W){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}};
Iee=function(W){var O=W.data?SXe(W.data,!!W.workaroundShortsIsThumbnailBadge,W.modern):void 0;return _.E("yt-badge-view-model",{class:_.wd("yt-badge-view-model-wiz",W.class)},Fu(O==null?void 0:O.brNzRatingBadgeType,function(){return _.E(Z3X,{data:O})}),Fu(O&&!O.brNzRatingBadgeType,function(){return _.E(_.NL,{data:O})}))};
_.ML=function(W){if(W){var O;return((O=_.iq().resolve(_.OT(_.t4)))==null?0:O())?W.darkThemeImage:W.image}};
YX8=function(W,O,b,T,L,h){if(!b)return L&&h&&O==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?{width:L,height:h}:{};L=b.size;b=b.allowFullWidth;if(O==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&b)return{fullWidth:!0};if(L===void 0)return{};switch(W){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:L,height:L};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:L,height:1/aeO*L};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:L*
mUe,height:L};default:return(T==null?0:T.height)&&(T==null?0:T.width)?T.width/T.height>1?{maxWidth:L*mUe}:{maxWidth:L}:{maxWidth:L}}};
EeX=function(W){var O;return W&&((O=_.ML(W.themedImage))!=null?O:W.image)};
wE8=function(W){var O;return W==null?void 0:(O=W.sources)==null?void 0:O[0]};
XEX=function(W,O){var b,T;return!!((W==null?0:(b=W.byline)==null?0:b.hideAvatar)&&((T=_.P(O,AQX))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
UUX=function(W,O){var b,T;return!!((W==null?0:(b=W.byline)==null?0:b.addPadding)&&((T=_.P(O,AQX))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
leX=function(W,O,b,T){var L={},h=(L["yt-content-metadata-view-model-wiz__delimiter"]=!0,L["yt-content-metadata-view-model-wiz__delimiter--standalone"]=T,L);return Fu(O-1>b,function(){return _.E("span",{class:_.wd(h),"aria-hidden":!0},W)})};
PlX=function(W,O){return _.E(_.uw,{text:W.text,linkInheritColor:!0,className:emX(O),userInput:!0})};
Rmh=function(W){var O=W.metadataPart;var b=W.isOverlay;var T=W.useMediumText;var L=W.hideAvatar;var h=1;O.maxLines!==void 0&&(h=O.maxLines);return _.E(_.TT,null,Fu(O.avatarStack,function(){return pEq(O.avatarStack,{avatarStackViewModel:{isOverlay:b,useMediumText:T,hideAvatar:L}})}),Fu(O.text,function(){var Z=h;
return _.E(_.TT,null,O.tooltip?_.E("span",{title:O.tooltip,role:"tooltip"},PlX(O,Z)):PlX(O,Z))}))};
emX=function(W){switch(W){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
KWQ=function(W){var O=W.metadataRow;var b=W.isInline;var T=W.delimiter;var L=W.isOverlay;var h=W.useMediumText;var Z=W.extensions;var a=XEX(Z==null?void 0:Z.lockupMetadata,O);W=UUX(Z==null?void 0:Z.lockupMetadata,O);Z=!!((Z==null?0:Z.lockupMetadata)&&O.badges);var m={};W=(m["yt-content-metadata-view-model-wiz__metadata-row"]=!0,m["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=b,m["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=W,m["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
Z,m);var w,A;return _.E("div",{class:_.wd(W)},(w=O.badges)==null?void 0:w.map(function(X){return _.E("div",{class:"yt-content-metadata-view-model-wiz__badge"},pEq(X))}),(A=O.metadataParts)==null?void 0:A.map(function(X,l){return _.E(_.TT,null,Rmh({metadataPart:X,
isOverlay:L,useMediumText:h,hideAvatar:a}),leX(T,O.metadataParts.length,l,!1))}),Fu(O.isSpacerRow&&!b,function(){return _.E("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
veP=function(W){var O=W.className;var b=W.data;var T=W.layout===void 0?0:W.layout;var L=W.isOverlay===void 0?!1:W.isOverlay;var h=W.useMediumText;var Z=W.extensions;W=_.uy();var a=T===0;T={};T=(T["yt-content-metadata-view-model-wiz"]=!0,T["yt-content-metadata-view-model-wiz--inline"]=a,T["yt-content-metadata-view-model-wiz--tappable"]=_.fp(b.rendererContext),T["yt-content-metadata-view-model-wiz--medium-text"]=h,T);_.Ol8(W,b.rendererContext);return _.E("yt-content-metadata-view-model",{class:_.wd(O,
T),el:W},Fu(b.metadataRows,function(){return b.metadataRows.map(function(m,w){return _.E(_.TT,null,KWQ({metadataRow:m,isInline:a,delimiter:b.delimiter,isOverlay:L,useMediumText:h,extensions:Z}),Fu(a&&!m.isSpacerRow,function(){return leX(b.delimiter,b.metadataRows.length,w,!0)}))})}))};
geO=function(W){switch(W){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
oeE=function(W){switch(W.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"}}};
QXX=function(W){var O=_.Cx8(_.$I().getState())||"";return W?W+O:""};
kSh=function(W){switch(W){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
BIh=function(W){var O=_.S(_.wu(void 0,void 0,"BIquNb")),b=O.next().value,T=O.next().value,L=_.S(_.wu(void 0,void 0,"eR0GH"));O=L.next().value;var h=L.next().value,Z=_.S(_.wu(void 0,void 0,"UmkP0"));L=Z.next().value;var a=Z.next().value;Z=_.XL(function(A){if(sXe(_.qL(A)))return!1;T(A);h(void 0);a(void 0);return!0});
var m=_.XL(function(A){W==null||W(A);if(sXe(_.qL(A)))return!1;h(A);T(void 0);a(void 0);return!0}),w=_.XL(function(A){sXe(_.qL(A))||(a(A),h(void 0),T(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:b,pointerDownEvent:O,pointerLeaveEvent:L},touchFeedbackOnPointerUp:Z,touchFeedbackOnPointerDown:m,touchFeedbackOnPointerLeave:w}};
sXe=function(W){var O=["BUTTON".toString()];W=_.S(W);for(var b=W.next();!b.done;b=W.next()){b=b.value;for(var T=_.S(O),L=T.next();!L.done;L=T.next())if(b.tagName===L.value)return!0}return!1};
rQQ=function(W){switch(W){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"}};
DUX=function(W,O){var b;return Cp8(W,((b=W.content)==null?void 0:b.length)||0,!O)};
xUh=function(W,O){O=DUX(W,O);var b,T;return(((b=W.content)==null?void 0:b.length)||0)>(((T=O.content)==null?void 0:T.length)||0)};
zm8=function(W){var O=W.isTruncated;var b=W.isAbsoluteButton;var T=W.lineHeight;var L=W.contentRef.value,h=W.placeholderTruncationTextRef.value,Z=W.truncationTextRef.value;W=W.appDirection==="rtl";if(L&&h){var a=h.offsetLeft;W&&(a=L.offsetWidth-h.offsetWidth-h.offsetLeft);if(O){O=h.offsetWidth;h=L.offsetWidth;var m=b?h-O-70:a-70;T="linear-gradient(\n      to top, transparent 0%,\n      transparent "+T+"px,\n      #000 "+T+"px,\n      #000 100%), linear-gradient(\n      to "+((W?"left":"right")+",\n      #000 0px,\n      #000 "+
m+"px,\n      transparent "+(b?h-O:m+70)+"px)");L.style.setProperty("-webkit-mask-image",T);L.style.setProperty("mask-image",T)}else L.style.setProperty("-webkit-mask-image",""),L.style.setProperty("mask-image","");b?W?(Z.style.setProperty("left","0"),Z.style.setProperty("right","unset")):(Z.style.setProperty("left",""),Z.style.setProperty("right","0")):W?(Z.style.setProperty("left","unset"),Z.style.setProperty("right",a+"px")):(Z.style.setProperty("left",a+"px"),Z.style.setProperty("right","unset"))}};
Cli=function(W,O,b,T,L,h,Z){var a=_.uy(),m=_.uy(),w=_.uy(),A=DUX(W,L),X=_.iq().resolve(_.VE),l=_.S(Ex(xUh(W,L))),p=l.next().value,K=l.next().value,k=BU(null);QP(function(){function r(){if(a.value&&m.value&&w.value){var M=a.value;M.scrollHeight-M.offsetHeight>1?(K(!0),T||zm8({isTruncated:!0,isAbsoluteButton:!0,lineHeight:b,contentRef:a,placeholderTruncationTextRef:m,truncationTextRef:w,appDirection:X})):(M=xUh(W,L),K(M),T||zm8({isTruncated:M,isAbsoluteButton:!1,lineHeight:b,contentRef:a,placeholderTruncationTextRef:m,
truncationTextRef:w,appDirection:X}))}}
var q,f;(q=k.value)==null||(f=q.stop)==null||f.call(q);q=new _.JI(r,17);r();k.value=q},[W.content,
O,b,X,T,h,Z,L]);_.kX(function(){var r=function(){var f,M;(f=k.value)==null||(M=f.fire)==null||M.call(f)};
if(window.ResizeObserver){var q=new ResizeObserver(r);q.observe(a.value);return function(){var f,M;(f=k.value)==null||(M=f.stop)==null||M.call(f);q.disconnect()}}window.addEventListener("resize",r);
return function(){var f,M;(f=k.value)==null||(M=f.stop)==null||M.call(f);window.removeEventListener("resize",r)}});
return{isTruncated:p,displayText:A,contentRef:a,placeholderTruncationTextRef:m,truncationTextRef:w}};
qXX=function(W){return _.E("button",{"aria-disabled":!0,disabled:!0,class:W.className,el:W.elRef,style:"line-height: "+W.lineHeight+"px;"},_.E(_.uw,{text:W.text}))};
neX=function(W){var O=W.text;var b=W.alwaysShowTruncationText;var T=W.truncationText;var L=W.onExpandClick;var h=W.lineHeight===void 0?16:W.lineHeight;var Z=W.maxLines===void 0?2:W.maxLines;var a=W.disableTextMask===void 0?!1:W.disableTextMask;var m=W.textStyle===void 0?"default":W.textStyle;var w=W.accessibilityLabel===void 0?"":W.accessibilityLabel;var A=W.textSize===void 0?"small":W.textSize;var X=W.alwaysTruncateAtMaxLines===void 0?!1:W.alwaysTruncateAtMaxLines;W=_.XL(function(){return void(L==
null?void 0:L())});
var l=Cli(O,Z,h,a,X,A,m),p=l.isTruncated;O=l.displayText;X=l.contentRef;var K=l.placeholderTruncationTextRef;l=l.truncationTextRef;var k={};b=_.wd((k["truncated-text-wiz__absolute-button"]=!a,k["truncated-text-wiz__bottom-button"]=a,k["truncated-text-wiz--hidden"]=!(b||p),k));a={};m=_.wd((a["truncated-text-wiz"]=!0,a["truncated-text-wiz--overlay"]=m==="overlay",a["truncated-text-wiz--medium-text"]=A==="medium",a["truncated-text-wiz--large-text"]=A==="large",a["truncated-text-wiz--primary-text"]=m===
"primary-text",a));return _.E("truncated-text",{class:m,"on:click":W,style:"line-height: "+h+"px;"},_.E("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",el:X,style:"max-height: "+Z*h+"px;"},_.E(_.uw,{text:O}),_.E(qXX,{text:T,lineHeight:h,elRef:K,className:"truncated-text-wiz__inline-button"})),_.E("button",{"aria-label":w,class:b,el:l,style:"line-height: "+h+"px;"},_.E(_.uw,{text:T})))};
feX=function(W){return{content:W!=null?W:""}};
tcX=function(W){var O=W.data;var b;W={class:W.className};a:switch(O.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var T="yt-video-attribute-view-model--vertical";break a;default:T="yt-video-attribute-view-model--horizontal"}a:switch(O.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var L="yt-video-attribute-view-model--image-small";break a;default:L="yt-video-attribute-view-model--image-large"}a:switch(O.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var h="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":h="yt-video-attribute-view-model--image-avatar";break a;default:h=""}a:switch(O.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Z="yt-video-attribute-view-model--metadata-header";break a;default:Z=""}a:switch(O.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var a="yt-video-attribute-view-model--container-card";break a;default:a=""}var m=_.xy(O.onTap)||_.np(O.rendererContext)?"yt-video-attribute-view-model--clickable":"";
T=["yt-video-attribute-view-model",T,L,h,Z,a,m].join(" ");if(O.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var w="";else L=O.lightColorPalette,h=O.darkColorPalette,Z=((w=_.iq().resolve(_.OT(_.t4)))==null?0:w())&&h?h:L,w=(w=Z==null?void 0:Z.section2Color)?_.C_(w):"";return _.E("yt-video-attribute-view-model",W,_.E("div",{class:T,style:_.eE({"background-color":w})},_.E(BSi,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(b=_.xy(O.onTap))!=
null?b:_.np(O.rendererContext),role:"group",ariaLabel:O.title,forceNewState:!0},O.heroText||O.image?_.E(GSe,{data:O}):null,_.E(H3q,{data:O,sizeSmall:O.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
$U8=function(W){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:W.overflowMenuA11yLabel,onTap:function(O){O.preventDefault();O.stopPropagation();if(W.overflowMenuOnTap){var b=_.Cb({elementsCommand:W.overflowMenuOnTap,forceNewState:!0});if(b==null?0:b.onclick)b.onclick(O)}}}};
GSe=function(W){W=W.data;var O,b=((O=_.iq().resolve(_.OT(_.t4)))==null?0:O())&&W.darkThemeImage?W.darkThemeImage:W.image;O=$U8(W);return _.E("div",{class:"yt-video-attribute-view-model__hero-section"},b?_.E(_.uj,{data:b,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):W.heroText?_.E("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.E("span",{class:"yt-video-attribute-view-model__hero-text"},W.heroText)):null,W.overflowMenuOnTap?
_.E("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.E(cm,{data:O,iconName:"MORE_VERT"})):null)};
H3q=function(W){var O=W.data;W=W.sizeSmall;var b=O.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",T=_.xy(O.onTap)||_.np(O.rendererContext);T=_.Cb({innertubeCommand:T});T=qq(T);var L={};W={class:_.wd("yt-video-attribute-view-model__metadata",(L["yt-video-attribute-view-model--small-font"]=W,L)),role:T?"link":"group"};T=_.E("h1",{class:"yt-video-attribute-view-model__title"},O.title);b=O.subtitle?_.E("h4",{class:"yt-video-attribute-view-model__subtitle"},b?_.E(neX,{text:feX(O.subtitle),truncationText:feX(O.subtitleTruncationText),
maxLines:2}):_.E("span",null,O.subtitle)):null;if(O.secondarySubtitle){L=O.secondarySubtitle;if(L!=null&&L.attachmentRuns){for(var h=[],Z=_.S(L.attachmentRuns),a=Z.next();!a.done;a=Z.next())a=a.value,a.element&&h.push(Object.assign({},a,{element:Object.assign({},a.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));L=Object.assign({},L,{attachmentRuns:h})}L=_.E("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.E(_.uw,{text:L}))}else L=null;return _.E("div",W,T,b,L,O.buttonViewModel?Vci(O.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.Fg=function(W,O,b,T,L){T=T===void 0?{}:T;if(!L||Math.random()<5E-4){O=O||null;b=b||null;W=W instanceof Error?W:new _.pu(W);if(W.args)for(var h=_.S(W.args),Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z instanceof Object&&(T=Object.assign({},Z,T));T.category="H5 Ads Control Flow";O&&(T.slot=O?"slot:  "+O.slotType:"");b&&(T.layout=b?"layout:  "+b.layoutType:"",T.layoutId=b.layoutId);L&&(T.known_error_aggressively_sampled=!0);W.args=[T];_.z5(W)}};
_.NIh=function(W,O){_.jx(W,"yt-open-popup-action",[_.cS(O),W])};
_.yU=function(W,O){_.NIh(W,_.VV(O))};
uP8=function(W){if(!W)return"";if(Mcq[W])return Mcq[W];Wt||(Wt=_.AV("A"));Wt.href!==W&&vD(Wt,W);var O=Wt.pathname;Mcq[W]=O.startsWith("/")?O:"/"+O;return Mcq[W]};
JQi=function(){var W=uP8(window.location.href);if(W==="/")return"home";if(W.startsWith("/results"))return"search";if(W.startsWith("/watch"))return"watch";if(W.startsWith("/shorts"))return"shorts";if(W.startsWith("/hashtag"))return"hashtag";if(W.startsWith("/create_channel"))return"create_channel";if(W.startsWith("/@")||W.startsWith("/user/")||W.startsWith("/channel/"))return"channel";if(W.startsWith("/experiments"))return"experiments";if(W.startsWith("/sponsor_channel"))return"sponsorship";if(W.startsWith("/select_site"))return"settings";
if(W.startsWith("/locate"))return"locate";if(W.startsWith("/redeem"))return"redeem";if(W.startsWith("/musicpremium")||W.startsWith("/premium")||W.startsWith("/red"))return"premium";if(W.startsWith("/paid_memberships"))return"paid_memberships";if(W.startsWith("/oops"))return"oops";if(W.startsWith("/clip"))return"clip";var O;return(O8==null?void 0:(O=O8.response)==null?void 0:O.page)==="404"?"404":W.startsWith("/feed/history")?"history":W.startsWith("/feed/library")?"library":W.startsWith("/feed/subscriptions")?
"subscriptions":W.startsWith("/feed/trending")?"trending":W.startsWith("/feed/news_destination")?"news":W.startsWith("/playlist")?"playlist":W.startsWith("/minor_moment")?"minor_moment":W.startsWith("/playable/")||W.match("^/playables/(?!saved).")?"mini_app":W.startsWith("/playables")?"playables":W.startsWith("/create/live/join")?"open_in_app":W.startsWith("/feed/explore")?"explore":"browse"};
_.Wei=function(){var W=O8==null?void 0:O8.response,O=W==null?void 0:W.endpoint;if(!O)return(W==null?void 0:W.page)==="watch"?"watch":JQi();var b;W=(b=_.P(O==null?void 0:O.commandMetadata,_.F9))==null?void 0:b.webPageType;b=!1;if(W&&!cQO.includes(W))switch(W){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 T;return((T=_.P(O==null?void 0:O.commandMetadata,_.F9))==null?0:T.url)&&uP8(_.P(O.commandMetadata,_.F9).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var L;return(O=(L=_.P(O,_.wE))==null?void 0:L.browseId)?FW2[O]||"browse":"browse";default:b=!0}if(_.P(O,_.i3)||_.P(O,yQi))return"sponsorship";L=uP8(window.location.href);if(L.startsWith("/experiments"))return"experiments";if(L.startsWith("/create_channel"))return"create_channel";
if(_.P(O,_.t8)&&L.startsWith("/shorts"))return"shorts";if(_.P(O,_.t8)&&L.startsWith("/watch"))return"watch";b&&(O=new _.pu("Unsupported mWeb page type",{pathname:L,webPageType:W}),_.Dt(O));return"browse"};
dwE=function(W){var O=W.data;var b=W.inlineMetadata;var T=W.aspectRatio;var L=W.scrimStyle;var h=W.useDefaultStyle;var Z=W.className;var a=BU(new ORQ);W=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=h?W==="SHORTS_LOCKUP_STYLE_SLIM":O.style==="SHORTS_LOCKUP_STYLE_SLIM";b=b||W||!1;L=L!==void 0?L:1;var m=_.uy(function(r){a.value&&(a.value.hostElement=r,k())});
_.iO(m,{visibilityCallback:function(r){r&&O.onFirstVisible&&_.nb(O.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});Z=_.wd("shortsLockupViewModelHost",Z);var w=_.Cb({elementsCommand:O.onTap}),A=_.uy();_.sch(A,_.xy(O.onTap));var X=_.XL(function(r){if(w==null?0:w.onclick)w.onclick(r);return!1}),l=_.uy(),p=[];
p.push("shortsLockupViewModelHostThumbnailContainer");T===1?p.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):T===2&&p.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");W||p.push("shortsLockupViewModelHostThumbnailContainerRounded");_.e("web_shorts_2_by_3_lockups_study")||_.e("desktop_search_enable_two_by_three_shorts_aspect_ratio")||p.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var K,k=function(){if(a.value){var r;(r=K)==null||
b3(r);r=a.value;var q;r.hostElement&&((q=r.data)==null?0:q.inlinePlayerData)&&(K=tI({mediaRenderer:r,lockupElement:r.hostElement,thumbnailElement:l.value,videoPreviewOpts:iR2}))}};
QP(function(){a.value&&(a.value.data=O,k())},[O]);
return _.E("ytm-shorts-lockup-view-model",{el:m,class:Z},_.E("a",{el:A,"on:click":X,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!b,tabindex:b?0:-1},_.E("div",{el:l,class:p.join(" ")},Fu(O.thumbnail,function(){return _.E(_.TT,null,_.E(_.uj,{data:O.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),b?_.E(bRe,{data:O,
scrimStyle:L,useDefaultStyle:h}):null,jZh(O.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),b&&O.menuOnTap?_.E(TX8,{data:O,inlineMetadata:b}):null,b?null:_.E(LeQ,{useDefaultStyle:h,data:O}))};
bRe=function(W){var O=W.data;var b=W.scrimStyle;var T=W.useDefaultStyle;var L=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=T&&_.e("web_hide_primary_text_for_pivot_panel");var h={};T=_.wd("shortsLockupViewModelHostInlineMetadata",(h.shortsLockupViewModelHostMetadataRounded=!(T?L==="SHORTS_LOCKUP_STYLE_SLIM":O.style==="SHORTS_LOCKUP_STYLE_SLIM"),h.shortsLockupViewModelHostInlineMetadataShortScrim=b===3&&!_.e("enable_shorts_lockup_new_scrim"),
h.shortsLockupViewModelHostInlineMetadataShortScrimNew=b===3&&_.e("enable_shorts_lockup_new_scrim"),h.shortsLockupViewModelHostInlineMetadataMediumScrim=b===2||b===4,h.shortsLockupViewModelHostShowOverPlayer=!0,h));var Z,a;L={};return _.E("div",{class:T+" image-overlay-text"},_.E("h3",{class:_.YS("shortsLockupViewModelHostMetadataTitle",(L.shortsLockupViewModelHostMetadataTitleTextShadow=b===4,L)),"aria-label":O.accessibilityText},Fu(((Z=O.overlayMetadata)==null?void 0:Z.primaryText)&&!W,function(){return _.E(_.uw,
{text:O.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((a=O.overlayMetadata)==null?0:a.secondaryText)?_.E(h2X,{data:O,
scrimStyle:b}):null)};
LeQ=function(W){var O=W.data;var b=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";W=(W.useDefaultStyle?b==="SHORTS_LOCKUP_STYLE_SLIM":O.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var T=_.Cb({elementsCommand:O.onTap});b=_.uy();_.sch(b,_.xy(O.onTap));var L=_.XL(function(X){if(T==null?0:T.onclick)T.onclick(X);return!1}),h,Z,
a,m,w,A={};
return _.E("div",{class:W+" image-overlay-text","on:click":L},_.E("h3",{class:_.YS("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(A.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((h=O.overlayMetadata)==null?0:(Z=h.primaryText)==null?0:Z.content),A)),"aria-label":O.accessibilityText},_.E("a",{el:b,"on:click":L,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(a=O.overlayMetadata)==null?void 0:(m=a.primaryText)==
null?void 0:m.content},Fu(O.overlayMetadata,function(){return _.E(_.uw,{text:O.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((w=O.overlayMetadata)==null?0:w.secondaryText)?_.E(h2X,{data:O,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,O.menuOnTap?_.E(TX8,{data:O,inlineMetadata:!1}):null)};
h2X=function(W){var O=W.data;var b=W.scrimStyle;W=W.className;var T,L={};return _.E("div",{class:_.YS((L.shortsLockupViewModelHostMetadataSubhead=b!==4,L.shortsLockupViewModelHostMetadataSubheadNew=_.e("enable_shorts_lockup_new_scrim"),L.shortsLockupViewModelHostMetadataSubheadTextShadow=b===4,L),W),"aria-hidden":"true"},_.E(_.uw,{text:(T=O.overlayMetadata)==null?void 0:T.secondaryText,noStyleRuns:!0}))};
TX8=function(W){var O={};O=_.wd((O.shortsLockupViewModelHostInlineMetadataMenu=W.inlineMetadata,O.shortsLockupViewModelHostOutsideMetadataMenu=!W.inlineMetadata,O.shortsLockupViewModelHostShowOverPlayer=!0,O));return _.E("div",{class:O},_.E(cm,{data:{style:W.inlineMetadata?"overlay":"mono",accessibilityLabel:W.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(b){b.preventDefault();b.stopPropagation();var T=_.Cb({elementsCommand:W.data.menuOnTap,forceNewState:!0});
if(T==null?0:T.onclick)T.onclick(b)}},
iconName:"MORE_VERT"}))};
j7=function(W,O,b,T){return W&&O?W!==b||O!==T?(_.Fg(Error("Gh"),void 0,void 0,{"stored-slot":W,"stored-layout":O,"latest-slot":b,"latest-layout":T}),!1):!0:!1};
Sfh=function(W,O,b){return W({targetId:O},function(T){return b.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},T,{header:b.continuationItems?b.continuationItems[0]:void 0}):Object.assign({},T,{contents:b.continuationItems?b.continuationItems:[]})})};
ZR1=function(W,O,b,T){if(O=O.trackingParams){var L,h=(L=b.getScreenLayer)==null?void 0:L.call(b);b=_.Bb(h);L=_.sk(h);if(b&&L){var Z=_.Pi(O);_.e("combine_ve_grafts")?W.graftServerVe(O,L,h):_.fV(b,L,Z);T==null||T(Z)}}};
aTT=function(W){var O;return((O=ITE.get(W))==null?void 0:O.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
ExX=function(W,O){var b={type:O.slotType,controlFlowManagerLayer:mw8.get(O.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};O.slotEntryTrigger&&(b.entryTriggerType=O.slotEntryTrigger.triggerType);O.slotPhysicalPosition!==1&&(b.slotPhysicalPosition=O.slotPhysicalPosition);if(W){b.debugData={slotId:O.slotId};if(W=O.slotEntryTrigger)b.debugData.slotEntryTriggerData=YfX(W);W=O.slotFulfillmentTriggers;b.debugData.fulfillmentTriggerData=[];W=_.S(W);for(var T=W.next();!T.done;T=W.next())b.debugData.fulfillmentTriggerData.push(YfX(T.value));
O=O.slotExpirationTriggers;b.debugData.expirationTriggerData=[];O=_.S(O);for(W=O.next();!W.done;W=O.next())b.debugData.expirationTriggerData.push(YfX(W.value))}return b};
YfX=function(W,O){var b={type:W.triggerType};O!=null&&(b.category=O);W.triggeringSlotId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedSlotId=W.triggeringSlotId);W.triggeringLayoutId!=null&&(b.triggerSourceData||(b.triggerSourceData={}),b.triggerSourceData.associatedLayoutId=W.triggeringLayoutId);return b};
wAP=function(W,O,b,T){O={opportunityType:O};W&&(T||b)&&(T=_.RG(T||[],function(L){return ExX(W,L)}),O.debugData=Object.assign({},b&&b.length>0?{associatedSlotId:b}:{},T.length>0?{slots:T}:{}));
return O};
AbX=function(W){return To(W.opportunityAdapterMap).concat(To(W.triggerAdapterMap)).concat(To(W.fulfillmentAdapterFactoryMap)).concat(To(W.slotAdapterFactoryMap)).concat(To(W.layoutRenderingAdapterFactoryMap))};
To=function(W){var O=[];W=_.S(W.values());for(var b=W.next();!b.done;b=W.next())b=b.value,b.isAdsControlFlowEventListener&&O.push(b);return O};
d6=function(W){var O=W.slotId,b=W.slotType,T=W.slotPhysicalPosition;return O===void 0?new LF("Cannot construct a slot due to the missing id.",{adSlotMetadata:W}):b===void 0?new LF("Cannot construct a slot due to the missing type.",{adSlotMetadata:W}):T===void 0?new LF("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:W}):{slotId:O,slotType:b,slotPhysicalPosition:T,managerLayer:"external",adSlotLoggingData:W.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new XA8}};
UwX=function(W){var O=W.layoutId,b=W.layoutType;return O===void 0?new hT("Cannot construct a layout due to the missing id.",{adLayoutMetadata:W}):b===void 0?new hT("Cannot construct a layout due to the missing type.",{adLayoutMetadata:W}):{layoutId:O,layoutType:b,managerLayer:"external",adLayoutLoggingData:W.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new XA8,interactionLoggingAdsClientData:{}}};
lTh=function(W){if((W=W.value)&&W.querySelector("img")){var O=W.querySelector("img");O.addEventListener("error",function(){dDX(O.src).then(function(b){(b=_.eL(b).toString())?O.src=b:O.removeAttribute("src")}).catch(function(){O.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
Zv=function(W,O){if(O&&(e21(O.viewableCommand)||e21(O.endOfSessionCommand))){W=W.value;var b=PCT(O==null?void 0:O.viewableCommand);O=PCT(O==null?void 0:O.endOfSessionCommand);if(!S7){var T=_.Lu("active_view_tos_timeout_ms");S7=T>0?new pAE(R2e(),T):new pAE(R2e())}Keq(S7,W);vx1(S7,W,b,O)}};
Iy=function(W){S7&&Keq(S7,W.value)};
R2e=function(){var W=_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
e21=function(W){W=_.xy(W);return!(W==null||!W.loggingUrls)&&W.loggingUrls.length>0};
PCT=function(W){if(!W)return[];var O=[],b,T;((T=(b=_.xy(W))==null?void 0:b.loggingUrls)!=null?T:[]).forEach(function(L){L.baseUrl&&O.push(L.baseUrl)});
return O};
gxE=function(W){return W.shorts.isDesktopSmallWidth};
_.oxO=function(W){return W.shorts.isWatchWhileMode};
_.ay=function(W){return W.shorts.isFullscreen};
_.m9=function(W){return W.shorts.isShortsPipActive};
k_X=function(W){var O,b;if(W=(O=_.P(W.reelsAdCardButtoned,QZO))==null?void 0:(b=O.animatedRenderingConfig)==null?void 0:b.easeOutSeconds)return W+"s"};
BXE=function(W,O,b){return _.I(function(T){return T.return(new Promise(function(L){var h=new Image;h.onload=function(){L(new sZ1(W,O,b,h.naturalWidth,h.naturalHeight))};
h.src=b.toString()}))})};
rbP=function(W,O){return Math.round(W/1E-5)===Math.round(O/1E-5)};
DwQ=function(W,O){return Math.round(W/1E-5)===Math.round(O/1E-5)};
xwT=function(W,O){return W.year===O.year&&W.month===O.month&&W.day===O.day};
z28=function(W,O){return W.year!==O.year?W.year<O.year:W.month!==O.month?W.month<O.month:W.day<O.day};
qfX=function(W){return W.day===CC8(W.year,W.month)?W.month===11?{year:W.year+1,month:0,day:1}:{year:W.year,month:W.month+1,day:1}:{year:W.year,month:W.month,day:W.day+1}};
nxP=function(){var W=new Date,O={year:W.getFullYear(),month:W.getMonth(),day:W.getDate()};return{start:O,end:{year:W.getFullYear()+2,month:W.getMonth(),day:W.getDate()},selectedDate:qfX(O)}};
fTE=function(W){return(new tH(2)).format(new Date(W.year,W.month,W.day))};
G_8=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
HR8=function(W,O){W=(W+(Number(O.utcOffsetSec)+(new Date(W*1E3)).getTimezoneOffset()*60))*1E3;O=G_8(new Date(W));return{date:O,secondsSinceMidnight:Math.floor((W-(new Date(O.year,O.month,O.day)).getTime())/1E3)}};
t8O=function(W,O){O=O.months.findIndex(function(b){return b.year===W.year&&b.month===W.month});
return O>=0?O:void 0};
$wh=function(W){if(!W)return!1;try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENTBOX")return!0}catch(O){return!1}return $wh(W.parentNode)};
YN=function(W){return W?!(W.tagName!=="A"||!W.href||!W.classList.contains("yt-simple-endpoint")):!1};
V8X=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1};
NXO=function(W,O,b){if(!W)return null;var T=YN(W);if(T&&b)return O=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+O);if(T&&!b)return document.createTextNode("");if(V8X(W))return b=W.alt,W=W.dataset.emojiId,!W&&O&&(O=_.E8(O,b))&&O.isCustomEmoji&&(W=O.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(b);T=W.cloneNode(!1);for(var L=0;L<W.childNodes.length;++L){var h=NXO(W.childNodes[L],O,b);h&&T.appendChild(h)}return T};
w6=function(W){return W?YN(W)?W:w6(W.lastChild):null};
M8e=function(W){return W?YN(W)?W:M8e(W.firstChild):null};
uf8=function(W){if(!W)return null;for(var O=W.previousSibling;O;)if(O.nodeType===Node.ELEMENT_NODE&&O.nodeName==="BR")O=O.previousSibling;else if(O.nodeType===Node.TEXT_NODE&&/\s+/.test(O.textContent))O=O.previousSibling;else break;(O=w6(O))?W=O:W=(W=W.parentNode)?w6(W.previousElementSibling):null;return W};
Jb1=function(W){if(!W)return null;for(var O=W.nextSibling;O;)if(O.nodeType===Node.ELEMENT_NODE&&O.nodeName==="BR")O=O.nextSibling;else if(O.nodeType===Node.TEXT_NODE&&/\s+/.test(O.textContent))O=O.nextSibling;else break;return(O=M8e(O))?O:Jb1(W.parentNode)};
cb2=function(W){var O=_.AT(),b=O.JSC$9251_getStartNode();if(!$wh(b.parentNode))return null;O=O.JSC$9251_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var T=_.sM(b,YN);if(T){if(W&&O===0||!W&&O===b.length)return T}else{if(W&&O===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.XN(b.nextElementSibling,"display")==="block"?null:M8e(b.nextElementSibling);if(!W&&O===0)return b?w6(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(W){if(0<=O&&O<b.childNodes.length)return M8e(b.childNodes[O])}else if(0<
O&&O<=b.childNodes.length)return w6(b.childNodes[O-1]);return null};
Fe1=function(W,O,b){if(!W)return null;if(W.nodeType===Node.TEXT_NODE)if(b){var T=uf8(W);if(T&&!/^\s+\S/.test(W.wholeText.substr(0,O)))return T}else if((T=Jb1(W))&&!/\S\s+/.test(W.wholeText.substr(O,W.wholeText.length)))return T;return W.nodeType===Node.ELEMENT_NODE?b?uf8(W.childNodes[O]):Jb1(W.childNodes[O]):Fe1(W.parentNode,O,b)};
ybe=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var O="";for(W=W.firstChild;W;W=W.nextSibling)O+=ybe(W);return O;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}};
U8=function(W,O){return W.year===O.year&&W.month===O.month&&W.day===O.day};
l3=function(W,O){return W.year!==O.year?W.year<O.year:W.month!==O.month?W.month<O.month:W.day<O.day};
W2e=function(W){return{year:W.getFullYear(),month:W.getMonth(),day:W.getDate()}};
OkQ=function(W){var O=fm1;O=O===void 0?fm1:O;O(new Date(W.year,W.month,W.day))};
e7=function(W){return W2e(new Date(Number(W.seconds)*1E3))};
ik2=function(W){return W.year!==void 0&&W.month!==void 0&&W.day!==void 0};
bkX=function(W){return W.start!==void 0&&W.end!==void 0};
jpX=function(W){return bkX(W)?W.start:W};
TJX=function(W){return bkX(W)?W.end:void 0};
dBO=function(W,O){for(var b=[],T=new Date(W.start.year,W.start.month);T.getFullYear()<W.end.year||T.getFullYear()===W.end.year&&T.getMonth()<=W.end.month;){var L=b,h=L.push,Z=T.getFullYear(),a=T.getMonth(),m=W,w=O,A=void 0,X=[],l=Object.freeze({extraCssClass:"invisible"}),p=new Date(Z,a),K=W2e(p);p=p.getDay();for(var k=W2e(new Date);K.month===a;){p!==L28&&A||(A=Array.from({length:7}).fill(l),X.push(A));var r={date:{year:Z,month:a,day:K.day},extraCssClass:"",debugClass:""};r.extraCssClass=w(r.date,
K,k,m).trim();A[(p-L28+7)%7]=r;K=K.day===CC8(K.year,K.month)?K.month===11?{year:K.year+1,month:0,day:1}:{year:K.year,month:K.month+1,day:1}:{year:K.year,month:K.month,day:K.day+1};p=(p+1)%7}h.call(L,{weeks:X,monthLabel:Pt.SHORTMONTHS[a]+" "+Z,year:Z,month:a,monthLabelExtraCssClass:X[0][2]===l?"shift-down-label":""});T.setMonth(T.getMonth()+1)}return b};
hdi=function(W,O){O=O.months.findIndex(function(b){return b.year===W.year&&b.month===W.month});
return O>=0?O:void 0};
ZkX=function(W,O){a:{var b=b===void 0?[2,3]:b;b=_.S(b);for(var T=b.next();!T.done;T=b.next()){var L=new Date;if((new Sa8(T.value)).parse(O,L,{validate:!0})){L.setHours(0,0,0,0);O=L;break a}}O=null}if(!O)return{isValid:!1,value:void 0};O=W2e(O);b=W.end;return l3(O,W.start)||l3(b,O)?{isValid:!1,value:void 0}:{isValid:!0,value:O}};
Ec8=function(W){var O=I9T;O=O===void 0?a98:O;var b=W.columnsToShow||[],T=mBX(W.columnDimensions,W.columnsToShow,W.leftFloatingColumns,O);return b.map(function(L,h){var Z=W.columns[L];if(Z===void 0)throw Error("Mh");var a=T?T[h]:"";var m=W.getCustomTooltip?W.getCustomTooltip(L,Z.headerTooltipParagraphs):Z.headerTooltipParagraphs;var w=YaQ(W,L);return{type:L,index:h,style:a,classes:w,headerName:Z.headerName||"",headerIcon:Z.headerIcon,headerTooltipParagraphs:m||[],headerTooltipHelpContext:Z.headerTooltipHelpContext,
sortOrders:Z.sortOrders||[],selectionState:Z.isSelectionCheckbox?W.selectionState:void 0}})};
YaQ=function(W,O){var b=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],T=W.columns[O];if(T===void 0)return"";var L=b.includes("DEFAULTS")&&T.cssClass?[T.cssClass]:[];if(b.includes("SORTING")){T.sortOrders&&T.sortOrders.length&&L.push("sortable");if(W.sorting&&W.sorting.columnType===O)a:switch(W.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var h="column-sorted";break a;default:h=""}else h="";h&&L.push(h)}b.includes("FLOATING")&&(O=W.columnsToShow.indexOf(O),W.leftFloatingColumns&&O<W.leftFloatingColumns&&
L.push("floating-column"),W.leftFloatingColumns&&O===W.leftFloatingColumns-1&&L.push("last-floating-column"));b.includes("RIGHT_ALIGN")&&T.rightAlignHeader&&L.push("right-align");return L.filter(function(Z){return Z}).join(" ")};
mBX=function(W,O,b,T){b=b===void 0?0:b;T=T===void 0?a98:T;if(W){var L=[],h=0;wF2(W,O,T).forEach(function(Z,a){var m="min-width:"+Z.minWidth+"px;padding-left:"+Z.paddingLeft+"px;padding-right:"+Z.paddingRight+"px;flex:"+Z.flexGrow+" 0 "+Z.minWidth+"px;";Z.maxWidth!==Infinity&&(m=[m,"max-width:"+Z.maxWidth+"px;"].join(""));h>0&&a<b&&(m=[m,"left:"+h+"px;"].join(""));L.push(m);h+=Z.minWidth+Z.paddingLeft+Z.paddingRight});
return L}};
wF2=function(W,O,b){b=b===void 0?a98:b;return O.map(function(T,L){T=W&&W[T]||{};var h=L===0?b.paddingLeftFirstColumn:b.padding;T.paddingLeft!==void 0&&(h=T.paddingLeft);L=L===O.length-1?b.paddingRightLastColumn:b.padding;T.paddingRight!==void 0&&(L=T.paddingRight);return{paddingLeft:h,paddingRight:L,minWidth:T.minWidth!==void 0?T.minWidth:b.minWidth,maxWidth:T.maxWidth!==void 0?T.maxWidth:b.maxWidth,flexGrow:T.flexGrow!==void 0?T.flexGrow:b.flexGrow}})};
AmE=function(W){var O=W.reduce(function(T,L){var h=L.columnId,Z={};L.headerText&&(Z.headerName=_.NX(L.headerText));L.rightAlignHeader&&(Z.rightAlignHeader=L.rightAlignHeader);var a;if((a=L.headerIcon)==null?0:a.iconType)Z.headerIcon=_.Z6(L.headerIcon.iconType);T[h]=Z;return T},{}),b=W.filter(function(T){return!T.hideColumn}).map(function(T){return T.columnId});
W=W.filter(function(T){return!!T.dimensions}).reduce(function(T,L){T[L.columnId]=L.dimensions;
return T},{});
return{columns:O,columnsToShow:b,columnDimensions:W}};
_.XFE=function(W){return W?W.simpleText?W.simpleText:W.runs?W.runs.map(function(O){return O.text}).join(""):"":""};
pFX=function(W){var O=W.data;var b=W.onTap;var T=W.isSelected;var L=W.onFocusIn;if(!O)return{};W=UBX(O);T===void 0&&(T=O==null?void 0:O.isSelected);var h;return{text:l9P(O,W),startIcon:(h=O.icon)==null?void 0:h.iconType,state:T?0:2,type:0,onTap:edX(O,b),accessibilityLabel:P2E(O,W),onFocusIn:function(){return L==null?void 0:L()}}};
l9P=function(W,O){if(!O)return W.text?_.XFE(W.text):void 0};
edX=function(W,O){return function(b){O==null||O(b,W)}};
UBX=function(W){W=W.style&&W.style.styleType;return!RdX&&W==="STYLE_EXPLORE_LAUNCHER_CHIP"};
P2E=function(W,O){if(O){var b,T,L;return(L=(b=W.accessibilityData)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)!=null?L:l9P(W,!1)}};
pF=function(W){return{signalAction:{signal:W}}};
gcE=function(){return _.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?K2Q:_.vcX};
ocQ=function(W,O){W=W===void 0?"SOFT_RELOAD_PAGE":W;O=O===void 0?49504:O;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.iv(_.EO("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:O}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:W}}]}}}};
QpQ=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iv(_.EO("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:gcE()}};
ku1=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:gcE()}};
spQ=function(W,O){var b=_.iv(_.EO("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),T=_.iv(_.EO("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),L={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iv(_.EO("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};L.serviceEndpoint=W?W:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[pF("SOFT_RELOAD_PAGE")]}};return{title:b,bodyText:T,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:L},
style:{value:O!=null?O:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
rm8=function(W){W=W===void 0?{}:W;return{title:_.iv(W.localizedZeroStateTitleText===void 0?"":W.localizedZeroStateTitleText),bodyText:_.iv(W.localizedZeroStateMessage===void 0?"":W.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iv(W.localizedZeroStateButtonText===void 0?"":W.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[BJE]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.zdQ=function(W,O,b,T,L,h,Z,a){T=T===void 0?!1:T;L=L===void 0?!1:L;h=h===void 0?0:h;Z=Z===void 0?-Infinity:Z;a=a===void 0?!1:a;var m=[],w=_.iv(_.EO("SMART_DOWNLOADS",void 0,"Smart downloads"));Z=_.iv(DBP(h,Z,W.length));h=void 0;T?h=W.length>0?xBO(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.e("kevlar_manual_downloads_above"),w,Z):a?{alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedPromptMessage===
void 0?"":b.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.EO("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.EO("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:_.bNQ}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.iv(_.EO("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"}}}:L&&(h={alertBannerViewModel:{heading:{content:b.localizedOptInBannerTitleText===void 0?"":b.localizedOptInBannerTitleText},body:{content:b.localizedOptInMessage===
void 0?"":b.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.EO("TURN_ON",void 0,"Turn on"),accessibilityText:_.EO("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});b=_.iv(_.EO("YOUR_DOWNLOADS",void 0,"Your downloads"));L=void 0;O.length>0?(L=void 0,_.e("kevlar_display_downloads_numbers")&&(L=_.iv(_.wa("VIDEO_COUNT",O.length))),L=xBO(O,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,b,L)):T||W.length||(L={backgroundPromoRenderer:{bodyText:_.iv(_.EO("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}}}});h&&!_.e("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});L&&m.push({richSectionRenderer:{content:L,loggingDirectives:{clientVeSpec:{uiType:51721}}}});h&&_.e("kevlar_manual_downloads_above")&&m.push({richSectionRenderer:{content:h,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(O.length>0||T&&W.length>0)&&m.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iv(_.EO("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}};
_.qaQ=function(W){return C2i(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.nch=function(W){return C2i(W,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
C2i=function(W,O){var b=[];W=xBO(W,O,!0);b.push({richSectionRenderer:{content:W}});return{contents:b}};
xBO=function(W,O,b,T,L){b=b===void 0?!1:b;W={isExpanded:b,contents:Ry(W),entitySelectorType:O};T&&(W.title=T);L&&(W.subtitle=L);b||(_.e("kevlar_smart_downloads_show_more_button")?(W.showMoreButton={buttonRenderer:{accessibility:{label:_.EO("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.iv(_.EO("SHOW_MORE",void 0,"Show more"))}},W.showLessButton={buttonRenderer:{accessibility:{label:_.EO("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.iv(_.EO("SHOW_LESS",void 0,"Show less"))}}):(W.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.EO("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}}}},W.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.EO("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}}}},W.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.EO("VIEW_ALL",void 0,"View all"),accessibilityText:_.EO("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:WS("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:W}};
Ry=function(W){var O=[];W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,q_T(b)){var T=O,L=T.push;var h=void 0;if(b==null?0:(h=b.videoEntity)==null?0:h.videoId){h=Ce(_.uv().getState(),b.videoEntity.videoId);var Z=_.uv().getState();var a=_.Z5(b.videoEntity.videoId,"mainVideoEntity");Z=!!_.Ke(Z.entities)[a];Z={videoId:b.videoEntity.videoId,title:bv(b.videoEntity.title),shortBylineText:bv(b.channelEntity.title),thumbnail:b.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:Z&&_.e("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:qYX(b.videoEntity.videoId,h,b.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.EO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};b.videoEntity.lengthSeconds&&(Z.thumbnailOverlays=Lri(b.videoEntity.lengthSeconds,h));Z.isWatched=h>0;_.e("kevlar_modern_downloads_page")&&(Z.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:b.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.EO("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},Z.badges=void 0);b=Z}else b={};L.call(T,{richItemRenderer:{content:{videoRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(Csq(b)){T=O;L=T.push;var m=a=h=void 0,w=void 0,A=void 0,X=void 0,l=void 0,p=void 0,K=void 0,k=void 0,r=void 0,q=void 0;Z=b.mainPlaylistEntity.playlistId;var f=b==null?void 0:(q=b.mainPlaylistEntity)==null?void 0:(r=q.thumbnailStyleData)==null?void 0:(k=r[0])==null?void 0:(K=k.value)==null?void 0:(p=K.collageThumbnail)==
null?void 0:p.coverThumbnail;if(Z&&f){p=ngO(Z);!_.e("enable_offline_playlist_page")&&(b==null?0:(l=b.mainPlaylistEntity)==null?0:l.videos)&&(l=b==null?void 0:(X=b.mainPlaylistEntity)==null?void 0:(A=X.videos)==null?void 0:A[0],A=_.dm(l).entityId,A=JSON.parse(A).videoId,A!==void 0&&(X=Ce(_.uv().getState(),A),p=_.Or(A,Z,void 0,void 0,X)));A=[];if(b==null?0:(w=b.mainPlaylistEntity)==null?0:(m=w.videos)==null?0:m.length)A=[nV8(),Object.assign({},(a=q2q(b==null?void 0:b.mainPlaylistEntity.videos.length))!=
null?a:{})];b={playlistId:Z,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:f}},navigationEndpoint:p,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:A,title:bv(b.mainPlaylistEntity.title),shortBylineText:bv(b==null?void 0:(h=b.channelEntity)==null?void 0:h.title),badges:[{metadataBadgeRenderer:{label:_.EO("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.e("kevlar_modern_downloads_page")&&(b.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:f9X,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:Z,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.EO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},b.badges=void 0)}else b=void 0;L.call(T,{richItemRenderer:{content:{playlistRenderer:b},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return O};
DBP=function(W,O,b){W=W?Gu2(W):"";O!==void 0&&isFinite(O)?O===0?O=_.EO("UPDATING",void 0,"Updating..."):(O=Tke(new Date(O),new Date),O=_.EO("UPDATED_TIME",{relative_time:O},"Updated "+O)):O="";var T="";W&&O&&(T=" \u2022 ");if(b&&_.e("kevlar_display_downloads_numbers")){b=_.wa("VIDEO_COUNT",b);if(W||O)T=" \u2022 ";return b+T+W+T+O}return W+T+O};
Hkq=function(W){return Qzi(W.entities).length};
_.tvX=function(W,O){var b=yrO(W.responsiveSize),T;W=!((T=W.responsiveMap)==null||!T.some(function(L){return L.containerSize==="CONTAINER_SIZE_NARROW"&&L.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:O,sizing:b,enableFullBleedForSingleCol:!1,isCompactList:b==="COMPACT"&&W}};
$BX=function(W,O){return _.IJ(W.entities,"votingEntity",O)};
VvE=function(W){if(W){var O;return((O=_.iq().resolve(_.OT(_.t4)))==null?0:O())?W.darkTheme:W.lightTheme}};
NJX=function(W,O,b){return _.E(_.TT,null,ehP(b,[[0,function(){return _.E("h2",{class:O},W)}],
[1,function(){return _.E("h3",{class:O},W)}],
[2,function(){return _.E("h4",{class:O},W)}]],function(){return _.E("h2",{class:O},W)}))};
MvX=function(W){var O=["shelf-header-layout-wiz"];W.disableHorizontalPadding&&O.push("shelf-header-layout-wiz--disable-horizontal-padding");W.disableVerticalPadding&&O.push("shelf-header-layout-wiz--disable-vertical-padding");W.useResponsiveLayout&&(O.push("shelf-header-layout-wiz--responsive"),W.forceSmallLayout&&O.push("shelf-header-layout-wiz--narrow"));W.isOverlay&&O.push("shelf-header-layout-wiz--is-overlay");W.onClick&&O.push("shelf-header-layout-wiz--tappable");var b=["shelf-header-layout-wiz__title"];
W.forceSmallLayout&&b.push("shelf-header-layout-wiz__title--small-title");var T=["shelf-header-layout-wiz__leading-image"];W.circularImage&&T.push("shelf-header-layout-wiz__leading-image--circular-image");var L=_.XL(function(w){var A;(A=W.onClick)==null||A.call(W,w)}),h,Z,a,m;
return _.E("yt-shelf-header-layout",{class:O.join(" "),"on:click":L,tabindex:W.onClick?0:void 0},W.leadingIcon?_.E("div",{class:"shelf-header-layout-wiz__leading-icon"},_.E(_.Ps,{icon:W.leadingIcon})):W.hasLeadingImage?_.E("div",{class:T.join(" ")},(h=W.leadingImage)==null?void 0:h.call(W)):_.E(_.TT,null),_.E("div",{class:"shelf-header-layout-wiz__label-container"},W.hasSuperlabel?_.E("div",{class:"shelf-header-layout-wiz__superlabel"},(Z=W.superlabel)==null?void 0:Z.call(W)):_.E(_.TT,null),_.E("div",
{class:"shelf-header-layout-wiz__title-row"},NJX(W.title(),b.join(" "),W.tagLevel),Fu(W.hasDetail,function(){var w;return _.E("div",{class:"shelf-header-layout-wiz__detail"},(w=W.detail)==null?void 0:w.call(W))})),W.hasSublabel?_.E("div",{class:"shelf-header-layout-wiz__sublabel"},(a=W.sublabel)==null?void 0:a.call(W)):_.E(_.TT,null)),W.hasTrailingActions?_.E("div",{class:"shelf-header-layout-wiz__trailing-actions"},(m=W.trailingActions)==null?void 0:m.call(W)):_.E(_.TT,null))};
uw8=function(W){var O=_.P(W==null?void 0:W.avatar,_.Hm),b,T=(b=W==null?void 0:W.image)!=null?b:_.ML(W==null?void 0:W.themedImage);return _.E(_.TT,null,Fu(T,function(){return _.E(_.uj,{data:T,alt:"",preserveWidth:!0,preserveHeight:!0})}),Fu(O,function(){return _.E(_.KF,{data:O})}))};
F22=function(W){var O=_.P(W.bottomBadge,Jm1),b=O&&W.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.E(_.TT,null,Fu(O,function(){return O&&_.E(cmX,{data:O,class:b})}),Fu(W.sublabel,function(){return _.E(_.uw,{text:W.sublabel})}))};
ymP=function(W){var O=_.P(W.topBadge,Jm1),b=O&&W.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.E(_.TT,null,Fu(O,function(){return O&&_.E(cmX,{data:O,class:b})}),Fu(W.superlabel,function(){return _.E(_.uw,{text:W.superlabel})}))};
it1=function(W){var O=W.data;var b=W.disableHorizontalPadding;var T=W.disableVerticalPadding;var L=W.forceSmallLayout;var h=W.useResponsiveLayout;W=W.isOverlay;var Z=O.sublabel||O.bottomBadge,a=O.superlabel||O.topBadge,m=_.fp(O.rendererContext);b={hasDetail:!1,title:function(){return _.E(_.uw,{text:O.headline})},
hasTitle:!0,sublabel:Z&&function(){return F22(O)},
hasSublabel:!!Z,superlabel:a&&function(){return ymP(O)},
hasSuperlabel:!!a,leadingImage:O.leadingAccessory&&function(){return uw8(O.leadingAccessory)},
hasLeadingImage:!!O.leadingAccessory,trailingActions:O.trailingActions&&function(){return _.E(_.TT,null,WL8(O.trailingActions))},
hasTrailingActions:!!O.trailingActions,disableHorizontalPadding:b,disableVerticalPadding:T,forceSmallLayout:L,useResponsiveLayout:h,isOverlay:W,onClick:m?function(w){var A=_.np(O.rendererContext);A&&_.zH(A,{form:{element:w.target,event:w}})}:void 0};
T=(T=VvE(O==null?void 0:O.backgroundColor))?"background-color: "+_.C_(T)+";":void 0;return _.E("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:T},_.E(OtP,Object.assign({},b)))};
btX=function(W,O){if(W.simpleText)return Object.assign({},W,{simpleText:GH(W.simpleText,O)});if(!W.runs)return W;for(var b=Object.assign({},W,{runs:[]}),T=0,L=_.S(W.runs),h=L.next();!h.done;h=L.next())if(h=h.value,h.text)if(T+h.text.length<=O)b.runs.push(h),T+=h.text.length;else return b.runs.push(Object.assign({},h,{text:GH(h.text,O-T)})),b;return W};
jIh=function(W,O){return _.IJ(W.entities,"chipBarStateEntity",O)};
TKe=function(W,O){return _.IJ(W.entities,"chipEntity",O)};
d0X=function(W,O,b,T){return function(){var L=LLT.has(W.displayType)&&W.selected,h=L&&W.deselectCommand?W.deselectCommand:W.tapCommand;!h||L&&T||_.nb(h,{form:{element:O==null?void 0:O.value}});b==null||b()}};
heq=function(W){switch(W){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
Sbi=function(W,O){return{triggeringElement:W,onDwellTriggeredFn:function(){var b={triggeringElement:W,loadVideoPreviewEventData:O},T=document.querySelector(".video-preview");T&&T.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:b}))},
onDwellEndFn:function(){var b=document.querySelector(".video-preview");b&&b.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Zt2=function(W,O){var b=_.iq().resolve(_.OT(nQe)),T=function(){var L=O();return b&&L?Sbi(W.value,L):null};
_.kb(function(){var L=T();b&&L&&Promise.resolve().then(function(){b.registerElement(L)});
_.so(function(){b&&L&&Promise.resolve().then(function(){b.unregisterElement(L)})})})};
aEe=function(W){var O=W.dataset.resizeObserverId;if(O)return O;O=""+IE8++;return W.dataset.resizeObserverId=O};
m08=function(W,O){var b=aEe(W);vt.has(b)||vt.set(b,new Set);vt.get(b).add(O);g6.has(b)&&O(Object.assign({},{target:W},g6.get(b)))};
YbT=function(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=aEe(O.target),T=Object.assign({},{target:O.target},g6.get(b));if(T!=null&&T.contentRect?T.contentRect.width!==O.contentRect.width||T.contentRect.height!==O.contentRect.height:1)for(g6.set(b,{borderBoxSize:O.borderBoxSize,contentBoxSize:O.contentBoxSize,contentRect:O.contentRect,devicePixelContentBoxSize:O.devicePixelContentBoxSize}),b=_.S(vt.get(b)||[]),T=b.next();!T.done;T=b.next())T=T.value,T(O)}};
w48=function(){return oy?oy:oy=new EKq(YbT)};
AJX=function(W,O){var b=aEe(W);vt.has(b)&&(vt.get(b).delete(O),vt.get(b).size===0&&(vt.delete(b),g6.delete(b),oy.unobserve(W),delete W.dataset.resizeObserverId));vt.size===0&&oy&&(oy.disconnect(),oy=void 0)};
U02=function(W,O){var b=_.iq().resolve(O0);return X42.map(function(T){return b.observe(W,O,T)})};
lEX=function(W){var O=_.iq().resolve(O0);W.forEach(function(b){O.unobserveByKey(b)})};
_.p4X=function(W,O){var b=Object.assign({},eeq,O);O=_.S(QeP());var T=O.next().value,L=O.next().value,h=function(Z){var a=Z.contentRect.height;if((Z=Z.contentRect.width)||a||b.canHaveZeroSize)T.width()===Z&&T.height()===a||L(T,{height:a,width:Z})};
_.kX(function(){var Z=W instanceof HTMLElement?W:W.value,a=PbQ(h,b.throttleMs),m=[];b.useVisibilityObserver&&(m=U02(Z,function(w,A){requestAnimationFrame(function(){A==="visible"?(m08(Z,a),w48().observe(Z)):AJX(Z,a)})}));
m.length||(m08(Z,a),w48().observe(Z));_.so(function(){m.length&&(lEX(m),m.length=0);AJX(Z,a)})});
return T};
KL2=function(W){var O=W.data;var b=W.callback;var T=W.enableSingleChipSelection;var L=W.disableChipsScrollAnimation;var h=_.uy(),Z=BU(!1),a=BU(0);W={};W=_.S(Ex(O.autoselectedChipIndex!=null?(W[O.autoselectedChipIndex]=!0,W):{}));var m=W.next().value,w=W.next().value,A=function(){var pE=h.value;return pE==null||pE.scrollLeft-1<=0},X=function(){var pE=h.value;
return pE==null?!1:pE.scrollLeft+1>=(pE==null?NaN:pE.scrollWidth)-(pE==null?NaN:pE.clientWidth)};
W=_.S(Ex(A()));var l=W.next().value,p=W.next().value;W=_.S(Ex(X()));var K=W.next().value,k=W.next().value;W=O.isHorizontallyScrollable;var r=function(pE){h.value!=null&&(_.Cv("HTML_DIR")==="rtl"&&(pE=-pE),h.value.scrollBy({left:pE,behavior:L?"instant":"smooth"}))},q=function(){r(-320)},f=function(){r(320)},M=_.XL(function(pE){Z.value=!0;
a.value=pE.clientX}),V=_.XL(function(pE){if(Z.value){pE=pE.clientX;
var Qh=pE-a.value;a.value=pE;h.value.scrollBy({left:-Qh})}}),jQ=_.XL(function(){var pE=A(),Qh=X();
pE!==l&&p(pE);Qh!==K&&k(Qh)});
WB("pointerup",function(){Z.value&&(Z.value=!1)});
var y={},d8={};return _.E("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},Fu(O.title,function(){return _.E("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.E("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},O.title),ReO(O.overflowButton))}),_.E("div",{class:"ytChipsShelfViewModelChipsShelfContent"},Fu(O.previousButton!=null,function(){var pE={};
return _.E("div",{class:_.wd("ytChipsShelfViewModelLeftArrowContainer",(pE.ytChipsShelfViewModelLeftArrowContainerIsHidden=l,pE))},ReO(O.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:q}}))}),_.E("div",{el:h,
"on:pointerdown":M,"on:pointermove":V,"on:scroll":jQ,class:_.wd("ytChipsShelfViewModelChipsScrollContainer",(y.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!W,y))},_.E("div",{class:_.wd("ytChipsShelfViewModelChipsContainer",(d8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!W,d8.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!W&&!1,d8))},(O.contents||[]).map(function(pE,Qh){return _.E("div",{class:"ytChipsShelfViewModelChipWrapper"},ReO(pE,
{chipViewModel:{callback:function(KE,fE){if(T){var r8={};w((r8[Qh]=fE,r8))}else r8={},w(Object.assign({},m,(r8[Qh]=fE,r8)));b==null||b(KE,fE,Qh)},
disableDeselection:T,selected:!!m[Qh]}}))}))),Fu(O.nextButton!=null,function(){var pE={};
return _.E("div",{class:_.wd("ytChipsShelfViewModelRightArrowContainer",(pE.ytChipsShelfViewModelRightArrowContainerIsHidden=K,pE))},ReO(O.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:f}}))})))};
gKE=function(W,O,b,T,L){W=O?W.switchOffCommand:W.switchOnCommand;if(T&&L)vKX(W,b,L);else{var h,Z;(h=_.Cb({elementsCommand:W}))==null||(Z=h.onclick)==null||Z.call(h,b)}};
vKX=function(W,O,b){W=_.Cb({elementsCommand:W,additionalCommandArgs:{commandController:{onSuccess:function(){b(!1)},
onServerError:function(){b(!1)}}}});
if(W==null?0:W.onclick)W.onclick(O),b(!0)};
QIX=function(W){if(W)return _.P(W,oKP)};
D08=function(W,O,b){if(O)return[kdQ];switch(W){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[QI];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return b?[QI]:[sI8,QI];case "TRANSFER_STATE_PAUSED_BY_USER":return[BKq,QI];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[rJX,QI];default:return[kdQ]}};
x0q=function(W,O,b,T){return D08(W,O,T).map(function(L){var h=L.text,Z=L.iconType,a=L.videoAction;L=L.playlistAction;h=h?{content:h}:void 0;Z=Z&&{sources:[{clientResource:{imageName:Z}}]};var m=(0,_.PQ.unsafeClone)(b);if(m){var w=_.P(m,_.mo),A=_.P(m,_.Yz);w&&a?w.action=a:A&&L&&(A.action=L)}return{title:h,leadingImage:Z,rendererContext:m&&{commandContext:{onTap:{innertubeCommand:m}}}}})};
ze1=function(W){W=_.np(W.rendererContext);var O;return(O=_.P(W,_.Yz))==null?void 0:O.playlistId};
CbE=function(W){var O;return(O=W.listItems)==null?void 0:O.some(function(b){var T;return _.fp((T=_.P(b,_.oWT))==null?void 0:T.rendererContext)})};
kN=function(W){var O=_.iq().resolve(_.OT(_.t4));return O!=null&&O()?W.darkThemeColorPalette:W.lightThemeColorPalette};
Bt=function(W){return{primaryTextColor:s8(W,0),secondaryTextColor:s8(W,1),optionColor:s8(W,2),backgroundColor:s8(W,3),videoBackgroundColor:s8(W,4)}};
s8=function(W,O){if(W){switch(O){case 0:W=W.primaryTitleColor;break;case 1:W=W.secondaryTitleColor;break;case 2:W=W.surgeColor;break;case 3:W=W.section2Color;break;case 4:W=W.section3Color;break;default:return}if(W)return _.zF(W)}};
qbq=function(W){return W?_.C_(W):""};
nKP=function(W){return(W==null?void 0:W.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
fEX=function(W,O){var b;return"linear-gradient(to bottom, "+((b=O==null?void 0:O.map(function(T){var L=W?T.darkThemeColor:T.lightThemeColor;return L?_.C_(L)+" "+((T==null?void 0:T.startLocation)||0)*100+"%":"transparent"}))==null?void 0:b.join(", "))+")"};
Gd2=function(W,O,b,T,L){if(!((T==null?0:T.height)&&(T==null?0:T.width)))return{size:0};var h=T.width;T=T.height;if(L)return O==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||O==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&h>T?{size:312/mUe}:O==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(b!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||W!==1&&W!==2||O!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&O!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&O!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(O==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||O==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||T===h)switch(W){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(O==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||T>h)switch(W){case 1:case 3:return{size:240*aeO};default:return{size:360*aeO}}switch(W){case 1:case 2:return{size:1/mUe*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.HtQ=function(W){if(!("matchMedia"in window))return _.HU(Error("Nh")),function(){return!1};
var O=window.matchMedia(W);W=_.S(_.wu(O.matches,void 0,"jLJc8e"));var b=W.next().value,T=W.next().value,L=function(h){T(h.matches)};
O.addEventListener?(O.addEventListener("change",L),_.so(function(){O.removeEventListener("change",L)})):O.addListener&&(O.addListener(L),_.so(function(){O.removeListener(L)}));
return b};
tGE=function(W){return W==="IMAGE_BANNER_STYLE_INSET"||W==="IMAGE_BANNER_STYLE_UNKNOWN"};
$0X=function(){if(!("matchMedia"in window))return _.HU(Error("Nh")),function(){return 0};
var W=sC(function(){return window.matchMedia("(max-width: 527.9px)")}),O=sC(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),b=sC(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),T=sC(function(){return window.matchMedia("(min-width: 1024px)")}),L=_.S(_.wu(W.matches,void 0,"og9kEc")),h=L.next().value,Z=L.next().value;
L=_.S(_.wu(O.matches,void 0,"ybDWCb"));var a=L.next().value,m=L.next().value;L=_.S(_.wu(b.matches,void 0,"o0Gfh"));var w=L.next().value,A=L.next().value;L=_.S(_.wu(T.matches,void 0,"yqUUgd"));var X=L.next().value,l=L.next().value,p=sC(function(){return function(q){Z(q.matches)}}),K=sC(function(){return function(q){m(q.matches)}}),k=sC(function(){return function(q){A(q.matches)}}),r=sC(function(){return function(q){l(q.matches)}});
_.kX(function(){W.addEventListener?(W.addEventListener("change",p),O.addEventListener("change",K),b.addEventListener("change",k),T.addEventListener("change",r)):W.addListener&&(W.addListener(p),O.addListener(K),b.addListener(k),T.addListener(r));_.so(function(){W.removeEventListener?(W.removeEventListener("change",p),O.removeEventListener("change",K),b.removeEventListener("change",k),T.removeEventListener("change",r)):W.removeListener&&(W.removeListener(p),O.removeListener(K),b.removeListener(k),
T.removeListener(r))})});
return function(){return h()?1:a()?2:w()?3:X()?4:0}};
VGO=function(W){var O=0;W=_.S([W.title,W.metadata,W.actions,W.description,W.attribution]);for(var b=W.next();!b.done;b=W.next())b.value&&O++;return O};
NK1=function(W){return W===1||W===2?1:0};
uxq=function(W){var O,b=((O=_.iq().resolve(_.OT(_.t4)))==null?0:O())&&W.data.darkThemeImage?W.data.darkThemeImage:W.data.image;O=_.E("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.E("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},b?_.E(_.uj,{data:b,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),MGX(W.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));b=_.E(_.uw,{text:W.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var T=W.data;if(T.bodyText){var L=[];T=_.S(T.bodyText);for(var h=T.next();!h.done;h=T.next())L.push(_.E(_.uw,{text:h.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else L=_.E(_.TT,null);return _.E("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},O,b,L,MGX(W.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.E(_.uw,{text:W.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.E(_.uw,{text:W.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
cJ2=function(W){W=(new JJi).parse(W);return(new Is).render(W).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(O){var b=O.split(":").map(Number),T=0,L=0;if(b.length===3)b=_.S(b),T=b.next().value,L=b.next().value,b=b.next().value;else if(b.length===2)b=_.S(b),L=b.next().value,b=b.next().value;else if(b.length===1)b=_.S(b).next().value;else throw Error("Oh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(T*3600+L*60+b)+'" role="button">'+O+"</span>"})};
FLQ=function(W){W=_.S(W.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var O=W.next(),b={};!O.done;b={clickHandler$jscomp$4:void 0},O=W.next()){O=O.value;b.clickHandler$jscomp$4=function(L){L=Number(L.target.getAttribute("data-time"));if(isNaN(L))throw Error("Ph");var h=document.querySelector("video");h&&(h.currentTime=L)};
var T=function(L){return function(h){h.key!=="Enter"&&h.key!=="Space"||(0,L.clickHandler$jscomp$4)(h)}}(b);
O.setAttribute("tabindex","0");O.removeEventListener("click",b.clickHandler$jscomp$4);O.removeEventListener("keydown",T);O.addEventListener("click",b.clickHandler$jscomp$4);O.addEventListener("keydown",T)}};
yJX=function(){return _.E("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.E(r6,{percentWidth:100}),_.E(r6,{animationDelay:200}),_.E(r6,{animationDelay:400}),_.E(r6,{animationDelay:600}),_.E(r6,{animationDelay:800,percentWidth:60}),_.E("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.E(r6,{percentWidth:100}),_.E(r6,{animationDelay:200}),_.E(r6,{animationDelay:400}),_.E(r6,{animationDelay:600,percentWidth:50}))};
r6=function(W){return _.E("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(W.percentWidth===void 0?100:W.percentWidth)+"%"},_.E("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(W.animationDelay===void 0?0:W.animationDelay)+"ms"}))};
WkE=function(){var W=_.S(_.wu(function(){return""},void 0,"v2wS5e")),O=W.next().value;
return[function(){return O()()},
W.next().value]};
ix8=function(W){W=W===void 0?{}:W;return{title:_.iv(W.localizedOptInBannerTitleText===void 0?"":W.localizedOptInBannerTitleText),titleLength:19,subtitle:_.iv(W.localizedOptInMessage===void 0?"":W.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iv(_.EO("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:_.iv(_.EO("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:[OxX]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
bxX=function(W,O){W=W?Gu2(W):"";O!==void 0&&isFinite(O)?O===0?O=_.EO("UPDATING",void 0,"Updating..."):(O=Tke(new Date(O),new Date),O=_.EO("UPDATED_TIME",{relative_time:O},"Updated "+O)):O="";var b="";W&&O&&(b=" \u2022 ");return _.iv(W+b+O)};
Lkq=function(W,O,b,T,L,h){O=O===void 0?0:O;var Z=jtP[O],a=Z.title,m=Z.iconType,w=Z.topButtonRenderer,A=Z.sectionClientVE;Z=Z.videoClientVE;var X;if(O!==1||W.length){b=[];W=_.S(W);for(T=W.next();!T.done;T=W.next()){var l=T.value;if(q_T(l))b.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:l.videoEntity.videoId,title:bv(l.videoEntity.title),shortBylineText:bv(l.channelEntity.title),thumbnail:l.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:l.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.EO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}}}});else if(Csq(l)){T=b;var p=T.push;var K=void 0,k=void 0,r=void 0,q=void 0,f=void 0,M=void 0,V=void 0,jQ=void 0,y=l.mainPlaylistEntity.playlistId,d8=l==null?void 0:(jQ=l.mainPlaylistEntity)==null?void 0:(V=jQ.thumbnailStyleData)==null?void 0:(M=V[0])==null?void 0:(f=M.value)==null?void 0:(q=f.collageThumbnail)==null?void 0:q.coverThumbnail;q=ngO(y);if(!_.e("enable_offline_playlist_page")&&
(l==null?0:(r=l.mainPlaylistEntity)==null?0:r.videos)){b:{r=l==null?void 0:(k=l.mainPlaylistEntity)==null?void 0:k.videos;k=_.uv().getState().entities;if(r!=null&&r.length&&k)for(r=_.S(r),f=r.next();!f.done;f=r.next())if(f=_.dm(f.value).entityId,(f=JSON.parse(f).videoId)&&g2h(k,f)==="TRANSFER_STATE_COMPLETE"){k=f;break b}k=""}k!==void 0&&(q=Ce(_.uv().getState(),k),q=_.Or(k,y,void 0,void 0,q))}k=GME(_.EO("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),ngO(y));l=y&&d8&&k?{playlistId:y,navigationEndpoint:q,
viewPlaylistText:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:d8}},title:bv(l.mainPlaylistEntity.title),shortBylineText:bv(l==null?void 0:(K=l.channelEntity)==null?void 0:K.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:TRE,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:y,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.EO("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:Z}}}:
void 0;p.call(T,{gridPlaylistRenderer:l})}}Z={gridRenderer:{items:b}};O===1&&(X=bxX(L,h))}else if(T){var pE=_.iv((p=b==null?void 0:b.localizedPromptMessage)!=null?p:"");Z={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iv(_.EO("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.bNQ}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iv(_.EO("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};X=bxX(L,h)}else pE=_.iv(_.EO("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
Z={};return{contents:[{shelfRenderer:{title:a,titleAnnotation:X,icon:{iconType:m},subtitle:pE,content:Z,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:w}]}}}}],loggingDirectives:{clientVeSpec:{uiType:A}}}};
dOh=function(W,O,b,T,L,h,Z,a){b=b===void 0?{}:b;T=T===void 0?!1:T;L=L===void 0?!1:L;h=h===void 0?!1:h;Z=Z===void 0?0:Z;a=a===void 0?-Infinity:a;if(!O.length&&!W.length&&!T)return L?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:rm8(b)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.iv(_.EO("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=[];W.length&&m.push(Lkq(W,0));T?m.push(Lkq(O,1,b,h,Z,a)):L&&m.push({contents:[{statementBannerRenderer:ix8(b)}]});(T&&O.length||W.length)&&m.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iv(_.EO("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(w){return{itemSectionRenderer:w}})};
Dv=function(W,O){if(typeof W!=="object")return null;W=_.S(Object.entries(W));for(var b=W.next();!b.done;b=W.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;if(b===O)return b;if(T=Dv(T,O))return b+"."+T}return null};
xN=function(W){var O=W.content;return(W=W.styleRuns)&&O?{runs:W.map(function(b){var T={text:O.slice(b.startIndex,b.startIndex+b.length)};b.fontColor&&(T.textColor=b.fontColor);return T})}:{simpleText:O}};
Zxh=function(W,O,b,T){var L=hJE;T&&(W.quantity=T);if(!W.quantity||!W.maxQuantity)return{};T=W.minusButton;var h=W.plusButton,Z,a,m,w;return{value:W.quantity,maxValue:W.maxQuantity,onChangeCallback:function(A){L(W,A)},
minusLabel:(Z=_.P(T,Sd8))==null?void 0:Z.label,minimumReachedLabel:(a=_.P(T,Sd8))==null?void 0:a.limitReachedLabel,plusLabel:(m=_.P(h,Sd8))==null?void 0:m.label,maximumReachedLabel:(w=_.P(h,Sd8))==null?void 0:w.limitReachedLabel,disabled:O,onRemoveCommand:b}};
hJE=function(W,O){var b=W.quantityIncrementerEntityKey;if(b){var T={};T.quantity=O;_.Ne(_.o4("quantityIncrementerEntity",b,T));W.onChangeCommand&&_.nb(W.onChangeCommand)}};
IVe=function(W){return _.e("kevlar_comments_clone_data_killswitch")?W:_.PQ.unsafeClone(W)};
Yde=function(W,O){(W=aV8(W))&&(O?mOE.push({command:W,sourceData:{},commandContext:void 0}):_.iq().resolve(_.bq).resolveCommand(W))};
aV8=function(W){return _.P(W,_.D6)};
Efe=function(){var W=window.performance.timeOrigin+window.performance.now(),O=(new _.zo).setSeconds(W/1E9);return _.vM(O,2,_.v9(W%1E9),0)};
CF=function(W,O){var b=_.P(_.P(W,_.D6),w6E);b&&(O&&(b.serializedAdditionalMetadata=_.WM(O)),Yde(W,!0))};
AO8=function(W){switch(W){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"}};
X68=function(){return!!_.Cv("ID_TOKEN")};
eJO=function(W){return W instanceof Error&&W.cause instanceof UOX&&W.cause.rpcErrorCode!==void 0?!lVe.includes(W.cause.rpcErrorCode):!0};
p68=function(){return _.uW(P48,{authuser:""+(_.Cv("SESSION_INDEX")||0)})};
qs=function(W,O,b,T){b=b===void 0?"MINI_APP_SDK_API_UNSPECIFIED":b;T=T===void 0?"":T;var L=new _.pu;b={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:T,sdkApi:b};W instanceof Error&&(L.message=W.message,L.name=W.name,W.cause instanceof UOX&&W.cause.rpcErrorCode!==void 0&&(b.rpcErrorCode=W.cause.rpcErrorCode));var h;(h=O.onError)==null||h.call(O,{loggingError:L,metadata:b})};
KkX=function(W,O,b,T){switch(W){case "MINI_APP_SOURCE_GAMESNACKS":return new Ht(O,b,T);default:return new RJq(O,b,T)}};
vfE=function(W){switch(W){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"}};
gf2=function(W){switch(W){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"}};
ofX=function(W){switch(W){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
QtX=function(){return Math.floor(Math.random()*4)+1};
kWi=function(W,O,b,T){W=_.S(Object.entries(W));for(var L=W.next(),h={};!L.done;h={message$jscomp$957:void 0},L=W.next()){var Z=_.S(L.value);L=Z.next().value;Z=Z.next().value;h.message$jscomp$957=Z;O.push(setTimeout(function(a){return function(){T(!1);b(a.message$jscomp$957.text)}}(h),h.message$jscomp$957.delayMs));
Number(L)>0&&O.push(setTimeout(function(){T(!0)},h.message$jscomp$957.delayMs-400))}};
st1=function(W,O){var b=b===void 0?qnX:b;_.e("mweb_fix_monitor_visibility_after_render")?W&&gG(function(){G2i(W,O,b)}):gG(function(){G2i(W,O,b)})};
rOO=function(W){var O=W.data;var b=W.uniqueId;W=W.overrides;var T,L=((T=O.timedAnimationData)==null?void 0:T.animationTiming)||[];return _.E("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.E(sx,{settings:{uniqueId:b,timings:L,experimentEnabled:L.length>0,enabled:L.length>0}},BRP(O.buttonRenderer,{buttonRenderer:{buttonOverrides:W}})))};
C4e=function(W){DOP||(DOP=xOX(new _.ne(1,void 0,void 0,zJX),0));var O=DOP.format(Math.floor(W));O=_.qX==="be"||_.qX==="bg"||_.qX==="es"||_.qX==="et"||_.qX==="hu"||_.qX==="ka"||_.qX==="lv"||_.qX==="pl"||_.qX==="pt-PT"||_.qX==="sq"?O.replace(new RegExp("^(\\d)"+zJX.GROUP_SEP.replace(".","\\.")+"(\\d+("+zJX.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):O;return W>=1E3&&W<=9999&&O[1]==="."&&(_.qX==="sl"||_.qX==="it")?O.replace(".",""):O};
qdq=function(W,O){QE("ytd-button-renderer",{data:W,className:O?O.className:"",overrides:O==null?void 0:O.buttonOverrides},Jt)};
GWX=function(W,O,b,T){if(W)return T=T||W.likeStatus,O?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:T==="LIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:b},defaultText:T==="LIKE"?W.likeCountWithUnlikeText:W.likeCountText,toggledText:T==="LIKE"?W.likeCountText:W.likeCountWithLikeText,defaultNavigationEndpoint:nf1(W,"LIKE"),defaultServiceEndpoint:fV8(W,"LIKE"),toggledServiceEndpoint:fV8(W,"INDIFFERENT"),defaultTooltip:_.NX(W.likeCountTooltipText),toggledTooltip:_.NX(W.likeCountTooltipText),
targetId:W.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:T==="DISLIKE",isDisabled:!W.likesAllowed,defaultIcon:{iconType:b},defaultText:T==="DISLIKE"?W.dislikeCountWithUndislikeText:W.dislikeCountText,toggledText:T==="DISLIKE"?W.dislikeCountText:W.dislikeCountWithDislikeText,defaultNavigationEndpoint:nf1(W,"DISLIKE"),defaultServiceEndpoint:fV8(W,"DISLIKE"),toggledServiceEndpoint:fV8(W,"INDIFFERENT"),defaultTooltip:_.NX(W.dislikeCountTooltipText),
toggledTooltip:_.NX(W.dislikeCountTooltipText)}};
nf1=function(W,O){if(O==="LIKE")return W.likeCommand;if(O==="DISLIKE")return W.dislikeNavigationEndpoint};
fV8=function(W,O){var b;return(b=W.serviceEndpoints)==null?void 0:b.find(function(T){var L;return((L=_.P(T,_.tT))==null?void 0:L.status)===O})};
Hx8=function(W,O){O=O===void 0?{}:O;if(W){var b=!!O.activeState,T=O.iconSize,L=O.className,h=O["aria-hidden$"],Z=O["aria-label$"],a=O.role;O=O.style$+";width: "+((O.width||T)+"px;height: ")+((O.height||T)+"px;color: ")+(O.color+";");W={icon:W};b!==void 0&&(W.active=b);T!==void 0&&(W.size=T);O!==void 0&&(W.style=O);L!==void 0&&(W.className=L);h!==void 0&&(W.ariaHidden=h);Z!==void 0&&(W.ariaLabel=Z);a!==void 0&&(W.role=a);QE("yt-icon",W,Jt)}};
_.V21=function(W,O,b){return window.spf&&!_.e("web_disable_spfjs_client")?t2O(W,O,b):$O2(W,O)};
t2O=function(W,O,b){var T=null,L=(new _.mJ(function(h,Z){var a={};if(O){a.method=O.method;var m=O.postParams||{};fFP(W,O)&&(m[_.Cv("XSRF_FIELD_NAME")]=_.Cv("XSRF_TOKEN"));a.postData=_.ET(m);O.type&&(a.type=O.type);m=O.headers}a.headers=DyX(W,m);_.e("debug_forward_web_query_parameters")&&(W=_.q0X(W,window.location.search));a.experimental_headers=a.headers;a.onError=function(w){w.err&&w.xhr&&(w.err.params={url:w.xhr.responseURL,response:w.xhr.responseText.substr(0,64)});Z(w.err)};
a.onPartDone=function(w){b&&b.call(null,w.part)};
a.onDone=function(w){var A=NRi(w.response,"xsrf_token");Fk(window.location.href,W)&&A&&_.zT("XSRF_TOKEN",A);if(A=NRi(w.response,"service_worker_killswitch"))_.zT("SERVICE_WORKER_KILLSWITCH",A),XwQ();h(w.response)};
T=spf.request(W,a)})).then(M2X);
L.thenCatch(function(h){var Z=h instanceof _.$N,a=h&&h.hasOwnProperty("params")&&h.params.response?h.params.response:"";h instanceof Error&&(a?Z?Kwe(h):a===')]}\'\n{"reload":"now"}'?Kwe(h):(umE(h,W,a),JOe(h,a)?_.z5(h):_.Dt(h)):Kwe(h));T&&T.abort()});
return L};
M2X=function(W){if(W.type==="multipart"){var O=W.timing;W=W.parts.reduce(function(b,T){Object.assign(b,T);return b},{});
W.timing=W.timing||{};Object.assign(W.timing,O);W.type="reduced"}return W};
$O2=function(W,O){O=O===void 0?{}:O;var b=null,T=new _.mJ(function(L,h){O.onFinish=function(Z){if(Z.readyState===XMLHttpRequest.DONE)if(Z.status===200){if(Z.responseType!=="json"){var a=Z.response;a.substring(0,5)===")]}'\n"&&(a=a.substring(5));try{var m=JSON.parse(a)}catch(w){m=w}}else m=Z.response;m instanceof Error?h(m):(a=NRi(m,"xsrf_token"),Fk(window.location.href,W)&&a&&_.zT("XSRF_TOKEN",a),Z=Z.responseURL,window.performance&&window.performance.getEntriesByName?(a=window.performance.getEntriesByName(Z).pop())?
Z={responseStart:(0,_.WO)()-(a.responseEnd-a.responseStart)}:(Math.random()<.01&&(a=Error("ai"),a.params=Z,_.z5(a)),Z={responseStart:-1}):Z={responseStart:0},m.timing=m.timing||{},Object.assign(m.timing,Z),L(m))}else h(Error("$h`"+Z.status))};
(b=_.Yv(W,O))||h(Error("$h`"+b.status))});
T.thenCatch(function(L){L instanceof Error&&(umE(L,W),JOe(L)&&(L.level="WARNING"))});
_.e("cancel_pending_navs")&&T.thenCatch(function(){b.abort()});
return T};
NRi=function(W,O){var b=W[O],T=W.parts;W.type==="multipart"&&T&&(b=(W=T.find(function(L){return O in L}))&&W[O]);
return b};
umE=function(W,O,b){var T=W.message||"";O={original:T,url:O};if(b)if(T=T.match(/position:?\s*(\d+)/)){T=T&&Number(T[1])?Number(T[1]):0;var L=Math.max(T-25,0);O.position=T;O.response=b.substring(L,T+25)}else O.response=b.substring(0,50);_.CB(W,O);try{W.message="JSON parse error"}catch(h){}};
JOe=function(W,O){W=W.message||"";W=!!(W.indexOf("<")>=0||W.indexOf("end of ")>=0||W.indexOf("Unterminated string")>=0||W.indexOf("Unexpected EOF"));if(!W&&O)for(var b=O.length,T=!1,L=0;L<b;L++)if(T&&O[L]==="\\")L++;else if(O[L]==='"')T=!T;else if(O[L]==="<"&&!T){W=!0;break}return W};
cOe=function(){return document.documentElement.hasAttribute("dark")};
_.Fkh=function(W,O){if(W!=="GFEEDBACK"&&W!=="GUIDED_HELP")_.nv(Error("bi`"+W));else{var b=_.iq().resolve(_.OT(_.cs));if(b&&(b=b.getCurrentPage())&&b.getServiceTrackingParams&&(b=b.getServiceTrackingParams()))for(var T=0,L;L=b[T++];)if(L.service===W){if(W=L.params)for(b=0;T=W[b++];)O[T.key]=T.value;break}}};
_.yO2=function(W){var O=_.ya();O&&(O=O.getPlayer())&&(O.pauseVideo(),W.playback_id=O.getVideoData().cpn,W.eid=O.getVideoData().eventId,Object.assign(W,O.getFeedbackProductData()))};
WdX=function(){var W={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Cv("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(W.enableAnonymousFeedback=!0);_.Cv("SESSION_INDEX")&&(W.authuser=String(_.Cv("SESSION_INDEX")));_.e("enable_pageid_for_feedback")&&_.Cv("DELEGATED_SESSION_ID")&&(W.pageId=String(_.Cv("DELEGATED_SESSION_ID")));return W};
_.VI=function(W){_.e("enable_ypc_spinners")&&_.jx(W,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},W])};
_.Ns=function(W){_.e("enable_ypc_spinners")&&_.jx(W,"yt-close-popup-action",["yt-loading-renderer"])};
OjX=function(W){return new Promise(function(O,b){_.zH({verifyCommand:{recaptchaToken:W.recaptchaResponse}},{commandController:{onSuccess:function(T,L){L||b("ChallengeService did not return a response.");var h;O({challengeCompleted:(h=L.verified)!=null?h:!1})},
onServerError:function(T,L){b(L)}}})})};
ijq=function(W,O,b,T){O({recaptchaResponse:T}).then(function(L){L.challengeCompleted?_.lq()?(b(3),_.iq().resolve(_.bq).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:W}})):b(2):b(4)},function(){b(4)})};
bj8=function(W,O,b){_.qp("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Cv("HL"),function(){var T;(T=window.grecaptcha)==null||T.ready(function(){var L=window.grecaptcha;L?(b(L.render(W,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:ijq.bind(null,W,OjX,O)})),O(1)):O(4)})})};
jEE=function(W,O){return function(){switch(O()){case 0:return W().captchaLoadingMessage;case 1:return W().challengeReason;case 3:return W().captchaSuccessfulMessage;case 2:return W().captchaCookieSetFailureMessage;case 4:return W().captchaFailedMessage;default:return W().challengeReason}}()};
_.Ms=function(){if(!TF8){var W=document.querySelector("#player.skeleton");W&&(_.Xu(W),TF8=!0)}};
_.dKX=function(){return Ld1=Uhh()};
ZjO=function(){return _.I(function(W){return hC1!==void 0?W.return():_.Y(W,SJ2(),0)})};
SJ2=function(){return _.I(function(W){if(W.nextAddress==1)return _.Y(W,eIE(),2);Ld1=W.yieldResult;hC1=_.sF.addLowPriorityJob(SJ2,5E3);_.aD(W)})};
wo8=function(W){var O=O===void 0?IYX:O;var b,T,L=(b=W.responseContext)==null?void 0:(T=b.mainAppWebResponseContext)==null?void 0:T.trackingParam;if(!L){O.increment("MISSING");var h,Z,a,m,w,A;_.z5(new _.pu("282054944_a",{zBb:!!((h=W.responseContext)==null?0:(Z=h.mainAppWebResponseContext)==null?0:Z.loggedOut),lWb:((a=W.responseContext)==null?void 0:a.mainAppWebResponseContext)===void 0,jSr:W.responseContext===void 0,qmD:(m=W.playabilityStatus)==null?void 0:m.contextParams,ie5:(((w=W.streamingData)==
null?void 0:w.formats)||[]).length>0,dLg:(((A=W.streamingData)==null?void 0:A.adaptiveFormats)||[]).length>0,os:!!W.offlineState,cotn:W.cotn}));return 2}b="";try{b=aY1(L)}catch(p){return O.increment("C_ERROR"),_.Dt(p),2}try{var X=_.mK8(b);var l=YJX(X)}catch(p){return O.increment("P_ERROR"),_.Dt(p),2}l=_.yr(l,ErX,1,_.W5());L=[];l=_.S(l);for(X=l.next();!X.done;X=l.next())T=X.value,X=T.getPath(),b=(0,_.PQ.getValueByKeys)(W,X.split(".")),b=String(b===void 0||b===null?"":b),T=T.getValue()||"",h=/[+\-\/_]/g,
b.replace(h,"")!==T.replace(h,"")&&(O.increment("MISMATCH"),_.e("ab_mis_log_err")&&(b=new _.pu("282054944_p",{etV:X,g:String(b),e:String(T)}),_.Dt(b)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(X)||(X.match(/enforcementMessageViewModel/i)?L.push(3):L.push(2)));if(L.length>0)return Math.max.apply(Math,_.PG(L));O.increment("SUCCESS");return 1};
UK1=function(W){var O=new u3;if(W.interpreterJavascript){var b=_.AHX(W.interpreterJavascript);b=qI(b).toString();var T=new AF2;_.aG(T,6,b);_.jL(O,1,T,Vq)}else W.interpreterUrl&&(b=_.BO(W.interpreterUrl),b=_.Zd(b).toString(),T=new _.XoX,_.aG(T,4,b),_.jL(O,2,T,Vq));W.interpreterHash&&_.JT(O,3,W.interpreterHash,Vq);W.program&&_.JT(O,4,W.program,Vq);W.globalName&&_.JT(O,5,W.globalName,Vq);W.clientExperimentsStateBlob&&_.JT(O,7,W.clientExperimentsStateBlob,Vq);return O};
ct=function(W){var O={};W=_.S(W.split("&"));for(var b=W.next();!b.done;b=W.next())b=b.value.split("="),b.length===2&&(O[b[0]]=b[1]);return O};
lYO=function(W){return Number(W.t)||7200};
o6e=function(){if(_.e("bg_st_hr"))return"havuokmhhs-0";var W,O=((W=performance)==null?void 0:W.timeOrigin)||0;return"havuokmhhs-"+Math.floor(O)};
eCQ=function(){return new Promise(function(W){var O=window.top;O.ntpevasrs!==void 0?W(new FN(O.ntpevasrs)):(O.ntpqfbel===void 0&&(O.ntpqfbel=[]),O.ntpqfbel.push(function(b){W(new FN(b))}))})};
Puq=function(W){var O=W.fGZ.bind(W);_.c3("yt.aba.att",O);W=W.mLt.bind(W);_.c3("yt.aba.att2",W)};
RCQ=function(W){switch(_.mp(W.input)){case _.JH(poP):var O={};return O.encryptedVideoId=W.innerTubeRequest.externalVideoId,O}return{}};
vrX=function(W){switch(_.mp(W.input)){case _.JH(poP):if(_.e("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.JH(yI):if(_.e("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&W.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.JH(KdT):var O,b;if(_.e("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((b=_.P((O=W.config)==null?void 0:O.command,
wu1))==null?0:b.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.or8=function(W){var O;if(W.playlistVideoRenderer&&((O=W.playlistVideoRenderer)==null?0:O.engagementBar))return grq(W.playlistVideoRenderer.engagementBar);if(_.P(W,WR)){var b;if(W=(b=_.P(W,WR))==null?void 0:b.engagementBar)return grq(W)}return""};
grq=function(W){if(!W)return"";W=_.P(W,_.QEe);if(W==null||!W.actions)return"";W=_.S(W.actions);for(W=W.next();!W.done;W=W.next()){W=_.P(W.value,_.kaX);var O=void 0;if((O=W)==null||!O.itemId)break;return W.itemId}return""};
_.sE2=function(W){var O;if(W.playlistVideoRenderer&&((O=W.playlistVideoRenderer)==null?0:O.videoId))return W.playlistVideoRenderer.videoId;if(_.P(W,WR)){var b,T;if(W=(b=_.P(W,WR))==null?void 0:(T=b.playlistItemData)==null?void 0:T.videoId)return W}return""};
_.BFE=function(W){var O;if(W.playlistVideoRenderer&&((O=W.playlistVideoRenderer)==null?0:O.voteCount))return W.playlistVideoRenderer.voteCount;if(_.P(W,WR)){var b,T;if(W=(b=_.P(W,WR))==null?void 0:(T=b.playlistItemData)==null?void 0:T.voteCount)return W}return 0};
_.OQ=function(W,O){return _.IJ(W.entities,"flowStateEntity",O)};
DKh=function(W,O,b,T){var L=void 0;W=_.S(W[O.iconName]||[]);for(var h=W.next();!h.done;h=W.next()){h=h.value;var Z=O.iconSize;var a=O.iconStyle;Z=!Z||Z===h[2];var m=rFE[h[0]];T&&T!==h[1]||!Z||a&&a!==m?a=!1:L?(a=rFE[h[0]],a=!!O.iconStyle||a==="youtube_outline",Z=L.version<=h[1],a=(!!O.iconSize||h[2]===24)&&a&&Z):a=!0;a&&(L={name:O.iconName,style:rFE[h[0]],size:h[2],version:h[1],allowMirroring:!!h[3],url:b(O.iconName,h)})}return L};
xKi=function(W,O,b,T){return W+(""+rFE[b[0]]+((T===void 0?0:T)?"_experimental":"")+"/"+O+"/v"+b[1]+"/")+(b[2]+"px.svg")};
iU=function(W){return _.e("web_bookmark_playlist_save_icon")?"bookmark":W};
zCe=function(W,O){return xKi("https://fonts.gstatic.com/s/i/",W,O)};
Cue=function(W,O){return xKi("https://fonts.gstatic.com/s/i/",W,O,!0)};
qJT=function(W,O){return xKi("https://www.gstatic.com/youtube/img/icons/web/",W,O)};
nrq=function(W){var O=W.enabled;var b=W.itemPlaybackModel;var T=W.thumbnailElRef;var L=W.containerElRef;var h=W.options;var Z;_.kb(function(){var a=L==null?void 0:L.value;var m,w=(m=T())==null?void 0:m.value;m=b();var A=h();if(O&&m&&a&&w&&(A==null?0:A.thumbnail)){var X,l;a={mediaRenderer:{data:m,hostElement:a},lockupElement:a,thumbnailElement:w,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.xy((X=m.inlinePlayerData)==null?void 0:X.onVisible),navigationEndpoint:_.xy((l=m.inlinePlayerData)==
null?void 0:l.onSelect),thumbnail:A.thumbnail,thumbnailOverlays:A.thumbnailOverlays||[],accessibilityText:A.accessibilityText||""},thumbnailSize:A.thumbnailSize,enableRounding:A.enableRounding}}}else a=void 0;if(X=a){var p;(p=Z)==null||b3(p);Z=tI(X)}});
_.so(function(){var a;(a=Z)==null||b3(a)})};
fYO=function(W){W=atob(W);for(var O=[],b=0;b<W.length;b++)O.push(W.charCodeAt(b));return new Blob([new Uint8Array(O)],{type:"image/png"})};
HjX=function(W,O,b,T){T=T===void 0?"INSERTION_POSITION_UNSPECIFIED":T;return W({targetId:O},function(L){var h,Z=(h=L.contents)!=null?h:[];h=b!=null?b:[];var a=GaQ(Z);switch(T){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},L,{contents:[].concat(_.PG(Z.slice(0,a)),_.PG(h),_.PG(Z.slice(a+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},L,{contents:[].concat(_.PG(h),_.PG(Z))});case "INSERTION_POSITION_LAST":return Object.assign({},L,{contents:[].concat(_.PG(Z),_.PG(h))});
default:return L}})};
$KT=function(W,O,b,T,L){L=L===void 0?"RELATIVE_INSERTION_POSITION_AFTER":L;return W({targetId:O},function(h){var Z,a=(Z=h.contents)!=null?Z:[];Z=t$X(a,b);if(Z<0)return h;Z=L==="RELATIVE_INSERTION_POSITION_BEFORE"?Z:Z+1;return Object.assign({},h,{contents:[].concat(_.PG(a.slice(0,Z)),_.PG(T),_.PG(a.slice(Z)))})})};
GaQ=function(W){var O=W.findIndex(function(b){return _.P(b,_.bU)});
return O>=0?O:W.length};
t$X=function(W,O){return W.findIndex(function(b){a:{b=_.S(Object.values(b));for(var T=b.next();!T.done;T=b.next())if((T=T.value)&&T.targetId){b=T.targetId;break a}b=""}return b===O})};
NFQ=function(W,O,b){return W({targetId:O},function(T){var L,h=(L=T.contents)!=null?L:[];return Object.assign({},T,{contents:V$h(h,b)})})};
V$h=function(W,O){return W.filter(function(b){var T=O.includes;a:{b=_.S(Object.values(b));for(var L=b.next();!L.done;L=b.next())if((L=L.value)&&L.targetId){b=L.targetId;break a}b=""}return!T.call(O,b||"")})};
_.M$2=function(W,O){return{engagementPanelSectionListRenderer:{panelIdentifier:W,identifier:O,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
uz1=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
JF2=function(W){var O=uz1(W);if(O==null?0:O.length)return O;W.loadModule("captions");return uz1(W)};
cF2=function(W,O,b){if(W.getVideoData){var T,L=(T=JF2(W))==null?void 0:T.find(function(h){return h.languageCode===b});
T=_.Z5("/youtube/app/player_caption_language_entity_key","stringEntity",2);O.dispatch(_.AI("stringEntity",T,{key:T,value:(L==null?void 0:L.displayName)||""}));L?W.setOption("captions","track",L):(W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{}))}};
Fd2=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
yF2=function(W){return W.getOption("captions","tracklist",{includeAsr:!0})};
W0i=function(W){var O=yF2(W);if(O==null?0:O.length)return O;W.loadModule("captions");return yF2(W)};
OTX=function(W){var O=W.getOption("captions","track");if(O)return O;W.loadModule("captions");return W.getOption("captions","track")};
iT1=function(W){var O=W0i(W);if(O!=null&&O.length){var b=OTX(W);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.EO("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(b==null?0:b.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.PG(O.map(function(T){return{listItemViewModel:{title:{content:T.displayName},
isSelected:T.languageCode===(b==null?void 0:b.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:T.languageCode}}]}}}}}}}})))}}}}}}}}};
L0X=function(W){return new Promise(function(O,b){if(W===void 0)_.Dt(Error("Ci"),"ERROR"),b(Error("Ci"));else{b=new _.bTe;var T=_.jkO();b=b.init();var L=_.T$X(_.Cv("YPC_MB_URL"),!0);Promise.all([b,L]).then(function(){var h=payments.business.integration.ClientTokenFactory.createClientToken(W,T);O(h)})}})};
Su1=function(W,O,b,T,L,h,Z){var a=_.$S();b=b.replace(/-/g,"+").replace(/_/g,"/");var m=_.Xt().get("hl"),w=_.j6(_.VB),A=O==null?void 0:O.element;A&&_.VI(A);dHh(O,!0);_.hZ8(w,b,a.resolve,function(){A&&_.Ns(A)},function(X){A&&_.Ns(A);
a.reject(X)},m,T?function(X){T&&_.tP(W,T,{backend_analytics:X})}:void 0,a.resolve,L,h,Z);
return a.promise};
dHh=function(W,O){!(W=W==null?void 0:W.element)||W.tagName!=="YT-BUTTON-RENDERER"&&W.tagName!=="YTD-BUTTON-RENDERER"||(W.disabled=O)};
ZTQ=function(){var W=_.EO("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.iv(W),actionButton:{buttonRenderer:ku1()}}},popupType:"TOAST"}};
I4X=function(){var W=_.EO("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.iv(W),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
a4h=function(W){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:W}]}}};
TN=function(W,O,b,T){var L;return _.I(function(h){if(h.nextAddress==1)return _.LI(h,2),_.Y(h,W,4);if(h.nextAddress!=2)return(L=_.PS(O.getState().entities).length>0)?h.return({title:_.iv(_.EO("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.iv(_.EO("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QpQ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
h.return(spQ(b,T));_.ID(h);return h.return(spQ(b,T))})};
mHi=function(W,O){return O?O==="PPSV"||kie(W,O):!1};
YuO=function(W){W.responseContext||(W.responseContext={});W.responseContext.maxAgeSeconds=0;return W};
dY=function(W){var O;return _.I(function(b){return b.nextAddress==1?_.Y(b,Ej2(W,"service:topbar:fallback"),2):(O=b.yieldResult)&&_.LD(O)?b.return(YuO(_.LD(O))):b.return()})};
wnT=function(W){var O;return _.I(function(b){return b.nextAddress==1?_.Y(b,Ej2(W,"service:downloads_settings:fallback"),2):(O=b.yieldResult)&&_.LD(O)?b.return(O):b.return()})};
Ej2=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return W?_.Y(T,W.get(O),2):T.return();b=T.yieldResult;return!b||!_.LD(b)||!isNaN(Number(b.data.expireTimestampMs))&&b.isExpired()?T.return():T.return(b)})};
AaT=function(W){var O=_.iq().resolve(hs).getState().entities;return W.playlistId?mHi(O,W.playlistId):!1};
Xnq=function(W,O){var b;if(O==null?0:(b=O.requestTemplate)==null?0:b.panelId)W.panelId=O.requestTemplate.panelId;var T;if(O==null?0:(T=O.requestTemplate)==null?0:T.params)W.params=O.requestTemplate.params};
l4h=function(){if(UH8)return UH8();var W=!_.e("idb_response_store_auth_killswitch"),O={};UH8=yY("yt-it-response-store",{objectStores:(O.ResponseStore={addedAtVersion:1},O),shared:!W,upgrade:function(b,T){T(1)&&(b=q8(b,"ResponseStore",{keyPath:["key","clientName"]}),n9(b,"byExpiration","expireTimestampMs"),n9(b,"byInterface","clientName"))},
version:1});return UH8()};
eZE=function(W){return _.$v(l4h(),W)};
pn1=function(W,O){var b;return _.I(function(T){return T.nextAddress==1?_.Y(T,_.Fq(),2):(b=T.yieldResult)?T.return(new PzX(W,O,b)):T.return()})};
RZO=function(W){var O=Object.keys(W)[0];if(O)return W.screenExit&&(O=O+";"+W.screenExit.screen),O};
K08=function(W){var O=new Map;W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,b!=null&&(O.has(b.taskType)||O.set(b.taskType,[]),O.get(b.taskType).push(b));return O};
vje=function(W){return!isNaN(W)&&W>0};
gji=function(W){W=[].concat(_.PG(W)).sort(function(b,T){return b-T});
var O=Math.floor(W.length/2);return W.length%2?W[O]:(W[O-1]+W[O])/2};
kA8=function(W,O){W=W===void 0?ZbO:W;O=O===void 0?{}:O;_.c3("yt.logging.errors.log",_.Dt);hbh();oje(EyT(),O);window.onerror=W;QkX=Sz8;window.addEventListener("unhandledrejection",function(b){if(b.reason instanceof Error){var T=b.reason;_.CB(T,{source:"unhandledrejection"});T.name==="AbortError"&&(T.level="WARNING")}Sz8(b.reason);b.preventDefault()})};
_.ske=function(W){return W.a11y.ephemeralAction||null};
_.B$1=function(W){var O,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE,Qh,KE,fE,r8,nE,tX,yh,Gw,KH,h9,I7,T1,Y$,aR,f0,SQ;return _.I(function(R7){if(R7.nextAddress==1)return _.Y(R7,_.AH(W,{mode:"readonly",enableRetries:!0},function(zw){return XW(zw,"playbackData").then(function(G1){var k$=G1.map(function(u1){return u1.transfer}).filter(function(u1){return!!u1}),Nz=G1.map(function(u1){return u1.offlineVideoPolicy}).filter(function(u1){return!!u1}),NE=G1.filter(function(u1){return!!u1.key}).map(function(u1){return _.Z5(_.dm(u1.key).entityId,
"downloadStatusEntity")});
k$=XW(zw,"transfer",k$);Nz=XW(zw,"offlineVideoPolicy",Nz);NE=XW(zw,"downloadStatusEntity",NE);var XU=k$.then(function(u1){u1=u1.reduce(function(pH,IN){(IN==null?0:IN.offlineVideoStreams)&&pH.push.apply(pH,_.PG(IN.offlineVideoStreams));return pH},[]).filter(function(pH){return!!pH});
return XW(zw,"offlineVideoStreams",u1)});
return qm.all([k$,Nz,XU,NE]).then(function(u1){var pH=_.S(u1);u1=pH.next().value;var IN=pH.next().value;var vN=pH.next().value;pH=pH.next().value;return[G1,u1,IN,vN,pH]})})}),2);
if(R7.nextAddress!=3)return O=R7.yieldResult,_.Y(R7,_.AH(W,{mode:"readonly",enableRetries:!0},function(zw){return XW(zw,"mainDownloadsListEntity").then(function(G1){var k$,Nz;return(Nz=(k$=G1[0])==null?void 0:k$.downloads)!=null?Nz:[]})}),3);
b=R7.yieldResult;T=_.S(O);L=T.next().value;h=T.next().value;Z=T.next().value;a=T.next().value;m=T.next().value;w=L;A=h;X=Z;l=a;p=m;K={};k={};r={};q={};f={};M=[];V=_.S(A);for(jQ=V.next();!jQ.done;jQ=V.next())(y=jQ.value)&&(K[y.key]=y);d8=_.S(X);for(pE=d8.next();!pE.done;pE=d8.next())(Qh=pE.value)&&(k[Qh.key]=Qh);KE=_.S(p);for(fE=KE.next();!fE.done;fE=KE.next())(r8=fE.value)&&(r[r8.key]=r8);nE=_.S(l);for(tX=nE.next();!tX.done;tX=nE.next())(yh=tX.value)&&(q[yh.key]=yh);Gw=_.S(b);for(KH=Gw.next();!KH.done;KH=
Gw.next())h9=KH.value,I7=void 0,f[(I7=h9.videoItem)!=null?I7:""]=!0,h9.videoItem&&(Y$=T1=void 0,aR=(Y$=(T1=_.dm(h9.videoItem))==null?void 0:T1.entityId)!=null?Y$:"",M.push({externalVideoId:aR}));f0=w.filter(function(zw){if(!zw||!zw.key||!zw.offlineVideoPolicy)return!1;zw=_.dm(zw.key).entityId;zw=_.Z5(zw,"downloadStatusEntity");var G1;return!(zw&&((G1=r[zw])==null?void 0:G1.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
SQ=f0.map(function(zw){var G1=K[zw.transfer],k$=[];if(G1==null?0:G1.offlineVideoStreams)for(var Nz=_.S(G1.offlineVideoStreams),NE=Nz.next();!NE.done;NE=Nz.next())(NE=q[NE.value])&&k$.push(NE);Nz=k[zw.offlineVideoPolicy];NE=f;var XU=zw==null?void 0:zw.playerResponseTimestamp,u1=_.dm(Nz.key).entityId;zw=_.Z5(u1,"mainVideoEntity");if(Nz.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var pH="OFFLINE_VIDEO_STATE_DISABLED";Nz.expirationTimestamp&&Number(Nz.expirationTimestamp)<Date.now()/1E3&&(pH="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Nz.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")pH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(G1==null?void 0:G1.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":pH="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":pH="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":pH="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":pH="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":pH="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":pH="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:pH="OFFLINE_VIDEO_STATE_UNKNOWN"}if(pH==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(G1==null?void 0:G1.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":pH="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":pH="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":pH=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}u1={id:u1,videoState:pH};if(G1==null?0:G1.cotn)u1.cotn=G1.cotn;if(G1==null?0:G1.maximumDownloadQuality)u1.selectedVideoQuality=G1==null?void 0:G1.maximumDownloadQuality;if(G1==null?0:G1.lastProgressTimeMs)u1.lastProgressTimeMs=G1.lastProgressTimeMs;XU&&(u1.playerResponseSavedTimeMs=String(Number(XU)*1E3));G1=String;XU=0;k$=_.S(k$);for(pH=k$.next();!pH.done;pH=k$.next())if(pH=pH.value,pH.streamsProgress){pH=_.S(pH.streamsProgress);for(var IN=pH.next();!IN.done;IN=
pH.next()){var vN=void 0;XU+=Number((vN=IN.value.numBytesDownloaded)!=null?vN:0)}}u1.downloadedBytes=G1(XU);u1.selectedOfflineMode=NE[zw]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Nz.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(u1.offlinePlaybackDisabledReason=Nz.offlinePlaybackDisabledReason);return u1});
return R7.return({offlineVideos:SQ,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:M}}})})};
raQ=function(){var W;return _.I(function(O){return O.nextAddress==1?_.Y(O,_.Y9(),2):(W=O.yieldResult)?O.return(_.B$1(W)):O.return({state:"PES Unavailable"})})};
zZh=function(){var W,O,b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,_.Y9(),2);if(L.nextAddress!=3)return(W=L.yieldResult)?_.Y(L,DHE(W),3):L.return({state:"PES Unavailable"});O=L.yieldResult;b={};T=O.reduce(function(h,Z){h[Z.key]=Z;return h},b);
return L.return(xH8(T))})};
xH8=function(W){for(var O={},b=[],T=_.S(Object.keys(W)),L=T.next();!L.done;L=T.next()){var h=L.value;L=W[h];var Z=void 0;if(((Z=L)==null?void 0:Z.entityType)==="mainVideoEntity"){delete W[h];var a=L.data;L={};if(a){var m=void 0;Z=(m=a.videoId)!=null?m:"vid-"+h;h=W;L.video=a;delete L.video.formattedDescription;delete L.video.thumbnail;a.owner&&(m=h[a.owner],m==null?0:m.data)&&(delete h[m.key],L.video.owner=m.data,delete L.video.owner.avatar);if(a=a.downloadState)if(m=h[a],m==null?0:m.data)if(delete h[a],
a=m.data.playbackData)if(m=h[a],m!=null&&m.data){delete h[a];a=m.data;delete a.playerResponseJson;L.playbackData=a;if(a.transfer&&(m=h[a.transfer],m==null?0:m.data)){delete h[m.key];var w=m.data;L.transfer=w;m=[];w=_.S(w.offlineVideoStreams||[]);for(var A=w.next();!A.done;A=w.next())if(A=h[A.value])delete h[A.key],m.push(A.data);m&&(L.streams=m)}(a=a.offlineVideoPolicy)&&(a=h[a])&&a.data&&(delete h[a.key],L.offlineVideoPolicy=a.data)}O[Z]=L}}else L&&L.entityType==="offlineOrchestrationActionWrapperEntity"&&
L.data&&(delete W[L.key],Z=L.data,h=void 0,b.push({id:Z.rootActionId,type:((h=Z.actionProto)==null?void 0:h.actionType)||"",entity:L}))}O.wrapperEntities=b;Object.keys(W).length>0&&(O.unknownKeys=W);return O};
Cz2=function(){var W,O,b,T,L,h,Z,a,m;return _.I(function(w){if(w.nextAddress==1)return W=!!(new _.z7("")).expiringStorage_,T=!!((O=_.i1.crypto)==null?0:(b=O.subtle)==null?0:b.importKey),L=!!_.i1.BroadcastChannel,h=!!_.i1.navigator.locks,_.Y(w,fuT(),2);Z=w.yieldResult;a=W&&T&&L&&h&&Z;m={isSupported:a};if(a)return w.return(m);m.missingBrowserFeatures=[];Z||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");W||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
T||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");L||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");h||m.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return w.return(m)})};
quh=function(){var W;return!((W=S6?S6:null)==null||!W.window)};
_.f4T=function(W){if(_.se()&&_.IiX("Chromium")>=120){var O=_.nji().mediaSession;try{O.setActionHandler("enterpictureinpicture",function(){W()})}catch(b){}}};
GAX=function(W){for(var O=[],b=_.S(document.styleSheets),T=b.next(),L={};!T.done;L={node$jscomp$724:void 0},T=b.next())L.node$jscomp$724=T.value.ownerNode,L.node$jscomp$724&&(L.node$jscomp$724 instanceof HTMLStyleElement||L.node$jscomp$724 instanceof HTMLLinkElement)&&O.push(new Promise(function(h){return function(Z){var a=h.node$jscomp$724.cloneNode(!0);a.onload=function(){Z()};
a.onerror=function(){_.z5(Error("ej"));Z()};
W.document.head.appendChild(a)}}(L)));
return Promise.all(O)};
F08=function(W){var O=[_.cG(HT2),_.cG(tiX),_.cG($HE)];ViX(window.document.documentElement,W.document.documentElement,[_.cG(N$e),_.cG(MiP),_.cG(ubX),_.cG(JaX),_.cG(caE)]);ViX(window.document.body,W.document.body,O)};
ViX=function(W,O,b){W=_.S(W.attributes);for(var T=W.next();!T.done;T=W.next())if(T=T.value)try{_.HD(b,O,T.name,T.value)}catch(L){}};
Wt8=function(W,O){W=new _.ZL(W.document.documentElement);W.start(yah,O);return W};
OaE=function(W){var O=W.document.documentElement;O.addEventListener("click",function(b){gZ8(O,b)});
O.addEventListener("touchstart",function(b){BHO(b)});
O.addEventListener("mousedown",function(b){BHO(b)})};
baX=function(W,O,b,T){T=T===void 0?!1:T;O=new ia8(O||W,b||W);return{x:W.x+((T===void 0?0:T)?O.lengthX*-1:O.lengthX)*.2,y:W.y+((T===void 0?0:T)?O.lengthY*-1:O.lengthY)*.2}};
jS2=function(W){if(!W)return!1;var O=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",b,T,L,h=(L=(b=W.errorScreen)==null?void 0:b.playerLegacyDesktopYpcTrailerRenderer)!=null?L:(T=W.errorScreen)==null?void 0:T.ypcTrailerRenderer;return!!O||!!h};
_.Tre=function(W,O){if(!W)return!1;var b,T=(b=W.errorScreen)==null?void 0:b.playerLegacyDesktopYpcOfferRenderer,L;O=!!(O==null?0:(L=O.playerOverlayRenderer)==null?0:L.gatedActionsOverlayRenderer);return!!jS2(W)||!!T||!!O};
hxe=function(W){return Lte(W,0,"gclid",W.search(dti))>=0||Lte(W,0,"gad_source",W.search(dti))>=0};
I0Q=function(W){var O=[],b=0;return{push:function(T){O[b]=T;b=(b+1)%W},
iterate:function(){return function L(){var h,Z,a,m;return _.SHP(L,function(w){switch(w.nextAddress){case 1:_.SP(w,2),h=O.length,Z=0;case 4:if(!(Z<h)){w.jumpTo(2);break}a=b+Z;m=_.Za8;return _.Y(w,O[a%h],7);case 7:m(w.yieldResult);Z++;w.jumpTo(4);break;case 2:_.hx(w),_.Zh(w,0)}})}()}}};
mt1=function(){var W=_.Lu("web_max_tracing_events",0);_.e("web_enable_tracing")&&W>0&&a0e(W)};
a0e=function(W){var O=I0Q(W);Bq8({sample:function(b,T){return b==="event"?!YHP.has(T==null?void 0:T.type):!1},
spanProcessors:[{onSpanStart:function(b){O.push(b)}}]});
l6q.subscribe("handleError",function(b){try{Object.assign(b.params,{breadcrumbs:JSON.stringify(Array.from(O.iterate()))})}catch(T){_.Dt(T,"ERROR")}})};
EnT=function(W){return new Promise(function(O){window.setTimeout(O,W)})};
wIi=function(W){var O={bicf:function(h){W.l7v=h},
blc:function(){return W.getLatestChallengeResponse()},
bcr:function(h){W.uhS.push(h)}},b=window.top;
b.ntpevasrs=O;if(b.ntpqfbel!==void 0)for(var T=_.S(b.ntpqfbel),L=T.next();!L.done;L=T.next())L=L.value,L(O);b.ntpqfbel=void 0};
AZ2=function(W){return _.I(function(O){if(O.nextAddress==1)return _.LI(O,2),_.Y(O,W.b7v(),4);if(O.nextAddress!=2)return _.H3(O,0);_.ID(O);_.aD(O)})};
XI2=function(W){var O,b;(O=W.ytcsi)==null||(b=O.tick)==null||b.call(O,"pot_ist")};
Ut8=function(W){if(W instanceof Error){var O=_.GT("yt.logging.errors.log");O&&O(W,"WARNING")}};
l0O=function(W){try{var O=JSON.parse(W);if(O.bgChallenge)return O}catch(b){}};
P51=function(){var W=window,O={networkStatusManagerPromise:_.iq().resolve(new pB1(_.Vy)),initialChallengeSli:_.e("wpo_att_sli")?new _.oH2("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};W=W===void 0?window:W;var b=W.ytAtR,T;O==null||(T=O.initialChallengeSli)==null||_.Id(T);if(b){if(b=l0O(b)){var L;O==null||(L=O.initialChallengeSli)==null||_.ad(L,"SUCCESS");ex1(b,O)}W.ytAtR=void 0}else W.ytAtRC=function(h){if(h=l0O(h)){var Z;O==null||(Z=O.initialChallengeSli)==null||
_.ad(Z,"SUCCESS");ex1(h,O);W.ytAtRC=void 0}}};
Kt1=function(){if(pIT)return pIT;try{var W=_.AV("IFRAME");_.k4(W,_.yN(Rxh));W.sandbox.add("allow-same-origin");W.style.display="none";document.body.appendChild(W);return pIT=W}catch(O){W=new _.pu("Failed to create sandbox iframe"),_.Dt(W)}};
vn8=function(W){var O,b;return(b=W==null?void 0:(O=W.contentWindow)==null?void 0:O.fetch)!=null?b:window.fetch};
gn2=function(W){var O,b;return(b=W==null?void 0:(O=W.contentWindow)==null?void 0:O.JSON.parse)!=null?b:JSON.parse};
on8=function(W){var O,b;return(b=W==null?void 0:(O=W.contentWindow)==null?void 0:O.Request)!=null?b:window.Request};
sSe=function(){if(BEX()==="hidden")var W="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else BEX()==="visible"&&(W="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",QS1=null);W&&kke(W)};
kke=function(W){if(W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||W==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(BrO===W)return;BrO=W}var O=9E4+Math.random()*2E3;if(W!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.by()>O)&&BEX()==="visible"){O=-1;QS1&&(O=Math.round((0,_.WO)()-QS1));var b=String;var T=_.GT("_fact",window);T=T==null||T==-1?-1:Math.max(Date.now()-T,0);_.BZ("foregroundHeartbeat",{firstActivityMs:b(T),clientDocumentNonce:SRE,index:String(rZO),lastEventDeltaMs:String(O),trigger:W});
_.c3("_fact",-1,window);rZO++;QS1=(0,_.WO)()}};
_.Dtq=function(){try{return!!self.sessionStorage}catch(W){return!1}};
xt8=function(){var W=navigator;return new Promise(function(O,b){var T;(T=W.webkitTemporaryStorage)!=null&&T.queryUsageAndQuota?W.webkitTemporaryStorage.queryUsageAndQuota(function(L,h){O({usage:L,quota:h})},function(L){b(L)}):b(Error("nj"))})};
zxX=function(W,O){var b={errorSeverity:O.errorSeverity.toString(),wizFeatureFlags:Object.entries(O.featureFlags).join("\n")};dqE(O,b);O=O.errorSeverity;O===3?_.Dt(W,"ERROR",void 0,void 0,void 0,b):O===2&&_.Dt(W,"WARNING",void 0,void 0,void 0,b);_.e("cow_if_errors_in_popup")&&O===3&&W.message.indexOf("<If>")!==-1&&window.alert(W.message)};
C58=function(W,O,b){W.componentType!==vj&&b instanceof HTMLElement&&O&&!_.e("cow_logging_in_component_wrapper")&&EC1(b,O,!0)};
qHi=function(W,O,b){O=O===void 0?{}:O;var T,L=(T=_.P(W.commandMetadata,_.F9))==null?void 0:T.url;T=O.form||{};!b||T.element||T.skipDefaultElement||(O.form=O.form||{},O.form.element=b);if(L&&L!=="/service_ajax")return{type:0,command:W,form:O.form};if(_.e("kevlar_service_command_check")){if(_.Hs(_.iq().resolve(_.sP),W))return Object.assign({},{type:1,command:W},O)}else{var h;if((h=_.P(W.commandMetadata,_.F9))==null?0:h.apiUrl)return Object.assign({},{type:1,command:W},O)}return{type:2,command:W,form:O.form}};
nni=function(W){if(W.form){var O=W.form,b=Object.assign({},O);O=O.element;b=(delete b.element,b);if(O)return[_.da(O,[W.command,b,W.commandController])]}return[]};
f08=function(W){if(W.form){var O=W.form,b=Object.assign({},O);O=O.element;b=(delete b.element,b);O&&_.Sx(O,[W.command],O,b)}};
Ha1=function(W,O,b){var T=new GkP(W,O),L=new mN(W,O,b);W={"/youtubei/v1/browse":new Yq(W,O,b),"/youtubei/v1/player":T,"/youtubei/v1/navigation/resolve_url":new EQ,"/youtubei/v1/next":L,"/youtubei/v1/guide":new wY(b),"/youtubei/v1/search":new As(W,O,b),"/youtubei/v1/reel/reel_item_watch":new Xv(W,O,b),"/youtubei/v1/get_watch":new UQ(T,L)};W["/youtubei/v1/account/account_menu"]=new lU;W["/youtubei/v1/notification/get_notification_menu"]=new e6;return W};
pD=function(){var W=_.iq().resolve(PR);return Promise.resolve(tIE(W,_.i1.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
$t8=function(W){return W&&(W=_.Rd(_.F6O(W)))?(new URLSearchParams(W)).get("service"):null};
gY=function(W,O){_.dd(_.KD(),function(){_.Bg("adl")});
_.iq().resolve(VIh)(O);W=W.root;W.loadData&&W.loadData(O);(O==null?0:O.response)?_.ad(sKX(),"SUCCESS"):_.z5(new _.pu("Lifecycle: No response in data",_.qC("IS_SHELL_LOAD"),O?O.page:"NO_PAGE",O?O.endpoint:"NO_ENDPOINT"));W.polymerController.$["page-manager"].lazyPrepareCriticalPages((O==null?void 0:O.page)||"",O.endpoint);var b,T;((T=_.P(O==null?void 0:(b=O.endpoint)==null?void 0:b.commandMetadata,_.F9))==null?0:T.webPageType)&&_.uv().dispatch(_.vR(_.P(O.endpoint.commandMetadata,_.F9).webPageType))};
NrO=function(){var W,O;return _.I(function(b){switch(b.nextAddress){case 1:W=window;if(!W.getDataPromise){b.jumpTo(2);break}_.LI(b,3);return _.Y(b,W.getDataPromise(),5);case 5:return b.return(b.yieldResult);case 3:return _.ID(b),_.Y(b,pD(),6);case 6:return b.return(b.yieldResult);case 2:if(W.getInitialData)return O=W.getInitialData(),W.getInitialData=void 0,b.return(O);throw Error("pj`"+_.i1.location.href);}})};
uKX=function(){_.zT("CSI_SERVICE_NAME","youtube");_.k0({loadType:"cold"});_.e("kevlar_log_lcp")&&MI1(function(W){_.Bg("lcp",W.value)})};
JZ8=function(){var W=_.GP(document.location.href,"enable");W&&W.indexOf("scraper")>-1&&_.zT("ADD_SCRAPER_ATTRIBUTES",!0)};
OnE=function(W){var O=W.root;W=[cZX,FtO,_.od];_.e("web_feedback_endpoint_autolog_allowlist_killswitch")&&W.push(_.QG,yZO);WPq(function(b,T){return qHi(b,T,O)},function(b){if(!b.command)return[];
var T;((T=b.form)==null?0:T.element)?b.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},b.form,{endpoint:b.command})})):O.handleNavigate(b);return[]},W);
_.iq().addProvider({provide:_.bq,useValue:_.ax.instance})};
bnT=function(){var W={},O={},b;for(b in ine){var T=_.S(_.wu(ine[b],void 0,"NBH2te"));W[b]=T.next().value;O[b]=T.next().value}return[W,function(L){for(var h in L){var Z=void 0;(Z=O[h])==null||Z(L[h])}}]};
_.LP2=function(W,O){var b=_.PQ.getValueByKeys(W,"contents","twoColumnWatchNextResults","results","results","contents"),T=_.PQ.getValueByKeys(W,"contents","twoColumnWatchNextResults","playlist","playlist")||null,L=null,h=null;if(T)L=_.PQ.getValueByKeys(T,"titleText"),h=_.PQ.unsafeClone(_.PQ.getValueByKeys(T,"longBylineText")),b="",h&&(b=_.NX(h)),h=_.VV(b);else if(b){b=_.S(b);for(var Z=b.next();!Z.done;Z=b.next())Z=Z.value,Z.videoPrimaryInfoRenderer&&(L=_.PQ.getValueByKeys.apply(_.PQ,[Z].concat(_.PG(jwh)))),
Z.videoSecondaryInfoRenderer&&(h=_.PQ.getValueByKeys.apply(_.PQ,[Z].concat(_.PG(TUQ))))}else _.HU(Error("uj"));var a;W.currentVideoEndpoint?a=W.currentVideoEndpoint:_.HU(Error("vj"));var m;O&&(m=_.PQ.getValueByKeys(O,"playabilityStatus","miniplayer","miniplayerRenderer"));W={miniplayerTitle:L,miniplayerSubtitle:h,watchEndpoint:a,playlistData:T};m&&(W.miniplayerRenderer=m);return W};
dj8=function(W){if(W)return _.sz(W)};
_.hae=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
SwO=function(W){return W.videoDuration?W.numTaps>1&&W.tapDirection!==0?_.kq(W.draggedTime/W.videoDuration,0,1):_.kq((W.playedTime||0)/W.videoDuration,0,1):0};
ZnP=function(W){return W.videoDuration?W.isDragging||W.numTaps>1&&W.tapDirection!==0?_.kq(W.draggedTime/W.videoDuration,0,1):_.kq((W.playedTime||0)/W.videoDuration,0,1):0};
a$P=function(W){var O,b,T;return _.P(W==null?void 0:(O=W.markersMap)==null?void 0:(b=O.find(function(L){return L.key==="HEATSEEKER"}))==null?void 0:(T=b.value)==null?void 0:T.heatmap,I$e)};
mjE=function(W){var O,b;return(b=(O=a$P(W))==null?void 0:O.heatMarkersDecorations)!=null?b:[]};
YwP=function(W){if(_.e("mweb_supported_chapters_killswitch"))return!0;var O;return!!(W==null?0:(O=W.markersMap)==null?0:O.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))};
_.EM8=function(W){var O=Object,b=O.assign,T;W={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(T=W==null?void 0:W.getPlayerState())!=null?T:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return b.call(O,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},W,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
wcq=function(W){return function(O){var b=W(),T,L=(T=b.playerApi)==null?void 0:T.getPlayerState();O&&O!==b.playerState&&(O===1||O===2)&&b.setState({playerState:L})}};
Xc8=function(W){return function(O){var b=W(),T=b.playerApi;T&&(O==null?void 0:O.type)==="newdata"&&(A28&&(clearTimeout(A28),A28=void 0),_.e("web_shorts_use_progress_state_for_gapless")?(O=T==null?void 0:T.getProgressState(O==null?void 0:O.playertype),O=O.seekableEnd-O.seekableStart):O=T==null?void 0:T.getDuration(O==null?void 0:O.playertype),b.setState({playedTime:0,videoDuration:O}))}};
Uje=function(W){return function(O){var b=W(),T=b.playerApi;if(T){var L=T.getPresentingPlayerType();_.e("web_shorts_use_progress_state_for_gapless")?(T=T.getProgressState(L),T=T.seekableEnd-T.seekableStart):T=T.getDuration(L);b.setState({playedTime:O,videoDuration:T})}}};
PIq=function(W){var O=W.element;var b=W.veType;var T=W.storedVisualElement===void 0?null:W.storedVisualElement;var L=W.elementIndex===void 0?0:W.elementIndex;W=W.clientYouTubeData;var h=_.Bb();h!==l$Q&&(eaQ.clear(),l$Q=h);if(O.visualElement&&eaQ.has(O.visualElement))return null;if(T&&eaQ.has(T))return O.visualElement=T,null;b=_.wG(_.A4(),{veType:b,elementIndex:L,clientYouTubeData:W});if(!b)return null;O.visualElement=b;eaQ.add(b);return b};
_.sQ=function(W,O,b,T){b=b===void 0?null:b;T=T===void 0?qnX:T;var L=L===void 0?null:L;gG(function(){if(O){b instanceof Function&&(b=b());var h=PIq({element:O,veType:W,storedVisualElement:b,clientYouTubeData:void 0});h&&(G2i(O,L),T(h))}})};
RaX=function(W){_.sQ(112394,W,function(){return pc8},function(O){pc8=O})};
gM1=function(W,O){if(!W)return[];var b,T,L;W=((b=W.markersMap)==null?void 0:(T=b.find(function(h){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(h.key)}))==null?void 0:(L=T.value)==null?void 0:L.chapters)||[];
!KPe(W)||(O==null?0:O.ignoreStub)||(W=[vMX()].concat(_.PG(W)));return W};
vMX=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
KPe=function(W){if(W.length===0)return!1;var O;return((O=_.P(W[0],BR))==null?void 0:O.timeRangeStartMillis)!==0};
rY=function(W){return W?W.timeRangeStartMillis||0:0};
QwP=function(W,O){if(W.isDragging&&O)return W=oMO(W,O),W===-1?vMX():gM1(O)[W]};
oMO=function(W,O){return W.isDragging&&O?gM1(O,{ignoreStub:!0}).findIndex(function(b,T,L){b=k4T(W);return swP(b,L,T).scrubberHovering}):-1};
k4T=function(W){return Object.assign({},W,{videoDuration:W.videoDuration*1E3,playedTime:W.playedTime*1E3,draggedTime:W.draggedTime*1E3})};
swP=function(W,O,b){var T=rY(_.P(O[b],BR));O=rY(_.P(O[b+1],BR))||W.videoDuration;b=W.isDragging;var L;if(L=W.isDragging)L=W.draggedTime,L=L!==null&&L>=T&&L<O;var h=W.playedTime;return h!==null&&h>=T&&h<O?{videoPosition:"active",isScrubbing:b,scrubberHovering:L}:W.playedTime<T?{videoPosition:"pending",isScrubbing:b,scrubberHovering:L}:{videoPosition:"seen",isScrubbing:b,scrubberHovering:L}};
BU8=function(W,O){return W.videoPosition==="seen"||(O===void 0?0:O)>0};
r21=function(W,O,b){O=W/O.storyboardInterval;var T=gM1(b);if(!T.length)return-O*72;b=0;T=_.S(T);for(var L=T.next();!L.done;L=T.next())if(rY(_.P(L.value,BR))/1E3<W)b++;else break;return-(O*72)-b*56};
DjT=function(W){return W?W.width/W.columns:0};
xjh=function(W){return W.isHovering?W.hoveredTime:W.draggedTime};
zaX=function(W,O){W=W.draggedTime*1E3;return W>=O.visibleTimeRangeStartMillis&&W<=O.visibleTimeRangeEndMillis};
_.CI2=function(W){if(W===void 0||Number.isNaN(W))return"--:--";var O=Math.abs(Math.floor(W)),b=Math.floor(O/86400),T=Math.floor(O%86400/3600),L=Math.floor(O%3600/60);O=Math.floor(O%60);var h="";b>0&&(h+=b+":",T<10&&(h+="0"));if(b>0||T>0)h+=T+":",L<10&&(h+="0");h+=L+":";O<10&&(h+="0");h+=O;return W>=0?h:"-"+h};
qwE=function(W,O){return function(){var b=xjh(W());var T=O();var L=W().playerApi;if(L&&L.getNumberOfStoryboardLevels()!==0){var h=L.getStoryboardFrameIndex(b,1);h!==-1?T=L.getStoryboardFrame(h,1):(b=L.getStoryboardFrameIndex(b,0),L=L.getStoryboardFrame(b,0),T&&L&&(L.height*=3,L.width*=3),T=L)}else T=null;if(!T)return null;O()&&(T.width=90*T.columns,T.height=160*T.rows);return T}};
_.DL=function(W){if(!W||W.getVideoData)return W};
nMe=function(){var W;return{playerApi:(W=_.ZO())!=null?W:void 0}};
_.$j2=function(W){function O(y){y!==0||X?y>50&&(X||!p)?(l(!1),K(!0)):y<=50&&(X||p)&&(l(!1),K(!1)):l(!0)}
function b(){var y;return _.I(function(d8){if(d8.nextAddress==1)return _.Y(d8,_.Sk(),2);(y=d8.yieldResult)&&(y.isMuted()?l(!0):l(!1));_.aD(d8)})}
var T=W.noSlider;var L=W.orientation;W=_.uy();var h=_.uy(),Z=_.J8(),a=_.S(Ex(!1)),m=a.next().value,w=a.next().value,A=_.S(Ex(!1));a=A.next().value;A=A.next().value;var X=a,l=A;A=_.S(Ex(!0));a=A.next().value;A=A.next().value;var p=a,K=A;a=L==="vertical_down";_.kX(function(){function y(){w(!0)}
function d8(){w(!1)}
T?(b(),O(X?0:100)):Z&&Z.value&&(Z.value.addEventListener("focus",y),Z.value.addEventListener("focusout",d8),f$8(Z.value).then(function(){O(Number(G4X(Z.value)))}));
h&&h.value&&(h.value.addEventListener("focus",y),h.value.addEventListener("focusout",d8));return function(){var pE;Z==null||(pE=Z.value)==null||pE.removeEventListener("focus",y);var Qh;Z==null||(Qh=Z.value)==null||Qh.removeEventListener("focusout",d8);h.value.removeEventListener("focus",y);h.value.removeEventListener("focusout",d8)}});
var k=_.XL(function(){if(Z&&Z.value){var y=Number(G4X(Z.value));Hn8(y);Z.value.style.setProperty("--gradient-percent",y+"%");O(y)}return!1});
A={};A=(A.ytdDesktopShortsVolumeControlsHost=!0,A.ytdDesktopShortsVolumeControlsHostVertical=a,A.ytdDesktopShortsVolumeControlsHostExpanded=m,A);var r={},q=(r.ytdDesktopShortsVolumeControlsSliderContainer=!0,r.ytdDesktopShortsVolumeControlsSliderContainerExpanded=m,r.ytdDesktopShortsVolumeControlsSliderContainerVertical=a,r.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=L==="vertical_down",r.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=m&&a,r);L={};var f=(L.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,L.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=T?!1:m,L);m={};m=(m.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=a,m);L=_.XL(function(){w(!0)});
r=_.XL(function(){w(!1)});
var M=_.XL(function(){if(Z&&Z.value||T)t0X(Z.value,X,T),l(!X);return!1}),V=_.e("web_shorts_keyboard_enable_mute_shortcut")?X?_.EO("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.EO("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):X?_.EO("UNMUTE_VOLUME",void 0,"Unmute"):_.EO("MUTE_VOLUME",void 0,"Mute"),jQ={sources:[{clientResource:{imageName:X?_.e("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":p?_.e("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.e("web_shorts_modern_controls")?
"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.E("desktop-shorts-volume-controls",{"on:pointerleave":r,class:_.wd(A),el:W},Fu(!a,function(){return _.E("div",{class:_.wd(f)})}),_.E("div",{class:_.wd(m)},_.E("button",{"aria-label":V,
title:V,el:h,"on:click":M,"on:pointerenter":L,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},jQ?_.E(_.uj,{data:jQ,alt:V,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),Fu(!T,function(){return _.E("div",{class:_.wd(q)},_.E("input",{"aria-label":_.EO("VOLUME"),title:_.EO("VOLUME"),el:Z,"on:input":k,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
f$8=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Sk(),2);O=T.yieldResult;b=50;O&&(b=O.getVolume(),O.isMuted()?V0Q(W,0):V0Q(W,b));_.aD(T)})};
Hn8=function(W){var O;_.I(function(b){if(b.nextAddress==1)return _.Y(b,_.Sk(),2);if(O=b.yieldResult)O.unMute(!0),O.setVolume(W,!0);_.aD(b)})};
V0Q=function(W,O){W&&(W.value=""+O,W.style.setProperty("--gradient-percent",O+"%"))};
G4X=function(W){var O;return(O=W==null?void 0:W.value)!=null?O:0};
t0X=function(W,O,b){var T;_.I(function(L){if(L.nextAddress==1)return _.Y(L,_.Sk(),2);T=L.yieldResult;O&&T?(T.unMute(!0),!b&&W&&V0Q(W,T.getVolume())):T&&(T.mute(!0),!b&&W&&V0Q(W,0));_.aD(L)})};
NUQ=function(){var W;_.I(function(O){if(O.nextAddress==1)return _.Y(O,_.Sk(),2);W=O.yieldResult;if(!W)return O.return();W.isMuted()?W.unMute(!0):W.mute(!0);_.aD(O)})};
M0i=function(W){var O=_.iq().resolve(_.xq).getPlayerElement();O&&W&&(W===1?O.pause():O.play())};
ucq=function(W){_.TU(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
J2e=function(W){_.TU(W,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
FP2=function(W){return _.g0(W.document.body,function(){return _.E(c2Q,null)})};
y2X=function(){var W=window.performance.getEntriesByType("navigation");return W?W.map(function(O){return O.type}).includes("reload"):!1};
dY8=function(){zN(zN(zN(zN(zN(zN(zN(_.iq().resolve(_.CD),_.Wae),_.Oi1),_.ii1),_.biQ),_.j9q),_.Tz8),_.La1)};
hrT=function(W,O){O=O===void 0?!1:O;var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return O||!_.e("kevlar_shorts_seedless_retry_initial_load")||(b=window,T=!(!b.getDataPromise&&!b.getInitialData),T)?_.Y(Z,NrO(),2):(setTimeout(hrT.bind(window,W,!0),1E3),Z.return());if(Z.nextAddress!=3)return L=Z.yieldResult,_.Y(Z,SDX(L),3);h=Z.yieldResult;gY(W,h);_.aD(Z)})};
SDX=function(W){var O;if((O=W.response)==null||!O.replacementEndpoint)return _.ZM(W);O=_.iq().resolve(PR);W=W.response;_.P(W.replacementEndpoint,_.l8)&&W.sequenceContinuation&&(_.P(W.replacementEndpoint,_.l8).sequenceParams=W.sequenceContinuation);return qc(O,W.replacementEndpoint,{},_.i1.location.href,"shorts",function(){},function(){return!1})};
Zi1=function(W){var O=_.uv(),b,T=_.P((b=W.response)==null?void 0:b.frameworkUpdates,Nf),L;b=_.P((L=W.playerResponse)==null?void 0:L.frameworkUpdates,Nf);var h;W=_.P((h=W.reelWatchSequenceResponse)==null?void 0:h.frameworkUpdates,Nf);T&&_.wm(T,O);b&&_.wm(b,O);W&&_.wm(W,O)};
IaT=function(W){var O;_.e("enable_redirect_linking_for_desktop_web_client")&&((O=window.location.hash)==null?0:O.includes("redirect_state"))&&W.url&&(W.url=W.url.toString()+window.location.hash)};
YD2=function(W){var O=_.iq(),b=O.resolve(PR);O=O.resolve(_.aa1);W.endpoint&&(b=mYe(b,W.endpoint),b.content&&W.response&&_.nD(O,W.response,b.content),b.player&&W.playerResponse&&_.nD(O,W.playerResponse,b.player),b.reelSequence&&W.reelWatchSequenceResponse&&_.nD(O,W.reelWatchSequenceResponse,b.reelSequence))};
fD=function(W,O){Zi1(O);var b;(O==null?0:O.url)&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&(IaT(O),(b=$t8(O.url))&&_.jx(W.root,"yt-initialize-third-party",[b,O]));YD2(O);b=_.iq();var T=b.resolve(ELO);O.playerResponse&&b.resolve(wJ1).handleResponse(O.playerResponse);if(O.playerResponse){b=void 0;if(_.e("ab_v_vid_sig")&&O.endpoint){var L,h=(L=_.P(O.endpoint,_.V3))!=null?L:_.P(O.endpoint,_.l8);h&&(b=h.videoId)}AfX(T,O.playerResponse,b)}O.playerResponse&&Muq(O.playerResponse)&&
_.e("web_enable_ab_rsp_cl")?ZjO().then(function(){XJX(T,O.playerResponse);gY(W,O)}):gY(W,O)};
laX=function(W){if(W=W.root.data){var O=_.iq().resolve(UYO);W.endpoint&&(W.response&&O.handleResponse(W.response,void 0,document.querySelector("ytd-app")),W.playerResponse&&O.handleResponse(W.playerResponse),W.reelWatchSequenceResponse&&O.handleResponse(W.reelWatchSequenceResponse))}};
eri=function(W){var O,b,T,L,h,Z;return _.I(function(a){switch(a.nextAddress){case 1:O=window;if(!O.getDataPromise){a.jumpTo(2);break}_.LI(a,3);return _.Y(a,O.getDataPromise(),5);case 5:b=a.yieldResult;fD(W,b);_.H3(a,4);break;case 3:return _.ID(a),_.Y(a,pD(),6);case 6:T=a.yieldResult,gY(W,T);case 4:return a.return();case 2:if(!_.e("sw_nav_preload_pbj")){a.jumpTo(7);break}O.fetchInitialData=function(){var m;return _.I(function(w){if(w.nextAddress==1)return _.Y(w,pD(),2);m=w.yieldResult;gY(W,m);_.aD(w)})};
if(O.getInitialData){O.loadInitialData=function(m){fD(W,m)};
L=O.getInitialData();O.getInitialData=void 0;fD(W,L);a.jumpTo(8);break}O.fetchInitialData=void 0;return _.Y(a,pD(),9);case 9:h=a.yieldResult,gY(W,h);case 8:return a.return();case 7:O.getInitialData?(Z=O.getInitialData(),O.getInitialData=void 0,fD(W,Z)):O.loadInitialData=function(m){fD(W,m)},_.aD(a)}})};
Pa1=function(W){var O=0;return function(){return O<W.length?{done:!1,value:W[O++]}:{done:!0}}};
pJX=typeof Object.defineProperties=="function"?Object.defineProperty:function(W,O,b){if(W==Array.prototype||W==Object.prototype)return W;W[O]=b.value;return W};
RrX=function(W){W=["object"==typeof globalThis&&globalThis,W,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var O=0;O<W.length;++O){var b=W[O];if(b&&b.Math==Math)return b}throw Error("a");};
_.Jq=RrX(this);GN=function(W,O){if(O)a:{var b=_.Jq;W=W.split(".");for(var T=0;T<W.length-1;T++){var L=W[T];if(!(L in b))break a;b=b[L]}W=W[W.length-1];T=b[W];O=O(T);O!=T&&O!=null&&pJX(b,W,{configurable:!0,writable:!0,value:O})}};
GN("Symbol",function(W){if(W)return W;var O=function(h,Z){this.$jscomp$symbol$id_=h;pJX(this,"description",{configurable:!0,writable:!0,value:Z})};
O.prototype.toString=function(){return this.$jscomp$symbol$id_};
var b="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",T=0,L=function(h){if(this instanceof L)throw new TypeError("b");return new O(b+(h||"")+"_"+T++,h)};
return L});
GN("Symbol.iterator",function(W){if(W)return W;W=Symbol("c");for(var O="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),b=0;b<O.length;b++){var T=_.Jq[O[b]];typeof T==="function"&&typeof T.prototype[W]!="function"&&pJX(T.prototype,W,{configurable:!0,writable:!0,value:function(){return KaT(Pa1(this))}})}return W});
GN("Symbol.asyncIterator",function(W){return W?W:Symbol("d")});
var KaT=function(W){W={next:W};W[Symbol.iterator]=function(){return this};
return W},vLX=typeof Object.create=="function"?Object.create:function(W){var O=function(){};
O.prototype=W;return new O},gL2=function(){function W(){function b(){}
new b;Reflect.construct(b,[],function(){});
return new b instanceof b}
if(typeof Reflect!="undefined"&&Reflect.construct){if(W())return Reflect.construct;var O=Reflect.construct;return function(b,T,L){b=O(b,T);L&&Reflect.setPrototypeOf(b,L.prototype);return b}}return function(b,T,L){L===void 0&&(L=b);
L=vLX(L.prototype||Object.prototype);return Function.prototype.apply.call(b,L,T)||L}}(),oLq;
if(typeof Object.setPrototypeOf=="function")oLq=Object.setPrototypeOf;else{var Q9X;a:{var k6e={a:!0},s9q={};try{s9q.__proto__=k6e;Q9X=s9q.a;break a}catch(W){}Q9X=!1}oLq=Q9X?function(W,O){W.__proto__=O;if(W.__proto__!==O)throw new TypeError("e`"+W);return W}:null}HR=oLq;
_.R=function(W,O){W.prototype=vLX(O.prototype);W.prototype.constructor=W;if(HR)HR(W,O);else for(var b in O)if(b!="prototype")if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(O,b);T&&Object.defineProperty(W,b,T)}else W[b]=O[b];W.superClass_=O.prototype};
_.S=function(W){var O=typeof Symbol!="undefined"&&Symbol.iterator&&W[Symbol.iterator];if(O)return O.call(W);if(typeof W.length=="number")return{next:Pa1(W)};throw Error("f`"+String(W));};
JV=function(W){for(var O,b=[];!(O=W.next()).done;)b.push(O.value);return b};
_.PG=function(W){return W instanceof Array?W:JV(_.S(W))};
_.ts=function(W){return BzX(W,W)};
BzX=function(W,O){W.raw=O;Object.freeze&&(Object.freeze(W),Object.freeze(O));return W};
$q=function(W,O){return Object.prototype.hasOwnProperty.call(W,O)};
rf1=typeof Object.assign=="function"?Object.assign:function(W,O){for(var b=1;b<arguments.length;b++){var T=arguments[b];if(T)for(var L in T)$q(T,L)&&(W[L]=T[L])}return W};
GN("Object.assign",function(W){return W||rf1});
var DY8=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},xYX=function(W){if(W.isRunning_)throw new TypeError("h");
W.isRunning_=!0};
DY8.prototype.JSC$6735_next_=function(W){this.yieldResult=W};
var zrO=function(W,O){W.abruptCompletion_={exception:O,isException:!0};W.nextAddress=W.catchAddress_||W.finallyAddress_};
DY8.prototype.return=function(W){this.abruptCompletion_={return:W};this.nextAddress=this.finallyAddress_};
_.Y=function(W,O,b){W.nextAddress=b;return{value:O}};
DY8.prototype.jumpTo=function(W){this.nextAddress=W};
_.aD=function(W){W.nextAddress=0};
_.LI=function(W,O,b){W.catchAddress_=O;b!=void 0&&(W.finallyAddress_=b)};
_.SP=function(W,O){W.catchAddress_=0;W.finallyAddress_=O||0};
_.H3=function(W,O,b){W.nextAddress=O;W.catchAddress_=b||0};
_.ID=function(W,O){W.catchAddress_=O||0;O=W.abruptCompletion_.exception;W.abruptCompletion_=null;return O};
_.hx=function(W,O,b,T){T?W.finallyContexts_[T]=W.abruptCompletion_:W.finallyContexts_=[W.abruptCompletion_];W.catchAddress_=O||0;W.finallyAddress_=b||0};
_.Zh=function(W,O,b){b=W.finallyContexts_.splice(b||0)[0];(b=W.abruptCompletion_=W.abruptCompletion_||b)?b.isException?W.nextAddress=W.catchAddress_||W.finallyAddress_:b.jumpTo!=void 0&&W.finallyAddress_<b.jumpTo?(W.nextAddress=b.jumpTo,W.abruptCompletion_=null):W.nextAddress=W.finallyAddress_:W.nextAddress=O};
CaQ=function(W){this.JSC$6740_context_=new DY8;this.program_=W};
nLX=function(W,O){xYX(W.JSC$6740_context_);var b=W.JSC$6740_context_.yieldAllIterator_;if(b)return qDX(W,"return"in b?b["return"]:function(T){return{value:T,done:!0}},O,W.JSC$6740_context_.return);
W.JSC$6740_context_.return(O);return VG(W)};
qDX=function(W,O,b,T){try{var L=O.call(W.JSC$6740_context_.yieldAllIterator_,b);if(!(L instanceof Object))throw new TypeError("g`"+L);if(!L.done)return W.JSC$6740_context_.isRunning_=!1,L;var h=L.value}catch(Z){return W.JSC$6740_context_.yieldAllIterator_=null,zrO(W.JSC$6740_context_,Z),VG(W)}W.JSC$6740_context_.yieldAllIterator_=null;T.call(W.JSC$6740_context_,h);return VG(W)};
VG=function(W){for(;W.JSC$6740_context_.nextAddress;)try{var O=W.program_(W.JSC$6740_context_);if(O)return W.JSC$6740_context_.isRunning_=!1,{value:O.value,done:!1}}catch(b){W.JSC$6740_context_.yieldResult=void 0,zrO(W.JSC$6740_context_,b)}W.JSC$6740_context_.isRunning_=!1;if(W.JSC$6740_context_.abruptCompletion_){O=W.JSC$6740_context_.abruptCompletion_;W.JSC$6740_context_.abruptCompletion_=null;if(O.isException)throw O.exception;return{value:O.return,done:!0}}return{value:void 0,done:!0}};
faX=function(W){this.next=function(O){xYX(W.JSC$6740_context_);W.JSC$6740_context_.yieldAllIterator_?O=qDX(W,W.JSC$6740_context_.yieldAllIterator_.next,O,W.JSC$6740_context_.JSC$6735_next_):(W.JSC$6740_context_.JSC$6735_next_(O),O=VG(W));return O};
this.throw=function(O){xYX(W.JSC$6740_context_);W.JSC$6740_context_.yieldAllIterator_?O=qDX(W,W.JSC$6740_context_.yieldAllIterator_["throw"],O,W.JSC$6740_context_.JSC$6735_next_):(zrO(W.JSC$6740_context_,O),O=VG(W));return O};
this.return=function(O){return nLX(W,O)};
this[Symbol.iterator]=function(){return this}};
_.SHP=function(W,O){O=new faX(new CaQ(O));HR&&W.prototype&&HR(O,W.prototype);return O};
G6T=function(W){function O(T){return W.next(T)}
function b(T){return W.throw(T)}
return new Promise(function(T,L){function h(Z){Z.done?T(Z.value):Promise.resolve(Z.value).then(O,b).then(h,L)}
h(W.next())})};
_.I=function(W){return G6T(new faX(new CaQ(W)))};
$AE=function(W){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return W};
this.next=function(O){return Promise.resolve(W.next(O))};
this["throw"]=function(O){return new Promise(function(b,T){var L=W["throw"];L!==void 0?b(L.call(W,O)):(b=W["return"],b!==void 0&&b.call(W),T(new TypeError("i")))})};
W["return"]!==void 0&&(this["return"]=function(O){return Promise.resolve(W["return"](O))})};
_.PD=function(){for(var W=Number(this),O=[],b=W;b<arguments.length;b++)O[b-W]=arguments[b];return O};
_.Za8=function(W){return W};
GN("globalThis",function(W){return W||_.Jq});
GN("Reflect",function(W){return W?W:{}});
GN("Reflect.construct",function(){return gL2});
GN("Reflect.setPrototypeOf",function(W){return W?W:HR?function(O,b){try{return HR(O,b),!0}catch(T){return!1}}:null});
GN("Promise",function(W){function O(){this.batch_=null}
function b(Z){return Z instanceof L?Z:new L(function(a){a(Z)})}
if(W&&(typeof _.Jq.PromiseRejectionEvent!=="undefined"||!_.Jq.Promise||_.Jq.Promise.toString().indexOf("[native code]")===-1))return W;O.prototype.asyncExecute=function(Z){if(this.batch_==null){this.batch_=[];var a=this;this.asyncExecuteFunction(function(){a.executeBatch_()})}this.batch_.push(Z)};
var T=_.Jq.setTimeout;O.prototype.asyncExecuteFunction=function(Z){T(Z,0)};
O.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var Z=this.batch_;this.batch_=[];for(var a=0;a<Z.length;++a){var m=Z[a];Z[a]=null;try{m()}catch(w){this.asyncThrow_(w)}}}this.batch_=null};
O.prototype.asyncThrow_=function(Z){this.asyncExecuteFunction(function(){throw Z;})};
var L=function(Z){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var a=this.createResolveAndReject_();try{Z(a.resolve,a.reject)}catch(m){a.reject(m)}};
L.prototype.createResolveAndReject_=function(){function Z(w){return function(A){m||(m=!0,w.call(a,A))}}
var a=this,m=!1;return{resolve:Z(this.resolveTo_),reject:Z(this.JSC$6756_reject_)}};
L.prototype.resolveTo_=function(Z){if(Z===this)this.JSC$6756_reject_(new TypeError("j"));else if(Z instanceof L)this.settleSameAsPromise_(Z);else{a:switch(typeof Z){case "object":var a=Z!=null;break a;case "function":a=!0;break a;default:a=!1}a?this.resolveToNonPromiseObj_(Z):this.fulfill_(Z)}};
L.prototype.resolveToNonPromiseObj_=function(Z){var a=void 0;try{a=Z.then}catch(m){this.JSC$6756_reject_(m);return}typeof a=="function"?this.settleSameAsThenable_(a,Z):this.fulfill_(Z)};
L.prototype.JSC$6756_reject_=function(Z){this.settle_(2,Z)};
L.prototype.fulfill_=function(Z){this.settle_(1,Z)};
L.prototype.settle_=function(Z,a){if(this.state_!=0)throw Error("k`"+Z+"`"+a+"`"+this.state_);this.state_=Z;this.result_=a;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
L.prototype.scheduleUnhandledRejectionCheck_=function(){var Z=this;T(function(){if(Z.notifyUnhandledRejection_()){var a=_.Jq.console;typeof a!=="undefined"&&a.error(Z.result_)}},1)};
L.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var Z=_.Jq.CustomEvent,a=_.Jq.Event,m=_.Jq.dispatchEvent;if(typeof m==="undefined")return!0;typeof Z==="function"?Z=new Z("unhandledrejection",{cancelable:!0}):typeof a==="function"?Z=new a("unhandledrejection",{cancelable:!0}):(Z=_.Jq.document.createEvent("CustomEvent"),Z.initCustomEvent("unhandledrejection",!1,!0,Z));Z.promise=this;Z.reason=this.result_;return m(Z)};
L.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var Z=0;Z<this.onSettledCallbacks_.length;++Z)h.asyncExecute(this.onSettledCallbacks_[Z]);this.onSettledCallbacks_=null}};
var h=new O;L.prototype.settleSameAsPromise_=function(Z){var a=this.createResolveAndReject_();Z.callWhenSettled_(a.resolve,a.reject)};
L.prototype.settleSameAsThenable_=function(Z,a){var m=this.createResolveAndReject_();try{Z.call(a,m.resolve,m.reject)}catch(w){m.reject(w)}};
L.prototype.then=function(Z,a){function m(l,p){return typeof l=="function"?function(K){try{w(l(K))}catch(k){A(k)}}:p}
var w,A,X=new L(function(l,p){w=l;A=p});
this.callWhenSettled_(m(Z,w),m(a,A));return X};
L.prototype.catch=function(Z){return this.then(void 0,Z)};
L.prototype.callWhenSettled_=function(Z,a){function m(){switch(w.state_){case 1:Z(w.result_);break;case 2:a(w.result_);break;default:throw Error("l`"+w.state_);}}
var w=this;this.onSettledCallbacks_==null?h.asyncExecute(m):this.onSettledCallbacks_.push(m);this.isRejectionHandled_=!0};
L.resolve=b;L.reject=function(Z){return new L(function(a,m){m(Z)})};
L.race=function(Z){return new L(function(a,m){for(var w=_.S(Z),A=w.next();!A.done;A=w.next())b(A.value).callWhenSettled_(a,m)})};
L.all=function(Z){var a=_.S(Z),m=a.next();return m.done?b([]):new L(function(w,A){function X(K){return function(k){l[K]=k;p--;p==0&&w(l)}}
var l=[],p=0;do l.push(void 0),p++,b(m.value).callWhenSettled_(X(l.length-1),A),m=a.next();while(!m.done)})};
return L});
var Nc=function(W,O,b){if(W==null)throw new TypeError("m`"+b);if(O instanceof RegExp)throw new TypeError("n`"+b);return W+""};
GN("String.prototype.startsWith",function(W){return W?W:function(O,b){var T=Nc(this,O,"startsWith"),L=T.length,h=O.length;b=Math.max(0,Math.min(b|0,T.length));for(var Z=0;Z<h&&b<L;)if(T[b++]!=O[Z++])return!1;return Z>=h}});
GN("Object.setPrototypeOf",function(W){return W||HR});
GN("Symbol.dispose",function(W){return W?W:Symbol("o")});
GN("SuppressedError",function(W){function O(b,T,L){if(!(this instanceof O))return new O(b,T,L);L=Error(L);"stack"in L&&(this.stack=L.stack);this.message=L.message;this.error=b;this.suppressed=T}
if(W)return W;_.R(O,Error);O.prototype.name="SuppressedError";return O});
var Hie=function(W,O,b){W instanceof String&&(W=String(W));for(var T=W.length,L=0;L<T;L++){var h=W[L];if(O.call(b,h,L,W))return{i:L,v:h}}return{i:-1,v:void 0}};
GN("Array.prototype.find",function(W){return W?W:function(O,b){return Hie(this,O,b).v}});
GN("WeakMap",function(W){function O(){}
function b(m){var w=typeof m;return w==="object"&&m!==null||w==="function"}
function T(m){if(!$q(m,h)){var w=new O;pJX(m,h,{value:w})}}
function L(m){var w=Object[m];w&&(Object[m]=function(A){if(A instanceof O)return A;Object.isExtensible(A)&&T(A);return w(A)})}
if(function(){if(!W||!Object.seal)return!1;try{var m=Object.seal({}),w=Object.seal({}),A=new W([[m,2],[w,3]]);if(A.get(m)!=2||A.get(w)!=3)return!1;A.delete(m);A.set(w,4);return!A.has(m)&&A.get(w)==4}catch(X){return!1}}())return W;
var h="$jscomp_hidden_"+Math.random();L("freeze");L("preventExtensions");L("seal");var Z=0,a=function(m){this.JSC$6763_id_=(Z+=Math.random()+1).toString();if(m){m=_.S(m);for(var w;!(w=m.next()).done;)w=w.value,this.set(w[0],w[1])}};
a.prototype.set=function(m,w){if(!b(m))throw Error("p");T(m);if(!$q(m,h))throw Error("q`"+m);m[h][this.JSC$6763_id_]=w;return this};
a.prototype.get=function(m){return b(m)&&$q(m,h)?m[h][this.JSC$6763_id_]:void 0};
a.prototype.has=function(m){return b(m)&&$q(m,h)&&$q(m[h],this.JSC$6763_id_)};
a.prototype.delete=function(m){return b(m)&&$q(m,h)&&$q(m[h],this.JSC$6763_id_)?delete m[h][this.JSC$6763_id_]:!1};
return a});
GN("Map",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var a=Object.seal({x:4}),m=new W(_.S([[a,"s"]]));if(m.get(a)!="s"||m.size!=1||m.get({x:4})||m.set({x:4},"t")!=m||m.size!=2)return!1;var w=m.entries(),A=w.next();if(A.done||A.value[0]!=a||A.value[1]!="s")return!1;A=w.next();return A.done||A.value[0].x!=4||A.value[1]!="t"||!w.next().done?!1:!0}catch(X){return!1}}())return W;
var O=new WeakMap,b=function(a){this[0]={};this[1]=h();this.size=0;if(a){a=_.S(a);for(var m;!(m=a.next()).done;)m=m.value,this.set(m[0],m[1])}};
b.prototype.set=function(a,m){a=a===0?0:a;var w=T(this,a);w.list||(w.list=this[0][w.id]=[]);w.entry?w.entry.value=m:(w.entry={next:this[1],previous:this[1].previous,head:this[1],key:a,value:m},w.list.push(w.entry),this[1].previous.next=w.entry,this[1].previous=w.entry,this.size++);return this};
b.prototype.delete=function(a){a=T(this,a);return a.entry&&a.list?(a.list.splice(a.index,1),a.list.length||delete this[0][a.id],a.entry.previous.next=a.entry.next,a.entry.next.previous=a.entry.previous,a.entry.head=null,this.size--,!0):!1};
b.prototype.clear=function(){this[0]={};this[1]=this[1].previous=h();this.size=0};
b.prototype.has=function(a){return!!T(this,a).entry};
b.prototype.get=function(a){return(a=T(this,a).entry)&&a.value};
b.prototype.entries=function(){return L(this,function(a){return[a.key,a.value]})};
b.prototype.keys=function(){return L(this,function(a){return a.key})};
b.prototype.values=function(){return L(this,function(a){return a.value})};
b.prototype.forEach=function(a,m){for(var w=this.entries(),A;!(A=w.next()).done;)A=A.value,a.call(m,A[1],A[0],this)};
b.prototype[Symbol.iterator]=b.prototype.entries;var T=function(a,m){var w=m&&typeof m;w=="object"||w=="function"?O.has(m)?w=O.get(m):(w=""+ ++Z,O.set(m,w)):w="p_"+m;var A=a[0][w];if(A&&$q(a[0],w))for(a=0;a<A.length;a++){var X=A[a];if(m!==m&&X.key!==X.key||m===X.key)return{id:w,list:A,index:a,entry:X}}return{id:w,list:A,index:-1,entry:void 0}},L=function(a,m){var w=a[1];
return KaT(function(){if(w){for(;w.head!=a[1];)w=w.previous;for(;w.next!=w.head;)return w=w.next,{done:!1,value:m(w)};w=null}return{done:!0,value:void 0}})},h=function(){var a={};
return a.previous=a.next=a.head=a},Z=0;
return b});
GN("Set",function(W){if(function(){if(!W||typeof W!="function"||!W.prototype.entries||typeof Object.seal!="function")return!1;try{var b=Object.seal({x:4}),T=new W(_.S([b]));if(!T.has(b)||T.size!=1||T.add(b)!=T||T.size!=1||T.add({x:4})!=T||T.size!=2)return!1;var L=T.entries(),h=L.next();if(h.done||h.value[0]!=b||h.value[1]!=b)return!1;h=L.next();return h.done||h.value[0]==b||h.value[0].x!=4||h.value[1]!=h.value[0]?!1:L.next().done}catch(Z){return!1}}())return W;
var O=function(b){this.JSC$6777_map_=new Map;if(b){b=_.S(b);for(var T;!(T=b.next()).done;)this.add(T.value)}this.size=this.JSC$6777_map_.size};
O.prototype.add=function(b){b=b===0?0:b;this.JSC$6777_map_.set(b,b);this.size=this.JSC$6777_map_.size;return this};
O.prototype.delete=function(b){b=this.JSC$6777_map_.delete(b);this.size=this.JSC$6777_map_.size;return b};
O.prototype.clear=function(){this.JSC$6777_map_.clear();this.size=0};
O.prototype.has=function(b){return this.JSC$6777_map_.has(b)};
O.prototype.entries=function(){return this.JSC$6777_map_.entries()};
O.prototype.values=function(){return this.JSC$6777_map_.values()};
O.prototype.keys=O.prototype.values;O.prototype[Symbol.iterator]=O.prototype.values;O.prototype.forEach=function(b,T){var L=this;this.JSC$6777_map_.forEach(function(h){return b.call(T,h,h,L)})};
return O});
GN("Math.log2",function(W){return W?W:function(O){return Math.log(O)/Math.LN2}});
GN("Object.values",function(W){return W?W:function(O){var b=[],T;for(T in O)$q(O,T)&&b.push(O[T]);return b}});
GN("Object.is",function(W){return W?W:function(O,b){return O===b?O!==0||1/O===1/b:O!==O&&b!==b}});
GN("Array.prototype.includes",function(W){return W?W:function(O,b){var T=this;T instanceof String&&(T=String(T));var L=T.length;b=b||0;for(b<0&&(b=Math.max(b+L,0));b<L;b++){var h=T[b];if(h===O||Object.is(h,O))return!0}return!1}});
GN("String.prototype.includes",function(W){return W?W:function(O,b){return Nc(this,O,"includes").indexOf(O,b||0)!==-1}});
GN("Array.from",function(W){return W?W:function(O,b,T){b=b!=null?b:function(a){return a};
var L=[],h=typeof Symbol!="undefined"&&Symbol.iterator&&O[Symbol.iterator];if(typeof h=="function"){O=h.call(O);for(var Z=0;!(h=O.next()).done;)L.push(b.call(T,h.value,Z++))}else for(h=O.length,Z=0;Z<h;Z++)L.push(b.call(T,O[Z],Z));return L}});
GN("Object.entries",function(W){return W?W:function(O){var b=[],T;for(T in O)$q(O,T)&&b.push([T,O[T]]);return b}});
GN("Number.isFinite",function(W){return W?W:function(O){return typeof O!=="number"?!1:!isNaN(O)&&O!==Infinity&&O!==-Infinity}});
GN("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
GN("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
GN("Number.isInteger",function(W){return W?W:function(O){return Number.isFinite(O)?O===Math.floor(O):!1}});
GN("Number.isSafeInteger",function(W){return W?W:function(O){return Number.isInteger(O)&&Math.abs(O)<=Number.MAX_SAFE_INTEGER}});
GN("String.prototype.endsWith",function(W){return W?W:function(O,b){var T=Nc(this,O,"endsWith");b===void 0&&(b=T.length);b=Math.max(0,Math.min(b|0,T.length));for(var L=O.length;L>0&&b>0;)if(T[--b]!=O[--L])return!1;return L<=0}});
var tgO=function(W,O){W instanceof String&&(W+="");var b=0,T=!1,L={next:function(){if(!T&&b<W.length){var h=b++;return{value:O(h,W[h]),done:!1}}T=!0;return{done:!0,value:void 0}}};
L[Symbol.iterator]=function(){return L};
return L};
GN("Array.prototype.entries",function(W){return W?W:function(){return tgO(this,function(O,b){return[O,b]})}});
GN("Math.imul",function(W){return W?W:function(O,b){O=Number(O);b=Number(b);var T=O&65535,L=b&65535;return T*L+((O>>>16&65535)*L+T*(b>>>16&65535)<<16>>>0)|0}});
GN("Math.trunc",function(W){return W?W:function(O){O=Number(O);if(isNaN(O)||O===Infinity||O===-Infinity||O===0)return O;var b=Math.floor(Math.abs(O));return O<0?-b:b}});
GN("Number.isNaN",function(W){return W?W:function(O){return typeof O==="number"&&isNaN(O)}});
GN("Array.prototype.keys",function(W){return W?W:function(){return tgO(this,function(O){return O})}});
GN("Array.prototype.values",function(W){return W?W:function(){return tgO(this,function(O,b){return b})}});
GN("Array.prototype.fill",function(W){return W?W:function(O,b,T){var L=this.length||0;b<0&&(b=Math.max(0,L+b));if(T==null||T>L)T=L;T=Number(T);T<0&&(T=Math.max(0,L+T));for(b=Number(b||0);b<T;b++)this[b]=O;return this}});
var Mc=function(W){return W?W:Array.prototype.fill};
GN("Int8Array.prototype.fill",Mc);GN("Uint8Array.prototype.fill",Mc);GN("Uint8ClampedArray.prototype.fill",Mc);GN("Int16Array.prototype.fill",Mc);GN("Uint16Array.prototype.fill",Mc);GN("Int32Array.prototype.fill",Mc);GN("Uint32Array.prototype.fill",Mc);GN("Float32Array.prototype.fill",Mc);GN("Float64Array.prototype.fill",Mc);
GN("Object.fromEntries",function(W){return W?W:function(O){var b={};if(!(Symbol.iterator in O))throw new TypeError("r`"+O);O=O[Symbol.iterator].call(O);for(var T=O.next();!T.done;T=O.next()){T=T.value;if(Object(T)!==T)throw new TypeError("s");b[T[0]]=T[1]}return b}});
GN("String.prototype.replaceAll",function(W){return W?W:function(O,b){if(O instanceof RegExp&&!O.global)throw new TypeError("t");return O instanceof RegExp?this.replace(O,b):this.replace(new RegExp(String(O).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),b)}});
GN("Object.getOwnPropertySymbols",function(W){return W?W:function(){return[]}});
GN("String.prototype.repeat",function(W){return W?W:function(O){var b=Nc(this,null,"repeat");if(O<0||O>1342177279)throw new RangeError("u");O|=0;for(var T="";O;)if(O&1&&(T+=b),O>>>=1)b+=b;return T}});
GN("Array.prototype.findIndex",function(W){return W?W:function(O,b){return Hie(this,O,b).i}});
GN("Array.prototype.flatMap",function(W){return W?W:function(O,b){var T=[];Array.prototype.forEach.call(this,function(L,h){L=O.call(b,L,h,this);Array.isArray(L)?T.push.apply(T,L):T.push(L)});
return T}});
GN("String.prototype.codePointAt",function(W){return W?W:function(O){var b=Nc(this,null,"codePointAt"),T=b.length;O=Number(O)||0;if(O>=0&&O<T){O|=0;var L=b.charCodeAt(O);if(L<55296||L>56319||O+1===T)return L;O=b.charCodeAt(O+1);return O<56320||O>57343?L:(L-55296)*1024+O+9216}}});
GN("String.fromCodePoint",function(W){return W?W:function(O){for(var b="",T=0;T<arguments.length;T++){var L=Number(arguments[T]);if(L<0||L>1114111||L!==Math.floor(L))throw new RangeError("v`"+L);L<=65535?b+=String.fromCharCode(L):(L-=65536,b+=String.fromCharCode(L>>>10&1023|55296),b+=String.fromCharCode(L&1023|56320))}return b}});
GN("String.prototype.padStart",function(W){return W?W:function(O,b){var T=Nc(this,null,"padStart");O-=T.length;b=b!==void 0?String(b):" ";return(O>0&&b?b.repeat(Math.ceil(O/b.length)).substring(0,O):"")+T}});
GN("Promise.prototype.finally",function(W){return W?W:function(O){return this.then(function(b){return Promise.resolve(O()).then(function(){return b})},function(b){return Promise.resolve(O()).then(function(){throw b;
})})}});
GN("Object.hasOwn",function(W){return W?W:function(O,b){return Object.prototype.hasOwnProperty.call(O,b)}});
GN("Math.sign",function(W){return W?W:function(O){O=Number(O);return O===0||isNaN(O)?O:O>0?1:-1}});
GN("Array.prototype.flat",function(W){return W?W:function(O){O=O===void 0?1:O;var b=[];Array.prototype.forEach.call(this,function(T){Array.isArray(T)&&O>0?(T=Array.prototype.flat.call(T,O-1),b.push.apply(b,T)):b.push(T)});
return b}});
GN("String.raw",function(W){return W?W:function(O,b){if(O==null)throw new TypeError("w");for(var T=O.raw,L=T.length,h="",Z=0;Z<L;++Z)h+=T[Z],Z+1<L&&Z+1<arguments.length&&(h+=String(arguments[Z+1]));return h}});
GN("Reflect.ownKeys",function(W){return W?W:function(O){var b=[],T=Object.getOwnPropertyNames(O);O=Object.getOwnPropertySymbols(O);for(var L=0;L<T.length;L++)(T[L].substring(0,14)=="jscomp_symbol_"?O:b).push(T[L]);return b.concat(O)}});
GN("Object.getOwnPropertyDescriptors",function(W){return W?W:function(O){for(var b={},T=Reflect.ownKeys(O),L=0;L<T.length;L++)b[T[L]]=Object.getOwnPropertyDescriptor(O,T[L]);return b}});
GN("WeakSet",function(W){if(function(){if(!W||!Object.seal)return!1;try{var b=Object.seal({}),T=Object.seal({}),L=new W([b]);if(!L.has(b)||L.has(T))return!1;L.delete(b);L.add(T);return!L.has(b)&&L.has(T)}catch(h){return!1}}())return W;
var O=function(b){this.JSC$6784_map_=new WeakMap;if(b){b=_.S(b);for(var T;!(T=b.next()).done;)this.add(T.value)}};
O.prototype.add=function(b){this.JSC$6784_map_.set(b,!0);return this};
O.prototype.has=function(b){return this.JSC$6784_map_.has(b)};
O.prototype.delete=function(b){return this.JSC$6784_map_.delete(b)};
return O});
GN("Promise.allSettled",function(W){function O(T){return{status:"fulfilled",value:T}}
function b(T){return{status:"rejected",reason:T}}
return W?W:function(T){var L=this;T=Array.from(T,function(h){return L.resolve(h).then(O,b)});
return L.all(T)}});
GN("Number.parseInt",function(W){return W||parseInt});
_._DumpException=window._DumpException||function(W){throw W;};
window._DumpException=_._DumpException;var $Yh,uU,Js,cR,VgP,Nz8,Mg8,u7E,MZ,JfX;$Yh=$Yh||{};_.i1=this||self;_.c3=function(W,O,b){W=W.split(".");b=b||_.i1;for(var T;W.length&&(T=W.shift());)W.length||O===void 0?b[T]&&b[T]!==Object.prototype[T]?b=b[T]:b=b[T]={}:b[T]=O};
uU=function(W){var O=_.GT("WIZ_global_data.oxN3nb");W=O&&O[W];return W!=null?W:!1};
Js=_.i1._F_toggles||[];cR=function(){};
cR.get=function(){return null};
_.GT=function(W,O){W=W.split(".");O=O||_.i1;for(var b=0;b<W.length;b++)if(O=O[W[b]],O==null)return null;return O};
_.Fv=function(W){W.instance_=void 0;W.getInstance=function(){return W.instance_?W.instance_:W.instance_=new W}};
_.U5=function(W){var O=typeof W;return O!="object"?O:W?Array.isArray(W)?"array":O:"null"};
_.j5=function(W){var O=_.U5(W);return O=="array"||O=="object"&&typeof W.length=="number"};
_.LH=function(W){var O=typeof W;return O=="object"&&W!=null||O=="function"};
_.d1=function(W){return Object.prototype.hasOwnProperty.call(W,VgP)&&W[VgP]||(W[VgP]=++Nz8)};
VgP="closure_uid_"+(Math.random()*1E9>>>0);Nz8=0;Mg8=function(W,O,b){return W.call.apply(W.bind,arguments)};
u7E=function(W,O,b){if(!W)throw Error();if(arguments.length>2){var T=Array.prototype.slice.call(arguments,2);return function(){var L=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(L,T);return W.apply(O,L)}}return function(){return W.apply(O,arguments)}};
_.K5=function(W,O,b){_.K5=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?Mg8:u7E;return _.K5.apply(null,arguments)};
_.A3=function(W,O){var b=Array.prototype.slice.call(arguments,1);return function(){var T=b.slice();T.push.apply(T,arguments);return W.apply(this,T)}};
_.yG=function(){return Date.now()};
MZ=function(W){return W};
_.Wk=function(W,O){function b(){}
b.prototype=O.prototype;W.superClass_=O.prototype;W.prototype=new b;W.prototype.constructor=W;W.base=function(T,L,h){for(var Z=Array(arguments.length-2),a=2;a<arguments.length;a++)Z[a-2]=arguments[a];return O.prototype[L].apply(T,Z)}};
JfX=function(W){return W};var iZ1,Lui;_.t=function(W,O,b,T){var L=arguments.length,h=L<3?O:T===null?T=Object.getOwnPropertyDescriptor(O,b):T,Z;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")h=Reflect.decorate(W,O,b,T);else for(var a=W.length-1;a>=0;a--)if(Z=W[a])h=(L<3?Z(h):L>3?Z(O,b,h):Z(O,b))||h;return L>3&&h&&Object.defineProperty(O,b,h),h};
_.N=function(W,O){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(W,O)};
iZ1=function(W,O){if(O!==null&&O!==void 0){if(typeof O!=="object"&&typeof O!=="function")throw new TypeError("x");if(b===void 0){if(!Symbol.dispose)throw new TypeError("z");var b=O[Symbol.dispose]}if(typeof b!=="function")throw new TypeError("A");W.stack.push({value:O,dispose:b,async:!1})}return O};
Lui=function(W){function O(h){W.error=W.hasError?new SuppressedError(h,W.error,"An error was suppressed during disposal."):h;W.hasError=!0}
function b(){for(;T=W.stack.pop();)try{if(!T.async&&L===1)return L=0,W.stack.push(T),Promise.resolve().then(b);if(T.dispose){var h=T.dispose.call(T.value);if(T.async)return L|=2,Promise.resolve(h).then(b,function(Z){O(Z);return b()})}else L|=1}catch(Z){O(Z)}if(L===1)return W.hasError?Promise.reject(W.error):Promise.resolve();
if(W.hasError)throw W.error;}
var T,L=0;b()};_.Wk(_.W2,Error);_.W2.prototype.name="CustomError";var cfq;var Fa8=void 0,yfE,WSq=typeof TextDecoder!=="undefined",bEi,iEq=typeof String.prototype.isWellFormed==="function",OE8=typeof TextEncoder!=="undefined";var OXT;_.P5=function(W){for(var O=[],b=0,T=0;T<W.length;T++){var L=W.charCodeAt(T);L<128?O[b++]=L:(L<2048?O[b++]=L>>6|192:((L&64512)==55296&&T+1<W.length&&(W.charCodeAt(T+1)&64512)==56320?(L=65536+((L&1023)<<10)+(W.charCodeAt(++T)&1023),O[b++]=L>>18|240,O[b++]=L>>12&63|128):O[b++]=L>>12|224,O[b++]=L>>6&63|128),O[b++]=L&63|128)}return O};
OXT=function(W){for(var O=[],b=0,T=0;b<W.length;){var L=W[b++];if(L<128)O[T++]=String.fromCharCode(L);else if(L>191&&L<224){var h=W[b++];O[T++]=String.fromCharCode((L&31)<<6|h&63)}else if(L>239&&L<365){h=W[b++];var Z=W[b++],a=W[b++];L=((L&7)<<18|(h&63)<<12|(Z&63)<<6|a&63)-65536;O[T++]=String.fromCharCode(55296+(L>>10));O[T++]=String.fromCharCode(56320+(L&1023))}else h=W[b++],Z=W[b++],O[T++]=String.fromCharCode((L&15)<<12|(h&63)<<6|Z&63)}return O.join("")};var Ee=String.prototype.trim?function(W){return W.trim()}:function(W){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(W)[1]},iXX=/&/g,bXE=/</g,joX=/>/g,TxE=/"/g,LSi=/'/g,dxP=/\x00/g,hyX=/[\x00&<>"']/;var O3=!!(Js[0]>>15&1),SEe=!!(Js[0]>>16&1),ZXO=!!(Js[0]&2),Igi=!!(Js[0]&4),agT=!!(Js[0]&32),mxh=!!(Js[0]&512);var Ue=O3?SEe:uU(610401301),YEh=O3?ZXO:uU(513659523),EwX=O3?Igi:uU(568333945),LE8=O3?agT:uU(1331761403),wfT=O3?mxh:uU(103340015);var l1,Ahh=_.i1.navigator;l1=Ahh?Ahh.userAgentData||null:null;var M8;_.$T=function(W,O){return Array.prototype.indexOf.call(W,O,void 0)};
_.$X=function(W,O,b){Array.prototype.forEach.call(W,O,b)};
_.iM=function(W,O,b){return Array.prototype.filter.call(W,O,b)};
_.RG=function(W,O,b){return Array.prototype.map.call(W,O,b)};
M8=function(W,O,b){return Array.prototype.some.call(W,O,b)};
_.cWh=function(W,O,b){return Array.prototype.every.call(W,O,b)};var bM=function(W){bM[" "](W);return W};
bM[" "]=function(){};
var oG=function(W,O){try{return bM(W[O]),!0}catch(b){}return!1},UCE=function(W,O,b,T){T=T?T(O):O;
return Object.prototype.hasOwnProperty.call(W,T)?W[T]:W[T]=b(O)};var XfX,uq,Uxh,lgX,PYQ,pfq,uGX,RyX,KSi,vw8,RdX,owh,Qo8,rh8,DxX,xxh;_.nji=function(){return _.i1.navigator||null};
XfX=oq();_.jb=LX8();uq=Rq("Edge");Uxh=uq||_.jb;_.TR=Rq("Gecko")&&!(_.mX(_.AX(),"WebKit")&&!Rq("Edge"))&&!(Rq("Trident")||Rq("MSIE"))&&!Rq("Edge");_.Lf=_.mX(_.AX(),"WebKit")&&!Rq("Edge");lgX=_.Lf&&Rq("Mobile");_.eyh=_.YeX();PYQ=_.ETh();pfq=(xT()?l1.platform==="Linux":Rq("Linux"))||_.w2T();uGX=_.ai8();RyX=mPT();KSi=Rq("iPad");vw8=Rq("iPod");_.gwQ=_.zX();RdX=_.mX(_.AX(),"KaiOS");owh=function(){var W=_.i1.document;return W?W.documentMode:void 0};
a:{var kv8="",soX=function(){var W=_.AX();if(_.TR)return/rv:([^\);]+)(\)|;)/.exec(W);if(uq)return/Edge\/([\d\.]+)/.exec(W);if(_.jb)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(W);if(_.Lf)return/WebKit\/(\S+)/.exec(W);if(XfX)return/(?:Version)[ \/]?(\S+)/.exec(W)}();
soX&&(kv8=soX?soX[1]:"");if(_.jb){var BxQ=owh();if(BxQ!=null&&BxQ>parseFloat(kv8)){Qo8=String(BxQ);break a}}Qo8=kv8}rh8=Qo8;DxX={};_.dQ=function(W){return UCE(DxX,W,function(){return _.w8(rh8,W)>=0})};
if(_.i1.document&&_.jb){var zyi=owh();xxh=zyi?zyi:parseInt(rh8,10)||void 0}else xxh=void 0;_.CYX=xxh;var XbO,Up2,qE1;_.h$=kT();XbO=mPT()||Rq("iPod");Up2=Rq("iPad");qE1=_.h88();_.Sb=_.se();_.zZ=_.B2()&&!_.zX();var nw8,Zb,MLX,WgT,GvQ,fg2;nw8={};Zb=null;MLX=_.TR||_.Lf||typeof _.i1.btoa=="function";_.WM=function(W,O){O===void 0&&(O=0);fg2();O=nw8[O];for(var b=Array(Math.floor(W.length/3)),T=O[64]||"",L=0,h=0;L<W.length-2;L+=3){var Z=W[L],a=W[L+1],m=W[L+2],w=O[Z>>2];Z=O[(Z&3)<<4|a>>4];a=O[(a&15)<<2|m>>6];m=O[m&63];b[h++]=w+Z+a+m}w=0;m=T;switch(W.length-L){case 2:w=W[L+1],m=O[(w&15)<<2]||T;case 1:W=W[L],b[h]=O[W>>2]+O[(W&3)<<4|w>>4]+m+T}return b.join("")};
WgT=function(W){var O="";GvQ(W,function(b){O+=String.fromCharCode(b)});
return O};
_.mK8=function(W){var O=[];GvQ(W,function(b){O.push(b)});
return O};
_.w1=function(W){var O=W.length,b=O*3/4;b%3?b=Math.floor(b):_.aq("=.",W[O-1])&&(b=_.aq("=.",W[O-2])?b-2:b-1);var T=new Uint8Array(b),L=0;GvQ(W,function(h){T[L++]=h});
return L!==b?T.subarray(0,L):T};
GvQ=function(W,O){function b(m){for(;T<W.length;){var w=W.charAt(T++),A=Zb[w];if(A!=null)return A;if(!_.Zi(w))throw Error("E`"+w);}return m}
fg2();for(var T=0;;){var L=b(-1),h=b(0),Z=b(64),a=b(64);if(a===64&&L===-1)break;O(L<<2|h>>4);Z!=64&&(O(h<<4&240|Z>>2),a!=64&&O(Z<<6&192|a))}};
fg2=function(){if(!Zb){Zb={};for(var W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),O=["+/=","+/","-_=","-_.","-_"],b=0;b<5;b++){var T=W.concat(O[b].split(""));nw8[b]=T;for(var L=0;L<T.length;L++){var h=T[L];Zb[h]===void 0&&(Zb[h]=L)}}}};var xPT=typeof Uint8Array!=="undefined",vT2=!_.jb&&typeof btoa==="function",gTq=/[-_.]/g,R8q={"-":"+",_:"/",".":"="},nH={};var qz,t1Q;qz=function(W,O){if(O!==nH)throw Error("G");this.JSC$6815_value_=W;if(W!=null&&W.length===0)throw Error("F");};
_.fH=function(){return HXT||(HXT=new qz(null,nH))};
t1Q=function(W){return new Uint8Array(rA(W)||0)};
qz.prototype.isEmpty=function(){return this.JSC$6815_value_==null};
qz.prototype.sizeBytes=function(){var W=rA(this);return W?W.length:0};
var rA=function(W){if(nH!==nH)throw Error("G");var O=W.JSC$6815_value_;O=O==null||xPT&&O!=null&&O instanceof Uint8Array?O:typeof O==="string"?oTh(O):null;return O==null?O:W.JSC$6815_value_=O},HXT;var kX2=void 0;var o7=typeof Symbol==="function"&&typeof Symbol()==="symbol",$xO=g1("jas",void 0,!0),V2=g1(void 0,"0di"),Qf=g1(void 0,"1oa"),uk=g1(void 0,Symbol()),kwe=g1(void 0,"0ub"),B1T=g1(void 0,"0ubs"),xZh=g1(void 0,"0ubsb"),N1X=g1(void 0,"0actk"),tg=g1("m_m","messagePrototypeMarker",!0),fSi=g1(void 0,"vps"),g$X=g1();var B8P,sqQ,Ut,V1Q;B8P={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};sqQ=Object.defineProperties;_.Qq=o7?$xO:"internalArrayState";V1Q=[];BN(V1Q,7);Ut=Object.freeze(V1Q);var $7={},x$={},Nx1=function(W,O,b){this.iterable=W;this.mapper=O;this.thisArg=b};
Nx1.prototype.next=function(){var W=this.iterable.next();W.done||(W.value=this.mapper.call(this.thisArg,W.value));return W};
Nx1.prototype[Symbol.iterator]=function(){return this};
var M1X=Object.freeze({}),Vq={};_.uY1=J9(function(W){return W!==null&&W!==void 0});var fi1=J9(function(W){return typeof W==="number"}),nTe=J9(function(W){return typeof W==="string"}),GXQ=J9(function(W){return typeof W==="boolean"}),Jh8=J9(function(W){return W!=null&&typeof W==="object"&&typeof W.then==="function"}),ud2=J9(function(W){return typeof W==="function"}),ht=J9(function(W){return!!W&&(typeof W==="object"||typeof W==="function")});var cN=typeof _.i1.BigInt==="function"&&typeof _.i1.BigInt(0)==="bigint";var CU=J9(function(W){return cN?W>=chX&&W<=FST:W[0]==="-"?HEh(W,yhX):HEh(W,W4Q)}),yhX=Number.MIN_SAFE_INTEGER.toString(),chX=cN?BigInt(Number.MIN_SAFE_INTEGER):void 0,W4Q=Number.MAX_SAFE_INTEGER.toString(),FST=cN?BigInt(Number.MAX_SAFE_INTEGER):void 0;var OsX=typeof Uint8Array.prototype.slice==="function",yq=0,W9=0,cM;var s5,DP,P9,x7,JXX;s5=typeof BigInt==="function"?BigInt.asIntN:void 0;_.z1=typeof BigInt==="function"?BigInt.asUintN:void 0;DP=Number.isSafeInteger;P9=Number.isFinite;x7=Math.trunc;JXX=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var GwQ={};var KnE={},is2=function(){try{var W=function(){return gL2(Map,[],this.constructor)};
_.R(W,Map);bM(new W);return!1}catch(O){return!0}}(),I6=function(){this.JSC$6843_map_=new Map};
_.d=I6.prototype;_.d.get=function(W){return this.JSC$6843_map_.get(W)};
_.d.set=function(W,O){this.JSC$6843_map_.set(W,O);this.size=this.JSC$6843_map_.size;return this};
_.d.delete=function(W){W=this.JSC$6843_map_.delete(W);this.size=this.JSC$6843_map_.size;return W};
_.d.clear=function(){this.JSC$6843_map_.clear();this.size=this.JSC$6843_map_.size};
_.d.has=function(W){return this.JSC$6843_map_.has(W)};
_.d.entries=function(){return this.JSC$6843_map_.entries()};
_.d.keys=function(){return this.JSC$6843_map_.keys()};
_.d.values=function(){return this.JSC$6843_map_.values()};
_.d.forEach=function(W,O){return this.JSC$6843_map_.forEach(W,O)};
I6.prototype[Symbol.iterator]=function(){return this.entries()};
var Ot=function(){if(is2)return Object.setPrototypeOf(I6.prototype,Map.prototype),Object.defineProperties(I6.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),I6;var W=function(){return gL2(Map,[],this.constructor)};
_.R(W,Map);return W}(),NZ=function(W,O,b,T){b=b===void 0?lSX:b;
T=T===void 0?lSX:T;var L=Ot.call(this)||this;L.arrayState=W[_.Qq]|0;L.valueCtor=O;L.keyToApi=b;L.valueToApi=L.valueCtor?PfT:T;for(var h=0;h<W.length;h++){var Z=W[h],a=b(Z[0],!1,!0),m=Z[1];O?m===void 0&&(m=null):m=T(Z[1],!1,!0,void 0,void 0,L.arrayState);Ot.prototype.set.call(L,a,m)}return L};
_.R(NZ,Ot);var bsE=function(W){if(W.arrayState&2)throw Error("K");};
_.d=NZ.prototype;_.d.clear=function(){bsE(this);Ot.prototype.clear.call(this)};
_.d.delete=function(W){bsE(this);return Ot.prototype.delete.call(this,this.keyToApi(W,!0,!1))};
_.d.entries=function(){if(this.valueCtor){var W=Ot.prototype.keys.call(this);W=new Nx1(W,pNE,this)}else W=Ot.prototype.entries.call(this);return W};
_.d.values=function(){if(this.valueCtor){var W=Ot.prototype.keys.call(this);W=new Nx1(W,NZ.prototype.get,this)}else W=Ot.prototype.values.call(this);return W};
_.d.forEach=function(W,O){this.valueCtor?Ot.prototype.forEach.call(this,function(b,T,L){W.call(O,L.get(T),T,L)}):Ot.prototype.forEach.call(this,W,O)};
_.d.set=function(W,O){bsE(this);W=this.keyToApi(W,!0,!1);return W==null?this:O==null?(Ot.prototype.delete.call(this,W),this):Ot.prototype.set.call(this,W,this.valueToApi(O,!0,!0,this.valueCtor,!1,this.arrayState))};
_.d.has=function(W){return Ot.prototype.has.call(this,this.keyToApi(W,!1,!1))};
_.d.get=function(W){W=this.keyToApi(W,!1,!1);var O=Ot.prototype.get.call(this,W);if(O!==void 0){var b=this.valueCtor;return b?(b=this.valueToApi(O,!1,!0,b,this.callToMutableOnAccess,this.arrayState),b!==O&&Ot.prototype.set.call(this,W,b),b):O}};
NZ.prototype[Symbol.iterator]=function(){return this.entries()};
NZ.prototype.toJSON=void 0;var RLE;var xz8=function(){},c9=function(W,O){for(var b in W)!isNaN(b)&&O(W,+b,W[b])},zL2=function(W){var O=new xz8;
c9(W,function(b,T,L){O[T]=hg(L)});
O.reviveUnknownFields=W.reviveUnknownFields;return O},o$Q={reviveIntoImmutable:!0};var Dzi;var HHX,t5P;var jUQ,RR,YG,eN,Tjq,lM,A8,L42,dFh,R6,hEX,Kf,o6,QK;jUQ=_.FU(0);_.a6={};_.mD=function(W,O,b,T,L){O=RR(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O,b,L);if(O!==null||T&&W.noLegacyNull!==x$)return O};
RR=function(W,O,b,T){if(O===-1)return null;var L=O+(b?0:-1),h=W.length-1;if(!(h<1+(b?0:-1))){if(L>=h){var Z=W[h];if(Z!=null&&typeof Z==="object"&&Z.constructor===Object){b=Z[O];var a=!0}else if(L===h)b=Z;else return}else b=W[L];if(T&&b!=null){T=T(b);if(T==null)return T;if(!Object.is(T,b))return a?Z[O]=T:W[L]=T,T}return b}};
_.T7=function(W,O,b,T){Et(W);var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;X5(L,L[_.Qq]|0,O,b,T);return W};
_.Ys=function(W,O,b){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kh(W,W[_.Qq]|0,O,b)!==void 0};
_.E3=function(W,O,b,T){var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return kh(L,L[_.Qq]|0,O,eN(W,T,b))!==void 0};
_.W5=function(W){return W===M1X?2:4};
_.wQ=function(W,O){W=_.mD(W,O,void 0,void 0,W88);return W==null?_.fH():W};
YG=function(W,O,b,T){Et(W);var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=L[_.Qq]|0;if(T==null){var Z=iUE(L);if(bUQ(Z,L,h,b)===O)Z.set(b,0);else return W}else h=jNh(L,h,b,O);X5(L,h,O,T);return W};
_.XS=function(W,O,b,T){var L=W[_.Qq]|0,h=Mz(L);L=jNh(W,L,b,O,h);X5(W,L,O,T,h)};
eN=function(W,O,b){return _.U3(W,O)===b?b:-1};
_.U3=function(W,O){W=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bUQ(iUE(W),W,void 0,O,void 0)};
Tjq=function(W,O,b){var T=W[_.Qq]|0,L=Mz(T),h=RR(W,b,L);if(h!=null&&h[tg]===$7){if(!CH(h))return Yh(h),h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var Z=h.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(h)&&(Z=h);if(Z){var a=Z[_.Qq]|0;a&2&&(Z=dA(Z,a))}Z=L0(Z,O,!0);Z!==h&&X5(W,T,b,Z,L);return Z};
_.bP=function(W,O,b,T){var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=L[_.Qq]|0;O=kh(L,h,O,b,T);if(O==null)return O;h=L[_.Qq]|0;if(!CH(W,h)){var Z=eLO(O);Z!==O&&(Yh(W)&&(L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,h=L[_.Qq]|0),O=Z,h=X5(L,h,b,O,T),AA(L,h))}return O};
_.yr=function(W,O,b,T){var L=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return TgX(W,L,L[_.Qq]|0,O,b,T,!1,!0)};
_.jL=function(W,O,b,T){b=L8T(b);_.T7(W,O,b,T);b&&!CH(b)&&AA(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
_.Tb=function(W,O,b,T){T=L8T(T);YG(W,O,b,T);T&&!CH(T)&&AA(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return W};
lM=function(W,O,b){Et(W);var T=W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,L=T[_.Qq]|0;if(b==null)return X5(T,L,O),W;for(var h=b===Ut?7:b[_.Qq]|0,Z=h,a=PM(h),m=a||Object.isFrozen(b),w=!0,A=!0,X=0;X<b.length;X++){var l=b[X];a||(l=CH(l),w&&(w=!l),A&&(A=l))}a||(h=w?13:5,h=A?h&-4097:h|4096);m&&h===Z||(b=hg(b),Z=0,h=l_(h,L));h!==Z&&BN(b,h);L=X5(T,L,O,b);2&h||!(4096&h||16&h)||AA(T,L);return W};
A8=function(W,O,b,T){hRh(W,O,b,T);return W};
L42=function(W,O,b){hRh(W,O,eb,void 0,b,1,!0);return W};
_.Pk=function(W,O,b){W=_.mD(W,O,void 0,b);O=typeof W;W=W==null?W:O==="bigint"?_.FU((0,_.z1)(64,W)):_.pU(W)?O==="string"?_.IST(W):_.Sv2(W):void 0;return W};
_.pf=function(W,O){var b=b===void 0?!1:b;var T;return(T=_.uOT(_.mD(W,O)))!=null?T:b};
_.OV=function(W,O,b){b=b===void 0?0:b;var T;return(T=_.gg(_.mD(W,O)))!=null?T:b};
dFh=function(W,O){var b=b===void 0?0:b;W=_.oN(_.mD(W,O));return W!=null?W:b};
R6=function(W,O,b){b=b===void 0?jUQ:b;var T;return(T=_.YvE(_.mD(W,O)))!=null?T:b};
hEX=function(W){var O=O===void 0?jUQ:O;var b;return(b=_.Pk(W,23))!=null?b:O};
Kf=function(W,O){var b=b===void 0?0:b;var T;return(T=_.mD(W,O,void 0,void 0,_.E5))!=null?T:b};
_.vk=function(W,O,b,T){b=b===void 0?"":b;var L;return(L=_.fU(_.mD(W,O,T)))!=null?L:b};
_.gQ=function(W,O){var b=b===void 0?0:b;var T;return(T=_.KU(_.mD(W,O)))!=null?T:b};
o6=function(W,O){var b=b===void 0?"0":b;W=mzX(_.mD(W,O),!0);return W!=null?W:b};
QK=function(W,O,b){return _.vk(W,eN(W,b,O))};
_.ks=function(W,O,b,T){return _.bP(W,O,eN(W,T,b),void 0)};
_.wD=function(W,O){return _.fU(_.mD(W,O,void 0,_.a6))};
_.TP=function(W,O,b){return _.T7(W,O,MQe(b))};
_.os=function(W,O,b){return _.vM(W,O,MQe(b),!1)};
_.s3=function(W,O,b){return _.T7(W,O,_.v9(b))};
_.pB=function(W,O,b){return _.T7(W,O,rg(b))};
_.aG=function(W,O,b){return _.T7(W,O,nU(b))};
_.JT=function(W,O,b,T){return _.vM(W,O,nU(b),"",T)};
_.jq=function(W,O,b){return _.T7(W,O,b==null?b:_.RN(b))};
_.Bk=function(W,O,b){return _.vM(W,O,b==null?b:_.RN(b),0)};var BM=function(W,O,b){this.buffer=W;if(b&&!O)throw Error();this.JSC$6855_isImmutable=O};var SN1=function(W,O,b,T){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6858_start_=0;this.init(W,O,b,T)},rQ,Inq,anP,YN2,g71,Zs8;
_.d=SN1.prototype;_.d.init=function(W,O,b,T){var L=T===void 0?{}:T;T=L.aliasBytesFields===void 0?!1:L.aliasBytesFields;L=L.treatNewDataAsImmutable===void 0?!1:L.treatNewDataAsImmutable;this.aliasBytesFields=T;this.treatNewDataAsImmutable=L;W&&(W=S5T(W,this.treatNewDataAsImmutable),this.bytes_=W.buffer,this.bytesAreImmutable_=W.JSC$6855_isImmutable,this.JSC$6858_start_=O||0,this.end_=b!==void 0?this.JSC$6858_start_+b:this.bytes_.length,this.cursor_=this.JSC$6858_start_)};
_.d.free=function(){this.clear();Zs8.length<100&&Zs8.push(this)};
_.d.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6858_start_=0;this.aliasBytesFields=!1};
_.d.reset=function(){this.cursor_=this.JSC$6858_start_};
_.d.atEnd=function(){return this.cursor_==this.end_};
_.Db=function(W,O){var b=0,T=0,L=0,h=W.bytes_,Z=W.cursor_;do{var a=h[Z++];b|=(a&127)<<L;L+=7}while(L<32&&a&128);L>32&&(T|=(a&127)>>4);for(L=3;L<32&&a&128;L+=7)a=h[Z++],T|=(a&127)<<L;rQ(W,Z);if(a<128)return O(b>>>0,T>>>0);throw Error("X");};
rQ=function(W,O){W.cursor_=O;if(O>W.end_)throw Error("Y`"+O+"`"+W.end_);};
_.xs=function(W){var O=W.bytes_,b=W.cursor_,T=O[b++],L=T&127;if(T&128&&(T=O[b++],L|=(T&127)<<7,T&128&&(T=O[b++],L|=(T&127)<<14,T&128&&(T=O[b++],L|=(T&127)<<21,T&128&&(T=O[b++],L|=T<<28,T&128&&O[b++]&128&&O[b++]&128&&O[b++]&128&&O[b++]&128&&O[b++]&128)))))throw Error("X");rQ(W,b);return L};
_.Cf=function(W){var O=W.bytes_,b=W.cursor_,T=O[b],L=O[b+1],h=O[b+2];O=O[b+3];rQ(W,W.cursor_+4);return(T<<0|L<<8|h<<16|O<<24)>>>0};
Inq=function(W){var O=_.Cf(W);W=_.Cf(W);return VQ2(O,W)};
anP=function(W){var O=_.Cf(W),b=_.Cf(W);W=(b>>31)*2+1;var T=b>>>20&2047;O=4294967296*(b&1048575)+O;return T==2047?O?NaN:W*Infinity:T==0?W*4.9E-324*O:W*Math.pow(2,T-1075)*(O+4503599627370496)};
_.mF8=function(W){for(var O=0,b=W.cursor_,T=b+10,L=W.bytes_;b<T;){var h=L[b++];O|=h;if((h&128)===0)return rQ(W,b),!!(O&127)}throw Error("X");};
YN2=function(W,O){if(O<0)throw Error("Z`"+O);var b=W.cursor_,T=b+O;if(T>W.end_)throw Error("Y`"+(W.end_-b)+"`"+O);W.cursor_=T;return b};
g71=function(W,O){if(O==0)return _.fH();var b=YN2(W,O);W.aliasBytesFields&&W.bytesAreImmutable_?b=W.bytes_.subarray(b,b+O):(W=W.bytes_,O=b+O,b=b===O?new Uint8Array(0):OsX?W.slice(b,O):new Uint8Array(W.subarray(b,O)));return b.length==0?_.fH():new qz(b,nH)};
Zs8=[];var wCX=function(W,O,b,T){if(Zs8.length){var L=Zs8.pop();L.init(W,O,b,T);W=L}else W=new SN1(W,O,b,T);this.decoder_=W;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;E5Q(this,T)},E5Q=function(W,O){O=O===void 0?{}:O;
W.discardUnknownFields=O.discardUnknownFields===void 0?!1:O.discardUnknownFields},k1X=function(W,O,b,T){if(ABX.length){var L=ABX.pop();
E5Q(L,T);L.decoder_.init(W,O,b,T);return L}return new wCX(W,O,b,T)},K8e,G9,XCX,ABX;
wCX.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ABX.length<100&&ABX.push(this)};
wCX.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
K8e=function(W){if(W.decoder_.atEnd())return!1;W.fieldCursor_=W.decoder_.cursor_;var O=_.xs(W.decoder_)>>>0,b=O>>>3;O&=7;if(!(O>=0&&O<=5))throw Error("T`"+O+"`"+W.fieldCursor_);if(b<1)throw Error("U`"+b+"`"+W.fieldCursor_);W.nextField_=b;W.nextWireType_=O;return!0};
G9=function(W){switch(W.nextWireType_){case 0:W.nextWireType_!=0?G9(W):_.mF8(W.decoder_);break;case 1:W=W.decoder_;rQ(W,W.cursor_+8);break;case 2:if(W.nextWireType_!=2)G9(W);else{var O=_.xs(W.decoder_)>>>0;W=W.decoder_;rQ(W,W.cursor_+O)}break;case 5:W=W.decoder_;rQ(W,W.cursor_+4);break;case 3:O=W.nextField_;do{if(!K8e(W))throw Error("V");if(W.nextWireType_==4){if(W.nextField_!=O)throw Error("W");break}G9(W)}while(1);break;default:throw Error("T`"+W.nextWireType_+"`"+W.fieldCursor_);}};
XCX=function(W,O,b){var T=W.decoder_.end_,L=_.xs(W.decoder_)>>>0,h=W.decoder_.cursor_+L,Z=h-T;Z<=0&&(W.decoder_.end_=h,b(O,W,void 0,void 0,void 0),Z=h-W.decoder_.cursor_);if(Z)throw Error("S`"+L+"`"+(L-Z));W.decoder_.cursor_=h;W.decoder_.end_=T};
_.UFO=function(W){var O=_.xs(W.decoder_)>>>0;W=W.decoder_;var b=YN2(W,O);W=W.bytes_;if(WSq){var T=W,L;(L=yfE)||(L=yfE=new TextDecoder("utf-8",{fatal:!0}));O=b+O;T=b===0&&O===T.length?T:T.subarray(b,O);try{var h=L.decode(T)}catch(w){if(Fa8===void 0){try{L.decode(new Uint8Array([128]))}catch(A){}try{L.decode(new Uint8Array([97])),Fa8=!0}catch(A){Fa8=!1}}!Fa8&&(yfE=void 0);throw w;}}else{h=b;O=h+O;b=[];for(var Z=null,a,m;h<O;)a=W[h++],a<128?b.push(a):a<224?h>=O?Oe():(m=W[h++],a<194||(m&192)!==128?(h--,
Oe()):b.push((a&31)<<6|m&63)):a<240?h>=O-1?Oe():(m=W[h++],(m&192)!==128||a===224&&m<160||a===237&&m>=160||((L=W[h++])&192)!==128?(h--,Oe()):b.push((a&15)<<12|(m&63)<<6|L&63)):a<=244?h>=O-2?Oe():(m=W[h++],(m&192)!==128||(a<<28)+(m-144)>>30!==0||((L=W[h++])&192)!==128||((T=W[h++])&192)!==128?(h--,Oe()):(a=(a&7)<<18|(m&63)<<12|(L&63)<<6|T&63,a-=65536,b.push((a>>10&1023)+55296,(a&1023)+56320))):Oe(),b.length>=8192&&(Z=WXO(Z,b),b.length=0);h=WXO(Z,b)}return h};
_.lnE=function(W){var O=_.xs(W.decoder_)>>>0;return g71(W.decoder_,O)};
_.eEP=function(W,O,b){var T=_.xs(W.decoder_)>>>0;for(T=W.decoder_.cursor_+T;W.decoder_.cursor_<T;)b.push(O(W.decoder_))};
ABX=[];var PA8=function(W,O){this.JSC$6865_lo=W>>>0;this.JSC$6865_hi=O>>>0},REX=function(W){if(!W)return pCX||(pCX=new PA8(0,0));
if(!/^\d+$/.test(W))return null;dg(W);return new PA8(yq,W9)},pCX,HUX=function(W,O){this.JSC$6867_lo=W>>>0;
this.JSC$6867_hi=O>>>0},n7X=function(W){if(!W)return K4X||(K4X=new HUX(0,0));
if(!/^-?\d+$/.test(W))return null;dg(W);return new HUX(yq,W9)},K4X;var v5P=function(){this.JSC$6869_buffer_=[]},fP8,g5O;
v5P.prototype.length=function(){return this.JSC$6869_buffer_.length};
v5P.prototype.end=function(){var W=this.JSC$6869_buffer_;this.JSC$6869_buffer_=[];return W};
fP8=function(W,O,b){for(;b>0||O>127;)W.JSC$6869_buffer_.push(O&127|128),O=(O>>>7|b<<25)>>>0,b>>>=7;W.JSC$6869_buffer_.push(O)};
g5O=function(W,O){for(;O>127;)W.JSC$6869_buffer_.push(O&127|128),O>>>=7;W.JSC$6869_buffer_.push(O)};
_.tB8=function(W,O){if(O>=0)g5O(W,O);else{for(var b=0;b<9;b++)W.JSC$6869_buffer_.push(O&127|128),O>>=7;W.JSC$6869_buffer_.push(1)}};
_.F5=function(W,O){W.JSC$6869_buffer_.push(O>>>0&255);W.JSC$6869_buffer_.push(O>>>8&255);W.JSC$6869_buffer_.push(O>>>16&255);W.JSC$6869_buffer_.push(O>>>24&255)};var o5e,Vf,VBh,uD1;o5e=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new v5P};
Vf=function(W,O){O.length!==0&&(W.blocks_.push(O),W.totalLength_+=O.length)};
_.mZX=function(W,O){_.JA(W,O,2);O=W.encoder_.end();Vf(W,O);O.push(W.totalLength_);return O};
_.Y52=function(W,O){var b=O.pop();for(b=W.totalLength_+W.encoder_.length()-b;b>127;)O.push(b&127|128),b>>>=7,W.totalLength_++;O.push(b);W.totalLength_++};
_.JA=function(W,O,b){g5O(W.encoder_,O*8+b)};
VBh=function(W,O,b){if(b!=null){switch(typeof b){case "string":REX(b)}_.JA(W,O,1);switch(typeof b){case "number":W=W.encoder_;tQX(b);_.F5(W,yq);_.F5(W,W9);break;case "bigint":b=BigInt.asUintN(64,b);b=new PA8(Number(b&BigInt(4294967295)),Number(b>>BigInt(32)));W=W.encoder_;O=b.JSC$6865_hi;_.F5(W,b.JSC$6865_lo);_.F5(W,O);break;default:b=REX(b),W=W.encoder_,O=b.JSC$6865_hi,_.F5(W,b.JSC$6865_lo),_.F5(W,O)}}};
uD1=function(W,O,b){_.JA(W,O,2);g5O(W.encoder_,b.length);Vf(W,W.encoder_.end());Vf(W,b)};var ZU8,sUX,BjQ,xF1,zEX;ZU8=DG();_.QU2=DG();_.kmh=DG();sUX=DG();BjQ=DG();_.rB8=DG();_.q$=DG();_.DF1=DG();xF1=DG();zEX=DG();_.CAX=DG();_.qN2=DG();_.qA=function(W,O,b){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,O,b)};
_.qA.prototype.toJSON=function(){return b_(this)};
_.qA.prototype.serialize=function(W){return JSON.stringify(b_(this,W))};
var b01=function(W,O){if(O==null||O=="")return new W;O=JSON.parse(O);if(!Array.isArray(O))throw Error("$");return new W(DPi(O))};
_.qA.prototype.getExtension=function(W){s78(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,W.fieldIndex);Q7T(this,W.fieldIndex);return W.ctor?W.isRepeated?W.getExtensionFn(this,W.ctor,W.fieldIndex,_.W5(),W.JSC$6880_hasMessageId):W.getExtensionFn(this,W.ctor,W.fieldIndex,W.JSC$6880_hasMessageId):W.isRepeated?W.getExtensionFn(this,W.fieldIndex,_.W5(),W.JSC$6880_hasMessageId):W.getExtensionFn(this,W.fieldIndex,W.defaultValue,W.JSC$6880_hasMessageId)};
_.qA.prototype.clone=function(){var W=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,O=W[_.Qq]|0;return SW(this,W,O)?hA(this,W,!0):new this.constructor(dA(W,O,!1))};
_.qA.prototype[tg]=$7;_.qA.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var z9=function(W,O,b){this.$$binaryReaderFn=W;this.$$binaryWriterFn=O;W=MZ(ZU8);this.$$isMsg=!!W&&b===W||!1},X9Q=IPT(function(W,O,b,T,L){if(W.nextWireType_!==2)return!1;
XCX(W,Tjq(O,T,b),L);return!0},E7q),UZq=IPT(function(W,O,b,T,L){if(W.nextWireType_!==2)return!1;
XCX(W,Tjq(O,T,b),L);return!0},E7q),tA=Symbol(),n0=Symbol(),RR8=Symbol(),Bg8=Symbol(),o7O=Symbol(),w9h,Agq;var W7Q,n5h,fnh,Gmh,HsO,tMO,$FT,VM1,NjE,MM8,uJ8,cBP,F4X,Wyh,OJT;W7Q=function(W,O){var b=new o5e;rgQ(W.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,C0(tA,HM,$h,O));Vf(b,b.encoder_.end());W=new Uint8Array(b.totalLength_);O=b.blocks_;for(var T=O.length,L=0,h=0;h<T;h++){var Z=O[h];W.set(Z,L);L+=Z.length}b.blocks_=[W];return W};
n5h=_.NA(function(W,O,b){if(W.nextWireType_!==1)return!1;_.u_(O,b,anP(W.decoder_));return!0},q5i,zEX);
fnh=_.NA(function(W,O,b,T){if(W.nextWireType_!==1)return!1;_.XS(O,b,T,anP(W.decoder_));return!0},q5i,zEX);
Gmh=_.NA(function(W,O,b,T){if(W.nextWireType_!==5)return!1;var L=_.Cf(W.decoder_);W=(L>>31)*2+1;var h=L>>>23&255;L&=8388607;_.XS(O,b,T,h==255?L?NaN:W*Infinity:h==0?W*1.401298464324817E-45*L:W*Math.pow(2,h-150)*(L+8388608));return!0},function(W,O,b){O=_.E5(O);
O!=null&&(_.JA(W,b,5),W=W.encoder_,b=cM||(cM=new DataView(new ArrayBuffer(8))),b.setFloat32(0,+O,!0),W9=0,yq=b.getUint32(0,!0),_.F5(W,yq))},xF1);
_.nf=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;_.u_(O,b,_.Db(W.decoder_,bk));return!0},_.yf,_.q$);
HsO=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;W=_.Db(W.decoder_,bk);_.u_(O,b,W===0?void 0:W);return!0},_.yf,_.q$);
tMO=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.Db(W.decoder_,bk));return!0},_.yf,_.q$);
_.ff=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;_.u_(O,b,_.xs(W.decoder_));return!0},$Z8,sUX);
$FT=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;W=_.xs(W.decoder_);_.u_(O,b,W===0?void 0:W);return!0},$Z8,sUX);
VM1=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.xs(W.decoder_));return!0},$Z8,sUX);
NjE=_.NA(function(W,O,b){if(W.nextWireType_!==1)return!1;_.u_(O,b,Inq(W.decoder_));return!0},_.Nge,_.DF1);
MM8=_.Ck1(function(W,O,b){if(W.nextWireType_!==1&&W.nextWireType_!==2)return!1;O=_.gA(O,O[_.Qq]|0,b);W.nextWireType_==2?_.eEP(W,Inq,O):O.push(Inq(W.decoder_));return!0},function(W,O,b){O=_.zRT(wNT,O,!1);
if(O!=null)for(var T=0;T<O.length;T++)VBh(W,b,O[T])},_.DF1);
_.GR=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;_.u_(O,b,_.mF8(W.decoder_));return!0},_.MBe,_.QU2);
uJ8=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.mF8(W.decoder_));return!0},_.MBe,_.QU2);
_.Hk=_.NA(function(W,O,b){if(W.nextWireType_!==2)return!1;_.u_(O,b,_.UFO(W));return!0},_.Jge,_.kmh);
_.JBE=_.NA(function(W,O,b,T){if(W.nextWireType_!==2)return!1;_.XS(O,b,T,_.UFO(W));return!0},_.Jge,_.kmh);
cBP=_.Ck1(function(W,O,b){if(W.nextWireType_!==2)return!1;W=_.UFO(W);_.gA(O,O[_.Qq]|0,b).push(W);return!0},function(W,O,b){O=_.zRT(_.fU,O,!0);
if(O!=null)for(var T=0;T<O.length;T++){var L=W,h=b,Z=O[T];Z!=null&&uD1(L,h,jq2(Z))}},_.kmh);
F4X=void 0;F4X=F4X===void 0?ZU8:F4X;_.t$=new z9(function(W,O,b,T,L){if(W.nextWireType_!==2)return!1;T=L0(void 0,T,!0);_.gA(O,O[_.Qq]|0,b).push(T);XCX(W,T,L);return!0},function(W,O,b,T,L){if(Array.isArray(O))for(var h=0;h<O.length;h++)cgO(W,O[h],b,T,L)},F4X);
_.$s=IPT(function(W,O,b,T,L,h){if(W.nextWireType_!==2)return!1;var Z=O[_.Qq]|0;jNh(O,Z,h,b,Mz(Z));O=Tjq(O,T,b);XCX(W,O,L);return!0},cgO);
_.yBh=_.NA(function(W,O,b){if(W.nextWireType_!==2)return!1;_.u_(O,b,_.lnE(W));return!0},_.F8Q,_.CAX);
Wyh=_.NA(function(W,O,b,T){if(W.nextWireType_!==2)return!1;_.XS(O,b,T,_.lnE(W));return!0},_.F8Q,_.CAX);
OJT=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.xs(W.decoder_)>>>0);return!0},function(W,O,b){O=_.oN(O);
O!=null&&O!=null&&(_.JA(W,b,0),g5O(W.encoder_,O))},BjQ);
_.VK=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;_.u_(O,b,_.xs(W.decoder_));return!0},_.yge,_.qN2);var jh8=function(){var W=iJq,O=bJh;this.fieldIndex=175237375;this.ctor=O;this.isRepeated=0;this.getExtensionFn=_.bP;this.defaultValue=void 0;this.JSC$6880_hasMessageId=W.messageId!=null?Vq:void 0};
jh8.prototype.register=function(){bM(this)};var T_q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(T_q,_.qA);var LyX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(LyX,_.qA);var L7X=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(L7X,_.qA);var d71=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(d71,_.qA);var hMP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(hMP,_.qA);var S4q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(S4q,_.qA);var ZJP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ZJP,_.qA);ZJP.prototype.getData=function(){return _.wQ(this,2)};var IJQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(IJQ,_.qA);var aJe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(aJe,_.qA);aJe.prototype.getStyle=function(){return _.bP(this,T_q,1)};var b7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(b7,_.qA);b7.prototype.getPayloadCase=function(){return _.U3(this,Lz)};
b7.prototype.getStyle=function(){return _.ks(this,aJe,6,Lz)};
var m7q=function(){var W=new b7,O=new hMP;return _.Tb(W,7,Lz,O)},Y4q=function(){var W=new b7,O=new S4q;
return _.Tb(W,8,Lz,O)},Lz=[1,
2,3,4,5,6,7,8];var EkE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(EkE,_.qA);var wKh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(wKh,_.qA);var Ak8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Ak8,_.qA);var XKT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(XKT,_.qA);var U7X=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(U7X,_.qA);var lJT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(lJT,_.qA);var eM8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(eM8,_.qA);var Pc8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Pc8,_.qA);Pc8.prototype.getData=function(){return _.wQ(this,2)};var pK8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(pK8,_.qA);var TAi=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(TAi,_.qA);TAi.prototype.getPayloadCase=function(){return _.U3(this,N$)};
var N$=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var M$=function(W,O){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.code=O===void 0?2:O};
_.R(M$,Error);var RMX=Promise;var Ky8=function(W){this.channelPromise=W};
Ky8.prototype.send=function(W,O,b){this.channelPromise.then(function(T){T.send(W,O,b)})};var vke=function(W,O){this.data=W;this.channel=O};
vke.prototype.reply=function(W,O,b){this.channel.send(W,O,b)};var gk8=function(W){this.JSC$6946_port_=W};
gk8.prototype.send=function(W,O,b){b=b===void 0?[]:b;var T=new MessageChannel;okT(T.port1,O);this.JSC$6946_port_.postMessage(W,[T.port2].concat(b))};
var Qhe=function(W,O){okT(W,O);return new gk8(W)},okT=function(W,O){O&&(W.onmessage=function(b){O(new vke(b.data,Qhe(b.ports[0])))})};var kq8=function(W){this.verifier_=W},sh2=function(W){var O=Object.create(null);
(typeof W==="string"?[W]:W).forEach(function(b){if(b==="null")throw Error("ba");O[b]=!0});
return function(b){return O[b]===!0}};_.B_q=function(){if(!_.i1.addEventListener||!Object.defineProperty)return!1;var W=!1,O=Object.defineProperty({},"passive",{get:function(){W=!0}});
try{var b=function(){};
_.i1.addEventListener("test",b,O);_.i1.removeEventListener("test",b,O)}catch(T){}return W}();var rkh;_.uM=function(W){var O=W.destination;var b=W.iframe;var T=W.origin;var L=W.channelName===void 0?"ZNWN1d":W.channelName;var h=W.onMessage===void 0?void 0:W.onMessage;W=W.onEstablished===void 0?void 0:W.onEstablished;return rkh({destination:O,getSource:function(){return b.contentWindow},
originVerifier:T instanceof kq8?T:typeof T==="function"?new kq8(T):new kq8(sh2(T)),channelName:L,onMessage:h,onEstablished:W})};
rkh=function(W){var O=W.destination;var b=W.getSource;var T=W.originVerifier;var L=W.token===void 0?void 0:W.token;var h=W.channelName;var Z=W.onMessage===void 0?void 0:W.onMessage;var a=W.onEstablished===void 0?void 0:W.onEstablished;return new Ky8(new RMX(function(m,w){var A=function(X){X.source&&X.source===b()&&T.verifier_(X.origin)&&(X.data.n||X.data)===h&&(O.removeEventListener("message",A,!1),L&&X.data.t!==L?w(Error("ca`"+h+"`"+L+"`"+X.data.t)):(m(Qhe(X.ports[0],Z)),a&&a(X)))};
O.addEventListener("message",A,!1)}))};var D7P=function(W){try{W()}catch(O){b1(O)}};var zMT=function(W){var O=this;var b=W.getMessageType;var T=W.onUnregisteredMessage===void 0?function(){}:W.onUnregisteredMessage;
var L=W.onBeforeRegisteredMessage===void 0?function(){}:W.onBeforeRegisteredMessage;
W=W.onAfterRegisteredMessage===void 0?function(){}:W.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=b;this.onUnregisteredMessage_=T;this.onBeforeRegisteredMessage_=L;this.onAfterRegisteredMessage_=W;this.onMessage=function(h){return x7E(O,h)}};
zMT.prototype.register=function(W,O){this.registry_.set(W,O);return this};
var x7E=function(W,O){var b=W.getMessageType_(O.data),T=W.registry_.get(b);T?(D7P(function(){return W.onBeforeRegisteredMessage_(O,b)}),D7P(function(){return T(O)}),D7P(function(){return W.onAfterRegisteredMessage_(O,b)})):D7P(function(){return W.onUnregisteredMessage_(O,b)})};var CcO=function(W){this.JSC$6963_channel_=W},nk8,fJQ;
CcO.prototype.send=function(W,O,b){this.JSC$6963_channel_.send(b_(W),O,b)};
_.q48=function(W,O){return function(b){var T=new W(b.data);return O(new vke(T,b.channel))}};
nk8=function(W){return function(O){return W(new vke(O.data,new CcO(O.channel)))}};
fJQ=function(W,O){return nk8(_.q48(W,O))};var Gq8=function(W,O,b,T){this.registry=W;this.delegate=O;this.receiveMessageConstructor=b;this.createInitMessage=T;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},jR2=function(W){var O=new zMT({getMessageType:W.getPayloadCase});
return new Gq8(O,new CcO(_.uM({iframe:W.child,destination:window,origin:W.origin,channelName:W.channelName,onMessage:fJQ(W.receiveMessageConstructor,O.onMessage)})),W.receiveMessageConstructor,W.createInitMessage)},HJ2=function(W,O){W.createInitMessage=O};
Gq8.prototype.send=function(W){if(!this.initialised)throw new M$("Attempted to send a message before initialisation.");this.delegate.send(W)};
var tjQ=function(W,O){return _.I(function(b){if(!W.initialised)throw new M$("Attempted to send a message before initialisation.");return b.return(new Promise(function(T){W.delegate.send(O,fJQ(W.receiveMessageConstructor,T))}))})};
Gq8.prototype.init=function(){var W=this;return _.I(function(O){if(W.initialised)throw new M$("Attempted to initialise twice. The SDK can only be initialised once.");if(W.createInitMessage!==void 0){var b=W.delegate,T=b.send,L=W.createInitMessage;var h=new LyX;var Z=[].concat(_.PG(W.features));h=_.K0(h,1,Z,_.RN);T.call(b,L.call(W,h))}W.initialised=!0;_.aD(O)})};
var J$=function(W,O){if(W.initialised)throw new M$('Attempted to set up API "'+O+'" after initialisation. All APIs must be set up before initialising the SDK.');W.features.add(O);return W.registry};
_.Jq.Object.defineProperties(Gq8.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var $7P=function(W){this.channel=W;this.registered=!1};
$7P.prototype.update=function(W){if(this.channel.isInitialised){if(!this.registered)throw new M$("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var O=new b7;var b=new d71;b=_.TP(b,1,W);O=_.Tb(O,2,Lz,b);this.channel.send(O)}else this.register();this.JSC$6977_audioEnabled=W};
$7P.prototype.register=function(){J$(this.channel,1);this.registered=!0};
$7P.prototype.isAudioEnabled=function(){return this.JSC$6977_audioEnabled};var VjE=function(W){this.channel=W};
_.d=VjE.prototype;_.d.onFirstFrameReady=function(W){J$(this.channel,2).register(11,function(O){O=_.ks(O.data,EkE,11,N$);if(!O)throw new M$("Unexpectedly nonexistent GameFirstFrameReadyEvent");W(_.vk(O,1))})};
_.d.onReady=function(W){J$(this.channel,2).register(4,function(O){O=_.ks(O.data,Ak8,4,N$);if(!O)throw new M$("Unexpectedly nonexistent GameReadyEvent");W(_.vk(O,1))})};
_.d.onLevelComplete=function(W){J$(this.channel,2).register(5,function(O){O=_.ks(O.data,XKT,5,N$);if(!O)throw new M$("Unexpectedly nonexistent LevelCompleteEvent");W(_.vk(O,1),_.OV(O,2))})};
_.d.onGameOver=function(W){J$(this.channel,2).register(6,function(O){O=_.ks(O.data,wKh,6,N$);if(!O)throw new M$("Unexpectedly nonexistent GameOverEvent");W(_.vk(O,1))})};
_.d.pause=function(){var W=this;if(!this.channel.isInitialised)return J$(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new M$("Using unregistered Game Feature: pause.");var O=m7q();return new Promise(function(b){return _.I(function(T){if(T.nextAddress==1)return _.Y(T,tjQ(W.channel,O),2);b();_.aD(T)})})};
_.d.resume=function(){var W=this;if(!this.channel.isInitialised)return J$(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new M$("Using unregistered Game Feature: resume.");var O=Y4q();return new Promise(function(b){return _.I(function(T){if(T.nextAddress==1)return _.Y(T,tjQ(W.channel,O),2);b();_.aD(T)})})};var N_O=function(W){this.channel=W};
N_O.prototype.onReady=function(W){J$(this.channel,5).register(8,function(O){if(!_.ks(O.data,U7X,8,N$))throw new M$("Unexpectedly nonexistent PageReadyEvent");W()})};var Mj2=function(W){this.channel=W};
Mj2.prototype.onChange=function(W){J$(this.channel,3).register(7,function(O){O=_.ks(O.data,lJT,7,N$);if(!O)throw new M$("Unexpectedly nonexistent ScoreEvent");W(_.vk(O,1),_.OV(O,2))})};var u31={load:function(){throw new M$("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new M$("Storage used, but storage.onSave() listener not set!");}},Jkq=function(W){this.channel=W;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},ckh=function(W){J$(W.channel,4).register(2,u31.load).register(3,u31.save);
W.initialSetupDone=!0};
Jkq.prototype.onLoad=function(W){this.initialSetupDone||ckh(this);this.loadRegistered||(this.loadRegistered=!0,J$(this.channel,4).register(2,function(O){var b,T,L;return _.I(function(h){if(h.nextAddress==1){b=_.ks(O.data,eM8,2,N$);if(!b)throw new M$("Unexpectedly nonexistent StorageLoad");T=_.vk(b,1);return _.Y(h,W(T),2)}L=h.yieldResult;var Z=O.reply,a=new b7;var m=new ZJP;m=_.aG(m,1,T);m=_.T7(m,2,_.HN(L,!1));a=_.Tb(a,3,Lz,m);Z.call(O,a);_.aD(h)})}))};
Jkq.prototype.onSave=function(W){this.initialSetupDone||ckh(this);this.saveRegistered||(this.saveRegistered=!0,J$(this.channel,4).register(3,function(O){var b,T,L;return _.I(function(h){if(h.nextAddress==1){b=_.ks(O.data,Pc8,3,N$);if(!b)throw new M$("Unexpectedly nonexistent StorageSave");T=_.vk(b,1);L=t1Q(b.getData());return _.Y(h,W(T,L),2)}var Z=O.reply,a=new b7;var m=new IJQ;m=_.aG(m,1,T);a=_.Tb(a,4,Lz,m);Z.call(O,a);_.aD(h)})}))};var FyO=function(W){this.channel=W};
FyO.prototype.update=function(W){if(!this.channel.features.has(6))throw new M$("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var O=new b7,b=new aJe;W=_.jL(b,1,W);O=_.Tb(O,6,Lz,W);this.channel.send(O)};
FyO.prototype.register=function(){J$(this.channel,6)};var yk8=function(W){this.channel=W;this.userActivityLoggingIntervalMs=0};
yk8.prototype.onUserActivity=function(W,O){this.userActivityLoggingIntervalMs=O;J$(this.channel,7).register(9,function(b){if(!_.ks(b.data,pK8,9,N$))throw new M$("Unexpectedly nonexistent ClickEvent");W()})};var Wi2=function(W){var O=this;this.channel=W;this.init=this.channel.init.bind(this.channel);this.page=new N_O(this.channel);this.game=new VjE(this.channel);this.audio=new $7P(this.channel);this.score=new Mj2(this.channel);this.storage=new Jkq(this.channel);this.style=new FyO(this.channel);this.userActivity=new yk8(this.channel);HJ2(this.channel,function(b){var T=new L7X;b=_.jL(T,1,b);b=_.s3(b,3,O.userActivity.userActivityLoggingIntervalMs);T=O.audio.isAudioEnabled();T!==void 0&&_.TP(b,2,T);T=new b7;
return _.Tb(T,5,Lz,b)})};var Ooq=function(){this.timedFunctionContext=0};
Ooq.prototype.timeExecution=function(W,O){var b=this;return function(){var T=_.PD.apply(0,arguments);b.timedFunctionContext=W;return O.apply(null,_.PG(T))}};var io8=function(){var W={};this.priorityTasks=(W[3]=[],W[2]=[],W[1]=[],W);this.isFlushing=!1},TK=function(W,O,b){var T=boO(W,b);
W.priorityTasks[b].push(O);T&&W.priorityTasks[b].length===1&&W.flush()},boO=function(W,O){return Object.keys(W.priorityTasks).map(function(b){return Number(b)}).filter(function(b){return!isNaN(b)&&b>O}).every(function(b){return W.priorityTasks[b].length===0})};
io8.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(W){return W.length>0});)jYi(this,3),jYi(this,2),jYi(this,1)}catch(W){throw Object.values(this.priorityTasks).forEach(function(O){return void O.splice(0,O.length)}),W;
}finally{this.isFlushing=!1}}};
var jYi=function(W,O){for(;boO(W,O)&&W.priorityTasks[O].length>0;)W.priorityTasks[O][0](),W.priorityTasks[O].shift()};
_.Jq.Object.defineProperties(io8.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(W){return W.length>0})}}});var aGi={};var ThX=globalThis.trustedTypes,hkT=ThX,Z0e;var hv=function(W){this.privateDoNotAccessOrElseWrappedResourceUrl=W};
hv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var LiQ=_.ts([""]),d4O=BzX(["\x00"],["\\0"]),hOE=BzX(["\n"],["\\n"]),Sy8=BzX(["\x00"],["\\u0000"]);IQ(function(W){return W(LiQ)})||IQ(function(W){return W(d4O)})||IQ(function(W){return W(hOE)})||IQ(function(W){return W(Sy8)});var Xy;_.aQ=function(W,O){this.privateDoNotAccessOrElseWrappedUrl=O};
_.aQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.ZoO=mj("about:blank");Xy=mj("about:invalid#zClosurez");var mAX=function(W){this.isValid=W},I22=new mAX(function(W){return/^[^:]*([/?#]|$)/.test(W)}),a2T=wC("data"),m42=wC("http"),YyP=wC("https"),Em1=wC("ftp"),wz8=wC("mailto"),Ai8=wC("intent"),XzO=wC("vnd.youtube"),Yt8=[a2T,
m42,YyP,wz8,Em1,I22],Eh8=dC(function(){return typeof URL==="function"}),U41=["data:",
"http:","https:","mailto:","ftp:"],AAX=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var gC=function(W){this.privateDoNotAccessOrElseWrappedHtml=W};
gC.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var wU8=dC(function(){return new gC(ThX?ThX.emptyHTML:"")});var l2h={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"},sB=function(W,O){var b=Error.call(this,W+" cannot be used with intent "+l2h[O]);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.type=W;this.intent=O;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.R(sB,Error);_.zb=function(W){this.privateDoNotAccessOrElseWrappedScript=W};
_.zb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var ekE=function(W){this.privateDoNotAccessOrElseWrappedAttributePrefix=W};
ekE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var P_X="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var YzP=function(W){var O=_.GT("window.location.href");W==null&&(W='Unknown Error of type "null/undefined"');if(typeof W==="string")return{message:W,name:"Unknown error",lineNumber:"Not available",fileName:O,stack:"Not available"};var b=!1;try{var T=W.lineNumber||W.line||"Not available"}catch(Z){T="Not available",b=!0}try{var L=W.fileName||W.filename||W.sourceURL||_.i1.$googDebugFname||O}catch(Z){L="Not available",b=!0}O=eO8(W);if(!(!b&&W.lineNumber&&W.fileName&&W.stack&&W.message&&W.name)){b=W.message;
if(b==null){if(W.constructor&&W.constructor instanceof Function){if(W.constructor.name)b=W.constructor.name;else if(b=W.constructor,ck[b])b=ck[b];else{b=String(b);if(!ck[b]){var h=/function\s+([^\(]+)/m.exec(b);ck[b]=h?h[1]:"[Anonymous]"}b=ck[b]}b='Unknown Error of type "'+b+'"'}else b="Unknown Error of unknown type";typeof W.toString==="function"&&Object.prototype.toString!==W.toString&&(b+=": "+W.toString())}return{message:b,name:W.name||"UnknownError",lineNumber:T,fileName:L,stack:O||"Not available"}}return{message:W.message,
name:W.name,lineNumber:W.lineNumber,fileName:W.fileName,stack:O}},eO8=function(W,O){O||(O={});
O[PT1(W)]=!0;var b=W.stack||"",T=W.cause;T&&!O[PT1(T)]&&(b+="\nCaused by: ",T.stack&&T.stack.indexOf(T.toString())==0||(b+=typeof T==="string"?T:T.message+"\n"),b+=eO8(T,O));W=W.errors;if(Array.isArray(W)){T=1;var L;for(L=0;L<W.length&&!(T>4);L++)O[PT1(W[L])]||(b+="\nInner error "+T++ +": ",W[L].stack&&W[L].stack.indexOf(W[L].toString())==0||(b+=typeof W[L]==="string"?W[L]:W[L].message+"\n"),b+=eO8(W[L],O));L<W.length&&(b+="\n... "+(W.length-L)+" more inner errors")}return b},PT1=function(W){var O=
"";
typeof W.toString==="function"&&(O=""+W);return O+W.stack},ck={};var pzO,W3,hI,Kih,vmX,ROi,H5,nq,om8;pzO=function(W,O){for(var b=W.split("%s"),T="",L=Array.prototype.slice.call(arguments,1);L.length&&b.length>1;)T+=b.shift()+L.shift();return T+b.join("%s")};
_.t_=function(W){return encodeURIComponent(String(W))};
W3=function(W){return decodeURIComponent(W.replace(/\+/g," "))};
hI=function(W){hyX.test(W)&&(W.indexOf("&")!=-1&&(W=W.replace(iXX,"&amp;")),W.indexOf("<")!=-1&&(W=W.replace(bXE,"&lt;")),W.indexOf(">")!=-1&&(W=W.replace(joX,"&gt;")),W.indexOf('"')!=-1&&(W=W.replace(TxE,"&quot;")),W.indexOf("'")!=-1&&(W=W.replace(LSi,"&#39;")),W.indexOf("\x00")!=-1&&(W=W.replace(dxP,"&#0;")));return W};
Kih=function(W){var O={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var b=_.i1.document.createElement("div");return W.replace(ROi,function(T,L){var h=O[T];if(h)return h;L.charAt(0)=="#"&&(L=Number("0"+L.slice(1)),isNaN(L)||(h=String.fromCharCode(L)));h||(_.Gb(b,oQ(T+" ")),h=b.firstChild.nodeValue.slice(0,-1));return O[T]=h})};
vmX=function(W){return W.replace(/&([^;]+);/g,function(O,b){switch(b){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return b.charAt(0)!="#"||(b=Number("0"+b.slice(1)),isNaN(b))?O:String.fromCharCode(b)}})};
ROi=/&([^;\s<&]+);?/g;_.x$2=function(W){return String(W).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.gmT=String.prototype.repeat?function(W,O){return W.repeat(O)}:function(W,O){return Array(O+1).join(W)};
_.FS=function(W,O){if(!Number.isFinite(W))return String(W);W=String(W);var b=W.indexOf(".");b===-1&&(b=W.length);var T=W[0]==="-"?"-":"";T&&(W=W.substring(1));return T+(0,_.gmT)("0",Math.max(0,O-b))+W};
H5=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.yG()).toString(36)};
nq=function(W){for(var O=0,b=0;b<W.length;++b)O=31*O+W.charCodeAt(b)>>>0;return O};
_.wl=function(W){return String(W).replace(/\-([a-z])/g,function(O,b){return b.toUpperCase()})};
_.Ek=function(W){return String(W).replace(/([A-Z])/g,"-$1").toLowerCase()};
om8=function(W){return W.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(O,b,T){return b+T.toUpperCase()})};var QY8=function(){this.names=new Map};
QY8.prototype.getName=function(W){var O=this.names.get(W);if(O)return O;var b;O=(b=W.description)!=null?b:H5();this.names.set(W,O);return O};var ktQ=function(W){var O=Error.call(this,W?W.length+" errors occurred during unsubscription:\n"+W.map(function(b,T){return T+1+") "+b.toString()}).join("\n  "):"");
this.message=O.message;"stack"in O&&(this.stack=O.stack);this.errors=W;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.R(ktQ,Error);var Jv=function(W){this.initialTeardown=W;this.closed=!1;this._teardowns=this._parentage=null};
_.d=Jv.prototype;
_.d.unsubscribe=function(){if(!this.closed){this.closed=!0;var W=this._parentage;if(Array.isArray(W))for(var O=_.S(W),b=O.next();!b.done;b=O.next())b.value.remove(this);else W==null||W.remove(this);O=this.initialTeardown;if(u7(O))try{O()}catch(h){var T=h instanceof ktQ?h.errors:[h]}var L=this._teardowns;if(L)for(this._teardowns=null,O=_.S(L),b=O.next();!b.done;b=O.next()){b=b.value;try{u7(b)?b():b.unsubscribe()}catch(h){b=void 0,T=(b=T)!=null?b:[],h instanceof ktQ?T=[].concat(_.PG(T),_.PG(h.errors)):
T.push(h)}}if(T)throw new ktQ(T);}};
_.d.add=function(W){if(W&&W!==this)if(this.closed)u7(W)?W():W.unsubscribe();else{if(W instanceof Jv){if(W.closed||W._hasParent(this))return;W._addParent(this)}var O;(this._teardowns=(O=this._teardowns)!=null?O:[]).push(W)}};
_.d._hasParent=function(W){var O=this._parentage;return O===W||Array.isArray(O)&&O.includes(W)};
_.d._addParent=function(W){var O=this._parentage;this._parentage=Array.isArray(O)?(O.push(W),O):O?[O,W]:W};
_.d._removeParent=function(W){var O=this._parentage;O===W?this._parentage=null:Array.isArray(O)&&MI(O,W)};
_.d.remove=function(W){var O=this._teardowns;O&&MI(O,W);W instanceof Jv&&W._removeParent(this)};
var sYQ=new Jv;sYQ.closed=!0;Jv.JSC$7073_EMPTY=sYQ;var vhX=function(){setTimeout.apply(null,_.PG(_.PD.apply(0,arguments)))};var yK=function(W){Jv.call(this);this.JSC$7078_isStopped=!1;this.destination=W instanceof yK?W:new W1(!W||u7(W)?{next:W!=null?W:void 0}:W);K7P(W)&&W.add(this)};
_.R(yK,Jv);yK.JSC$7073_EMPTY=Jv.JSC$7073_EMPTY;yK.create=function(W,O,b){return new Oi(W,O,b)};
_.d=yK.prototype;_.d.next=function(W){this.JSC$7078_isStopped||this._next(W)};
_.d.error=function(W){this.JSC$7078_isStopped||(this.JSC$7078_isStopped=!0,this._error(W))};
_.d.complete=function(){this.JSC$7078_isStopped||(this.JSC$7078_isStopped=!0,this._complete())};
_.d.unsubscribe=function(){this.closed||(this.JSC$7078_isStopped=!0,Jv.prototype.unsubscribe.call(this))};
_.d._next=function(W){this.destination.next(W)};
_.d._error=function(W){this.destination.error(W);this.unsubscribe()};
_.d._complete=function(){this.destination.complete();this.unsubscribe()};
var W1=function(W){this.partialObserver=W};
W1.prototype.next=function(W){var O=this.partialObserver;if(O.next)try{O.next(W)}catch(b){Fy(b)}};
W1.prototype.error=function(W){var O=this.partialObserver;if(O.error)try{O.error(W)}catch(b){Fy(b)}else Fy(W)};
W1.prototype.complete=function(){var W=this.partialObserver;if(W.complete)try{W.complete()}catch(O){Fy(O)}};
var Oi=function(W,O,b){yK.call(this);var T;u7(W)||!W?T={next:W!=null?W:void 0,error:O!=null?O:void 0,complete:b!=null?b:void 0}:T=W;this.destination=new W1(T)};
_.R(Oi,yK);Oi.JSC$7073_EMPTY=yK.JSC$7073_EMPTY;Oi.create=yK.create;var bN=typeof Symbol==="function"&&Symbol.observable||"@@observable";var OK=function(W){W&&(this._subscribe=W)};
_.d=OK.prototype;_.d.lift=function(W){var O=new OK;O.source=this;O.operator=W;return O};
_.d.subscribe=function(W,O,b){W=W&&W instanceof yK||W&&u7(W.next)&&u7(W.error)&&u7(W.complete)&&K7P(W)?W:new Oi(W,O,b);O=this.operator;b=this.source;W.add(O?O.call(W,b):b?this._subscribe(W):this._trySubscribe(W));return W};
_.d._trySubscribe=function(W){try{return this._subscribe(W)}catch(O){W.error(O)}};
_.d.forEach=function(W,O){var b=this;O=ohX(O);return new O(function(T,L){var h=b.subscribe(function(Z){try{W(Z)}catch(a){L(a),h==null||h.unsubscribe()}},L,T)})};
_.d._subscribe=function(W){var O;return(O=this.source)==null?void 0:O.subscribe(W)};
OK.prototype[bN]=function(){return this};
OK.prototype.pipe=function(){var W=_.PD.apply(0,arguments);return W.length?gh2(W)(this):this};
OK.create=function(W){return new OK(W)};var BhO=function(){var W=Error.call(this,"object unsubscribed");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.R(BhO,Error);var ii=function(){this.observers=[];this.hasError=this.JSC$7094_isStopped=this.closed=!1;this.thrownError=null};
_.R(ii,OK);_.d=ii.prototype;_.d.lift=function(W){var O=new iQ(this,this);O.operator=W;return O};
_.d._throwIfClosed=function(){if(this.closed)throw new BhO;};
_.d.next=function(W){this._throwIfClosed();if(!this.JSC$7094_isStopped){var O=this.observers.slice();O=_.S(O);for(var b=O.next();!b.done;b=O.next())b.value.next(W)}};
_.d.error=function(W){this._throwIfClosed();if(!this.JSC$7094_isStopped){this.hasError=this.JSC$7094_isStopped=!0;this.thrownError=W;for(var O=this.observers;O.length;)O.shift().error(W)}};
_.d.complete=function(){this._throwIfClosed();if(!this.JSC$7094_isStopped){this.JSC$7094_isStopped=!0;for(var W=this.observers;W.length;)W.shift().complete()}};
_.d.unsubscribe=function(){this.JSC$7094_isStopped=this.closed=!0;this.observers=null};
_.d._trySubscribe=function(W){this._throwIfClosed();return OK.prototype._trySubscribe.call(this,W)};
_.d._subscribe=function(W){this._throwIfClosed();this._checkFinalizedStatuses(W);return this._innerSubscribe(W)};
_.d._innerSubscribe=function(W){var O=this,b=this.JSC$7094_isStopped,T=this.observers;return this.hasError||b?Jv.JSC$7073_EMPTY:(T.push(W),new Jv(function(){return MI(O.observers,W)}))};
_.d._checkFinalizedStatuses=function(W){var O=this.thrownError,b=this.JSC$7094_isStopped;this.hasError?W.error(O):b&&W.complete()};
ii.create=function(W,O){return new iQ(W,O)};
var iQ=function(W,O){ii.call(this);this.destination=W;this.source=O};
_.R(iQ,ii);iQ.create=ii.create;iQ.prototype.next=function(W){var O,b;(O=this.destination)==null||(b=O.next)==null||b.call(O,W)};
iQ.prototype.error=function(W){var O,b;(O=this.destination)==null||(b=O.error)==null||b.call(O,W)};
iQ.prototype.complete=function(){var W,O;(W=this.destination)==null||(O=W.complete)==null||O.call(W)};
iQ.prototype._subscribe=function(W){var O,b;return(b=(O=this.source)==null?void 0:O.subscribe(W))!=null?b:Jv.JSC$7073_EMPTY};var x3=function(W){ii.call(this);this._value=W};
_.R(x3,ii);x3.create=ii.create;x3.prototype._subscribe=function(W){var O=ii.prototype._subscribe.call(this,W);!O.closed&&W.next(this._value);return O};
x3.prototype.getValue=function(){var W=this.thrownError,O=this._value;if(this.hasError)throw W;this._throwIfClosed();return O};
x3.prototype.next=function(W){ii.prototype.next.call(this,this._value=W)};
_.Jq.Object.defineProperties(x3.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var oD=new OK(function(W){return W.complete()});var iN=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var zkQ=function(W){return W&&typeof W.length==="number"&&typeof W!=="function"};var riX={now:function(){return(riX.delegate||Date).now()},
delegate:void 0};var HG=function(W,O,b){W=W===void 0?Infinity:W;O=O===void 0?Infinity:O;b=b===void 0?riX:b;ii.call(this);this.JSC$7116_bufferSize=W;this.windowTime=O;this.timestampProvider=b;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=O===Infinity;this.JSC$7116_bufferSize=Math.max(1,W);this.windowTime=Math.max(1,O)};
_.R(HG,ii);HG.create=ii.create;HG.prototype.next=function(W){var O=this.buffer,b=this.infiniteTimeWindow,T=this.timestampProvider,L=this.windowTime;this.JSC$7094_isStopped||(O.push(W),!b&&O.push(T.now()+L));D4X(this);ii.prototype.next.call(this,W)};
HG.prototype._subscribe=function(W){this._throwIfClosed();D4X(this);for(var O=this._innerSubscribe(W),b=this.infiniteTimeWindow,T=this.buffer.slice(),L=0;L<T.length&&!W.closed;L+=b?1:2)W.next(T[L]);this._checkFinalizedStatuses(W);return O};
var D4X=function(W){var O=W.JSC$7116_bufferSize,b=W.timestampProvider,T=W.buffer;W=W.infiniteTimeWindow;var L=(W?1:2)*O;O<Infinity&&L<T.length&&T.splice(0,T.length-L);if(!W){O=b.now();b=0;for(W=1;W<T.length&&T[W]<=O;W+=2)b=W;b&&T.splice(0,b+1)}};var zOe=function(W,O){O=O===void 0?x4h:O;this.schedulerActionCtor=W;this.now=O};
zOe.prototype.schedule=function(W,O,b){O=O===void 0?0:O;return(new this.schedulerActionCtor(this,W)).schedule(b,O)};
var x4h=riX.now;var g4h=function(){var W=Error.call(this,"no elements in sequence");this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.R(g4h,Error);var Xp=function(W,O,b,T,L){yK.call(this,W);this.onUnsubscribe=L;O&&(this._next=function(h){try{O(h)}catch(Z){this.destination.error(Z)}});
b&&(this._error=function(h){try{b(h)}catch(Z){this.destination.error(Z)}this.unsubscribe()});
T&&(this._complete=function(){try{T()}catch(h){this.destination.error(h)}this.unsubscribe()})};
_.R(Xp,yK);Xp.JSC$7073_EMPTY=yK.JSC$7073_EMPTY;Xp.create=yK.create;Xp.prototype.unsubscribe=function(){var W;this.closed||(W=this.onUnsubscribe)!=null&&W.call(this);yK.prototype.unsubscribe.call(this)};var fI=function(W,O){this.source=W;this.subjectFactory=O;this._subject=null;this._refCount=0;this._connection=null};
_.R(fI,OK);fI.create=OK.create;fI.prototype._subscribe=function(W){return CTe(this).subscribe(W)};
var CTe=function(W){var O=W._subject;if(!O||O.JSC$7094_isStopped)W._subject=W.subjectFactory();return W._subject};
fI.prototype._teardown=function(){this._refCount=0;var W=this._connection;this._subject=this._connection=null;W==null||W.unsubscribe()};
fI.prototype.connect=function(){var W=this,O=this._connection;if(!O){O=this._connection=new Jv;var b=CTe(this);O.add(this.source.subscribe(new Xp(b,void 0,function(T){W._teardown();b.error(T)},function(){W._teardown();
b.complete()},function(){return W._teardown()})));
O.closed&&(this._connection=null,O=Jv.JSC$7073_EMPTY)}return O};var u5E=Array.isArray;var cAQ=Array.isArray,qyh=Object,F7P=qyh.getPrototypeOf,yAi=qyh.prototype,Wj2=qyh.keys;var RD=function(W,O,b){yK.call(this,W);this._next=O;this.shouldComplete=b};
_.R(RD,yK);RD.JSC$7073_EMPTY=yK.JSC$7073_EMPTY;RD.create=yK.create;RD.prototype._complete=function(){this.shouldComplete()?yK.prototype._complete.call(this):this.unsubscribe()};var hDi=["addListener","removeListener"],dI1=["addEventListener","removeEventListener"],ZzP=["on","off"];var bQ=function(){Jv.call(this)};
_.R(bQ,Jv);bQ.JSC$7073_EMPTY=Jv.JSC$7073_EMPTY;bQ.prototype.schedule=function(){return this};var nmO=function(W,O){return setInterval.apply(null,[W,O].concat(_.PG(_.PD.apply(2,arguments))))};var jm=function(W,O){Jv.call(this);this.scheduler=W;this.work=O;this.pending=!1};
_.R(jm,bQ);jm.JSC$7073_EMPTY=bQ.JSC$7073_EMPTY;jm.prototype.schedule=function(W,O){O=O===void 0?0:O;if(this.closed)return this;this.state=W;W=this.id;var b=this.scheduler;W!=null&&(this.id=f2h(this,W,O));this.pending=!0;this.delay=O;this.id=this.id||this.requestAsyncId(b,this.id,O);return this};
jm.prototype.requestAsyncId=function(W,O,b){b=b===void 0?0:b;return nmO(W.flush.bind(W,this),b)};
var f2h=function(W,O,b){b=b===void 0?0:b;if(b!=null&&W.delay===b&&W.pending===!1)return O;clearInterval(O)};
jm.prototype.execute=function(W,O){if(this.closed)return Error("la");this.pending=!1;if(W=this._execute(W,O))return W;this.pending===!1&&this.id!=null&&(this.id=f2h(this,this.id,null))};
jm.prototype._execute=function(W){var O=!1;try{this.work(W)}catch(T){O=!0;var b=!!T&&T||Error(T)}if(O)return this.unsubscribe(),b};
jm.prototype.unsubscribe=function(){if(!this.closed){var W=this.id,O=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;MI(O,this);W!=null&&(this.id=f2h(this,W,null));this.delay=null;bQ.prototype.unsubscribe.call(this)}};var GtP=function(W,O){O=O===void 0?x4h:O;zOe.call(this,W,O);this.actions=[];this.active=!1;this.scheduled=void 0};
_.R(GtP,zOe);GtP.prototype.flush=function(W){var O=this.actions;if(this.active)O.push(W);else{var b;this.active=!0;do if(b=W.execute(W.state,W.delay))break;while(W=O.shift());this.active=!1;if(b){for(;W=O.shift();)W.unsubscribe();throw b;}}};var UM=new OK(cD);var IdT=Array.isArray;var Tp=function(W,O){jm.call(this,W,O);this.scheduler=W;this.work=O};
_.R(Tp,jm);Tp.JSC$7073_EMPTY=jm.JSC$7073_EMPTY;Tp.prototype.schedule=function(W,O){O=O===void 0?0:O;if(O>0)return jm.prototype.schedule.call(this,W,O);this.delay=O;this.state=W;this.scheduler.flush(this);return this};
Tp.prototype.execute=function(W,O){return O>0||this.closed?jm.prototype.execute.call(this,W,O):this._execute(W,O)};
Tp.prototype.requestAsyncId=function(W,O,b){b=b===void 0?0:b;return b!=null&&b>0||b==null&&this.delay>0?jm.prototype.requestAsyncId.call(this,W,O,b):W.flush(this)};var HoX=function(){GtP.apply(this,arguments)};
_.R(HoX,GtP);var NAT=new HoX(Tp);var taq=function(){this.performanceMonitor=new Ooq;this.queue=new io8;this.internalSymbol=Symbol();this.debugNames=new QY8};
taq.prototype.getOnBackgrounded=function(){return UM};
_.Jq.Object.defineProperties(taq.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var L4=function(W,O){O=Error.call(this,O?W+": "+O:String(W));this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=W;this.__proto__=L4.prototype;this.name=String(W)};
_.R(L4,Error);var li=function(W){L4.call(this,1E3,'sfr:"'+W+'"');this.measurementStrategyFailureReason=W;this.__proto__=li.prototype};
_.R(li,L4);var ep=function(){L4.call(this,1003);this.__proto__=ep.prototype};
_.R(ep,L4);var d7=function(){L4.call(this,1009);this.__proto__=d7.prototype};
_.R(d7,L4);var $4P=function(){L4.call(this,1011);this.__proto__=$4P.prototype};
_.R($4P,L4);var Va1=function(){L4.call(this,1007);this.__proto__=ep.prototype};
_.R(Va1,L4);var mq=function(W){L4.call(this,1004,String(W));this.inputObservableIndex=W;this.__proto__=mq.prototype};
_.R(mq,L4);var qKe=function(W){L4.call(this,1010,W);this.__proto__=Y3.prototype};
_.R(qKe,L4);var Y3=function(W){L4.call(this,1005,W);this.__proto__=Y3.prototype};
_.R(Y3,L4);var Nhi=function(W){var O=_.PD.apply(1,arguments),b=this;this.orderedFactories=[];this.orderedFactories.push(W);O.forEach(function(T){b.orderedFactories.push(T)})};
Nhi.prototype.isSupported=function(W){return this.orderedFactories.some(function(O){return O.isSupported(W)})};
Nhi.prototype.makeBeacon=function(W,O){for(var b=0;b<this.orderedFactories.length;b++)if(this.orderedFactories[b].isSupported(O))return this.orderedFactories[b].makeBeacon(W,O);throw new d7;};var pQh=Symbol("ma"),Mae=Symbol("na"),BG=function(W,O){this.value=W;this.timeline=O},sK=function(W,O){if(O.timeline!==W.timeline)throw new Va1;
return W.value-O.value};
_.d=BG.prototype;_.d.equals=function(W){return sK(this,W)===0};
_.d.maximum=function(W){if(W.timeline!==this.timeline)throw new Va1;return this.value>=W.value?this:W};
_.d.round=function(){return new BG(Math.round(this.value),this.timeline)};
_.d.add=function(W){return new BG(this.value+W,this.timeline)};
_.d.toString=function(){return String(this.value)};var hN=function(W,O){this.context=W;this.JSC$7200_pinger=O};
hN.prototype.isSupported=function(W){return this.JSC$7200_pinger.isSupported(W)};
hN.prototype.makeBeacon=function(W,O){if(!this.isSupported(O))throw new d7;return new Sm(this.context,this.JSC$7200_pinger,O!=null?O:void 0,W)};
var Sm=function(W,O,b,T){var L=this;this.JSC$7206_pinger=O;this.properties=b;this.url=T;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var h;this.method=(h=b==null?void 0:b.beaconMethod)!=null?h:"GET";this.backgroundedSubscription=W.getOnBackgrounded().subscribe(function(){L.sendNow()})};
Sm.prototype.deactivate=function(){this.internalIsPending=!1};
Sm.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7206_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var W,O;this.JSC$7206_pinger.pingWithHeadersAndBody((W=this.properties)!=null?W:{},this.customHeaders,(O=this.body)!=null?O:"",this.url)}else this.JSC$7206_pinger.ping(this.url);this.internalIsPending=!1}catch(b){}else this.internalIsPending=!1};
Sm.prototype.setHeader=function(W){this.customHeaders.set(W,void 0)};
_.Jq.Object.defineProperties(Sm.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var Ji2=function(){for(var W=_.S(_.PD.apply(0,arguments)),O=W.next();!O.done;O=W.next())if(O=O.value,O.available()){this.timeProvider=O;return}this.timeProvider=new u6X};
_.d=Ji2.prototype;_.d.available=function(){return this.timeProvider.available()};
_.d.now=function(){return this.timeProvider.now()};
_.d.setTimeout=function(W,O){return this.timeProvider.setTimeout(W,O)};
_.d.clearTimeout=function(W){this.timeProvider.clearTimeout(W)};
_.d.interval=function(W,O){var b=this.intervalObservable(W).subscribe(O);return function(){return void b.unsubscribe()}};
_.d.intervalObservable=function(W){return this.timeProvider.intervalObservable(W)};
_.Jq.Object.defineProperties(Ji2.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var u6X=function(){this.timeline=Symbol()};
_.d=u6X.prototype;_.d.available=function(){return!1};
_.d.now=function(){return new BG(0,this.timeline)};
_.d.setTimeout=function(){return 0};
_.d.clearTimeout=function(){};
_.d.interval=function(){return function(){}};
_.d.intervalObservable=function(){return UM};var ZA=function(W,O){this.intrinsicFunctionNamespace=W;this.performanceMonitor=O};
_.d=ZA.prototype;_.d.setTimeout=function(W,O){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,W),O)};
_.d.clearTimeout=function(W){this.intrinsicFunctionNamespace.clearTimeout(W)};
_.d.interval=function(W,O){var b=this.intervalObservable(W).subscribe(O);return function(){return void b.unsubscribe()}};
_.d.intervalObservable=function(W){var O=this;return new OK(function(b){var T=0,L=O.intrinsicFunctionNamespace.setInterval(function(){b.next(T++)},W);
return function(){O.intrinsicFunctionNamespace.clearInterval(L)}})};
_.d.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var ciQ=function(W,O){ZA.call(this,W,O);this.timeline=Mae};
_.R(ciQ,ZA);ciQ.prototype.now=function(){return new BG(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
ciQ.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&ZA.prototype.available.call(this)};var Fih=function(W,O){ZA.call(this,W,O);this.timeline=pQh};
_.R(Fih,ZA);Fih.prototype.now=function(){return new BG(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Fih.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&ZA.prototype.available.call(this)};var WXU=function(W){this.context=W;if(yiE===void 0)a:{var O,b,T=(O=W.global)==null?void 0:(b=O.document)==null?void 0:b.createElement("meta");if(T)try{T.httpEquiv="origin-trial";T.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";W.global.document.head.append(T);yiE=T;break a}catch(L){}yiE=void 0}},
yiE;
WXU.prototype.isSupported=function(W){return eDX(this.context)!==void 0&&!(W==null||!W.endOfSession)&&!IB(this.context)&&!(W==null?0:W.attributionEnabled)&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
WXU.prototype.makeBeacon=function(W,O){if(!this.isSupported(O))throw new d7;return new aB(this.context,W,O)};
var aB=function(W,O,b){this.context=W;this.properties=b;this.JSC$7233_urlWithoutToken=O;var T;this.beaconMethod=(T=b==null?void 0:b.beaconMethod)!=null?T:"GET";W=eDX(this.context);if(W===void 0)throw Error();this.fetchLater=W;OE1(this,iE7(this))},OE1=function(W,O){W.beaconResult&&W.beaconResult.activated||(W.beaconAbort=new AbortController,W.beaconResult=W.fetchLater(O,{method:W.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:W.beaconAbort.signal,activateAfter:96E4}))},iE7=function(W){W=W.JSC$7233_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"flapi=1"};
aB.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
aB.prototype.sendNow=function(){};
aB.prototype.setHeader=function(){};
_.Jq.Object.defineProperties(aB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7233_urlWithoutToken},
set:function(W){this.JSC$7233_urlWithoutToken=W;W=iE7(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);OE1(this,W)}},
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 bES=function(W){this.context=W};
bES.prototype.isSupported=function(){return!IB(this.context)&&!!this.context.global.fetch};
bES.prototype.ping=function(){var W=this;return QN.apply(null,_.PG(_.PD.apply(0,arguments).map(function(O){return T8(W.context.global.fetch(O,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(eP(function(b){return b.status===200}))}))).pipe(o4X(function(O){return O}),kbE())};
bES.prototype.pingWithHeadersAndBody=function(W,O,b){for(var T=_.PD.apply(3,arguments),L=this,h=new Headers,Z=_.S(O.entries()),a=Z.next();!a.done;a=Z.next()){var m=_.S(a.value);a=m.next().value;m=m.next().value;h.set(a,m)}var w,A=(w=W.keepAlive)!=null?w:!1;QN.apply(null,_.PG(T.map(function(X){return T8(L.context.global.fetch(X,Object.assign({},{method:String(W.beaconMethod),cache:"no-cache"},A?{keepalive:!0}:{},{mode:"no-cors",headers:h,body:b}))).pipe(eP(function(l){return l.status===200}))}))).pipe(o4X(function(X){return X}),
kbE())};var jqN,PbQ;_.mB=function(){};
_.GX=function(W){return W};
jqN=function(W){var O=O||0;return function(){return W.apply(this,Array.prototype.slice.call(arguments,0,O))}};
_.Yl=function(W){var O=!1,b;return function(){O||(b=W(),O=!0);return b}};
_.Ei=function(W,O){var b=0;return function(T){_.i1.clearTimeout(b);var L=arguments;b=_.i1.setTimeout(function(){W.apply(void 0,L)},O)}};
PbQ=function(W,O){var b=0,T=!1,L=[],h=function(){b=0;T&&(T=!1,Z())},Z=function(){b=_.i1.setTimeout(h,O);
var a=L;L=[];W.apply(void 0,a)};
return function(a){L=arguments;b?T=!0:Z()}};var LX1=function(){return Ue&&l1?l1.mobile:!T8U()&&(Rq("iPod")||Rq("iPhone")||Rq("Android")||Rq("IEMobile"))},T8U=function(){return Ue&&l1?!l1.mobile&&(Rq("iPad")||Rq("Android")||Rq("Silk")):Rq("iPad")||Rq("Android")&&!Rq("Mobile")||Rq("Silk")};var dPf;_.PQ={};dPf="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.PQ.add=function(W,O,b){if(W!==null&&O in W)throw Error("pa`"+O);W[O]=b};
_.PQ.clear=function(W){for(var O in W)delete W[O]};
_.PQ.clone=function(W){var O={},b;for(b in W)O[b]=W[b];return O};
_.PQ.contains=function(W,O){return rvO(W,O)};
_.PQ.containsKey=function(W,O){return W!==null&&O in W};
_.PQ.containsValue=rvO;_.PQ.create=zD2;_.PQ.createImmutableView=function(W){var O=W;Object.isFrozen&&!Object.isFrozen(W)&&(O=Object.create(W),Object.freeze(O));return O};
_.PQ.createSet=C78;_.PQ.equals=function(W,O){for(var b in W)if(!(b in O)||W[b]!==O[b])return!1;for(var T in O)if(!(T in W))return!1;return!0};
_.PQ.every=function(W,O,b){for(var T in W)if(!O.call(b,W[T],T,W))return!1;return!0};
_.PQ.extend=function(W,O){for(var b,T,L=1;L<arguments.length;L++){T=arguments[L];for(b in T)W[b]=T[b];for(var h=0;h<dPf.length;h++)b=dPf[h],Object.prototype.hasOwnProperty.call(T,b)&&(W[b]=T[b])}};
_.PQ.filter=function(W,O,b){var T={},L;for(L in W)O.call(b,W[L],L,W)&&(T[L]=W[L]);return T};
_.PQ.findKey=DIi;_.PQ.findValue=function(W,O,b){return(O=DIi(W,O,b))&&W[O]};
_.PQ.forEach=function(W,O,b){for(var T in W)O.call(b,W[T],T,W)};
_.PQ.get=function(W,O,b){return W!==null&&O in W?W[O]:b};
_.PQ.getAllPropertyNames=function(W,O,b){if(!W)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return BCi(W);for(var T={};W&&(W!==Object.prototype||O)&&(W!==Function.prototype||b);){for(var L=Object.getOwnPropertyNames(W),h=0;h<L.length;h++)T[L[h]]=!0;W=Object.getPrototypeOf(W)}return BCi(T)};
_.PQ.getAnyKey=function(W){for(var O in W)return O};
_.PQ.getAnyValue=function(W){for(var O in W)return W[O]};
_.PQ.getCount=function(W){var O=0,b;for(b in W)O++;return O};
_.PQ.getKeys=BCi;_.PQ.getSuperClass=function(W){return(W=Object.getPrototypeOf(W.prototype))&&W.constructor};
_.PQ.getValueByKeys=function(W,O){var b=_.j5(O),T=b?O:arguments;for(b=b?0:1;b<T.length;b++){if(W==null)return;W=W[T[b]]}return W};
_.PQ.getValues=function(W){var O=[],b=0,T;for(T in W)O[b++]=W[T];return O};
_.PQ.isEmpty=function(W){for(var O in W)return!1;return!0};
_.PQ.isImmutableView=function(W){return!!Object.isFrozen&&Object.isFrozen(W)};
_.PQ.map=function(W,O,b){var T={},L;for(L in W)T[L]=O.call(b,W[L],L,W);return T};
_.PQ.remove=function(W,O){var b;(b=O in W)&&delete W[O];return b};
_.PQ.set=function(W,O,b){W[O]=b};
_.PQ.setIfUndefined=function(W,O,b){return O in W?W[O]:W[O]=b};
_.PQ.setWithReturnValueIfNotSet=function(W,O,b){if(O in W)return W[O];b=b();return W[O]=b};
_.PQ.some=function(W,O,b){for(var T in W)if(O.call(b,W[T],T,W))return!0;return!1};
_.PQ.transpose=function(W){var O={},b;for(b in W)O[W[b]]=b;return O};
_.PQ.unsafeClone=xI2;var w7=function(W,O,b,T,L){this.allowedElements=W;this.elementPolicies=O;this.allowedGlobalAttributes=b;this.globalAttributePolicies=T;this.globallyAllowedAttributePrefixes=L},h8L=function(W,O,b){b=W.elementPolicies.get(b);
return(b==null?0:b.has(O))?b.get(O):W.allowedGlobalAttributes.has(O)?{policyAction:1}:(b=W.globalAttributePolicies.get(O))?b:W.globallyAllowedAttributePrefixes&&[].concat(_.PG(W.globallyAllowedAttributePrefixes)).some(function(T){return O.indexOf(T)===0})?{policyAction:1}:{policyAction:0}};var SeS="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(" "),
ZES=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Iiw="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
aiL=[["dir",{policyAction:3,conditions:dC(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:dC(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:dC(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:dC(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],mP$=new w7(new Set(SeS),new Map(ZES),new Set(Iiw),new Map(aiL)),Ye9=new w7(new Set(SeS.concat(["BUTTON",
"INPUT"])),new Map(ZES),new Set(dC(function(){return Iiw.concat(["class","id","name"])})),new Map(dC(function(){return aiL.concat([["style",
{policyAction:1}]])})));var ETq,w2$,X21;ETq=function(W,O,b,T){this.JSC$7293_sanitizerTable=W;this.styleElementSanitizer=O;this.styleAttributeSanitizer=b;this.JSC$7293_resourceUrlPolicy=T;this.changes=[]};
_.AXf=function(W,O){var b=document.implementation.createHTMLDocument("");W=w2$(W,O,b);b=b.body;b.appendChild(W);b=(new XMLSerializer).serializeToString(b);b=b.slice(b.indexOf(">")+1,b.lastIndexOf("</"));return oQ(b)};
w2$=function(W,O,b){O=n4E(O,b);O=document.createTreeWalker(O,5,function(a){if(a.nodeType===3)a=1;else if(GbX(a))if(a=fdX(a),a===null)a=2;else{var m=W.JSC$7293_sanitizerTable;a=a!=="FORM"&&(m.allowedElements.has(a)||m.elementPolicies.has(a))?1:2}else a=2;return a});
for(var T=O.nextNode(),L=b.createDocumentFragment(),h=L;T!==null;){var Z=void 0;if(T.nodeType===3)W.styleElementSanitizer&&h.nodeName==="STYLE"?(T=W.styleElementSanitizer(T.data),Z=W.createTextNode(T)):Z=W.createTextNode(T.data);else if(GbX(T))Z=X21(W,T,b);else throw Error("da");h.appendChild(Z);if(T=O.firstChild())h=Z;else for(;!(T=O.nextSibling())&&(T=O.parentNode());)h=h.parentNode}return L};
ETq.prototype.createTextNode=function(W){return document.createTextNode(W)};
X21=function(W,O,b){var T,L=fdX(O);b=b.createElement(L);O=O.attributes;for(var h=_.S(O),Z=h.next();!Z.done;Z=h.next()){var a=Z.value;Z=a.name;a=a.value;var m=h8L(W.JSC$7293_sanitizerTable,Z,L);a:{if(T=m.conditions){T=_.S(T);for(var w=T.next();!w.done;w=T.next()){var A=_.S(w.value);w=A.next().value;A=A.next().value;var X=void 0;if((w=(X=O.getNamedItem(w))==null?void 0:X.value)&&!A.has(w)){T=!1;break a}}}T=!0}if(T)switch(m.policyAction){case 1:Fp(b,Z,a);break;case 2:m=_.wMX(a);a=m!==void 0&&U41.indexOf(m.toLowerCase())!==
-1?a:"about:invalid#zClosurez";Fp(b,Z,a);break;case 3:Fp(b,Z,a.toLowerCase());break;case 4:W.styleAttributeSanitizer?(a=W.styleAttributeSanitizer(a),Fp(b,Z,a)):Fp(b,Z,a);break;case 5:W.JSC$7293_resourceUrlPolicy?(m={type:2,attributeName:Z,elementName:L},a=qBX(a),(a=W.JSC$7293_resourceUrlPolicy(a,m))&&Fp(b,Z,a.toString())):Fp(b,Z,a);break;case 6:if(W.JSC$7293_resourceUrlPolicy){m={type:2,attributeName:Z,elementName:L};T=[];a=_.S(a.split(","));for(w=a.next();!w.done;w=a.next())A=_.S(w.value.trim().split(/\s+/,
2)),w=A.next().value,A=A.next().value,T.push({url:w,descriptor:A});a={parts:[]};T=_.S(T);for(w=T.next();!w.done;w=T.next())w=w.value,A=qBX(w.url),(A=W.JSC$7293_resourceUrlPolicy(A,m))&&a.parts.push({url:A.toString(),descriptor:w.descriptor});Fp(b,Z,HzX(a))}else Fp(b,Z,a)}}return b};
_.UPN=dC(function(){return new ETq(mP$)});
_.liN=dC(function(){return new ETq(Ye9)});var e8v=function(){this.calledBuild=!1;this.JSC$7305_sanitizerTable=mP$},P1f=function(){e8v.apply(this,arguments)};
_.R(P1f,e8v);P1f.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new ETq(this.JSC$7305_sanitizerTable,void 0,void 0,this.JSC$7305_resourceUrlPolicy)};var p2q=/[^#]*/;var Vr=function(W){try{return!!W&&W.location.href!=null&&oG(W,"foo")}catch(O){return!1}},KXN=function(W){var O=R87;
if(O)for(var b in O)Object.prototype.hasOwnProperty.call(O,b)&&W(O[b],b,O)},vTN=function(){var W=[];
KXN(function(O){W.push(O)});
return W},R87={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"},gT7=_.Yl(function(){return vTN()}),QqL=function(){var W=oTq("IFRAME"),
O={};
_.$X(gT7(),function(b){W.sandbox&&W.sandbox.supports&&W.sandbox.supports(b)&&(O[b]=!0)});
return O},oTq=function(W,O){O=O===void 0?document:O;
return O.createElement(String(W).toLowerCase())};var AN;_.kq=function(W,O,b){return Math.min(Math.max(W,O),b)};
AN=function(W,O,b){return W+b*(O-W)};_.Kw=function(W,O){this.x=W!==void 0?W:0;this.y=O!==void 0?O:0};
_.d=_.Kw.prototype;_.d.clone=function(){return new _.Kw(this.x,this.y)};
_.d.equals=function(W){return W instanceof _.Kw&&(this==W?!0:this&&W?this.x==W.x&&this.y==W.y:!1)};
_.d.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.d.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.d.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.d.translate=function(W,O){W instanceof _.Kw?(this.x+=W.x,this.y+=W.y):(this.x+=Number(W),typeof O==="number"&&(this.y+=O));return this};
_.d.scale=function(W,O){this.x*=W;this.y*=typeof O==="number"?O:W;return this};_.hU=function(W,O){this.width=W;this.height=O};
_.d=_.hU.prototype;_.d.clone=function(){return new _.hU(this.width,this.height)};
_.d.area=function(){return this.width*this.height};
_.d.aspectRatio=function(){return this.width/this.height};
_.d.isEmpty=function(){return!this.area()};
_.d.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.d.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.d.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.d.scale=function(W,O){this.width*=W;this.height*=typeof O==="number"?O:W;return this};var qJ=function(W,O){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=W===A41&&O||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=kXN};
qJ.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var sq5=function(W){return W instanceof qJ&&W.constructor===qJ&&W.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===kXN?W.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},kXN={},A41={};
new qJ(A41,"");var IG,UV,Ui,B8z,xP$,DPS,vQ,C1N,nTv,qez,p4,fif,MQv,N8N,VQN,uO$,JXn,cX7,FX$,xdO,yXL,OHv,iH9,Wnv,X1;IG=function(W){return W?new X1(_.g4(W)):cfq||(cfq=new X1)};
_.Ox=function(W,O){return typeof O==="string"?W.getElementById(O):O};
UV=function(W,O){return(O||document).getElementsByTagName(String(W))};
_.rX7=function(W){return B8z("yt-formatted-string","paper-input-input",W)};
Ui=function(W,O,b,T){W=T||W;return(O=O&&O!="*"?String(O).toUpperCase():"")||b?W.querySelectorAll(O+(b?"."+b:"")):W.getElementsByTagName("*")};
B8z=function(W,O,b){var T=document,L=W&&W!="*"?String(W).toUpperCase():"";return L||O?(b||T).querySelector(L+(O?"."+O:"")):Ui(T,W,O,b)[0]||null};
xP$=function(W,O){_.PQ.forEach(O,function(b,T){T=="style"?W.style.cssText=b:T=="class"?W.className=b:T=="for"?W.htmlFor=b:DPS.hasOwnProperty(T)?W.setAttribute(DPS[T],b):_.LE(T,"aria-")||_.LE(T,"data-")?W.setAttribute(T,b):W[T]=b})};
DPS={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"};_.Sp=function(W){W=(W||window).document;W=W.compatMode=="CSS1Compat"?W.documentElement:W.body;return new _.hU(W.clientWidth,W.clientHeight)};
_.z8$=function(W){var O=_.lQ(W);W=W.defaultView;return new _.Kw(W.pageXOffset||O.scrollLeft,W.pageYOffset||O.scrollTop)};
_.lQ=function(W){return W.scrollingElement?W.scrollingElement:_.Lf||W.compatMode!="CSS1Compat"?W.body||W.documentElement:W.documentElement};
vQ=function(W){return W?W.defaultView:window};
_.em=function(W,O,b){return C1N(document,arguments)};
C1N=function(W,O){var b=O[1],T=qez(W,String(O[0]));b&&(typeof b==="string"?T.className=b:Array.isArray(b)?T.className=b.join(" "):xP$(T,b));O.length>2&&nTv(W,T,O,2);return T};
nTv=function(W,O,b,T){function L(a){a&&O.appendChild(typeof a==="string"?W.createTextNode(a):a)}
for(;T<b.length;T++){var h=b[T];if(!_.j5(h)||_.LH(h)&&h.nodeType>0)L(h);else{a:{if(h&&typeof h.length=="number"){if(_.LH(h)){var Z=typeof h.item=="function"||typeof h.item=="string";break a}if(typeof h==="function"){Z=typeof h.item=="function";break a}}Z=!1}_.$X(Z?_.Ov(h):h,L)}}};
_.AV=function(W){return qez(document,W)};
qez=function(W,O){O=String(O);W.contentType==="application/xhtml+xml"&&(O=O.toLowerCase());return W.createElement(O)};
_.P1=function(){return document.createTextNode("\n")};
p4=function(W){if(W.nodeType!=1)return!1;switch(W.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};
fif=function(W,O){nTv(_.g4(W),W,arguments,1)};
_.RB=function(W){for(var O;O=W.firstChild;)W.removeChild(O)};
_.K4=function(W,O){O.parentNode&&O.parentNode.insertBefore(W,O)};
_.v1=function(W,O){O.parentNode&&O.parentNode.insertBefore(W,O.nextSibling)};
_.Xu=function(W){return W&&W.parentNode?W.parentNode.removeChild(W):null};
_.GX5=function(W,O){var b=O.parentNode;b&&b.replaceChild(W,O)};
_.HEq=function(W){var O,b=W.parentNode;if(b&&b.nodeType!=11)if(W.removeNode)W.removeNode(!1);else{for(;O=W.firstChild;)b.insertBefore(O,W);_.Xu(W)}};
_.g7=function(W){return W.children!=void 0?W.children:Array.prototype.filter.call(W.childNodes,function(O){return O.nodeType==1})};
_.$P1=function(W){return W.nextElementSibling!==void 0?W.nextElementSibling:_.tQ9(W.nextSibling,!0)};
_.tQ9=function(W,O){for(;W&&W.nodeType!=1;)W=O?W.nextSibling:W.previousSibling;return W};
_.cO=function(W){return _.LH(W)&&W.nodeType==1};
_.f5=function(W,O){if(!W||!O)return!1;if(W.contains&&O.nodeType==1)return W==O||W.contains(O);if(typeof W.compareDocumentPosition!="undefined")return W==O||!!(W.compareDocumentPosition(O)&16);for(;O&&W!=O;)O=O.parentNode;return O==W};
MQv=function(W,O){if(W==O)return 0;if(W.compareDocumentPosition)return W.compareDocumentPosition(O)&2?1:-1;if("sourceIndex"in W||W.parentNode&&"sourceIndex"in W.parentNode){var b=W.nodeType==1,T=O.nodeType==1;if(b&&T)return W.sourceIndex-O.sourceIndex;var L=W.parentNode,h=O.parentNode;return L==h?VQN(W,O):!b&&_.f5(L,O)?-1*N8N(W,O):!T&&_.f5(h,W)?N8N(O,W):(b?W.sourceIndex:L.sourceIndex)-(T?O.sourceIndex:h.sourceIndex)}T=_.g4(W);b=T.createRange();b.selectNode(W);b.collapse(!0);W=T.createRange();W.selectNode(O);
W.collapse(!0);return b.compareBoundaryPoints(_.i1.Range.START_TO_END,W)};
N8N=function(W,O){var b=W.parentNode;if(b==O)return-1;for(;O.parentNode!=b;)O=O.parentNode;return VQN(O,W)};
VQN=function(W,O){for(;O=O.previousSibling;)if(O==W)return-1;return 1};
uO$=function(W){var O,b=arguments.length;if(!b)return null;if(b==1)return arguments[0];var T=[],L=Infinity;for(O=0;O<b;O++){for(var h=[],Z=arguments[O];Z;)h.unshift(Z),Z=Z.parentNode;T.push(h);L=Math.min(L,h.length)}h=null;for(O=0;O<L;O++){Z=T[0][O];for(var a=1;a<b;a++)if(Z!=T[a][O])return h;h=Z}return h};
_.g4=function(W){return W.nodeType==9?W:W.ownerDocument||W.document};
JXn=function(W){return W.contentDocument||W.contentWindow.document};
_.oB=function(W,O){if("textContent"in W)W.textContent=O;else if(W.nodeType==3)W.data=String(O);else if(W.firstChild&&W.firstChild.nodeType==3){for(;W.lastChild!=W.firstChild;)W.removeChild(W.lastChild);W.firstChild.data=String(O)}else _.RB(W),W.appendChild(_.g4(W).createTextNode(String(O)))};
cX7={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};FX$={IMG:" ",BR:"\n"};xdO=function(W){var O;W.tagName=="A"&&W.hasAttribute("href")||W.tagName=="INPUT"||W.tagName=="TEXTAREA"||W.tagName=="SELECT"||W.tagName=="BUTTON"?O=!W.disabled&&(!W.hasAttribute("tabindex")||yXL(W)):O=W.hasAttribute("tabindex")&&yXL(W);return O};
yXL=function(W){W=W.tabIndex;return typeof W==="number"&&W>=0&&W<32768};
OHv=function(W){var O=[];Wnv(W,O,!0);W=O.join("");W=W.replace(/ \xAD /g," ").replace(/\xAD/g,"");W=W.replace(/\u200B/g,"");W=W.replace(/ +/g," ");W!=" "&&(W=W.replace(/^\s*/,""));return W};
iH9=function(W){var O=[];Wnv(W,O,!1);return O.join("")};
Wnv=function(W,O,b){if(!(W.nodeName in cX7))if(W.nodeType==3)b?O.push(String(W.nodeValue).replace(/(\r\n|\r|\n)/g,"")):O.push(W.nodeValue);else if(W.nodeName in FX$)O.push(FX$[W.nodeName]);else for(W=W.firstChild;W;)Wnv(W,O,b),W=W.nextSibling};
_.bH9=function(W,O,b){if(!O&&!b)return null;var T=O?String(O).toUpperCase():null;return _.sM(W,function(L){return(!T||L.nodeName==T)&&(!b||typeof L.className==="string"&&_.Vh(L.className.split(/\s+/),b))},!0)};
_.sM=function(W,O,b){W&&!b&&(W=W.parentNode);for(b=0;W;){if(O(W))return W;W=W.parentNode;b++}return null};
X1=function(W){this.JSC$7330_document_=W||_.i1.document||document};
_.d=X1.prototype;_.d.getElement=function(W){return _.Ox(this.JSC$7330_document_,W)};
_.d.$=X1.prototype.getElement;_.d.getElementsByTagName=function(W,O){return(O||this.JSC$7330_document_).getElementsByTagName(String(W))};
_.d.getElementsByTagNameAndClass=function(W,O,b){return Ui(this.JSC$7330_document_,W,O,b)};
_.d.$$=X1.prototype.getElementsByTagNameAndClass;_.d.setProperties=xP$;_.d.JSC$7332_createDom=function(W,O,b){return C1N(this.JSC$7330_document_,arguments)};
_.d.createElement=function(W){return qez(this.JSC$7330_document_,W)};
_.d.createTextNode=function(W){return this.JSC$7330_document_.createTextNode(String(W))};
_.d.getWindow=function(){return this.JSC$7330_document_.defaultView};
var ZI=function(W){return _.z8$(W.JSC$7330_document_)};
_.d=X1.prototype;_.d.appendChild=function(W,O){W.appendChild(O)};
_.d.append=fif;_.d.canHaveChildren=p4;_.d.removeNode=_.Xu;_.d.getChildren=_.g7;_.d.contains=_.f5;_.d=OM.prototype;_.d.getWidth=function(){return this.right-this.left};
_.d.getHeight=function(){return this.bottom-this.top};
_.d.clone=function(){return new OM(this.top,this.right,this.bottom,this.left)};
_.d.contains=function(W){return this&&W?W instanceof OM?W.left>=this.left&&W.right<=this.right&&W.top>=this.top&&W.bottom<=this.bottom:W.x>=this.left&&W.x<=this.right&&W.y>=this.top&&W.y<=this.bottom:!1};
_.d.expand=function(W,O,b,T){_.LH(W)?(this.top-=W.top,this.right+=W.right,this.bottom+=W.bottom,this.left-=W.left):(this.top-=W,this.right+=Number(O),this.bottom+=Number(b),this.left-=Number(T));return this};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(W,O){W instanceof _.Kw?(this.left+=W.x,this.right+=W.x,this.top+=W.y,this.bottom+=W.y):(this.left+=W,this.right+=W,typeof O==="number"&&(this.top+=O,this.bottom+=O));return this};
_.d.scale=function(W,O){O=typeof O==="number"?O:W;this.left*=W;this.right*=W;this.top*=O;this.bottom*=O;return this};var Qk=function(W,O,b,T){this.left=W;this.top=O;this.width=b;this.height=T};
_.d=Qk.prototype;_.d.clone=function(){return new Qk(this.left,this.top,this.width,this.height)};
_.d.boundingRect=function(W){var O=Math.max(this.left+this.width,W.left+W.width),b=Math.max(this.top+this.height,W.top+W.height);this.left=Math.min(this.left,W.left);this.top=Math.min(this.top,W.top);this.width=O-this.left;this.height=b-this.top};
_.d.contains=function(W){return W instanceof _.Kw?W.x>=this.left&&W.x<=this.left+this.width&&W.y>=this.top&&W.y<=this.top+this.height:this.left<=W.left&&this.left+this.width>=W.left+W.width&&this.top<=W.top&&this.top+this.height>=W.top+W.height};
_.d.distance=function(W){var O=W.x<this.left?this.left-W.x:Math.max(W.x-(this.left+this.width),0);W=W.y<this.top?this.top-W.y:Math.max(W.y-(this.top+this.height),0);return Math.sqrt(O*O+W*W)};
_.d.getSize=function(){return new _.hU(this.width,this.height)};
_.d.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};
_.d.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};
_.d.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};
_.d.translate=function(W,O){W instanceof _.Kw?(this.left+=W.x,this.top+=W.y):(this.left+=W,typeof O==="number"&&(this.top+=O));return this};
_.d.scale=function(W,O){O=typeof O==="number"?O:W;this.left*=W;this.width*=W;this.top*=O;this.height*=O;return this};var T1N,B1,aI2,si,SvN,hLN,ZHw,gq2,IS$,mzw;_.kl=function(W,O,b){if(typeof O==="string")(O=_.j7q(W,O))&&(W.style[O]=b);else for(var T in O){b=W;var L=O[T],h=_.j7q(b,T);h&&(b.style[h]=L)}};
T1N={};_.j7q=function(W,O){var b=T1N[O];if(!b){var T=_.wl(O);b=T;W.style[T]===void 0&&(T=(_.Lf?"Webkit":_.TR?"Moz":null)+om8(T),W.style[T]!==void 0&&(b=T));T1N[O]=b}return b};
_.XN=function(W,O){var b=_.g4(W);return b.defaultView&&b.defaultView.getComputedStyle&&(W=b.defaultView.getComputedStyle(W,null))?W[O]||W.getPropertyValue(O)||"":""};
_.n5=function(W,O){return _.XN(W,O)||(W.currentStyle?W.currentStyle[O]:null)||W.style&&W.style[O]};
_.Lnz=function(W){return _.n5(W,"position")};
B1=function(W,O,b){if(O instanceof _.Kw){var T=O.x;O=O.y}else T=O,O=b;W.style.left=si(T,!1);W.style.top=si(O,!1)};
aI2=function(W){try{return W.getBoundingClientRect()}catch(O){return{left:0,top:0,right:0,bottom:0}}};
_.Qr=function(W){var O=_.g4(W),b=new _.Kw(0,0);if(W==(O?_.g4(O):document).documentElement)return b;W=aI2(W);O=ZI(IG(O));b.x=W.left+O.x;b.y=W.top+O.y;return b};
_.dz9=function(W,O,b){if(O instanceof _.hU)b=O.height,O=O.width;else if(b==void 0)throw Error("sa");W.style.width=si(O,!0);W.style.height=si(b,!0)};
si=function(W,O){typeof W=="number"&&(W=(O?Math.round(W):W)+"px");return W};
SvN=function(W){return hLN(W)};
hLN=function(W){var O=ZHw;if(_.n5(W,"display")!="none")return O(W);var b=W.style,T=b.display,L=b.visibility,h=b.position;b.visibility="hidden";b.position="absolute";b.display="inline";W=O(W);b.display=T;b.position=h;b.visibility=L;return W};
ZHw=function(W){var O=W.offsetWidth,b=W.offsetHeight,T=_.Lf&&!O&&!b;return(O===void 0||T)&&W.getBoundingClientRect?(W=aI2(W),new _.hU(W.right-W.left,W.bottom-W.top)):new _.hU(O,b)};
gq2=function(W){var O=_.Qr(W);W=hLN(W);return new Qk(O.x,O.y,W.width,W.height)};
IS$=function(W,O){W=W.style;"opacity"in W?W.opacity=O:"MozOpacity"in W?W.MozOpacity=O:"filter"in W&&(W.filter=O===""?"":"alpha(opacity="+Number(O)*100+")")};
_.N9=function(W,O){W.style.display=O?"":"none"};
_.aSL=function(W){return"rtl"==_.n5(W,"direction")};
mzw=function(W){var O=_.XN(W,"marginLeft"),b=_.XN(W,"marginRight"),T=_.XN(W,"marginTop");W=_.XN(W,"marginBottom");return new OM(parseFloat(T),parseFloat(b),parseFloat(W),parseFloat(O))};
_.YvH=function(W){var O=_.XN(W,"borderLeftWidth"),b=_.XN(W,"borderRightWidth"),T=_.XN(W,"borderTopWidth");W=_.XN(W,"borderBottomWidth");return new OM(parseFloat(T),parseFloat(b),parseFloat(W),parseFloat(O))};var r7=function(W){this.context=W};
r7.prototype.isSupported=function(W){return(W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="POST"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive)?!1:!IB(this.context)};
r7.prototype.ping=function(){var W=this;return EK(_.PD.apply(0,arguments).map(function(O){try{var b=W.context.global,T=!1;T=T===void 0?!1:T;b.google_image_requests||(b.google_image_requests=[]);var L=oTq("IMG",b.document);T&&(L.attributionSrc="");L.src=O;b.google_image_requests.push(L);return!0}catch(h){return!1}}).every(function(O){return O}))};
r7.prototype.pingWithHeadersAndBody=function(W,O,b){this.ping.apply(this,_.PG(_.PD.apply(3,arguments)))};var E$L=function(W){this.context=W};
E$L.prototype.isSupported=function(W){return wN$&&!IB(this.context)&&$I8(this.context)!==void 0&&!(W==null?0:W.attributionEnabled)&&(W==null?void 0:W.beaconMethod)!=="POST"&&!(W==null?0:W.customHeaders)&&!(W==null?0:W.customBody)};
E$L.prototype.makeBeacon=function(W,O){if(!this.isSupported(O))throw new d7;return new DA(this.context,W)};
var wN$=!1,DA=function(W,O){this.context=W;this.JSC$7351_urlWithoutToken=O;W=$I8(this.context);if(W===void 0)throw Error();this.wrappedBeacon=new W(A9n(this),{})},A9n=function(W){W=W.JSC$7351_urlWithoutToken;
return(W.slice(-1)[0]==="&"?W:W+"&")+"pbapi=1"};
DA.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
DA.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
DA.prototype.setHeader=function(){};
_.Jq.Object.defineProperties(DA.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7351_urlWithoutToken},
set:function(W){this.JSC$7351_urlWithoutToken=W;this.wrappedBeacon.setURL(A9n(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(W){if(W!=="GET")throw new d7;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var XN9=function(W){this.context=W};
XN9.prototype.isSupported=function(W){if((W==null?0:W.attributionEnabled)||(W==null?void 0:W.beaconMethod)==="GET"||(W==null?0:W.customHeaders)||(W==null?0:W.customBody)||(W==null?0:W.keepAlive))return!1;var O;return!IB(this.context)&&((O=this.context.global.navigator)==null?void 0:O.sendBeacon)!==void 0};
XN9.prototype.ping=function(){var W=this;return EK(_.PD.apply(0,arguments).map(function(O){var b;return(b=W.context.global.navigator)==null?void 0:b.sendBeacon(O)}).every(function(O){return O}))};
XN9.prototype.pingWithHeadersAndBody=function(W,O,b){this.ping.apply(this,_.PG(_.PD.apply(3,arguments)))};var Lw=function(W){this.value=W},HQ=function(W,O){return EK(W.value).pipe(jp(O))},MG=new Lw(!1),ep2=new Lw(!0);var BQ=function(W){this.value=W;this.releasedSubject=new ii};
BQ.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Jq.Object.defineProperties(BQ.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7364_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var jDT=["FRAME","IMG","IFRAME"],Fjh=/^[01](px)?$/,bIQ=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},iIE=function(){var W=new bIQ;
W.crossDomainLoadedDefault=!0;W.pendingImagesBlockLoad=!0;return W};var Uzf=function(W,O){var b=IhX(W);if(b)if(b.onCreativeLoad)b.onCreativeLoad(O);else{var T=O?[O]:[],L=function(h){for(var Z=0;Z<T.length;++Z)try{T[Z](1,h)}catch(a){}T={push:function(a){a(1,h)}}};
b.onCreativeLoad=function(h){T.push(h)};
b.setAttribute("data-creative-load-listener","");b.addEventListener("creativeLoad",function(h){L(h.detail)});
_.i1.addEventListener("message",function(h){ZI2(b,L,h)})}};var xl=function(W,O){var b=this;this.global=W;this.parentContext=O;this.JSC$7375_onVisibilityChange=this.document?QN(EK(!0),gb(this.document,"visibilitychange")).pipe(rb(this.parentContext.performanceMonitor,748),eP(function(){return b.getVisibilityState()}),qE()):EK("visible");
this.document?gb(this.document,"DOMContentLoaded").pipe(rb(this.parentContext.performanceMonitor,739),CI(1)):EK(Jv2("DOMContentLoaded"))},lN1=function(W){return W.document!==null&&W.document.visibilityState!==void 0};
xl.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
xl.prototype.querySelector=function(W){return this.document?this.document.querySelector(W):null};
xl.prototype.querySelectorAll=function(W){return this.document?_.Ov(this.document.querySelectorAll(W)):[]};
xl.prototype.elementFromPoint=function(W,O){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;W=this.document.elementFromPoint(W,O);return W===null?null:new BQ(W)};
var SVi=function(W,O,b){b=b===void 0?!1:b;if(O.ref===void 0||!W.document)return EK(O).pipe(rb(W.parentContext.performanceMonitor,749));var T=new HG(1),L=function(){T.next(O)};
b||Uzf(O.ref,L);TbP(O.ref,L);return T.pipe(rb(W.parentContext.performanceMonitor,749),CI(1))};
_.Jq.Object.defineProperties(xl.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return oG(this.global,"document")?this.global.document||null:null}}});var ahT=_.ts(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),mEe=_.ts(["./reach_worklet.js"]),YKh=_.ts(["./reach_worklet.js"]),lS9=_.ts(["./reach_worklet.html"]),eLU=_.ts(["./reach_worklet.js"]),Pf$=_.ts(["./reach_worklet.js"]);_.yN(lS9);_.yN(eLU);_.yN(Pf$);var Cw={left:0,top:0,width:0,height:0};var pNH,RLH,KnH,v$U,Fk,o$5,Q7$,kwv,Lte,dti,r9n,DzS;pNH=function(W,O,b,T,L,h,Z){var a="";W&&(a+=W+":");b&&(a+="//",O&&(a+=O+"@"),a+=b,T&&(a+=":"+T));L&&(a+=L);h&&(a+="?"+h);Z&&(a+="#"+Z);return a};
RLH=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.J_=function(W){return W.match(RLH)};
_.Rd=function(W,O){return W?O?decodeURI(W):decodeURIComponent(W):W};
KnH=function(W){W=_.J_(W)[1]||null;!W&&_.i1.self&&_.i1.self.location&&(W=_.i1.self.location.protocol.slice(0,-1));return W?W.toLowerCase():""};
_.cU=function(W){return _.Rd(_.J_(W)[3]||null,!0)};
_.mp=function(W){return _.Rd(_.J_(W)[5]||null,!0)};
_.F6O=function(W){var O=W.indexOf("#");return O<0?null:W.slice(O+1)};
v$U=function(W){W=_.J_(W);return pNH(W[1],W[2],W[3],W[4])};
_.g$n=function(W){W=_.J_(W);return pNH(W[1],null,W[3],W[4])};
_.fq=function(W){W=_.J_(W);return pNH(null,null,null,null,W[5],W[6],W[7])};
_.ue=function(W){var O=W.indexOf("#");return O<0?W:W.slice(0,O)};
Fk=function(W,O){W=_.J_(W);O=_.J_(O);return W[3]==O[3]&&W[1]==O[1]&&W[4]==O[4]};
o$5=function(W,O){if(W){W=W.split("&");for(var b=0;b<W.length;b++){var T=W[b].indexOf("="),L=null;if(T>=0){var h=W[b].substring(0,T);L=W[b].substring(T+1)}else h=W[b];O(h,L?W3(L):"")}}};
Q7$=function(W){var O=W.indexOf("#");O<0&&(O=W.length);var b=W.indexOf("?");if(b<0||b>O){b=O;var T=""}else T=W.substring(b+1,O);return[W.slice(0,b),T,W.slice(O)]};
kwv=function(W,O){return O?W?W+"&"+O:O:W};
_.s71=function(W,O){if(!O)return W;W=Q7$(W);W[1]=kwv(W[1],O);return W[0]+(W[1]?"?"+W[1]:"")+W[2]};
_.B1$=function(W,O,b){if(Array.isArray(O))for(var T=0;T<O.length;T++)_.B1$(W,String(O[T]),b);else O!=null&&b.push(W+(O===""?"":"="+_.t_(O)))};
_.ET=function(W){var O=[],b;for(b in W)_.B1$(b,W[b],O);return O.join("&")};
_.uW=function(W,O){O=_.ET(O);return _.s71(W,O)};
_.zp=function(W,O,b){b=b!=null?"="+_.t_(b):"";return _.s71(W,O+b)};
Lte=function(W,O,b,T){for(var L=b.length;(O=W.indexOf(b,O))>=0&&O<T;){var h=W.charCodeAt(O-1);if(h==38||h==63)if(h=W.charCodeAt(O+L),!h||h==61||h==38||h==35)return O;O+=L+1}return-1};
dti=/#|$/;_.GP=function(W,O){var b=W.search(dti),T=Lte(W,0,O,b);if(T<0)return null;var L=W.indexOf("&",T);if(L<0||L>b)L=b;T+=O.length+1;return W3(W.slice(T,L!==-1?L:0))};
r9n=/[?&]($|#)/;_.cb=function(W,O){for(var b=W.search(dti),T=0,L,h=[];(L=Lte(W,T,O,b))>=0;)h.push(W.substring(T,L)),T=Math.min(W.indexOf("&",L)+1||b,b);h.push(W.slice(T));return h.join("").replace(r9n,"$1")};
_.nB=function(W,O,b){return _.zp(_.cb(W,O),O,b)};
DzS=function(W){var O=Q7$(window.location.href),b=O[1],T=[];b&&b.split("&").forEach(function(L){var h=L.indexOf("=");h=h>=0?L.slice(0,h):L;W.hasOwnProperty(h)||T.push(L)});
O[1]=kwv(T.join("&"),_.ET(W));return O[0]+(O[1]?"?"+O[1]:"")+O[2]};var DE1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(DE1,_.qA);DE1.prototype.getVersion=function(){return _.vk(this,2)};var rxT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(rxT,_.qA);var gaT=function(W,O){return _.aG(W,2,O)},BbO=function(W,O){return _.aG(W,3,O)};
rxT.prototype.getModel=function(){return _.vk(this,4)};
var QDX=function(W,O){return _.aG(W,4,O)},vaT=function(W,O){return _.aG(W,5,O)},sDX=function(W,O){return _.aG(W,9,O)},KIi=function(W,O){return lM(W,10,O)},Rv2=function(W,O){return _.TP(W,11,O)},oaE=function(W,O){return _.aG(W,1,O)},k8P=function(W,O){return _.TP(W,7,O)};var PNQ="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var NG=function(W,O,b,T){W=W===void 0?window:W;O=O===void 0?null:O;b=b===void 0?new Ooq:b;T=T===void 0?EaE():T;taq.call(this);var L=this;this.global=W;this.debugChannel=O;this.performanceMonitor=b;this.onPageHide=vG(function(){return gb(L.global,"pagehide")}).pipe(rb(this.performanceMonitor,941));
this.onLoad=vG(function(){return gb(L.global,"load")}).pipe(rb(this.performanceMonitor,738),CI(1));
this.onResize=vG(function(){return gb(L.global,"resize")}).pipe(rb(this.performanceMonitor,741));
this.onMessage=vG(function(){return gb(L.global,"message")}).pipe(rb(this.performanceMonitor,740));
this.document=new xl(this.global,this);this.timeProvider=new Ji2(new Fih(this.intrinsicFunctionNamespace,this.performanceMonitor),new ciQ(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Nhi(new WXU(this),new E$L(this),new hN(this,new bES(this)),new hN(this,new XN9(this)),new hN(this,new r7(this)))};
_.R(NG,taq);var IB=function(W){var O=W.global;return!!W.global.HTMLFencedFrameElement&&!!O.fence&&typeof O.fence.reportEvent==="function"};
_.d=NG.prototype;_.d.reportFencedFrameEvent=function(W){IB(this)&&this.global.fence.reportEvent(W)};
_.d.getOnBackgrounded=function(){return this.onPageHide.pipe(rb(this.performanceMonitor,942),jp(this.queue),eP(function(){}))};
_.d.postMessage=function(W,O,b){b=b===void 0?[]:b;this.global.postMessage(W,O,b)};
_.d.getWidth=function(){return Vr(this.global)?this.global.width:0};
_.d.getHeight=function(){return Vr(this.global)?this.global.height:0};
_.d.isMobile=function(){return T8U()||LX1()};
var r4=function(W,O){try{var b=UEe(O,W.global,W.isMobile());return{left:b.left,top:b.top,width:b.getWidth(),height:b.getHeight()}}catch(T){return Cw}};
NG.prototype.validate=function(){var W=this.beaconFactory.isSupported()||IB(this);return this.global&&this.timeProvider.available()&&W};
var NCE=function(W){return(W=zvT(W.global))?T8(W):null};
_.Jq.Object.defineProperties(NG.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(W){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Vr(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}}});_.xz1=!_.jb&&!_.B2();var PJ8=function(W){return W};var RpQ=function(W){return W.pipe(ka(function(O){var b=O.endOfSessionReason;var T;return((T=O.viewable)==null?void 0:T.extrapolateToNow().value)||b!=void 0}),CI(1),xa())};var HIX=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},tPQ=function(W){var O=W.sequenceNumber.toString(10).padStart(2,"0");
O=""+W.startTime+O;W.sequenceNumber<99&&W.sequenceNumber++;return O};var U9X=WG(uN(function(W){return W.endOfSessionReason===void 0}),eP(function(W){return Object.assign({},W,{timestamps:AU(W)})}),ka(function(W){var O=W.viewable;
W=W.timestamps;var b;return(b=O==null?void 0:O.extrapolateUsingTimestampMap(W).value)!=null?b:!1}),eP(function(W){var O=W.beaconFactory;
var b=W.timestampedExposureHistory;var T=W.timeOnScreen;var L=W.binaryContext;W=W.timestamps;if(O===void 0||b===void 0||T===void 0||L===void 0)return!1;if(T.extrapolateUsingTimestampMap(W).value.every(function(h){return h>=0}))return!0;
b=b.map(function(h){return h.timestamp+":"+h.value}).join(",");
T=XH({bin:L,tos:T},W);O.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+T+("&eh="+b)).sendNow();return!0}),uN(function(W){return!W}),xa());var VPQ=function(W){return{id:W.pingId,mcvt:W.maxConsecutiveViewTime,p:W.creativePosition,asp:W.adSpeedPosition,tm:W.totalMeasurementTime,tu:W.totalUnviewedTime,mtos:W.maxTimeOnScreen,tos:W.timeOnScreen,v:W.binaryVersion,bin:W.binaryContext,avms:W.measurementStrategy,bs:W.browserSize,mc:W.maximumExposure,"if":W.crossDomainIframeState,vu:W.delayedImpressionJsState,app:W.inApp,mse:W.mraidError,mtop:W.mraidSituation,itpl:W.injectedTemplateId,adk:W.adKey,exk:W.awbidKey,rs:W.requestSource,la:W.isLargeAd,
cr:W.isContentRecommendationAd,uach:W.userAgentClientHints,vs:W.viewState,r:W.reasonCode,pay:W.hasCpmavUrl,co:W.clientPingOrderCounter,rst:W.adRenderStartTime,rpt:W.adRenderPeriodTime,isd:W.initialScrollDepth,lsd:W.loadedScrollDepth,context:W.errorContext,msg:W.errorMessage,stack:W.errorStack,name:W.errorName,ec:W.hasElementChanged,sfr:W.strategyFailureReasons,met:W.creativeSearchResult,wmsd:W.webMeasurementStartDiagnostic,pv:W.pageVisible,epv:W.eosPageVisible,pbe:W.inStatefulBeaconExperiment,fle:W.inFetchLaterBeaconExperiment,
vae:W.inViewableAttributionExperiment,spb:W.supportsPendingBeacon,sfl:W.supportsFetchLater,ffslot:W.isFencedFrameSlotTurtlex,reach:W.sharedStorageReachMode,io2:W.v2VisibilityBitVector,rxdbg:W.rxDebugger,omida:W.omidAppId,omidp:W.omidPartner,omidpv:W.omidPartnerVersion,omidor:W.omidOcclusionReasons,omidv:W.omidVersion,omids:W.omidSessionType,omidam:W.omidAccessMode,omidct:W.omidCreativeType,omidia:W.omidInApp,omiddc:W.omidDeviceCategory,omidlat:W.omidLastActivity,omiddit:W.omidDeviceIdleTime,qid:W.errorEscapedQueryId}};var p5e=function(W){var O=[];return W.pipe(eP(function(b){var T=b.beaconFactory,L=b.fetchBeaconFactory,h=b.timeOnScreen,Z=b.timeOnScreenUrlPrefixes,a=b.payloadMapper,m=b.timeOnScreenPingId,w=b.timeOnScreenReason,A=b.urlSerializer,X=b.viewable,l=b.hasImpressionFired,p=b.inStatefulBeaconExperiment,K=b.supportsPendingBeacon,k=b.supportsFetchLater,r=b.turtlexReportEventData;if(!b.geometryMeasurable||!l||b.maxTimeOnScreen===void 0||h===void 0||Z===void 0||a===void 0||m===void 0||A===void 0||T===void 0)return!1;
if(b.isTurtlex){if(w===void 0)return!1;Z=b.reportFencedFrameEvent;if(!Z)return!1;Z({eventType:"active-view-time-on-screen",eventData:r!=null?r:"",destination:["buyer"]});return!0}if(!(p||k||w))return!1;r=AU(b);var q;X=(q=X==null?void 0:X.extrapolateUsingTimestampMap(r).value)!=null?q:!1;q=A(Object.assign({},b,{pingId:m,viewState:X?4:3,reasonCode:w!=null?w:"u",payloadMapper:a,urlPrefixes:Z}),r);if(p){for(;O.length>Z.length;)b=void 0,(b=O.shift())==null||b.deactivate();q.forEach(function(M,V){V>=O.length?
O.push(T.makeBeacon(M)):O[V].url=M});
return K&&L&&w!==void 0?(q.forEach(function(M){L.makeBeacon(M).sendNow()}),!0):w!==void 0}if(K&&L&&w!==void 0)return q.forEach(function(M){L.makeBeacon(M).sendNow()}),!0;
if(k&&L){for(;O.length>Z.length;)K=void 0,(K=O.shift())==null||K.deactivate();var f=A(Object.assign({},b,{pingId:m,viewState:X?4:3,reasonCode:w!=null?w:"u",payloadMapper:a,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),r)[0];q.forEach(function(M,V){V>=O.length?O.push(T.makeBeacon(f,{endOfSession:!0})):O[V].url=f});
return w!==void 0?(q.forEach(function(M){L.makeBeacon(M).sendNow()}),!0):w!==void 0}return w!==void 0?(q.forEach(function(M){T.makeBeacon(M).sendNow()}),!0):!1}),uN(function(b){return!b}),xa())};var KlX=WG(ka(function(W){return W.immediateUrlPrefixes!==void 0&&W.payloadMapper!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),ka(function(W){return Wq1(W)!==null}),FIi(function(W){return W.activeViewUnmeasurableEvent},function(W){return W.emit}),eP(function(W){if(W.isTurtlex){var O=W.reportFencedFrameEvent;
if(O){var b;O({eventType:"active-view-unmeasurable",eventData:(b=W.turtlexReportEventData)!=null?b:"",destination:["buyer"]})}}else{b=void 0;var T=Wq1(W);if(T==="x"){var L,h=(L=W.geometricMeasurementErrors)!=null?L:W.contextValidationErrors;h&&(O=h.stack,b=h.message)}W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:2,reasonCode:T,errorMessage:b,errorStack:O}),AU(W)).forEach(function(Z){W.beaconFactory.makeBeacon(Z).sendNow()})}}),
CI(1),xa());var Ow8=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var X5O=WG(ka(function(W){return W.payloadMapper!==void 0&&W.immediateUrlPrefixes!==void 0&&W.urlSerializer!==void 0&&W.inferredPingId!==void 0&&W.beaconFactory!==void 0}),eP(function(W){return Object.assign({},W,{timestamps:AU(W)})}),ka(function(W){var O=W.viewable;
var b=W.hasImpressionFired;W=W.timestamps;var T;return!!b&&((T=O==null?void 0:O.extrapolateUsingTimestampMap(W).value)!=null?T:!1)}),FIi(function(W){return W.activeViewViewableEvent},function(W){return W.emit}),eP(function(W){var O=W.beaconFactory,b=W.turtlexReportEventData;
if(W.isTurtlex){var T=W.reportFencedFrameEvent;if(!T)return!1;T({eventType:"active-view-viewable",eventData:b!=null?b:"",destination:["buyer"]});return!0}b=W.urlSerializer(Object.assign({},W,{urlPrefixes:W.immediateUrlPrefixes,payloadMapper:W.payloadMapper,pingId:W.inferredPingId,viewState:4,reasonCode:"v"}),W.timestamps);(T=W.cpmavUrls)&&T.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(T,W).forEach(function(L){O.makeBeacon(L).sendNow()});
(T=W.viewableRelayUrls)&&T.length>0&&W.viewUrlSerializer&&W.viewUrlSerializer(T,W).forEach(function(L){O.makeBeacon(L).sendNow()});
b.forEach(function(L){O.makeBeacon(L,{attributionEnabled:W.isViewableAttributionEnabled}).sendNow()});
return!0}),uN(function(W){return!W}),xa());var tpX=eP(function(W){return[W.value.topWindowViewportExternalGeometry.width,W.value.topWindowViewportExternalGeometry.height]});var DI=function(W,O){this.callback=W;this.options=O;this.intersectionObserverV2=this.intersectionObserverV1=null},Kq8=function(W,O){O?W.intersectionObserverV2||(O=Object.assign({},W.options,{delay:100,
trackVisibility:!0}),W.intersectionObserverV2=new IntersectionObserver(W.callback,O)):W.intersectionObserverV1||(W.intersectionObserverV1=new IntersectionObserver(W.callback,W.options))},zLN=function(W,O){W=O?W.intersectionObserverV2:W.intersectionObserverV1;
if(!W)throw new $4P;return W};
DI.prototype.observe=function(W,O){zLN(this,W).observe(O)};
DI.prototype.unobserve=function(W,O){zLN(this,W).unobserve(O)};
DI.prototype.disconnect=function(W){zLN(this,W).disconnect()};
DI.prototype.takeRecords=function(W){return zLN(this,W).takeRecords()};var k3={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Cw,topWindowViewportExternalGeometry:Cw,measurementRequests:new ii,elementGeometrySourceName:"ns",elementGeometry:Cw,intersectionGeometry:Cw,viewportLocalAppOffset:{x:0,y:0}};var B4Q=qG(WG(eP(function(W){var O;return(O=W.exposureOverride)!=null?O:g3Q(W)}),eP(function(W){return isFinite(W)?W:0}))),n3T=qG(WG(eP(function(W){var O;
return(O=W.exposureOverride)!=null?O:g3Q(W)}),eP(function(W){return isFinite(W)?W:-1})));var C4=function(W,O){this.a=W;this.b=O;if(W.clock.timeline!==O.clock.timeline)throw Error();};
C4.prototype.equivalentTo=function(W){return W instanceof C4?this.a.equivalentTo(W.a)&&this.b.equivalentTo(W.b):!1};
C4.prototype.extrapolateToTime=function(W){var O=this.a.extrapolateToTime(W).value,b=this.b.extrapolateToTime(W).value;return{timestamp:W,value:[O,b]}};
_.Jq.Object.defineProperties(C4.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 W=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),O=this.a.lastMeasurement.timestamp.equals(W)?this.a.lastMeasurement.value:this.a.extrapolateToTime(W).value,b=this.b.lastMeasurement.timestamp.equals(W)?this.b.lastMeasurement.value:this.b.extrapolateToTime(W).value;return{timestamp:W,value:[O,b]}}}});var qa=function(W,O){this.input=W;this.mapFunction=O;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
qa.prototype.equivalentTo=function(W){return W instanceof qa?this.input.equivalentTo(W.input)&&this.mapFunction===W.mapFunction:!1};
qa.prototype.extrapolateToTime=function(W){W=this.input.extrapolateToTime(W);return{timestamp:W.timestamp,value:this.mapFunction(W.value)}};
_.Jq.Object.defineProperties(qa.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var n4=function(){};
n4.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
n4.prototype.extrapolateUsingTimestampMap=function(W){var O=this.clock.timeline,b,T=(b=W.get(O))!=null?b:this.clock.now();W.set(O,T);return this.extrapolateToTime(T)};
n4.prototype.map=function(W){return new CfS(this,W)};
n4.prototype.joinWith=function(W){return new qv7(this,W)};
var qv7=function(){C4.apply(this,arguments);this.map=n4.prototype.map;this.joinWith=n4.prototype.joinWith;this.extrapolateToNow=n4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=n4.prototype.extrapolateUsingTimestampMap};
_.R(qv7,C4);var CfS=function(){qa.apply(this,arguments);this.map=n4.prototype.map;this.joinWith=n4.prototype.joinWith;this.extrapolateToNow=n4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=n4.prototype.extrapolateUsingTimestampMap};
_.R(CfS,qa);var fw=function(W,O){this.lastMeasurement=O;this.extrapolateToNow=n4.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=n4.prototype.extrapolateUsingTimestampMap;this.map=n4.prototype.map;this.joinWith=n4.prototype.joinWith;this.clock=W};
fw.prototype.equivalentTo=function(W){return W.active};
fw.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Jq.Object.defineProperties(fw.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var HwX=eP(function(W){if(W.value.viewportGeometrySourceName==="omid"){if(W.value.elementGeometrySourceName==="nio")return"omio";if(W.value.elementGeometrySourceName==="geo")return"omgeo"}return W.value.elementGeometrySourceName==="geo"||W.value.elementGeometrySourceName==="nio"?W.value.viewportGeometrySourceName:W.value.elementGeometrySourceName});var QG2=WG(ka(function(W){return!isNaN(W)}),$a(function(W,O){return isNaN(W)?O:Math.min(W,O)},NaN),qE());var rU1=qG(WG(eP(function(W){return W.intersectionGeometry.width*W.intersectionGeometry.height/(W.exposedViewportLocalGeometry.width*W.exposedViewportLocalGeometry.height)}),eP(function(W){return isFinite(W)?Math.min(1,W):0})));var GKE=WG(qG(eP(function(W){W=W.exposureOverride?W.elementGeometry.width*W.elementGeometry.height*W.exposureOverride/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height):W.intersectionGeometry.width*W.intersectionGeometry.height/(W.topWindowViewportExternalGeometry.width*W.topWindowViewportExternalGeometry.height);return isFinite(W)?W:0})));var Vpq=function(W,O){var b=this;this.timeProvider=W;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=O.pipe(qE()).subscribe(function(T){$3(b);b.measurementRequestObserver=T})},Mpq=function(W,O){$3(W);
W.lastMeasurementRequest=W.timeProvider.setTimeout(function(){var b;return void((b=W.measurementRequestObserver)==null?void 0:b.next())},O)},$3=function(W){W.lastMeasurementRequest!==null&&W.timeProvider.clearTimeout(W.lastMeasurementRequest);
W.lastMeasurementRequest=null};
Vpq.prototype.dispose=function(){$3(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var n$L=function(){};var E6X=function(W,O){this.context=W;this.strategies=O};
_.R(E6X,n$L);E6X.prototype.buildGeometrySource=function(W,O){var b=this.strategies.map(function(h){return h.buildGeometrySource(W,O)}),T=yUX(b.map(function(h){return h.geometrySource})),L=T.capturedErrors.pipe(fSS());
return{geometrySource:T.chain.pipe(jp(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:L,strategyErrors:T.capturedErrors}].concat(_.PG(b.map(function(h){return h.additionalOutputs}))))}};
var fSS=function(){return $a(function(W,O){O instanceof li?W.push(O.measurementStrategyFailureReason):W.push(-1);return W},[])};var AVX=function(W,O){this.context=W;this.poller=O};
_.R(AVX,n$L);AVX.prototype.buildGeometrySource=function(W,O){var b=WlE(i5O(this.context,this.poller),YM1(this.context,O.requestSource));return{geometrySource:Fq8(W.measurableCreative.pipe(b),O.inApp),additionalOutputs:{}}};var w5X=function(W,O,b){b=b===void 0?lIX(W,O):b;this.context=W;this.intersectionObserverStrategy=b};
_.R(w5X,n$L);w5X.prototype.buildGeometrySource=function(W,O){var b=this.intersectionObserverStrategy(O.useV2);return{geometrySource:Fq8(W.measurableCreative.pipe(b,e5q(this.context)),O.inApp),additionalOutputs:{}}};var Gw5=function(W,O,b){var T=T===void 0?Symbol():T;this.element=W;this.immediateUrls=O;this.timeOnScreenUrls=b;this.symbol=T};var tU=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),d9E=Object.freeze([1,.75,tU.exposureThreshold,tU.largeAdExposureThreshold,0]);var pAE=function(W,O){O=O===void 0?36E5:O;var b=b===void 0?!0:b;this.creatives=new ii;this.elementsToUnregister=new ii;this.elementMap=new Map;var T=new NG(window,null);T.beaconFactory=new hN(T,new r7(T));YVX(T,this.creatives,this.elementsToUnregister,W,O,b).subscribe()},vx1=function(W,O,b,T){if(!W.elementMap.has(O)){var L=new BQ(O);
W.elementMap.set(O,L);W.creatives.next(new Gw5(L,b,T))}},Keq=function(W,O){W.elementsToUnregister.next(O);
var b=W.elementMap.get(O);b!==void 0&&(b.release(),W.elementMap.delete(O))};var IrX=function(W){var O=W.url;W=W.uaDataValues;this.JSC$7480_url_=O;this.uaDataValues_=W;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var b=/[?&]([^&=]+)=([^&]*)/g;W=b.exec(O);)this.urlParamValues_[W[1]]=W[2]},ar1=function(W){W=W.uaDataValues_;
if(!W)return"";var O=ui("uap",W.platform)+ui("uapv",W.platformVersion)+ui("uafv",W.uaFullVersion)+ui("uaa",W.architecture)+ui("uam",W.model)+ui("uab",W.bitness);W.fullVersionList&&(O+="&uafvl="+encodeURIComponent(W.fullVersionList.map(function(b){return encodeURIComponent(b.brand)+";"+encodeURIComponent(b.version)}).join("|")));
W.wow64!=null&&(O+="&uaw="+Number(W.wow64));return O.slice(1)};var f4=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(f4,_.qA);f4.prototype.getId=function(){return _.vk(this,1)};
f4.prototype.setId=function(W){return _.JT(this,1,W)};var Gp=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Gp,_.qA);Gp.prototype.getSeconds=function(){return R6(this,1)};
Gp.prototype.setSeconds=function(W){return _.vM(this,1,rg(W),"0")};_.zo=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(_.zo,_.qA);_.zo.prototype.getSeconds=function(){return R6(this,1)};
_.zo.prototype.setSeconds=function(W){return _.vM(this,1,rg(W),"0")};
_.HHw=function(W){var O=Number(o6(W,1));W=_.OV(W,2);return new Date(O*1E3+W/1E6)};var H1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(H1,_.qA);H1.prototype.getUrl=function(){return _.vk(this,1)};
H1.prototype.setUrl=function(W){return _.JT(this,1,W)};
H1.prototype.getHeight=function(){return _.OV(this,2)};
H1.prototype.getWidth=function(){return _.OV(this,3)};var tN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(tN,_.qA);tN.prototype.getAspectRatio=function(){return Kf(this,1)};
tN.prototype.setAspectRatio=function(W){return _.vM(this,1,_.ZP(W),0)};
tN.prototype.getDuration=function(){return _.bP(this,Gp,2)};var t5z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(t5z,_.qA);var $z$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R($z$,_.qA);var V5U=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(V5U,_.qA);var N1w=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(N1w,_.qA);var M5z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(M5z,_.qA);var uUz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(uUz,_.qA);var J9w=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(J9w,_.qA);var c9L=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(c9L,_.qA);var FnN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(FnN,_.qA);var $l=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R($l,_.qA);var Vk=[2,4,5,6,7];var y9H=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(y9H,_.qA);var eb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(eb,_.qA);_.d=eb.prototype;_.d.getId=function(){return _.bP(this,f4,1)};
_.d.setId=function(W){return _.jL(this,1,W)};
_.d.getName=function(){return _.vk(this,2)};
_.d.setDescription=function(W){return _.JT(this,3,W)};
_.d.getUrl=function(){return _.vk(this,8)};
_.d.setUrl=function(W){return _.JT(this,8,W)};
var Na=function(W){return _.yr(W,H1,10,_.W5())};
eb.prototype.getOwner=function(W){var O=_.eW(this,40,_.fU,3,!0);$$(O,W);return O[W]};
eb.prototype.getVersion=function(){return R6(this,45)};
var Ma=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Ma,_.qA);_.W81=[0,HsO,$FT];_.OUU=[0,HsO,$FT];var iUH=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(iUH,_.qA);var uQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(uQ,_.qA);uQ.prototype.getStatus=function(){return _.gQ(this,1)};
uQ.prototype.removeItem=function(W){return L42(this,2,W)};var bU5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(bU5,_.qA);bU5.prototype.getName=function(){return _.vk(this,8)};var JN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(JN,_.qA);JN.prototype.getCommand=function(){return _.gQ(this,1)};
JN.prototype.getSource=function(){return _.bP(this,bU5,2)};
JN.prototype.setVisible=function(W){return _.os(this,5,W)};
JN.prototype.removeItem=function(W){return L42(this,7,W)};var jNq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(jNq,_.qA);jNq.prototype.getCommand=function(){return _.gQ(this,1)};
jNq.prototype.removeItem=function(W){return L42(this,4,W)};
var Tg9=_.i7(jNq);var c1=function(W,O,b){b=b===void 0?Error():b;var T=Error.call(this);this.message=T.message;"stack"in T&&(this.stack=T.stack);this.code=W;O+=":";b instanceof Error?(this.message=O+b.message,this.stack=b.stack||""):(this.message=O+String(b),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(c1,Error);_.R8=function(){this.JSC$7538_disposed_=this.JSC$7538_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.R8.prototype.JSC$7538_disposed_=!1;_.R8.prototype.isDisposed=function(){return this.JSC$7538_disposed_};
_.R8.prototype.dispose=function(){this.JSC$7538_disposed_||(this.JSC$7538_disposed_=!0,this.disposeInternal())};
_.R8.prototype[Symbol.dispose]=function(){this.dispose()};
_.a8=function(W,O){W.addOnDisposeCallback(_.A3(_.JU,O))};
_.R8.prototype.addOnDisposeCallback=function(W,O){this.JSC$7538_disposed_?O!==void 0?W.call(O):W():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),O&&(W=W.bind(O)),this.onDisposeCallbacks_.push(W))};
_.R8.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var F1=function(W){_.R8.call(this);this.wpc=W};
_.R(F1,_.R8);F1.prototype.b7v=function(){return this.wpc.f()};
F1.prototype.myh=function(W){return this.wpc.c(W)};
F1.prototype.ah=function(W){return this.wpc.m(kP8(W))};
F1.prototype.rK=function(W){return this.wpc.mws(kP8(W))};
var FH=function(W){_.R8.call(this);var O=this;this.qM=W;this.lDJ="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.kCU=void 0;this.laZ=this.qM.p;this.rGt=this.vbS.bind(this);this.addOnDisposeCallback(function(){return void L8$(O)})};
_.R(FH,_.R8);var dZS=function(W){var O;return _.I(function(b){if(b.nextAddress==1){if(!W.qM.wpc)throw new c1(30,"NWA");return W.nha?b.return(W.nha):_.Y(b,W.qM.wpc(),2)}O=b.yieldResult;W.nha=new F1(O);return b.return(W.nha)})};
FH.prototype.snapshot=function(W){return this.qM.s(Object.assign({},W.sD&&{c:W.sD},W.u5v&&{s:W.u5v},W.doJ!==void 0&&{p:W.doJ}))};
FH.prototype.vbS=function(W){this.qM.e(W)};
FH.prototype.fSC=function(W,O){return this.qM.c(W,O,!1)};
var L8$=function(W){W.kCU!==void 0&&(W.lDJ.forEach(function(O){var b;(b=W.kCU)==null||b.removeEventListener(O,W.rGt)}),W.kCU=void 0)};
FH.prototype.hFn=function(){return this.qM.l()};var hRq,yk=function(){_.R8.apply(this,arguments);this.uJv=1;this[hRq]=this.dispose};
_.R(yk,_.R8);yk.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.uJv++;return this};
yk.prototype.dispose=function(){--this.uJv||_.R8.prototype.dispose.call(this)};
hRq=Symbol.dispose;var cV8=function(W){this.mow=W;W.addNewEventMetric("/client_streamz/bg/frs",_.jr("mk"))};
cV8.prototype.record=function(W,O){this.mow.record("/client_streamz/bg/frs",W,O)};
var OSe=function(W){this.tFJ=W;W.addNewEventMetric("/client_streamz/bg/wrl",_.jr("mn"),bJ("ac"),bJ("sc"),_.jr("rk"),_.jr("mk"))};
OSe.prototype.record=function(W,O,b,T,L,h){this.tFJ.record("/client_streamz/bg/wrl",W,O,b,T,L,h)};
var yVE=function(W){this.gFa=W;W.addNewCounter("/client_streamz/bg/ec",_.jr("en"),_.jr("mk"))};
yVE.prototype.increment=function(W,O){this.gFa.JSC$7791_incrementCounter("/client_streamz/bg/ec",W,O)};
var WCi=function(W){this.auL=W;W.addNewEventMetric("/client_streamz/bg/el",_.jr("en"),_.jr("mk"))};
WCi.prototype.record=function(W,O,b){this.auL.record("/client_streamz/bg/el",W,O,b)};
var Fl1=function(W){this.nFs=W;W.addNewCounter("/client_streamz/bg/cec",bJ("ec"),_.jr("mk"))};
Fl1.prototype.increment=function(W,O){this.nFs.JSC$7791_incrementCounter("/client_streamz/bg/cec",W,O)};
var iSX=function(W){this.eut=W;W.addNewCounter("/client_streamz/bg/po/csc",bJ("cs"),_.jr("mk"))};
iSX.prototype.increment=function(W,O){this.eut.JSC$7791_incrementCounter("/client_streamz/bg/po/csc",W,O)};
var bSX=function(W){this.xos=W;W.addNewCounter("/client_streamz/bg/po/ctav",_.jr("av"),_.jr("mk"))};
bSX.prototype.increment=function(W,O){this.xos.JSC$7791_incrementCounter("/client_streamz/bg/po/ctav",W,O)};
var jv8=function(W){this.cp9=W;W.addNewCounter("/client_streamz/bg/po/cwsc",_.jr("su"),_.jr("mk"))};
jv8.prototype.increment=function(W,O){this.cp9.JSC$7791_incrementCounter("/client_streamz/bg/po/cwsc",W,O)};var QvX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(QvX,_.qA);var Iqh=function(W,O){return _.K0(W,3,O,cXq)};var S5$=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(S5$,_.qA);var ZU1=[1,2,3];var IP$=[0,ZU1,_.JBE,VM1,uJ8];var aP9=[0,_.t$,[0,n5h,_.nf]];var mZw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(mZw,_.qA);var Y5N=[1,2,3];var E77=[0,Y5N,tMO,fnh,_.$s,aP9];var w9q=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(w9q,_.qA);var Ag7=[0,_.t$,IP$,E77];var X95=[0,_.Hk];var UZ7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(UZ7,_.qA);var lP7=[0,_.Hk,-1,_.GR];var eRN=[0,_.Hk,-1,_.ff,_.GR];var Pk7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Pk7,_.qA);var p9f=[1,2,3];var RR1=[0,p9f,_.$s,lP7,_.$s,eRN,_.$s,X95];var K8v=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(K8v,_.qA);K8v.prototype.JSC$7611_serializeBinary=O0X([0,_.Hk,RR1,cBP,_.t$,Ag7,NjE,MM8]);var v75=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(v75,_.qA);var QN7=function(W){var O=new K8v;O=_.aG(O,1,W.JSC$7727_metricName);var b=g7f(W);O=_.K0(O,3,b,_.qZ);b=[];for(var T=[],L=_.S(W.cellMap.keys()),h=L.next();!h.done;h=L.next())T.push(h.value.split(","));for(L=0;L<T.length;L++){h=T[L];for(var Z=W.cellType,a=W.getCells(h)||[],m=[],w=0;w<a.length;w++){var A=a[w],X=A&&A.cellValue;A=new mZw;switch(Z){case 3:X=Number(X);Number.isFinite(X)&&YG(A,1,Y5N,rg(X));break;case 2:YG(A,2,Y5N,_.ZP(Number(X)))}m.push(A)}Z=m;for(a=0;a<Z.length;a++){m=Z[a];w=new w9q;m=_.jL(w,
2,m);w=[];A=o7U(W);for(X=0;X<A.length;X++){var l=A[X],p=h[X],K=new S5$;switch(l){case 3:YG(K,1,ZU1,nU(String(p)));break;case 2:l=Number(p);Number.isFinite(l)&&YG(K,2,ZU1,_.v9(l));break;case 1:YG(K,3,ZU1,MQe(p==="true"))}w.push(K)}lM(m,1,w);b.push(m)}}lM(O,4,b);return O};var k19=function(W){if(!W)return"";if(/^about:(?:blank|srcdoc)$/.test(W))return window.origin||"";W.indexOf("blob:")===0&&(W=W.substring(5));W=W.split("#")[0].split("?")[0];W=W.toLowerCase();W.indexOf("//")==0&&(W=window.location.protocol+W);/^[\w\-]*:\/\//.test(W)||(W=window.location.href);var O=W.substring(W.indexOf("://")+3),b=O.indexOf("/");b!=-1&&(O=O.substring(0,b));b=W.substring(0,W.indexOf("://"));if(!b)throw Error("ua`"+W);if(b!=="http"&&b!=="https"&&b!=="chrome-extension"&&b!=="moz-extension"&&
b!=="file"&&b!=="android-app"&&b!=="chrome-search"&&b!=="chrome-untrusted"&&b!=="chrome"&&b!=="app"&&b!=="devtools")throw Error("va`"+b);W="";var T=O.indexOf(":");if(T!=-1){var L=O.substring(T+1);O=O.substring(0,T);if(b==="http"&&L!=="80"||b==="https"&&L!=="443")W=":"+L}return b+"://"+O+W};var Bg1=function(W,O,b){var T=String(_.i1.location.href);return T&&W&&O?[O,sNN(k19(T),W,b||null)].join(" "):null},sNN=function(W,O,b){var T=[],L=[];
if((Array.isArray(b)?2:1)==1)return L=[O,W],_.$X(T,function(a){L.push(a)}),rg5(L.join(" "));
var h=[],Z=[];_.$X(b,function(a){Z.push(a.key);h.push(a.value)});
b=Math.floor((new Date).getTime()/1E3);L=h.length==0?[b,O,W]:[h.join(":"),b,O,W];_.$X(T,function(a){L.push(a)});
W=rg5(L.join(" "));W=[b,W];Z.length==0||W.push(Z.join(""));return W.join("_")},rg5=function(W){var O=qV2();
O.update(W);return O.digestString().toLowerCase()};var Wx=function(W){this.JSC$7622_document_=W||{cookie:""}},DZ7;
_.d=Wx.prototype;_.d.isEnabled=function(){if(!_.i1.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};
_.d.set=function(W,O,b){var T=!1;if(typeof b==="object"){var L=b.sameSite;T=b.secure||!1;var h=b.domain||void 0;var Z=b.path||void 0;var a=b.maxAge}if(/[;=\s]/.test(W))throw Error("wa`"+W);if(/[;\r\n]/.test(O))throw Error("xa`"+O);a===void 0&&(a=-1);b=h?";domain="+h:"";Z=Z?";path="+Z:"";T=T?";secure":"";a=a<0?"":a==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+a*1E3)).toUTCString();this.JSC$7622_document_.cookie=W+"="+O+b+Z+a+T+(L!=null?";samesite="+L:"")};
_.d.get=function(W,O){for(var b=W+"=",T=(this.JSC$7622_document_.cookie||"").split(";"),L=0,h;L<T.length;L++){h=Ee(T[L]);if(h.lastIndexOf(b,0)==0)return h.slice(b.length);if(h==W)return""}return O};
_.d.remove=function(W,O,b){var T=this.containsKey(W);this.set(W,"",{maxAge:0,path:O,domain:b});return T};
_.d.getKeys=function(){return DZ7(this).keys};
_.d.getValues=function(){return DZ7(this).values};
_.d.isEmpty=function(){return!this.JSC$7622_document_.cookie};
_.d.getCount=function(){return this.JSC$7622_document_.cookie?(this.JSC$7622_document_.cookie||"").split(";").length:0};
_.d.containsKey=function(W){return this.get(W)!==void 0};
_.d.containsValue=function(W){for(var O=DZ7(this).values,b=0;b<O.length;b++)if(O[b]==W)return!0;return!1};
_.d.clear=function(){for(var W=DZ7(this).keys,O=W.length-1;O>=0;O--)this.remove(W[O])};
DZ7=function(W){W=(W.JSC$7622_document_.cookie||"").split(";");for(var O=[],b=[],T,L,h=0;h<W.length;h++)L=Ee(W[h]),T=L.indexOf("="),T==-1?(O.push(""),b.push(L)):(O.push(L.substring(0,T)),b.push(L.substring(T+1)));return{keys:O,values:b}};
_.Xq=new Wx(typeof document=="undefined"?null:document);var Mo8=function(){var W=_.i1.__SAPISID||_.i1.__APISID||_.i1.__3PSAPISID||_.i1.__1PSAPISID||_.i1.__OVERRIDE_SID;if(W)return!0;typeof document!=="undefined"&&(W=new Wx(document),W=W.get("SAPISID")||W.get("APISID")||W.get("__Secure-3PAPISID")||W.get("__Secure-1PAPISID"));return!!W},xZq=function(W,O,b,T){(W=_.i1[W])||typeof document==="undefined"||(W=(new Wx(document)).get(O));
return W?Bg1(W,b,T):null},f51=function(W){var O=k19(_.i1==null?void 0:_.i1.location.href),b=[];
if(Mo8()){O=O.indexOf("https:")==0||O.indexOf("chrome-extension:")==0||O.indexOf("chrome-untrusted://new-tab-page")==0||O.indexOf("moz-extension:")==0;var T=O?_.i1.__SAPISID:_.i1.__APISID;T||typeof document==="undefined"||(T=new Wx(document),T=T.get(O?"SAPISID":"APISID")||T.get("__Secure-3PAPISID"));(T=T?Bg1(T,O?"SAPISIDHASH":"APISIDHASH",W):null)&&b.push(T);O&&((O=xZq("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",W))&&b.push(O),(W=xZq("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",W))&&b.push(W))}return b.length==
0?null:b.join(" ")};var zR$=function(){this.minSize=1024};
zR$.prototype.compress=function(W){var O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return O=new CompressionStream("gzip"),b=(new Response(O.readable)).arrayBuffer(),T=O.writable.getWriter(),_.Y(h,T.write((new TextEncoder).encode(W)),2);case 2:return _.Y(h,T.close(),3);case 3:return L=Uint8Array,_.Y(h,b,4);case 4:return h.return(new L(h.yieldResult))}})};
zR$.prototype.isSupported=function(W){return W<this.minSize?!1:typeof CompressionStream!=="undefined"};var Ckf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Ckf,_.qA);var OR=function(W,O){this.intervalMs=W;this.callback=O;this.enabled=!1;this.nowFn=function(){return _.yG()};
this.lastTimeMs=this.nowFn()};
OR.prototype.setInterval=function(W){this.intervalMs=W;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
OR.prototype.start=function(){var W=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){W.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
OR.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
OR.prototype.tick=function(){var W=this;if(this.enabled){var O=Math.max(this.nowFn()-this.lastTimeMs,0);O<this.intervalMs*.8?this.timer=setTimeout(function(){W.tick()},this.intervalMs-O):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var q5S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(q5S,_.qA);var n7n=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(n7n,_.qA);var fPL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(fPL,_.qA);fPL.prototype.getTransmissionType=function(){return _.gQ(this,1)};var H51=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(H51,_.qA);H51.prototype.getVersion=function(){return _.vk(this,2)};var iE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(iE,_.qA);var GP8=function(W){lM(L5,1,W)};
iE.prototype.getModel=function(){return _.vk(this,6)};
var G1n=_.i7(iE);var HU9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(HU9,_.qA);var n6O=["platform","platformVersion","architecture","model","uaFullVersion"],L5=new iE,fNT=null;var tB1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(tB1,_.qA);var $ZL=function(W){return _.jq(W,1,1)};var VBq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,4)};
_.R(VBq,_.qA);_.bE=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,36)};
_.R(_.bE,_.qA);_.bE.prototype.getExperimentIds=function(){return _.bP(this,Ckf,16)};var Ngv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,19)};
_.R(Ngv,_.qA);Ngv.prototype.setLogSource=function(W){return _.jq(this,2,W)};
Ngv.prototype.setScheduler=function(W){return _.jq(this,10,W)};var uDf=function(W,O){this.isServiceWorkerScope=O=O===void 0?!1:O;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new Ngv;Number.isInteger(W)&&this.logRequest.setLogSource(W);O||(this.locale=document.documentElement.getAttribute("lang"));MBv(this,new tB1)};
uDf.prototype.setLogSource=function(W){this.logRequest.setLogSource(W);return this};
var MBv=function(W,O){_.jL(W.logRequest,1,O);_.gQ(O,1)||$ZL(O);W.isServiceWorkerScope||(O=jo(W),_.vk(O,5)||_.aG(O,5,W.locale));W.uach&&(O=jo(W),_.bP(O,iE,9)||_.jL(O,9,W.uach))},Jgv=function(W,O){W.transmissionType=O},cgU=function(W){var O=O===void 0?n6O:O;
var b=W.isServiceWorkerScope?void 0:vQ();b?trq(b,O).then(function(T){W.uach=G1n(T!=null?T:"[]");T=jo(W);_.jL(T,9,W.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},jo=function(W){W=_.bP(W.logRequest,tB1,1);
var O=_.bP(W,HU9,11);O||(O=new HU9,_.jL(W,11,O));return O};
uDf.prototype.build=function(W,O,b,T,L,h){O=O===void 0?0:O;b=b===void 0?0:b;T=T===void 0?null:T;L=L===void 0?0:L;h=h===void 0?0:h;if(!this.isServiceWorkerScope){var Z=jo(this);var a=new fPL;a=_.jq(a,1,this.transmissionType);a=_.TP(a,2,this.isFinal);b=_.s3(a,3,b>0?b:void 0);b=_.s3(b,4,L>0?L:void 0);b=_.s3(b,5,h>0?h:void 0);L=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;h=L[_.Qq]|0;b=CH(b,h)?b:SW(b,L,h)?hA(b,L):new b.constructor(dA(L,h,!0));_.jL(Z,10,b)}Z=this.logRequest.clone();b=Date.now().toString();
Z=_.T7(Z,4,rg(b));W=W.slice();W=lM(Z,3,W);T&&(Z=new q5S,T=_.s3(Z,13,T),Z=new n7n,T=_.jL(Z,2,T),Z=new VBq,T=_.jL(Z,1,T),T=_.jq(T,2,9),_.jL(W,18,T));O&&_.pB(W,14,O);return W};dD.prototype.currBackoffCount_=0;dD.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
dD.prototype.getValue=function(){return this.currValue_};
var F85=function(W){W.currBaseValue_=Math.min(W.maxValue_,W.currBaseValue_*W.backoffFactor_);W.currValue_=Math.min(W.maxValue_,W.currBaseValue_+(W.randomFactor_?Math.round(W.randomFactor_*(Math.random()-.5)*2*W.currBaseValue_):0));W.currBackoffCount_++};var iJq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,8)};
_.R(iJq,_.qA);var ygv=_.i7(iJq);var bJh=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(bJh,_.qA);var Ty;Ty=new jh8;var LO=function(W){_.R8.call(this);var O=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7700_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$7700_sendBeaconApiEnabled=!1;this.logSource=W.logSource;this.getAuthHeaderValue=
W.getAuthHeaderValue||function(){};
this.logRequestBuilder=new uDf(W.logSource,W.isServiceWorkerScope);this.network=W.network||null;this.productID=W.productID||null;this.clearcutUrl=W.urlOverride||null;this.sessionIndex=W.sessionIndex||null;this.disableAutomaticFlush=W.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!W.disableWithCredentials;this.isServiceWorkerScope=W.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!vQ()&&!!vQ().navigator&&vQ().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(W75())).searchParams&&!!(new URL(W75())).searchParams.set;var b=$ZL(new tB1);MBv(this.logRequestBuilder,b);this.flushBackoff=new dD(1E4,3E5,.1);W=O09(this,W.backgroundJobDeferrer);this.JSC$7700_flushTimer=new OR(this.flushBackoff.getValue(),W);this.backupTimer=new OR(6E5,W);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){i0w(O);
var T;(T=O.metalogService)==null||T.flush()}}),document.addEventListener("pagehide",function(){i0w(O);
var T;(T=O.metalogService)==null||T.flush()}))};
_.R(LO,_.R8);var O09=function(W,O){return W.isBrowserSupported?O?function(){O().then(function(){W.flush()})}:function(){W.flush()}:function(){}};
LO.prototype.disposeInternal=function(){i0w(this);this.JSC$7700_flushTimer.stop();this.backupTimer.stop();_.R8.prototype.disposeInternal.call(this)};
var b0f=function(W){W.clearcutUrl||(W.clearcutUrl=W75());try{return(new URL(W.clearcutUrl)).toString()}catch(O){return(new URL(W.clearcutUrl,vQ().location.origin)).toString()}};
LO.prototype.dispatch=function(W){if(W instanceof _.bE)this.log(W);else try{var O=new _.bE,b=W.serialize();var T=_.aG(O,8,b);this.log(T)}catch(L){d9(this,4,1)}};
var d9=function(W,O,b){W.metalogService&&W.metalogService.increment(O,b)};
LO.prototype.log=function(W){d9(this,2,1);if(this.isBrowserSupported){W=W.clone();var O=this.sequencePosition++;W=_.pB(W,21,O);this.componentId&&_.aG(W,26,this.componentId);O=W;if(mzX(_.mD(O,1))==null){var b=Date.now();b=Number.isFinite(b)?b.toString():"0";_.T7(O,1,rg(b))}_.aS8(_.mD(O,15))!=null||_.pB(O,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(b=this.experimentIds.clone(),_.jL(O,16,b));d9(this,1,1);O=this.pendingEvents.length-1E3+1;O>0&&(this.pendingEvents.splice(0,O),this.numLogsDroppedSinceLastFlush+=
O,d9(this,3,O));this.pendingEvents.push(W);this.disableAutomaticFlush||this.JSC$7700_flushTimer.enabled||this.JSC$7700_flushTimer.start()}};
LO.prototype.flush=function(W,O){var b=this;if(this.pendingEvents.length===0)W&&W();else if(this.JSC$7700_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,jRN(this);else{var T=Date.now();if(this.noFlushUntilMs>T&&this.startWaitingMs<T)O&&O("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Jgv(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var L=this.pendingEvents.length,
h=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),Z=this.getAuthHeaderValue();if(Z&&this.lastFailedAuth===Z)O&&O("stale-auth-token");else{this.pendingEvents=[];this.JSC$7700_flushTimer.enabled&&this.JSC$7700_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;T=h.serialize();var a;this.JSC$7700_compressor&&this.JSC$7700_compressor.isSupported(T.length)&&
(a=this.JSC$7700_compressor.compress(T));var m=TAS(this,T,Z),w=function(l){b.flushBackoff.reset();b.JSC$7700_flushTimer.setInterval(b.flushBackoff.getValue());if(l){var p=null;try{var K=JSON.stringify(JSON.parse(l.replace(")]}'\n","")));p=ygv(K)}catch(k){}p&&(l=Number(R6(p,1,_.FU("-1"))),l>0&&(b.startWaitingMs=Date.now(),b.noFlushUntilMs=b.startWaitingMs+l),s78(p.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Ty.fieldIndex),Q7T(p,Ty.fieldIndex),p=Ty.ctor?Ty.getExtensionFn(p,Ty.ctor,Ty.fieldIndex,
Ty.JSC$6880_hasMessageId):Ty.getExtensionFn(p,Ty.fieldIndex,null,Ty.JSC$6880_hasMessageId),p=p===null?void 0:p)&&(p=_.OV(p,1,-1),p!==-1&&(b.flushBackoff=new dD(p<1?1:p,3E5,.1),b.JSC$7700_flushTimer.setInterval(b.flushBackoff.getValue())))}W&&W();b.numRetriesSinceLastSuccessfulFlush=0},A=function(l,p){var K=_.yr(h,_.bE,3,_.W5());
var k=Number(R6(h,14));F85(b.flushBackoff);b.JSC$7700_flushTimer.setInterval(b.flushBackoff.getValue());l===401&&Z&&(b.lastFailedAuth=Z);k&&(b.numLogsDroppedSinceLastFlush+=k);p===void 0&&(p=b.isRetryable(l));p&&(b.pendingEvents=K.concat(b.pendingEvents),b.disableAutomaticFlush||b.JSC$7700_flushTimer.enabled||b.JSC$7700_flushTimer.start());d9(b,7,1);O&&O("net-send-failed",l);++b.numRetriesSinceLastSuccessfulFlush},X=function(){b.network&&b.network.send(m,w,A)};
a?a.then(function(l){d9(b,5,L);m.requestHeaders["Content-Encoding"]="gzip";m.requestHeaders["Content-Type"]="application/binary";m.body=l;m.bodyType=2;X()},function(){d9(b,6,L);
X()}):X()}}}};
var TAS=function(W,O,b){b=b===void 0?null:b;var T=T===void 0?W.withCredentials:T;var L={},h=new URL(b0f(W));b&&(L.Authorization=b);W.sessionIndex&&(L["X-Goog-AuthUser"]=W.sessionIndex,h.searchParams.set("authuser",W.sessionIndex));W.pageId&&(Object.defineProperty(L,"X-Goog-PageId",{value:W.pageId}),h.searchParams.set("pageId",W.pageId));return{url:h.toString(),body:O,bodyType:1,requestHeaders:L,requestType:"POST",withCredentials:T,timeoutMillis:W.timeoutMillis}},i0w=function(W){W.logRequestBuilder.isFinal=
!0;
W.flush();W.logRequestBuilder.isFinal=!1},jRN=function(W){L79(W,function(O,b){O=new URL(O);
O.searchParams.set("format","json");var T=!1;try{T=vQ().navigator.sendBeacon(O.toString(),b.serialize())}catch(L){}T||(W.isSendBeaconSupported=!1);return T})},L79=function(W,O){if(W.pendingEvents.length!==0){var b=new URL(b0f(W));
b.searchParams.delete("format");var T=W.getAuthHeaderValue();T&&b.searchParams.set("auth",T);b.searchParams.set("authuser",W.sessionIndex||"0");for(T=0;T<10&&W.pendingEvents.length;++T){var L=W.pendingEvents.slice(0,32),h=W.logRequestBuilder.build(L,W.numLogsDroppedSinceLastFlush,W.numRetriesSinceLastSuccessfulFlush,W.productID,W.persistedLogRecoveredCount,W.persistedLogExpiredCount);if(!O(b.toString(),h)){++W.numRetriesSinceLastSuccessfulFlush;break}W.numLogsDroppedSinceLastFlush=0;W.numRetriesSinceLastSuccessfulFlush=
0;W.persistedLogRecoveredCount=0;W.persistedLogExpiredCount=0;W.pendingEvents=W.pendingEvents.slice(L.length)}W.JSC$7700_flushTimer.enabled&&W.JSC$7700_flushTimer.stop()}};
LO.prototype.isRetryable=function(W){return 500<=W&&W<600||W===401||W===0};
var W75=function(){return"https://play.google.com/log?format=json&hasfast=true"};var dAU=function(){this.abortSupported=typeof AbortController!=="undefined"};
dAU.prototype.send=function(W,O,b){var T=this,L,h,Z,a,m,w,A,X,l,p;return _.I(function(K){switch(K.nextAddress){case 1:return h=(L=T.abortSupported?new AbortController:void 0)?setTimeout(function(){L.abort()},W.timeoutMillis):void 0,_.LI(K,2,3),Z=Object.assign({},{method:W.requestType,
headers:Object.assign({},W.requestHeaders)},W.body&&{body:W.body},W.withCredentials&&{credentials:"include"},{signal:W.timeoutMillis&&L?L.signal:null}),_.Y(K,fetch(W.url,Z),5);case 5:a=K.yieldResult;if(a.status!==200){(m=b)==null||m(a.status);K.jumpTo(3);break}if((w=O)==null){K.jumpTo(7);break}return _.Y(K,a.text(),8);case 8:w(K.yieldResult);case 7:case 3:_.hx(K);clearTimeout(h);_.Zh(K,0);break;case 2:A=_.ID(K);switch((X=A)==null?void 0:X.name){case "AbortError":(l=b)==null||l(408);break;default:(p=
b)==null||p(400)}K.jumpTo(3)}})};
dAU.prototype.getTransmissionType=function(){return 4};_.ZN=function(W,O){O=O===void 0?"0":O;_.R8.call(this);this.logSource=W;this.sessionIndex=O;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7718_clearExperimentIds=this.productID=null;this.JSC$7718_sendBeaconApiEnabled=!1;this.pageId=null};
_.R(_.ZN,_.R8);var h02=function(W,O){W.buildLabel=O;return W},dr8=function(W,O){W.network=O;
return W},ZSX=function(W,O){W.JSC$7718_clearExperimentIds=O},LCe=function(W){W.JSC$7718_sendBeaconApiEnabled=!0;
return W};
_.ZN.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.ZN.prototype.build=function(){this.network||(this.network=new dAU);var W=new LO({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:f51,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.a8(this,W);if(this.buildLabel){var O=this.buildLabel,b=jo(W.logRequestBuilder);
_.aG(b,7,O)}W.JSC$7700_compressor=new zR$;this.componentId&&(W.componentId=this.componentId);this.productID&&(W.productID=this.productID);this.pageId&&(W.pageId=this.pageId);this.JSC$7718_clearExperimentIds&&((b=this.JSC$7718_clearExperimentIds)?(W.experimentIds||(W.experimentIds=new Ckf),O=W.experimentIds,b=b.serialize(),_.aG(O,4,b)):W.experimentIds&&_.T7(W.experimentIds,4));this.JSC$7718_sendBeaconApiEnabled&&(W.JSC$7700_sendBeaconApiEnabled=W.isSendBeaconSupported);cgU(W.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(W);return W};var kxO=function(W,O,b,T,L,h,Z){W=W===void 0?-1:W;O=O===void 0?"":O;b=b===void 0?"":b;T=T===void 0?!1:T;L=L===void 0?"":L;_.R8.call(this);this.logSource=W;this.componentId=O;h?O=h:(W=new _.ZN(W,"0"),W.componentId=O,_.a8(this,W),b!==""&&(W.destinationUrl=b),T&&(W.serviceWorkerScopeEnabled=!0),L&&h02(W,L),Z&&dr8(W,Z),O=W.build());this.JSC$7722_transport=O};
_.R(kxO,_.R8);kxO.prototype.flush=function(W){W=W||[];if(W.length){for(var O=new v75,b=[],T=0;T<W.length;T++){var L=W[T],h=QN7(L);b.push(h);L.clear()}lM(O,1,b);this.JSC$7722_transport.dispatch(O);this.JSC$7722_transport.flush()}};var hk$=function(W){this.cellValue=W};var hY=function(W,O,b){this.JSC$7727_metricName=W;this.cellType=O;this.fields=b||[];this.cellMap=new Map},o7U=function(W){return W.fields.map(function(O){return O.fieldType})},g7f=function(W){return W.fields.map(function(O){return O.fieldName})};
_.d=hY.prototype;_.d.addCell=function(W){var O=_.PD.apply(1,arguments),b=this.getCells(O);b?b.push(new hk$(W)):this.JSC$7727_setCell(W,O)};
_.d.JSC$7727_setCell=function(W){var O=this.JSC$7727_getKey(_.PD.apply(1,arguments));this.cellMap.set(O,[new hk$(W)])};
_.d.getCells=function(){var W=this.JSC$7727_getKey(_.PD.apply(0,arguments));return this.cellMap.has(W)?this.cellMap.get(W):void 0};
_.d.getCell=function(){var W=this.getCells(_.PD.apply(0,arguments));return W&&W.length?W[0]:void 0};
_.d.clear=function(){this.cellMap.clear()};
_.d.JSC$7727_getKey=function(){var W=_.PD.apply(0,arguments);return W?W.join(","):"key"};var StL=function(W,O){hY.call(this,W,3,O)};
_.R(StL,hY);StL.prototype.JSC$7730_incrementCounterBy=function(W){var O=_.PD.apply(1,arguments),b=0,T=this.getCell(O);T&&(b=T.cellValue);this.JSC$7727_setCell(b+W,O)};var Z0v=function(W,O){hY.call(this,W,2,O)};
_.R(Z0v,hY);Z0v.prototype.record=function(W){this.addCell(W,_.PD.apply(1,arguments))};_.So=function(W){this.id=W};
_.So.prototype.toString=function(){return this.id};_.ZB=function(W,O){this.type=W instanceof _.So?String(W):W;this.currentTarget=this.target=O;this.defaultPrevented=this.propagationStopped_=!1};
_.ZB.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.ZB.prototype.preventDefault=function(){this.defaultPrevented=!0};_.IK=function(W,O){_.ZB.call(this,W?W.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;W&&this.init(W,O)};
_.Wk(_.IK,_.ZB);
_.IK.prototype.init=function(W,O){var b=this.type=W.type,T=W.changedTouches&&W.changedTouches.length?W.changedTouches[0]:null;this.target=W.target||W.srcElement;this.currentTarget=O;O=W.relatedTarget;O||(b=="mouseover"?O=W.fromElement:b=="mouseout"&&(O=W.toElement));this.relatedTarget=O;T?(this.clientX=T.clientX!==void 0?T.clientX:T.pageX,this.clientY=T.clientY!==void 0?T.clientY:T.pageY,this.screenX=T.screenX||0,this.screenY=T.screenY||0):(this.offsetX=_.Lf||W.offsetX!==void 0?W.offsetX:W.layerX,
this.offsetY=_.Lf||W.offsetY!==void 0?W.offsetY:W.layerY,this.clientX=W.clientX!==void 0?W.clientX:W.pageX,this.clientY=W.clientY!==void 0?W.clientY:W.pageY,this.screenX=W.screenX||0,this.screenY=W.screenY||0);this.button=W.button;this.keyCode=W.keyCode||0;this.key=W.key||"";this.charCode=W.charCode||(b=="keypress"?W.keyCode:0);this.ctrlKey=W.ctrlKey;this.altKey=W.altKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pointerId=W.pointerId||0;this.pointerType=W.pointerType;this.state=W.state;
this.timeStamp=W.timeStamp;this.event_=W;W.defaultPrevented&&_.IK.superClass_.preventDefault.call(this)};
_.IK.prototype.stopPropagation=function(){_.IK.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.IK.prototype.preventDefault=function(){_.IK.superClass_.preventDefault.call(this);var W=this.event_;W.preventDefault?W.preventDefault():W.returnValue=!1};var IGv="closure_listenable_"+(Math.random()*1E6|0),aK=function(W){return!(!W||!W[IGv])};var aGS=0;var mAn=function(W,O,b,T,L){this.listener=W;this.proxy=null;this.src=O;this.type=b;this.capture=!!T;this.handler=L;this.key=++aGS;this.removed=this.callOnce=!1},Yt1=function(W){W.removed=!0;
W.listener=null;W.proxy=null;W.src=null;W.handler=null};hV.prototype.add=function(W,O,b,T,L){var h=W.toString();W=this.listeners[h];W||(W=this.listeners[h]=[],this.typeCount_++);var Z=EhL(W,O,T,L);Z>-1?(O=W[Z],b||(O.callOnce=!1)):(O=new mAn(O,this.src,h,!!T,L),O.callOnce=b,W.push(O));return O};
hV.prototype.remove=function(W,O,b,T){W=W.toString();if(!(W in this.listeners))return!1;var L=this.listeners[W];O=EhL(L,O,b,T);return O>-1?(Yt1(L[O]),_.MP(L,O),L.length==0&&(delete this.listeners[W],this.typeCount_--),!0):!1};
var wMn=function(W,O){var b=O.type;if(!(b in W.listeners))return!1;var T=_.c2(W.listeners[b],O);T&&(Yt1(O),W.listeners[b].length==0&&(delete W.listeners[b],W.typeCount_--));return T};
hV.prototype.removeAll=function(W){W=W&&W.toString();var O=0,b;for(b in this.listeners)if(!W||b==W){for(var T=this.listeners[b],L=0;L<T.length;L++)++O,Yt1(T[L]);delete this.listeners[b];this.typeCount_--}return O};
hV.prototype.getListener=function(W,O,b,T){W=this.listeners[W.toString()];var L=-1;W&&(L=EhL(W,O,b,T));return L>-1?W[L]:null};
hV.prototype.hasListener=function(W,O){var b=W!==void 0,T=b?W.toString():"",L=O!==void 0;return _.PQ.some(this.listeners,function(h){for(var Z=0;Z<h.length;++Z)if(!(b&&h[Z].type!=T||L&&h[Z].capture!=O))return!0;return!1})};
var EhL=function(W,O,b,T){for(var L=0;L<W.length;++L){var h=W[L];if(!h.removed&&h.listener==O&&h.capture==!!b&&h.handler==T)return L}return-1};var AAn,XM9,UAU,ekH,P_9,lj,eD,K7z,pMf,RkN,mH,vhw,lGv;AAn="closure_lm_"+(Math.random()*1E6|0);XM9={};UAU=0;_.Rx=function(W,O,b,T,L){if(T&&T.once)return lj(W,O,b,T,L);if(Array.isArray(O)){for(var h=0;h<O.length;h++)_.Rx(W,O[h],b,T,L);return null}b=lGv(b);return aK(W)?W.listen(O,b,_.LH(T)?!!T.capture:!!T,L):ekH(W,O,b,!1,T,L)};
ekH=function(W,O,b,T,L,h){if(!O)throw Error("za");var Z=_.LH(L)?!!L.capture:!!L,a=mH(W);a||(W[AAn]=a=new hV(W));b=a.add(O,b,T,Z,h);if(b.proxy)return b;T=P_9();b.proxy=T;T.src=W;T.listener=b;if(W.addEventListener)_.B_q||(L=Z),L===void 0&&(L=!1),W.addEventListener(O.toString(),T,L);else if(W.attachEvent)W.attachEvent(pMf(O.toString()),T);else if(W.addListener&&W.removeListener)W.addListener(T);else throw Error("Aa");UAU++;return b};
P_9=function(){var W=RkN,O=function(b){return W.call(O.src,O.listener,b)};
return O};
lj=function(W,O,b,T,L){if(Array.isArray(O)){for(var h=0;h<O.length;h++)lj(W,O[h],b,T,L);return null}b=lGv(b);return aK(W)?W.listenOnce(O,b,_.LH(T)?!!T.capture:!!T,L):ekH(W,O,b,!0,T,L)};
_.YH=function(W,O,b,T,L){if(Array.isArray(O))for(var h=0;h<O.length;h++)_.YH(W,O[h],b,T,L);else T=_.LH(T)?!!T.capture:!!T,b=lGv(b),aK(W)?W.unlisten(O,b,T,L):W&&(W=mH(W))&&(O=W.getListener(O,b,T,L))&&eD(O)};
eD=function(W){if(typeof W==="number"||!W||W.removed)return!1;var O=W.src;if(aK(O))return wMn(O.eventTargetListeners_,W);var b=W.type,T=W.proxy;O.removeEventListener?O.removeEventListener(b,T,W.capture):O.detachEvent?O.detachEvent(pMf(b),T):O.addListener&&O.removeListener&&O.removeListener(T);UAU--;(b=mH(O))?(wMn(b,W),b.typeCount_==0&&(b.src=null,O[AAn]=null)):Yt1(W);return!0};
K7z=function(W,O,b,T,L){b=lGv(b);T=!!T;return aK(W)?W.getListener(O,b,T,L):W?(W=mH(W))?W.getListener(O,b,T,L):null:null};
pMf=function(W){return W in XM9?XM9[W]:XM9[W]="on"+W};
RkN=function(W,O){if(W.removed)W=!0;else{O=new _.IK(O,this);var b=W.listener,T=W.handler||W.src;W.callOnce&&eD(W);W=b.call(T,O)}return W};
mH=function(W){W=W[AAn];return W instanceof hV?W:null};
vhw="__closure_events_fn_"+(Math.random()*1E9>>>0);lGv=function(W){if(typeof W==="function")return W;W[vhw]||(W[vhw]=function(O){return W.handleEvent(O)});
return W[vhw]};_.ER=function(){_.R8.call(this);this.eventTargetListeners_=new hV(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Wk(_.ER,_.R8);_.ER.prototype[IGv]=!0;_.d=_.ER.prototype;_.d.setParentEventTarget=function(W){this.parentEventTarget_=W};
_.d.addEventListener=function(W,O,b,T){_.Rx(this,W,O,b,T)};
_.d.removeEventListener=function(W,O,b,T){_.YH(this,W,O,b,T)};
_.d.dispatchEvent=function(W){var O,b=this.parentEventTarget_;if(b)for(O=[];b;b=b.parentEventTarget_)O.push(b);b=this.actualEventTarget_;var T=W.type||W;if(typeof W==="string")W=new _.ZB(W,b);else if(W instanceof _.ZB)W.target=W.target||b;else{var L=W;W=new _.ZB(T,b);_.PQ.extend(W,L)}L=!0;var h;if(O)for(h=O.length-1;!W.propagationStopped_&&h>=0;h--){var Z=W.currentTarget=O[h];L=ghN(Z,T,!0,W)&&L}W.propagationStopped_||(Z=W.currentTarget=b,L=ghN(Z,T,!0,W)&&L,W.propagationStopped_||(L=ghN(Z,T,!1,W)&&
L));if(O)for(h=0;!W.propagationStopped_&&h<O.length;h++)Z=W.currentTarget=O[h],L=ghN(Z,T,!1,W)&&L;return L};
_.d.disposeInternal=function(){_.ER.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.d.listen=function(W,O,b,T){return this.eventTargetListeners_.add(String(W),O,!1,b,T)};
_.d.listenOnce=function(W,O,b,T){return this.eventTargetListeners_.add(String(W),O,!0,b,T)};
_.d.unlisten=function(W,O,b,T){return this.eventTargetListeners_.remove(String(W),O,b,T)};
_.d.removeAllListeners=function(W){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(W):0};
var ghN=function(W,O,b,T){O=W.eventTargetListeners_.listeners[String(O)];if(!O)return!0;O=O.concat();for(var L=!0,h=0;h<O.length;++h){var Z=O[h];if(Z&&!Z.removed&&Z.capture==b){var a=Z.listener,m=Z.handler||Z.src;Z.callOnce&&wMn(W.eventTargetListeners_,Z);L=a.call(m,T)!==!1&&L}}return L&&!T.defaultPrevented};
_.ER.prototype.getListener=function(W,O,b,T){return this.eventTargetListeners_.getListener(String(W),O,b,T)};
_.ER.prototype.hasListener=function(W,O){return this.eventTargetListeners_.hasListener(W!==void 0?String(W):void 0,O)};var w9=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(W){return W&&AsyncContext.Snapshot.wrap(W)}:function(W){return W};var ohw=function(W,O){this.create_=W;this.reset_=O;this.occupants_=0;this.JSC$7762_head_=null};
ohw.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var W=this.JSC$7762_head_;this.JSC$7762_head_=W.next;W.next=null}else W=this.create_();return W};
ohw.prototype.put=function(W){this.reset_(W);this.occupants_<100&&(this.occupants_++,W.next=this.JSC$7762_head_,this.JSC$7762_head_=W)};var QRL=function(){this.workTail_=this.workHead_=null};
QRL.prototype.add=function(W,O){var b=VrX.get();b.set(W,O);this.workTail_?this.workTail_.next=b:this.workHead_=b;this.workTail_=b};
QRL.prototype.remove=function(){var W=null;this.workHead_&&(W=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),W.next=null);return W};
var VrX=new ohw(function(){return new k99},function(W){return W.reset()}),k99=function(){this.next=this.scope=this.fn=null};
k99.prototype.set=function(W,O){this.fn=W;this.scope=O;this.next=null};
k99.prototype.reset=function(){this.next=this.scope=this.fn=null};var sR5,NDX,$9h,BA5;NDX=!1;$9h=new QRL;_.AY=function(W,O){sR5||BA5();NDX||(sR5(),NDX=!0);$9h.add(W,O)};
BA5=function(){var W=Promise.resolve(void 0);sR5=function(){W.then(MrP)}};var rAw=function(W){W.prototype.$goog_Thenable=!0},DAS=function(W){if(!W)return!1;
try{return!!W.$goog_Thenable}catch(O){return!1}};var xA9,zk5,C_S,nh5,fGn,G9v,VWf,u5H,yAS,cA5,QkX;_.mJ=function(W,O){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(W!=_.mB)try{var b=this;W.call(O,function(T){b.resolve_(2,T)},function(T){b.resolve_(3,T)})}catch(T){this.resolve_(3,T)}};
xA9=function(){this.next=this.context=this.JSC$7773_onRejected=this.JSC$7773_onFulfilled=this.child=null;this.always=!1};
xA9.prototype.reset=function(){this.context=this.JSC$7773_onRejected=this.JSC$7773_onFulfilled=this.child=null;this.always=!1};
zk5=new ohw(function(){return new xA9},function(W){W.reset()});
C_S=function(W,O,b){var T=zk5.get();T.JSC$7773_onFulfilled=W;T.JSC$7773_onRejected=O;T.context=b;return T};
_.ZM=function(W){if(W instanceof _.mJ)return W;var O=new _.mJ(_.mB);O.resolve_(2,W);return O};
_.vi=function(W){return new _.mJ(function(O,b){b(W)})};
nh5=function(W,O,b){qtw(W,O,b,null)||_.AY(_.A3(O,W))};
_.XG=function(W){return new _.mJ(function(O,b){var T=W.length,L=[];if(T)for(var h=function(w,A){T--;L[w]=A;T==0&&O(L)},Z=function(w){b(w)},a,m=0;m<W.length;m++)a=W[m],nh5(a,_.A3(h,m),Z);
else O(L)})};
fGn=function(W){return new _.mJ(function(O){var b=W.length,T=[];if(b)for(var L=function(a,m,w){b--;T[a]=m?{fulfilled:!0,value:w}:{fulfilled:!1,reason:w};b==0&&O(T)},h,Z=0;Z<W.length;Z++)h=W[Z],nh5(h,_.A3(L,Z,!0),_.A3(L,Z,!1));
else O(T)})};
G9v=function(W){return new _.mJ(function(O,b){var T=W.length,L=[];if(T)for(var h=function(w){O(w)},Z=function(w,A){T--;
L[w]=A;T==0&&b(L)},a,m=0;m<W.length;m++)a=W[m],nh5(a,h,_.A3(Z,m));
else O(void 0)})};
_.$S=function(){var W,O,b=new _.mJ(function(T,L){W=T;O=L});
return new H09(b,W,O)};
_.mJ.prototype.then=function(W,O,b){return tWv(this,w9(typeof W==="function"?W:null),w9(typeof O==="function"?O:null),b)};
rAw(_.mJ);VWf=function(W,O,b,T){$AH(W,C_S(O||_.mB,b||null,T))};
_.UR=function(W,O){O=w9(O);O=C_S(O,O);O.always=!0;$AH(W,O);return W};
_.mJ.prototype.finally=function(W){var O=this;W=w9(W);return new Promise(function(b,T){VWf(O,function(L){W();b(L)},function(L){W();
T(L)})})};
_.mJ.prototype.thenCatch=function(W,O){return tWv(this,null,w9(W),O)};
_.mJ.prototype.catch=_.mJ.prototype.thenCatch;_.mJ.prototype.cancel=function(W){if(this.state_==0){var O=new _.$N(W);_.AY(function(){NA$(this,O)},this)}};
var NA$=function(W,O){if(W.state_==0)if(W.parent_){var b=W.parent_;if(b.callbackEntries_){for(var T=0,L=null,h=null,Z=b.callbackEntries_;Z&&(Z.always||(T++,Z.child==W&&(L=Z),!(L&&T>1)));Z=Z.next)L||(h=Z);L&&(b.state_==0&&T==1?NA$(b,O):(h?(T=h,T.next==b.callbackEntriesTail_&&(b.callbackEntriesTail_=T),T.next=T.next.next):MWv(b),u5H(b,L,3,O)))}W.parent_=null}else W.resolve_(3,O)},$AH=function(W,O){W.callbackEntries_||W.state_!=2&&W.state_!=3||JAv(W);
W.callbackEntriesTail_?W.callbackEntriesTail_.next=O:W.callbackEntries_=O;W.callbackEntriesTail_=O},tWv=function(W,O,b,T){var L=C_S(null,null,null);
L.child=new _.mJ(function(h,Z){L.JSC$7773_onFulfilled=O?function(a){try{var m=O.call(T,a);h(m)}catch(w){Z(w)}}:h;
L.JSC$7773_onRejected=b?function(a){try{var m=b.call(T,a);m===void 0&&a instanceof _.$N?Z(a):h(m)}catch(w){Z(w)}}:Z});
L.child.parent_=W;$AH(W,L);return L.child};
_.mJ.prototype.unblockAndFulfill_=function(W){this.state_=0;this.resolve_(2,W)};
_.mJ.prototype.unblockAndReject_=function(W){this.state_=0;this.resolve_(3,W)};
_.mJ.prototype.resolve_=function(W,O){this.state_==0&&(this===O&&(W=3,O=new TypeError("Ba")),this.state_=1,qtw(O,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=O,this.state_=W,this.parent_=null,JAv(this),W!=3||O instanceof _.$N||cA5(this,O)))};
var qtw=function(W,O,b,T){if(W instanceof _.mJ)return VWf(W,O,b,T),!0;if(DAS(W))return W.then(O,b,T),!0;if(_.LH(W))try{var L=W.then;if(typeof L==="function")return F7z(W,L,O,b,T),!0}catch(h){return b.call(T,h),!0}return!1},F7z=function(W,O,b,T,L){var h=!1,Z=function(m){h||(h=!0,b.call(L,m))},a=function(m){h||(h=!0,T.call(L,m))};
try{O.call(W,Z,a)}catch(m){a(m)}},JAv=function(W){W.executing_||(W.executing_=!0,_.AY(W.executeCallbacks_,W))},MWv=function(W){var O=null;
W.callbackEntries_&&(O=W.callbackEntries_,W.callbackEntries_=O.next,O.next=null);W.callbackEntries_||(W.callbackEntriesTail_=null);return O};
_.mJ.prototype.executeCallbacks_=function(){for(var W;W=MWv(this);)u5H(this,W,this.state_,this.result_);this.executing_=!1};
u5H=function(W,O,b,T){if(b==3&&O.JSC$7773_onRejected&&!O.always)for(;W&&W.hadUnhandledRejection_;W=W.parent_)W.hadUnhandledRejection_=!1;if(O.child)O.child.parent_=null,yAS(O,b,T);else try{O.always?O.JSC$7773_onFulfilled.call(O.context):yAS(O,b,T)}catch(L){QkX.call(null,L)}zk5.put(O)};
yAS=function(W,O,b){O==2?W.JSC$7773_onFulfilled.call(W.context,b):W.JSC$7773_onRejected&&W.JSC$7773_onRejected.call(W.context,b)};
cA5=function(W,O){W.hadUnhandledRejection_=!0;_.AY(function(){W.hadUnhandledRejection_&&QkX.call(null,O)})};
QkX=b1;_.$N=function(W){_.W2.call(this,W)};
_.Wk(_.$N,_.W2);_.$N.prototype.name="cancel";var H09=function(W,O,b){this.promise=W;this.resolve=O;this.reject=b};var lE;_.ie=function(W,O){_.ER.call(this);this.JSC$7785_interval_=W||1;this.timerObject_=O||_.i1;this.boundTick_=(0,_.K5)(this.tick_,this);this.last_=_.yG()};
_.Wk(_.ie,_.ER);_.d=_.ie.prototype;_.d.enabled=!1;_.d.JSC$7787_timer_=null;_.d.setInterval=function(W){this.JSC$7785_interval_=W;this.JSC$7787_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7787_timer_&&this.stop()};
_.d.tick_=function(){if(this.enabled){var W=_.yG()-this.last_;W>0&&W<this.JSC$7785_interval_*.8?this.JSC$7787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7785_interval_-W):(this.JSC$7787_timer_&&(this.timerObject_.clearTimeout(this.JSC$7787_timer_),this.JSC$7787_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.d.start=function(){this.enabled=!0;this.JSC$7787_timer_||(this.JSC$7787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7785_interval_),this.last_=_.yG())};
_.d.stop=function(){this.enabled=!1;this.JSC$7787_timer_&&(this.timerObject_.clearTimeout(this.JSC$7787_timer_),this.JSC$7787_timer_=null)};
_.d.disposeInternal=function(){_.ie.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
lE=function(W,O,b){if(typeof W==="function")b&&(W=(0,_.K5)(W,b));else if(W&&typeof W.handleEvent=="function")W=(0,_.K5)(W.handleEvent,W);else throw Error("Ca");return Number(O)>2147483647?-1:_.i1.setTimeout(W,O||0)};
_.WjN=function(W){var O=null;return(new _.mJ(function(b,T){O=lE(function(){b(void 0)},W);
O==-1&&T(Error("Da"))})).thenCatch(function(b){_.i1.clearTimeout(O);
throw b;})};var ml=function(W){_.R8.call(this);this.streamzLogger=W;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7791_flushTimer=new _.ie(this.flushInterval);this.JSC$7791_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.a8(this,this.JSC$7791_flushTimer)};
_.R(ml,_.R8);ml.prototype.sendIsolatedPayload=function(W){this.shouldSendIsolatedPayload=W;this.invocationLimit=1};
var Oz9=function(W){W.JSC$7791_flushTimer.enabled||W.JSC$7791_flushTimer.start();W.invocationCount++;W.invocationCount>=W.invocationLimit&&W.snapshotAndFlush()};
ml.prototype.snapshotAndFlush=function(){var W=this.metricMap.values();W=[].concat(_.PG(W)).filter(function(O){return O.cellMap.size});
W.length&&this.streamzLogger.flush(W,this.shouldSendIsolatedPayload);izn(W);this.invocationCount=0;this.JSC$7791_flushTimer.enabled&&this.JSC$7791_flushTimer.stop()};
ml.prototype.addNewCounter=function(W){var O=_.PD.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new StL(W,O))};
ml.prototype.addNewEventMetric=function(W){var O=_.PD.apply(1,arguments);this.metricMap.has(W)||this.metricMap.set(W,new Z0v(W,O))};
var bzH=function(W,O){return W.disabledMetrics.has(O)?void 0:W.metricMap.get(O)};
ml.prototype.JSC$7791_incrementCounter=function(W){this.JSC$7791_incrementCounterBy(W,1,_.PD.apply(1,arguments))};
ml.prototype.JSC$7791_incrementCounterBy=function(W,O){var b=_.PD.apply(2,arguments),T=bzH(this,W);T&&T instanceof StL&&(T.JSC$7730_incrementCounterBy(O,b),Oz9(this))};
ml.prototype.record=function(W,O){var b=_.PD.apply(2,arguments),T=bzH(this,W);T&&T instanceof Z0v&&(T.record(O,b),Oz9(this))};
var izn=function(W){for(var O=0;O<W.length;O++)W[O].clear()};_.eo=function(W,O,b){b=b===void 0?{}:b;O=Error.call(this,O);this.message=O.message;"stack"in O&&(this.stack=O.stack);this.code=W;this.metadata=b;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.eo,Error);_.eo.prototype.toString=function(){var W="RpcError("+(uuX(this.code)||String(this.code))+")";this.message&&(W+=": "+this.message);return W};_.jQw=_.i1.JSON.parse;_.Px=_.i1.JSON.stringify;_.gl=_.i1.JSON.parse;_.TC1=function(W){switch(W){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 Lj5=function(W){switch(W){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var dIf,hDS=function(){};
_.Wk(hDS,_.JVe);hDS.prototype.createInstance=function(){return new XMLHttpRequest};
dIf=new hDS;_.pO=function(W){_.ER.call(this);this.headers=new Map;this.JSC$7800_xmlHttpFactory_=W||null;this.JSC$7800_active_=!1;this.JSC$7800_xhr_=null;this.JSC$7800_lastUri_="";this.JSC$7800_lastErrorCode_=0;this.JSC$7800_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7800_timeoutId_=null;this.responseType_="";this.JSC$7800_withCredentials_=!1};
_.Wk(_.pO,_.ER);var SB$=/^https?$/i,Zzz=["POST","PUT"],Id$=[],FBQ=function(W,O,b,T,L,h,Z){var a=new _.pO;Id$.push(a);O&&a.listen("complete",O);a.listenOnce("ready",a.cleanupSend_);h&&(a.timeoutInterval_=Math.max(0,h));Z&&(a.JSC$7800_withCredentials_=Z);a.send(W,b,T,L)};
_.pO.prototype.cleanupSend_=function(){this.dispose();_.c2(Id$,this)};
_.pO.prototype.send=function(W,O,b,T){if(this.JSC$7800_xhr_)throw Error("Ea`"+this.JSC$7800_lastUri_+"`"+W);O=O?O.toUpperCase():"GET";this.JSC$7800_lastUri_=W;this.JSC$7800_lastError_="";this.JSC$7800_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7800_active_=!0;this.JSC$7800_xhr_=this.createXhr();this.JSC$7800_xhr_.onreadystatechange=w9((0,_.K5)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7800_xhr_.open(O,String(W),!0),this.inOpen_=!1}catch(Z){adS(this,Z);return}W=b||"";b=new Map(this.headers);
if(T)if(Object.getPrototypeOf(T)===Object.prototype)for(var L in T)b.set(L,T[L]);else if(typeof T.keys==="function"&&typeof T.get==="function"){L=_.S(T.keys());for(var h=L.next();!h.done;h=L.next())h=h.value,b.set(h,T.get(h))}else throw Error("Fa`"+String(T));T=Array.from(b.keys()).find(function(Z){return"content-type"==Z.toLowerCase()});
L=_.i1.FormData&&W instanceof _.i1.FormData;!_.Vh(Zzz,O)||T||L||b.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");O=_.S(b);for(T=O.next();!T.done;T=O.next())b=_.S(T.value),T=b.next().value,b=b.next().value,this.JSC$7800_xhr_.setRequestHeader(T,b);this.responseType_&&(this.JSC$7800_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7800_xhr_&&this.JSC$7800_xhr_.withCredentials!==this.JSC$7800_withCredentials_&&(this.JSC$7800_xhr_.withCredentials=this.JSC$7800_withCredentials_);
try{this.JSC$7800_timeoutId_&&(clearTimeout(this.JSC$7800_timeoutId_),this.JSC$7800_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7800_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7800_xhr_.send(W),this.inSend_=!1}catch(Z){adS(this,Z)}};
_.pO.prototype.createXhr=function(){return this.JSC$7800_xmlHttpFactory_?this.JSC$7800_xmlHttpFactory_.createInstance():dIf.createInstance()};
_.pO.prototype.timeout_=function(){typeof $Yh!="undefined"&&this.JSC$7800_xhr_&&(this.JSC$7800_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7800_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var adS=function(W,O){W.JSC$7800_active_=!1;W.JSC$7800_xhr_&&(W.inAbort_=!0,W.JSC$7800_xhr_.abort(),W.inAbort_=!1);W.JSC$7800_lastError_=O;W.JSC$7800_lastErrorCode_=5;mIw(W);YBz(W)},mIw=function(W){W.errorDispatched_||(W.errorDispatched_=!0,W.dispatchEvent("complete"),W.dispatchEvent("error"))};
_.pO.prototype.abort=function(W){this.JSC$7800_xhr_&&this.JSC$7800_active_&&(this.JSC$7800_active_=!1,this.inAbort_=!0,this.JSC$7800_xhr_.abort(),this.inAbort_=!1,this.JSC$7800_lastErrorCode_=W||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),YBz(this))};
_.pO.prototype.disposeInternal=function(){this.JSC$7800_xhr_&&(this.JSC$7800_active_&&(this.JSC$7800_active_=!1,this.inAbort_=!0,this.JSC$7800_xhr_.abort(),this.inAbort_=!1),YBz(this,!0));_.pO.superClass_.disposeInternal.call(this)};
_.pO.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)E4w(this);else this.onReadyStateChangeEntryPoint_()};
_.pO.prototype.onReadyStateChangeEntryPoint_=function(){E4w(this)};
var E4w=function(W){if(W.JSC$7800_active_&&typeof $Yh!="undefined")if(W.inSend_&&_.RK(W)==4)setTimeout(W.onReadyStateChange_.bind(W),0);else if(W.dispatchEvent("readystatechange"),W.isComplete()){W.JSC$7800_active_=!1;try{if(W.isSuccess())W.dispatchEvent("complete"),W.dispatchEvent("success");else{W.JSC$7800_lastErrorCode_=6;try{var O=_.RK(W)>2?W.JSC$7800_xhr_.statusText:""}catch(b){O=""}W.JSC$7800_lastError_=O+" ["+W.getStatus()+"]";mIw(W)}}finally{YBz(W)}}},YBz=function(W,O){if(W.JSC$7800_xhr_){W.JSC$7800_timeoutId_&&
(clearTimeout(W.JSC$7800_timeoutId_),W.JSC$7800_timeoutId_=null);
var b=W.JSC$7800_xhr_;W.JSC$7800_xhr_=null;O||W.dispatchEvent("ready");try{b.onreadystatechange=null}catch(T){}}};
_.pO.prototype.isActive=function(){return!!this.JSC$7800_xhr_};
_.pO.prototype.isComplete=function(){return _.RK(this)==4};
_.pO.prototype.isSuccess=function(){var W=this.getStatus(),O;if(!(O=Lj5(W))){if(W=W===0)W=KnH(String(this.JSC$7800_lastUri_)),W=!SB$.test(W);O=W}return O};
_.RK=function(W){return W.JSC$7800_xhr_?W.JSC$7800_xhr_.readyState:0};
_.d=_.pO.prototype;_.d.getStatus=function(){try{return _.RK(this)>2?this.JSC$7800_xhr_.status:-1}catch(W){return-1}};
_.d.getResponseText=function(){try{return this.JSC$7800_xhr_?this.JSC$7800_xhr_.responseText:""}catch(W){return""}};
_.d.getResponse=function(){try{if(!this.JSC$7800_xhr_)return null;if("response"in this.JSC$7800_xhr_)return this.JSC$7800_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7800_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7800_xhr_)return this.JSC$7800_xhr_.mozResponseArrayBuffer}return null}catch(W){return null}};
_.d.getAllResponseHeaders=function(){return this.JSC$7800_xhr_&&_.RK(this)>=2?this.JSC$7800_xhr_.getAllResponseHeaders()||"":""};
_.d.getLastError=function(){return typeof this.JSC$7800_lastError_==="string"?this.JSC$7800_lastError_:String(this.JSC$7800_lastError_)};var SoX=function(){};
SoX.prototype.send=function(W,O,b){O=O===void 0?function(){}:O;
b=b===void 0?function(){}:b;
FBQ(W.url,function(T){T=T.target;T.isSuccess()?O(T.getResponseText()):b(T.getStatus())},W.requestType,W.body,W.requestHeaders,W.timeoutMillis,W.withCredentials)};
SoX.prototype.getTransmissionType=function(){return 1};var wDz=function(W,O){this.logger=W;this.event=O;this.startTime=Y6()};
wDz.prototype.done=function(){this.logger.j6(this.event,Y6()-this.startTime)};
var KO=function(){yk.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.R(KO,yk);var vx=function(W,O,b){var T=Y6();O=O();W.j6(b,Y6()-T);return O},Buh=function(){KO.apply(this,arguments)};
_.R(Buh,KO);_.d=Buh.prototype;_.d.tEx=function(){};
_.d.d9=function(){};
_.d.j6=function(){};
_.d.logError=function(){};
_.d.u6=function(){};
_.d.dNg=function(){};
_.d.cF1=function(){};
_.d.rFv=function(){};
_.d.dVZ=function(){};
var Avq=function(W){KO.call(this);var O=this;this.logger=W;this.TEST_ONLY={qtD:function(){return O.logger},
getExperimentIds:function(){return O.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void O.logger.dispose()})};
_.R(Avq,KO);_.d=Avq.prototype;_.d.update=function(W){this.logger.dispose();this.logger=W};
_.d.d9=function(W){this.logger.d9(W)};
_.d.j6=function(W,O){this.logger.j6(W,O)};
_.d.logError=function(W){this.logger.logError(W)};
_.d.u6=function(){this.logger.u6()};
_.d.dNg=function(W){this.logger.dNg(W)};
_.d.cF1=function(W){this.logger.cF1(W)};
_.d.rFv=function(W){this.logger.rFv(W)};
_.d.dVZ=function(W){this.logger.dVZ(W)};
_.d.tEx=function(W){this.logger.tEx(W)};
var XDz=function(W,O){_.R8.call(this);var b=this;this.callback=W;this.xdP=O;this.bzO=-O;this.addOnDisposeCallback(function(){return void clearTimeout(b.timer)})};
_.R(XDz,_.R8);var UIN=function(W){if(W.timer===void 0){var O=Math.max(0,W.bzO+W.xdP-Y6());W.timer=setTimeout(function(){try{W.callback()}finally{W.bzO=Y6(),W.timer=void 0}},O)}},ldw=function(W,O){KO.call(this);
this.metrics=W;this.zv=O};
_.R(ldw,KO);_.d=ldw.prototype;_.d.tEx=function(W){this.metrics.xbD.record(W,this.zv)};
_.d.d9=function(W){this.metrics.eventCount.increment(W,this.zv)};
_.d.j6=function(W,O){this.metrics.rhf.record(O,W,this.zv)};
_.d.logError=function(W){this.metrics.errorCount.increment(W,this.zv)};
_.d.dNg=function(W){this.metrics.yXr.increment(W,this.zv)};
_.d.cF1=function(W){this.metrics.v3Z.increment(W,this.zv)};
_.d.rFv=function(W){this.metrics.q6V.increment(W,this.zv)};
var EV=function(W,O){O=O===void 0?[]:O;var b={zv:W.zv||"_",lpI:W.lpI||[],oOx:W.oOx|0,destinationUrl:W.destinationUrl,htS:W.htS||function(){},
hL:W.hL||function(h,Z){return svT(h,Z,b.htS,b.destinationUrl)}},T=b.hL("49",b.lpI.concat(O));
ldw.call(this,Tui(T),b.zv);var L=this;this.TEST_ONLY={getExperimentIds:function(){return L.options.lpI.concat(L.m5L).sort(function(h,Z){return h-Z})}};
this.options=b;this.service=T;this.v4U=!W.hL;this.flushDebouncer=new XDz(function(){return void L.service.snapshotAndFlush()},b.oOx);
this.addOnDisposeCallback(function(){L.flushDebouncer.dispose();L.v4U&&L.service.dispose()});
(this.m5L=O.slice()).sort(_.a7)};
_.R(EV,ldw);EV.prototype.dVZ=function(W){var O=this;W=W.slice();W.sort(_.a7);_.Ev(W,this.m5L)||(this.flushDebouncer.dispose(),this.v4U&&this.service.dispose(),this.service=this.options.hL("49",this.options.lpI.concat(W)),this.flushDebouncer=new XDz(function(){return void O.service.snapshotAndFlush()},this.options.oOx),this.metrics=Tui(this.service),this.m5L=W)};
EV.prototype.u6=function(){UIN(this.flushDebouncer)};var AF2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(AF2,_.qA);_.XoX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(_.XoX,_.qA);var u3=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,0,u3.messageId)};
_.R(u3,_.qA);var eDw=_.i0X(u3);u3.messageId="bfkj";var D9e=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(D9e,_.qA);var P7v=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(P7v,_.qA);var pDq=_.i7(P7v);_.S4=function(){var W=this;this.promise=new Promise(function(O,b){W.resolve=O;W.reject=b})};_.g9=function(W){_.R8.call(this);var O=this;this.ewv=Math.floor(Math.random()*200);this.vJN=new P7v;if("challenge"in W&&eDw(W.challenge)){var b=_.vk(W.challenge,4,void 0,Vq);var T=_.vk(W.challenge,5,void 0,Vq);_.vk(W.challenge,7,void 0,Vq)&&(this.vJN=pDq(_.vk(W.challenge,7,void 0,Vq)))}else b=W.program,T=W.globalName;this.addOnDisposeCallback(function(){var K,k,r;return _.I(function(q){if(q.nextAddress==1)return _.Y(q,O.xnn,2);K=q.yieldResult;k=K.kCV;(r=k)==null||r();_.aD(q)})});
this.logger=rtQ(W.oP||{},this.vJN,W.bM3);_.a8(this,this.logger);var L=new _.S4;this.xnn=L.promise;this.logger.d9("t");var h=this.logger.share(),Z=new wDz(h,"t"),a=function(K,k,r,q){if(!O.logger.isDisposed()){var f="k";k?f="h":r&&(f="u");f!=="k"?q!==0&&(O.logger.d9(f),O.logger.j6(f,K)):O.ewv<=0?(O.logger.d9(f),O.logger.j6(f,K),O.ewv=Math.floor(Math.random()*200)):O.ewv--}},m=function(K,k,r,q){Promise.resolve().then(function(){Z.done();
h.u6();h.dispose();L.resolve({jWs:K,kCV:k,wTJ:r,pxM:q})})};
if(!_.i1[T])throw this.logger.logError(25),Error("Ga");if(!_.i1[T].a)throw this.logger.logError(26),Error("Ha");try{var w=_.i1[T].a;T=[];for(var A=[],X=x9h(this.vJN),l=0;l<X.length;l++)T.push(X[l]),A.push(1);var p=zpX(this.vJN);for(X=0;X<p.length;X++)T.push(p[X]),A.push(2);this.f3I=_.S(w(b,m,!0,W.qMf,a,[T,A],_.vk(this.vJN,5))).next().value;this.laZ=L.promise.then(function(){})}catch(K){throw this.logger.logError(28),K;
}};
_.R(_.g9,_.R8);_.g9.prototype.snapshot=function(W){if(this.isDisposed())throw Error("Ia");this.logger.d9("n");var O=this.logger.share();return this.xnn.then(function(b){var T=b.jWs;return new Promise(function(L){var h=new wDz(O,"n");T(function(Z){h.done();O.tEx(Z.length);O.u6();O.dispose();L(Z)},[W.sD,
W.u5v,W.rvP,W.doJ])})})};
_.RDq=function(W,O){if(W.isDisposed())throw Error("Ia");W.logger.d9("n");var b=vx(W.logger,function(){return W.f3I([O.sD,O.u5v,O.rvP,O.doJ])},"n");
W.logger.tEx(b.length);W.logger.u6();return b};
_.g9.prototype.vbS=function(W){this.xnn.then(function(O){var b;(b=O.wTJ)==null||b(W)})};
_.g9.prototype.fSC=function(W,O){return this.xnn.then(function(b){var T;return(T=b.pxM)==null?void 0:T(W,O,!1)})};
_.g9.prototype.hFn=function(){return this.logger.share()};var Kjz=function(){this.lhv={};this.elL=null},v4f=function(){Kjz.instance||(Kjz.instance=new Kjz);
return Kjz.instance},o4n=function(W,O){return g4q(W,_.bP(O,AF2,1,Vq),_.bP(O,_.XoX,2,Vq),_.vk(O,3,void 0,Vq))},g4q=function(W,O,b,T){if(!O&&!b)return Promise.resolve();
if(!T)return Cth(O,b);var L;(L=W.lhv)[T]||(L[T]=new Promise(function(h,Z){Cth(O,b).then(function(){W.elL=T;h()},function(a){delete W.lhv[T];
Z(a)})}));
return W.lhv[T]};var QQ9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(QQ9,_.qA);var kbH=function(W,O){return _.JT(W,1,O)},sQL=function(W,O){return _.JT(W,2,O)};var oK=function(W){_.R8.call(this);var O=this;this.options=W;this.e6v=new _.S4;this.laZ=this.e6v.promise;this.a0l=new _.S4;this.npe=1;this.kvn=new _.S4;this.ufn=[];this.bFn=W.bFn||function(){};
this.logger=new Avq(rtQ(W.oP||{}));BCS(this,W.dF,W.vGL,W.cM7,W.tdD,Object.assign({},rvU,W.usZ||{}));this.addOnDisposeCallback(function(){return void DIS(O)})};
_.R(oK,_.R8);oK.prototype.snapshot=function(W){var O=this;return _.I(function(b){switch(b.nextAddress){case 1:if(O.isDisposed())throw Error("Ia");if(O.vL||O.nut){b.jumpTo(2);break}return _.Y(b,O.a0l.promise,2);case 2:if(!O.vL){b.jumpTo(4);break}return _.Y(b,O.vL.snapshot(W),5);case 5:return b.return(b.yieldResult);case 4:throw O.nut;}})};
var xIN=function(W){var O;return _.I(function(b){if(W.isDisposed())throw Error("Ia");(O=W.oC)!=null&&(O.endTimeMs=0,O.resolver(1));return _.Y(b,W.kvn.promise,0)})},DIS=function(W){W.nut=Error("Ka");
W.a0l.resolve();CJX(W.e6v.promise);W.e6v.reject(Error("Ka"));W.logger.dispose();Promise.all(W.ufn).then(function(){var b;return _.I(function(T){(b=W.vL)==null||b.dispose();W.vL=void 0;_.aD(T)})});
W.ufn=[];var O;(O=W.oC)!=null&&(O.endTimeMs=0,O.resolver(1));CJX(W.kvn.promise);W.kvn.reject(Error("Ka"))};
oK.prototype.vbS=function(W){var O,b;(O=this.vL)==null||(b=O.vbS)==null||b.call(O,W)};
oK.prototype.fSC=function(W,O){var b,T,L;return(L=(b=this.vL)==null?void 0:(T=b.fSC)==null?void 0:T.call(b,W,O))!=null?L:Promise.resolve()};
var zDN=function(W,O){var b=W.bFn;W.bFn=function(){b();O()}},C7L=function(W,O){W.isDisposed()||(W.vL=O,W.logger.update(O.hFn()),W.a0l.resolve(),W.e6v.resolve(void 0),W.bFn())};
oK.prototype.handleError=function(W){if(!this.isDisposed()){this.nut=W;this.a0l.resolve();var O,b;(b=(O=this.options).fGs)==null||b.call(O,W)}};
var qB9=function(W,O){O&&(Promise.all(W.ufn).then(function(){return void O.dispose()}),W.ufn=[])},QQ=function(W,O){W.npe=O;
var b,T;(T=(b=W.options).aPg)==null||T.call(b,O)},n4H=function(W){W.isDisposed()||(W.kvn.resolve(),W.kvn=new _.S4)},BCS=function(W,O,b,T,L,h){T=T===void 0?v4f():T;
L=L===void 0?Promise.resolve(void 0):L;var Z,a,m,w,A,X,l,p,K,k,r,q;_.I(function(f){switch(f.nextAddress){case 1:return _.Y(f,0,3);case 3:a=null;if(!Z){f.jumpTo(6);break}QQ(W,7);_.LI(f,7);return _.Y(f,lJ(Z.snapshot({}),h.nAJ,function(){return Promise.resolve("E:CTO")}),9);
case 9:a=f.yieldResult;_.H3(f,6);break;case 7:_.ID(f),a="E:UCE";case 6:m=void 0,w=Z?h.gS8:h.aks,A=new dD(w,h.nSs,h.eca,h.tmf),X=1;case 10:if(!(X<=h.maxAttempts)){f.jumpTo(12);break}if(X===1){f.jumpTo(13);break}QQ(W,0);W.oC=new fdw(A.getValue(),h.fNt,h.sqL);return _.Y(f,W.oC.promise,14);case 14:l=f.yieldResult,W.oC=void 0,l===1?(X=1,A.reset()):F85(A);case 13:_.LI(f,15);p=void 0;if(b){p=b;f.jumpTo(17);break}QQ(W,5);K=T.elL;return _.Y(f,lJ(Gb9(O,K,a),h.nfJ,function(){return Promise.reject(Error("La"))}),
18);
case 18:p=f.yieldResult;case 17:return QQ(W,3),_.Y(f,lJ(o4n(T,p),h.tCP,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return QQ(W,8),_.Y(f,L,20);case 20:return k=new _.g9({challenge:p,oP:W.options.oP,qMf:W.options.qMf}),_.Y(f,lJ(k.laZ,h.bg5,function(){return Promise.reject(Error("Na"))}),21);
case 21:m=k;f.jumpTo(12);break;case 15:r=_.ID(f),W.handleError(r),n4H(W);case 11:X++;f.jumpTo(10);break;case 12:if(W.isDisposed()){f.jumpTo(5);break}m&&(b=void 0,qB9(W,Z),Z=m,C7L(W,m),n4H(W));QQ(W,2);W.oC=new fdw(h.w1s,h.fNt,h.sqL);return _.Y(f,W.oC.promise,22);case 22:W.oC=void 0;if(W.isDisposed()){f.jumpTo(5);break}f.jumpTo(3);break;case 5:(q=Z)==null||q.dispose(),_.aD(f)}})};
oK.prototype.hFn=function(){return this.logger.share()};
var rvU={w1s:432E5,fNt:3E5,sqL:10,nAJ:1E4,nfJ:3E4,tCP:3E4,bg5:6E4,aks:1E3,gS8:6E4,nSs:6E5,eca:.25,tmf:2,maxAttempts:10},fdw=function(W,O,b){var T=this;this.endTimeMs=Date.now()+W;this.promise=new Promise(function(h){T.resolver=h});
var L=function(){var h=T.endTimeMs-Date.now();h<=b?T.resolver(0):setTimeout(L,Math.min(h,O))};
L()};var Hz9,fqe=(Hz9=Math.imul)!=null?Hz9:function(W,O){return W*O|0},er=[196,
200,224,18],kH=function(W,O,b){b=b===void 0?[]:b;this.maxItems=W;this.yH=O===void 0?0:O;this.yv=b},tLf=function(W){var O=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!O)return new kH(W);var b=O.split(",");if(b.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new kH(W);O=b.slice(1);O.length===1&&O[0]===""&&(O=[]);b=Number(b[0]);return isNaN(b)||b<0||b>O.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new kH(W)):new kH(W,b,O)};
kH.prototype.serialize=function(){return String(this.yH)+","+this.yv.join()};
kH.prototype.insert=function(W,O){var b=void 0;if(this.yv[this.yH]!==W){var T=this.yv.indexOf(W);T!==-1?(this.yv.splice(T,1),T<this.yH&&this.yH--,this.yv.splice(this.yH,0,W)):(b=this.yv[this.yH],this.yv[this.yH]=W)}this.yH=(this.yH+1)%this.maxItems;W=qoT("iU5q-!O9@$",this.serialize());b&&W&&O(b);return W};
var $IL=function(W,O){this.logger=O;try{var b=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(T){b=!1}b&&(this.index=tLf(W))},VLL=function(W,O,b,T,L){var h=W.index?vx(W.logger,function(){return $r8(W.index,HSq(O),b,T,L)},"W"):"u";
W.logger.rFv(h)},NCH=function(W,O,b){var T=_.S(W.index?vx(W.logger,function(){return VzX(HSq(O),b)},"R"):["u"]),L=T.next().value;
T=T.next().value;W.logger.cF1(L);return T};var MLw={toString:function(W){var O=[],b=0;W-=-2147483648;O[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(W%52);for(W=Math.floor(W/52);W>0;)O[b++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(W%62),W=Math.floor(W/62);return O.join("")}};var cvU=function(W){W=uyz(W);for(var O=2654435769,b=2654435769,T=314159265,L=W.length,h=L,Z=0,a=function(){O-=b;O-=T;O^=T>>>13;b-=T;b-=O;b^=O<<8;T-=O;T-=b;T^=b>>>13;O-=b;O-=T;O^=T>>>12;b-=T;b-=O;b^=O<<16;T-=O;T-=b;T^=b>>>5;O-=b;O-=T;O^=T>>>3;b-=T;b-=O;b^=O<<10;T-=O;T-=b;T^=b>>>15};h>=12;h-=12,Z+=12)O+=JvN(W,Z),b+=JvN(W,Z+4),T+=JvN(W,Z+8),a();
T+=L;switch(h){case 11:T+=W[Z+10]<<24;case 10:T+=W[Z+9]<<16;case 9:T+=W[Z+8]<<8;case 8:b+=W[Z+7]<<24;case 7:b+=W[Z+6]<<16;case 6:b+=W[Z+5]<<8;case 5:b+=W[Z+4];case 4:O+=W[Z+3]<<24;case 3:O+=W[Z+2]<<16;case 2:O+=W[Z+1]<<8;case 1:O+=W[Z]}a();return MLw.toString(T)},uyz=function(W){for(var O=[],b=0;b<W.length;b++)O.push(W.charCodeAt(b));
return O},JvN=function(W,O){return W[O]+(W[O+1]<<8)+(W[O+2]<<16)+(W[O+3]<<24)};var Fjq,sR=function(W){_.R8.call(this);this.logger=W;this.stU=new _.S4;this[Fjq]=this.dispose};
_.R(sR,_.R8);var yvn=function(W,O){var b=setTimeout(function(){W.stU.resolve()},O);
W.addOnDisposeCallback(function(){return void clearTimeout(b)})};
sR.prototype.rK=function(W,O){var b=this.ah(W);O==null||O(b);return vx(this.logger,function(){return _.WM(b,2)},this.h2Z)};
var WIL=function(W,O,b,T){return vx(W.logger,function(){return b?W.rK(O,T):W.ah(O,T)},W.dK)};
Fjq=Symbol.dispose;var OIq=function(W,O,b,T){sR.call(this,W);this.rja=O;this.iq9=b;this.dK="m";this.h2Z="x";this.dds=0;yvn(this,T)};
_.R(OIq,sR);OIq.prototype.ah=function(W,O){var b=this;this.logger.d9(this.dK);++this.dds>=this.iq9&&this.stU.resolve();var T=W();W=vx(this.logger,function(){return b.rja(T)},"C");
if(W===void 0)throw new c1(17,"YNJ:Undefined");if(!(W instanceof Uint8Array))throw new c1(18,"ODM:Invalid");O==null||O(W);return W};
var iIH=function(W,O,b){sR.call(this,W);this.tQZ=O;this.dK="f";this.h2Z="z";yvn(this,b)};
_.R(iIH,sR);iIH.prototype.ah=function(){return this.tQZ};
var bI5=function(W,O,b){sR.call(this,W);this.dJL=O;this.dK="w";this.h2Z="z";yvn(this,b)};
_.R(bI5,sR);bI5.prototype.ah=function(){var W=this;return vx(this.logger,function(){return _.w1(W.dJL)},"d")};
bI5.prototype.rK=function(){return this.dJL};
var jD$=function(W,O){sR.call(this,W);this.error=O;this.dK="e";this.h2Z="y"};
_.R(jD$,sR);var Tbz=function(W,O){var b=(O(W.error.message)+":"+O(W.error.stack)).substring(0,2048);O=b.length+1;b=Nuq(b);var T=new Uint8Array(4+b.length);T.set([42,O&127|128,O>>7,W.error.code]);T.set(b,4);return T};
jD$.prototype.ah=function(){if(this.bBU)return this.bBU;this.bBU=Tbz(this,function(W){return"_"+cvU(W)});
return Tbz(this,function(W){return W})};
var LI7=function(W,O,b){sR.call(this,W);this.mnP=O;this.clientState=b;this.dK="S";this.h2Z="q"};
_.R(LI7,sR);LI7.prototype.ah=function(){var W=Math.floor(Date.now()/1E3),O=[Math.random()*255,Math.random()*255],b=O.concat([this.mnP&255,this.clientState],[W>>24&255,W>>16&255,W>>8&255,W&255]);W=new Uint8Array(2+b.length);W[0]=34;W[1]=b.length;W.set(b,2);b=W.subarray(2);for(var T=O=O.length;T<b.length;++T)b[T]^=b[T%O];this.logger.dNg(this.clientState);return W};var dE$={x3S:3E4,cKr:2E4},Bx=function(W){_.R8.call(this);var O=this;this.neZ=new _.S4;this.gvl=0;this.ib=void 0;this.state=2;this.qM=W.qM;this.dF=W.dF;this.usZ=Object.assign({},dE$,W.usZ||{});this.logger=W.qM.hFn();var b;this.onError=(b=W.onError)!=null?b:function(){};
this.j1b=W.j1b||!1;if(hv1(W)){var T=this.qM;this.p4b=function(){return xIN(T).catch(function(Z){Z=O.reportError(new c1(O.eF?20:32,"TRG:Disposed",Z));O.ib=Z;var a;(a=O.eF)==null||a.dispose();O.eF=void 0;O.neZ.reject(Z)})};
zDN(T,function(){return void SK7(O)});
T.npe===2&&SK7(this)}else this.p4b=W.sBV,SK7(this);var L=this.logger.share();L.d9("o");var h=new wDz(L,"o");this.neZ.promise.then(function(){h.done();L.u6();L.dispose()},function(){return void L.dispose()});
this.addOnDisposeCallback(function(){O.eF?(O.eF.dispose(),O.eF=void 0):O.ib?O.logger.u6():(O.ib=O.reportError(new c1(32,"TNP:Disposed")),O.logger.u6(),O.neZ.reject(O.ib))});
_.a8(this,this.logger)};
_.R(Bx,_.R8);Bx.prototype.b7v=function(){return this.neZ.promise};
var ZIN=function(W,O){if(!(O instanceof c1))if(O instanceof _.eo){var b=Error(O.toString());b.stack=O.stack;O=new c1(11,"EBH:Error",b)}else O=new c1(12,"BSO:Unknown",O);return W.reportError(O)},SK7=function(W){var O,b,T,L,h,Z,a,m,w,A,X,l,p,K,k;
return _.I(function(r){switch(r.nextAddress){case 1:O=void 0;W.gvl++;b=new _.S4;W.qM instanceof oK&&W.qM.ufn.push(b.promise);if(!W.j1b){r.jumpTo(2);break}T=new _.S4;setTimeout(function(){return void T.resolve()});
return _.Y(r,T.promise,2);case 2:return L=W.logger.share(),_.LI(r,4,5),W.state=5,h={},Z=[],_.Y(r,lJ(W.qM.snapshot({sD:h,rvP:Z}),W.usZ.cKr,function(){return Promise.reject(new c1(15,"MDA:Timeout"))}),7);
case 7:a=r.yieldResult;if(W.isDisposed())throw new c1(W.eF?20:32,"MDA:Disposed");m=Z[0];W.state=6;return _.Y(r,lJ(Ihn(W.dF,a),W.usZ.x3S,function(){return Promise.reject(new c1(10,"BWB:Timeout"))}),8);
case 8:w=r.yieldResult;if(W.isDisposed())throw new c1(W.eF?20:32,"BWB:Disposed");W.state=7;O=vx(L,function(){var f=ah$(W,w,b,m);f.stU.promise.then(function(){return void W.p4b()});
return f},"i");
case 5:_.hx(r);L.dispose();_.Zh(r,6);break;case 4:A=_.ID(r);(X=O)==null||X.dispose();if(!W.ib){l=ZIN(W,A);b.resolve();var q;if(q=W.qM instanceof oK&&W.gvl<2)a:if(A instanceof c1)q=A.code!==32&&A.code!==20&&A.code!==10;else{if(A instanceof _.eo)switch(A.code){case 2:case 13:case 14:case 4:break;default:q=!1;break a}q=!0}if(q)return p=(1+Math.random()*.25)*(W.eF?6E4:1E3),K=setTimeout(function(){return void W.p4b()},p),W.addOnDisposeCallback(function(){return void clearTimeout(K)}),r.return();
W.ib=l}L.logError(W.eF?13:14);W.neZ.reject(W.ib);return r.return();case 6:W.state=8,W.gvl=0,(k=W.eF)==null||k.dispose(),W.eF=O,W.neZ.resolve(),_.aD(r)}})},ah$=function(W,O,b,T){var L=dFh(O,2)*1E3;
if(L<=0)throw new c1(31,"TTM:Invalid");if(_.vk(O,4))return new bI5(W.logger,_.vk(O,4),L);if(!dFh(O,3))return new iIH(W.logger,t1Q(_.wQ(O,1)),L);if(!T)throw new c1(4,"PMD:Undefined");T=T(t1Q(_.wQ(O,1)));if(!(T instanceof Function))throw new c1(16,"APF:Failed");W.zES=Math.floor((Date.now()+L)/1E3);W=new OIq(W.logger,T,dFh(O,3),L);W.addOnDisposeCallback(function(){return void b.resolve()});
return W};
Bx.prototype.ah=function(W){return mEv(this,Object.assign({},W),!1)};
Bx.prototype.rK=function(W){return mEv(this,Object.assign({},W),!0)};
Bx.prototype.myh=function(W){if(W>150)return!1;try{return this.cache=new $IL(W,this.logger),!0}catch(O){return this.reportError(new c1(22,"GBJ:init",O)),!1}};
Bx.prototype.reportError=function(W){this.logger.logError(W.code);this.onError(W);return W};
var YKq=function(W,O){O=O instanceof c1?O:new c1(5,"TVD:error",O);return W.reportError(O)},mEv=function(W,O,b){try{if(W.isDisposed())throw new c1(21,"BNT:disposed");
if(!W.eF&&W.ib)throw W.ib;var T,L;return(L=(T=EaH(W,O,b))!=null?T:wGS(W,O,b))!=null?L:Ax5(W,O,b)}catch(h){if(!O.dfe)throw YKq(W,h);return XG5(W,b,h)}},EaH=function(W,O,b){var T;
return(T=W.eF)==null?void 0:WIL(T,function(){return UEv(W,O)},b,function(L){var h;
if(W.eF instanceof OIq&&((h=O.jQ)==null?0:h.oTa))try{var Z;(Z=W.cache)==null||VLL(Z,UEv(W,O),L,O.jQ.hDC,W.zES-120)}catch(a){W.reportError(new c1(24,"ELX:write",a))}})},wGS=function(W,O,b){var T;
if((T=O.jQ)!=null&&T.hcJ)try{var L,h=(L=W.cache)==null?void 0:NCH(L,UEv(W,O),O.jQ.hDC);return h?b?vx(W.logger,function(){return _.WM(h,2)},"a"):h:void 0}catch(Z){W.reportError(new c1(23,"RXO:read",Z))}},Ax5=function(W,O,b){var T={stack:[],
error:void 0,hasError:!1};try{if(!O.rrQ)throw new c1(29,"SDF:notready");return WIL(iZ1(T,new LI7(W.logger,0,W.state)),function(){return UEv(W,O)},b)}catch(L){T.error=L,T.hasError=!0}finally{Lui(T)}},XG5=function(W,O,b){var T={stack:[],
error:void 0,hasError:!1};try{var L=YKq(W,b);return WIL(iZ1(T,new jD$(W.logger,L)),function(){return[]},O)}catch(h){T.error=h,T.hasError=!0}finally{Lui(T)}},UEv=function(W,O){return O.h7I?O.h7I:O.sD?vx(W.logger,function(){return O.h7I=Nuq(O.sD)},"c"):[]},hv1=function(W){return J9(function(O){if(!ht(O))return!1;
for(var b=_.S(Object.entries(W)),T=b.next();!T.done;T=b.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;if(!(T in O)){if(L.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!L(O[T]))return!1}return!0})}({qM:function(W){return J9(function(O){return O instanceof W})}(oK)},"");var lh1=function(){var W=_.TF();this.JSC$7915_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",iJ("cookie_enabled"),iJ("cookie_3p_enabled"),_.jr("browser"))};
lh1.prototype.increment=function(W,O,b){this.JSC$7915_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",W,O,b)};
var aXq=function(){var W=_.TF();this.JSC$7939_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",bJ("tick"),iJ("from_st_cookie"))};
aXq.prototype.increment=function(W,O){this.JSC$7939_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",W,O)};
var evH=function(){var W=_.TF();this.JSC$7945_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.jr("status"))};
evH.prototype.increment=function(W){this.JSC$7945_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",W)};
var PN5=function(){var W=_.TF();this.JSC$7948_streamzService=W;W.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.jr("stage"),iJ("is_using_ytd_player"),iJ("has_expandable_tiles"))};
PN5.prototype.increment=function(W,O,b){this.JSC$7948_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",W,O,b)};
var pGS=function(){var W=_.TF();this.JSC$7951_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/response_signature",_.jr("check_status"))};
pGS.prototype.increment=function(W){this.JSC$7951_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/web/response_signature",W)};
var RvN=function(){var W=_.TF();this.JSC$7954_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.jr("sig"),bJ("de"))};
RvN.prototype.increment=function(W,O){this.JSC$7954_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/web/e_sig_log",W,O)};
var KIS=function(){var W=_.TF();this.JSC$7957_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.jr("sig"),bJ("de"))};
KIS.prototype.increment=function(W,O){this.JSC$7957_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/web/e_sig_en",W,O)};
_.va$=function(){var W=_.TF();this.JSC$7960_streamzService=W;W.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.jr("action"))};
_.va$.prototype.increment=function(W){this.JSC$7960_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/web/enforcement_intent",W)};var r9=window;var ga$=(new Date).getTime();var oaH=function(W){this.servicePromise_=W;W.then((0,_.K5)(function(){},this),function(){},this)},QDn=function(W,O,b){W.servicePromise_.then(function(T){var L=T[O];
if(!L)throw Error("Oa`"+O);return L.apply(T,b)})},BbU=function(W,O,b){for(var T=Array(arguments.length-2),L=2;L<arguments.length;L++)T[L-2]=arguments[L];
L=k8z(W,O).then(function(h){return h.apply(null,T)},function(h){h=Error("Pa`"+O+"`"+W,{cause:h});
delete sD9[O];return _.vi(h)});
return new oaH(L)},sD9={},k8z=function(W,O){var b=sD9[O];
if(b)return b;b=(b=_.GT(O))?_.ZM(b):(new _.mJ(function(T,L){var h=(new X1(document)).createElement("SCRIPT");h.async=!0;_.fz(h,_.SL(sq5(W)));h.onload=h.onreadystatechange=function(){h.readyState&&h.readyState!="loaded"&&h.readyState!="complete"||T()};
h.onerror=function(Z){L(Error("Qa`"+O+"`"+W,{cause:Z}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(h)})).then(function(){var T=_.GT(O);
if(!T)throw Error("Ra`"+O+"`"+W);return T});
return sD9[O]=b};var rx$={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},xEv=function(){var W=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=MzX(function(){return _.I(function(O){if(O.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?O.return(Promise.resolve()):_.Y(O,DEf(W),2);W.rsaForList.length>
0&&document.addEventListener("click",W.requestAccessForHelpPanel);_.aD(O)})});
this.requestAccessForHelpPanel=function(){if(!(W.rsaForPromises.length>0)){for(var O=_.S(W.rsaForList),b=O.next();!b.done;b=O.next()){b=b.value;try{W.rsaForPromises.push(document.requestStorageAccessFor(b))}catch(T){}}Promise.all(W.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){W.reset()})}}};
xEv.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var DEf=function(W){var O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:O=_.S(Object.values(rx$)),b=O.next();case 2:if(b.done){h.jumpTo(0);break}T=b.value;_.LI(h,5);return _.Y(h,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:T}),7);case 7:L=h.yieldResult;L.state!=="granted"&&W.rsaForList.push(T);_.H3(h,3);break;case 5:_.ID(h);h.jumpTo(0);break;case 3:b=O.next(),h.jumpTo(2)}})};(new xEv).initialize();var zv$=function(W){this.JSC$7974_loader_=W};
zv$.prototype.startHelp=function(W){QDn(this.JSC$7974_loader_,"startHelp",arguments)};
zv$.prototype.JSC$7976_loadChatSupport=function(W){QDn(this.JSC$7974_loader_,"loadChatSupport",arguments)};
var qKv=function(W,O){O=O||{};W=BbU(CNf,"help.service.Lazy.create",W,{apiKey:O.apiKey||O.apiKey,asxUiUri:O.asxUiUri||O.asxUiUri,environment:O.environment||O.environment,flow:O.flow||O.flow,frdProductData:O.frdProductData||O.frdProductData,frdProductDataSerializedJspb:O.frdProductDataSerializedJspb||O.frdProductDataSerializedJspb,helpCenterPath:O.helpCenterPath||O.helpCenterPath,locale:O.locale||O.locale||"en-US".replace(/-/g,"_"),nonce:O.nonce||O.nonce,productData:O.productData||O.productData,receiverUri:O.receiverUri||
O.receiverUri,renderApiUri:O.renderApiUri||O.renderApiUri,theme:O.theme||O.theme,window:O.window||O.window});return new zv$(W)},CNf=new qJ(A41,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var naq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(naq,_.qA);var fhN=_.i7(naq);_.G8U=new function(W,O,b,T){this.configType=W;this.flagName=b;this.defaultValue=T;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 tP5=function(){this.retriever=_.iq().resolve(HIn)};p5(Node);p5(Element);var $EH=p5(HTMLElement);p5(SVGElement);var VP5,Nbw,zy,MPv;VP5=function(W){return typeof W.className=="string"?W.className:W.getAttribute&&W.getAttribute("class")||""};
Nbw=function(W){return W.classList?W.classList:VP5(W).match(/\S+/g)||[]};
_.DB=function(W,O){typeof W.className=="string"?W.className=O:W.setAttribute&&W.setAttribute("class",O)};
_.xH=function(W,O){return W.classList?W.classList.contains(O):_.Vh(Nbw(W),O)};
_.J4=function(W,O){if(W.classList)W.classList.add(O);else if(!_.xH(W,O)){var b=VP5(W);_.DB(W,b+(b.length>0?" "+O:O))}};
zy=function(W,O){if(W.classList)Array.prototype.forEach.call(O,function(L){_.J4(W,L)});
else{var b={};Array.prototype.forEach.call(Nbw(W),function(L){b[L]=!0});
Array.prototype.forEach.call(O,function(L){b[L]=!0});
O="";for(var T in b)O+=O.length>0?" "+T:T;_.DB(W,O)}};
_.Mq=function(W,O){W.classList?W.classList.remove(O):_.xH(W,O)&&_.DB(W,Array.prototype.filter.call(Nbw(W),function(b){return b!=O}).join(" "))};
MPv=function(W,O){W.classList?Array.prototype.forEach.call(O,function(b){_.Mq(W,b)}):_.DB(W,Array.prototype.filter.call(Nbw(W),function(b){return!_.Vh(O,b)}).join(" "))};var up$=function(W){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=W.document},FIS=function(W,O){Jxw(W);
var b=document.createElement("div"),T;(T=O.parentNode)==null||T.insertBefore(b,O);b.tabIndex=0;b.id="fc-focus-trap-pre-div";b=document.createElement("div");var L;(L=O.parentNode)==null||L.insertBefore(b,O.nextSibling);b.tabIndex=0;b.id="fc-focus-trap-post-div";var h=cxL(W,O),Z=cxL(W,O,!0);h&&Z&&(W.focusChangeHandler=function(){var a=W.document.activeElement;if(a)if(_.f5(O,a))W.previouslyFocusedElement=a;else if(a===W.document.activeElement)switch(W.previouslyFocusedElement){case h:Z.focus();W.previouslyFocusedElement=
Z;break;default:h.focus(),W.previouslyFocusedElement=h}},W.document.addEventListener("focus",W.focusChangeHandler,!0),W.document.addEventListener("focusin",W.focusChangeHandler))},Jxw=function(W){W.focusChangeHandler&&(document.removeEventListener("focus",W.focusChangeHandler,!0),document.removeEventListener("focusin",W.focusChangeHandler),W.focusChangeHandler=null);
var O;(O=document.getElementById("fc-focus-trap-pre-div"))==null||O.remove();var b;(b=document.getElementById("fc-focus-trap-post-div"))==null||b.remove()},yxU=function(W,O,b,T,L){b=b===void 0?!0:b;
var h;L=(h=L===void 0?null:L)!=null?h:cxL(W,O,T===void 0?!1:T);L!==null&&(L.focus(),b&&FIS(W,O))};
up$.prototype.disableButton=function(W,O){O=O===void 0?null:O;W.disabled=!0;O&&_.J4(W,O)};
var cxL=function(W,O,b){b=b===void 0?!1:b;if(xdO(O)&&!b)return O;var T=b?[].slice.call(O.children,0).reverse():O.children;T=_.S(T);for(var L=T.next();!L.done;L=T.next())if(L=L.value,$EH(L)&&(L=cxL(W,L,b)))return L;return xdO(O)&&b?O:null};var Wqf=function(W){this.originalBodyOverflow="";this.JSC$8000_domHelper=IG(W)};_.Wk(_.v5,_.R8);_.d=_.v5.prototype;_.d.JSC$8003_id_=0;_.d.disposeInternal=function(){_.v5.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8001_listener_;delete this.handler_};
_.d.start=function(W){this.stop();this.JSC$8003_id_=lE(this.callback_,W!==void 0?W:this.JSC$8001_interval_)};
_.d.stop=function(){this.isActive()&&_.i1.clearTimeout(this.JSC$8003_id_);this.JSC$8003_id_=0};
_.d.fire=function(){this.stop();this.JSC$8003_doAction_()};
_.d.isActive=function(){return this.JSC$8003_id_!=0};
_.d.JSC$8003_doAction_=function(){this.JSC$8003_id_=0;this.JSC$8001_listener_&&this.JSC$8001_listener_.call(this.handler_)};_.be=function(W){_.R8.call(this);this.handler_=W;this.JSC$8004_keys_={}};
_.Wk(_.be,_.R8);var Ow1=[];_.be.prototype.listen=function(W,O,b,T){Array.isArray(O)||(O&&(Ow1[0]=O.toString()),O=Ow1);for(var L=0;L<O.length;L++){var h=_.Rx(W,O[L],b||this.handleEvent,T||!1,this.handler_||this);if(!h)break;this.JSC$8004_keys_[h.key]=h}return this};
_.be.prototype.listenOnce=function(W,O,b,T){return iwn(this,W,O,b,T)};
var iwn=function(W,O,b,T,L,h){if(Array.isArray(b))for(var Z=0;Z<b.length;Z++)iwn(W,O,b[Z],T,L,h);else{O=lj(O,b,T||W.handleEvent,L,h||W.handler_||W);if(!O)return W;W.JSC$8004_keys_[O.key]=O}return W};
_.be.prototype.unlisten=function(W,O,b,T,L){if(Array.isArray(O))for(var h=0;h<O.length;h++)this.unlisten(W,O[h],b,T,L);else if(W=K7z(W,O,b||this.handleEvent,_.LH(T)?!!T.capture:!!T,L||this.handler_||this))eD(W),delete this.JSC$8004_keys_[W.key];return this};
_.be.prototype.removeAll=function(){_.PQ.forEach(this.JSC$8004_keys_,function(W,O){this.JSC$8004_keys_.hasOwnProperty(O)&&eD(W)},this);
this.JSC$8004_keys_={}};
_.be.prototype.disposeInternal=function(){_.be.superClass_.disposeInternal.call(this);this.removeAll()};
_.be.prototype.handleEvent=function(){throw Error("Sa");};var CO=function(){_.R8.call(this);this.services_={}};
_.Wk(CO,_.R8);_.d=CO.prototype;_.d.logger=null;_.d.connect=function(W){W&&W()};
_.d.isConnected=function(){return!0};
_.d.registerService=function(W,O,b){this.services_[W]={callback:O,objectPayload:!!b}};
_.d.getService=function(W,O){var b=this.services_[W];return b?b:this.defaultService_?{callback:_.A3(this.defaultService_,W),objectPayload:_.LH(O)}:null};
var bw7=function(W,O){if(O&&typeof W==="string")try{return JSON.parse(W)}catch(b){return null}else if(!O&&typeof W!=="string")return(0,_.Px)(W);return W};
CO.prototype.disposeInternal=function(){CO.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 qn=function(W,O){this.sequence_=[];this.onCancelFunction_=W;this.defaultScope_=O||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};
qn.prototype.cancel=function(W){if(this.fired_)this.result_ instanceof qn&&this.result_.cancel();else{if(this.parent_){var O=this.parent_;delete this.parent_;W?O.cancel(W):(O.branches_--,O.branches_<=0&&O.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new nO(this))}};
qn.prototype.continue_=function(W,O){this.blocked_=!1;jGN(this,W,O)};
var jGN=function(W,O,b){W.fired_=!0;W.result_=b;W.hadError_=!O;T4$(W)},dGH=function(W){if(W.fired_){if(!W.silentlyCanceled_)throw new Lq7(W);
W.silentlyCanceled_=!1}};
qn.prototype.callback=function(W){dGH(this);jGN(this,!0,W)};
qn.prototype.errback=function(W){dGH(this);jGN(this,!1,W)};
var h5q=function(W,O,b){fO(W,O,null,b)};
qn.prototype.finally=function(W){var O=this;return new Promise(function(b,T){fO(O,function(L){W();b(L)},function(L){W();
T(L)})})};
var fO=function(W,O,b,T){var L=W.fired_;L||(O===b?O=b=w9(O):(O=w9(O),b=w9(b)));W.sequence_.push([O,b,T]);L&&T4$(W)};
qn.prototype.then=function(W,O,b){var T,L,h=new _.mJ(function(Z,a){L=Z;T=a});
fO(this,L,function(Z){Z instanceof nO?h.cancel():T(Z);return SMn},this);
return h.then(W,O,b)};
rAw(qn);var Zww=function(W,O){O instanceof qn?h5q(W,(0,_.K5)(O.branch,O)):h5q(W,function(){return O})};
qn.prototype.branch=function(W){var O=new qn;fO(this,O.callback,O.errback,O);W&&(O.parent_=this,this.branches_++);return O};
qn.prototype.isError=function(W){return W instanceof Error};
var IIw=function(W){return M8(W.sequence_,function(O){return typeof O[1]==="function"})},SMn={},T4$=function(W){if(W.unhandledErrorId_&&W.fired_&&IIw(W)){var O=W.unhandledErrorId_,b=aIN[O];
b&&(_.i1.clearTimeout(b.JSC$8021_id_),delete aIN[O]);W.unhandledErrorId_=0}W.parent_&&(W.parent_.branches_--,delete W.parent_);O=W.result_;for(var T=b=!1;W.sequence_.length&&!W.blocked_;){var L=W.sequence_.shift(),h=L[0],Z=L[1];L=L[2];if(h=W.hadError_?Z:h)try{var a=h.call(L||W.defaultScope_,O);a===SMn&&(a=void 0);a!==void 0&&(W.hadError_=W.hadError_&&(a==O||W.isError(a)),W.result_=O=a);if(DAS(O)||typeof _.i1.Promise==="function"&&O instanceof _.i1.Promise)T=!0,W.blocked_=!0}catch(m){O=m,W.hadError_=
!0,IIw(W)||(b=!0)}}W.result_=O;T&&(a=(0,_.K5)(W.continue_,W,!0),T=(0,_.K5)(W.continue_,W,!1),O instanceof qn?(fO(O,a,T),O.blocking_=!0):O.then(a,T));b&&(O=new mGN(O),aIN[O.JSC$8021_id_]=O,W.unhandledErrorId_=O.JSC$8021_id_)},Lq7=function(){_.W2.call(this)};
_.Wk(Lq7,_.W2);Lq7.prototype.message="Deferred has already fired";Lq7.prototype.name="AlreadyCalledError";var nO=function(){_.W2.call(this)};
_.Wk(nO,_.W2);nO.prototype.message="Deferred was canceled";nO.prototype.name="CanceledError";var mGN=function(W){this.JSC$8021_id_=_.i1.setTimeout((0,_.K5)(this.throwError,this),0);this.JSC$8021_error_=W};
mGN.prototype.throwError=function(){delete aIN[this.JSC$8021_id_];throw this.JSC$8021_error_;};
var aIN={};var YMf={1:"NativeMessagingTransport"},E3H=["pu","lru","pru","lpu","ppu"],AU$=function(){for(var W=10,O=wQ1,b=O.length,T="";W-- >0;)T+=O.charAt(Math.floor(Math.random()*b));return T},wQ1="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Gy=function(W){_.R8.call(this);this.JSC$8024_domHelper_=W||IG()};
_.Wk(Gy,_.R8);Gy.prototype.transportType=0;Gy.prototype.getWindow=function(){return this.JSC$8024_domHelper_.getWindow()};
Gy.prototype.getName=function(){return YMf[String(this.transportType)]||""};var Hx=function(W,O,b,T,L){Gy.call(this,b);this.JSC$8027_channel_=W;this.protocolVersion_=L||2;this.peerHostname_=O||"*";this.JSC$8027_eventHandler_=new _.be(this);this.maybeAttemptToConnectTimer_=new _.ie(100,this.getWindow());this.oneSidedHandshake_=!!T;this.setupAckReceived_=new qn;this.setupAckSent_=new qn;this.JSC$8027_connected_=new qn;this.endpointId_=AU$();this.peerEndpointId_=null;this.oneSidedHandshake_?XQf(this.JSC$8027_channel_)==1?Zww(this.JSC$8027_connected_,this.setupAckReceived_):
Zww(this.JSC$8027_connected_,this.setupAckSent_):(Zww(this.JSC$8027_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Zww(this.JSC$8027_connected_,this.setupAckSent_));h5q(this.JSC$8027_connected_,this.notifyConnected_,this);this.JSC$8027_connected_.callback(!0);this.JSC$8027_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Wk(Hx,Gy);Hx.prototype.peerProtocolVersion_=null;Hx.prototype.initialized_=!1;Hx.prototype.transportType=1;var UG7={};Hx.prototype.sendTimerId_=0;
var PiS=function(W){var O=W.event_.data;if(typeof O!=="string")return!1;var b=O.indexOf("|"),T=O.indexOf(":");if(b==-1||T==-1)return!1;var L=O.substring(0,b);b=O.substring(b+1,T);O=O.substring(T+1);if(T=tY[L])return T.xpcDeliver(b,O,W.event_.origin),!0;T=lIw(O)[0];for(var h in tY){var Z=tY[h];if(XQf(Z)==1&&!Z.isConnected()&&b=="tp"&&(T=="SETUP"||T=="SETUP_NTPV2")&&e57(Z,W.event_.origin))return delete tY[Z.name],Z.name=L,tY[L]=Z,Z.xpcDeliver(b,O),!0}return!1},pQq=function(W){W.protocolVersion_!=2||
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||W.send("tp","SETUP_NTPV2,"+W.endpointId_);
W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||W.send("tp","SETUP")},R5q=function(W,O){if(W.protocolVersion_!=2||W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=2||O!=2){if(W.peerProtocolVersion_!=null&&W.peerProtocolVersion_!=1||O!=1)return;
W.send("tp","SETUP_ACK")}else W.send("tp","SETUP_ACK_NTPV2");W.setupAckSent_.fired_||W.setupAckSent_.callback(!0)},Kq1=function(W,O){O>W.peerProtocolVersion_&&(W.peerProtocolVersion_=O);
W.peerProtocolVersion_==1&&(W.setupAckSent_.fired_||W.oneSidedHandshake_||W.setupAckSent_.callback(!0),W.peerEndpointId_=null)};
_.d=Hx.prototype;_.d.connect=function(){var W=this.getWindow(),O=_.d1(W),b=UG7[O];typeof b!=="number"&&(b=0);b==0&&_.Rx(W.postMessage?W:W.document,"message",PiS,!1,Hx);UG7[O]=b+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.d.maybeAttemptToConnect_=function(){var W=XQf(this.JSC$8027_channel_)==0;this.oneSidedHandshake_&&W||this.JSC$8027_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),pQq(this))};
_.d.send=function(W,O){var b=this.JSC$8027_channel_.peerWindowObject_;b&&(this.send=function(T,L){var h=this,Z=this.JSC$8027_channel_.name;this.sendTimerId_=lE(function(){h.sendTimerId_=0;try{var a=b.postMessage?b:b.document;a.postMessage&&a.postMessage(Z+"|"+T+":"+L,h.peerHostname_)}catch(m){}},0)},this.send(W,O))};
_.d.notifyConnected_=function(){var W=this.JSC$8027_channel_,O=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;W.isConnected()||W.connectionDelay_&&W.connectionDelay_.isActive()||(W.state_=2,_.JU(W.connectionDelay_),O!==void 0?(W.connectionDelay_=new _.v5(W.connectCb_,O),W.connectionDelay_.start()):(W.connectionDelay_=null,W.connectCb_()))};
_.d.disposeInternal=function(){if(this.initialized_){var W=this.getWindow(),O=_.d1(W),b=UG7[O];UG7[O]=b-1;b==1&&_.YH(W.postMessage?W:W.document,"message",PiS,!1,Hx)}this.sendTimerId_&&(_.i1.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.JU(this.JSC$8027_eventHandler_);delete this.JSC$8027_eventHandler_;_.JU(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8027_connected_.cancel();delete this.JSC$8027_connected_;delete this.send;Hx.superClass_.disposeInternal.call(this)};
var lIw=function(W){W=W.split(",");W[1]=W[1]||null;return W};_.$H=function(W){if(W.getValues&&typeof W.getValues=="function")return W.getValues();if(typeof Map!=="undefined"&&W instanceof Map||typeof Set!=="undefined"&&W instanceof Set)return Array.from(W.values());if(typeof W==="string")return W.split("");if(_.j5(W)){for(var O=[],b=W.length,T=0;T<b;T++)O.push(W[T]);return O}return _.PQ.getValues(W)};
_.v39=function(W){if(W.getKeys&&typeof W.getKeys=="function")return W.getKeys();if(!W.getValues||typeof W.getValues!="function"){if(typeof Map!=="undefined"&&W instanceof Map)return Array.from(W.keys());if(!(typeof Set!=="undefined"&&W instanceof Set)){if(_.j5(W)||typeof W==="string"){var O=[];W=W.length;for(var b=0;b<W;b++)O.push(b);return O}return _.PQ.getKeys(W)}}};
_.g35=function(W,O,b){if(W.forEach&&typeof W.forEach=="function")W.forEach(O,b);else if(_.j5(W)||typeof W==="string")Array.prototype.forEach.call(W,O,b);else for(var T=_.v39(W),L=_.$H(W),h=L.length,Z=0;Z<h;Z++)O.call(b,L[Z],T&&T[Z],W)};var wPi,FG,Wy,DGn,o3w,kKf,QGN,rUf,sG9;
_.Np=function(W,O){this.JSC$8032_domain_=this.userInfo_=this.scheme_="";this.JSC$8032_port_=null;this.fragment_=this.JSC$8032_path_="";this.JSC$8032_ignoreCase_=!1;var b;W instanceof _.Np?(this.JSC$8032_ignoreCase_=O!==void 0?O:W.JSC$8032_ignoreCase_,_.VQ(this,W.scheme_),this.userInfo_=W.userInfo_,_.Nn(this,W.JSC$8032_domain_),_.Mn(this,W.JSC$8032_port_),_.uE(this,W.getPath()),_.JY(this,W.JSC$8032_queryData_.clone()),_.cx(this,W.fragment_)):W&&(b=_.J_(String(W)))?(this.JSC$8032_ignoreCase_=!!O,_.VQ(this,
b[1]||"",!0),this.userInfo_=FG(b[2]||""),_.Nn(this,b[3]||"",!0),_.Mn(this,b[4]),_.uE(this,b[5]||"",!0),_.JY(this,b[6]||"",!0),_.cx(this,b[7]||"",!0)):(this.JSC$8032_ignoreCase_=!!O,this.JSC$8032_queryData_=new _.yQ(null,this.JSC$8032_ignoreCase_))};
_.Np.prototype.toString=function(){var W=[],O=this.scheme_;O&&W.push(Wy(O,o3w,!0),":");var b=this.JSC$8032_domain_;if(b||O=="file")W.push("//"),(O=this.userInfo_)&&W.push(Wy(O,o3w,!0),"@"),W.push(_.t_(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b=this.JSC$8032_port_,b!=null&&W.push(":",String(b));if(b=this.getPath())this.JSC$8032_domain_&&b.charAt(0)!="/"&&W.push("/"),W.push(Wy(b,b.charAt(0)=="/"?QGN:kKf,!0));(b=this.JSC$8032_queryData_.toString())&&W.push("?",b);(b=this.fragment_)&&W.push("#",Wy(b,
sG9));return W.join("")};
_.Np.prototype.resolve=function(W){var O=this.clone(),b=!!W.scheme_;b?_.VQ(O,W.scheme_):b=!!W.userInfo_;b?O.userInfo_=W.userInfo_:b=!!W.JSC$8032_domain_;b?_.Nn(O,W.JSC$8032_domain_):b=W.JSC$8032_port_!=null;var T=W.getPath();if(b)_.Mn(O,W.JSC$8032_port_);else if(b=!!W.JSC$8032_path_){if(T.charAt(0)!="/")if(this.JSC$8032_domain_&&!this.JSC$8032_path_)T="/"+T;else{var L=O.getPath().lastIndexOf("/");L!=-1&&(T=O.getPath().slice(0,L+1)+T)}L=T;if(L==".."||L==".")T="";else if(_.aq(L,"./")||_.aq(L,"/.")){T=
_.LE(L,"/");L=L.split("/");for(var h=[],Z=0;Z<L.length;){var a=L[Z++];a=="."?T&&Z==L.length&&h.push(""):a==".."?((h.length>1||h.length==1&&h[0]!="")&&h.pop(),T&&Z==L.length&&h.push("")):(h.push(a),T=!0)}T=h.join("/")}else T=L}b?_.uE(O,T):b=W.JSC$8032_queryData_.toString()!=="";b?_.JY(O,W.JSC$8032_queryData_.clone()):b=!!W.fragment_;b&&_.cx(O,W.fragment_);return O};
_.Np.prototype.clone=function(){return new _.Np(this)};
_.VQ=function(W,O,b){W.scheme_=b?FG(O,!0):O;W.scheme_&&(W.scheme_=W.scheme_.replace(/:$/,""));return W};
_.Nn=function(W,O,b){W.JSC$8032_domain_=b?FG(O,!0):O;return W};
_.Mn=function(W,O){if(O){O=Number(O);if(isNaN(O)||O<0)throw Error("Ta`"+O);W.JSC$8032_port_=O}else W.JSC$8032_port_=null;return W};
_.Np.prototype.getPath=function(){return this.JSC$8032_path_};
_.uE=function(W,O,b){W.JSC$8032_path_=b?FG(O,!0):O;return W};
_.JY=function(W,O,b){O instanceof _.yQ?(W.JSC$8032_queryData_=O,B45(W.JSC$8032_queryData_,W.JSC$8032_ignoreCase_)):(b||(O=Wy(O,rUf)),W.JSC$8032_queryData_=new _.yQ(O,W.JSC$8032_ignoreCase_));return W};
_.VC=function(W,O,b){W.JSC$8032_queryData_.set(O,b);return W};
_.$6=function(W,O){return W.JSC$8032_queryData_.get(O)};
_.cx=function(W,O,b){W.fragment_=b?FG(O):O;return W};
_.O$=function(W){_.VC(W,"zx",H5());return W};
_.tV=function(W,O){return W instanceof _.Np?W.clone():new _.Np(W,O)};
wPi=function(W,O){W instanceof _.Np||(W=_.tV(W));O instanceof _.Np||(O=_.tV(O));return W.resolve(O)};
FG=function(W,O){return W?O?decodeURI(W.replace(/%25/g,"%2525")):decodeURIComponent(W):""};
Wy=function(W,O,b){return typeof W==="string"?(W=encodeURI(W).replace(O,DGn),b&&(W=W.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),W):null};
DGn=function(W){W=W.charCodeAt(0);return"%"+(W>>4&15).toString(16)+(W&15).toString(16)};
o3w=/[#\/\?@]/g;kKf=/[#\?:]/g;QGN=/[#\?]/g;rUf=/[#\?@]/g;sG9=/#/g;_.yQ=function(W,O){this.count_=this.keyMap_=null;this.encodedQuery_=W||null;this.JSC$8033_ignoreCase_=!!O};
_.iB=function(W){W.keyMap_||(W.keyMap_=new Map,W.count_=0,W.encodedQuery_&&o$5(W.encodedQuery_,function(O,b){W.add(W3(O),b)}))};
_.d=_.yQ.prototype;_.d.getCount=function(){_.iB(this);return this.count_};
_.d.add=function(W,O){_.iB(this);this.encodedQuery_=null;W=bB(this,W);var b=this.keyMap_.get(W);b||this.keyMap_.set(W,b=[]);b.push(O);this.count_+=1;return this};
_.d.remove=function(W){_.iB(this);W=bB(this,W);return this.keyMap_.has(W)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(W).length,this.keyMap_.delete(W)):!1};
_.d.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.d.isEmpty=function(){_.iB(this);return this.count_==0};
_.d.containsKey=function(W){_.iB(this);W=bB(this,W);return this.keyMap_.has(W)};
_.d.containsValue=function(W){var O=this.getValues();return _.Vh(O,W)};
_.d.forEach=function(W,O){_.iB(this);this.keyMap_.forEach(function(b,T){b.forEach(function(L){W.call(O,L,T,this)},this)},this)};
_.d.getKeys=function(){_.iB(this);for(var W=Array.from(this.keyMap_.values()),O=Array.from(this.keyMap_.keys()),b=[],T=0;T<O.length;T++)for(var L=W[T],h=0;h<L.length;h++)b.push(O[T]);return b};
_.d.getValues=function(W){_.iB(this);var O=[];if(typeof W==="string")this.containsKey(W)&&(O=O.concat(this.keyMap_.get(bB(this,W))));else{W=Array.from(this.keyMap_.values());for(var b=0;b<W.length;b++)O=O.concat(W[b])}return O};
_.d.set=function(W,O){_.iB(this);this.encodedQuery_=null;W=bB(this,W);this.containsKey(W)&&(this.count_-=this.keyMap_.get(W).length);this.keyMap_.set(W,[O]);this.count_+=1;return this};
_.d.get=function(W,O){if(!W)return O;W=this.getValues(W);return W.length>0?String(W[0]):O};
_.xGq=function(W,O,b){W.remove(O);b.length>0&&(W.encodedQuery_=null,W.keyMap_.set(bB(W,O),_.Ov(b)),W.count_+=b.length)};
_.yQ.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var W=[],O=Array.from(this.keyMap_.keys()),b=0;b<O.length;b++){var T=O[b],L=_.t_(T);T=this.getValues(T);for(var h=0;h<T.length;h++){var Z=L;T[h]!==""&&(Z+="="+_.t_(T[h]));W.push(Z)}}return this.encodedQuery_=W.join("&")};
_.yQ.prototype.clone=function(){var W=new _.yQ;W.encodedQuery_=this.encodedQuery_;this.keyMap_&&(W.keyMap_=new Map(this.keyMap_),W.count_=this.count_);return W};
var bB=function(W,O){O=String(O);W.JSC$8033_ignoreCase_&&(O=O.toLowerCase());return O},B45=function(W,O){O&&!W.JSC$8033_ignoreCase_&&(_.iB(W),W.encodedQuery_=null,W.keyMap_.forEach(function(b,T){var L=T.toLowerCase();
T!=L&&(this.remove(T),_.xGq(this,L,b))},W));
W.JSC$8033_ignoreCase_=O};
_.yQ.prototype.extend=function(W){for(var O=0;O<arguments.length;O++)_.g35(arguments[O],function(b,T){this.add(T,b)},this)};var jY=function(W,O){CO.call(this);for(var b=0,T;T=E3H[b];b++)if(T in W&&!/^https?:\/\//.test(W[T]))throw Error("Va`"+W[T]+"`"+T);this.cfg_=W;this.name=this.cfg_.cn||AU$();this.JSC$8028_domHelper_=O||IG();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.be(this);W.lpu=W.lpu||v$U(this.JSC$8028_domHelper_.getWindow().location.href)+"/robots.txt";W.ppu=W.ppu||v$U(W.pu||"")+"/robots.txt";tY[this.name]=this;K7z(window,"unload",z5$)||lj(window,"unload",z5$)};
_.Wk(jY,CO);var Ciw=RegExp("^%*tp$"),qML=RegExp("^%+tp$");_.d=jY.prototype;_.d.connectionDelay_=null;_.d.peerWindowDeferred_=null;_.d.transport_=null;_.d.state_=1;_.d.isConnected=function(){return this.state_==2};
_.d.peerWindowObject_=null;_.d.iframeElement_=null;_.d.connect=function(W){this.connectCb_=W||_.mB;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?h5q(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.d.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8028_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var W=this.iframeElement_.contentWindow;W||(W=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=W}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$8028_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Hx(this,this.cfg_.ph,this.JSC$8028_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.d.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.JU(this.transport_);this.connectCb_=this.transport_=null;_.JU(this.connectionDelay_);this.connectionDelay_=null};
_.d.send=function(W,O){if(this.isConnected()){try{var b=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(L){b=!1}if(b){_.LH(O)&&(O=(0,_.Px)(O));b=this.transport_;var T=b.send;Ciw.test(W)&&(W="%"+W);W=W.replace(/[%:|]/g,encodeURIComponent);T.call(b,W,O)}else this.close()}};
_.d.xpcDeliver=function(W,O,b){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.K5)(this.xpcDeliver,this,W,O,b));else if(e57(this,b)&&!this.isDisposed()&&this.state_!=3)if(W&&W!="tp")this.isConnected()&&(W=W.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),W=qML.test(W)?W.substring(1):W,W=this.getService(W,O))&&(O=bw7(O,W.objectPayload),O!=null&&W.callback(O));else switch(W=this.transport_,b=lIw(O),O=b[1],b[0]){case "SETUP_ACK":Kq1(W,1);W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":W.protocolVersion_==2&&(Kq1(W,2),W.setupAckReceived_.fired_||W.setupAckReceived_.callback(!0));break;case "SETUP":Kq1(W,1);R5q(W,1);break;case "SETUP_NTPV2":W.protocolVersion_==2&&(b=W.peerProtocolVersion_,Kq1(W,2),R5q(W,2),b!=1&&W.peerEndpointId_==null||W.peerEndpointId_==O||pQq(W),W.peerEndpointId_=O)}};
var XQf=function(W){var O=W.cfg_.role;return typeof O==="number"?O:window.parent==W.peerWindowObject_?1:0},e57=function(W,O){var b=W.cfg_.ph;
return _.Zi(O==null?"":String(O))||_.Zi(b==null?"":String(b))||O==W.cfg_.ph};
jY.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete tY[this.name];_.JU(this.peerLoadHandler_);delete this.peerLoadHandler_;jY.superClass_.disposeInternal.call(this)};
var z5$=function(){for(var W in tY)_.JU(tY[W])},tY={};var fIH=function(W,O){this.JSC$8042_win=W;this.allowAdsHttpEndpoint=O;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8042_domHelper=IG(W);this.scrollManager=new Wqf(W);this.accessibilityManager=new up$(W);n3$(this)},n3$=function(W){var O=function(){W.allowAdsPopup&&W.allowAdsPopup.style.setProperty("display","none","important");
W.wallElement.style.setProperty("display","","important");Jxw(W.accessibilityManager);yxU(W.accessibilityManager,W.wallElement.querySelector(".fc-dialog-container"),!1,!1,W.wallElement.querySelector(".fc-button-whitelist"));var L=W.scrollManager;L.JSC$8000_domHelper.JSC$7330_document_.body.style.overflow=L.originalBodyOverflow};
W.allowAdsPopup=W.JSC$8042_domHelper.JSC$7332_createDom("DIV",{"class":"fc-whitelist-root"});W.allowAdsPopup.style.setProperty("display","none","important");W.JSC$8042_domHelper.appendChild(W.JSC$8042_domHelper.JSC$7330_document_.body,W.allowAdsPopup);var b=W.JSC$8042_domHelper.JSC$7332_createDom("DIV",{"class":"fc-dialog-overlay"});W.JSC$8042_domHelper.appendChild(W.allowAdsPopup,b);var T=W.JSC$8042_domHelper.JSC$7332_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:O});W.JSC$8042_domHelper.appendChild(W.allowAdsPopup,
T);b=W.JSC$8042_domHelper.JSC$7332_createDom("IFRAME");b.className="fc-whitelist-dialog";b.frameBorder="0";b.id="fc-whitelist-iframe";b.tabIndex="0";_.k4(b,W.allowAdsHttpEndpoint);W.JSC$8042_domHelper.appendChild(T,b);T={};T.pu=_.Zd(W.allowAdsHttpEndpoint).toString();T.tp=1;T.cn="fc-whitelist-channel";T.ifrid=b.id;T.osh=!0;W.allowAdsCrossPageChannel=new jY(T);W.allowAdsCrossPageChannel.registerService("close",O);W.allowAdsCrossPageChannel.registerService("refresh",function(){W.JSC$8042_win.location.reload()});
W.allowAdsCrossPageChannel.registerService("resize",function(L){if(L){var h=W.allowAdsPopup.querySelector(".fc-whitelist-dialog");L.width&&h.style.setProperty("width",L.width,"important");L.height&&h.style.setProperty("height",L.height,"important")}},!0);
W.allowAdsCrossPageChannel.connect()};
fIH.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8042_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var LW=window,dN=document,GKH=LW.location,Hww=function(){},tpw=/\[native code\]/,hE=function(W,O,b){return W[O]=W[O]||b},$GS=function(W){W=W.sort();
for(var O=[],b=void 0,T=0;T<W.length;T++){var L=W[T];L!=b&&O.push(L);b=L}return O},SY=function(){var W;
if((W=Object.create)&&tpw.test(W))W=W(null);else{W={};for(var O in W)W[O]=void 0}return W},Z8=hE(LW,"gapi",{});var In={};In=hE(LW,"___jsl",SY());hE(In,"I",0);hE(In,"hel",10);var Vp7=function(){var W=GKH.href;if(In.dpo)var O=In.h;else{O=In.h;var b=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),T=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(W=W&&(b.exec(W)||T.exec(W)))try{O=decodeURIComponent(W[2])}catch(L){}}return O},N4U=function(W){var O=hE(In,"PQ",[]);
In.PQ=[];var b=O.length;if(b===0)W();else for(var T=0,L=function(){++T===b&&W()},h=0;h<b;h++)O[h](L)},Mp7=function(W){return hE(hE(In,"H",SY()),W,SY())};var an=function(W){this.JSC$8044_obj_=W};
an.prototype.value=function(){return this.JSC$8044_obj_};
an.prototype.getWidth=function(){return this.JSC$8044_obj_.width};
an.prototype.getHeight=function(){return this.JSC$8044_obj_.height};
an.prototype.getStyle=function(){return this.JSC$8044_obj_.style};var uHL=function(W){this.JSC$8047_obj_=W||{}};
_.d=uHL.prototype;_.d.value=function(){return this.JSC$8047_obj_};
_.d.setUrl=function(W){this.JSC$8047_obj_.url=W;return this};
_.d.getUrl=function(){return this.JSC$8047_obj_.url};
_.d.getStyle=function(){return this.JSC$8047_obj_.style};
_.d.setId=function(W){this.JSC$8047_obj_.id=W;return this};
_.d.getId=function(){return this.JSC$8047_obj_.id};
_.d.getContext=function(){return this.JSC$8047_obj_.context};
var JUL=function(W){W.JSC$8047_obj_.attributes=W.JSC$8047_obj_.attributes||{};return new an(W.JSC$8047_obj_.attributes)};var cUw=function(){uHL.apply(this,arguments)};
_.R(cUw,uHL);var FqL=hE(In,"perf",SY());hE(FqL,"g",SY());var yUw=hE(FqL,"i",SY());hE(FqL,"r",[]);SY();SY();var O5H=function(W,O,b){O&&O.length>0&&(O=WlH(O),b&&b.length>0&&(O+="___"+WlH(b)),O.length>28&&(O=O.substr(0,28)+(O.length-28)),b=O,O=hE(yUw,"_p",SY()),hE(O,b,SY())[W]=(new Date).getTime(),O=FqL.r,typeof O==="function"?O(W,"_p",b):O.push([W,"_p",b]))},WlH=function(W){return W.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var i5U=SY(),b5H=[],mO=function(W){throw Error("Ya`"+W);};
b5H.push(["jsl",function(W){for(var O in W)if(Object.prototype.hasOwnProperty.call(W,O)){var b=W[O];typeof b=="object"?In[O]=hE(In,O,[]).concat(b):hE(In,O,b)}if(O=W.u)W=hE(In,"us",[]),W.push(O),(O=/^https:(.*)$/.exec(O))&&W.push("http:"+O[1])}]);
var j8$=/^(\/[a-zA-Z0-9_\-]+)+$/,TDS=[/\/amp\//,/\/amp$/,/^\/amp$/],Ll$=/^[a-zA-Z0-9\-_\.,!]+$/,d9H=/^gapi\.loaded_[0-9]+$/,hpn=/^[a-zA-Z0-9,._-]+$/,aNN=function(W,O,b,T,L){var h=W.split(";"),Z=h.shift(),a=i5U[Z],m=null;a?m=a(h,O,b,T):mO("no hint processor for: "+Z);m||mO("failed to generate load url");O=m;b=O.match(SVS);(T=O.match(Z57))&&T.length===1&&INn.test(O)&&b&&b.length===1||mO("failed sanity: "+W);try{W="?";if(L&&L.length>0){ZS(L);var w=L.join(",");m=m+"?le="+w;W="&"}if(In.rol){var A=In.ol;
A&&A.length&&(m=""+m+W+"ol="+A.length)}}catch(X){}return m},E69=function(W,O,b,T){W=m9f(W);
d9H.test(b)||mO("invalid_callback");O=YVn(O);T=T&&T.length?YVn(T):null;var L=function(h){return encodeURIComponent(h).replace(/%2C/g,",")};
return[encodeURIComponent(W.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",L(W.version),"/m=",L(O),T?"/exm="+L(T):"","/rt=j/sv=1/d=1/ed=1",W.activeMods?"/am="+L(W.activeMods):"",W.resourceSig?"/rs="+L(W.resourceSig):"",W.zcms?"/t="+L(W.zcms):"","/cb=",L(b)].join("")},m9f=function(W){W.charAt(0)!=="/"&&mO("relative path");
for(var O=W.substring(1).split("/"),b=[];O.length;){W=O.shift();if(!W.length||W.indexOf(".")==0)mO("empty/relative directory");else if(W.indexOf("=")>0){O.unshift(W);break}b.push(W)}W={};for(var T=0,L=O.length;T<L;++T){var h=O[T].split("="),Z=decodeURIComponent(h[0]),a=decodeURIComponent(h[1]);h.length==2&&Z&&a&&(W[Z]=W[Z]||a)}O="/"+b.join("/");j8$.test(O)||mO("invalid_prefix");b=0;for(T=TDS.length;b<T;++b)TDS[b].test(O)&&mO("invalid_prefix");b=w5n(W,"k",!0);T=w5n(W,"am");L=w5n(W,"rs");W=w5n(W,"t");
return{pathPrefix:O,version:b,activeMods:T,resourceSig:L,zcms:W}},YVn=function(W){for(var O=[],b=0,T=W.length;b<T;++b){var L=W[b].replace(/\./g,"_").replace(/-/g,"_");
hpn.test(L)&&O.push(L)}return O.join(",")},w5n=function(W,O,b){W=W[O];
!W&&b&&mO("missing: "+O);if(W){if(Ll$.test(W))return W;mO("invalid: "+O)}return null},INn=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Z57=/\/cb=/g,SVS=/\/\//g;
i5U.m=function(W,O,b,T){(W=W[0])||mO("missing_hint");return"https://apis.google.com"+E69(W,O,b,T)};
var AVw=decodeURI("%73cript"),X5U=/^[-+_0-9\/A-Za-z]+={0,2}$/,U9n=function(W,O){for(var b=[],T=0;T<W.length;++T){var L=W[T],h;if(h=L){a:{for(h=0;h<O.length;h++)if(O[h]===L)break a;h=-1}h=h<0}h&&b.push(L)}return b},lNf=function(){var W=In.nonce;
return W!==void 0?W&&W===String(W)&&W.match(X5U)?W:In.nonce=null:dN.querySelector?(W=dN.querySelector("script[nonce]"))?(W=W.nonce||W.getAttribute("nonce")||"",W&&W===String(W)&&W.match(X5U)?In.nonce=W:In.nonce=null):null:null},p5v=function(W){if(dN.readyState!="loading")epN(W);
else{var O=lNf(),b="";O!==null&&(b=' nonce="'+O+'"');W="<"+AVw+' src="'+encodeURI(W)+'"'+b+"></"+AVw+">";dN.write(PJL?PJL.createHTML(W):W)}},epN=function(W){var O=dN.createElement(AVw);
O.setAttribute("src",PJL?PJL.createScriptURL(W):W);W=lNf();W!==null&&O.setAttribute("nonce",W);O.async="true";(W=dN.getElementsByTagName(AVw)[0])?W.parentNode.insertBefore(O,W):(dN.head||dN.body||dN.documentElement).appendChild(O)},Kl9=function(W,O,b){Rp5(function(){var T=O===Vp7()?hE(Z8,"_",SY()):SY();
T=hE(Mp7(O),"_",T);W(T)},b)},hQ1=function(W,O){var b=O||{};
typeof O=="function"&&(b={},b.callback=O);var T=(O=b)&&O._c;if(T)for(var L=0;L<b5H.length;L++){var h=b5H[L][0],Z=b5H[L][1];Z&&Object.prototype.hasOwnProperty.call(T,h)&&Z(T[h],W,O)}O=[];W?O=W.split(":"):b.features&&(O=b.features);if(!(W=b.h)&&(W=Vp7(),!W))throw Error("Za");v6n(O||[],b,W)},v6n=function(W,O,b){W=$GS(W)||[];
var T=O.callback,L=O.config,h=O.timeout,Z=O.ontimeout,a=O.onerror,m=void 0;typeof a=="function"&&(m=a);var w=null,A=!1;if(h&&!Z||!h&&Z)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";a=hE(Mp7(b),"r",[]).sort();var X=hE(Mp7(b),"L",[]).sort(),l=In.le||[],p=[].concat(a),K=function(M,V){if(A)return 0;LW.clearTimeout(w);X.push.apply(X,k);var jQ=((Z8||{}).config||{}).update;jQ?jQ(L):L&&hE(In,"cu",[]).push(L);if(V){O5H("me0",M,p);try{Kl9(V,b,m)}finally{O5H("me1",M,p)}}return 1};
h>0&&(w=LW.setTimeout(function(){A=!0;Z()},h));
var k=U9n(W,X);if(k.length){k=U9n(W,a);var r=hE(In,"CP",[]),q=r.length;r[q]=function(M){if(!M)return 0;O5H("ml1",k,p);var V=function(y){r[q]=null;K(k,M)&&N4U(function(){T&&T();y()})},jQ=function(){var y=r[q+1];
y&&y()};
q>0&&r[q-1]?r[q]=function(){V(jQ)}:V(jQ)};
if(k.length){var f="loaded_"+In.I++;Z8[f]=function(M){r[q](M);Z8[f]=null};
W=aNN(b,k,"gapi."+f,a,l);a.push.apply(a,k);O5H("ml0",k,p);O.sync||LW.___gapisync?p5v(W):epN(W)}else r[q](Hww)}else K(k)&&T&&T()},g65;
var o6v=null,Q8f=_.i1.trustedTypes;if(Q8f&&Q8f.createPolicy){try{o6v=Q8f.createPolicy("goog#gapi",{createHTML:JfX,createScript:JfX,createScriptURL:JfX})}catch(W){_.i1.console&&_.i1.console.error(W.message)}g65=o6v}else g65=o6v;var PJL=g65,Rp5=function(W,O){if(In.hee&&In.hel>0)try{return W()}catch(b){O&&O(b),In.hel--,hQ1("debug_error",function(){try{window.___jsl.hefn(b)}catch(T){throw b;}})}else try{return W()}catch(b){throw O&&O(b),b;
}},kP1=Z8.load;
kP1&&hE(In,"ol",[]).push(kP1);Z8.load=function(W,O){return Rp5(function(){return hQ1(W,O)})};var k6;var s81=function(W,O){this.serviceId_=W;this.moduleId_=O||null};
s81.prototype.toString=function(){return this.serviceId_};
s81.prototype.getModuleId=function(){return this.moduleId_};var FJe=new s81("MpJwZc","MpJwZc");var WAX=new _.So("a"),y8e=function(W,O,b){_.ZB.call(this,W,O);this.node=O;this.kind=b};
_.R(y8e,_.ZB);var BDq=function(){this.JSC$8060_keys_={};this.urlPrefix_="";this.JSC$8060_queryData_={}};
BDq.prototype.toString=function(){var W=this.urlPrefix_+rVv(this),O=_.ET(this.JSC$8060_queryData_),b="";O!=""&&(b="?"+O);return W+b};
var D9v=function(W){W=YB(W,"md");return!!W&&W!=="0"},rVv=function(W){var O=[],b=(0,_.K5)(function(T){this.JSC$8060_keys_[T]!==void 0&&O.push(T+"="+this.JSC$8060_keys_[T])},W);
D9v(W)?(b("md"),b("k"),b("ck"),b("am"),b("rs"),b("gssmodulesetproto"),b("slk"),b("dti")):(b("sdch"),b("k"),b("ck"),b("am"),b("rt"),"d"in W.JSC$8060_keys_||E$(W,"d","0"),b("d"),b("exm"),b("excm"),(W.JSC$8060_keys_.excm||W.JSC$8060_keys_.exm)&&O.push("ed=1"),b("im"),b("dg"),b("sm"),YB(W,"br")!="1"&&YB(W,"br")!="0"||b("br"),b("br-d"),YB(W,"rb")=="1"&&b("rb"),YB(W,"zs")!=="0"&&b("zs"),x9q(W)!==""&&b("wt"),b("gssmodulesetproto"),b("ujg"),b("sp"),b("rs"),b("cb"),b("ee"),b("slk"),b("dti"),b("m"));return O.join("/")},
YB=function(W,O){return W.JSC$8060_keys_[O]?W.JSC$8060_keys_[O]:null},E$=function(W,O,b){b?W.JSC$8060_keys_[O]=b:delete W.JSC$8060_keys_[O]},zp9=function(W,O){W.urlPrefix_=O},CJ9=function(W,O){O&&O.length>0?(O.sort(),E$(W,"exm",O.join(","))):E$(W,"exm",null)},qVN=function(W,O){O&&O.length>0?(O.sort(),E$(W,"excm",O.join(","))):E$(W,"excm",null)},n6U=function(W){return(W=YB(W,"m"))?W.split(","):[]},x9q=function(W){switch(YB(W,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},fN$=function(W,O){var b=Object.keys(O).filter(function(T){return!!Object.keys(O[T]).length}).map(function(T){var L=Object.keys(O[T]);
L.length>1&&L.sort();return T+":"+L.join(",")});
b.sort();E$(W,"ee",b.join(";"))},ts8=function(W){var O=YB(W,"ee");
if(!O)return{};W={};O=_.S(O.split(";"));for(var b=O.next();!b.done;b=O.next()){var T=_.S(b.value.split(":"));b=T.next().value;T=T.next().value;W[b]={};T=_.S(T.split(","));for(var L=T.next();!L.done;L=T.next())W[b][L.value]=!0}return W},GPL=function(W){delete W.JSC$8060_keys_.m;
delete W.JSC$8060_keys_.exm;delete W.JSC$8060_keys_.ed};
BDq.prototype.clone=function(){if(wfT){var W=new BDq;W.JSC$8060_keys_=Object.assign({},this.JSC$8060_keys_);W.urlPrefix_=this.urlPrefix_;W.JSC$8060_queryData_=Object.assign({},this.JSC$8060_queryData_);return W}return LS(this.toString())};
var LS=function(W,O){O=O===void 0?!0:O;var b=H5f(W),T=new BDq,L=_.J_(b)[5];_.PQ.forEach(tr7,function(Z){var a=L.match("/"+Z+"=([^/]+)");a&&E$(T,Z,a[1])});
var h="";h=W.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";zp9(T,W.substr(0,W.indexOf(h)+h.length));if(!O)return T;(W=_.J_(b)[6]||null)&&o$5(W,function(Z,a){T.JSC$8060_queryData_[Z]=a});
return T},fke=function(W){W=_.mp(H5f(W));
return W===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(W)?/\/k=/.test(W):!1},H5f=function(W){return W.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?W.substr(65):W},tr7={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},$9q=RegExp("^loaded_(g|h)?[_\\d]+$");_.wN=function(W){this.JSC$8072_id_=W;this.opts={}};
_.wN.prototype.JSC$8074_setLabel=function(W){this.label_=W||void 0;return this};
_.wN.prototype.addUploadMetadata=function(W,O){var b=this.opts.data||{};b[W]=O;this.opts.data=b;return this};
var Vrn=function(W){var O=_.PQ.filter(W.opts,function(b){return b!==null});
O=_.PQ.isEmpty(O)?null:O;W=[W.JSC$8072_id_,W.label_,O];O=X28(W);return W=W.slice(0,O+1)};
_.wN.prototype.toString=function(){var W=Vrn(this);return"("+_.RG(W,function(O){return JSON.stringify(O)}).join(",")+")"};
_.wN.prototype.getId=function(){return this.JSC$8072_id_};
_.wN.prototype.getOptions=function(){return _.PQ.clone(this.opts)};var AE=function(){_.wN.call(this,"image-search")};
_.R(AE,_.wN);AE.prototype.setSize=function(W){this.opts.imgsz=W;return this};
AE.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
AE.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};var XV=function(){_.wN.call(this,"maps")};
_.R(XV,_.wN);XV.prototype.setZoom=function(W){this.opts.zoom=W;return this};
XV.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
XV.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};_.U$=function(){_.wN.call(this,"photos")};
_.R(_.U$,_.wN);_.U$.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
_.U$.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};var lB=function(){_.wN.call(this,"url")};
_.R(lB,_.wN);var NDn=function(){var W=new lB;W.opts.type="video";W.opts.site="youtube.com";return W};
lB.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
lB.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};var eY=function(){_.wN.call(this,"video-search")};
_.R(eY,_.wN);var Mrz=function(){var W=new eY;W.opts.site="youtube.com";return W};
eY.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
eY.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};var uuw=function(){_.wN.call(this,"web")};
_.R(uuw,_.wN);uuw.prototype.JSC$8074_setLabel=function(W){_.wN.prototype.JSC$8074_setLabel.call(this,W);return this};
uuw.prototype.addUploadMetadata=function(W,O){_.wN.prototype.addUploadMetadata.call(this,W,O);return this};var Py=function(){this.items_=[];this.opts={}},JVv=function(W){switch(W){case "image-search":return new AE;
case "maps":return new XV;case "photos":return new _.U$;case "url":return new lB;case "video-search":return new eY;case "web":return new uuw}return new _.wN(W)};
Py.prototype.addView=function(W){this.items_.push(typeof W==="string"?JVv(W):W);return this};
var cV1=function(W){return"("+_.RG(W.items_,function(O){return O.toString()}).join(",")+")"};
Py.prototype.toString=function(){return cV1(this)};
Py.prototype.getViews=function(W,O){O=O===void 0?[]:O;for(var b=this.items_,T=0;T<b.length;T++){var L=b[T];L instanceof Py?L.getViews(W,O):L.getId()==W&&O.push(L)}return O};
Py.prototype.getOptions=function(){return _.PQ.clone(this.opts)};var C5=function(W){this.basePickerUrl_=W||"https://docs.google.com/picker";this.nav_=new Py};
C5.prototype.nav_=null;C5.prototype.addView=function(W){this.nav_.addView(W);return this};
C5.prototype.getBaseUrl=function(){return this.basePickerUrl_};
C5.prototype.getViews=function(W){return this.nav_.getViews(W)};
_.Flf=function(W,O){W.callback_=O;return W};var yVH=new Map;yVH.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");yVH.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");yVH.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var WCS=new Set;WCS.add("application/vnd.google-apps.kix");WCS.add("application/vnd.google-apps.ritz");WCS.add("application/vnd.google-apps.punch");var aq$=function(W,O,b){var T=b&&_.vk(b,1);b=OSv(b);var L=W[0].getId();switch(_.gQ(L,2)){case 13:return iS9(W,O,T,b);case 3:return bSn(W,O,T,b);case 10:return jvL(W,O,T,b);case 27:return jvL(W,O,T,b);case 12:return TuS(W,O);case 2:return LCv(W,O,T,b);case 5:return drL(W,O,T,b);case 9:return h0N(W,O,T,b);case 6:return Son(W,O,T,b);case 25:return ZSw(W,O,T,b);case 1:return _.Ys(W[0],t5z,26)?Iqq(W,O,T,b):jvL(W,O,T,b);default:return{}}},Son=function(W,O,b,T){W=W.map(function(L){return{id:L.getId().getId(),
serviceId:"youtube",name:L.getName(),description:_.vk(L,3),type:pW(L),lastEditedUtc:_.HHw(_.bP(L,_.zo,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:_.vk(L,13),thumbnails:Rn(Na(L))}});
return{action:O,docs:W,viewToken:T,view:b||"youtube",v2Translated:!0}},LCv=function(W,O,b,T){var L=W.map(function(h){var Z=h.getId().getId(),a=_.vk(h,7),m=h.getName(),w=pW(h),A=_.HHw(_.bP(h,_.zo,12)).getTime(),X=h.getUrl(),l=Number(hEX(h)),p=_.vk(h,3),K=_.vk(h,11),k=Rn(Na(h));
var r=_.bP(h,Ma,21);r=_.pf(r,1);var q=_.bP(h,Ma,21);q=_.vk(q,10);var f=_.vk(h,13);var M=_.bP(h,Ma,21);M=_.pf(M,9);var V=_.bP(h,Ma,21);V=_.vk(V,11);Z={id:Z,serviceId:"docs",mimeType:a,name:m,type:w,lastEditedUtc:A,url:X,sizeBytes:l,description:p,iconUrl:K,thumbnails:k,isShared:r,downloadUrl:q,embedUrl:f,copyable:M,resourceKey:V};a=_.bP(h,Ma,21);_.pf(a,12)&&(Z.uploadState="success",Z.isNew=!0);a=_.bP(h,Ma,21);_.Ys(a,tN,3)&&(h=_.bP(h,Ma,21),h=_.bP(h,tN,3),_.Ys(h,Gp,2)&&(a=x6(h.getDuration().getSeconds()),
m=h.getDuration(),m=_.OV(m,2),Z.duration=a+m/1E9),Z.aspectRatio=h.getAspectRatio());return Z});
return{action:O,docs:L,viewToken:T,view:b||"all",extraUserInputs:mrq(W),v2Translated:!0}},drL=function(W,O,b,T){W=W.map(function(L){var h=_.bP(L,y9H,15);
h=_.bP(h,H1,1);A8(L,10,H1,h);return{id:L.getId().getId(),serviceId:"web",mimeType:_.vk(L,7),name:L.getName(),type:pW(L),url:L.getUrl(),description:_.vk(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(L))}});
return{action:O,docs:W,viewToken:T,view:b||"image-search",v2Translated:!0}},h0N=function(W,O,b,T){W=W.map(function(L){return{serviceId:"url",
name:Na(L)[0].getUrl().split("/").pop(),type:pW(L),mimeType:_.vk(L,7),url:L.getUrl(),description:_.vk(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(L))}});
return{action:O,docs:W,viewToken:T,view:b||"url",v2Translated:!0}},Iqq=function(W,O,b,T){W=W.map(function(L){return{id:L.getId().getId(),
serviceId:"picasa",name:L.getName(),type:pW(L),description:_.vk(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(L))}});
return{action:O,docs:W,viewToken:T,view:b||"webcam",v2Translated:!0}},jvL=function(W,O,b,T){return{action:O,
docs:W.map(Yo7),viewToken:T,view:Eb$(b||"upload",W),extraUserInputs:mrq(W),v2Translated:!0}},Eb$=function(W,O){return O.some(function(b){var T;
return((T=_.bP(b,$l,30))==null?void 0:_.gQ(T,3))===9})?W+"/gmailphotos":W},bSn=function(W,O,b,T){var L=W.map(function(h){var Z={id:h.getId().getId(),
serviceId:"picasa",mimeType:_.vk(h,7),name:h.getName(),type:pW(h),lastEditedUtc:_.HHw(_.bP(h,_.zo,12)).getTime(),url:h.getUrl(),sizeBytes:Number(hEX(h)),description:_.vk(h,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(h)),mediaKey:h.getId().getId(),parentId:_.vk(h,4)},a,m=(a=_.bP(h,N1w,18))==null?void 0:_.bP(a,V5U,3);m&&(Z.latitude=Kf(m,1),Z.longitude=Kf(m,2));var w;h=(w=_.bP(h,N1w,18))==null?void 0:R6(w,6);w=h!=null?x6(h):void 0;w&&(Z.version=
w);return Z});
return{action:O,docs:L,viewToken:T,view:b||"photos",extraUserInputs:mrq(W),v2Translated:!0}},iS9=function(W,O,b,T){W=W.map(function(L){return{id:L.getId().getId(),
serviceId:"et",name:Na(L)[0].getUrl().split("/").pop(),description:_.vk(L,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(L),"etjpg")}});
return{action:O,docs:W,viewToken:T,view:b||"et",v2Translated:!0}},ZSw=function(W,O,b,T){W=W.map(function(L){var h=L.getId().getId(),Z=T["2"];
return{id:h,serviceId:Z.type!=="gmail_themes"&&Z.parent==="6226252643674576769"?"picasa":"static_themes",name:L.getName(),mimeType:_.vk(L,7),type:pW(L),description:_.vk(L,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:L.getUrl(),embedUrl:L.getUrl(),thumbnails:Rn(Na(L))}});
return{action:O,docs:W,viewToken:T,view:b||"photos",v2Translated:!0}},TuS=function(W,O){W=W.map(function(b){var T=_.bP(b,$z$,27);
T=_.eW(T,1,_.fU,_.W5())[0];return{id:b.getId().getId(),serviceId:"contacts",mimeType:_.vk(b,7),name:b.getName(),description:_.vk(b,3),url:"mailto:"+T,thumbnail:[{url:_.vk(b,11)}],email:T}});
return{action:O,docs:W,view:"contacts",v2Translated:!0}},OSv=function(W){if(!W)return{};
var O=_.vk(W,3);O=O&&JSON.parse(O)||{};return{0:_.vk(W,1),1:_.vk(W,2),2:O}},Rn=function(W,O){O=O===void 0?"":O;
if(!W.length)return null;O=="etjpg"&&(W=W.filter(function(b){return b.getUrl().includes("w1200-h300")}));
return W.map(function(b){return{url:b.getUrl(),height:b.getHeight(),width:b.getWidth(),type:O}})},mrq=function(W){return{isAttachment:W.some(function(O){return _.pf(O,31)})}},Yo7=function(W){var O,b={id:(O=W.getId())==null?void 0:O.getId(),
serviceId:wjL(W),mimeType:_.vk(W,7),name:W.getName(),type:pW(W),sizeBytes:Number(hEX(W)),description:_.vk(W,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Rn(Na(W)),isNew:!0};if(O=_.bP(W,$l,30)){b.dataUrl=_.vk(O,1)||null;a:{var T=_.bP(W,$l,30);switch(_.gQ(T,3)){case 9:T=_.ks(T,c9L,2,Vk);T={remoteRefs:T&&_.vk(T,1)};break a;case 10:case 15:T=_.ks(T,J9w,4,Vk);var L=Na(W);T={photo_id:T&&_.vk(T,1),media_key:W.getId().getId(),media_type:_.gQ(W,6)===1?1:2,image_url:L&&
L[0].getUrl(),width:L&&String(L[0].getWidth()),height:L&&String(L[0].getHeight())};break a}T=null}b.uploadMetadata=T;b.uploadId=_.vk(O,9)||null;b.uploadState=AtL(O)||null}(T=O&&_.ks(O,J9w,4,Vk))&&(b.id=_.vk(T,1));(T=O&&_.ks(O,FnN,5,Vk))&&(b.contentId=_.vk(T,1));(T=O&&_.ks(O,M5z,7,Vk))&&(b.contentId=_.vk(T,1));(T=O&&_.ks(O,uUz,6,Vk))&&(b.contentId=_.vk(T,1));(O==null?void 0:_.gQ(O,3))===1&&(b.mediaKey=W.getId().getId());return b},wjL=function(W){var O;
switch(((O=_.bP(W,$l,30))==null?void 0:_.gQ(O,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},pW=function(W){switch(_.gQ(W,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 _.vk(W,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},AtL=function(W){switch(W==null?void 0:_.gQ(W,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 e07,Xjf,Urv,lqH;_.KW=function(W,O){var b=O||{};O=b.document||document;var T=_.Zd(W).toString(),L=(new X1(O)).createElement("SCRIPT"),h={script_:L,timeout_:void 0},Z=new qn(Xjf,h),a=null,m=b.timeout!=null?b.timeout:5E3;m>0&&(a=window.setTimeout(function(){Urv(L,!0);Z.errback(new lqH(1,"Timeout reached for loading script "+T))},m),h.timeout_=a);
L.onload=L.onreadystatechange=function(){L.readyState&&L.readyState!="loaded"&&L.readyState!="complete"||(Urv(L,b.cleanupWhenDone||!1,a),Z.callback(null))};
L.onerror=function(){Urv(L,!0,a);Z.errback(new lqH(0,"Error while loading script "+T))};
h=b.attributes||{};_.PQ.extend(h,{type:"text/javascript",charset:"UTF-8"});xP$(L,h);_.fz(L,W);e07(O).appendChild(L);return Z};
e07=function(W){var O=UV("HEAD",W);return O&&O.length!==0?O[0]:W.documentElement};
Xjf=function(){if(this&&this.script_){var W=this.script_;W&&W.tagName=="SCRIPT"&&Urv(W,!0,this.timeout_)}};
Urv=function(W,O,b){b!=null&&_.i1.clearTimeout(b);W.onload=function(){};
W.onerror=function(){};
W.onreadystatechange=function(){};
O&&window.setTimeout(function(){_.Xu(W)},0)};
lqH=function(W,O){var b="Jsloader error (code #"+W+")";O&&(b+=": "+O);_.W2.call(this,b);this.code=W};
_.Wk(lqH,_.W2);var Ptn=_.ts(["https://apis.google.com/js/api.js"]),pjN=_.yN(Ptn),gb5=function(W,O){var b=!1,T=R0z(W,O).then(function(h){b=!0;return h}),L=_.WjN(5E3).then(function(){return b?R0z(W,O):KCS(O).then(function(h){return vb9(h,W)})});
return G9v([T,L])},R0z=function(W,O){return obf(O).then(function(b){return vb9(b,W)})},vb9=function(W,O){var b=_.LE(O,"gapi.")?O.slice(5):O;
return W[b]?_.ZM(W[b]):new _.mJ(function(T,L){var h=lE(function(){L(Error("bb"))},3E4);
W.load(O,{callback:function(){_.i1.clearTimeout(h);T(W[b])},
onerror:function(Z){_.i1.clearTimeout(h);L(Z)}})})},obf=function(W){return W.gapi&&W.gapi.load?_.ZM(W.gapi):KCS(W)},KCS=function(W){return _.KW(pjN,{document:W.document}).then(function(){return W.gapi})},Qv9=function(){};
Qv9.prototype.load=function(W,O){O=O===void 0?window:O;var b=Date.now();return gb5(W,O).then(function(T){var L=Date.now();return{library:T,loadStartMs:b,loadEndMs:L}},function(T){throw T instanceof Error?T:Error(String(T));
})};var ak8=function(){_.R8.call(this);this.gapiLoader_=new Qv9;this.origin_=null;this.gapiPickerIframeResolver_=_.$S();this.gapiIframesResolver_=_.$S();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.R(ak8,_.R8);var kxU=function(W,O){var b=_.GT("gapi.iframes",O);return b?(W=Date.now(),_.ZM({library:b,loadStartMs:W,loadEndMs:W})):W.gapiLoader_.load("gapi.iframes",O)},sv$=function(W,O,b,T,L,h){var Z=!1;
Z=Z===void 0?!1:Z;kxU(W,vQ(O.ownerDocument)).then(function(a){var m=a.library;W.gapiIframesResolver_.resolve(m);a=W.gapiPickerIframeResolver_;var w=a.resolve,A=Z;A=A===void 0?!1:A;var X={};X["host-message-handler"]=b;W.hostMessageHandlerInternal_=X;var l=_.tV(T);l=_.tV(l);l=_.Mn(_.Nn(_.VQ(new _.Np,l.scheme_),l.JSC$8032_domain_),l.JSC$8032_port_).toString();W.origin_=l;l=(new cUw).setUrl(T);l.JSC$8047_obj_.where=O;l.JSC$8047_obj_.allowPost=A;l.JSC$8047_obj_.messageHandlers=X;A=_.GT("makeWhiteListIframesFilter",
m)([W.origin_]);l.JSC$8047_obj_.messageHandlersFilter=A;L!=null&&l.setId(L);h!=null&&(l.JSC$8047_obj_.rpctoken=h);A=JUL(l);A.JSC$8044_obj_.style={display:"block","min-width":"100%",width:"1px"};A.JSC$8044_obj_.height="100%";JUL(l).value().allow="camera 'src' "+W.origin_;m=m.getContext().openChild(l.value());w.call(a,m)},function(a){W.gapiIframesResolver_.reject(a);
W.gapiPickerIframeResolver_.reject(a)});
return W.gapiPickerIframeResolver_.promise},Buq=function(W,O){return _.XG([W.gapiIframesResolver_.promise,
W.gapiPickerIframeResolver_.promise]).then(function(b){var T=_.S(b);b=T.next().value;return(T=T.next().value)?T.send("picker-message-handler",O,void 0,_.GT("makeWhiteListIframesFilter",b)([W.origin_])):_.vi(Error("cb"))})};
ak8.prototype.disposeInternal=function(){rt5(this);_.R8.prototype.disposeInternal.call(this)};
var rt5=function(W){W.gapiPickerIframeResolver_.promise.then(function(O){O&&(O.unregister("host-message-handler"),delete W.hostMessageHandlerInternal_["host-message-handler"])})};var DrN=function(){this.nextId=0};var z0z=function(W,O){switch(W.action){case "select-contacts":W=xrH(W.contacts);break;case "visibility":W=W.visible;var b=new JN;W=_.Bk(b,1,7).setVisible(W);b={};b["iframe-command"]=W.serialize();W=b;break;default:W=null}return W?Buq(O,W):_.ZM()},xrH=function(W){if(!W||W.length==0)return null;
var O=new JN;_.Bk(O,1,11);var b=new DrN;W.forEach(function(T){if(T.email){var L=new eb;L=_.JT(L,2,T.name?T.name:T.email);var h=new $z$;T=_.dZi(h,1,_.qZ,T.email,_.fU);T=_.jL(L,27,T);L=T.setId;h=(new f4).setId(":"+(b.nextId++).toString(36));h=_.Bk(h,2,12);T=L.call(T,h)}else T=null;T&&A8(O,7,eb,T)});
W={};W["iframe-command"]=O.serialize();return W};_.Ctq=function(){if(PYQ){var W=/Windows NT ([0-9.]+)/;return(W=W.exec(_.AX()))?W[1]:"0"}return _.eyh?(W=/1[0|1][_.][0-9_.]+/,(W=W.exec(_.AX()))?W[0].replace(/_/g,"."):"10"):uGX?(W=/Android\s+([^\);]+)(\)|;)/,(W=W.exec(_.AX()))?W[1]:""):RyX||KSi||vw8?(W=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(W=W.exec(_.AX()))?W[1].replace(/_/g,"."):""):""}();var vy;vy=function(W){return(W=W.exec(_.AX()))?W[1]:""};
_.qo$=function(){if(_.h$)return vy(/Firefox\/([0-9.]+)/);if(_.jb||uq||XfX)return rh8;if(_.Sb){if(_.zX()||_.YeX()){var W=vy(/CriOS\/([0-9.]+)/);if(W)return W}return vy(/Chrome\/([0-9.]+)/)}if(_.zZ&&!_.zX())return vy(/Version\/([0-9.]+)/);if(XbO||Up2){if(W=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.AX()))return W[1]+"."+W[2]}else if(qE1)return(W=vy(/Android\s+([0-9.]+)/))?W:vy(/Version\/([0-9.]+)/);return""}();var nbf=function(){};
_.Fv(nbf);nbf.prototype.nextId_=0;_.gN=function(W){return":"+(W.nextId_++).toString(36)};var on=function(W){_.ER.call(this);this.JSC$8142_dom_=W||IG();this.JSC$8142_id_=null;this.inDocument_=!1;this.JSC$8142_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Wk(on,_.ER);on.prototype.idGenerator_=nbf.getInstance();on.prototype.getId=function(){return this.JSC$8142_id_||(this.JSC$8142_id_=_.gN(this.idGenerator_))};
on.prototype.setId=function(W){this.parent_&&this.parent_.childIndex_&&(_.PQ.remove(this.parent_.childIndex_,this.JSC$8142_id_),_.PQ.add(this.parent_.childIndex_,W,this));this.JSC$8142_id_=W};
on.prototype.getElement=function(){return this.JSC$8142_element_};
var Qs=function(W){W.googUiComponentHandler_||(W.googUiComponentHandler_=new _.be(W));return W.googUiComponentHandler_},fqv=function(W,O){if(W==O)throw Error("db");
var b;if(b=O&&W.parent_&&W.JSC$8142_id_){b=W.parent_;var T=W.JSC$8142_id_;b=b.childIndex_&&T?_.PQ.get(b.childIndex_,T)||null:null}if(b&&W.parent_!=O)throw Error("db");W.parent_=O;on.superClass_.setParentEventTarget.call(W,O)};
on.prototype.setParentEventTarget=function(W){if(this.parent_&&this.parent_!=W)throw Error("eb");on.superClass_.setParentEventTarget.call(this,W)};
on.prototype.JSC$8144_createDom=function(){this.JSC$8142_element_=this.JSC$8142_dom_.createElement("DIV")};
on.prototype.render=function(W){GxH(this,W)};
var GxH=function(W,O,b){if(W.inDocument_)throw Error("fb");W.JSC$8142_element_||W.JSC$8144_createDom();O?O.insertBefore(W.JSC$8142_element_,b||null):W.JSC$8142_dom_.JSC$7330_document_.body.appendChild(W.JSC$8142_element_);W.parent_&&!W.parent_.inDocument_||W.enterDocument()};
_.d=on.prototype;_.d.decorate=function(W){if(this.inDocument_)throw Error("fb");if(W&&this.canDecorate(W)){this.wasDecorated_=!0;var O=_.g4(W);this.JSC$8142_dom_&&this.JSC$8142_dom_.JSC$7330_document_==O||(this.JSC$8142_dom_=IG(W));this.decorateInternal(W);this.enterDocument()}else throw Error("gb");};
_.d.canDecorate=function(){return!0};
_.d.decorateInternal=function(W){this.JSC$8142_element_=W};
_.d.enterDocument=function(){this.inDocument_=!0;HS7(this,function(W){!W.inDocument_&&W.getElement()&&W.enterDocument()})};
_.d.exitDocument=function(){HS7(this,function(W){W.inDocument_&&W.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.d.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);HS7(this,function(W){W.dispose()});
!this.wasDecorated_&&this.JSC$8142_element_&&_.Xu(this.JSC$8142_element_);this.parent_=this.model_=this.JSC$8142_element_=this.childIndex_=this.children_=null;on.superClass_.disposeInternal.call(this)};
_.d.getModel=function(){return this.model_};
_.d.addChild=function(W,O){var b=this.children_?this.children_.length:0;if(W.inDocument_&&(O||!this.inDocument_))throw Error("fb");if(b<0||b>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);W.parent_==this?(_.PQ.set(this.childIndex_,W.getId(),W),_.c2(this.children_,W)):_.PQ.add(this.childIndex_,W.getId(),W);fqv(W,this);_.li2(this.children_,b,0,W);W.inDocument_&&this.inDocument_&&W.parent_==this?(O=this.getContentElement(),
(O.childNodes[b]||null)!=W.getElement()&&(W.getElement().parentElement==O&&O.removeChild(W.getElement()),b=O.childNodes[b]||null,O.insertBefore(W.getElement(),b))):O?(this.JSC$8142_element_||this.JSC$8144_createDom(),b=this.children_?this.children_[b+1]||null:null,GxH(W,this.getContentElement(),b?b.JSC$8142_element_:null)):this.inDocument_&&!W.inDocument_&&W.JSC$8142_element_&&W.JSC$8142_element_.parentNode&&W.JSC$8142_element_.parentNode.nodeType==1&&W.enterDocument()};
_.d.getContentElement=function(){return this.JSC$8142_element_};
var HS7=function(W,O){W.children_&&W.children_.forEach(O,void 0)};
on.prototype.removeChild=function(W,O){if(W){var b=typeof W==="string"?W:W.getId();W=this.childIndex_&&b?_.PQ.get(this.childIndex_,b)||null:null;b&&W&&(_.PQ.remove(this.childIndex_,b),_.c2(this.children_,W),O&&(W.exitDocument(),W.JSC$8142_element_&&_.Xu(W.JSC$8142_element_)),fqv(W,null))}if(!W)throw Error("ib");return W};_.Wk(bvh,ivi);_.Wk(jWX,ivi);var tzH;var $rL=function(W,O){O?W.setAttribute("role",O):W.removeAttribute("role")},kB=function(W,O,b){Array.isArray(b)&&(b=b.join(" "));
var T="aria-"+O;b===""||b==void 0?(tzH||(b={},tzH=(b.atomic=!1,b.autocomplete="none",b.dropeffect="none",b.haspopup=!1,b.live="off",b.multiline=!1,b.multiselectable=!1,b.orientation="vertical",b.readonly=!1,b.relevant="additions text",b.required=!1,b.sort="none",b.busy=!1,b.disabled=!1,b.hidden=!1,b.invalid="false",b)),b=tzH,O in b?W.setAttribute(T,b[O]):W.removeAttribute(T)):W.setAttribute(T,b)};var Vzn;_.s$=function(W,O,b){_.ER.call(this);this.target=W;this.handle=O||W;this.limits=b||new Qk(NaN,NaN,NaN,NaN);this.JSC$8147_document_=_.g4(W);this.JSC$8147_eventHandler_=new _.be(this);_.a8(this,this.JSC$8147_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;_.Rx(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Vzn};
_.Wk(_.s$,_.ER);Vzn=_.i1.document&&_.i1.document.documentElement&&!!_.i1.document.documentElement.setCapture&&!!_.i1.document.releaseCapture;_.Nu7=function(W,O){W.hysteresisDistanceSquared_=Math.pow(O,2)};
_.d=_.s$.prototype;_.d.setEnabled=function(W){this.enabled_=W};
_.d.disposeInternal=function(){_.s$.superClass_.disposeInternal.call(this);_.YH(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8147_document_.releaseCapture();this.handle=this.target=null};
_.d.startDrag=function(W){var O=W.type=="mousedown";if(!this.enabled_||this.dragging_||O&&(W.event_.button!=0||_.eyh&&W.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new By("start",this,W.clientX,W.clientY,W)))this.dragging_=!0,O&&W.preventDefault();else return;else O&&W.preventDefault();O=this.JSC$8147_document_;var b=O.documentElement,T=!this.useSetCapture_;this.JSC$8147_eventHandler_.listen(O,["touchmove","mousemove"],this.handleMove_,
{capture:T,passive:!1});this.JSC$8147_eventHandler_.listen(O,["touchend","mouseup"],this.endDrag,T);this.useSetCapture_?(b.setCapture(!1),this.JSC$8147_eventHandler_.listen(b,"losecapture",this.endDrag)):this.JSC$8147_eventHandler_.listen(vQ(O),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8147_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,T);this.clientX=this.startX=W.clientX;this.clientY=this.startY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=ZI(IG(this.JSC$8147_document_))}};
_.d.endDrag=function(W,O){this.JSC$8147_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8147_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new By("end",this,W.clientX,W.clientY,W,Mz9(this,this.deltaX),udN(this,this.deltaY),O||W.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.d.handleMove_=function(W){if(this.enabled_){var O=W.clientX-this.clientX,b=W.clientY-this.clientY;this.clientX=W.clientX;this.clientY=W.clientY;this.screenX=W.screenX;this.screenY=W.screenY;if(!this.dragging_){var T=this.startX-this.clientX,L=this.startY-this.clientY;if(T*T+L*L>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new By("start",this,W.clientX,W.clientY,W)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(W);return}}b=Jtq(this,O,b);O=b.x;b=b.y;this.dragging_&&this.dispatchEvent(new By("beforedrag",
this,W.clientX,W.clientY,W,O,b))&&(ctN(this,W,O,b),W.preventDefault())}};
var Jtq=function(W,O,b){var T=ZI(IG(W.JSC$8147_document_));O+=T.x-W.pageScroll.x;b+=T.y-W.pageScroll.y;W.pageScroll=T;W.deltaX+=O;W.deltaY+=b;return new _.Kw(Mz9(W,W.deltaX),udN(W,W.deltaY))};
_.s$.prototype.onScroll_=function(W){var O=Jtq(this,0,0);W.clientX=this.clientX;W.clientY=this.clientY;ctN(this,W,O.x,O.y)};
var ctN=function(W,O,b,T){W.target.style.left=b+"px";W.target.style.top=T+"px";W.dispatchEvent(new By("drag",W,O.clientX,O.clientY,O,b,T))},Mz9=function(W,O){var b=W.limits;
W=isNaN(b.left)?null:b.left;b=isNaN(b.width)?0:b.width;return Math.min(W!=null?W+b:Infinity,Math.max(W!=null?W:-Infinity,O))},udN=function(W,O){var b=W.limits;
W=isNaN(b.top)?null:b.top;b=isNaN(b.height)?0:b.height;return Math.min(W!=null?W+b:Infinity,Math.max(W!=null?W:-Infinity,O))};
_.s$.prototype.isDragging=function(){return this.dragging_};
var By=function(W,O,b,T,L,h,Z){_.ZB.call(this,W);this.clientX=b;this.clientY=T;this.browserEvent=L;this.left=h!==void 0?h:O.deltaX;this.top=Z!==void 0?Z:O.deltaY};
_.Wk(By,_.ZB);var rN=function(W){this.JSC$8154_map_=new Map;var O=arguments.length;if(O>1){if(O%2)throw Error("oa");for(var b=0;b<O;b+=2)this.set(arguments[b],arguments[b+1])}else W&&this.addAll(W)};
_.d=rN.prototype;_.d.getCount=function(){return this.JSC$8154_map_.size};
_.d.getValues=function(){return Array.from(this.JSC$8154_map_.values())};
_.d.getKeys=function(){return Array.from(this.JSC$8154_map_.keys())};
_.d.containsKey=function(W){return this.JSC$8154_map_.has(W)};
_.d.containsValue=function(W){return this.getValues().some(function(O){return O==W})};
_.d.equals=function(W,O){var b=this;O=O===void 0?function(T,L){return T===L}:O;
return this===W?!0:this.JSC$8154_map_.size!=W.getCount()?!1:this.getKeys().every(function(T){return O(b.JSC$8154_map_.get(T),W.get(T))})};
_.d.isEmpty=function(){return this.JSC$8154_map_.size==0};
_.d.clear=function(){this.JSC$8154_map_.clear()};
_.d.remove=function(W){return this.JSC$8154_map_.delete(W)};
_.d.get=function(W,O){return this.JSC$8154_map_.has(W)?this.JSC$8154_map_.get(W):O};
_.d.set=function(W,O){this.JSC$8154_map_.set(W,O);return this};
_.d.addAll=function(W){if(W instanceof rN){W=_.S(W.JSC$8154_map_);for(var O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;this.JSC$8154_map_.set(O,b)}}else if(W)for(W=_.S(Object.entries(W)),O=W.next();!O.done;O=W.next())b=_.S(O.value),O=b.next().value,b=b.next().value,this.JSC$8154_map_.set(O,b)};
_.d.forEach=function(W,O){var b=this;O=O===void 0?this:O;this.JSC$8154_map_.forEach(function(T,L){return W.call(O,T,L,b)})};
_.d.clone=function(){return new rN(this)};(function(){for(var W=["ms","moz","webkit","o"],O,b=0;O=W[b]&&!_.i1.requestAnimationFrame;++b)_.i1.requestAnimationFrame=_.i1[O+"RequestAnimationFrame"],_.i1.cancelAnimationFrame=_.i1[O+"CancelAnimationFrame"]||_.i1[O+"CancelRequestAnimationFrame"];if(!_.i1.requestAnimationFrame){var T=0;_.i1.requestAnimationFrame=function(L){var h=(new Date).getTime(),Z=Math.max(0,16-(h-T));T=h+Z;return _.i1.setTimeout(function(){L(h+Z)},Z)};
_.i1.cancelAnimationFrame||(_.i1.cancelAnimationFrame=function(L){clearTimeout(L)})}})();
var FCz=[[],[]],ytU=0,W3N=!1,Ovq=0,bvq=function(W,O){var b=Ovq++,T={measureTask:{id:b,fn:W.measure,context:O},mutateTask:{id:b,fn:W.mutate,context:O},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(T.args||(T.args=[]),T.args.length=0,T.args.push.apply(T.args,arguments),T.args.push(T.state)):T.args&&T.args.length!=0?(T.args[0]=T.state,T.args.length=1):T.args=[T.state];T.isScheduled||(T.isScheduled=!0,FCz[ytU].push(T));W3N||(W3N=!0,window.requestAnimationFrame(ivS))}},ivS=
function(){W3N=!1;
var W=FCz[ytU],O=W.length;ytU=(ytU+1)%2;for(var b,T=0;T<O;++T){b=W[T];var L=b.measureTask;b.isScheduled=!1;L.fn&&L.fn.apply(L.context,b.args)}for(T=0;T<O;++T)b=W[T],L=b.mutateTask,b.isScheduled=!1,L.fn&&L.fn.apply(L.context,b.args),b.state={};W.length=0};var jWn=_.ts(["about:blank"]),T05=_.ts(["javascript:undefined"]),L3f=_.yN(jWn);_.Zd(L3f);var dC7=_.yN(T05);_.Zd(dC7);var D8=function(W){_.ER.call(this);this.JSC$8160_element_=W;this.listenKeyIn_=_.Rx(this.JSC$8160_element_,"focus",this,!0);this.listenKeyOut_=_.Rx(this.JSC$8160_element_,"blur",this,!0)};
_.Wk(D8,_.ER);D8.prototype.handleEvent=function(W){var O=new _.IK(W.event_);O.type=W.type=="focusin"||W.type=="focus"?"focusin":"focusout";this.dispatchEvent(O)};
D8.prototype.disposeInternal=function(){D8.superClass_.disposeInternal.call(this);eD(this.listenKeyIn_);eD(this.listenKeyOut_);delete this.JSC$8160_element_};var hhw=function(W,O){this.JSC$8163_element_=W;this.JSC$8163_dom_=O};var xB=function(W,O){on.call(this,O);this.useIframeMask_=!!W;this.lastFocus_=null;this.resizeBackgroundTask_=bvq({mutate:this.resizeBackground_},this);bvq({mutate:this.updateModalAndBackground_},this)};
_.Wk(xB,on);_.d=xB.prototype;_.d.focusHandler_=null;_.d.visible_=!1;_.d.bgEl_=null;_.d.bgIframeEl_=null;_.d.tabCatcherElement_=null;_.d.backwardTabWrapInProgress_=!1;_.d.getCssClass=function(){return"goog-modalpopup"};
_.d.getBackgroundElement=function(){return this.bgEl_};
_.d.JSC$8144_createDom=function(){xB.superClass_.JSC$8144_createDom.call(this);var W=this.getElement(),O=Ee(this.getCssClass()).split(" ");zy(W,O);W.tabIndex=0;_.N9(W,!1);SC5(this);ZvU(this)};
var SC5=function(W){if(W.useIframeMask_&&!W.bgIframeEl_){var O=W.JSC$8142_dom_.JSC$7332_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.k4(O,L3f);W.bgIframeEl_=O;W.bgIframeEl_.className=W.getCssClass()+"-bg";_.N9(W.bgIframeEl_,!1);IS$(W.bgIframeEl_,0)}W.bgEl_||(W.bgEl_=W.JSC$8142_dom_.JSC$7332_createDom("DIV",W.getCssClass()+"-bg"),_.N9(W.bgEl_,!1))},ZvU=function(W){W.tabCatcherElement_||(W.tabCatcherElement_=W.JSC$8142_dom_.createElement("SPAN"),_.N9(W.tabCatcherElement_,
!1),W.tabCatcherElement_.tabIndex=0,W.tabCatcherElement_.style.position="absolute")};
_.d=xB.prototype;_.d.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.d.canDecorate=function(W){return!!W&&W.tagName=="DIV"};
_.d.decorateInternal=function(W){xB.superClass_.decorateInternal.call(this,W);W=Ee(this.getCssClass()).split(" ");zy(this.getElement(),W);SC5(this);ZvU(this);this.getElement().tabIndex=0;_.N9(this.getElement(),!1)};
_.d.enterDocument=function(){this.bgIframeEl_&&_.K4(this.bgIframeEl_,this.getElement());_.K4(this.bgEl_,this.getElement());xB.superClass_.enterDocument.call(this);_.v1(this.tabCatcherElement_,this.getElement());this.focusHandler_=new D8(this.JSC$8142_dom_.JSC$7330_document_);Qs(this).listen(this.focusHandler_,"focusin",this.onFocus);Ik$(this,!1)};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.JU(this.focusHandler_);xB.superClass_.exitDocument.call(this);_.Xu(this.bgIframeEl_);_.Xu(this.bgEl_);_.Xu(this.tabCatcherElement_)};
_.d.setVisible=function(W){if(W!=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_&&Ik$(this,W),W){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8142_dom_.JSC$7330_document_.activeElement}catch(L){}this.updateModalAndBackground_();Qs(this).listen(this.JSC$8142_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8142_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);ak1(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)lj(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){Qs(this).unlisten(this.JSC$8142_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8142_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)lj(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var O=this.JSC$8142_dom_,b=O.JSC$7330_document_.body,T=O.JSC$7330_document_.activeElement||b;if(!this.lastFocus_||this.lastFocus_==b){this.lastFocus_=null;break a}(T==b||O.contains(this.getElement(),T))&&this.lastFocus_.focus()}catch(L){}this.lastFocus_=
null}}};
var Ik$=function(W,O){W.modalAriaVisibilityHelper_||(W.modalAriaVisibilityHelper_=new hhw(W.JSC$8142_element_,W.JSC$8142_dom_));W=W.modalAriaVisibilityHelper_;if(O){W.hiddenElements_||(W.hiddenElements_=[]);O=W.JSC$8163_dom_.getChildren(W.JSC$8163_dom_.JSC$7330_document_.body);for(var b=0;b<O.length;b++){var T=O[b],L;if(L=T!=W.JSC$8163_element_)L=T.getAttribute("aria-hidden"),L=!(L==null||L==void 0?0:String(L));L&&(kB(T,"hidden",!0),W.hiddenElements_.push(T))}}else if(W.hiddenElements_){for(O=0;O<
W.hiddenElements_.length;O++)W.hiddenElements_[O].removeAttribute("aria-hidden");W.hiddenElements_=null}};
xB.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var ak1=function(W,O){W.bgIframeEl_&&_.N9(W.bgIframeEl_,O);W.bgEl_&&_.N9(W.bgEl_,O);_.N9(W.getElement(),O);_.N9(W.tabCatcherElement_,O)};
_.d=xB.prototype;_.d.onShow=function(){this.dispatchEvent("show")};
_.d.onHide=function(){ak1(this,!1);this.dispatchEvent("hide")};
_.d.isVisible=function(){return this.visible_};
_.d.focus=function(){this.focusElement_()};
_.d.resizeBackground_=function(){this.bgIframeEl_&&_.N9(this.bgIframeEl_,!1);this.bgEl_&&_.N9(this.bgEl_,!1);var W=this.JSC$8142_dom_.JSC$7330_document_;var O=_.Sp(vQ(this.JSC$8142_dom_.JSC$7330_document_)||window);var b=Math.max(O.width,Math.max(W.body.scrollWidth,W.documentElement.scrollWidth));W=Math.max(O.height,Math.max(W.body.scrollHeight,W.documentElement.scrollHeight));this.bgIframeEl_&&(_.N9(this.bgIframeEl_,!0),_.dz9(this.bgIframeEl_,b,W));this.bgEl_&&(_.N9(this.bgEl_,!0),_.dz9(this.bgEl_,
b,W))};
_.d.reposition=function(){var W;if(_.Lnz(this.getElement())=="fixed")var O=W=0;else O=ZI(this.JSC$8142_dom_),W=O.x,O=O.y;var b=SvN(this.getElement());var T=_.Sp(vQ(this.JSC$8142_dom_.JSC$7330_document_)||window);W=Math.max(W+T.width/2-b.width/2,0);O=Math.max(O+T.height/2-b.height/2,0);B1(this.getElement(),W,O);B1(this.tabCatcherElement_,W,O)};
_.d.onFocus=function(W){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():W.target==this.tabCatcherElement_&&lE(this.focusElement_,0,this)};
_.d.focusElement_=function(){try{this.getElement().focus()}catch(W){}};
_.d.disposeInternal=function(){_.JU(this.popupShowTransition_);this.popupShowTransition_=null;_.JU(this.popupHideTransition_);this.popupHideTransition_=null;_.JU(this.bgShowTransition_);this.bgShowTransition_=null;_.JU(this.bgHideTransition_);this.bgHideTransition_=null;xB.superClass_.disposeInternal.call(this)};var zP=function(W,O,b){xB.call(this,O,b);this.JSC$8173_class_=W||"modal-dialog";this.buttons_=(new zh).addButton(mCz,!0).addButton(YCv,!1,!0)};
_.Wk(zP,xB);_.d=zP.prototype;_.d.escapeToCancel_=!0;_.d.hasTitleCloseButton_=!0;_.d.modal_=!0;_.d.draggable_=!0;_.d.backgroundElementOpacity_=.5;_.d.title_="";_.d.JSC$8175_dragger_=null;_.d.JSC$8175_disposeOnHide_=!1;_.d.titleEl_=null;_.d.titleTextEl_=null;_.d.titleTextId_=null;_.d.titleCloseEl_=null;_.d.contentEl_=null;_.d.buttonEl_=null;_.d.getCssClass=function(){return this.JSC$8173_class_};
_.d.setTitle=function(W){this.title_=W;this.titleTextEl_&&_.oB(this.titleTextEl_,W)};
_.d.getTitle=function(){return this.title_};
_.d.getContent=function(){return""};
_.d.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var EXU=function(W){W.getElement()||W.render();return W.getElement()};
zP.prototype.getBackgroundElement=function(){this.getElement()||this.render();return zP.superClass_.getBackgroundElement.call(this)};
var wUL=function(W,O){W.backgroundElementOpacity_=O;W.getElement()&&(O=W.getBackgroundElement())&&IS$(O,W.backgroundElementOpacity_)};
zP.prototype.setDraggable=function(W){this.draggable_=W;A_1(this,W&&this.inDocument_)};
zP.prototype.JSC$8175_handleDrag=function(){};
var A_1=function(W,O){var b=Ee(W.JSC$8173_class_+"-title-draggable").split(" ");W.getElement()&&(O?zy(W.titleEl_,b):MPv(W.titleEl_,b));O&&!W.JSC$8175_dragger_?(O=new _.s$(W.getElement(),W.titleEl_),W.JSC$8175_dragger_=O,zy(W.titleEl_,b),_.Rx(W.JSC$8175_dragger_,"start",W.setDraggerLimits_,!1,W),_.Rx(W.JSC$8175_dragger_,"drag",W.JSC$8175_handleDrag,!1,W)):!O&&W.JSC$8175_dragger_&&(W.JSC$8175_dragger_.dispose(),W.JSC$8175_dragger_=null)};
_.d=zP.prototype;
_.d.JSC$8144_createDom=function(){zP.superClass_.JSC$8144_createDom.call(this);var W=this.getElement(),O=this.JSC$8142_dom_;this.titleTextId_=this.getId();var b=this.getId()+".contentEl";this.titleEl_=O.JSC$7332_createDom("DIV",this.JSC$8173_class_+"-title",this.titleTextEl_=O.JSC$7332_createDom("SPAN",{className:this.JSC$8173_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=O.JSC$7332_createDom("SPAN",this.JSC$8173_class_+"-title-close"));fif(W,this.titleEl_,this.contentEl_=
O.JSC$7332_createDom("DIV",{className:this.JSC$8173_class_+"-content",id:b}),this.buttonEl_=O.JSC$7332_createDom("DIV",this.JSC$8173_class_+"-buttons"));$rL(this.titleTextEl_,"heading");$rL(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;kB(this.titleCloseEl_,"label","Close");$rL(W,"dialog");kB(W,"labelledby",this.titleTextId_||"");_.N9(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(W=this.buttons_,W.JSC$8176_element_=this.buttonEl_,W.render());_.N9(this.buttonEl_,!!this.buttons_);
wUL(this,this.backgroundElementOpacity_)};
_.d.decorateInternal=function(W){zP.superClass_.decorateInternal.call(this,W);W=this.getElement();var O=this.JSC$8173_class_+"-content";this.contentEl_=Ui(document,null,O,W)[0];this.contentEl_||(this.contentEl_=this.JSC$8142_dom_.JSC$7332_createDom("DIV",O),W.appendChild(this.contentEl_));O=this.JSC$8173_class_+"-title";var b=this.JSC$8173_class_+"-title-text",T=this.JSC$8173_class_+"-title-close";(this.titleEl_=Ui(document,null,O,W)[0])?(this.titleTextEl_=Ui(document,null,b,this.titleEl_)[0],this.titleCloseEl_=
Ui(document,null,T,this.titleEl_)[0]):(this.titleEl_=this.JSC$8142_dom_.JSC$7332_createDom("DIV",O),W.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=OHv(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.em("SPAN",{className:b,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;kB(W,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8142_dom_.JSC$7332_createDom("SPAN",
T),this.titleEl_.appendChild(this.titleCloseEl_));_.N9(this.titleCloseEl_,this.hasTitleCloseButton_);O=this.JSC$8173_class_+"-buttons";(this.buttonEl_=Ui(document,null,O,W)[0])?(this.buttons_=new zh(this.JSC$8142_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8142_dom_.JSC$7332_createDom("DIV",O),W.appendChild(this.buttonEl_),this.buttons_&&(W=this.buttons_,W.JSC$8176_element_=this.buttonEl_,W.render()),_.N9(this.buttonEl_,!!this.buttons_));wUL(this,this.backgroundElementOpacity_)};
_.d.enterDocument=function(){zP.superClass_.enterDocument.call(this);Qs(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);Qs(this).listen(this.buttonEl_,"click",this.onButtonClick_);A_1(this,this.draggable_);Qs(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var W=this.getElement();$rL(W,"dialog");this.titleTextEl_.id!==""&&kB(W,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){W=this.JSC$8142_dom_;
var O=this.getBackgroundElement();W.removeNode(this.bgIframeEl_);W.removeNode(O)}this.isVisible()&&Ik$(this,!1)}};
_.d.exitDocument=function(){this.isVisible()&&this.setVisible(!1);A_1(this,!1);zP.superClass_.exitDocument.call(this)};
_.d.setVisible=function(W){W!=this.isVisible()&&(this.inDocument_||this.render(),zP.superClass_.setVisible.call(this,W))};
_.d.onShow=function(){zP.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.d.onHide=function(){zP.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8175_disposeOnHide_&&this.dispose()};
_.d.setDraggerLimits_=function(){var W=this.JSC$8142_dom_.JSC$7330_document_,O=_.Sp(vQ(W)||window),b=Math.max(W.body.scrollWidth,O.width);W=Math.max(W.body.scrollHeight,O.height);var T=SvN(this.getElement());_.Lnz(this.getElement())=="fixed"?this.JSC$8175_dragger_.limits=new Qk(0,0,Math.max(0,O.width-T.width),Math.max(0,O.height-T.height)):this.JSC$8175_dragger_.limits=new Qk(0,0,b-T.width,W-T.height)};
_.d.onTitleCloseClick_=function(){XUn(this)};
var XUn=function(W){if(W.hasTitleCloseButton_){var O=W.buttons_,b=O&&O.cancelButton_;b?(O=O.get(b),W.dispatchEvent(new CW(b,O))&&W.setVisible(!1)):W.setVisible(!1)}},UCH=function(W){W.hasTitleCloseButton_=!1;
W.titleCloseEl_&&_.N9(W.titleCloseEl_,W.hasTitleCloseButton_)};
zP.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;zP.superClass_.disposeInternal.call(this)};
zP.prototype.onButtonClick_=function(W){a:{for(W=W.target;W!=null&&W!=this.buttonEl_;){if(W.tagName=="BUTTON")break a;W=W.parentNode}W=null}if(W&&!W.disabled){W=W.name;var O=this.buttons_.get(W);this.dispatchEvent(new CW(W,O))&&this.setVisible(!1)}};
zP.prototype.onKey_=function(W){var O=!1,b=!1,T=this.buttons_,L=W.target;if(W.type=="keydown")if(this.escapeToCancel_&&W.keyCode==27){var h=T&&T.cancelButton_;L=L.tagName=="SELECT"&&!L.disabled;h&&!L?(b=!0,O=T.get(h),O=this.dispatchEvent(new CW(h,O))):L||(O=!0)}else{if(W.keyCode==9&&W.shiftKey&&L==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(A){}lE(this.resetBackwardTabWrap_,0,this)}}else if(W.keyCode==13){if(L.tagName=="BUTTON"&&!L.disabled)h=L.name;
else if(L==this.titleCloseEl_)XUn(this);else if(T){var Z=T.defaultButton_,a;if(a=Z)a:{a=UV("BUTTON",T.JSC$8176_element_);for(var m,w=0;m=a[w];w++)if(m.name==Z||m.id==Z){a=m;break a}a=null}L=(L.tagName=="TEXTAREA"||L.tagName=="SELECT"||L.tagName=="A")&&!L.disabled;!a||a.disabled||L||(h=Z)}h&&T&&(b=!0,O=this.dispatchEvent(new CW(h,String(T.get(h)))))}else L!=this.titleCloseEl_||W.keyCode!=32&&W.key!=" "||XUn(this);if(O||b)W.stopPropagation(),W.preventDefault();O&&this.setVisible(!1)};
var CW=function(W,O){this.type="dialogselect";this.key=W;this.caption=O};
_.Wk(CW,_.ZB);var zh=function(W){rN.call(this);W||IG();this.cancelButton_=this.JSC$8176_element_=this.defaultButton_=null};
_.Wk(zh,rN);_.d=zh.prototype;_.d.clear=function(){rN.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.d.set=function(W,O,b,T){rN.prototype.set.call(this,W,O);b&&(this.defaultButton_=W);T&&(this.cancelButton_=W);return this};
_.d.addButton=function(W,O,b){return this.set(W.key,W.caption,O,b)};
_.d.render=function(){if(this.JSC$8176_element_){_.Gb(this.JSC$8176_element_,wU8);var W=IG(this.JSC$8176_element_);this.forEach(function(O,b){O=W.JSC$7332_createDom("BUTTON",{name:b},O);b==this.defaultButton_&&(O.className="goog-buttonset-default");this.JSC$8176_element_.appendChild(O)},this)}};
_.d.decorate=function(W){if(W&&W.nodeType==1){this.JSC$8176_element_=W;W=UV("BUTTON",this.JSC$8176_element_);for(var O,b,T,L=0;O=W[L];L++)if(b=O.name||O.id,T=OHv(O)||O.value,b){var h=L==0;this.set(b,T,h,O.name=="cancel");h&&_.J4(O,"goog-buttonset-default")}}};
_.d.getElement=function(){return this.JSC$8176_element_};
var mCz={key:"ok",caption:"OK"},YCv={key:"cancel",caption:"Cancel"},lk$={key:"yes",caption:"Yes"},ehz={key:"no",caption:"No"},PWS={key:"save",caption:"Save"},pUq={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new zh).addButton(mCz,!0,!0),(new zh).addButton(mCz,!0).addButton(YCv,!1,!0),(new zh).addButton(lk$,!0).addButton(ehz,!1,!0),(new zh).addButton(lk$).addButton(ehz,!0).addButton(YCv,!1,!0),(new zh).addButton(pUq).addButton(PWS).addButton(YCv,!0,!0));_.Wk(T0Q,zP);_.Wk(L31,C5);var RhL=_.ts(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),K35=_.ts(["//apis.google.com/js/rpc.js"]),EXO=_.yN(RhL),YCe=_.yN(K35),hhX=null;var q9=function(W,O){_.ER.call(this);this.JSC$8185_element_=W;W=_.cO(this.JSC$8185_element_)?this.JSC$8185_element_:this.JSC$8185_element_?this.JSC$8185_element_.body:null;this.isRtl_=!!W&&_.aSL(W);this.listenKey_=_.Rx(this.JSC$8185_element_,_.TR?"DOMMouseScroll":"mousewheel",this,O)};
_.Wk(q9,_.ER);q9.prototype.handleEvent=function(W){var O=0,b=0,T=W.event_;T.type=="mousewheel"?(W=vXq(-T.wheelDelta),T.wheelDeltaX!==void 0?(O=vXq(-T.wheelDeltaX),b=vXq(-T.wheelDeltaY)):b=W):(W=T.detail,W>100?W=3:W<-100&&(W=-3),T.axis!==void 0&&T.axis===T.HORIZONTAL_AXIS?O=W:b=W);typeof this.maxDeltaX_==="number"&&(O=_.kq(O,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(b=_.kq(b,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(O=-O);O=new gX5(W,T,O,b);this.dispatchEvent(O)};
var vXq=function(W){return _.Lf&&(_.eyh||pfq)&&W%40!=0?W:W/40};
q9.prototype.disposeInternal=function(){q9.superClass_.disposeInternal.call(this);eD(this.listenKey_);this.listenKey_=null};
var gX5=function(W,O,b,T){_.IK.call(this,O);this.type="mousewheel";this.detail=W;this.deltaX=b;this.deltaY=T};
_.Wk(gX5,_.IK);_.j6=function(W){var O="instance_";if(W.instance_&&W.hasOwnProperty(O))return W.instance_;O=new W;return W.instance_=O};var mCP;var oXU=_.ts(["https://about:blank"]),QWL=_.ts(['javascript:""']),kTw=_.ts(["about:blank"]);_.Wk(uJ,T0Q);_.d=uJ.prototype;_.d.JSC$8193_url_="";_.d.JSC$8193_iframe_=null;_.d.iframeLoaded_=!1;_.d.loadedFired_=!1;_.d.callback_=function(){};
_.d.enterDocument=function(){uJ.superClass_.enterDocument.call(this);IkT(this.getBackgroundElement(),Qs(this))};
_.d.render=function(W){var O=this;uJ.superClass_.render.call(this,W);this.useGapi_?kxU(this.iframeManager_,window).then(function(){return sWw(O)}).then(null,function(){O.callback_({action:"error"})}):B0q(this)};
var sWw=function(W){var O=W.JSC$8142_dom_.JSC$7332_createDom("div",["picker-dialog-content","picker-frame"]);_.N9(O,!1);W.getContentElement().appendChild(O);return sv$(W.iframeManager_,O,function(b){var T=Tg9(b["iframe-command"]);switch(T.getCommand()){case 1:b=W.callback_;T=_.bP(T,uQ,2);var L="";switch(T.getStatus()){case 2:L="cancel";break;case 1:L="picked";break;case 3:L="error"}var h=_.yr(T,eb,2,_.W5(M1X));T=h.length===0?{action:L}:aq$(h,L,_.bP(T,iUH,7));b.call(W,T);W.setVisible(!1);break;case 4:UCH(W);
W.callback_({action:"loaded"});break;case 7:case 8:b=W.callback_;a:{L=T.getCommand();h=_.bP(T,uQ,2);switch(L){case 7:L="uploadScheduled";break;case 8:L="uploadStateChange";break;default:T={};break a}T=_.yr(h,eb,2,_.W5(M1X));if(T.length===0)T={action:L};else{var Z=_.bP(h,iUH,7);h=Z&&_.vk(Z,1);Z=OSv(Z);T=jvL(T,L,h,Z)}}b.call(W,T)}},W.JSC$8193_url_,W.targetId_,W.rpcToken_).then(function(b){W.JSC$8193_iframe_=b.getIframeEl();
r_q(W);_.N9(W.JSC$8193_iframe_.parentElement,!0);_.J4(W.getElement(),"picker-dialog");DCU(W);return b})},B0q=function(W){W.JSC$8193_iframe_=W.JSC$8142_dom_.JSC$7332_createDom("IFRAME",{id:W.targetId_,
name:W.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.k4(W.JSC$8193_iframe_,xCf(W));_.J4(W.getElement(),"picker-dialog");W.getContentElement().appendChild(W.JSC$8193_iframe_);Qs(W).listen(W.JSC$8193_iframe_,"load",function(){return void r_q(W)});
W.JSC$8193_iframe_.src=W.JSC$8193_url_;DCU(W)},CW9=function(W){zh9(W,(0,_.K5)(function(O){O.setAuthToken(this.targetId_,this.rpcToken_)},W))},DCU=function(W){var O=_.$6(_.tV(W.JSC$8193_url_),"title");
O&&W.setTitle(O)},xCf=function(W){return _.IiX("Internet Explorer")>=7&&_.LE(W.JSC$8193_url_,"https")?_.yN(oXU):_.jb?_.yN(QWL):_.yN(kTw)},r_q=function(W){CW9(W);
W.iframeLoaded_=!0;W.JSC$8193_iframe_.tabIndex=0;W.isVisible()&&W.focus()};
uJ.prototype.handleKeydown_=function(W){W.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),W.stopPropagation(),W.preventDefault())};
var zh9=function(W,O){var b=W.JSC$8191_gadgetsDomHelper_;SCQ(function(){O(b.getWindow().gadgets.rpc)},b)};
uJ.prototype.setUrl=function(W){W=_.VC(new _.Np(W),"rpcService",this.targetId_);_.VC(W,"rpctoken",this.rpcToken_);_.cx(W,"rpctoken="+this.rpcToken_);_.VQ(W,"https");this.JSC$8193_url_=W.toString();this.JSC$8193_iframe_&&(this.JSC$8193_iframe_.src=this.JSC$8193_url_)};
var qC1=function(W,O){W.callback_=O;zh9(W,(0,_.K5)(function(b){b.register(this.targetId_,(0,_.K5)(this.handlePickerAction_,this))},W))};
uJ.prototype.handlePickerAction_=function(W){var O=W.action;O=="loaded"&&(this.loadedFired_=!0,nX7(this,new jWX(this.isVisible())),fkv(this),UCH(this),Qs(this).unlisten(this.JSC$8142_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8193_iframe_.tabIndex=0);O!="picked"&&O!="cancel"||this.setVisible(!1);this.callback_(W)};
var fkv=function(W){W.JSC$8193_appId_&&nX7(W,new bvh(W.JSC$8193_appId_,window.location.protocol+"//"+window.location.host))};
uJ.prototype.setRelayUrl=function(W){zh9(this,(0,_.K5)(function(O){O.setRelayUrl(this.targetId_,W)},this))};
var nX7=function(W,O){W.useGapi_&&z0z(O,W.iframeManager_).then(null,function(){W.callback_({action:"error"})});
zh9(W,(0,_.K5)(function(b){b.call(this.targetId_,"picker",null,O)},W))};
uJ.prototype.resizePicker_=function(){var W=vQ(this.JSC$8142_dom_.JSC$7330_document_)||window;if(_.$6(_.tV(this.JSC$8193_url_),"ignoreLimits")=="true")W=new _.hU(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.$6(_.tV(this.JSC$8193_url_),"shadeDialog")=="true"){var O=EXU(this);O=mzw(O);var b=_.Sp(W);W=b.width-80;b=b.height-40;O&&(W-=O.left?O.left:0,W-=O.right?O.right:0,b-=O.top?O.top:0,b-=O.bottom?O.bottom:0);W=new _.hU(W>0?W:0,b>0?b:0)}else(O=this.preferredDialogWidth_)?(O=Math.max(320,
Math.min(1051,O)),(b=this.preferredDialogHeight_)||(b=_.Sp(W).height*.85),b=Math.max(480,Math.min(650,b))):(O=_.Sp(W),b=O.width*.618,b=b<O.height?Math.round(Math.max(480,Math.min(650,b*.85))):Math.round(Math.max(480,Math.min(650,O.height*.85))),O=Math.round(b/.618)),W=_.Sp(W),O=Math.min(O,Math.max(W.width,320)),b=Math.min(b,Math.max(W.height,480)),W=new _.hU(O,b);_.dz9(this.getContentElement(),W);this.reposition()};
uJ.prototype.reposition=function(){if(_.$6(_.tV(this.JSC$8193_url_),"shadeDialog")=="true"){var W=SvN(this.getElement()),O=_.Sp(this.JSC$8142_dom_.getWindow());W=Math.floor(O.width/2-W.width/2);O=EXU(this);if(O=mzw(O)){var b=O.left?O.left:0;b+=O.right?O.right:0;W=Math.floor(W-b/2)}W=W>0?W:0;O=ZI(this.JSC$8142_dom_).y;B1(this.getElement(),W,O)}else uJ.superClass_.reposition.call(this)};
uJ.prototype.setVisible=function(W){if(W!=this.isVisible()&&this.autoSizeDialog_){var O=this.JSC$8142_dom_.getWindow();W?(this.resizePicker_(),Qs(this).listen(O,"resize",this.resizePicker_),this.iframeLoaded_||Qs(this).listen(O,"keydown",this.handleKeydown_)):(Qs(this).unlisten(O,"resize",this.resizePicker_),this.iframeLoaded_||Qs(this).unlisten(O,"keydown",this.handleKeydown_))}uJ.superClass_.setVisible.call(this,W);nX7(this,new jWX(W))};
uJ.prototype.focus=function(){uJ.superClass_.focus.call(this);if(this.JSC$8193_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8193_iframe_.focus()}catch(W){}};var QB=function(W,O){O=O===void 0?uJ:O;C5.call(this,W);this.pickerConstructor=O;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(W=window.location.origin)||(W=window.location.protocol+"//"+window.location.host);W&&this.urlParamMap_.set("origin",W);this.postProcessors_=[]};
_.R(QB,L31);QB.prototype.JSC$8198_disposeOnHide_=!1;
QB.prototype.build=function(){this.JSC$8099_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8099_appId_);this.getRelayUrl()||this.setRelayUrl(_.uE(_.cx(_.JY(_.tV(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var W=new this.pickerConstructor(GTn(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);W.JSC$8175_disposeOnHide_=this.JSC$8198_disposeOnHide_;
W.JSC$8193_appId_=this.JSC$8099_appId_;W.loadedFired_&&fkv(W);qC1(W,this.callback_);return W};
var HvS=function(W){W.urlParamMap_.set("multiselectEnabled","true");return W};
QB.prototype.getHeight=function(){return this.dialogHeight_};
QB.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
QB.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
QB.prototype.getWidth=function(){return this.dialogWidth_};
var tsL=function(W){W.JSC$8198_disposeOnHide_=void 0;return W};
QB.prototype.setRelayUrl=function(W){this.urlParamMap_.set("parent",W);return this};
var $C9=function(W,O){W.urlParamMap_.set("selectButtonLabel",O);return W};
QB.prototype.setSize=function(W,O){this.dialogWidth_=W;this.dialogHeight_=O;return this};
QB.prototype.setTitle=function(W){this.urlParamMap_.set("title",W);return this};
var GTn=function(W){W.postProcessors_.length&&W.urlParamMap_.set("pp",JSON.stringify(W.postProcessors_));W.urlParamMap_.set("nav",cV1(W.nav_));var O=new _.Np(W.getBaseUrl());W.urlParamMap_.forEach(function(b,T){_.VC(O,T,b)});
return O};var Ms7=function(W,O){W.name!==void 0?(this.name=W.name,this.code=Vs7[W.name]):(this.code=W=W.code,this.name=N0n(W));_.W2.call(this,pzO("%s %s",this.name,O))};
_.Wk(Ms7,_.W2);var N0n=function(W){var O=_.PQ.findKey(Vs7,function(b){return W==b});
if(O===void 0)throw Error("lb`"+W);return O},qV={},Vs7=(qV.AbortError=3,qV.EncodingError=5,qV.InvalidModificationError=9,qV.InvalidStateError=7,qV.NotFoundError=1,qV.NotReadableError=4,qV.NoModificationAllowedError=6,qV.PathExistsError=12,qV.QuotaExceededError=10,qV.SecurityError=2,qV.SyntaxError=8,qV.TypeMismatchError=11,qV);var ukU=function(W,O){_.ZB.call(this,W.type,O);this.event_=W};
_.Wk(ukU,_.ZB);var J_$=function(W,O,b){b===void 0&&(b=W.size);return W.slice?W.slice(O,b):null};var XUX=new WeakMap,A_8=function(W,O){W=[W];for(var b=O.length-1;b>=0;--b)W.push(typeof O[b],O[b]);return W.join("\v")};_.lkT(function(){if(!_.i1.Blob)return!1;var W=new Uint8Array(100);try{var O=new Blob([W])}catch(b){return!1}return O.size!=100?!1:!0});
var c_N=_.lkT(function(){if(!_.i1.Blob)return!1;var W=new Uint8Array(100);try{var O=new Blob([W])}catch(b){return!1}return J_$(O,0,1)===null?!1:!0});_.i1.U3bHHf!=null||(_.i1.U3bHHf=0);_.i1.U3bHHf++;var PWi={};var Oo=void 0;var Rh8=Symbol("tb");var zhX=jz("WizInjectionContext_Dispatcher");var sWX=jz("WizInjectionContext_RootElement");var r_h=jz("WizInjectionContext_AppContext"),B0h=jz("WizInjectionContext_ModelRootElement"),DCO=jz("WizInjectionContext_RendererData"),xC1=jz("WizInjectionContext_InjectingConstructor"),kTX=jz("WizInjectionContext_AsyncDeps"),CWX={};var Hvi=!1;var F3w=Symbol("xb"),Dmq=Symbol("yb"),qTX=Symbol("zb"),zqe=Symbol("Ab"),VJP=J9(function(W){return ht(W)&&F3w in W});var N0X={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:YEh,enableLazyTsx:EwX,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var du=Object.assign({},{attributes:{},handleError:function(W){throw W;}},N0X);var y_8=Symbol("Bb"),nW={},c_2=(nW[y_8]=!0,nW.debugName="[component]",nW.getComponentStack=function(){for(var W=[],O=this;O;)Wp1(O)&&W.push(O.debugName),O=O.parent;return W},nW.registerSignal=function(){},nW.registerEffect=function(){},nW);var Sz=null,Iv=!1,Lph=1,Yb=Symbol("Cb"),lt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var fW=Symbol("Db"),Gh=Symbol("Eb"),mC=Symbol("Fb"),YTQ=Object.assign({},lt,{value:fW,dirty:!0,error:null,equal:Ou8,kind:"computed",producerMustRecompute:function(W){return W.value===fW||W.value===Gh},
producerRecomputeValue:function(W){if(W.value===Gh)throw Error("da");var O=W.value;W.value=Gh;var b=Ipq(W),T=!1;try{var L=W.computation();Zq(null);T=O!==fW&&O!==mC&&L!==mC&&W.equal(O,L)}catch(h){L=mC,W.error=h}finally{ap1(W,b)}T?W.value=O:(W.value=L,W.version++)}});var X3X=function(){throw Error();};var lpT=null,w3P=Object.assign({},lt,{equal:Ou8,value:void 0,kind:"signal"});Object.assign({},lt,{value:fW,dirty:!0,error:null,equal:Ou8,kind:"linkedSignal",producerMustRecompute:function(W){return W.value===fW||W.value===Gh},
producerRecomputeValue:function(W){if(W.value===Gh)throw Error("da");var O=W.value;W.value=Gh;var b=Ipq(W);try{var T=W.source();var L=W.computation(T,O===fW||O===mC?void 0:{source:W.sourceValue,value:O});W.sourceValue=T}catch(h){L=mC,W.error=h}finally{ap1(W,b)}O!==fW&&L!==mC&&W.equal(O,L)?W.value=O:(W.value=L,W.version++)}});Object.assign({},lt,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(W){W.schedule!==null&&W.schedule(W.ref)},
hasRun:!1,cleanupFn:function(){}});var PqO=Symbol("Gb"),At=Symbol("Hb");var Xd=Array.isArray;var sei;var y_1={},rLe=kZh(Object.assign({},{consumerAllowSignalWrites:!0},y_1)),Xk=kZh(Object.assign({},{consumerAllowSignalWrites:!0},y_1));var Rv=0,Hy=function(){this.queue=new Set};
Hy.prototype.remove=function(W){this.queue.delete(W)};
Hy.prototype.clear=function(){this.queue.clear()};
var Wpf=function(){Hy.apply(this,arguments)};
_.R(Wpf,Hy);Wpf.prototype.schedule=function(W){this.queue.add(W)};
Wpf.prototype.flush=function(){if(this.queue.size)for(var W=_.S(this.queue),O=W.next();!O.done;O=W.next()){O=O.value;this.queue.delete(O);try{O.run()}catch(b){Ou1(b)}}};
var iuw=new Wpf,tE=function(){Hy.apply(this,arguments)};
_.R(tE,Hy);var buq=function(){tE.apply(this,arguments)};
_.R(buq,tE);buq.prototype.schedule=function(W){W.hasRun?this.queue.add(W):W.run()};
buq.prototype.flush=function(){if(this.queue.size){var W=this.queue;this.queue=new Set;NOT(W)}};
var xmT=new buq,jef=function(){tE.apply(this,arguments)};
_.R(jef,tE);jef.prototype.schedule=function(W){var O=this;return _.I(function(b){if(b.nextAddress==1)return W.hasRun?b.jumpTo(2):_.Y(b,Promise.resolve(),3);if(b.nextAddress!=2)return W.run(),b.return();O.queue.add(W);_.aD(b)})};
jef.prototype.flush=function(){var W=this;return _.I(function(O){if(O.nextAddress==1)return W.queue.size?_.Y(O,Promise.resolve(),2):O.return();NOT(W.queue);_.aD(O)})};
var nvT=new jef,TOv=function(){tE.apply(this,arguments)};
_.R(TOv,tE);TOv.prototype.schedule=function(W){this.queue.add(W)};
TOv.prototype.flush=function(){this.queue.size&&NOT(this.queue)};
var CqO=new TOv,tJX=[xmT,iuw,CqO,nvT],Lpq=[xmT,CqO,nvT],GZ1=[];lpT=function(){$mi();for(var W=_.S(GZ1),O=W.next();!O.done;O=W.next())O=O.value,O()};
var Ou1=b1;var vj=Symbol("Mb");var KS=null,cLP,FpO=null,yLi;var $B={},dmU=Object.assign({},lt,($B[F3w]=!0,$B.effectType=Dmq,$B.isResettableContext=!0,$B.producerNode=void 0,$B.hasRun=!1,$B.effectFn=null,$B.consumerIsAlwaysLive=!0,$B.consumerAllowSignalWrites=!0,$B.consumerMarkedDirty=fpX,$B.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Iv)throw Error("Nb");this.dirty=!1;if(!this.hasRun||dmO(this)){this.hasRun=!0;QW8(this);var W=bt(this),O=Ipq(this);ukO("effectRun",this.debugName);try{du.enableContextBasedComponentStacks?this.effectFn():QH(this.effectFn,
this.componentStack)}catch(b){throw du.enableContextBasedComponentStacks&&ov(b),b;}finally{J_T("effectRun",this.debugName),ap1(this,O),bt(W)}}}},$B.componentStack=void 0,$B.debugName="[effect]",$B[Symbol.dispose]=function(){iuX(this);
if(av(this))for(var W=0;W<this.producerNode.length;W++)buh(this.producerNode[W],this.producerIndexOfThis[W]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);W=_.S(Lpq);for(var O=W.next();!O.done;O=W.next())O.value.remove(this);oXO(this)},$B));var i91=Object.assign({},dmU,{effectType:qTX});var b9T=Symbol("Ob");var jai=Object.assign({},dmU,{effectType:Dmq});var nO8=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var js=Symbol("Pb");var w0=function(){},PU=function(W){this.props=W;
this.__unmounted=!1};
PU.prototype.didPatch=function(){};
PU.prototype.didMount=function(){};
PU.prototype.didUnmount=function(){};
PU.prototype.didUpdate=function(){};var d8X={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},LYT={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}]}},gsX={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},Z9X=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],SFi={"*":{async:1,dir:0,loading:2,target:3}};var hqU=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Vs={},afE=(Vs[1]=null,Vs[2]=function(W,O){return O instanceof gC?Q0(O):Xy.toString()},Vs[3]=function(W,O){return Y4(O)?_.EB(O):hqU.test(String(O))?String(O):Xy.toString()},Vs[4]=function(W,O){return O instanceof hv?_.Zd(O):Xy.toString()},Vs[5]=function(W,O){return String(O)},Vs[7]=null,Vs[8]=null,Vs[10]=null,Vs);var J48=Symbol("Sb");var Gu2=function(W){var O=ST1,b=W,T="",L="",h=1;W<0&&(W=-W);if(W===Infinity)W=(Infinity*Math.sign(b)).toString();else{for(var Z=0;Z<ZuH.length;Z++){var a=ZuH[Z];h=O[a];if(W>=h||h<=1&&W>.1*h){T=a;break}}T?(T+="B",L=" "):h=1;W=Math.round(b/h*10)/10+L+T}return W},ZuH="Y Z E P T G M K  m u n".split(" "),ST1={"":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};_.Ip7=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 Zk={};RegExp.prototype.hasOwnProperty("sticky");var H9q=function(W){W=String(W);for(var O=function(T,L,h){for(var Z=Math.min(L.length-h,T.length),a=0;a<Z;a++){var m=L[h+a];if(T[a]!==("A"<=m&&m<="Z"?m.toLowerCase():m))return!1}return!0},b=0;(b=W.indexOf("<",b))!=-1;){if(O("\x3c/script",W,b)||O("\x3c!--",W,b))return"zSoyz";
b+=1}return W};var qr={default:"__default"};var U82=Object.prototype.hasOwnProperty;EOO.prototype=Object.create(null);var yj=PPi();var yH=null;var rSO=function(W){this.created=[];this.deleted=[];this.node=W};var D8T=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var W=this,O=W;W;)O=W,W=W.parentNode;return O};var RAX=function(W,O){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=W;this.key=O;this.text=void 0};var tt=null,$b=null,Gx=null,ut=null,Qa1=[],oO1=vOT,cj=[],Fd=[],uFT=function(W){return x8h(function(O,b,T){Gx=$b=O;$b=null;b(T);gOq(null);$b=Gx;Gx=Gx.parentNode;return O},W)}(),MDh=function(W){return x8h(function(O,b,T){var L={nextSibling:O};
$b=L;b(T);Gx&&gOq(O.nextSibling);return L===$b?null:$b},W)}();var WU=[],CPe=0;var OC=new EOO;var ox=new EOO;var apf=PPi(),G7Q=apf[qr.default],tqE=apf.style,ffQ=["focusin","focusout"];var RW8=function(){},mJX=function(){},Q1e=function(){},vGQ=function(){};var bW=Symbol("Zb");var cST,JS8=usX;var aW=Symbol("$b");var hWX={};var oGe=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(" ")),
gG8=new Set(["a","font","script","style","title"]);var UC={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var lW=null,es=function(W,O){PU.call(this,W);var b=this;this.functionComponent=O;this.hooks=[];this.hookCounter=0;this.disposeEffects=Bj(function(T){b.effectContext=T;_.so(function(){A8Q(b,b.el)})},du.alwaysTrackContexts||!!Oo)};
_.R(es,PU);es.prototype.render=function(W){var O=lW;lW=this;this.hookCounter=0;var b=Zq(Xk),T=bt(this.effectContext);try{return ukO("render",this.componentName),this.functionComponent(W)}finally{J_T("render",this.componentName),bt(T),Zq(b),lW=O}};
_.Jq.Object.defineProperties(es.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return uqE(this.functionComponent)}}});var k52=Symbol("nc"),Pyq=function(W,O,b){this.kind=W;this.props=O;this.children=b};
_.R(Pyq,w0);Pyq.prototype.render=function(){return eWe(this.kind,this.props,this.children)};
Pyq.prototype.getChildren=function(){return this.children};var BeX=[];X3X=function(W){throw Error("sb`"+W.debugName);};
(function(){var W=yH;yH=function(O){W==null||W(O);r8E(O)}})();var mm5=void 0,YT5={},Ev7=new WeakMap,DJe={getComponent:function(W){if(W.hasAttribute("ng-version"))return YT5;if(!W.__wizComponent)return null;W=W.__wizComponent;Ev7.set(W.propsAndState,W);return W.propsAndState},
getDirectiveMetadata:function(W){if(W===YT5)return{framework:"wiz",name:"<Root>",props:{}};W=Ev7.get(W);if(!W)throw Error("oc");return{framework:"wiz",name:W.name,props:Object.fromEntries(Object.keys(W.props).map(function(O){return[O,O]}))}},
"\u0275setProfiler":function(W){var O;(O=mm5)==null||O();mm5=HuX(function(){W(2)})},
isSignal:function(W){return typeof W==="function"&&W[Yb]!==void 0}};_.U.debugName="RlDudd";var zWi={nonNullableCondIsNull:function(){return Error("sc")}};_.E.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.E.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.E.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var HBe=function(){this.map=new Map};
HBe.prototype.push=function(W,O){var b=this.map;b.has(W)&&(this.multi||(this.multi=new Map),this.multi.set(O,b.get(W)));b.set(W,O)};
HBe.prototype.pop=function(W){var O=this.map,b=O.get(W),T;b!==void 0&&((T=this.multi)==null?0:T.has(b))?(O.set(W,this.multi.get(b)),this.multi.delete(b)):O.delete(W);return b};_.pv.debugName="nsTGHd";_.RW.debugName="tbhMcf";_.Kv.debugName="zyMFzb";_.vU.debugName="vI1rtf";var MNP={LOG_NULL_EL_REF_VALUE:function(){return Error("tc")},
OUT_OF_ORDER_HOOK_CALL:function(W){return Error("uc`"+W)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(W,O){return Error("yc`"+W+"`"+O)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(W){return Error("zc`"+W)},
USE_ELEMENT_NOT_ASSIGNED:function(W){return Error("Ac`"+String(W))}};cST=pZe;var iPX=Symbol("Bc");EGq({beforeRender:function(W){var O=bt(W.effectContext);try{var b;((b=W.__syncEffects)==null?0:b.length)&&j22(W.__syncEffects)}finally{bt(O)}},
didPatch:function(W){var O=bt(W.effectContext);try{var b;((b=W.__syncEffects)==null?0:b.length)&&j22(W.__syncEffects)}finally{bt(O)}},
didUnmount:function(W){var O;((O=W.hooks)==null?0:O.length)&&W.hooks.forEach(bPX)}});var w3z,AL7,X3n;w3z=_.i1.window;_.Dk=(w3z==null?void 0:(AL7=w3z.yt)==null?void 0:AL7.config_)||(w3z==null?void 0:(X3n=w3z.ytcfg)==null?void 0:X3n.data_)||{};_.c3("yt.config_",_.Dk);var Umf={},h_1=[];_.pu=function(W){var O=_.PD.apply(1,arguments);var b=Error.call(this,W);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.args=[].concat(_.PG(O));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.pu,Error);var dVX=function(W,O,b){this.actionName=W;this.optionalAction=O===void 0?!1:O;this.args=b===void 0?null:b;this.returnValue=[]};_.J=function(W){this.name=W};_.G5=new _.J("signalAction");var UyX=/^[\w.]*$/,my8={q:!0,search_query:!0},aFX=String(IFe);var NV;NV=Symbol("Cc");_.MV=function(W){this.name=W};
_.MV.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var lFh=function(W){this.key=W},pB1=function(W){this.deferredKey=W},POE=function(){var W=this;
this.providers=new Map;this.JSC$8414_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(W.providers)}}};
POE.prototype.addProvider=function(W){this.providers.set(W.provide,W);var O=this.JSC$8414_deferred.get(W.provide);if(O)try{O.resolver(this.resolve(W.provide))}catch(b){O.rejector(b)}};
POE.prototype.resolve=function(W){return W instanceof pB1?lp$(this,W):W instanceof lFh?eqS(this,W.key,[],!0):eqS(this,W,[])};
var lp$=function(W,O){O=O.deferredKey;if(W.JSC$8414_deferred.has(O))return W.JSC$8414_deferred.get(O).promise;var b={};b.promise=new Promise(function(T,L){b.resolver=T;b.rejector=L});
W.JSC$8414_deferred.set(O,b);return b.promise},eqS=function(W,O,b,T){T=T===void 0?!1:T;
if(b.indexOf(O)>-1)throw Error("Dc`"+O);if(W.cachedValues.has(O))return W.cachedValues.get(O);if(!W.providers.has(O)){if(T)return;throw Error("Ec`"+O);}T=W.providers.get(O);b.push(O);if(T.useValue!==void 0)var L=T.useValue;else if(T.useFactory)L=T[NV]?PqU(W,T[NV],b):[],L=T.useFactory.apply(T,_.PG(L));else if(T.useClass){L=T.useClass;var h=L[NV]?PqU(W,L[NV],b):[];L=new (Function.prototype.bind.apply(L,[null].concat(_.PG(h))))}else throw Error("Fc`"+O);b.pop();T.skipCache||W.cachedValues.set(O,L);return L},
PqU=function(W,O,b){return O?O.map(function(T){return T instanceof lFh?eqS(W,T.key,b,!0):eqS(W,T,b)}):[]};var e_e;var HZ=new _.MV("ENDPOINT_HANDLER_TOKEN");_.t8=new _.J("urlEndpoint");var p3L=function(){this.data=[];this.cachedPackedInt52=-1};
p3L.prototype.set=function(W,O){O=O===void 0?!0:O;0<=W&&W<52&&Number.isInteger(W)&&this.data[W]!==O&&(this.data[W]=O,this.cachedPackedInt52=-1)};
p3L.prototype.get=function(W){return!!this.data[W]};
var Rq$=function(W){W.cachedPackedInt52===-1&&(W.cachedPackedInt52=W.data.reduce(function(O,b,T){return O+(b?Math.pow(2,T):0)},0));
return W.cachedPackedInt52};var COh=function(W){var O=Kp9;W=W===void 0?_.GT("yt.ads.biscotti.lastId_")||"":W;var b=Object,T=b.assign,L={};L.dt=ga$;L.flash="0";a:{try{var h=O.JSC$8420_win_.top.location.href}catch(pE){h=2;break a}h=h?h===O.doc_.location.href?0:1:2}L=(L.frm=h,L);try{L.u_tz=-(new Date).getTimezoneOffset();var Z=Z===void 0?r9:Z;try{var a=Z.history.length}catch(pE){a=0}L.u_his=a;var m;L.u_h=(m=r9.screen)==null?void 0:m.height;var w;L.u_w=(w=r9.screen)==null?void 0:w.width;var A;L.u_ah=(A=r9.screen)==null?void 0:A.availHeight;
var X;L.u_aw=(X=r9.screen)==null?void 0:X.availWidth;var l;L.u_cd=(l=r9.screen)==null?void 0:l.colorDepth}catch(pE){}a=O.JSC$8420_win_;try{var p=a.screenX;var K=a.screenY}catch(pE){}try{var k=a.outerWidth;var r=a.outerHeight}catch(pE){}try{var q=a.innerWidth;var f=a.innerHeight}catch(pE){}try{var M=a.screenLeft;var V=a.screenTop}catch(pE){}try{q=a.innerWidth,f=a.innerHeight}catch(pE){}try{var jQ=a.screen.availWidth;var y=a.screen.availTop}catch(pE){}p=[M,V,p,K,jQ,y,k,r,q,f];K=XGQ(!1,O.JSC$8420_win_.top);
k={};var d8=d8===void 0?_.i1:d8;r=new p3L;"SVGElement"in d8&&"createElementNS"in d8.document&&r.set(0);q=QqL();q["allow-top-navigation-by-user-activation"]&&r.set(1);q["allow-popups-to-escape-sandbox"]&&r.set(2);d8.crypto&&d8.crypto.subtle&&r.set(3);"TextDecoder"in d8&&"TextEncoder"in d8&&r.set(4);d8=Rq$(r);O=(k.bc=d8,k.bih=K.height,k.biw=K.width,k.brdim=p.join(),k.vis=b5E(O.doc_),k.wgl=!!r9.WebGLRenderingContext,k);b=T.call(b,L,O);b.ca_type="image";W&&(b.bid=W);return b},Kp9=new function(){var W=
window.document;
this.JSC$8420_win_=window;this.doc_=W};
_.c3("yt.ads_.signals_.getAdSignalsString",function(W){return Y0Q(COh(W))});_.yG();navigator.userAgent.indexOf(" (CrKey ");var oF2="XMLHttpRequest"in _.i1?function(){return new XMLHttpRequest}:null;var vv9="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),gvv=[].concat(_.PG(vv9),["client_dev_set_cookie"]);var z_E={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"},s2e="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(_.PG(vv9)),N3q=!1,rq2=_.q0X,t3q=xyq;var wiT=[{messageFn:function(W){return"Cannot read property '"+W.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(W){return"Cannot call '"+W.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(W){return W.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var ovH={messageWeights:[],callbackWeights:[{callback:cq1,weight:500},{callback:FAe,weight:500}]};var Qez=function(){this.callbackWeights=[];this.messageWeights=[]},kZq,EyT=function(){if(!kZq){var W=kZq=new Qez;
W.messageWeights.length=0;W.callbackWeights.length=0;oje(W,ovH)}return kZq},oje=function(W,O){O.messageWeights&&W.messageWeights.push.apply(W.messageWeights,O.messageWeights);
O.callbackWeights&&W.callbackWeights.push.apply(W.callbackWeights,O.callbackWeights)};_.Wk(_.wO,_.R8);_.wO.prototype.subscribe=function(W,O,b){var T=this.topics_[W];T||(T=this.topics_[W]=[]);var L=this.JSC$8444_key_;this.subscriptions_[L]=W;this.subscriptions_[L+1]=O;this.subscriptions_[L+2]=b;this.JSC$8444_key_=L+3;T.push(L);return L};
var seS=function(W){var O=l6q,b=!1,T=O.subscribe("handleError",function(L){b||(b=!0,this.unsubscribeByKey(T),W.apply(void 0,arguments))},O)};
_.wO.prototype.unsubscribe=function(W,O,b){if(W=this.topics_[W]){var T=this.subscriptions_;if(W=W.find(function(L){return T[L+1]==O&&T[L+2]==b}))return this.unsubscribeByKey(W)}return!1};
_.wO.prototype.unsubscribeByKey=function(W){var O=this.subscriptions_[W];if(O){var b=this.topics_[O];this.publishDepth_!=0?(this.pendingKeys_.push(W),this.subscriptions_[W+1]=function(){}):(b&&_.c2(b,W),delete this.subscriptions_[W],delete this.subscriptions_[W+1],delete this.subscriptions_[W+2])}return!!O};
_.wO.prototype.publish=function(W,O){var b=this.topics_[W];if(b){var T=Array(arguments.length-1),L=arguments.length,h;for(h=1;h<L;h++)T[h-1]=arguments[h];if(this.async_)for(h=0;h<b.length;h++)L=b[h],BO1(this.subscriptions_[L+1],this.subscriptions_[L+2],T);else{this.publishDepth_++;try{for(h=0,L=b.length;h<L&&!this.isDisposed();h++){var Z=b[h];this.subscriptions_[Z+1].apply(this.subscriptions_[Z+2],T)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;b=this.pendingKeys_.pop();)this.unsubscribeByKey(b)}}return h!=
0}return!1};
var BO1=function(W,O,b){_.AY(function(){W.apply(O,b)})};
_.wO.prototype.clear=function(W){if(W){var O=this.topics_[W];O&&(O.forEach(this.unsubscribeByKey,this),delete this.topics_[W])}else this.subscriptions_.length=0,this.topics_={}};
_.wO.prototype.getCount=function(W){if(W){var O=this.topics_[W];return O?O.length:0}W=0;for(O in this.topics_)W+=this.getCount(O);return W};
_.wO.prototype.disposeInternal=function(){_.wO.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var l6q=new _.wO;var L9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(L9,_.qA);L9.prototype.getColdHashData=function(){return _.vk(this,3)};
L9.prototype.getHotHashData=function(){return _.vk(this,5)};
L9.prototype.setHotHashData=function(W){return _.aG(this,5,W)};var aMQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(aMQ,_.qA);var nIQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(nIQ,_.qA);_.d=nIQ.prototype;_.d.getDeviceId=function(){return _.vk(this,6)};
_.d.getExperimentIds=function(W){var O=_.eW(this,9,_.gg,3,!0);$$(O,W);return O[W]};
_.d.getPlayerType=function(){return _.gQ(this,36)};
_.d.setHomeGroupInfo=function(W){return _.jL(this,81,W)};
_.d.clearLocationPlayabilityToken=function(){return _.T7(this,89)};var we=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(we,_.qA);we.prototype.setKey=function(W){return _.aG(this,1,W)};
we.prototype.getValue=function(){return QK(this,2,G0h)};
var G0h=[2,3,4,5,6];var rLv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(rLv,_.qA);rLv.prototype.setTrackingParams=function(W){return _.T7(this,1,_.HN(W,!1))};var fQO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(fQO,_.qA);var E0O=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(E0O,_.qA);E0O.prototype.getExperimentIds=function(W){var O=_.eW(this,5,_.oN,3,!0);$$(O,W);return O[W]};var PZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(PZ,_.qA);PZ.prototype.getToken=function(){return _.wD(this,2)};
PZ.prototype.setToken=function(W){return _.aG(this,2,W)};var ly=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ly,_.qA);ly.prototype.setSafetyMode=function(W){return _.jq(this,5,W)};var Em=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Em,_.qA);Em.prototype.setClient=function(W){return _.jL(this,1,W)};var YO1={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 mkO;_.gE=function(){var W=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.i1.addEventListener("beforeinstallprompt",function(O){O.preventDefault();W.deferredInstallPrompt=O});
_.i1.addEventListener("appinstalled",function(){W.appInstalledEventFired=!0},{once:!0})};
mkO=function(){if(!_.i1.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.i1.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.i1.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.i1.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.i1.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(W){return"WEB_DISPLAY_MODE_UNKNOWN"}};var XgO=function(){this.syncHeaders=!0},Uk8=function(W){var O={},b=[];
"USER_SESSION_ID"in _.Dk&&b.push({key:"u",value:_.Cv("USER_SESSION_ID")});if(b=f51(b))O.Authorization=b,b=W=W==null?void 0:W.sessionIndex,b===void 0&&(b=Number(_.Cv("SESSION_INDEX",0)),b=isNaN(b)?0:b),_.e("voice_search_auth_header_removal")||(O["X-Goog-AuthUser"]=b.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Dk||(O["X-Origin"]=window.location.origin),W===void 0&&"DELEGATED_SESSION_ID"in _.Dk&&(O["X-Goog-PageId"]=_.Cv("DELEGATED_SESSION_ID"));return O};var Dm7={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var uB=_.GT("ytglobal.prefsUserPrefsPrefs_")||{},xm$;_.c3("ytglobal.prefsUserPrefsPrefs_",uB);_.JE=function(){this.cookieName=_.Cv("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Cv("ALT_PREF_COOKIE_DOMAIN","youtube.com");var W=_.Xq.get(this.cookieName,void 0);W&&this.parse(W)};
_.Xt=function(){xm$||(xm$=new _.JE);return xm$};
_.JE.prototype.get=function(W,O){zqv(W);CqU(W);W=uB[W]!==void 0?uB[W].toString():null;return W!=null?W:O?O:""};
_.JE.prototype.set=function(W,O){zqv(W);CqU(W);if(O==null)throw Error("Ic");uB[W]=O.toString()};
_.JE.prototype.getFlag=function(W){return!!((qTn("f"+(Math.floor(W/31)+1))||0)&1<<W%31)};
_.UO=function(W,O,b){W="f"+(Math.floor(O/31)+1);O=1<<O%31;var T=qTn(W)||0;T=b?T|O:T&~O;T===0?delete uB[W]:(b=T.toString(16),uB[W]=b.toString())};
_.JE.prototype.remove=function(W){zqv(W);CqU(W);delete uB[W]};
_.JE.prototype.save=function(){var W=!0;_.e("web_secure_pref_cookie_killswitch")&&(W=!1);_.UT(this.cookieName,this.dump(),63072E3,this.cookieDomain,W)};
_.JE.prototype.clear=function(){_.PQ.clear(uB)};
_.JE.prototype.dump=function(){var W=[],O;for(O in uB)uB.hasOwnProperty(O)&&W.push(O+"="+encodeURIComponent(String(uB[O])));return W.join("&")};
var CqU=function(W){if(/^f([1-9][0-9]*)$/.test(W))throw Error("Jc`"+W);},zqv=function(W){if(!/^\w+$/.test(W))throw Error("Kc`"+W);
},qTn=function(W){W=uB[W]!==void 0?uB[W].toString():null;
return W!=null&&/^[A-Fa-f0-9]+$/.test(W)?parseInt(W,16):null};
_.JE.prototype.parse=function(W){W=decodeURIComponent(W).split("&");for(var O=0;O<W.length;O++){var b=W[O].split("="),T=b[0];(b=b[1])&&(uB[T]=b.toString())}};var dph={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"},wg8={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},A3h={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},SkE={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Ld;_.cy=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.KB=function(W,O,b){return W.addJob(O,0,b)};
_.cy.prototype.addLowPriorityJob=function(W,O){return this.addJob(W,1,O)};
_.Xg=function(W,O,b){return W.addJob(O,2,b)};
_.pp=function(W,O,b){return W.addJob(O,3,b)};
_.dd=function(W,O,b){return W.addJob(O,4,b)};
Ld=function(W){var O=_.GT("yt.scheduler.instance.addImmediateJob");O?O(W):W()};
_.cy.prototype.debounce=function(W,O,b){var T=this,L=0,h=function(){L&&T.cancelJob(L);L=T.addJob(W,O,b);T.cancelDebouncedJobMap.set(h,L)};
return h};
_.cy.prototype.cancelThrottle=function(W){(W=this.cancelThrottledJobMap.get(W))&&W()};var FV=function(){_.cy.apply(this,arguments)};
_.R(FV,_.cy);_.KD=function(){FV.instance||(FV.instance=new FV);return FV.instance};
FV.prototype.addJob=function(W,O,b){b!==void 0&&Number.isNaN(Number(b))&&(b=void 0);var T=_.GT("yt.scheduler.instance.addJob");return T?T(W,O,b):b===void 0?(W(),NaN):_.Zp(W,b||0)};
FV.prototype.cancelJob=function(W){if(W===void 0||!Number.isNaN(Number(W))){var O=_.GT("yt.scheduler.instance.cancelJob");O?O(W):_.ae(W)}};
FV.prototype.start=function(){var W=_.GT("yt.scheduler.instance.start");W&&W()};
FV.prototype.pause=function(){var W=_.GT("yt.scheduler.instance.pause");W&&W()};
_.sF=_.KD();_.Re.prototype.set=function(W,O){O===void 0?this.mechanism.remove(W):this.mechanism.set(W,(0,_.Px)(O))};
_.Re.prototype.get=function(W){try{var O=this.mechanism.get(W)}catch(b){return}if(O!==null)try{return JSON.parse(O)}catch(b){throw"Storage: Invalid value was encountered";}};
_.Re.prototype.remove=function(W){this.mechanism.remove(W)};var ys=function(W){this.mechanism=W};
_.Wk(ys,_.Re);var nv$=function(W){this.data=W},fp9=function(W){return W===void 0||W instanceof nv$?W:new nv$(W)};
ys.prototype.set=function(W,O){ys.superClass_.set.call(this,W,fp9(O))};
ys.prototype.getWrapper=function(W){W=ys.superClass_.get.call(this,W);if(W===void 0||W instanceof Object)return W;throw"Storage: Invalid value was encountered";};
ys.prototype.get=function(W){if(W=this.getWrapper(W)){if(W=W.data,W===void 0)throw"Storage: Invalid value was encountered";}else W=void 0;return W};_.Wk(Ku,ys);_.GZf=function(W){var O=W.creation;W=W.expiration;return!!W&&W<_.yG()||!!O&&O>_.yG()};
Ku.prototype.set=function(W,O,b){if(O=fp9(O)){if(b){if(b<_.yG()){Ku.prototype.remove.call(this,W);return}O.expiration=b}O.creation=_.yG()}Ku.superClass_.set.call(this,W,O)};
Ku.prototype.getWrapper=function(W,O){var b=Ku.superClass_.getWrapper.call(this,W);if(b)if(!O&&_.GZf(b))Ku.prototype.remove.call(this,W);else return b};var WT=function(){};
WT.prototype.next=function(){return OY};
var OY={done:!0,value:void 0},iZ=function(W){return{value:W,done:!1}};
WT.prototype.__iterator__=function(){return this};
_.Huw=function(W){if(W instanceof WT)return W;if(typeof W.__iterator__=="function")return W.__iterator__(!1);if(_.j5(W)){var O=0,b=new WT;b.next=function(){for(;;){if(O>=W.length)return OY;if(O in W)return iZ(W[O++]);O++}};
return b}throw Error("Lc");};var tJn=function(W){if(W instanceof bZ||W instanceof jO||W instanceof TM)return W;if(typeof W.next=="function")return new bZ(function(){return W});
if(typeof W[Symbol.iterator]=="function")return new bZ(function(){return W[Symbol.iterator]()});
if(typeof W.__iterator__=="function")return new bZ(function(){return W.__iterator__()});
throw Error("Mc");},bZ=function(W){this.func_=W};
bZ.prototype.__iterator__=function(){return new jO(this.func_())};
bZ.prototype[Symbol.iterator]=function(){return new TM(this.func_())};
bZ.prototype.toEs6=function(){return new TM(this.func_())};
var jO=function(W){this.JSC$8528_iter_=W};
_.R(jO,WT);jO.prototype.next=function(){return this.JSC$8528_iter_.next()};
jO.prototype[Symbol.iterator]=function(){return new TM(this.JSC$8528_iter_)};
jO.prototype.toEs6=function(){return new TM(this.JSC$8528_iter_)};
var TM=function(W){bZ.call(this,function(){return W});
this.JSC$8531_iter_=W};
_.R(TM,bZ);TM.prototype.next=function(){return this.JSC$8531_iter_.next()};var $mS=function(){};var Lc=function(){};
_.Wk(Lc,$mS);Lc.prototype.getCount=function(){for(var W=0,O=_.S(this),b=O.next();!b.done;b=O.next())W++;return W};
Lc.prototype[Symbol.iterator]=function(){return tJn(this.__iterator__(!0)).toEs6()};
Lc.prototype.clear=function(){var W=Array.from(this);W=_.S(W);for(var O=W.next();!O.done;O=W.next())this.remove(O.value)};_.Wk(v3,Lc);_.d=v3.prototype;_.d.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var W=this.storage_;if(W)try{W.setItem("__sak","1");W.removeItem("__sak");var O=!0}catch(b){O=b instanceof DOMException&&(b.name==="QuotaExceededError"||b.code===22||b.code===1014||b.name==="NS_ERROR_DOM_QUOTA_REACHED")&&W&&W.length!==0}else O=!1;this.cachedIsStorageAvailable_=O}return this.cachedIsStorageAvailable_};
_.d.set=function(W,O){dq(this);try{this.storage_.setItem(W,O)}catch(b){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.d.get=function(W){dq(this);W=this.storage_.getItem(W);if(typeof W!=="string"&&W!==null)throw"Storage mechanism: Invalid value was encountered";return W};
_.d.remove=function(W){dq(this);this.storage_.removeItem(W)};
_.d.getCount=function(){dq(this);return this.storage_.length};
_.d.__iterator__=function(W){dq(this);var O=0,b=this.storage_,T=new WT;T.next=function(){if(O>=b.length)return OY;var L=b.key(O++);if(W)return iZ(L);L=b.getItem(L);if(typeof L!=="string")throw"Storage mechanism: Invalid value was encountered";return iZ(L)};
return T};
_.d.clear=function(){dq(this);this.storage_.clear()};
_.d.key=function(W){dq(this);return this.storage_.key(W)};
var dq=function(W){if(W.storage_==null)throw Error("Nc");W.isAvailable()||b1(Error("Nc"))};_.Wk(Iuq,v3);_.Wk(auQ,v3);_.Wk(gO,Lc);gO.prototype.set=function(W,O){this.mechanism_.set(this.JSC$8546_prefix_+W,O)};
gO.prototype.get=function(W){return this.mechanism_.get(this.JSC$8546_prefix_+W)};
gO.prototype.remove=function(W){this.mechanism_.remove(this.JSC$8546_prefix_+W)};
gO.prototype.__iterator__=function(W){var O=this.mechanism_[Symbol.iterator](),b=this,T=new WT;T.next=function(){var L=O.next();if(L.done)return L;for(L=L.value;L.slice(0,b.JSC$8546_prefix_.length)!=b.JSC$8546_prefix_;){L=O.next();if(L.done)return L;L=L.value}return iZ(W?L.slice(b.JSC$8546_prefix_.length):b.mechanism_.get(L))};
return T};_.z7=function(W){this.expiringStorage_=(W=_.mph(W))?new Ku(W):null;this.JSC$8550_domain_=document.domain||window.location.hostname};
_.z7.prototype.set=function(W,O,b,T){b=b||31104E3;this.remove(W);if(this.expiringStorage_)try{this.expiringStorage_.set(W,O,Date.now()+b*1E3);return}catch(h){}var L="";if(T)try{L=escape((0,_.Px)(O))}catch(h){return}else L=escape(O);_.UT(W,L,b,this.JSC$8550_domain_)};
_.z7.prototype.get=function(W,O){var b=void 0,T=!this.expiringStorage_;if(!T)try{b=this.expiringStorage_.get(W)}catch(L){T=!0}if(T&&(b=_.Xq.get(W,void 0))&&(b=unescape(b),O))try{b=JSON.parse(b)}catch(L){this.remove(W),b=void 0}return b};
_.z7.prototype.remove=function(W){this.expiringStorage_&&this.expiringStorage_.remove(W);_.js2(W,"/",this.JSC$8550_domain_)};
_.z7.prototype.getCreationTime=function(W){return this.expiringStorage_&&(W=(this.expiringStorage_.getWrapper(W)||{}).creation,typeof W==="number")?W:null};var EJ8=function(){var W;return function(){W||(W=new _.z7("ytidb"));return W}}();var ACQ;_.QY=[];ACQ=!1;var zHX=XbO||Up2;var hR={},VJz=(hR.AUTH_INVALID="No user identifier specified.",hR.EXPLICIT_ABORT="Transaction was explicitly aborted.",hR.IDB_NOT_SUPPORTED="IndexedDB is not supported.",hR.MISSING_INDEX="Index not created.",hR.MISSING_OBJECT_STORES="Object stores not created.",hR.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",hR.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",hR.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",hR.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",hR.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",hR.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",hR.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",hR),SO={},NO$=(SO.AUTH_INVALID="ERROR",SO.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",SO.EXPLICIT_ABORT="IGNORED",
SO.IDB_NOT_SUPPORTED="ERROR",SO.MISSING_INDEX="WARNING",SO.MISSING_OBJECT_STORES="ERROR",SO.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",SO.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",SO.QUOTA_EXCEEDED="WARNING",SO.QUOTA_MAYBE_EXCEEDED="WARNING",SO.UNKNOWN_ABORT="WARNING",SO.INCOMPATIBLE_DB_VERSION="WARNING",SO),ZR={},MJz=(ZR.AUTH_INVALID=!1,ZR.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,ZR.EXPLICIT_ABORT=!1,ZR.IDB_NOT_SUPPORTED=!1,ZR.MISSING_INDEX=!1,ZR.MISSING_OBJECT_STORES=!1,ZR.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,ZR.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,ZR.QUOTA_EXCEEDED=!1,ZR.QUOTA_MAYBE_EXCEEDED=!0,ZR.UNKNOWN_ABORT=!0,ZR.INCOMPATIBLE_DB_VERSION=!1,ZR),xv=function(W,O,b,T,L){O=O===void 0?{}:O;b=b===void 0?VJz[W]:b;T=T===void 0?NO$[W]:T;L=L===void 0?MJz[W]:L;_.pu.call(this,b,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:W},O));this.type=W;this.message=b;this.level=T;this.retryable=L;Object.setPrototypeOf(this,xv.prototype)};
_.R(xv,_.pu);var uqH=function(W,O){xv.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:O,foundObjectStores:W},VJz.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,uqH.prototype)};
_.R(uqH,xv);var eHO=function(W,O){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.index=W;this.objectStore=O;Object.setPrototypeOf(this,eHO.prototype)};
_.R(eHO,Error);var Pe8=["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 nu=function(W){this.executor=W},qm=function(W){var O=this;
this.state={status:"PENDING"};this.JSC$8578_onFulfilled=[];this.JSC$8578_onRejected=[];W=W.executor;var b=function(L){if(O.state.status==="PENDING"){O.state={status:"FULFILLED",value:L};L=_.S(O.JSC$8578_onFulfilled);for(var h=L.next();!h.done;h=L.next())h=h.value,h()}},T=function(L){if(O.state.status==="PENDING"){O.state={status:"REJECTED",
reason:L};L=_.S(O.JSC$8578_onRejected);for(var h=L.next();!h.done;h=L.next())h=h.value,h()}};
try{W(b,T)}catch(L){T(L)}};
qm.all=function(W){return new qm(new nu(function(O,b){var T=[],L=W.length;L===0&&O(T);for(var h={i$jscomp$505:0};h.i$jscomp$505<W.length;h={i$jscomp$505:h.i$jscomp$505},++h.i$jscomp$505)qm.resolve(W[h.i$jscomp$505]).then(function(Z){return function(a){T[Z.i$jscomp$505]=a;L--;L===0&&O(T)}}(h)).catch(function(Z){b(Z)})}))};
qm.resolve=function(W){return new qm(new nu(function(O,b){W instanceof qm?W.then(O,b):O(W)}))};
qm.reject=function(W){return new qm(new nu(function(O,b){b(W)}))};
qm.prototype.then=function(W,O){var b=this,T=W!=null?W:K1Q,L=O!=null?O:RHX;return new qm(new nu(function(h,Z){b.state.status==="PENDING"?(b.JSC$8578_onFulfilled.push(function(){JLv(b,b,T,h,Z)}),b.JSC$8578_onRejected.push(function(){cLz(b,b,L,h,Z)})):b.state.status==="FULFILLED"?JLv(b,b,T,h,Z):b.state.status==="REJECTED"&&cLz(b,b,L,h,Z)}))};
qm.prototype.catch=function(W){return this.then(void 0,W)};
var JLv=function(W,O,b,T,L){try{if(W.state.status!=="FULFILLED")throw Error("Qc");var h=b(W.state.value);h instanceof qm?FpU(W,O,h,T,L):T(h)}catch(Z){L(Z)}},cLz=function(W,O,b,T,L){try{if(W.state.status!=="REJECTED")throw Error("Rc");
var h=b(W.state.reason);h instanceof qm?FpU(W,O,h,T,L):T(h)}catch(Z){L(Z)}},FpU=function(W,O,b,T,L){O===b?L(new TypeError("Sc")):b.then(function(h){h instanceof qm?FpU(W,O,h,T,L):T(h)},function(h){L(h)})};var I$;I$=window;_.WO=I$.ytcsi&&I$.ytcsi.now?I$.ytcsi.now:I$.performance&&I$.performance.timing&&I$.performance.now&&I$.performance.timing.navigationStart?function(){return I$.performance.timing.navigationStart+I$.performance.now()}:function(){return(new Date).getTime()};var GZ=function(W,O){this.JSC$8590_wrapped=W;this.options=O;this.transactionCount=0;this.startedMs=Math.round((0,_.WO)());this.hasUnknownAbortedTransaction=!1},O9q,i9f,Yg,Tvf;
GZ.prototype.add=function(W,O,b){return _.VY(this,[W],{mode:"readwrite",enableRetries:!0},function(T){return T.objectStore(W).add(O,b)})};
GZ.prototype.clear=function(W){return _.VY(this,[W],{mode:"readwrite",enableRetries:!0},function(O){return O.objectStore(W).clear()})};
GZ.prototype.close=function(){this.JSC$8590_wrapped.close();var W;((W=this.options)==null?0:W.closed)&&this.options.closed()};
GZ.prototype.count=function(W,O){return _.VY(this,[W],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(W).count(O)})};
var q8=function(W,O,b){W=W.JSC$8590_wrapped.createObjectStore(O,b);return new a$(W)};
GZ.prototype.delete=function(W,O){return _.VY(this,[W],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(W).delete(O)})};
var yLS=function(W,O){return _.VY(W,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore("ResponseStore").index("byInterface").delete(O)})};
GZ.prototype.get=function(W,O){return _.VY(this,[W],{mode:"readonly",enableRetries:!0},function(b){return b.objectStore(W).get(O)})};
GZ.prototype.getAll=function(W,O,b){return _.VY(this,[W],{mode:"readonly",enableRetries:!0},function(T){return T.objectStore(W).getAll(O,b)})};
GZ.prototype.put=function(W,O,b){return _.VY(this,[W],{mode:"readwrite",enableRetries:!0},function(T){return T.objectStore(W).put(O,b)})};
GZ.prototype.objectStoreNames=function(){return Array.from(this.JSC$8590_wrapped.objectStoreNames)};
_.VY=function(W,O,b,T){var L,h,Z,a,m,w,A,X,l,p,K,k;return _.I(function(r){switch(r.nextAddress){case 1:var q={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof b==="string"?q.mode=b:Object.assign(q,b);L=q;W.transactionCount++;h=L.enableRetries?3:1;Z=0;case 2:if(a){r.jumpTo(4);break}Z++;m=Math.round((0,_.WO)());_.LI(r,5);w=W.JSC$8590_wrapped.transaction(O,L.mode);q=new QsX(w);q=WYU(q,T);return _.Y(r,q,7);case 7:return A=r.yieldResult,X=Math.round((0,_.WO)()),O9q(W,m,X,Z,void 0,
O.join(),L),r.return(A);case 5:l=_.ID(r);p=Math.round((0,_.WO)());K=pb8(l,W.JSC$8590_wrapped.name,O.join(),W.JSC$8590_wrapped.version);if((k=K instanceof xv&&!K.retryable)||Z>=h)O9q(W,m,p,Z,K,O.join(),L),a=K;r.jumpTo(2);break;case 4:return r.return(Promise.reject(a))}})};
O9q=function(W,O,b,T,L,h,Z){O=b-O;L?(L instanceof xv&&(L.type==="QUOTA_EXCEEDED"||L.type==="QUOTA_MAYBE_EXCEEDED")&&sT("QUOTA_EXCEEDED",{dbName:rO(W.JSC$8590_wrapped.name),objectStoreNames:h,transactionCount:W.transactionCount,transactionMode:Z.mode}),L instanceof xv&&L.type==="UNKNOWN_ABORT"&&(b-=W.startedMs,b<0&&b>=2147483648&&(b=0),sT("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:h,transactionDuration:O,transactionCount:W.transactionCount,dbDuration:b}),W.hasUnknownAbortedTransaction=!0),
i9f(W,!1,T,h,O,Z.tag),_.kv(L)):i9f(W,!0,T,h,O,Z.tag)};
i9f=function(W,O,b,T,L,h){sT("TRANSACTION_ENDED",{objectStoreNames:T,connectionHasUnknownAbortedTransaction:W.hasUnknownAbortedTransaction,duration:L,isSuccessful:O,tryCount:b,tag:h===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":h})};
GZ.prototype.getVersion=function(){return this.JSC$8590_wrapped.version};
GZ.prototype.getName=function(){return this.JSC$8590_wrapped.name};
var a$=function(W){this.JSC$8605_wrapped=W};
a$.prototype.add=function(W,O){return fu(this.JSC$8605_wrapped.add(W,O))};
a$.prototype.autoIncrement=function(){return this.JSC$8605_wrapped.autoIncrement};
a$.prototype.clear=function(){return fu(this.JSC$8605_wrapped.clear()).then(function(){})};
var n9=function(W,O,b){W.JSC$8605_wrapped.createIndex(O,b,{unique:!1})};
a$.prototype.count=function(W){return fu(this.JSC$8605_wrapped.count(W))};
var b9$=function(W,O){return Mm(W,{query:O},function(b){return b.delete().then(function(){return b.continue()})}).then(function(){})};
a$.prototype.delete=function(W){return W instanceof IDBKeyRange?b9$(this,W):fu(this.JSC$8605_wrapped.delete(W))};
a$.prototype.get=function(W){return fu(this.JSC$8605_wrapped.get(W))};
a$.prototype.getAll=function(W,O){return"getAll"in IDBObjectStore.prototype?fu(this.JSC$8605_wrapped.getAll(W,O)):jaS(this,W,O)};
var jaS=function(W,O,b){var T=[];return Mm(W,{query:O},function(L){if(!(b!==void 0&&T.length>=b))return T.push(L.getValue()),L.continue()}).then(function(){return T})};
a$.prototype.index=function(W){try{return new mc(this.JSC$8605_wrapped.index(W))}catch(O){if(O instanceof Error&&O.name==="NotFoundError")throw new eHO(W,this.JSC$8605_wrapped.name);throw O;}};
a$.prototype.getName=function(){return this.JSC$8605_wrapped.name};
a$.prototype.keyPath=function(){return this.JSC$8605_wrapped.keyPath};
a$.prototype.put=function(W,O){return fu(this.JSC$8605_wrapped.put(W,O))};
var Mm=function(W,O,b){W=W.JSC$8605_wrapped.openCursor(O.query,O.direction);return Tvf(W).then(function(T){return oJQ(T,b)})},QsX=function(W){var O=this;
this.JSC$8613_wrapped=W;this.objectStoreCache=new Map;this.JSC$8613_aborted=!1;this.done=new Promise(function(b,T){O.JSC$8613_wrapped.addEventListener("complete",function(){b()});
O.JSC$8613_wrapped.addEventListener("error",function(L){L.currentTarget===L.target&&T(O.JSC$8613_wrapped.error)});
O.JSC$8613_wrapped.addEventListener("abort",function(){var L=O.JSC$8613_wrapped.error;if(L)T(L);else if(!O.JSC$8613_aborted){L=xv;for(var h=O.JSC$8613_wrapped.objectStoreNames,Z=[],a=0;a<h.length;a++){var m=h.item(a);if(m===null)throw Error("Tc");Z.push(m)}L=new L("UNKNOWN_ABORT",{objectStoreNames:Z.join(),dbName:O.JSC$8613_wrapped.db.name,mode:O.JSC$8613_wrapped.mode});T(L)}})})},WYU=function(W,O){var b=new Promise(function(T,L){try{O(W).then(function(h){T(h)}).catch(L)}catch(h){L(h),W.abort()}});
return Promise.all([b,W.done]).then(function(T){return _.S(T).next().value})};
QsX.prototype.abort=function(){this.JSC$8613_wrapped.abort();this.JSC$8613_aborted=!0;throw new xv("EXPLICIT_ABORT");};
QsX.prototype.objectStore=function(W){W=this.JSC$8613_wrapped.objectStore(W);var O=this.objectStoreCache.get(W);O||(O=new a$(W),this.objectStoreCache.set(W,O));return O};
var mc=function(W){this.JSC$8615_wrapped=W};
mc.prototype.count=function(W){return fu(this.JSC$8615_wrapped.count(W))};
mc.prototype.delete=function(W){return _.OF(this,{query:W},function(O){return O.delete().then(function(){return O.continue()})})};
mc.prototype.get=function(W){return fu(this.JSC$8615_wrapped.get(W))};
mc.prototype.getAll=function(W,O){return"getAll"in IDBIndex.prototype?fu(this.JSC$8615_wrapped.getAll(W,O)):LY$(this,W,O)};
var LY$=function(W,O,b){var T=[];return _.OF(W,{query:O},function(L){if(!(b!==void 0&&T.length>=b))return T.push(L.getValue()),L.continue()}).then(function(){return T})};
mc.prototype.keyPath=function(){return this.JSC$8615_wrapped.keyPath};
mc.prototype.unique=function(){return this.JSC$8615_wrapped.unique};
_.OF=function(W,O,b){W=W.JSC$8615_wrapped.openCursor(O.query===void 0?null:O.query,O.direction===void 0?"next":O.direction);return Tvf(W).then(function(T){return oJQ(T,b)})};
Yg=function(W,O){this.request=W;this.cursor=O};
Tvf=function(W){return fu(W).then(function(O){return O?new Yg(W,O):null})};
Yg.prototype.continue=function(W){this.cursor.continue(W);return Tvf(this.request)};
Yg.prototype.delete=function(){return fu(this.cursor.delete()).then(function(){})};
Yg.prototype.getValue=function(){return this.cursor.value};
Yg.prototype.update=function(W){return fu(this.cursor.update(W))};var EY=function(W,O){this.name=W;this.options=O;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},d89;
EY.prototype.openDb=function(W,O,b){b=b===void 0?{}:b;return ssq(W,O,b)};
EY.prototype.delete=function(W){W=W===void 0?{}:W;return _.tL(this.name,W)};
d89=function(W,O){return new xv("INCOMPATIBLE_DB_VERSION",{dbName:W.name,oldVersion:W.options.version,newVersion:O})};
_.$v=function(W,O){if(!O)throw Cu("openWithToken",rO(W.name));return W.open()};
EY.prototype.open=function(){var W=this;if(!this.isCompatible)throw d89(this);if(this.connectionPromise)return this.connectionPromise;var O,b=function(){W.connectionPromise===O&&(W.connectionPromise=void 0)},T={blocking:function(h){h.close()},
closed:b,terminated:b,upgrade:this.options.upgrade},L=function(){var h,Z,a,m,w,A,X,l,p,K;return _.I(function(k){switch(k.nextAddress){case 1:return Z=(h=Error().stack)!=null?h:"",_.LI(k,2),_.Y(k,W.openDb(W.name,W.options.version,T),4);case 4:for(var r=a=k.yieldResult,q=W.options,f=[],M=_.S(Object.keys(q.objectStores)),V=M.next();!V.done;V=M.next()){V=V.value;var jQ=q.objectStores[V],y=jQ.removedAtVersion===void 0?Number.MAX_VALUE:jQ.removedAtVersion;!(r.JSC$8590_wrapped.version>=jQ.addedAtVersion)||
r.JSC$8590_wrapped.version>=y||r.JSC$8590_wrapped.objectStoreNames.contains(V)||f.push(V)}m=f;if(m.length===0){k.jumpTo(5);break}w=Object.keys(W.options.objectStores);A=a.objectStoreNames();if(W.timesReopenedToFixMissingObjectStore<_.Lu("ytidb_reopen_db_retries",0))return W.timesReopenedToFixMissingObjectStore++,a.close(),_.kv(new xv("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:w,foundObjectStores:A})),k.return(L());if(!(W.timesDeletedToFixMissingObjectStore<_.Lu("ytidb_remake_db_retries",
1))){k.jumpTo(6);break}W.timesDeletedToFixMissingObjectStore++;return _.Y(k,W.delete(),7);case 7:return _.kv(new xv("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:W.name,expectedObjectStores:w,foundObjectStores:A})),k.return(L());case 6:throw new uqH(A,w);case 5:return k.return(a);case 2:X=_.ID(k);if(X instanceof DOMException?X.name!=="VersionError":"DOMError"in self&&X instanceof DOMError?X.name!=="VersionError":!(X instanceof Object&&"message"in X)||X.message!=="An attempt was made to open a database using a lower version than the existing version."){k.jumpTo(8);
break}return _.Y(k,W.openDb(W.name,void 0,Object.assign({},T,{upgrade:void 0})),9);case 9:l=k.yieldResult;p=l.getVersion();if(W.options.version!==void 0&&p>W.options.version+1)throw l.close(),W.isCompatible=!1,d89(W,p);return k.return(l);case 8:throw b(),X instanceof Error&&!_.e("ytidb_async_stack_killswitch")&&(X.stack=X.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),pb8(X,W.name,"",(K=W.options.version)!=null?K:-1);}})};
return this.connectionPromise=O=L()};var Bli=new EY("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(W,O){O(1)&&q8(W,"databases",{keyPath:"actualName"})}});var nJX,CeQ=new function(){}(new function(){});new _.S4;var hAz=function(W,O){EY.call(this,W,O);this.options=O;B3(W)};
_.R(hAz,EY);var JCO=function(W,O){var b;return function(){b||(b=new hAz(W,O));return b}};
hAz.prototype.openDb=function(W,O,b){b=b===void 0?{}:b;return(this.options.shared?$p1:tHO)(W,O,Object.assign({},b))};
hAz.prototype.delete=function(W){W=W===void 0?{}:W;return(this.options.shared?u9Q:VH1)(this.name,W)};var SFS={},cCX=yY("ytGcfConfig",{objectStores:(SFS.coldConfigStore={addedAtVersion:1},SFS.hotConfigStore={addedAtVersion:1},SFS),shared:!1,upgrade:function(W,O){O(1)&&(n9(q8(W,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),n9(q8(W,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Z9n=function(){_.R8.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var W=_.GT("yt.gcf.config.hotUpdateCallbacks");W?(this.localHotConfigJobQueue=[].concat(_.PG(W)),this.sharedHotConfigJobQueue=W):(this.sharedHotConfigJobQueue=[],_.c3("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.R(Z9n,_.R8);Z9n.prototype.disposeInternal=function(){for(var W=_.S(this.localHotConfigJobQueue),O=W.next();!O.done;O=W.next()){var b=this.sharedHotConfigJobQueue;O=b.indexOf(O.value);O>=0&&b.splice(O,1)}this.localHotConfigJobQueue.length=0;_.R8.prototype.disposeInternal.call(this)};var vZ=function(){var W=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Z9n;this.TEST_ONLY={initializeConfigDb:function(){W.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return W.coldGlobalConfigGroup},
setHotConfigGroup:function(O){If5(W,O)},
setHotHashData:function(O){W.setHotHashData(O)},
setColdConfigGroup:function(O){afH(W,O)},
getColdHashData:function(){return W.coldHashData},
getHotHashData:function(){return W.hotHashData},
getHotConfigGroup:function(){return W.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return m8H()},
getExportedHotConfigGroup:function(){return wq()},
getExportedColdHashData:function(){return _.GT("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.GT("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){YF5(W)},
resetInstance:function(){W.setHotHashData(void 0);EOU(W);delete vZ.instance},
setDebounceTimer:function(O){W.debounceTimer=O},
getDebounceTimer:function(){return W.debounceTimer}}},wON=function(){if(!vZ.instance){var W=new vZ;
vZ.instance=W}return vZ.instance},U8N=function(W){var O;
_.I(function(b){if(b.nextAddress==1)return _.e("start_client_gcf")||_.e("delete_gcf_config_db")?_.e("start_client_gcf")?_.Y(b,_.Fq(),3):b.jumpTo(2):b.return();b.nextAddress!=2&&((O=b.yieldResult)&&_.P3()&&!_.e("delete_gcf_config_db")?(W.isConfigDbInitialized=!0,YF5(W)):(ASf(W),XOw(W)));return _.e("delete_gcf_config_db")?_.Y(b,bVP(),0):b.jumpTo(0)})},jxX=function(){var W;
return(W=wq())!=null?W:_.Cv("RAW_HOT_CONFIG_GROUP")},lf$=function(W){var O,b,T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:if(W.hotGlobalConfigGroup)return a.return(wq());if(!W.isConfigDbInitialized)return O=Cu("getHotConfig IDB not initialized"),_.HU(O),a.return(Promise.reject(O));b=JL();T=_.Cv("TIME_CREATED_MS");if(!b){L=Cu("getHotConfig token error");_.HU(L);a.jumpTo(2);break}return _.Y(a,iVT(b),3);case 3:if((h=a.yieldResult)&&h.timestamp>T)return If5(W,h.config),W.setHotHashData(h.hashData),a.return(wq());case 2:XOw(W);if(!(b&&W.hotGlobalConfigGroup&&W.hotHashData)){a.jumpTo(4);
break}return _.Y(a,yCO(W.hotGlobalConfigGroup,W.hotHashData,b,T),4);case 4:return W.hotGlobalConfigGroup?a.return(wq()):(Z=new _.pu("Config not available in ytConfig"),_.HU(Z),a.return(Promise.reject(Z)))}})},PPS=function(W){var O,b,T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:if(W.coldGlobalConfigGroup)return a.return(m8H());if(!W.isConfigDbInitialized)return O=Cu("getColdConfig IDB not initialized"),_.HU(O),a.return(Promise.reject(O));b=JL();T=_.Cv("TIME_CREATED_MS");if(!b){L=Cu("getColdConfig");_.HU(L);a.jumpTo(2);break}return _.Y(a,OV1(b),3);case 3:if((h=a.yieldResult)&&h.timestamp>T)return afH(W,h.config),eAN(W,h.configData),EOU(W,h.hashData),a.return(m8H());case 2:ASf(W);if(!(b&&W.coldGlobalConfigGroup&&W.coldHashData&&
W.configData)){a.jumpTo(4);break}return _.Y(a,WM2(W.coldGlobalConfigGroup,W.coldHashData,W.configData,b,T),4);case 4:return W.coldGlobalConfigGroup?a.return(m8H()):(Z=new _.pu("Config not available in ytConfig"),_.HU(Z),a.return(Promise.reject(Z)))}})},YF5=function(W){if(!W.hotGlobalConfigGroup||!W.coldGlobalConfigGroup){if(!JL()){var O=Cu("scheduleGetConfigs");
_.HU(O)}W.initJob||(W.initJob=_.sF.addLowPriorityJob(function(){return _.I(function(b){switch(b.nextAddress){case 1:return _.LI(b,2),_.Y(b,lf$(W),4);case 4:_.H3(b,3);break;case 2:_.ID(b);case 3:return _.LI(b,5),_.Y(b,PPS(W),7);case 7:_.H3(b,6);break;case 5:_.ID(b);case 6:W.initJob&&(W.initJob=0),_.aD(b)}})},100))}},y1O=function(W,O,b){var T,L,h;
return _.I(function(Z){switch(Z.nextAddress){case 1:if(!_.e("start_client_gcf")){Z.jumpTo(0);break}b&&If5(W,b);W.setHotHashData(O);T=JL();if(!T){Z.jumpTo(3);break}if(b){Z.jumpTo(4);break}return _.Y(Z,iVT(T),5);case 5:L=Z.yieldResult,b=(h=L)==null?void 0:h.config;case 4:return _.Y(Z,yCO(b,O,T),3);case 3:if(b)for(var a=b,m=_.S(W.configUpdateService.sharedHotConfigJobQueue),w=m.next();!w.done;w=m.next())w=w.value,w(a);_.aD(Z)}})},Wwi=function(W,O,b){var T,L,h,Z;
return _.I(function(a){if(a.nextAddress==1){if(!_.e("start_client_gcf"))return a.jumpTo(0);EOU(W,O);return(T=JL())?b?a.jumpTo(4):_.Y(a,OV1(T),5):a.jumpTo(0)}a.nextAddress!=4&&(L=a.yieldResult,b=(h=L)==null?void 0:h.config);if(!b)return a.jumpTo(0);Z=b.configData;return _.Y(a,WM2(b,O,Z,T),0)})},e$1=function(){var W=wON(),O=(0,_.WO)()-W.debounceTimer;
if(!(W.debounceTimer!==0&&O<_.Lu("send_config_hash_timer"))){O=_.GT("yt.gcf.config.coldConfigData");var b=_.GT("yt.gcf.config.hotHashData"),T=_.GT("yt.gcf.config.coldHashData");O&&b&&T&&(W.debounceTimer=(0,_.WO)());return{coldConfigData:O,hotHashData:b,coldHashData:T}}},ASf=function(W){afH(W,_.Cv("RAW_COLD_CONFIG_GROUP"));
EOU(W,_.Cv("SERIALIZED_COLD_HASH_DATA"));var O;eAN(W,(O=W.coldGlobalConfigGroup)==null?void 0:O.configData)},XOw=function(W){If5(W,_.Cv("RAW_HOT_CONFIG_GROUP"));
W.setHotHashData(_.Cv("SERIALIZED_HOT_HASH_DATA"))},If5=function(W,O){W.hotGlobalConfigGroup=O;
_.c3("yt.gcf.config.hotConfigGroup",W.hotGlobalConfigGroup||null)},afH=function(W,O){W.coldGlobalConfigGroup=O;
_.c3("yt.gcf.config.coldConfigGroup",W.coldGlobalConfigGroup||null)};
vZ.prototype.setHotHashData=function(W){this.hotHashData=W;_.c3("yt.gcf.config.hotHashData",this.hotHashData||null)};
var EOU=function(W,O){W.coldHashData=O;_.c3("yt.gcf.config.coldHashData",W.coldHashData||null)},eAN=function(W,O){W.configData=O;
_.c3("yt.gcf.config.coldConfigData",W.configData||null)},wq=function(){return _.GT("yt.gcf.config.hotConfigGroup")},m8H=function(){return _.GT("yt.gcf.config.coldConfigGroup")};var mY={},pOz=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";mY.assign=function(W){for(var O=Array.prototype.slice.call(arguments,1);O.length;){var b=O.shift();if(b){if(typeof b!=="object")throw new TypeError("Wc`"+b);for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&(W[T]=b[T])}}return W};
mY.shrinkBuf=function(W,O){if(W.length===O)return W;if(W.subarray)return W.subarray(0,O);W.length=O;return W};
var RAn={arraySet:function(W,O,b,T,L){if(O.subarray&&W.subarray)W.set(O.subarray(b,b+T),L);else for(var h=0;h<T;h++)W[L+h]=O[b+h]},
flattenChunks:function(W){var O,b;var T=b=0;for(O=W.length;T<O;T++)b+=W[T].length;var L=new Uint8Array(b);T=b=0;for(O=W.length;T<O;T++){var h=W[T];L.set(h,b);b+=h.length}return L}},KYf={arraySet:function(W,O,b,T,L){for(var h=0;h<T;h++)W[L+h]=O[b+h]},
flattenChunks:function(W){return[].concat.apply([],W)}};
mY.setTyped=function(){pOz?(mY.Buf8=Uint8Array,mY.Buf16=Uint16Array,mY.Buf32=Int32Array,mY.assign(mY,RAn)):(mY.Buf8=Array,mY.Buf16=Array,mY.Buf32=Array,mY.assign(mY,KYf))};
mY.setTyped();var vO$=!0;try{new Uint8Array(1)}catch(W){vO$=!1}
var ieP=function(W){var O,b,T=W.length,L=0;for(O=0;O<T;O++){var h=W.charCodeAt(O);if((h&64512)===55296&&O+1<T){var Z=W.charCodeAt(O+1);(Z&64512)===56320&&(h=65536+(h-55296<<10)+(Z-56320),O++)}L+=h<128?1:h<2048?2:h<65536?3:4}var a=new mY.Buf8(L);for(O=b=0;b<L;O++)h=W.charCodeAt(O),(h&64512)===55296&&O+1<T&&(Z=W.charCodeAt(O+1),(Z&64512)===56320&&(h=65536+(h-55296<<10)+(Z-56320),O++)),h<128?a[b++]=h:(h<2048?a[b++]=192|h>>>6:(h<65536?a[b++]=224|h>>>12:(a[b++]=240|h>>>18,a[b++]=128|h>>>12&63),a[b++]=
128|h>>>6&63),a[b++]=128|h&63);return a};var HV1={};HV1=function(W,O,b,T){var L=W&65535|0;W=W>>>16&65535|0;for(var h;b!==0;){h=b>2E3?2E3:b;b-=h;do L=L+O[T++]|0,W=W+L|0;while(--h);L%=65521;W%=65521}return L|W<<16|0};for(var vO={},AR,gO7=[],oOf=0;oOf<256;oOf++){AR=oOf;for(var Qaf=0;Qaf<8;Qaf++)AR=AR&1?3988292384^AR>>>1:AR>>>1;gO7[oOf]=AR}vO=function(W,O,b,T){b=T+b;for(W^=-1;T<b;T++)W=W>>>8^gO7[(W^O[T])&255];return W^-1};var AS={};AS={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 s5Q=[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],r32=[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],OeP=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],fMi=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],eq=Array(576);dv(eq);var PO=Array(60);dv(PO);var EF=Array(512);dv(EF);var YO=Array(256);dv(YO);var BaP=Array(29);dv(BaP);var Dk2=Array(30);dv(Dk2);var FMe,y38,W_q,c3O=!1;var kO;
kO=[new Qy(0,0,0,0,function(W,O){var b=65535;for(b>W.pending_buf_size-5&&(b=W.pending_buf_size-5);;){if(W.lookahead<=1){gv(W);if(W.lookahead===0&&O===0)return 1;if(W.lookahead===0)break}W.strstart+=W.lookahead;W.lookahead=0;var T=W.block_start+b;if(W.strstart===0||W.strstart>=T)if(W.lookahead=W.strstart-T,W.strstart=T,p9(W,!1),W.strm.avail_out===0)return 1;if(W.strstart-W.block_start>=W.w_size-262&&(p9(W,!1),W.strm.avail_out===0))return 1}W.insert=0;if(O===4)return p9(W,!0),W.strm.avail_out===0?3:
4;W.strstart>W.block_start&&p9(W,!1);return 1}),
new Qy(4,4,8,4,txh),new Qy(4,5,16,8,txh),new Qy(4,6,32,32,txh),new Qy(4,4,16,16,oa),new Qy(8,16,32,32,oa),new Qy(8,16,128,128,oa),new Qy(8,32,128,256,oa),new Qy(32,128,258,1024,oa),new Qy(32,258,258,4096,oa)];var J3X={};J3X=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 be8=Object.prototype.toString;
utT.prototype.push=function(W,O){var b=this.strm,T=this.options.chunkSize;if(this.ended)return!1;var L=O===~~O?O:O===!0?4:0;typeof W==="string"?b.input=ieP(W):be8.call(W)==="[object ArrayBuffer]"?b.input=new Uint8Array(W):b.input=W;b.next_in=0;b.avail_in=b.input.length;do{b.avail_out===0&&(b.output=new mY.Buf8(T),b.next_out=0,b.avail_out=T);W=MxX(b,L);if(W!==1&&W!==0)return k71(this,W),this.ended=!0,!1;if(b.avail_out===0||b.avail_in===0&&(L===4||L===2))if(this.options.to==="string"){var h=mY.shrinkBuf(b.output,
b.next_out);O=h;h=h.length;if(h<65537&&(O.subarray&&vO$||!O.subarray))O=String.fromCharCode.apply(null,mY.shrinkBuf(O,h));else{for(var Z="",a=0;a<h;a++)Z+=String.fromCharCode(O[a]);O=Z}this.chunks.push(O)}else O=mY.shrinkBuf(b.output,b.next_out),this.chunks.push(O)}while((b.avail_in>0||b.avail_out===0)&&W!==1);if(L===4)return(b=this.strm)&&b.state?(T=b.state.status,T!==42&&T!==69&&T!==73&&T!==91&&T!==103&&T!==113&&T!==666?W=Xs(b,-2):(b.state=null,W=T===113?Xs(b,-3):0)):W=-2,k71(this,W),this.ended=
!0,W===0;L===2&&(k71(this,0),b.avail_out=0);return!0};
var k71=function(W,O){O===0&&(W.result=W.options.to==="string"?W.chunks.join(""):mY.flattenChunks(W.chunks));W.chunks=[];W.err=O;W.msg=W.strm.msg};var sa9=typeof TextEncoder!=="undefined"?new TextEncoder:null,Bmh=sa9?function(W){return sa9.encode(W)}:function(W){W=_.P5(W);
for(var O=new Uint8Array(W.length),b=0;b<O.length;b++)O[b]=W[b];return O};var ic8={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},j$1={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var X8=function(W,O){this.version=W;this.args=O};
X8.prototype.serialize=function(){return{version:this.version,args:this.args}};var hgX=function(W,O){this.topic=W;this.dataClass=O};
hgX.prototype.toString=function(){return this.topic};var BvH=_.GT("ytPubsub2Pubsub2Instance")||new _.wO;_.wO.prototype.subscribe=_.wO.prototype.subscribe;_.wO.prototype.unsubscribeByKey=_.wO.prototype.unsubscribeByKey;_.wO.prototype.publish=_.wO.prototype.publish;_.wO.prototype.clear=_.wO.prototype.clear;_.c3("ytPubsub2Pubsub2Instance",BvH);var dX8=_.GT("ytPubsub2Pubsub2SubscribedKeys")||{};_.c3("ytPubsub2Pubsub2SubscribedKeys",dX8);var Zee=_.GT("ytPubsub2Pubsub2TopicToKeys")||{};_.c3("ytPubsub2Pubsub2TopicToKeys",Zee);
var SrX=_.GT("ytPubsub2Pubsub2IsAsync")||{};_.c3("ytPubsub2Pubsub2IsAsync",SrX);_.c3("ytPubsub2Pubsub2SkipSubKey",null);var l5Q=void 0,XSO=void 0;var o9h=_.Lu("max_body_size_to_compress",5E5),QJe=_.Lu("min_body_size_to_compress",500),rv=!0,xXq=0,Df=0,DXT=_.Lu("compression_performance_threshold_lr",250),zgT=_.Lu("slow_compressions_before_abandon_count",4),pSX=!1,RgQ=new Map,sJO=1,kcO=!0;_.Wk(xO,n9e);xO.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 rSU=function(W,O,b){b||(b=0);var T=W.W_;if(typeof O==="string")for(var L=0;L<16;L++)T[L]=O.charCodeAt(b)<<24|O.charCodeAt(b+1)<<16|O.charCodeAt(b+2)<<8|O.charCodeAt(b+3),b+=4;else for(L=0;L<16;L++)T[L]=O[b]<<24|O[b+1]<<16|O[b+2]<<8|O[b+3],b+=4;for(O=16;O<80;O++)b=T[O-3]^T[O-8]^T[O-14]^T[O-16],T[O]=(b<<1|b>>>31)&4294967295;O=W.chain_[0];b=W.chain_[1];L=W.chain_[2];for(var h=W.chain_[3],Z=W.chain_[4],a,m,w=0;w<80;w++)w<40?w<20?(a=h^b&(L^h),m=1518500249):(a=b^L^h,m=1859775393):w<60?(a=b&L|h&(b|L),
m=2400959708):(a=b^L^h,m=3395469782),a=(O<<5|O>>>27)+a+Z+m+T[w]&4294967295,Z=h,h=L,L=(b<<30|b>>>2)&4294967295,b=O,O=a;W.chain_[0]=W.chain_[0]+O&4294967295;W.chain_[1]=W.chain_[1]+b&4294967295;W.chain_[2]=W.chain_[2]+L&4294967295;W.chain_[3]=W.chain_[3]+h&4294967295;W.chain_[4]=W.chain_[4]+Z&4294967295};
xO.prototype.update=function(W,O){if(W!=null){O===void 0&&(O=W.length);for(var b=O-this.blockSize,T=0,L=this.buf_,h=this.inbuf_;T<O;){if(h==0)for(;T<=b;)rSU(this,W,T),T+=this.blockSize;if(typeof W==="string")for(;T<O;){if(L[h]=W.charCodeAt(T),++h,++T,h==this.blockSize){rSU(this,L);h=0;break}}else for(;T<O;)if(L[h]=W[T],++h,++T,h==this.blockSize){rSU(this,L);h=0;break}}this.inbuf_=h;this.total_+=O}};
xO.prototype.digest=function(){var W=[],O=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var b=this.blockSize-1;b>=56;b--)this.buf_[b]=O&255,O/=256;rSU(this,this.buf_);for(b=O=0;b<5;b++)for(var T=24;T>=0;T-=8)W[O]=this.chain_[b]>>T&255,++O;return W};var HeQ;var lZ=function(W){var O=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(A){O.databaseToken=A},
triggerThrottle:function(){O.throttledSend()},
cancelThrottle:function(){O.cancelThrottledSend()},
immediateSend:function(A){return _.I(function(X){return _.Y(X,O.immediateSend(A),0)})},
requestWithinAgeLimit:function(A,X){return O.requestWithinAgeLimit(A,X)},
retryQueuedRequests:function(){O.retryQueuedRequests()}};
var b;this.throttleTimeout=(b=W.throttleTimeout)!=null?b:100;var T;this.retryMaxAttempts=(T=W.retryMaxAttempts)!=null?T:1;var L;this.requestAgeLimitMs=(L=W.requestAgeLimitMs)!=null?L:2592E6;var h;this.queuedRequestAgeLimitMs=(h=W.queuedRequestAgeLimitMs)!=null?h:12E4;var Z;this.retryDelayMs=(Z=W.retryDelayMs)!=null?Z:5E3;var a;this.databaseToken=(a=W.databaseToken)!=null?a:void 0;this.enableCleaning=!!W.enableCleaning;var m;this.cleaningRate=(m=W.cleaningRate)!=null?m:.1;var w;this.potentialEsfErrorLimit=
(w=W.potentialEsfErrorLimit)!=null?w:10;W.handleError&&(this.handleError=W.handleError);W.handleWarning&&(this.handleWarning=W.handleWarning);W.disableYtIdbTransactions&&(this.disableYtIdbTransactions=W.disableYtIdbTransactions);W.bypassDbTokenDependency&&(this.bypassDbTokenDependency=W.bypassDbTokenDependency);this.getBooleanFlag=W.getBooleanFlag;this.jobManager=W.jobManager;this.logsStore=W.logsStore;this.networkManager=W.networkManager;this.sendFn=W.sendFn;this.onlineEvent=W.onlineEvent;this.offlineEvent=
W.offlineEvent;UY(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&D8$(this)},D8$=function(W){UY(W)&&!W.disableYtIdbTransactions&&(W.initialized=!0,W.enableCleaning&&Math.random()<=W.cleaningRate&&W.logsStore.cleanLogsStore(W.databaseToken),W.retryQueuedRequests(),W.networkManager.isNetworkAvailable()&&W.throttledSend(),W.networkManager.listen(W.onlineEvent,W.throttledSend.bind(W)),W.networkManager.listen(W.offlineEvent,W.cancelThrottledSend.bind(W)))};
_.d=lZ.prototype;_.d.writeThenSend=function(W,O){var b=this;O=O===void 0?{}:O;if(UY(this)&&this.initialized){var T={url:W,options:O,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(T,this.databaseToken).then(function(L){T.id=L;b.networkManager.isNetworkAvailable()&&b.immediateSend(T)}).catch(function(L){b.immediateSend(T);
x8q(b,L)})}else this.sendFn(W,O)};
_.d.sendThenWrite=function(W,O,b){var T=this;O=O===void 0?{}:O;if(UY(this)&&this.initialized){var L={url:W,options:O,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(L.skipRetry=b);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!L.skipRetry){if(!L.skipRetry){var h=O.onError?O.onError:function(){};
O.onError=function(Z,a){return _.I(function(m){if(m.nextAddress==1)return _.Y(m,T.logsStore.set(L,T.databaseToken).catch(function(w){x8q(T,w)}),2);
h(Z,a);_.aD(m)})}}this.sendFn(W,O,L.skipRetry)}else this.logsStore.set(L,this.databaseToken).catch(function(Z){T.sendFn(W,O,L.skipRetry);
x8q(T,Z)})}else this.sendFn(W,O,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&b)};
_.d.sendAndWrite=function(W,O){var b=this;O=O===void 0?{}:O;if(UY(this)&&this.initialized){var T={url:W,options:O,timestamp:this.now(),status:"NEW",sendCount:0},L=!1,h=O.onSuccess?O.onSuccess:function(){};
T.options.onSuccess=function(Z,a){T.id!==void 0?b.logsStore.deleteRequest(T.id,b.databaseToken):L=!0;b.networkManager.networkStatusHint&&b.getBooleanFlag&&b.getBooleanFlag("vss_network_hint")&&b.networkManager.networkStatusHint(!0);h(Z,a)};
this.sendFn(T.url,T.options,void 0,!0);this.logsStore.set(T,this.databaseToken).then(function(Z){T.id=Z;L&&b.logsStore.deleteRequest(T.id,b.databaseToken)}).catch(function(Z){x8q(b,Z)})}else this.sendFn(W,O,void 0,!0)};
_.d.throttledSend=function(){var W=this;if(!UY(this))throw Error("Zc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.logsStore.getMostRecentByStatus("NEW",W.databaseToken),2);if(b.nextAddress!=3)return O=b.yieldResult,O?_.Y(b,W.immediateSend(O),3):(W.cancelThrottledSend(),b.return());W.intervalJob&&(W.intervalJob=0,W.throttledSend());_.aD(b)})},this.throttleTimeout))};
_.d.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.d.immediateSend=function(W){var O=this,b;return _.I(function(T){switch(T.nextAddress){case 1:if(!UY(O))throw Error("$c");if(W.id===void 0){T.jumpTo(2);break}return _.Y(T,O.logsStore.markAsQueued(W.id,O.databaseToken),3);case 3:(b=T.yieldResult)||O.handleWarning(Error("ad"));case 2:if(O.requestWithinAgeLimit(W,O.requestAgeLimitMs)){T.jumpTo(4);break}O.handleWarning(Error("bd"));if(W.id===void 0){T.jumpTo(5);break}return _.Y(T,O.logsStore.deleteRequest(W.id,O.databaseToken),5);case 5:return T.return();
case 4:W.skipRetry||(W=zA$(O,W));if(!W){T.jumpTo(0);break}if(!W.skipRetry||W.id===void 0){T.jumpTo(8);break}return _.Y(T,O.logsStore.deleteRequest(W.id,O.databaseToken),8);case 8:O.sendFn(W.url,W.options,!!W.skipRetry),_.aD(T)}})};
var zA$=function(W,O){if(!UY(W))throw Error("cd");var b=O.options.onError?O.options.onError:function(){};
O.options.onError=function(L,h){var Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:Z=MKh(h);(a=uW8(h))&&W.getBooleanFlag&&W.getBooleanFlag("web_enable_error_204")&&W.handleError(Error("dd"),O.url,h);if(!(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&Z||W.getBooleanFlag&&!W.getBooleanFlag("nwl_consider_error_code")&&W.potentialEsfErrorCounter<=W.potentialEsfErrorLimit)){A.jumpTo(2);break}if(!W.networkManager.sendNetworkCheckRequest){A.jumpTo(3);break}return _.Y(A,W.networkManager.sendNetworkCheckRequest(),
3);case 3:if(W.networkManager.isNetworkAvailable()){A.jumpTo(2);break}b(L,h);if(!W.getBooleanFlag||!W.getBooleanFlag("nwl_consider_error_code")||((m=O)==null?void 0:m.id)===void 0){A.jumpTo(6);break}return _.Y(A,W.logsStore.resetRequest(O.id,W.databaseToken,!1),6);case 6:return A.return();case 2:if(W.getBooleanFlag&&W.getBooleanFlag("nwl_consider_error_code")&&!Z&&W.potentialEsfErrorCounter>W.potentialEsfErrorLimit)return A.return();W.potentialEsfErrorCounter++;if(((w=O)==null?void 0:w.id)===void 0){A.jumpTo(8);
break}return O.sendCount<W.retryMaxAttempts?_.Y(A,W.logsStore.resetRequest(O.id,W.databaseToken,!0,a?!1:void 0),12):_.Y(A,W.logsStore.deleteRequest(O.id,W.databaseToken),8);case 12:W.jobManager.addLowPriorityJob(function(){W.networkManager.isNetworkAvailable()&&W.throttledSend()},W.retryDelayMs);
case 8:b(L,h),_.aD(A)}})};
var T=O.options.onSuccess?O.options.onSuccess:function(){};
O.options.onSuccess=function(L,h){var Z;return _.I(function(a){if(a.nextAddress==1)return((Z=O)==null?void 0:Z.id)===void 0?a.jumpTo(2):_.Y(a,W.logsStore.deleteRequest(O.id,W.databaseToken),2);W.networkManager.networkStatusHint&&W.getBooleanFlag&&W.getBooleanFlag("vss_network_hint")&&W.networkManager.networkStatusHint(!0);T(L,h);_.aD(a)})};
return O};
lZ.prototype.requestWithinAgeLimit=function(W,O){W=W.timestamp;return this.now()-W>=O?!1:!0};
lZ.prototype.retryQueuedRequests=function(){var W=this;if(!UY(this))throw Error("ed");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(O){O&&!W.requestWithinAgeLimit(O,W.queuedRequestAgeLimitMs)?W.jobManager.addLowPriorityJob(function(){return _.I(function(b){if(b.nextAddress==1)return O.id===void 0?b.jumpTo(2):_.Y(b,W.logsStore.resetRequest(O.id,W.databaseToken),2);W.retryQueuedRequests();_.aD(b)})}):W.networkManager.isNetworkAvailable()&&W.throttledSend()})};
var x8q=function(W,O){W.writeError&&!W.networkManager.isNetworkAvailable()?W.writeError(O):W.handleError(O)},UY=function(W){return!!W.databaseToken||W.bypassDbTokenDependency};var JH8;var bb2={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520};var CPv={},Lm8=yY("ServiceWorkerLogsDatabase",{objectStores:(CPv.SWHealthLog={addedAtVersion:1},CPv),shared:!0,upgrade:function(W,O){O(1)&&n9(q8(W,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var YP8={},mde=0;var XhX;var eO=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},N8=function(){if(!eO.instance){var W=_.GT("yt.networkRequestMonitor.instance")||new eO;
_.c3("yt.networkRequestMonitor.instance",W);eO.instance=W}return eO.instance};
eO.prototype.requestComplete=function(W,O){O&&(this.anyRequestHasSucceeded=!0);W=this.removeParams(W);this.requestMap.get(W)||this.requestMap.set(W,O)};
eO.prototype.isEndpointCFR=function(W){W=this.removeParams(W);return(W=this.requestMap.get(W))?!1:W===!1&&this.anyRequestHasSucceeded?!0:null};
eO.prototype.removeParams=function(W){return W.split("?")[0]};
eO.prototype.removeParams=eO.prototype.removeParams;eO.prototype.isEndpointCFR=eO.prototype.isEndpointCFR;eO.prototype.requestComplete=eO.prototype.requestComplete;eO.getInstance=N8;var PT=function(W){_.ER.call(this);var O=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=W!=null?W:{addLowPriorityJob:function(L,h){return setTimeout(L,h)},
cancelJob:function(L){clearTimeout(L)}};
var b,T;this.isOnline=(T=(b=window.navigator)==null?void 0:b.onLine)!=null?T:!0;this.onNavigatorChange=function(){return _.I(function(L){return _.Y(L,qFz(O),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||nOL(this)};
_.R(PT,_.ER);PT.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete PT.instance};
PT.prototype.isNetworkAvailable=function(){return this.isOnline};
var nOL=function(W){W.pollingJob=W.jobManager.addLowPriorityJob(function(){var O;return _.I(function(b){if(b.nextAddress==1)return W.isOnline?((O=window.navigator)==null?0:O.onLine)?b.jumpTo(3):_.Y(b,qFz(W),3):_.Y(b,qFz(W),3);nOL(W);_.aD(b)})},3E4)},qFz=function(W,O){return W.networkRequestPromise?W.networkRequestPromise:W.networkRequestPromise=new Promise(function(b){var T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:return T=window.AbortController?new window.AbortController:void 0,h=(L=T)==null?void 0:L.signal,Z=!1,_.LI(a,2,3),T&&(W.abortTimeoutKey=W.jobManager.addLowPriorityJob(function(){T.abort()},O||2E4)),_.Y(a,fetch("/generate_204",{method:"HEAD",
signal:h}),5);case 5:Z=!0;case 3:_.hx(a);W.networkRequestPromise=void 0;W.abortTimeoutKey&&(W.jobManager.cancelJob(W.abortTimeoutKey),W.abortTimeoutKey=0);Z!==W.isOnline&&(W.isOnline=Z,W.isOnline?W.dispatchEvent("networkstatus-online"):W.dispatchEvent("networkstatus-offline"));b(Z);_.Zh(a,0);break;case 2:_.ID(a),Z=!1,a.jumpTo(3)}})})};var pc=function(){_.ER.call(this);var W=this;this.shouldFlushErrors=!1;PT.instance||(PT.instance=new PT(_.sF));this.sharedNetworkStatusManager=PT.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(W.shouldFlushErrors&&_.e("offline_error_handling")){var O=Udq().get("errors",!0);if(O){for(var b in O)if(O[b]){var T=new _.pu(b,"sent via offline_errors");T.name=O[b].name;T.stack=O[b].stack;T.level=O[b].level;_.nv(T)}Udq().set("errors",{},2592E3,!0)}}})};
_.R(pc,_.ER);var ff5=function(){if(!pc.instance){var W=_.GT("yt.networkStatusManager.instance")||new pc;_.c3("yt.networkStatusManager.instance",W);pc.instance=W}return pc.instance};
_.d=pc.prototype;_.d.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.d.networkStatusHint=function(W){this.sharedNetworkStatusManager.isOnline=W};
_.d.getWindowStatus=function(){var W=window.navigator.onLine;return W===void 0?!0:W};
_.d.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.d.listen=function(W,O){return this.sharedNetworkStatusManager.listen(W,O)};
_.d.sendNetworkCheckRequest=function(W){W=qFz(this.sharedNetworkStatusManager,W);W.then(function(O){_.e("use_cfr_monitor")&&N8().requestComplete("generate_204",O)});
return W};
pc.prototype.sendNetworkCheckRequest=pc.prototype.sendNetworkCheckRequest;pc.prototype.listen=pc.prototype.listen;pc.prototype.enableErrorFlushing=pc.prototype.enableErrorFlushing;pc.prototype.getWindowStatus=pc.prototype.getWindowStatus;pc.prototype.networkStatusHint=pc.prototype.networkStatusHint;pc.prototype.isNetworkAvailable=pc.prototype.isNetworkAvailable;pc.getInstance=ff5;_.Vy=function(W){W=W===void 0?{}:W;_.ER.call(this);var O=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=ff5();var b=_.GT("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);b&&(W.rateLimit?(this.rateLimit=W.rateLimit,b("networkstatus-online",function(){G75(O,"publicytnetworkstatus-online")}),b("networkstatus-offline",function(){G75(O,"publicytnetworkstatus-offline")})):(b("networkstatus-online",function(){O.dispatchEvent("publicytnetworkstatus-online")}),b("networkstatus-offline",
function(){O.dispatchEvent("publicytnetworkstatus-offline")})))};
_.R(_.Vy,_.ER);_.Vy.prototype.isNetworkAvailable=function(){var W=_.GT("yt.networkStatusManager.instance.isNetworkAvailable");return W?W.bind(this.nsmInstance)():!0};
_.Vy.prototype.networkStatusHint=function(W){var O=_.GT("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);O&&O(W)};
_.Vy.prototype.sendNetworkCheckRequest=function(W){var O=this,b;return _.I(function(T){b=_.GT("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(O.nsmInstance);return _.e("skip_network_check_if_cfr")&&N8().isEndpointCFR("generate_204")?T.return(new Promise(function(L){var h;O.networkStatusHint(((h=window.navigator)==null?void 0:h.onLine)||!0);L(O.isNetworkAvailable())})):b?T.return(b(W)):T.return(!0)})};
var G75=function(W,O){W.rateLimit?W.lastJobTime?(_.sF.cancelJob(W.schedulerJob),W.schedulerJob=_.sF.addLowPriorityJob(function(){W.lastPublicSignalSent!==O&&(W.dispatchEvent(O),W.lastPublicSignalSent=O,W.lastJobTime=(0,_.WO)())},W.rateLimit-((0,_.WO)()-W.lastJobTime))):(W.dispatchEvent(O),W.lastPublicSignalSent=O,W.lastJobTime=(0,_.WO)()):W.dispatchEvent(O)};var R3X,R$=function(){lZ.call(this,{logsStore:{cleanLogsStore:juX,deleteRequest:b_q,getMostRecentByStatus:WmX,markAsQueued:O_8,resetRequest:i_X,set:yH8},networkManager:_.Kmi(),handleError:function(W,O,b){var T,L=b==null?void 0:(T=b.error)==null?void 0:T.code;if(L===400||L===415){var h;W=new _.pu(W.message,O,b==null?void 0:(h=b.error)==null?void 0:h.code);_.HU(W,void 0,void 0,void 0,!0)}else _.nv(W)},
handleWarning:_.HU,sendFn:P8e,now:_.WO,writeError:lrT,jobManager:_.KD(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.Lu("potential_esf_error_limit",10),getBooleanFlag:_.e,disableYtIdbTransactions:!(_.P3()&&_.v1X())});this.initializationPromise=new _.S4;_.e("networkless_immediately_drop_all_requests")&&TET();u9Q("LogsDatabaseV2")};
_.R(R$,lZ);_.tqH=function(){var W=_.GT("yt.networklessRequestController.instance");W||(W=new R$,_.c3("yt.networklessRequestController.instance",W),_.e("networkless_logging")&&_.Fq().then(function(O){W.databaseToken=O;D8$(W);W.initializationPromise.resolve();W.enableCleaning&&Math.random()<=W.cleaningRate&&W.databaseToken&&h3h(W.databaseToken);_.e("networkless_immediately_drop_sw_health_store")&&H97(W)}));
return W};
R$.prototype.writeThenSend=function(W,O){O||(O={});O=phE(W,O);_.P3()||(this.initialized=!1);lZ.prototype.writeThenSend.call(this,W,O)};
R$.prototype.sendThenWrite=function(W,O,b){O||(O={});O=phE(W,O);_.P3()||(this.initialized=!1);lZ.prototype.sendThenWrite.call(this,W,O,b)};
R$.prototype.sendAndWrite=function(W,O){O||(O={});O=phE(W,O);_.P3()||(this.initialized=!1);lZ.prototype.sendAndWrite.call(this,W,O)};
R$.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var H97=function(W){var O;_.I(function(b){if(!W.databaseToken)throw O=Cu("clearSWHealthLogsDb"),O;return b.return(SP8(W.databaseToken).catch(function(T){W.handleError(T)}))})};_.o1h=!1;_.g1i=_.i1.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.o1h};_.c3("ytNetworklessLoggingInitializationOptions",_.g1i);var sm=function(W){var O=this;this.config_=null;W?this.config_=W:j5P()&&(this.config_=_.iP());_.KB(_.sF,function(){NmE(O)},5E3)};
sm.prototype.isReady=function(){!this.config_&&j5P()&&(this.config_=_.iP());return!!this.config_};
var VK8=function(W,O,b,T){!_.Cv("VISITOR_DATA")&&O!=="visitor_id"&&Math.random()<.01&&_.HU(new _.pu("Missing VISITOR_DATA when sending innertube request.",O,b,T));if(!W.isReady()){var L=new _.pu("innertube xhrclient not ready",O,b,T);_.nv(L);throw L;}var h={headers:T.headers||{},method:"POST",postParams:b,postBody:T.postBody,postBodyFormat:T.postBodyFormat||"JSON",onTimeout:function(){T.onTimeout()},
onFetchTimeout:T.onTimeout,onSuccess:function(X,l){if(T.onSuccess)T.onSuccess(l)},
onFetchSuccess:function(X){if(T.onSuccess)T.onSuccess(X)},
onError:function(X,l){if(T.onError)T.onError(l)},
onFetchError:function(X){if(T.onError)T.onError(X)},
timeout:T.timeout,withCredentials:!0,compress:T.compress};h.headers["Content-Type"]||(h.headers["Content-Type"]="application/json");var Z="";(L=W.config_.innertubeHostOverride)&&(Z=L);var a=W.config_.innertubeUseThirdPartyAuth||!1,m=_.lMQ(a,Z,T);Object.assign(h.headers,m);h.headers.Authorization&&!Z&&a&&(h.headers["x-origin"]=window.location.origin);var w=_.MC(Z+("/youtubei/"+W.config_.innertubeApiVersion+"/"+O),{alt:"json"}),A=function(X){X=X===void 0?!1:X;var l;if(T.retry&&Z!="www.youtube-nocookie.com"&&
(X||_.e("skip_ls_gel_retry")||h.headers["Content-Type"]!=="application/json"||(l=tK8(O,b,m,a)),l)){var p=h.onSuccess,K=h.onFetchSuccess;h.onSuccess=function(q,f){$Xi(l);p(q,f)};
b.onFetchSuccess=function(q,f){$Xi(l);K(q,f)}}try{if(X&&T.retry&&!T.networklessOptions.bypassNetworkless)h.method="POST",T.networklessOptions.writeThenSend?_.tqH().writeThenSend(w,h):_.tqH().sendAndWrite(w,h);
else if(T.compress){var k=!T.networklessOptions.writeThenSend;if(h.postBody){var r=h.postBody;typeof r!=="string"&&(r=JSON.stringify(h.postBody));rHX(w,r,h,_.Yv,k)}else rHX(w,JSON.stringify(h.postParams),h,nFX,k)}else _.e("web_all_payloads_via_jspb")?_.Yv(w,h):nFX(w,h)}catch(q){if(q.name==="InvalidAccessError")l&&($Xi(l),l=0),_.HU(Error("fd"));else throw q;}l&&_.KB(_.sF,function(){NmE(W)},5E3)};
_.Quh()?fuT().then(function(X){A(X)}):A(!1)};var snq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(snq,_.qA);var $8f=0,suq=_.Lf?"webkit":_.TR?"moz":_.jb?"ms":XfX?"o":"";_.c3("ytDomDomGetNextId",_.GT("ytDomDomGetNextId")||function(){return++$8f});var VqL={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},yy=function(W){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(W=
W||window.event){this.event=W;for(var O in W)O in VqL||(this[O]=W[O]);this.scale=W.scale;this.rotation=W.rotation;var b=W.target||W.srcElement;b&&b.nodeType==3&&(b=b.parentNode);this.target=b;var T=W.relatedTarget;if(T)try{T=T.nodeName?T:null}catch(L){T=null}else this.type=="mouseover"?T=W.fromElement:this.type=="mouseout"&&(T=W.toElement);this.relatedTarget=T;this.clientX=W.clientX!=void 0?W.clientX:W.pageX;this.clientY=W.clientY!=void 0?W.clientY:W.pageY;this.keyCode=W.keyCode?W.keyCode:W.which;
this.charCode=W.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=W.altKey;this.ctrlKey=W.ctrlKey;this.shiftKey=W.shiftKey;this.metaKey=W.metaKey;this.pageX_=W.pageX;this.pageY_=W.pageY}}catch(L){}},NvS=function(W){if(document.body&&document.documentElement){var O=document.body.scrollTop+document.documentElement.scrollTop;
W.pageX_=W.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);W.pageY_=W.clientY+O}};
yy.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
yy.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
yy.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Fs=_.i1.ytEventsEventsListeners||{};_.c3("ytEventsEventsListeners",Fs);var C8X=_.i1.ytEventsEventsCounter||{count:0};_.c3("ytEventsEventsCounter",C8X);var qPP=_.Yl(function(){var W=!1;try{var O=Object.defineProperty({},"capture",{get:function(){W=!0}});
window.addEventListener("test",null,O)}catch(b){}return W});_.Wk(Om,_.R8);Om.prototype.onMouseMove_=function(W){W.pageX_===void 0&&NvS(W);var O=W.pageX_;W.pageY_===void 0&&NvS(W);this.position_=new _.Kw(O,W.pageY_)};
Om.prototype.checkPosition_=function(){if(this.position_){var W=(0,_.WO)();if(this.previousTime_!=0){var O=this.previousPosition_,b=this.position_,T=O.x-b.x;O=O.y-b.y;T=Math.sqrt(T*T+O*O)/(W-this.previousTime_);this.cycles_[this.index_]=Math.abs((T-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(b=O=0;b<4;b++)O+=this.cycles_[b]||0;O>=3&&this.callback_();this.previousVelocity_=T}this.previousTime_=W;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Om.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.n12(this.mouseListenerKey_)};var t48={};var F5X=new _.J("rawColdConfigGroup");var c1q=new _.J("rawHotConfigGroup");var MqL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(MqL,_.qA);var khX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(khX,_.qA);var R1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W,500)};
_.R(R1,_.qA);R1.prototype.getPayloadCase=function(){return _.U3(this,usn)};
R1.prototype.getContext=function(){return _.bP(this,khX,33)};
var usn=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520];var $eQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R($eQ,_.qA);var lQO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(lQO,_.qA);lQO.prototype.setVideoId=function(W){return YG(this,1,eX2,nU(W))};
lQO.prototype.getPlaylistId=function(){return _.wD(this,eN(this,eX2,2))};
var eX2=[1,2];var qlO=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(qlO,_.qA);qlO.prototype.getContext=function(){return _.bP(this,Em,1)};
qlO.prototype.getTier=function(){return _.gQ(this,7)};var JS1,T5,LB;JS1=_.i1.ytPubsubPubsubInstance||new _.wO;T5=_.i1.ytPubsubPubsubSubscribedKeys||{};LB=_.i1.ytPubsubPubsubTopicToKeys||{};_.$dT=_.i1.ytPubsubPubsubIsSynchronous||{};_.wO.prototype.subscribe=_.wO.prototype.subscribe;_.wO.prototype.unsubscribeByKey=_.wO.prototype.unsubscribeByKey;_.wO.prototype.publish=_.wO.prototype.publish;_.wO.prototype.clear=_.wO.prototype.clear;_.c3("ytPubsubPubsubInstance",JS1);_.c3("ytPubsubPubsubTopicToKeys",LB);_.c3("ytPubsubPubsubIsSynchronous",_.$dT);
_.c3("ytPubsubPubsubSubscribedKeys",T5);var h8=window;var Kc=_.e("web_enable_lifecycle_monitoring")&&Joi()!==0,cS$=_.e("web_enable_lifecycle_monitoring");var ySU=function(W){var O=this;var b=b===void 0?0:b;var T=T===void 0?_.KD():T;this.JSC$8812_defaultPriority=b;this.scheduler=T;this.completedResolver=new _.S4;this.scheduledPayloads=W;for(W={i$jscomp$529:0};W.i$jscomp$529<this.scheduledPayloads.length;W={payload$jscomp$18:void 0,i$jscomp$529:W.i$jscomp$529},W.i$jscomp$529++)W.payload$jscomp$18=this.scheduledPayloads[W.i$jscomp$529],b=function(L){return function(){L.payload$jscomp$18.job();O.scheduledPayloads[L.i$jscomp$529].processed=!0;O.scheduledPayloads.every(function(h){return h.processed===
!0})&&O.completedResolver.resolve()}}(W),T=this.scheduler.addJob(b,FY7(this,W.payload$jscomp$18)),this.scheduledPayloads[W.i$jscomp$529]=Object.assign({},W.payload$jscomp$18,{job:b,
jobId:T})};
ySU.prototype.flushJobs=function(){var W=this,O=Array.from(this.scheduledPayloads.keys()).sort(function(T,L){return FY7(W,W.scheduledPayloads[L])-FY7(W,W.scheduledPayloads[T])});
O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=this.scheduledPayloads[b.value],b.jobId===void 0||b.processed||(this.scheduler.cancelJob(b.jobId),this.scheduler.addJob(b.job,10))};
ySU.prototype.cancel=function(){for(var W=_.S(this.scheduledPayloads),O=W.next();!O.done;O=W.next())O=O.value,O.jobId===void 0||O.processed||this.scheduler.cancelJob(O.jobId),O.processed=!0;this.completedResolver.resolve()};
var FY7=function(W,O){var b;return(b=O.priority)!=null?b:W.JSC$8812_defaultPriority};var vT=function(W){this.state=W;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Kc&&co2(this.state)};
vT.prototype.install=function(W){this.plugins.push(W);return this};
vT.prototype.uninstall=function(){var W=this;_.PD.apply(0,arguments).forEach(function(O){O=W.plugins.indexOf(O);O>-1&&W.plugins.splice(O,1)})};
vT.prototype.transition=function(W,O){var b=this;Kc&&FmX(this.state);var T=this.transitions.find(function(h){return Array.isArray(h.from)?h.from.find(function(Z){return Z===b.state&&h.to===W}):h.from===b.state&&h.to===W});
if(T){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);WJn(this,W,O);this.state=W;Kc&&co2(this.state);T=T.action.bind(this);var L=this.plugins.filter(function(h){return h[W]}).map(function(h){return h[W]});
T(OBL(this,L),O)}else throw Error("gd`"+this.state+"`"+W);};
var OBL=function(W,O){var b=O.filter(function(L){return iBn(W,L)===10}),T=O.filter(function(L){return iBn(W,L)!==10});
return W.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var L=_.PD.apply(0,arguments);return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.runImmediateJobsAsync.apply(W,[b].concat(_.PG(L))),2);W.setJobSetWithScheduledJobs.apply(W,[T].concat(_.PG(L)));_.aD(h)})}:function(){var L=_.PD.apply(0,arguments);
W.runImmediateJobsSync.apply(W,[b].concat(_.PG(L)));W.setJobSetWithScheduledJobs.apply(W,[T].concat(_.PG(L)))}};
vT.prototype.runImmediateJobsSync=function(W){var O=_.PD.apply(1,arguments);_.KD();for(var b=_.S(W),T=b.next(),L={};!T.done;L={lifecycle$jscomp$2:void 0},T=b.next())L.lifecycle$jscomp$2=T.value,Ld(function(h){return function(){bBf(h.lifecycle$jscomp$2.name);W5i(function(){return h.lifecycle$jscomp$2.callback.apply(h.lifecycle$jscomp$2,_.PG(O))});
gq(h.lifecycle$jscomp$2.name)}}(L))};
vT.prototype.runImmediateJobsAsync=function(W){var O=_.PD.apply(1,arguments),b,T,L,h;return _.I(function(Z){Z.nextAddress==1&&(_.KD(),b=_.S(W),T=b.next(),L={});if(Z.nextAddress!=3){if(T.done)return Z.jumpTo(0);L.lifecycle$jscomp$3=T.value;L.asyncJobCompletion=void 0;h=function(a){return function(){bBf(a.lifecycle$jscomp$3.name);var m=W5i(function(){return a.lifecycle$jscomp$3.callback.apply(a.lifecycle$jscomp$3,_.PG(O))});
Jh8(m)?a.asyncJobCompletion=_.e("web_lifecycle_error_handling_killswitch")?m.then(function(){gq(a.lifecycle$jscomp$3.name)}):m.then(function(){gq(a.lifecycle$jscomp$3.name)},function(w){yoE(w);
gq(a.lifecycle$jscomp$3.name)}):gq(a.lifecycle$jscomp$3.name)}}(L);
Ld(h);return L.asyncJobCompletion?_.Y(Z,L.asyncJobCompletion,3):Z.jumpTo(3)}L={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};T=b.next();return Z.jumpTo(2)})};
vT.prototype.setJobSetWithScheduledJobs=function(W){var O=_.PD.apply(1,arguments),b=this,T=W.map(function(L){return{job:function(){bBf(L.name);W5i(function(){return L.callback.apply(L,_.PG(O))});
gq(L.name)},
priority:iBn(b,L)}});
T.length&&(this.jobSet=new ySU(T))};
var iBn=function(W,O){var b,T;return(T=(b=W.overridePriority)!=null?b:O.priority)!=null?T:0},bBf=function(W){Kc&&W&&co2(W)},gq=function(W){Kc&&W&&FmX(W)},WJn=function(W,O,b){cS$&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+W.constructor.name+"] '"+W.state+"' to '"+O+"'"),console.log("with message: ",b),console.groupEnd())};
_.Jq.Object.defineProperties(vT.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var j19=function(W){vT.call(this,W===void 0?"none":W);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(){}}]},Tew;
_.R(j19,vT);j19.prototype.runApplicationNavigationBegin=function(W,O){var b=this;this.navigationTimer=_.KB(_.sF,function(){b.currentState==="application_navigating"&&b.transition("none")},5E3);
W(O==null?void 0:O.event)};
j19.prototype.runApplicationNavigationEnd=function(W,O){this.navigationTimer&&(_.sF.cancelJob(this.navigationTimer),this.navigationTimer=null);W(O==null?void 0:O.event)};
_.J12=function(){Tew||(Tew=new j19);return Tew};var uTX=[];_.c3("yt.logging.transport.getScrapedGelPayloads",function(){return uTX});var SN=function(){var W=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return W.totalEntries}}};
SN.prototype.storePayload=function(W,O){W=O2E(W);this.store[W]?this.store[W].push(O):(this.memoizedKeySequences={},this.store[W]=[O]);this.totalEntries++;_.e("more_accurate_gel_parser")&&(O=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(O));return W};
SN.prototype.smartExtractMatchingEntries=function(W){if(!W.keys.length)return[];for(var O=LJL(this,W.keys.splice(0,1)[0]),b=[],T=0;T<O.length;T++)this.store[O[T]]&&W.sizeLimit&&(this.store[O[T]].length<=W.sizeLimit?(b.push.apply(b,_.PG(this.store[O[T]])),delete this.store[O[T]]):b.push.apply(b,_.PG(this.store[O[T]].splice(0,W.sizeLimit))));this.totalEntries-=b.length;(W==null?0:W.sizeLimit)&&b.length<(W==null?void 0:W.sizeLimit)&&(W.sizeLimit-=b.length,b.push.apply(b,_.PG(this.smartExtractMatchingEntries(W))));
return b};
SN.prototype.extractMatchingEntries=function(W){W=LJL(this,W);for(var O=[],b=0;b<W.length;b++)this.store[W[b]]&&(O.push.apply(O,_.PG(this.store[W[b]])),delete this.store[W[b]]);this.totalEntries-=O.length;return O};
SN.prototype.getSequenceCount=function(W){W=LJL(this,W);for(var O=0,b=0;b<W.length;b++){var T=void 0;O+=((T=this.store[W[b]])==null?void 0:T.length)||0}return O};
var LJL=function(W,O){var b=O2E(O);if(W.memoizedKeySequences[b])return W.memoizedKeySequences[b];var T=Object.keys(W.store)||[];if(T.length<=1&&O2E(O)===T[0])return T;for(var L=[],h=0;h<T.length;h++){var Z=T[h].split("/");if(dJ5(O.auth,Z[0])){var a=O.isJspb;dJ5(a===void 0?"undefined":a?"true":"false",Z[1])&&dJ5(O.cttAuthInfo,Z[2])&&(a=O.tier,a=a===void 0?"undefined":JSON.stringify(a),dJ5(a,Z[3])&&L.push(T[h]))}}return W.memoizedKeySequences[b]=L},dJ5=function(W,O){return W===void 0||W==="undefined"?
!0:W===O};
SN.prototype.getSequenceCount=SN.prototype.getSequenceCount;SN.prototype.extractMatchingEntries=SN.prototype.extractMatchingEntries;SN.prototype.smartExtractMatchingEntries=SN.prototype.smartExtractMatchingEntries;SN.prototype.storePayload=SN.prototype.storePayload;var k0h,oI1,si8,a1,hWw,ibQ,Obi,gIT,vIX,EIe,QiT,NiX,p_8;k0h=_.Lu("initial_gel_batch_timeout",2E3);oI1=_.Lu("gel_queue_timeout_max_ms",6E4);si8=_.Lu("gel_min_batch_size",5);a1=void 0;hWw=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
ibQ=new hWw;Obi=new hWw;gIT=new hWw;vIX=new hWw;QiT=!0;NiX=1;_.VlQ=new Map;p_8=_.i1.ytLoggingTransportTokensToCttTargetIds_||{};_.c3("ytLoggingTransportTokensToCttTargetIds_",p_8);var PmQ=_.i1.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.c3("ytLoggingTransportTokensToJspbCttTargetIds_",PmQ);var I1={};var Qj=_.i1.ytLoggingGelSequenceIdObj_||{};_.c3("ytLoggingGelSequenceIdObj_",Qj);var Lw2=[];var XiX=new Set,I62=0,PjQ=0,eb8=0,mqT=[],a6e=[],pi2=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var zb8=function(){};
zb8.prototype.getUrl=function(W,O){O=O===void 0?!1:O;return W.hasOwnProperty("shareEndpoint")?null:_.gyi(W,null,O)};
var Qj2=function(W,O,b){W={endpoint:O,actions:[]};b=(b.path?b.path[0]:b.target).icon||"";O=b.indexOf(":");O>0&&(b=b.substr(O+1));b&&W.actions.push(b);return W};var r4T=/Command$/,BG8=/Endpoint$/,Qx8=new Map;var SmL,ZBq;SmL=1;_.$G=function(){this.actionRoutingMap=new Map};
_.$G.prototype.triggerAction=function(W){var O=new dVX(W,!1,_.PD.apply(1,arguments));this.handleAction(O);return O.returnValue};
_.$G.prototype.triggerOptionalAction=function(W){var O=new dVX(W,!0,_.PD.apply(1,arguments));this.handleAction(O);return O.returnValue};
_.o$=function(W,O,b){O.forEach(function(T){var L=sx8(T);L&&W.triggerOptionalAction(L,T,b,void 0)})};
_.$G.prototype.handleAction=function(W){var O=this.actionRoutingMap.get(W.actionName);O&&ZBq(W,O);W.optionalAction||W.returnValue.length!==0||(W=new _.pu("Unhandled action",W.actionName),_.HU(W))};
ZBq=function(W,O){O.forEach(function(b){var T=null;b?T=b.apply(null,W.args):(b=Error("hd"),b.params=W.actionName,_.nv(b));W.returnValue.push(T)})};
_.Vj=function(W,O,b){b||(b=SmL++);for(var T=_.S(Object.keys(O)),L=T.next();!L.done;L=T.next()){L=L.value;var h=W.actionRoutingMap.get(L);h||(h=new Map,W.actionRoutingMap.set(L,h));W.registerActionHandler(b,L,O[L],h)}return b};
_.$G.prototype.registerActionHandler=function(W,O,b,T){T.set(W,_.fv(b))};
_.NJ=function(W,O,b){O=_.S(Object.keys(O));for(var T=O.next();!T.done;T=O.next())(T=W.actionRoutingMap.get(T.value))&&T.delete(b)};
_.Fv(_.$G);var nye=function(W,O){var b=_.$G.getInstance();_.kX(function(){var T={},L=_.Vj(b,(T[W]=O,T));_.so(function(){var h={};_.NJ(b,(h[W]="",h),L)})})};cST=pZe;var Odi=new Set(["For","If","Match","Watch"]),Itz={},atH=(Itz[qr.default]=function(){return $81},Itz.style=function(){return $81},Itz),mJw;
for(mJw in atH)du.attributes[mJw]=atH[mJw](du.attributes[mJw]);var O0=new _.MV("VISIBILITY_OBSERVER");var I38={retrieve:function(W){return this.id.\u0275prov.token===W.\u0275prov.token?this.contextValue:this?K3Q(this,this.id):Rh8}};var Ym7=function(W,O,b){if(W!==cZ)return!1;W=uFT(document.createElement("div"),function(){var T=Lv(!1);try{b[0]()}finally{Lv(T)}});
W=Array.from(W.childNodes);W.length===1&&(W=W[0]);return W};var EG7=function(W){W=W.clone();GPL(W);E$(W,"dg",null);E$(W,"d","0");CJ9(W,null);qVN(W,null);return W},wZ7=!0,A85=function(W,O,b){var T=b===void 0?{}:b;
b=T.cssRowKey===void 0?void 0:T.cssRowKey;var L=T.combinedSignature===void 0?void 0:T.combinedSignature;var h=T.extraEdges===void 0?void 0:T.extraEdges;T=T.callback===void 0?void 0:T.callback;E$(W,"m",O.join(","));h&&fN$(W,h);b&&(E$(W,"ck",b),L?E$(W,"rs",L):wZ7&&(wZ7=!1));if(T){if(T!=null&&!$9q.test(T))throw Error("ab`"+T);E$(W,"cb",T)}W=W.toString();_.LE(W,"/")&&(W=v$U(document.location.href)+W);return _.SL(W)};var UJz=function(W){return XZf(W).then(function(O){return JSON.parse(O.responseText)})},XZf=function(W){var O={},b=O.xmlHttpFactory?O.xmlHttpFactory.createInstance():dIf.createInstance();
return(new _.mJ(function(T,L){var h;try{b.open("GET",W,!0)}catch(m){L(new Qb("Error opening XHR: "+m.message,W,b))}b.onreadystatechange=function(){if(b.readyState==4){_.i1.clearTimeout(h);var m;!(m=Lj5(b.status))&&(m=b.status===0)&&(m=KnH(W),m=!(m=="http"||m=="https"||m==""));m?T(b):L(new ltw(b.status,W,b))}};
b.onerror=function(){L(new Qb("Network error",W,b))};
if(O.headers)for(var Z in O.headers){var a=O.headers[Z];a!=null&&b.setRequestHeader(Z,a)}O.withCredentials&&(b.withCredentials=O.withCredentials);O.responseType&&(b.responseType=O.responseType);O.mimeType&&b.overrideMimeType(O.mimeType);O.timeoutMs>0&&(h=_.i1.setTimeout(function(){b.onreadystatechange=function(){};
b.abort();L(new eWv(W,b))},O.timeoutMs));
try{b.send(null)}catch(m){b.onreadystatechange=function(){},_.i1.clearTimeout(h),L(new Qb("Error sending XHR: "+m.message,W,b))}})).thenCatch(function(T){T instanceof _.$N&&b.abort();
throw T;})},Qb=function(W,O,b){_.W2.call(this,W+", url="+O);
this.url=O;this.xhr=b};
_.Wk(Qb,_.W2);Qb.prototype.name="XhrError";var ltw=function(W,O,b){Qb.call(this,"Request Failed, status="+W,O,b);this.status=W};
_.Wk(ltw,Qb);ltw.prototype.name="XhrHttpError";var eWv=function(W,O){Qb.call(this,"Request timed out",W,O)};
_.Wk(eWv,Qb);eWv.prototype.name="XhrTimeoutError";cR=cR||{};var kg=function(){_.R8.call(this)};
_.Wk(kg,_.R8);kg.prototype.initialize=function(){};var Py7=function(W,O){this.fn_=W;this.handler_=O};
Py7.prototype.execute=function(W){this.fn_&&(this.fn_.call(this.handler_||null,W),this.fn_=this.handler_=null)};
Py7.prototype.abort=function(){this.handler_=this.fn_=null};var sY=function(W,O){_.R8.call(this);this.deps_=W;this.JSC$8939_id_=O;this.onloadCallbacks_=[];this.JSC$8939_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Wk(sY,_.R8);sY.prototype.moduleConstructor_=kg;sY.prototype.module_=null;sY.prototype.getId=function(){return this.JSC$8939_id_};
sY.prototype.registerCallback=function(W,O){return pZv(this.onloadCallbacks_,W,O)};
var RW1=function(W,O){pZv(W.JSC$8939_onErrorCallbacks_,O)},pZv=function(W,O,b){O=new Py7(O,b);
W.push(O);return O};
sY.prototype.isLoaded=function(){return!!this.module_};
sY.prototype.onLoad=function(W){var O=new this.moduleConstructor_;O.initialize(W());this.module_=O;O=(O=KJf(this.earlyOnloadCallbacks_,W()))||KJf(this.onloadCallbacks_,W());O||(this.JSC$8939_onErrorCallbacks_.length=0);return O};
sY.prototype.onError=function(W){(W=KJf(this.JSC$8939_onErrorCallbacks_,W))&&b1(Error("nd`"+W));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var KJf=function(W,O){for(var b=[],T=0;T<W.length;T++)try{W[T].execute(O)}catch(L){b1(L),b.push(L)}W.length=0;return b.length?b:null};
sY.prototype.disposeInternal=function(){sY.superClass_.disposeInternal.call(this);_.JU(this.module_)};var vG5,Ben,k5N,s11,oGv,Q1v,CyN,xJw,zWS;
_.rq=function(W,O,b,T,L){T=T===void 0?!1:T;L=L===void 0?!1:L;var h=h===void 0?!0:h;this.scsReferenceUrl_=LS(_.Zd(W).toString(),h);this.cssRowKey_=O;this.combinedSignature_=b;this.useNegativeLoading_=T;this.requestedModuleMap_={};this.JSC$8942_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(W=YB(this.scsReferenceUrl_,"excm"))?W.split(","):[];this.shouldScanForCss_=L;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;$CX();this.logger=null;_.BT(this,n6U(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
vG5=function(W,O){if(O.href||O.getAttribute("data-href"))if(O=O.href||O.getAttribute("data-href"),fke(O)&&!LS(O).urlPrefix_.endsWith("_/js/")){O=n6U(LS(O));O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,W.loadedCssModuleList_.includes(b)||W.loadedCssModuleList_.push(b)}};
_.rq.prototype.JSC$8944_loadModules=function(W,O,b){var T=b===void 0?{}:b;b=T.extraEdges;var L=T.onError;var h=T.onSuccess;T=T.forceReload;this.JSC$8942_moduleInfoMap_=O;if(!W)throw Error("od");if(this.shouldScanForCss_){O=_.S(document.getElementsByTagName("style"));for(var Z=O.next();!Z.done;Z=O.next())vG5(this,Z.value);O=_.S(document.getElementsByTagName("link"));for(Z=O.next();!Z.done;Z=O.next())vG5(this,Z.value)}gG1(this,oGv(this,W),b,L,h,T)};
var gG1=function(W,O,b,T,L,h){T=T===void 0?function(){}:T;
L=L===void 0?function(){}:L;
h=h===void 0?!1:h;Q1v(W,O,function(Z,a,m){m=m===void 0?a:m;W.enableFallbackFetch&&h?W.loadWithFetch(Z,a,T,L,m):W.load(Z,a,T,L,m,b)},b)||T(-1)};
_.rq.prototype.loadWithFetch=function(){_.I(function(){throw Error("pd");})};
_.rq.prototype.maybeSetAdditionalFields=function(){};
Ben=function(W,O,b){if(W.useNegativeLoading_){var T=W.scsReferenceUrl_;W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,extraEdges:b,requestedModuleIds:k5N(W),requestedCssModuleIds:s11(W)};var L=W===void 0?{}:W;W=L.requestedModuleIds===void 0?[]:L.requestedModuleIds;b=L.requestedCssModuleIds===void 0?[]:L.requestedCssModuleIds;var h=L.cssRowKey===void 0?void 0:L.cssRowKey;var Z=L.combinedSignature===void 0?void 0:L.combinedSignature;var a=L.extraEdges===void 0?void 0:L.extraEdges;
L=L.callback===void 0?void 0:L.callback;T=EG7(T);E$(T,"d","1");CJ9(T,W);qVN(T,b);O=A85(T,O,{cssRowKey:h,combinedSignature:Z,extraEdges:a,callback:L})}else T=W.scsReferenceUrl_,W={cssRowKey:W.cssRowKey_,combinedSignature:W.combinedSignature_,requestedModuleIds:k5N(W),requestedCssModuleIds:s11(W)},a=W===void 0?{}:W,W=a.requestedCssModuleIds===void 0?[]:a.requestedCssModuleIds,b=a.cssRowKey===void 0?void 0:a.cssRowKey,h=a.combinedSignature===void 0?void 0:a.combinedSignature,Z=a.extraEdges===void 0?
void 0:a.extraEdges,a=a.callback===void 0?void 0:a.callback,T=EG7(T),qVN(T,W),O=A85(T,O,{cssRowKey:b,combinedSignature:h,extraEdges:Z,callback:a});return O};
_.BT=function(W,O){for(var b=!1,T=[],L=0;L<O.length;++L){var h=O[L];W.requestedModuleMap_[h]||(W.requestedModuleMap_[h]=!0,W.requestedModuleList_.push(h),b=!0,T.push(h))}b&&(W.requestedModuleListSorted_=!1)};
_.DR=function(W,O){for(var b=[],T=0;T<O.length;++T){var L=O[T];W.requestedModuleMap_[L]&&(delete W.requestedModuleMap_[L],_.c2(W.requestedModuleList_,L),b.push(L))}};
_.rq.prototype.load=function(W,O,b,T,L){L=L===void 0?O:L;_.Zd(W);var h=this.useCors_,Z=this.corsMode_,a=this.fetchPriority,m=_.AV("SCRIPT");_.fz(m,W);h&&(m.crossOrigin=Z);m.async=!1;a&&m.setAttribute("fetchpriority",a);_.BT(this,O);_.r8H(this,W,m,O,b,T,L)};
_.r8H=function(W,O,b,T,L,h,Z){Z=Z===void 0?T:Z;W.lastScript_=b;W.insertPos.insertBefore(b,W.insertPos.firstChild);_.DJv(b,T,function(){b.parentElement.removeChild(b);W.lastScript_==b&&(W.lastScript_=null);var a=new Set;T.map(function(w){return a.add(w)});
for(var m in W.JSC$8942_moduleInfoMap_)W.JSC$8942_moduleInfoMap_[m].isLoaded()&&a.add(m);Array.from(a);h()},function(a){b.parentElement.removeChild(b);
W.lastScript_==b&&(W.lastScript_=null);_.DR(W,a);W.pendingModuleGraphUpdate_?W.pendingModuleGraphUpdate_.then(function(){L(-1,O)}):L(-1,O)},Z)};
_.DJv=function(W,O,b,T,L){L=L===void 0?O:L;var h=O.length,Z=function(){h=0;W.onload=null;W.onerror=null;a=function(){}},a=function(){Z();
var w=L.filter(function(A){return!B5().getModuleInfo(A).isLoaded()});
w.length!==0?T(w,"Response was successful but was missing module(s) "+w+"."):b()},m=function(){h--;
h==0&&a()};
O.forEach(function(w){w=B5().getModuleInfo(w);w.isLoaded()?m():(pZv(w.earlyOnloadCallbacks_,m),RW1(w,m))});
W.onload=function(){return a()};
W.onerror=function(){Z();T(O)}};
k5N=function(W){W.requestedModuleListSorted_||(W.requestedModuleListSorted_=!0,W.requestedModuleList_.sort());return W.requestedModuleList_};
s11=function(W){W=W.loadedCssModuleList_;W.sort();return W};
oGv=function(W,O){return O.filter(function(b){return!W.requestedModuleMap_[b]})};
Q1v=function(W,O,b,T){if(W.pendingModuleGraphUpdate_)return W.pendingModuleGraphUpdate_.then(function(){Q1v(W,O,b,T)}),!0;
if(!W.useNegativeLoading_){var L=[],h=Object.assign({},W.requestedModuleMap_);xJw(W,O,function(A){L.push(A.getId())},T,function(A){return!A.isLoaded()},h);
O=L}for(h=0;h<O.length;){for(var Z=O.length-h,a=h==0?O:O.slice(h,O.length),m=Ben(W,a,T),w=_.Zd(m).toString();w.length>W.urlMaxLength;)if(Z>1)Z-=Math.ceil((w.length-W.urlMaxLength)/6),Z=Math.max(Z,1),a=O.slice(h,h+Z),m=Ben(W,a,T),w=_.Zd(m).toString();else return W.useNegativeLoading_?(W.useNegativeLoading_=!1,W.pendingModuleGraphUpdate_=zWS(W).then(function(A){CyN(W,A,T)}),Q1v(W,O.slice(h),b,T)):!1;
h+=Z;W.useNegativeLoading_?b(m,a):b(m,a,h===O.length?O:[])}return!0};
CyN=function(W,O,b){B5().setAllModuleInfoString((O||{}).moduleGraph);xJw(W,k5N(W),function(T){_.BT(W,[T.getId()])},b);
W.pendingModuleGraphUpdate_=null};
xJw=function(W,O,b,T,L,h){h=h===void 0?{}:h;var Z=B5();O=_.S(O);for(var a=O.next();!a.done;a=O.next()){a=a.value;var m=Z.getModuleInfo(a);if(!(h[a]||L&&!L(m))){h[a]=!0;var w=m.deps_||[];if(T){var A=[];T[a]&&(A=Object.keys(T[a]));w=w.concat(A)}xJw(W,w,b,T,L,h);b(m)}}};
zWS=function(W){W=W.scsReferenceUrl_.clone();GPL(W);E$(W,"dg",null);E$(W,"md","1");return UJz(W.toString())};var Y1Q=new Uint8Array(123);var qmq=[];var nGn=function(){this.JSC$8054_loader_=null};
_.d=nGn.prototype;_.d.setBatchModeEnabled=function(){};
_.d.setAllModuleInfoString=function(){};
_.d.addExtraEdge=function(){throw Error("qd");};
_.d.removeExtraEdge=function(){throw Error("rd");};
_.d.getModuleContext=function(){return null};
_.d.isActive=function(){return!1};
_.d.isUserActive=function(){return!1};
_.d.registerCallback=function(){};var xg=function(W,O,b,T,L){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.name="ModuleLoadFailure";this.type=W;this.status=O;this.requestedModuleIds=b;this.url=T;this.cause=L;this.message=this.toString()};
_.R(xg,Error);xg.prototype.toString=function(){return ftN(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var ftN=function(W){switch(W.type){case xg.JSC$8954_Type.UNAUTHORIZED:return"Unauthorized";case xg.JSC$8954_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case xg.JSC$8954_Type.TIMEOUT:return"Timed out";case xg.JSC$8954_Type.OLD_CODE_GONE:return"Out of date module id";case xg.JSC$8954_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+W.type}};
cR.ModuleLoadFailure=xg;cR.ModuleLoadFailure.JSC$8954_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var zM=function(){this.moduleIds_=this.JSC$8054_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8957_extraEdges_={};this.JSC$8957_callbackMap_={};this.JSC$8957_currentlyLoadingModule_=this.baseModuleInfo_=new sY([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new qn;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Wk(zM,nGn);var G5U=function(W,O){_.W2.call(this,"Error loading "+W+": "+O)};
_.Wk(G5U,_.W2);zM.prototype.setBatchModeEnabled=function(W){this.batchModeEnabled_=W};
zM.prototype.setAllModuleInfoString=function(W,O){if(!(this instanceof zM))this.setAllModuleInfoString(W,O);else if(typeof W==="string"){if(W.startsWith("d$")){W=W.substring(2);for(var b=[],T=0,L=W.indexOf("/"),h=0,Z=!1,a=0;;){var m=Z?W.substring(h):W.substring(h,L);if(m.length===0)T++,h="sy"+T.toString(36),m=[];else{var w=m.indexOf(":");if(w<0)h=m,m=[];else if(w===m.length-1)h=m.substring(0,w),m=Array(b[a-1]);else{h=m.substring(0,w);m=m.substring(w+1).split(",");w=a;for(var A=0;A<m.length;A++)w-=
m[A].length===0?1:Number(m[A]),m[A]=b[w]}w=0;if(h.length===0)w=1;else if(h.charAt(0)==="+"||h.charAt(0)==="-")w=Number(h);w!==0&&(T+=w,h="sy"+T.toString(36))}b.push(h);HBv(this,h,m);if(Z)break;h=L+1;L=W.indexOf("/",h);L===-1&&(Z=!0);a++}this.moduleIds_=b}else if(W.startsWith("p$"))tNq(this,W);else{W=W.split("/");b=[];for(T=0;T<W.length;T++){a=W[T].split(":");L=a[0];Z=[];if(a[1])for(Z=a[1].split(","),a=0;a<Z.length;a++)Z[a]=b[parseInt(Z[a],36)];b.push(L);HBv(this,L,Z)}this.moduleIds_=b}O&&O.length?
(_.Tw(this.loadingModuleIds_,O),this.lastInitialModuleId_=_.CE(O)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8957_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8957_currentlyLoadingModule_=null,(O=this.baseModuleInfo_.onLoad((0,_.K5)(this.getModuleContext,this)))&&O.length&&$J9(this,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.INIT_ERROR,void 0,void 0,void 0,O[0])),Cc(this))}};
var tNq=function(W,O){var b=O.substring(2);for(O=0;O<64;O++)Y1Q["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(O)]=O;var T={buf:b,pos:0};j3(T);var L=j3(T),h=j3(T)+1;O=Array(L);var Z=Array(L),a=Array(L);h=Array(h);var m=0,w=0,A=T.pos,X=T.buf.indexOf("|",T.pos);T.pos=X+1;for(X=0;X<L;X++){var l=j3(T),p=l&2,K=l&1;l>>>=2;K?(m+=l>>>1^-(l&1),l="sy"+m.toString(36)):(K=A,A+=l,l=b.substring(K,A));O[X]=l;p&&(h[w++]=l)}h[w]="";T.pos++;w=L&-2;b=L&1;for(m=0;m<w;m+=2)A=ESh(T),a[m]=
A&7,a[m+1]=A>>>3&7;b&&(b=ESh(T),a[w]=b&7);T.pos++;for(w=0;w<L;w++)a[w]===7&&(a[w]=j3(T));T.pos++;for(b=w=0;b<L;b++){m=a[b];A=m===0?qmq:Array(m);Z[b]=A;X=w;for(p=0;p<m;p++)X-=j3(T),A[p]=h[X];h[w]===O[b]&&w++}for(T=0;T<O.length;T++)HBv(W,O[T],Z[T]);W.moduleIds_=O};
_.d=zM.prototype;_.d.getModuleInfo=function(W){return this.moduleInfoMap[W]};
_.d.addExtraEdge=function(W,O){var b=this.getModuleInfo(W);b&&b.isLoaded()?this.load(O):(this.JSC$8957_extraEdges_[W]||(this.JSC$8957_extraEdges_[W]={}),this.JSC$8957_extraEdges_[W][O]=!0)};
_.d.removeExtraEdge=function(W,O){if(this.JSC$8957_extraEdges_[W]){delete this.JSC$8957_extraEdges_[W][O];for(var b in this.JSC$8957_extraEdges_[W])return;delete this.JSC$8957_extraEdges_[W]}};
_.d.isActive=function(){return this.loadingModuleIds_.length>0};
_.d.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var Cc=function(W){var O=W.lastActive_,b=W.isActive();b!=O&&(W.executeCallbacks_(b?"active":"idle"),W.lastActive_=b);O=W.isUserActive();O!=W.userLastActive_&&(W.executeCallbacks_(O?"userActive":"userIdle"),W.userLastActive_=O)},HBv=function(W,O,b){W.moduleInfoMap[O]?(W=W.moduleInfoMap[O].deps_,W!=b&&W.splice.apply(W,[0,
W.length].concat(_.PG(b)))):W.moduleInfoMap[O]=new sY(b,O)},Ne$=function(W,O,b){var T=[];
ZS(O,T);O=[];for(var L={},h=0;h<T.length;h++){var Z=T[h],a=W.getModuleInfo(Z);if(!a)throw Error("sd`"+Z);var m=new qn;L[Z]=m;a.isLoaded()?m.callback(null):(VNN(W,Z,a,!!b,m),W.isModuleLoading(Z)||O.push(Z))}O.length>0&&(W.loadingModuleIds_.length===0?W.loadModules_(O):(W.requestedModuleIdsQueue_.push(O),Cc(W)));return L},VNN=function(W,O,b,T,L){b.registerCallback(L.callback,L);
RW1(b,function(h){L.errback(new G5U(O,h))});
W.isModuleLoading(O)?T&&(MNz(W,O),Cc(W)):T&&MNz(W,O)};
zM.prototype.loadModules_=function(W,O,b){var T=this;O||(this.consecutiveFailures_=0);var L=u0H(this,W);this.loadingModuleIds_=L;this.requestedLoadingModuleIds_=this.batchModeEnabled_?W:_.Ov(L);Cc(this);if(L.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,L);if(Object.keys(this.JSC$8957_extraEdges_).length>0&&!this.JSC$8054_loader_.supportsExtraEdges)throw Error("td");W=(0,_.K5)(this.JSC$8054_loader_.JSC$8944_loadModules,this.JSC$8054_loader_,_.Ov(L),this.moduleInfoMap,{extraEdges:this.JSC$8957_extraEdges_,
forceReload:!!b,onError:function(h,Z){var a=T.requestedLoadingModuleIds_;h=h!=null?h:void 0;T.consecutiveFailures_++;var m=_.Ov(L);T.requestedLoadingModuleIds_=a;L.forEach(_.A3(_.c2,T.requestedModuleIds_),T);h==401?($J9(T,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.UNAUTHORIZED,h)),T.requestedModuleIdsQueue_.length=0):h==410?(J8q(T,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.OLD_CODE_GONE,h)),c8n(T)):T.consecutiveFailures_>=3?(J8q(T,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.CONSECUTIVE_FAILURES,
h,m,Z)),c8n(T)):T.loadModules_(T.requestedLoadingModuleIds_,!0,h==8001||!1)},
onTimeout:(0,_.K5)(this.handleLoadTimeout_,this)});(O=Math.pow(this.consecutiveFailures_,2)*5E3)?_.i1.setTimeout(W,O):W()}};
var u0H=function(W,O){O=O.filter(function(L){return W.moduleInfoMap[L].isLoaded()?(_.i1.setTimeout(function(){return Error("ud`"+L)},0),!1):!0});
for(var b=[],T=0;T<O.length;T++)b=b.concat(FJv(W,O[T]));ZS(b);return!W.batchModeEnabled_&&b.length>1?(O=b.shift(),W.requestedModuleIdsQueue_=b.map(function(L){return[L]}).concat(W.requestedModuleIdsQueue_),[O]):b},FJv=function(W,O){var b=_.PQ.createSet(W.requestedModuleIds_),T=[];
b[O]||T.push(O);O=[O];for(var L=0;L<O.length;L++)for(var h=W.getModuleInfo(O[L]).deps_,Z=h.length-1;Z>=0;Z--){var a=h[Z];W.getModuleInfo(a).isLoaded()||b[a]||(T.push(a),O.push(a))}T.reverse();ZS(T);return T};
zM.prototype.JSC$8952_setLoaded=function(){if(this.JSC$8957_currentlyLoadingModule_){var W=this.JSC$8957_currentlyLoadingModule_.getId(),O=[];if(this.JSC$8957_extraEdges_[W]){for(var b=_.S(Object.keys(this.JSC$8957_extraEdges_[W])),T=b.next();!T.done;T=b.next()){T=T.value;var L=this.getModuleInfo(T);L&&!L.isLoaded()&&(this.removeExtraEdge(W,T),O.push(T))}this.loadMultiple(O)}this.isDisposed()||((O=this.moduleInfoMap[W].onLoad((0,_.K5)(this.getModuleContext,this)))&&O.length&&$J9(this,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.INIT_ERROR,
void 0,void 0,void 0,O[0])),_.c2(this.userInitiatedLoadingModuleIds_,W),_.c2(this.loadingModuleIds_,W),this.loadingModuleIds_.length===0&&c8n(this),this.lastInitialModuleId_&&W==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),Cc(this),this.JSC$8957_currentlyLoadingModule_=null)}};
zM.prototype.isModuleLoading=function(W){if(_.Vh(this.loadingModuleIds_,W))return!0;for(var O=0;O<this.requestedModuleIdsQueue_.length;O++)if(_.Vh(this.requestedModuleIdsQueue_[O],W))return!0;return!1};
zM.prototype.load=function(W,O){return Ne$(this,[W],O)[W]};
zM.prototype.loadMultiple=function(W){return Ne$(this,W)};
var MNz=function(W,O){_.Vh(W.userInitiatedLoadingModuleIds_,O)||W.userInitiatedLoadingModuleIds_.push(O)};
zM.prototype.beforeLoadModuleCode=function(W){var O=this;this.JSC$8957_currentlyLoadingModule_&&this.JSC$8957_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8952_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[W]&&y8v(this,this.moduleInfoMap[W].deps_||[],function(b){b.module_=new kg;_.c2(O.loadingModuleIds_,b.getId())},function(b){return!b.isLoaded()});
this.JSC$8957_currentlyLoadingModule_=this.getModuleInfo(W)};
zM.prototype.handleLoadTimeout_=function(){J8q(this,new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.TIMEOUT));c8n(this)};
var J8q=function(W,O){W.requestedLoadingModuleIds_.length>1?W.requestedModuleIdsQueue_=W.requestedLoadingModuleIds_.map(function(b){return[b]}).concat(W.requestedModuleIdsQueue_):$J9(W,O)},$J9=function(W,O){var b=W.requestedLoadingModuleIds_;
W.loadingModuleIds_.length=0;for(var T=[],L=0;L<W.requestedModuleIdsQueue_.length;L++){var h=W.requestedModuleIdsQueue_[L].filter(function(m){var w=FJv(this,m);return M8(b,function(A){return _.Vh(w,A)})},W);
_.Tw(T,h)}for(L=0;L<b.length;L++)_.NP(T,b[L]);for(L=0;L<T.length;L++){for(h=0;h<W.requestedModuleIdsQueue_.length;h++)_.c2(W.requestedModuleIdsQueue_[h],T[L]);_.c2(W.userInitiatedLoadingModuleIds_,T[L])}if(L=W.JSC$8957_callbackMap_.error)for(h=0;h<L.length;h++)for(var Z=L[h],a=0;a<T.length;a++)Z("error",T[a],O);for(T=0;T<b.length;T++)if(W.moduleInfoMap[b[T]])W.moduleInfoMap[b[T]].onError(O);W.requestedLoadingModuleIds_.length=0;Cc(W)},c8n=function(W){for(;W.requestedModuleIdsQueue_.length;){var O=
W.requestedModuleIdsQueue_.shift().filter(function(b){return!this.getModuleInfo(b).isLoaded()},W);
if(O.length>0){W.loadModules_(O);return}}Cc(W)};
zM.prototype.registerCallback=function(W,O){Array.isArray(W)||(W=[W]);for(var b=0;b<W.length;b++){var T=W[b],L=O,h=this.JSC$8957_callbackMap_;h[T]||(h[T]=[]);h[T].push(L)}};
zM.prototype.executeCallbacks_=function(W){for(var O=this.JSC$8957_callbackMap_[W],b=0;O&&b<O.length;b++)O[b](W)};
var y8v=function(W,O,b,T,L){T=T===void 0?function(){return!0}:T;
L=L===void 0?{}:L;O=_.S(O);for(var h=O.next();!h.done;h=O.next()){h=h.value;var Z=W.getModuleInfo(h);!L[h]&&T(Z)&&(L[h]=!0,y8v(W,Z.deps_||[],b,T,L),b(Z))}};
zM.prototype.dispose=function(){_.cQ(_.PQ.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8957_callbackMap_={};this.isDisposed_=!0};
zM.prototype.isDisposed=function(){return this.isDisposed_};
_.sV=function(){return new zM};var WAw=[5E3,2E4],OP$=function(){this.JSC$8054_loader_=null;this.JSC$8965_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8965_queue_=[];this.JSC$8965_extraEdges_=Object.create(null);this.JSC$8965_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.R(OP$,nGn);_.d=OP$.prototype;_.d.setAllModuleInfoString=function(){this.JSC$8965_currentlyLoadingModule_&&this.JSC$8965_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8952_setLoaded()};
_.d.getModuleInfo=function(W){var O=this.JSC$8965_moduleInfoMap_[W];O||(O=new sY([],W),this.JSC$8965_moduleInfoMap_[W]=O);return O};
_.d.addExtraEdge=function(W,O){this.getModuleInfo(W).isLoaded()?this.load(O):(this.JSC$8965_extraEdges_[W]||(this.JSC$8965_extraEdges_[W]={}),this.JSC$8965_extraEdges_[W][O]=!0)};
_.d.removeExtraEdge=function(W,O){if(this.JSC$8965_extraEdges_[W]){delete this.JSC$8965_extraEdges_[W][O];for(var b in this.JSC$8965_extraEdges_[W])return;delete this.JSC$8965_extraEdges_[W]}};
_.d.isModuleLoading=function(W){return!!this.loadingModules_[W]};
_.d.load=function(W){iPn(this,[W]);return bPn(this,W)};
_.d.loadMultiple=function(W){var O=this,b=Object.create(null),T=[];W.forEach(function(L){b[L]||(b[L]=bPn(O,L),T.push(L))});
iPn(this,T);return b};
_.d.beforeLoadModuleCode=function(W){var O;((O=this.JSC$8965_currentlyLoadingModule_)==null?void 0:O.getId())==="synthetic_module_overhead"&&this.JSC$8952_setLoaded();var b,T;j2N(this,(T=(b=this.JSC$8965_moduleInfoMap_[W])==null?void 0:b.deps_)!=null?T:[],function(L){L.module_=new kg},function(L){return!L.isLoaded()});
this.JSC$8965_currentlyLoadingModule_=this.getModuleInfo(W)};
_.d.JSC$8952_setLoaded=function(){if(this.JSC$8965_currentlyLoadingModule_){var W=this.JSC$8965_currentlyLoadingModule_.getId(),O=[];if(this.JSC$8965_extraEdges_[W]){for(var b=_.S(Object.keys(this.JSC$8965_extraEdges_[W])),T=b.next();!T.done;T=b.next())T=T.value,this.getModuleInfo(T).isLoaded()||(this.removeExtraEdge(W,T),O.push(T));this.loadMultiple(O)}this.JSC$8965_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8965_currentlyLoadingModule_=null;(!this.isModuleLoading(W)&&/^sy[0-9a-z]{0,4}$/.test(W)||W==="synthetic_module_overhead")&&delete this.JSC$8965_moduleInfoMap_[W];this.unsetModulesAsLoading(W)}};
_.d.setModulesAsLoading=function(){var W=this;_.PD.apply(0,arguments).forEach(function(O){W.loadingModules_[O]=!0})};
_.d.unsetModulesAsLoading=function(){var W=this;_.PD.apply(0,arguments).forEach(function(O){delete W.loadingModules_[O]})};
var bPn=function(W,O){return new _.mJ(function(b,T){var L=W.getModuleInfo(O);L.isLoaded()?b(null):(L.registerCallback(function(){b(null)}),RW1(L,function(h){var Z="Error loading "+O+": "+h;
h instanceof cR.ModuleLoadFailure&&h.url&&(Z=Z+", requested url: "+h.url.toString());T(Error(Z))}))})},iPn=function(W,O){O=O.filter(function(b){return!W.isModuleLoading(b)&&!W.getModuleInfo(b).isLoaded()});
O.length>0&&(W.setModulesAsLoading.apply(W,_.PG(O)),W.JSC$8965_queue_.push(O),T3U(W))},T3U=function(W){for(var O={};W.activeLoads_<Infinity&&W.JSC$8965_queue_.length>0;O={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})O.ids$jscomp$36=W.JSC$8965_queue_.shift().filter(function(b){return!W.getModuleInfo(b).isLoaded()}),O.ids$jscomp$36.length>0&&(W.activeLoads_++,O.finishLoad=function(b){return function(){W.activeLoads_--;
T3U(W);b.finishLoad=function(){}}}(O),_.XG(O.ids$jscomp$36.map(function(b){return bPn(W,b)})).then(function(b){return function(){(0,b.finishLoad)()}}(O)),O.attempt$jscomp$6=0,O.load$jscomp$1=function(b){return function(){if(Object.keys(W.JSC$8965_extraEdges_).length>0&&!W.JSC$8054_loader_.supportsExtraEdges)throw Error("td");
W.JSC$8054_loader_.JSC$8944_loadModules(b.ids$jscomp$36,W.JSC$8965_moduleInfoMap_,{extraEdges:W.JSC$8965_extraEdges_,onError:function(T,L){var h=WAw[b.attempt$jscomp$6++];h!==void 0?setTimeout(function(){(0,b.load$jscomp$1)()},h):(W.unsetModulesAsLoading.apply(W,_.PG(b.ids$jscomp$36)),(0,b.finishLoad)(),b.ids$jscomp$36.forEach(function(Z){Z=W.getModuleInfo(Z);
if(!Z.isLoaded())Z.onError(new cR.ModuleLoadFailure(cR.ModuleLoadFailure.JSC$8954_Type.CONSECUTIVE_FAILURES,T,b.ids$jscomp$36,L))}))}})}}(O),(0,O.load$jscomp$1)())},j2N=function(W,O,b,T,L){T=T===void 0?function(){return!0}:T;
L=L===void 0?{}:L;O=_.S(O);for(var h=O.next();!h.done;h=O.next()){h=h.value;var Z=W.getModuleInfo(h);!L[h]&&T(Z)&&(L[h]=!0,j2N(W,Z.deps_||[],b,T,L),b(Z))}};var LAN=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var APT=Symbol("wd");window.JSCompiler_renameProperty=function(W){return W};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var dyz=!LAN||HTMLElement.es5Shimmed||_.i1.Reflect===void 0||_.i1.customElements===void 0||_.i1.customElements.polyfillWrapFlushCallback||!1,h_f,ntT=function(){var W=HTMLElement;if(dyz)return W;if(h_f!==void 0)return h_f;var O=_.i1.Reflect,b=function(){return O.construct(W,[],this.constructor)};
b.prototype=W.prototype;b.prototype.constructor=b;b.es5Shimmed=!0;Object.setPrototypeOf(b,W);return h_f=b},S0v=!1;dyz||S0v||(S0v=!0,_.i1.HTMLElement=ntT());/*

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 Pni=/(url\()([^)]*)(\))/g,l3T=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ech,Ts;var zs=!window.ShadyDOM||!window.ShadyDOM.inUse,ZPq=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),IFv=!window.customElements.polyfillWrapFlushCallback,aFw;if(aFw=zs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var myL=new CSSStyleSheet;myL.replaceSync("");var Y05=document.createElement("div");Y05.attachShadow({mode:"open"});Y05.shadowRoot.adoptedStyleSheets=[myL];aFw=Y05.shadowRoot.adoptedStyleSheets[0]===myL}catch(W){aFw=!1}
var EFw=aFw,wBf=window.Polymer&&window.Polymer.rootPath||RcX(document.baseURI||window.location.href),U0=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,rIi=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,fP=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,AqS=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,xF=window.Polymer&&window.Polymer.legacyOptimizations||!1,nP=window.Polymer&&window.Polymer.legacyWarnings||!1,XBv=window.Polymer&&window.Polymer.syncInitialRender||
!1,e3=window.Polymer&&window.Polymer.legacyUndefined||!1,Uyw=window.Polymer&&window.Polymer.orderedComputed||!1,q2=window.Polymer&&window.Polymer.removeNestedTemplates||!1,nc=window.Polymer&&window.Polymer.fastDomIf||!1,fc=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,lFq=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,e_v=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var GM={},POH={},pP=function(){return HTMLElement.apply(this,arguments)||this};
_.R(pP,HTMLElement);pP.import=function(W,O){return W?(W=GM[W]||POH[W.toLowerCase()])&&O?W.querySelector(O):W:null};
pP.prototype.attributeChangedCallback=function(W,O,b){O!==b&&this.register()};
pP.prototype.register=function(W){if(W=W||this.id){if(fP&&(GM[W]||POH[W.toLowerCase()])!==void 0)throw GM[W]=POH[W.toLowerCase()]=null,Error("xd`"+W);this.id=W;GM[W]=POH[W.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Jq.Object.defineProperties(pP.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var W=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;W=_.LP(this.getAttribute("assetpath")||"",W.baseURI);this.__assetpath=RcX(W)}return this.__assetpath}}});
_.Jq.Object.defineProperties(pP,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
pP["import"]=pP.import;pP.prototype.modules=GM;customElements.define("dom-module",pP);var pBf=0,vSE=0,d3=[],R_L=0,KRq=!1,KAz=document.createTextNode(""),vFL,r3;(new window.MutationObserver(gSe)).observe(KAz,{characterData:!0});_.HT={after:function(W){return{run:function(O){return window.setTimeout(O,W)},
cancel:function(O){window.clearTimeout(O)}}},
run:function(W,O){return window.setTimeout(W,O)},
cancel:function(W){window.clearTimeout(W)}};
_.Kb={run:function(W){return window.requestAnimationFrame(W)},
cancel:function(W){window.cancelAnimationFrame(W)}};
vFL={run:function(W){return window.requestIdleCallback?window.requestIdleCallback(W):window.setTimeout(W,16)},
cancel:function(W){window.cancelIdleCallback?window.cancelIdleCallback(W):window.clearTimeout(W)}};
r3={run:function(W){KRq||(KRq=!0,KAz.textContent=R_L++);d3.push(W);return pBf++},
cancel:function(W){var O=W-vSE;if(O>=0){if(!d3[O])throw Error("yd`"+W);d3[O]=null}}};var gFS=0,tR=function(W){var O=W.__mixinApplications;O||(O=new WeakMap,W.__mixinApplications=O);var b=gFS++;return function(T){var L=T.__mixinSet;if(L&&L[b])return T;var h=O,Z=h.get(T);Z||(Z=W(T),h.set(T,Z),T=Object.create(Z.__mixinSet||L||null),T[b]=!0,Z.__mixinSet=T);return Z}};_.X2=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(W){return ShadyDOM.patch(W)}:function(W){return W};var oFN=tR(function(W){var O=function(){var b=W.call(this)||this;b.__dataEnabled=!1;b.__dataReady=!1;b.__dataInvalid=!1;b.__data={};b.__dataPending=null;b.__dataOld=null;b.__dataInstanceProps=null;b.__dataCounter=0;b.__serializing=!1;b._initializeProperties();return b};
_.R(O,W);O.createProperties=function(b){var T=this.prototype,L;for(L in b)L in T||T._createPropertyAccessor(L)};
O.attributeNameForProperty=function(b){return b.toLowerCase()};
O.typeForProperty=function(){};
O.prototype._createPropertyAccessor=function(b,T){this._addPropertyToAttributeMap(b);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[b]||(this.__dataHasAccessor[b]=!0,this._definePropertyAccessor(b,T))};
O.prototype._addPropertyToAttributeMap=function(b){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var T=this.__dataAttributes[b];T||(T=this.constructor.attributeNameForProperty(b),this.__dataAttributes[T]=b);return T};
O.prototype._definePropertyAccessor=function(b,T){Object.defineProperty(this,b,{get:function(){return this.__data[b]},
set:T?function(){}:function(L){this._setPendingProperty(b,L,!0)&&this._invalidateProperties()}})};
O.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
O.prototype._initializeProperties=function(){for(var b in this.__dataHasAccessor)this.hasOwnProperty(b)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[b]=this[b],delete this[b])};
O.prototype._initializeInstanceProperties=function(b){Object.assign(this,b)};
O.prototype._setProperty=function(b,T){this._setPendingProperty(b,T)&&this._invalidateProperties()};
O.prototype._getProperty=function(b){return this.__data[b]};
O.prototype._setPendingProperty=function(b,T){var L=this.__data[b],h=this._shouldPropertyChange(b,T,L);h&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||b in this.__dataOld||(this.__dataOld[b]=L),this.__data[b]=T,this.__dataPending[b]=T);return h};
O.prototype._isPropertyPending=function(b){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(b))};
O.prototype._invalidateProperties=function(){var b=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,r3.run(function(){b.__dataInvalid&&(b.__dataInvalid=!1,b._flushProperties())}))};
O.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
O.prototype._flushProperties=function(){this.__dataCounter++;var b=this.__data,T=this.__dataPending,L=this.__dataOld;this._shouldPropertiesChange(b,T,L)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(b,T,L));this.__dataCounter--};
O.prototype._shouldPropertiesChange=function(b,T){return!!T};
O.prototype._propertiesChanged=function(){};
O.prototype._shouldPropertyChange=function(b,T,L){return L!==T&&(L===L||T===T)};
O.prototype.attributeChangedCallback=function(b,T,L,h){T!==L&&this._attributeToProperty(b,L);W.prototype.attributeChangedCallback&&W.prototype.attributeChangedCallback.call(this,b,T,L,h)};
O.prototype._attributeToProperty=function(b,T,L){if(!this.__serializing){var h=this.__dataAttributes;b=h&&h[b]||b;this[b]=this._deserializeValue(T,L||this.constructor.typeForProperty(b))}};
O.prototype._propertyToAttribute=function(b,T,L){this.__serializing=!0;L=arguments.length<3?this[b]:L;this._valueToNodeAttribute(this,L,T||this.constructor.attributeNameForProperty(b));this.__serializing=!1};
O.prototype._valueToNodeAttribute=function(b,T,L){T=this._serializeValue(T);if(L==="class"||L==="name"||L==="slot")b=(0,_.X2)(b);T===void 0?b.removeAttribute(L):b.setAttribute(L,T===""&&window.trustedTypes?window.trustedTypes.emptyScript:T)};
O.prototype._serializeValue=function(b){switch(typeof b){case "boolean":return b?"":void 0;default:return b!=null?b.toString():void 0}};
O.prototype._deserializeValue=function(b,T){switch(T){case Boolean:return b!==null;case Number:return Number(b);default:return b}};
return O});var Q29=0,oSO=[];var ksz=tR(function(W){function O(h){h=Object.getPrototypeOf(h);return h.prototype instanceof L?h:null}
function b(h){if(!h.hasOwnProperty("__ownProperties")){var Z=null;if(h.hasOwnProperty("properties")){var a=h.properties;if(a){Z={};for(var m in a){var w=a[m];Z[m]=typeof w==="function"?{type:w}:w}}}h.__ownProperties=Z}return h.__ownProperties}
var T=oFN(W),L=function(){return T.apply(this,arguments)||this};
_.R(L,T);L.finalize=function(){if(!this.hasOwnProperty("__finalized")){var h=O(this);h&&h.finalize();this.__finalized=!0;this._finalizeClass()}};
L._finalizeClass=function(){var h=b(this);h&&this.createProperties(h)};
L.typeForProperty=function(h){return(h=this._properties[h])&&h.type};
L.prototype._initializeProperties=function(){Q29++;this.constructor.finalize();T.prototype._initializeProperties.call(this)};
L.prototype.connectedCallback=function(){T.prototype.connectedCallback&&T.prototype.connectedCallback.call(this);this._enableProperties()};
L.prototype.disconnectedCallback=function(){T.prototype.disconnectedCallback&&T.prototype.disconnectedCallback.call(this)};
_.Jq.Object.defineProperties(L,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var h=this;if(!this.hasOwnProperty("__observedAttributes")){QMQ(this.prototype);var Z=this._properties;this.__observedAttributes=Z?Object.keys(Z).map(function(a){return h.prototype._addPropertyToAttributeMap(a)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var h=O(this);this.__properties=Object.assign({},h&&h._properties,b(this))}return this.__properties}}});
return L});var kBO={},sMT=/-[a-z]/g,BdE=/([A-Z])/g;for(var s2v={},B3f=HTMLElement.prototype;B3f;){for(var rqN=Object.getOwnPropertyNames(B3f),Dy9=0;Dy9<rqN.length;Dy9++)s2v[rqN[Dy9]]=!0;B3f=Object.getPrototypeOf(B3f)}var xy7=window.trustedTypes?function(W){return trustedTypes.isHTML(W)||trustedTypes.isScript(W)||trustedTypes.isScriptURL(W)}:function(){return!1},z_H=tR(function(W){var O=oFN(W);
W=function(){return O.apply(this,arguments)||this};
_.R(W,O);W.createPropertiesForAttributes=function(){for(var b=this.observedAttributes,T=0;T<b.length;T++)this.prototype._createPropertyAccessor(hq(b[T]))};
W.attributeNameForProperty=function(b){return S3(b)};
W.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);O.prototype._initializeProperties.call(this)};
W.prototype._initializeProtoProperties=function(b){for(var T in b)this._setProperty(T,b[T])};
W.prototype._ensureAttribute=function(b,T){this.hasAttribute(b)||this._valueToNodeAttribute(this,T,b)};
W.prototype._serializeValue=function(b){switch(typeof b){case "object":if(b instanceof Date)return b.toString();if(b){if(xy7(b))return b;try{return JSON.stringify(b)}catch(T){return""}}default:return O.prototype._serializeValue.call(this,b)}};
W.prototype._deserializeValue=function(b,T){switch(T){case Object:try{var L=JSON.parse(b)}catch(h){L=b}break;case Array:try{L=JSON.parse(b)}catch(h){L=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+b)}break;case Date:L=isNaN(b)?String(b):Number(b);L=new Date(L);break;default:L=O.prototype._deserializeValue.call(this,b,T)}return L};
W.prototype._definePropertyAccessor=function(b,T){if(!s2v[b]){var L=this[b];L!==void 0&&(this.__data?this._setPendingProperty(b,L):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[b]=L))}O.prototype._definePropertyAccessor.call(this,b,T)};
W.prototype._hasAccessor=function(b){return this.__dataHasAccessor&&this.__dataHasAccessor[b]};
W.prototype._isPropertyPending=function(b){return!!(this.__dataPending&&b in this.__dataPending)};
return W});var COq={"dom-if":!0,"dom-repeat":!0},q0w=!1,nFn=!1,fFz=function(){var W=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(O){return O}});
return function(O,b,T){b=b.getAttribute(T);W&&T.startsWith("on-")?O.setAttribute(T,W.createScript(b,T)):O.setAttribute(T,b)}}(),Gs5=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O._parseTemplate=function(b,T){if(!b._templateInfo){var L=b._templateInfo={};L.nodeInfoList=[];L.nestedTemplate=!!T;L.stripWhiteSpace=T&&T.stripWhiteSpace||b.hasAttribute&&b.hasAttribute("strip-whitespace");this._parseTemplateContent(b,L,{parent:null})}return b._templateInfo};
O._parseTemplateContent=function(b,T,L){return this._parseTemplateNode(b.content,T,L)};
O._parseTemplateNode=function(b,T,L){var h=!1;b.localName!="template"||b.hasAttribute("preserve-content")?b.localName==="slot"&&(T.hasInsertionPoint=!0):h=this._parseTemplateNestedTemplate(b,T,L)||h;if(!q0w){q0w=!0;var Z=document.createElement("textarea");Z.placeholder="a";nFn=Z.placeholder===Z.textContent}nFn&&b.localName==="textarea"&&b.placeholder&&b.placeholder===b.textContent&&(b.textContent=null);b.firstChild&&this._parseTemplateChildNodes(b,T,L);b.hasAttributes&&b.hasAttributes()&&(h=this._parseTemplateNodeAttributes(b,
T,L)||h);return h||L.noted};
O._parseTemplateChildNodes=function(b,T,L){if(b.localName!=="script"&&b.localName!=="style")for(var h=b.firstChild,Z=0,a;h;h=a){if(h.localName=="template"){var m=h.getAttribute("is");if(m&&COq[m])for(a=h,a.removeAttribute("is"),h=a.ownerDocument.createElement(m),a.parentNode.replaceChild(h,a),h.appendChild(a);a.attributes.length;)m=a.attributes[0].name,fFz(h,a,m),a.removeAttribute(m)}a=h.nextSibling;if(h.nodeType===Node.TEXT_NODE){for(m=a;m&&m.nodeType===Node.TEXT_NODE;)h.textContent+=m.textContent,
a=m.nextSibling,b.removeChild(m),m=a;if(T.stripWhiteSpace&&!h.textContent.trim()){b.removeChild(h);continue}}m={parentIndex:Z,parentInfo:L};this._parseTemplateNode(h,T,m)&&(m.infoIndex=T.nodeInfoList.push(m)-1);h.parentNode&&Z++}};
O._parseTemplateNestedTemplate=function(b,T,L){T=this._parseTemplate(b,T);(T.content=b.content.ownerDocument.createDocumentFragment()).appendChild(b.content);L.templateInfo=T;return!0};
O._parseTemplateNodeAttributes=function(b,T,L){for(var h=!1,Z=Array.from(b.attributes),a=Z.length-1,m;m=Z[a];a--)h=this._parseTemplateNodeAttribute(b,T,L,m.name,m.value)||h;return h};
O._parseTemplateNodeAttribute=function(b,T,L,h,Z){return h.slice(0,3)==="on-"?(b.removeAttribute(h),L.events=L.events||[],L.events.push({name:h.slice(3),value:Z}),!0):h==="id"?(L.id=Z,!0):!1};
O._contentForTemplate=function(b){var T=b._templateInfo;return T&&T.content||b.content};
O.prototype._stampTemplate=function(b,T){b&&!b.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(b);T=T||this.constructor._parseTemplate(b);var L=T.nodeInfoList;b=document.importNode(T.content||b.content,!0);b.__noInsertionPoint=!T.hasInsertionPoint;var h=b.nodeList=Array(L.length);b.$={};for(var Z=0,a=L.length,m=void 0;Z<a&&(m=L[Z]);Z++){var w=h[Z]=rPO(b,m);m.id&&(b.$[m.id]=w);var A=w,X=m,l=T;X.templateInfo&&(A._templateInfo=X.templateInfo,A._parentTemplateInfo=
l);if(m.events&&m.events.length)for(A=0,X=m.events,l=void 0;A<X.length&&(l=X[A]);A++)this._addMethodEventListenerToNode(w,l.name,l.value,this)}return b};
O.prototype._addMethodEventListenerToNode=function(b,T,L,h){L=DfX(h||b,L);this._addEventListenerToNode(b,T,L);return L};
O.prototype._addEventListenerToNode=function(b,T,L){b.addEventListener(T,L)};
O.prototype._removeEventListenerFromNode=function(b,T,L){b.removeEventListener(T,L)};
return O});var w3=0,lO=[],HPw={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},t37=/[A-Z]/,$yn=function(W,O,b,T,L){var h=L?I2(W):W;if(O=O[h])for(h=0;h<O.length;h++){var Z=O[h];if(Z.info.lastRun!==w3&&(!L||f3e(W,Z.trigger))){Z.info.lastRun=w3;Z=Z.info;for(var a=b,m=T,w=0,A=a.length-1,X=-1;w<=A;){var l=w+A>>1,p=m.get(a[l].methodInfo)-m.get(Z.methodInfo);if(p<0)w=l+1;else if(p>0)A=l-1;else{X=l;break}}X<
0&&(X=A+1);a.splice(X,0,Z)}}},ip8=[],V3q=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"),Vb=tR(function(W){var O=Gs5(z_H(W));
W=function(){var b=O.call(this)||this;b.__isPropertyEffectsClient=!0;return b};
_.R(W,O);W.prototype._initializeProperties=function(){O.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};
W.prototype._registerHost=function(){if($g.length){var b=$g[$g.length-1];b._enqueueClient(this);this.__dataHost=b}};
W.prototype._initializeProtoProperties=function(b){this.__data=Object.create(b);this.__dataPending=Object.create(b);this.__dataOld={}};
W.prototype._initializeInstanceProperties=function(b){var T=this.__readOnly,L;for(L in b)T&&T[L]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[L]=this.__dataPending[L]=b[L])};
W.prototype._addPropertyEffect=function(b,T,L){this._createPropertyAccessor(b,T=="__readOnly");var h=nS8(this,T,!0)[b];h||(h=this[T][b]=[]);h.push(L)};
W.prototype._removePropertyEffect=function(b,T,L){b=nS8(this,T,!0)[b];L=b.indexOf(L);L>=0&&b.splice(L,1)};
W.prototype._hasPropertyEffect=function(b,T){T=this[T];return!(!T||!T[b])};
W.prototype._hasReadOnlyEffect=function(b){return this._hasPropertyEffect(b,"__readOnly")};
W.prototype._hasNotifyEffect=function(b){return this._hasPropertyEffect(b,"__notifyEffects")};
W.prototype._hasReflectEffect=function(b){return this._hasPropertyEffect(b,"__reflectEffects")};
W.prototype._hasComputedEffect=function(b){return this._hasPropertyEffect(b,"__computeEffects")};
W.prototype._setPendingPropertyOrPath=function(b,T,L,h){if(h||I2(Array.isArray(b)?b[0]:b)!==b){if(!h&&(h=E0(this,b),b=q1Q(this,b,T),!b||!O.prototype._shouldPropertyChange.call(this,b,T,h)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(b,T,L)){if(L=this.__dataLinkedPaths)for(var Z in L)h=L[Z],a2(Z,b)?(h=mA(Z,h,b),this._setPendingPropertyOrPath(h,T,!0,!0)):a2(h,b)&&(h=mA(h,Z,b),this._setPendingPropertyOrPath(h,T,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[b])return this._setPendingProperty(b,
T,L);this[b]=T}return!1};
W.prototype._setUnmanagedPropertyToNode=function(b,T,L){if(L!==b[T]||typeof L=="object")T==="className"&&(b=(0,_.X2)(b)),b[T]=L};
W.prototype._setPendingProperty=function(b,T,L){var h=this.__dataHasPaths&&ZF(b);if(this._shouldPropertyChange(b,T,(h?this.__dataTemp:this.__data)[b])){this.__dataPending||(this.__dataPending={},this.__dataOld={});b in this.__dataOld||(this.__dataOld[b]=this.__data[b]);h?this.__dataTemp[b]=T:this.__data[b]=T;this.__dataPending[b]=T;if(h||this.__notifyEffects&&this.__notifyEffects[b])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[b]=L;return!0}return!1};
W.prototype._setProperty=function(b,T){this._setPendingProperty(b,T,!0)&&this._invalidateProperties()};
W.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
W.prototype._enqueueClient=function(b){this.__dataPendingClients=this.__dataPendingClients||[];b!==this&&this.__dataPendingClients.push(b)};
W.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
W.prototype.__enableOrFlushClients=function(){var b=this.__dataPendingClients;if(b){this.__dataPendingClients=null;for(var T=0;T<b.length;T++){var L=b[T];L.__dataEnabled?L.__dataPending&&L._flushProperties():L._enableProperties()}}};
W.prototype._readyClients=function(){this.__enableOrFlushClients()};
W.prototype.setProperties=function(b,T){for(var L in b)!T&&this.__readOnly&&this.__readOnly[L]||this._setPendingPropertyOrPath(L,b[L],!0);this._invalidateProperties()};
W.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
W.prototype._propertiesChanged=function(b,T,L){b=this.__dataHasPaths;this.__dataHasPaths=!1;var h;if(h=this.__computeEffects)if(Uyw){w3++;var Z=NdX(this),a=[],m;for(m in T)$yn(m,h,a,Z,b);for(;m=a.shift();)uLT(this,"",T,L,m)&&$yn(m.methodInfo,h,a,Z,b);Object.assign(L,this.__dataOld);Object.assign(T,this.__dataPending);this.__dataPending=null}else for(Z=T;Aq(this,h,Z,L,b);)Object.assign(L,this.__dataOld),Object.assign(T,this.__dataPending),Z=this.__dataPending,this.__dataPending=null;h=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(T,L,b);this._flushClients();Aq(this,this.__reflectEffects,T,L,b);Aq(this,this.__observeEffects,T,L,b);if(h){Z=this.__notifyEffects;a=w3++;for(var w in h)if(h[w]){if(m=Z){var A=Z;m=a;var X=w,l=T,p=L,K=b,k=!1,r=K?I2(X):X;if(A=A[r]){r=0;for(var q=A.length,f=void 0;r<q&&(f=A[r]);r++)f.info&&f.info.lastRun===m||K&&!f3e(X,f.trigger)||(f.info&&(f.info.lastRun=m),f.fn(this,X,l,p,f.info,K,void 0),k=!0)}m=k}if(m)var M=!0;else{if(m=b)m=w,X=T,l=I2(m),l!==
m?(l=S3(l)+"-changed",Hd1(this,l,X[m],m),m=!0):m=!1;m&&(M=!0)}}var V;M&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
W.prototype._propagatePropertyChanges=function(b,T,L){this.__propagateEffects&&Aq(this,this.__propagateEffects,b,T,L);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,b,T,L)};
W.prototype._runEffectsForTemplate=function(b,T,L,h){var Z=this,a=function(m,w){Aq(Z,b.propertyEffects,m,L,w,b.nodeList);for(var A=b.firstChild;A;A=A.nextSibling)Z._runEffectsForTemplate(A,m,L,w)};
b.runEffects?b.runEffects(a,T,h):a(T,h)};
W.prototype.linkPaths=function(b,T){b=YF(b);T=YF(T);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[b]=T};
W.prototype.unlinkPaths=function(b){b=YF(b);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[b]};
W.prototype.notifySplices=function(b,T){var L={path:""};b=E0(this,b,L);LoX(this,b,L.path,T)};
W.prototype.get=function(b,T){return E0(T||this,b)};
W.prototype.set=function(b,T,L){L?q1Q(L,b,T):this.__readOnly&&this.__readOnly[b]||this._setPendingPropertyOrPath(b,T,!0)&&this._invalidateProperties()};
W.prototype.push=function(b){var T=_.PD.apply(1,arguments),L={path:""},h=E0(this,b,L),Z=h.length,a=h.push.apply(h,_.PG(T));T.length&&PB(this,h,L.path,Z,T.length,[]);return a};
W.prototype.pop=function(b){var T={path:""};b=E0(this,b,T);var L=!!b.length,h=b.pop();L&&PB(this,b,T.path,b.length,0,[h]);return h};
W.prototype.splice=function(b,T,L){var h=_.PD.apply(3,arguments),Z={path:""},a=E0(this,b,Z);T<0?T=a.length-Math.floor(-T):T&&(T=Math.floor(T));var m=arguments.length===2?a.splice(T):a.splice.apply(a,[T,L].concat(_.PG(h)));(h.length||m.length)&&PB(this,a,Z.path,T,h.length,m);return m};
W.prototype.shift=function(b){var T={path:""};b=E0(this,b,T);var L=!!b.length,h=b.shift();L&&PB(this,b,T.path,0,0,[h]);return h};
W.prototype.unshift=function(b){var T=_.PD.apply(1,arguments),L={path:""},h=E0(this,b,L),Z=h.unshift.apply(h,_.PG(T));T.length&&PB(this,h,L.path,0,T.length,[]);return Z};
W.prototype.notifyPath=function(b,T){if(arguments.length==1){var L={path:""};T=E0(this,b,L);L=L.path}else L=Array.isArray(b)?YF(b):b;this._setPendingPropertyOrPath(L,T,!0,!0)&&this._invalidateProperties()};
W.prototype._createReadOnlyProperty=function(b,T){this._addPropertyEffect(b,"__readOnly");T&&(this["_set"+(b[0].toUpperCase()+b.substring(1))]=function(L){this._setProperty(b,L)})};
W.prototype._createPropertyObserver=function(b,T,L){var h={property:b,method:T,dynamicFn:!!L};this._addPropertyEffect(b,"__observeEffects",{fn:GBX,info:h,trigger:{name:b}});L&&this._addPropertyEffect(T,"__observeEffects",{fn:GBX,info:h,trigger:{name:T}})};
W.prototype._createMethodObserver=function(b,T){var L=j42(b);if(!L)throw Error("zd`"+b);WoO(this,L,"__observeEffects",MEe,null,T)};
W.prototype._createNotifyingProperty=function(b){this._addPropertyEffect(b,"__notifyEffects",{fn:tE1,info:{eventName:S3(b)+"-changed",property:b}})};
W.prototype._createReflectedProperty=function(b){var T=this.constructor.attributeNameForProperty(b);T[0]==="-"?console.warn("Property "+b+" cannot be reflected to attribute "+T+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(b,"__reflectEffects",{fn:$fX,info:{attrName:T}})};
W.prototype._createComputedProperty=function(b,T,L){var h=j42(T);if(!h)throw Error("Ad`"+T);T=WoO(this,h,"__computeEffects",uLT,b,L);nS8(this,"__computeInfo")[b]=T};
W.prototype._marshalArgs=function(b,T,L){for(var h=this.__data,Z=[],a=0,m=b.length;a<m;a++){var w=b[a],A=w.name,X=w.structured,l=w.wildcard,p=w.value;w.literal||(l?(w=a2(A,T),X=TtX(h,L,w?T:A),p={path:w?T:A,value:X,base:w?E0(h,A):X}):p=X?TtX(h,L,A):h[A]);if(e3&&!this._overrideLegacyUndefined&&p===void 0&&b.length>1)return lO;Z[a]=p}return Z};
W.addPropertyEffect=function(b,T,L){this.prototype._addPropertyEffect(b,T,L)};
W.createPropertyObserver=function(b,T,L){this.prototype._createPropertyObserver(b,T,L)};
W.createMethodObserver=function(b,T){this.prototype._createMethodObserver(b,T)};
W.createNotifyingProperty=function(b){this.prototype._createNotifyingProperty(b)};
W.createReadOnlyProperty=function(b,T){this.prototype._createReadOnlyProperty(b,T)};
W.createReflectedProperty=function(b){this.prototype._createReflectedProperty(b)};
W.createComputedProperty=function(b,T,L){this.prototype._createComputedProperty(b,T,L)};
W.bindTemplate=function(b){return this.prototype._bindTemplate(b)};
W.prototype._bindTemplate=function(b,T){var L=this.constructor._parseTemplate(b),h=this.__preBoundTemplateInfo==L;if(!h)for(var Z in L.propertyEffects)this._createPropertyAccessor(Z);T?(L=Object.create(L),L.wasPreBound=h,this.__templateInfo?(b=b._parentTemplateInfo||this.__templateInfo,T=b.lastChild,L.parent=b,b.lastChild=L,(L.previousSibling=T)?T.nextSibling=L:b.firstChild=L):this.__templateInfo=L):this.__preBoundTemplateInfo=L;return L};
W._addTemplatePropertyEffect=function(b,T,L){(b.hostProps=b.hostProps||{})[T]=!0;b=b.propertyEffects=b.propertyEffects||{};(b[T]=b[T]||[]).push(L)};
W.prototype._stampTemplate=function(b,T){T=T||this._bindTemplate(b,!0);$g.push(this);b=O.prototype._stampTemplate.call(this,b,T);$g.pop();T.nodeList=b.nodeList;if(!T.wasPreBound)for(var L=T.childNodes=[],h=b.firstChild;h;h=h.nextSibling)L.push(h);b.templateInfo=T;L=T.nodeList;h=T.nodeInfoList;if(h.length)for(var Z=0;Z<h.length;Z++){var a=L[Z],m=h[Z].bindings;if(m)for(var w=0;w<m.length;w++){var A=m[w],X=a,l=A;if(l.isCompound){for(var p=X.__dataCompoundStorage||(X.__dataCompoundStorage={}),K=l.parts,
k=Array(K.length),r=0;r<K.length;r++)k[r]=K[r].literal;K=l.target;p[K]=k;l.literal&&l.kind=="property"&&(K==="className"&&(X=(0,_.X2)(X)),X[K]=l.literal)}yPh(a,this,A)}a.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(T,this.__data,null,!1),this._flushClients());return b};
W.prototype._removeBoundDom=function(b){b=b.templateInfo;var T=b.previousSibling,L=b.nextSibling,h=b.parent;T?T.nextSibling=L:h&&(h.firstChild=L);L?L.previousSibling=T:h&&(h.lastChild=T);b.nextSibling=b.previousSibling=null;b=b.childNodes;for(T=0;T<b.length;T++)L=b[T],(0,_.X2)((0,_.X2)(L).parentNode).removeChild(L)};
W._parseTemplateNode=function(b,T,L){var h=O._parseTemplateNode.call(this,b,T,L);if(b.nodeType===Node.TEXT_NODE){var Z=this._parseBindings(b.textContent,T);Z&&(b.textContent=OpP(Z)||" ",FRP(this,T,L,"text","textContent",Z),h=!0)}return h};
W._parseTemplateNodeAttribute=function(b,T,L,h,Z){var a=this._parseBindings(Z,T);if(a){Z=h;var m="property";t37.test(h)?m="attribute":h[h.length-1]=="$"&&(h=h.slice(0,-1),m="attribute");var w=OpP(a);w&&m=="attribute"&&(h=="class"&&b.hasAttribute("class")&&(w+=" "+b.getAttribute(h)),b.setAttribute(h,w));m=="attribute"&&Z=="disable-upgrade$"&&b.setAttribute(h,"");b.localName==="input"&&Z==="value"&&b.setAttribute(Z,"");b.removeAttribute(Z);m==="property"&&(h=hq(h));FRP(this,T,L,m,h,a,w);return!0}return O._parseTemplateNodeAttribute.call(this,
b,T,L,h,Z)};
W._parseTemplateNestedTemplate=function(b,T,L){var h=O._parseTemplateNestedTemplate.call(this,b,T,L),Z=b.parentNode,a=L.templateInfo,m=Z.localName==="dom-if",w=Z.localName==="dom-repeat";q2&&(m||w)&&(Z.removeChild(b),L=L.parentInfo,L.templateInfo=a,L.noted=!0,h=!1);b=a.hostProps;if(nc&&m)b&&(T.hostProps=Object.assign(T.hostProps||{},b),q2||(L.parentInfo.noted=!0));else for(var A in b)FRP(this,T,L,"property","_host_"+A,[{mode:"{",source:A,dependencies:[A],hostProp:!0}]);return h};
W._parseBindings=function(b,T){for(var L=[],h=0,Z;(Z=V3q.exec(b))!==null;){Z.index>h&&L.push({literal:b.slice(h,Z.index)});h=Z[1][0];var a=!!Z[2];Z=Z[3].trim();var m=!1,w="",A=-1;h=="{"&&(A=Z.indexOf("::"))>0&&(w=Z.substring(A+2),Z=Z.substring(0,A),m=!0);A=j42(Z);var X=[];if(A){var l=A,p=l.args;l=l.methodName;for(var K=0;K<p.length;K++){var k=p[K];k.literal||X.push(k)}if((p=T.dynamicFns)&&p[l]||A.static)X.push(l),A.dynamicFn=!0}else X.push(Z);L.push({source:Z,mode:h,negate:a,customEvent:m,signature:A,
dependencies:X,event:w});h=V3q.lastIndex}h&&h<b.length&&(b=b.substring(h))&&L.push({literal:b});return L.length?L:null};
W._evaluateBinding=function(b,T,L,h,Z,a){b=T.signature?MEe(b,L,h,Z,T.signature):L!=T.source?E0(b,T.source):a&&ZF(L)?E0(b,L):b.__data[L];T.negate&&(b=!b);return b};
_.Jq.Object.defineProperties(W.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return HPw}}});
return W}),$g=[];var N37=window.ShadyCSS&&window.ShadyCSS.cssBuild,N2=tR(function(W){function O(T,L,h,Z){if(!N37){for(var a=L.content.querySelectorAll("style"),m=ZpE(L),w=IOe(h),A=L.content.firstElementChild,X=0;X<w.length;X++){var l=w[X];l.textContent=T._processStyleText(l.textContent,Z);L.content.insertBefore(l,A)}for(A=w=0;A<m.length;A++)X=m[A],l=a[w],l!==X?(X=X.cloneNode(!0),l.parentNode.insertBefore(X,l)):w++,X.textContent=T._processStyleText(X.textContent,Z)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(L,
h);if(e_v&&N37&&EFw&&(L=L.content.querySelectorAll("style"))){var p="";Array.from(L).forEach(function(K){p+=K.textContent;K.parentNode.removeChild(K)});
T._styleSheet=new CSSStyleSheet;T._styleSheet.replaceSync(p)}}
var b=ksz(Vb(W));W=function(){return b.call(this)||this};
_.R(W,b);W._finalizeClass=function(){b._finalizeClass.call(this);var T;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(T=this.__ownObservers)&&this.createObservers(T,this._properties);this._prepareTemplate()};
W._prepareTemplate=function(){var T=this.template;T&&(typeof T==="string"?(console.error("template getter must return HTMLTemplateElement"),T=null):xF||(T=T.cloneNode(!0)));this.prototype._template=T};
W.createProperties=function(T){for(var L in T){var h=this.prototype,Z=L,a=T[L],m=T;a.computed&&(a.readOnly=!0);a.computed&&(h._hasReadOnlyEffect(Z)?console.warn("Cannot redefine computed property '"+Z+"'."):h._createComputedProperty(Z,a.computed,m));a.readOnly&&!h._hasReadOnlyEffect(Z)?h._createReadOnlyProperty(Z,!a.computed):a.readOnly===!1&&h._hasReadOnlyEffect(Z)&&console.warn("Cannot make readOnly property '"+Z+"' non-readOnly.");a.reflectToAttribute&&!h._hasReflectEffect(Z)?h._createReflectedProperty(Z):
a.reflectToAttribute===!1&&h._hasReflectEffect(Z)&&console.warn("Cannot make reflected property '"+Z+"' non-reflected.");a.notify&&!h._hasNotifyEffect(Z)?h._createNotifyingProperty(Z):a.notify===!1&&h._hasNotifyEffect(Z)&&console.warn("Cannot make notify property '"+Z+"' non-notify.");a.observer&&h._createPropertyObserver(Z,a.observer,m[a.observer]);h._addPropertyToAttributeMap(Z)}};
W.createObservers=function(T,L){for(var h=this.prototype,Z=0;Z<T.length;Z++)h._createMethodObserver(T[Z],L)};
W.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);b.prototype._initializeProperties.call(this);this.rootPath=wBf;this.importPath=this.constructor.importPath;var T=this.constructor;if(!T.hasOwnProperty("__propertyDefaults")){T.__propertyDefaults=null;var L=T._properties,h;for(h in L){var Z=L[h];"value"in Z&&(T.__propertyDefaults=T.__propertyDefaults||{},T.__propertyDefaults[h]=Z)}}if(T=T.__propertyDefaults)for(var a in T)L=T[a],
this._canApplyPropertyDefault(a)&&(L=typeof L.value=="function"?L.value.call(this):L.value,this._hasAccessor(a)?this._setPendingProperty(a,L,!0):this[a]=L)};
W.prototype._canApplyPropertyDefault=function(T){return!this.hasOwnProperty(T)};
W._processStyleText=function(T,L){return ps8(T,L)};
W._finalizeTemplate=function(T){var L=this.prototype._template;if(L&&!L.__polymerFinalized){L.__polymerFinalized=!0;var h=this.importPath;h=h?_.LP(h):"";O(this,L,T,h);this.prototype._bindTemplate(L)}};
W.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);b.prototype.connectedCallback.call(this)};
W.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);b.prototype.ready.call(this)};
W.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));b.prototype._readyClients.call(this)};
W.prototype._attachDom=function(T){var L=(0,_.X2)(this);if(L.attachShadow)return T?(L.shadowRoot||(L.attachShadow({mode:"open",shadyUpgradeFragment:T}),L.shadowRoot.appendChild(T),this.constructor._styleSheet&&(L.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),XBv&&window.ShadyDOM&&window.ShadyDOM.flushInitial(L.shadowRoot),L.shadowRoot):null;throw Error("Cd");};
W.prototype.updateStyles=function(T){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,T)};
W.prototype.resolveUrl=function(T,L){!L&&this.importPath&&(L=_.LP(this.importPath));return _.LP(T,L)};
W._parseTemplateContent=function(T,L,h){L.dynamicFns=L.dynamicFns||this._properties;return b._parseTemplateContent.call(this,T,L,h)};
W._addTemplatePropertyEffect=function(T,L,h){!nP||L in this._properties||h.info.part.signature&&h.info.part.signature.static||h.info.part.hostProp||T.nestedTemplate||console.warn("Property '"+L+"' used in template but not declared in 'properties'; attribute will not be observed.");return b._addTemplatePropertyEffect.call(this,T,L,h)};
_.Jq.Object.defineProperties(W,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var T=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof T==="function"&&(T=T());if(T===void 0){if(T=this.hasOwnProperty("is")){T=this.is;var L=null;if(T&&(!fP||AqS)&&(L=pP.import(T,"template"),fP&&!L))throw Error("Bd`"+T);T=L}T=T||Object.getPrototypeOf(this.prototype).constructor.template}this._template=T}return this._template},
set:function(T){this._template=T}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var T=this.importMeta;T?this._importPath=RcX(T.url):this._importPath=(T=pP.import(this.is))&&T.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return W});var M3f=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(W){return W}}),ULT=function(W,O){u2N(W,O);
this.value=O.reduce(function(b,T,L){return b+lO8(T)+W[L+1]},W[0]).toString()},u2N;
ULT.prototype.toString=function(){return this.value};
_.JqN=function(W){var O=_.PD.apply(1,arguments);u2N(W,O);var b=document.createElement("template");O=O.reduce(function(T,L,h){if(L instanceof HTMLTemplateElement)L=L.innerHTML;else if(L instanceof ULT)L=lO8(L);else throw Error("Ed`"+L);return T+L+W[h+1]},W[0]);
M3f&&(O=M3f.createHTML(O));b.innerHTML=O;return b};
u2N=function(W,O){if(!Array.isArray(W)||!Array.isArray(W.raw)||O.length!==W.length-1)throw new TypeError("Fd");};var M2=N2(HTMLElement);var cqf=tR(function(W){var O=N2(W);W=function(){var b=O.call(this)||this;b.__lastItems=null;b.__lastMulti=null;b.__selectedMap=null;return b};
_.R(W,O);W.prototype.__updateSelection=function(b,T){var L=T.path;L=="items"?(T=T.base||[],L=this.__lastItems,b!==this.__lastMulti&&this.clearSelection(),L&&(L=XmE(T,L),this.__applySplices(L)),this.__lastItems=T,this.__lastMulti=b):T.path=="items.splices"?this.__applySplices(T.value.indexSplices):(b=L.slice(6),T=parseInt(b,10),b.indexOf(".")<0&&b==T&&this.__deselectChangedIdx(T))};
W.prototype.__applySplices=function(b){for(var T=this,L=this.__selectedMap,h={},Z=0;Z<b.length;h={s$jscomp$108:void 0},Z++){h.s$jscomp$108=b[Z];L.forEach(function(A){return function(X,l){X<A.s$jscomp$108.index||(X>=A.s$jscomp$108.index+A.s$jscomp$108.removed.length?L.set(l,X+A.s$jscomp$108.addedCount-A.s$jscomp$108.removed.length):L.set(l,-1))}}(h));
for(var a=0;a<h.s$jscomp$108.addedCount;a++){var m=h.s$jscomp$108.index+a;L.has(this.items[m])&&L.set(this.items[m],m)}}this.__updateLinks();var w=0;L.forEach(function(A,X){A<0?(T.multi?T.splice("selected",w,1):T.selected=T.selectedItem=null,L.delete(X)):w++})};
W.prototype.__updateLinks=function(){var b=this;this.__dataLinkedPaths={};if(this.multi){var T=0;this.__selectedMap.forEach(function(L){L>=0&&b.linkPaths("items."+L,"selected."+T++)})}else this.__selectedMap.forEach(function(L){b.linkPaths("selected","items."+L);
b.linkPaths("selectedItem","items."+L)})};
W.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
W.prototype.isSelected=function(b){return this.__selectedMap.has(b)};
W.prototype.isIndexSelected=function(b){return this.isSelected(this.items[b])};
W.prototype.__deselectChangedIdx=function(b){var T=this,L=this.__selectedIndexForItemIndex(b);if(L>=0){var h=0;this.__selectedMap.forEach(function(Z,a){L==h++&&T.deselect(a)})}};
W.prototype.__selectedIndexForItemIndex=function(b){if(b=this.__dataLinkedPaths["items."+b])return parseInt(b.slice(9),10)};
W.prototype.deselect=function(b){var T=this.__selectedMap.get(b);if(T>=0){this.__selectedMap.delete(b);var L;this.multi&&(L=this.__selectedIndexForItemIndex(T));this.__updateLinks();this.multi?this.splice("selected",L,1):this.selected=this.selectedItem=null}};
W.prototype.deselectIndex=function(b){this.deselect(this.items[b])};
W.prototype.select=function(b){this.selectIndex(this.items.indexOf(b))};
W.prototype.selectIndex=function(b){var T=this.items[b];this.isSelected(T)?this.toggle&&this.deselectIndex(b):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(T,b),this.__updateLinks(),this.multi?this.push("selected",T):this.selected=this.selectedItem=T)};
_.Jq.Object.defineProperties(W,{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 W}),FAv=cqf(M2),uZ=function(){return FAv.apply(this,arguments)||this};
_.R(uZ,FAv);_.Jq.Object.defineProperties(uZ,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(uZ.is,uZ);var yqS=window.Polymer;window.Polymer=function(W){return window.Polymer._polymerFn(W)};
yqS&&Object.assign(Polymer,yqS);Polymer._polymerFn=function(){throw Error("Gd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:ps8,resolveUrl:_.LP,pathFromUrl:RcX};Polymer.DomModule=pP;Polymer.Async={timeOut:_.HT,animationFrame:_.Kb,idlePeriod:vFL,microTask:r3};Polymer.dedupingMixin=tR;Polymer.wrap=_.X2;Polymer.PropertiesChanged=oFN;Polymer.telemetry={instanceCount:Q29,incrementInstanceCount:function(){Q29++},
registrations:oSO,register:QMQ,dumpRegistrations:function(){oSO.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=ksz;Polymer.CaseMap={dashToCamelCase:hq,camelToDashCase:S3};Polymer.PropertyAccessors=z_H;Polymer.TemplateStamp=Gs5;Polymer.Path={isPath:ZF,root:I2,isAncestor:xfX,isDescendant:a2,translate:mA,matches:zc8,normalize:YF,split:CnP,get:E0,set:q1Q,isDeep:ZF};Polymer.Settings={useShadow:zs,useNativeCSSProperties:ZPq,useNativeCustomElements:IFv,get rootPath(){return wBf},setRootPath:function(W){wBf=W},
get sanitizeDOMValue(){return U0},setSanitizeDOMValue:function(W){U0=W},
get passiveTouchGestures(){return rIi},setPassiveTouchGestures:function(W){rIi=W},
get strictTemplatePolicy(){return fP},setStrictTemplatePolicy:function(W){fP=W},
get allowTemplateFromDomModule(){return AqS},setAllowTemplateFromDomModule:function(W){AqS=W},
get legacyOptimizations(){return xF},setLegacyOptimizations:function(W){xF=W},
get syncInitialRender(){return XBv},setSyncInitialRender:function(W){XBv=W},
get legacyUndefined(){return e3},setLegacyUndefined:function(W){e3=W},
get legacyWarnings(){return nP},setLegacyWarnings:function(W){nP=W},
get orderedComputed(){return Uyw},setOrderedComputed:function(W){Uyw=W},
get fastDomIf(){return nc},setFastDomIf:function(W){nc=W},
get removeNestedTemplates(){return q2},setRemoveNestedTemplates:function(W){q2=W},
get suppressTemplateNotifications(){return fc},setSuppressTemplateNotifications:fc};Polymer.rootPath!==void 0&&(wBf=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(U0=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(rIi=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(fP=Polymer.strictTemplatePolicy);AqS=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(xF=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(XBv=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(e3=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(nP=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Uyw=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(nc=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(q2=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(fc=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return U0},
set:function(W){U0=W}});Polymer.PropertyEffects=Vb;Polymer.StyleGather={stylesFromModules:SxP,stylesFromModule:hlX,stylesFromTemplate:ZpE,stylesFromModuleImports:IOe,cssFromModules:Yx8,cssFromModule:aOi,cssFromTemplate:EzX,cssFromModuleImports:function(W){return(W=pP.import(W))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(W):""}};Polymer.ElementMixin=N2;Polymer.updateStyles=function(W){window.ShadyCSS&&window.ShadyCSS.styleDocument(W)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:XmE};Polymer.html=_.JqN;Polymer.htmlLiteral=function(W){return new ULT(W,_.PD.apply(1,arguments))};Polymer.Element=M2;Polymer.ArraySelectorMixin=cqf;Polymer.ArraySelector=uZ;var W19=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Oqf=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,WNQ=/@media\s(.*)/;var RlX=null,pmO=window.HTMLImports&&window.HTMLImports.whenReady||null,KoQ;var iqH=null,JR=null,cT=function(){this.customStyles=[];this.enqueued=!1;vz1(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},bq5=function(W){!W.enqueued&&JR&&(W.enqueued=!0,vz1(JR))};
cT.prototype.addCustomStyle=function(W){W.__seenByShadyCSS||(W.__seenByShadyCSS=!0,this.customStyles.push(W),bq5(this))};
cT.prototype.getStyleForCustomStyle=function(W){if(W.__shadyCSSCachedStyle)return W.__shadyCSSCachedStyle;var O;W.getStyle?O=W.getStyle():O=W;return O};
cT.prototype.processStyles=function(){for(var W=this.customStyles,O=0;O<W.length;O++){var b=W[O];if(!b.__shadyCSSCachedStyle){var T=this.getStyleForCustomStyle(b);T&&(T=T.__appliedElement||T,iqH&&iqH(T),b.__shadyCSSCachedStyle=T)}}return W};
cT.prototype.addCustomStyle=cT.prototype.addCustomStyle;cT.prototype.getStyleForCustomStyle=cT.prototype.getStyleForCustomStyle;cT.prototype.processStyles=cT.prototype.processStyles;Object.defineProperties(cT.prototype,{transformCallback:{get:function(){return iqH},
set:function(W){iqH=W}},
validateCallback:{get:function(){return JR},
set:function(W){var O=!1;JR||(O=!0);JR=W;O&&bq5(this)}}});var oz8=!(window.ShadyDOM&&window.ShadyDOM.inUse),gz8,uO;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(uO=window.ShadyCSS.cssBuild);var jsN=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?gz8=window.ShadyCSS.nativeCss:window.ShadyCSS?(Q48(window.ShadyCSS),window.ShadyCSS=void 0):Q48(window.WebComponents&&window.WebComponents.flags);var cTT=gz8;var Tl9=new cT;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(W,O){Tl9.processStyles();elh(W,O)},
styleElement:function(){Tl9.processStyles()},
styleDocument:function(W){Tl9.processStyles();elh(document.body,W)},
getComputedStyleValue:function(W,O){return Pw1(W,O)},
flushCustomStyles:function(){},
nativeCss:cTT,nativeShadow:oz8,cssBuild:uO,disableRuntime:jsN});window.ShadyCSS.CustomStyleInterface=Tl9;var L1w=window.ShadyCSS.CustomStyleInterface,F8=function(){var W=HTMLElement.call(this)||this;W._style=null;L1w.addCustomStyle(W);return W};
_.R(F8,HTMLElement);F8.prototype.getStyle=function(){if(this._style)return this._style;var W=this.querySelector("style");if(!W)return null;this._style=W;var O=W.getAttribute("include");O&&(W.removeAttribute("include"),W.textContent=Yx8(O)+W.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
F8.prototype.getStyle=F8.prototype.getStyle;window.customElements.define("custom-style",F8);Polymer.CustomStyle=F8;var yb=function(){this._timer=this._callback=this._asyncModule=null},Wq,hHn;
yb.prototype.setConfig=function(W,O){var b=this;this._asyncModule=W;this._callback=O;this._timer=this._asyncModule.run(function(){b._timer=null;Wq.delete(b);b._callback()})};
yb.prototype.cancel=function(){this.isActive()&&(dpq(this),Wq.delete(this))};
var dpq=function(W){W.isActive()&&(W._asyncModule.cancel(W._timer),W._timer=null)};
yb.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
yb.prototype.isActive=function(){return this._timer!=null};
_.O9=function(W,O,b){W instanceof yb?dpq(W):W=new yb;W.setConfig(O,b);return W};
Wq=new Set;_.iK=function(W){Wq.add(W)};
hHn=function(){var W=!!Wq.size;Wq.forEach(function(O){try{O.flush()}catch(b){setTimeout(function(){throw b;})}});
return W};var s4E=typeof document.head.style.touchAction==="string",kJP=["mousedown","mousemove","mouseup","click"],fOT=[0,1,4,2],SkH;try{SkH=(new MouseEvent("test",{buttons:1})).buttons===1}catch(W){SkH=!1}var nzX=SkH,BtP=!1;(function(){try{var W=Object.defineProperty({},"passive",{get:function(){BtP=!0}});
window.addEventListener("test",null,W);window.removeEventListener("test",null,W)}catch(O){}})();
var xLE=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),zl8=[],Zqn={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},yI8={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},CwQ=function(W){var O=W.sourceCapabilities;if(!O||O.firesTouchEvents)if(W.__polymerGesturesHandled={skip:!0},W.type==="click"){O=!1;for(var b=$Lq(W),T=0;T<b.length;T++){if(b[T].nodeType===Node.ELEMENT_NODE)if(b[T].localName==="label")zl8.push(b[T]);
else if(Zqn[b[T].localName]){var L=b[T];var h=Array.prototype.slice.call(L.labels||[]);if(!h.length){h=[];try{var Z=L.getRootNode();if(L.id){var a=Z.querySelectorAll("label[for = '"+L.id+"']");for(L=0;L<a.length;L++)h.push(a[L])}}catch(m){}}for(L=0;L<h.length;L++)O=O||zl8.indexOf(h[L])>-1}if(b[T]===Iu7)return}O||(W.preventDefault(),W.stopPropagation())}},Iu7=null,bK=null,Nt8=0,Mk8=0,Vke=-1,ug8=!1;
document.addEventListener("touchend",function(W){bK||qxO(!0);Iu7=$Lq(W)[0];bK=_.O9(bK,_.HT.after(2500),function(){qxO();bK=Iu7=null})},BtP?{passive:!0}:!1);
var $Lq=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(W){return W.composedPath&&W.composedPath()||[]},QM={},g3=[];
JIX({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){vB(this.info)},
mousedown:function(W){if(KP(W)){var O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),b=this;HpX(this.info,function(T){KP(T)||(DF("up",O,T),vB(b.info))},function(T){KP(T)&&DF("up",O,T);
vB(b.info)});
DF("down",O,W)}},
touchstart:function(W){DF("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)},
touchend:function(W){DF("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),W.changedTouches[0],W)}});
JIX({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(W){this.moves.length>2&&this.moves.shift();this.moves.push(W)},
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;vB(this.info)},
mousedown:function(W){if(KP(W)){var O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W),b=this,T=function(L){var h=L.clientX,Z=L.clientY;cIh(b.info,h,Z)&&(b.info.state=b.info.started?L.type==="mouseup"?"end":"track":"start",b.info.state==="start"&&o2("tap"),b.info.addMove({x:h,y:Z}),KP(L)||(b.info.state="end",vB(b.info)),O&&Fo1(b.info,O,L),b.info.started=!0)};
HpX(this.info,T,function(L){b.info.started&&T(L);vB(b.info)});
this.info.x=W.clientX;this.info.y=W.clientY}},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchmove:function(W){var O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];var b=W.clientX,T=W.clientY;cIh(this.info,b,T)&&(this.info.state==="start"&&o2("tap"),this.info.addMove({x:b,y:T}),Fo1(this.info,O,W),this.info.state="track",this.info.started=!0)},
touchend:function(W){var O=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W);W=W.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:W.clientX,y:W.clientY}),Fo1(this.info,O,W))}});
JIX({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(W){KP(W)&&(this.info.x=W.clientX,this.info.y=W.clientY)},
click:function(W){KP(W)&&W92(this.info,W)},
touchstart:function(W){W=W.changedTouches[0];this.info.x=W.clientX;this.info.y=W.clientY},
touchend:function(W){W92(this.info,W.changedTouches[0],W)}});var au5=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O.prototype._addEventListenerToNode=function(b,T,L){kF(b,T,L)||W.prototype._addEventListenerToNode.call(this,b,T,L)};
O.prototype._removeEventListenerFromNode=function(b,T,L){s0(b,T,L)||W.prototype._removeEventListenerFromNode.call(this,b,T,L)};
return O});var jw=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O.prototype._shouldPropertyChange=function(b,T,L){return OFq(this,b,T,L,!0)};
return O}),mpq=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O.prototype._shouldPropertyChange=function(b,T,L){return OFq(this,b,T,L,this.mutableData)};
_.Jq.Object.defineProperties(O,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return O});
jw._mutablePropertyChange=OFq;var iFQ=!1;var Ykn=au5(mpq(Vb(HTMLElement))),Tg=function(){var W=Ykn.call(this)||this;if(fP)throw Error("Hd");W.root=null;W.$=null;W.__children=null;return W};
_.R(Tg,Ykn);_.d=Tg.prototype;_.d.attributeChangedCallback=function(){this.mutableData=!0};
_.d.connectedCallback=function(){bFh()||(this.style.display="none");this.render()};
_.d.disconnectedCallback=function(){this.__removeChildren()};
_.d.__insertChildren=function(){(0,_.X2)((0,_.X2)(this).parentNode).insertBefore(this.root,this)};
_.d.__removeChildren=function(){if(this.__children)for(var W=0;W<this.__children.length;W++)this.root.appendChild(this.__children[W])};
_.d.render=function(){var W=this;if(!this.__children){var O=O||this.querySelector("template");if(!O){var b=new MutationObserver(function(){if(O=W.querySelector("template"))b.disconnect(),W.render();else throw Error("Id");});
b.observe(this,{childList:!0});return}this.root=this._stampTemplate(O);this.$=this.root.$;this.__children=[];for(var T=this.root.firstChild;T;T=T.nextSibling)this.__children[this.__children.length]=T;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Jq.Object.defineProperties(Tg,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",Tg);Polymer.Debouncer=yb;Polymer.Gestures={gestures:QM,recognizers:g3,deepTargetFind:tki,addListener:kF,removeListener:s0,register:JIX,setTouchAction:_.BB,prevent:o2,resetMouseCanceller:function(){bK&&bK.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:kF,remove:s0};Polymer.GestureEventListeners=au5;Polymer.MutableData=jw;Polymer.OptionalMutableData=mpq;Polymer.DomBind=Tg;_.Lg=function(){do{var W=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var O=hHn()}while(W||O)};var jyX=null;T6i.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:T6i,writable:!0}});var ms2=Vb(T6i),av2=jw(ms2),EJL=Vb(function(){}),CP=function(W){var O=EJL.call(this)||this;
O._configureProperties(W);O.root=O._stampTemplate(O.__dataHost);var b=[];O.children=b;for(var T=O.root.firstChild;T;T=T.nextSibling)b.push(T),T.__templatizeInstance=O;O.__templatizeOwner&&O.__templatizeOwner.__hideTemplateChildren__&&O._showHideChildren(!0);b=O.__templatizeOptions;(W&&b.instanceProps||!b.instanceProps)&&O._enableProperties();return O};
_.R(CP,EJL);_.d=CP.prototype;_.d._configureProperties=function(W){if(this.__templatizeOptions.forwardHostProp)for(var O in this.__hostProps)this._setPendingProperty(O,this.__dataHost["_host_"+O]);for(var b in W)this._setPendingProperty(b,W[b])};
_.d.forwardHostProp=function(W,O){this._setPendingPropertyOrPath(W,O,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.d._addEventListenerToNode=function(W,O,b){var T=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(W,O,function(h){h.model=T;b(h)});
else{var L=this.__dataHost.__dataHost;L&&L._addEventListenerToNode(W,O,b)}};
_.d._showHideChildren=function(W){dsh(W,this.children)};
_.d._setUnmanagedPropertyToNode=function(W,O,b){W.__hideTemplateChildren__&&W.nodeType==Node.TEXT_NODE&&O=="textContent"?W.__polymerTextContent__=b:EJL.prototype._setUnmanagedPropertyToNode.call(this,W,O,b)};
_.d.dispatchEvent=function(){return!0};
_.Jq.Object.defineProperties(CP.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var W=this.__parentModel;if(!W){var O;W=this;do W=W.__dataHost.__dataHost;while((O=W.__templatizeOptions)&&!O.parentModel);this.__parentModel=W}return W}}});
var S8P=jw(CP);var dp=function(){var W=M2.call(this)||this;W.__renderDebouncer=null;W._lastIf=!1;W.__hideTemplateChildren__=!1;return W};
_.R(dp,M2);_.d=dp.prototype;_.d.__debounceRender=function(){var W=this;this.__renderDebouncer=_.O9(this.__renderDebouncer,r3,function(){return W.__render()});
_.iK(this.__renderDebouncer)};
_.d.disconnectedCallback=function(){M2.prototype.disconnectedCallback.call(this);var W=(0,_.X2)(this).parentNode;W&&(W.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.X2)(W).host)||this.__teardownInstance()};
_.d.connectedCallback=function(){M2.prototype.connectedCallback.call(this);bFh()||(this.style.display="none");this.if&&this.__debounceRender()};
_.d.__ensureTemplate=function(){var W=this;if(!this.__template){var O=this._templateInfo?this:(0,_.X2)(this).querySelector("template");if(!O){var b=new MutationObserver(function(){if((0,_.X2)(W).querySelector("template"))b.disconnect(),W.__render();else throw Error("Ld");});
b.observe(this,{childList:!0});return!1}this.__template=O}return!0};
_.d.__ensureInstance=function(){var W=(0,_.X2)(this).parentNode;if(this.__hasInstance()){var O=this.__getInstanceNodes();if(O&&O.length&&(0,_.X2)(this).previousSibling!==O[O.length-1])for(var b=0,T=void 0;b<O.length&&(T=O[b]);b++)(0,_.X2)(W).insertBefore(T,this)}else{if(!W||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(W)}return!0};
_.d.render=function(){_.Lg()};
_.d.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();fc&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.d.__hasInstance=function(){};
_.d.__getInstanceNodes=function(){};
_.d.__createAndInsertInstance=function(){};
_.d.__teardownInstance=function(){};
_.d._showHideChildren=function(){};
_.Jq.Object.defineProperties(dp,{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:dp.prototype.__debounceRender},restamp:{type:Boolean,observer:dp.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var wbn=function(){var W=dp.call(this)||this;W.__instance=null;W.__syncInfo=null;return W};
_.R(wbn,dp);_.d=wbn.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.d.__createAndInsertInstance=function(W){var O=this,b=this.__dataHost||this;if(fP&&!this.__dataHost)throw Error("Jd");var T=b._bindTemplate(this.__template,!0);T.runEffects=function(L,h,Z){var a=O.__syncInfo;if(O.if)a&&(O.__syncInfo=null,O._showHideChildren(),h=Object.assign(a.changedProps,h)),L(h,Z);else if(O.__instance)if(a||(a=O.__syncInfo={runEffects:L,changedProps:{}}),Z)for(var m in h)L=I2(m),a.changedProps[L]=O.__dataHost[L];else Object.assign(a.changedProps,h)};
this.__instance=b._stampTemplate(this.__template,T);(0,_.X2)(W).insertBefore(this.__instance,this)};
_.d.__syncHostProperties=function(){var W=this.__syncInfo;W&&(this.__syncInfo=null,W.runEffects(W.changedProps,!1))};
_.d.__teardownInstance=function(){var W=this.__dataHost||this;this.__instance&&(W._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.d._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,dsh(W,this.__instance.templateInfo.childNodes));W||this.__syncHostProperties()};
var AC5=function(){var W=dp.call(this)||this;W.__ctor=null;W.__instance=null;W.__invalidProps=null;return W};
_.R(AC5,dp);_.d=AC5.prototype;_.d.__hasInstance=function(){return!!this.__instance};
_.d.__getInstanceNodes=function(){return this.__instance.children};
_.d.__createAndInsertInstance=function(W){this.__ctor||(this.__ctor=qy(this.__template,this,{mutableData:!0,forwardHostProp:function(O,b){this.__instance&&(this.if?this.__instance.forwardHostProp(O,b):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[I2(O)]=!0))}}));
this.__instance=new this.__ctor;(0,_.X2)(W).insertBefore(this.__instance.root,this)};
_.d.__teardownInstance=function(){if(this.__instance){var W=this.__instance.children;if(W&&W.length){var O=(0,_.X2)(W[0]).parentNode;if(O){O=(0,_.X2)(O);for(var b=0,T=void 0;b<W.length&&(T=W[b]);b++)O.removeChild(T)}}this.__instance=this.__invalidProps=null}};
_.d.__syncHostProperties=function(){var W=this.__invalidProps;if(W){this.__invalidProps=null;for(var O in W)this.__instance._setPendingProperty(O,this.__dataHost[O]);this.__instance._flushProperties()}};
_.d._showHideChildren=function(){var W=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==W&&(this.__instance.__hidden=W,this.__instance._showHideChildren(W));W||this.__syncHostProperties()};
_.oi=nc?wbn:AC5;customElements.define(_.oi.is,_.oi);Polymer.enqueueDebouncer=_.iK;Polymer.flush=_.Lg;Polymer.Templatize={templatize:qy,modelForElement:UsX};Polymer.TemplateInstanceBase=CP;Polymer.DomIf=_.oi;var XbU=mpq(M2),gi=function(){var W=XbU.call(this)||this;W.__instances=[];W.__renderDebouncer=null;W.__itemsIdxToInstIdx={};W.__chunkCount=null;W.__renderStartTime=null;W.__itemsArrayChanged=!1;W.__shouldMeasureChunk=!1;W.__shouldContinueChunking=!1;W.__chunkingId=0;W.__sortFn=null;W.__filterFn=null;W.__observePaths=null;W.__ctor=null;W.__isDetached=!0;W.template=null;return W};
_.R(gi,XbU);_.d=gi.prototype;_.d.disconnectedCallback=function(){XbU.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var W=0;W<this.__instances.length;W++)this.__detachInstance(W);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.d.connectedCallback=function(){XbU.prototype.connectedCallback.call(this);bFh()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var W=(0,_.X2)((0,_.X2)(this).parentNode),O=0;O<this.__instances.length;O++)this.__attachInstance(O,W);this.__chunkingId&&this.__render()}};
_.d.__ensureTemplatized=function(){var W=this;if(!this.__ctor){var O=this.template=this._templateInfo?this:this.querySelector("template");if(!O){var b=new MutationObserver(function(){if(W.querySelector("template"))b.disconnect(),W.__render();else throw Error("Md");});
b.observe(this,{childList:!0});return!1}var T={};T[this.as]=!0;T[this.indexAs]=!0;T[this.itemsIndexAs]=!0;this.__ctor=qy(O,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:T,forwardHostProp:function(L,h){for(var Z=this.__instances,a=0,m=void 0;a<Z.length&&(m=Z[a]);a++)m.forwardHostProp(L,h)},
notifyInstanceProp:function(L,h,Z){zc8(this.as,h)&&(L=L[this.itemsIndexAs],h==this.as&&(this.items[L]=Z),h=mA(this.as,"items."+L,h),this.notifyPath(h,Z))}})}return!0};
_.d.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.d.__functionFromPropertyValue=function(W){if(typeof W==="string"){var O=this.__getMethodHost();return function(){return O[W].apply(O,arguments)}}return W};
_.d.__sortChanged=function(W){this.__sortFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.d.__filterChanged=function(W){this.__filterFn=this.__functionFromPropertyValue(W);this.items&&this.__debounceRender(this.__render)};
_.d.__computeFrameTime=function(W){return Math.ceil(1E3/W)};
_.d.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.d.__handleObservedPaths=function(W){if(this.__sortFn||this.__filterFn)if(!W)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var O=this.__observePaths,b=0;b<O.length;b++)W.indexOf(O[b])===0&&this.__debounceRender(this.__render,this.delay)};
_.d.__itemsChanged=function(W){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(W.path,W.value)||(W.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.d.__debounceRender=function(W,O){O=O===void 0?0:O;this.__renderDebouncer=_.O9(this.__renderDebouncer,O>0?_.HT.after(O):r3,W.bind(this));_.iK(this.__renderDebouncer)};
_.d.render=function(){this.__debounceRender(this.__render);_.Lg()};
_.d.__render=function(){var W=this;if(this.__ensureTemplatized()){var O=this.items||[],b=this.__sortAndFilterItems(O),T=this.__calculateLimit(b.length);this.__updateInstances(O,T,b);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){W.__chunkingId=null;W.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);fc&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.d.__sortAndFilterItems=function(W){for(var O=this,b=Array(W.length),T=0;T<W.length;T++)b[T]=T;this.__filterFn&&(b=b.filter(function(L,h,Z){return O.__filterFn(W[L],h,Z)}));
this.__sortFn&&b.sort(function(L,h){return O.__sortFn(W[L],W[h])});
return b};
_.d.__calculateLimit=function(W){var O=W,b=this.__instances.length;if(this.initialCount){var T;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(O=Math.min(W,this.initialCount),this.__chunkCount=(T=Math.max(O-b,0))||1):(T=Math.min(Math.max(W-b,0),this.__chunkCount),O=Math.min(b+T,W));this.__shouldMeasureChunk=T===this.__chunkCount;this.__shouldContinueChunking=O<W;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return O};
_.d.__continueChunking=function(){if(this.__shouldMeasureChunk){var W=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/W*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.d.__updateInstances=function(W,O,b){var T=this.__itemsIdxToInstIdx={},L;for(L=0;L<O;L++){var h=this.__instances[L],Z=b[L],a=W[Z];T[Z]=L;h?(h._setPendingProperty(this.as,a),h._setPendingProperty(this.indexAs,L),h._setPendingProperty(this.itemsIndexAs,Z),h._flushProperties()):this.__insertInstance(a,L,Z)}for(W=this.__instances.length-1;W>=L;W--)this.__detachAndRemoveInstance(W)};
_.d.__detachInstance=function(W){W=this.__instances[W];for(var O=(0,_.X2)(W.root),b=0;b<W.children.length;b++)O.appendChild(W.children[b]);return W};
_.d.__attachInstance=function(W,O){O.insertBefore(this.__instances[W].root,this)};
_.d.__detachAndRemoveInstance=function(W){this.__detachInstance(W);this.__instances.splice(W,1)};
_.d.__stampInstance=function(W,O,b){var T={};T[this.as]=W;T[this.indexAs]=O;T[this.itemsIndexAs]=b;return new this.__ctor(T)};
_.d.__insertInstance=function(W,O,b){W=this.__stampInstance(W,O,b);b=(b=this.__instances[O+1])?b.children[0]:this;(0,_.X2)((0,_.X2)(this).parentNode).insertBefore(W.root,b);return this.__instances[O]=W};
_.d._showHideChildren=function(W){for(var O=0;O<this.__instances.length;O++)this.__instances[O]._showHideChildren(W)};
_.d.__handleItemPath=function(W,O){var b=W.slice(6),T=b.indexOf(".");W=T<0?b:b.substring(0,T);if(W==parseInt(W,10)){b=T<0?"":b.substring(T+1);this.__handleObservedPaths(b);if(W=this.__instances[this.__itemsIdxToInstIdx[W]])W._setPendingPropertyOrPath(this.as+(b?"."+b:""),O,!1,!0),W._flushProperties();return!0}};
_.d.itemForElement=function(W){return(W=this.modelForElement(W))&&W[this.as]};
_.d.indexForElement=function(W){return(W=this.modelForElement(W))&&W[this.indexAs]};
_.d.modelForElement=function(W){return UsX(this.template,W)};
_.Jq.Object.defineProperties(gi,{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:gi.prototype.__sortChanged},filter:{type:Function,observer:gi.prototype.__filterChanged},observe:{type:String,observer:gi.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!fc,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.*)"]}}});
gi.prototype._setRenderedItemCount=function(){};
customElements.define(gi.is,gi);Polymer.DomRepeat=gi;var UpN=function(W,O){var b=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=W;this.callback=O;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){b._schedule()};
this.connect();this._schedule()},luS=function(W){var O=(0,_.X2)(W);
if(Gs(W))return O.assignedNodes({flatten:!0});W=[];for(var b=0;b<O.childNodes.length;b++){var T=O.childNodes[b];Gs(T)?W.push.apply(W,_.PG((0,_.X2)(T).assignedNodes({flatten:!0}))):W.push(T)}return W};
_.d=UpN.prototype;_.d.connect=function(){var W=this;Gs(this._target)?this._listenSlots([this._target]):(0,_.X2)(this._target).children&&(this._listenSlots((0,_.X2)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(O){W._processMutations(O)}):(this._nativeChildrenObserver=new MutationObserver(function(O){W._processMutations(O)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.d.disconnect=function(){Gs(this._target)?this._unlistenSlots([this._target]):(0,_.X2)(this._target).children&&(this._unlistenSlots((0,_.X2)(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};
_.d._schedule=function(){var W=this;this._scheduled||(this._scheduled=!0,r3.run(function(){return W.flush()}))};
_.d._processMutations=function(W){this._processSlotMutations(W);this.flush()};
_.d._processSlotMutations=function(W){if(W)for(var O=0;O<W.length;O++){var b=W[O];b.addedNodes&&this._listenSlots(b.addedNodes);b.removedNodes&&this._unlistenSlots(b.removedNodes)}};
_.d.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 W={target:this._target,addedNodes:[],removedNodes:[]},O=luS(this._target),b=XmE(O,this._effectiveNodes),T=0,L=void 0;T<b.length&&(L=b[T]);T++)for(var h=0,Z=void 0;h<L.removed.length&&(Z=L.removed[h]);h++)W.removedNodes.push(Z);
T=0;for(L=void 0;T<b.length&&(L=b[T]);T++)for(h=L.index;h<L.index+L.addedCount;h++)W.addedNodes.push(O[h]);this._effectiveNodes=O;O=!1;if(W.addedNodes.length||W.removedNodes.length)O=!0,this.callback.call(this._target,W);return O};
_.d._listenSlots=function(W){for(var O=0;O<W.length;O++){var b=W[O];Gs(b)&&b.addEventListener("slotchange",this._boundSchedule)}};
_.d._unlistenSlots=function(W){for(var O=0;O<W.length;O++){var b=W[O];Gs(b)&&b.removeEventListener("slotchange",this._boundSchedule)}};var hc=Element.prototype,eHU=hc.matches||hc.matchesSelector||hc.mozMatchesSelector||hc.msMatchesSelector||hc.oMatchesSelector||hc.webkitMatchesSelector,PeL=function(W,O){return eHU.call(W,O)},HB=function(W){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(W);
this.node=W},vJ7;
_.d=HB.prototype;_.d.observeNodes=function(W){return new UpN(this.node,W)};
_.d.unobserveNodes=function(W){W.disconnect()};
_.d.notifyObserver=function(){};
_.d.deepContains=function(W){if((0,_.X2)(this.node).contains(W))return!0;var O=W;for(W=W.ownerDocument;O&&O!==W&&O!==this.node;)O=(0,_.X2)(O).parentNode||(0,_.X2)(O).host;return O===this.node};
_.d.getOwnerRoot=function(){return(0,_.X2)(this.node).getRootNode()};
_.d.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.X2)(this.node).assignedNodes({flatten:!0}):[]};
_.d.getDestinationInsertionPoints=function(){for(var W=[],O=(0,_.X2)(this.node).assignedSlot;O;)W.push(O),O=(0,_.X2)(O).assignedSlot;return W};
_.d.importNode=function(W,O){return(0,_.X2)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(W,O)};
_.d.getEffectiveChildNodes=function(){return luS(this.node)};
_.d.queryDistributedElements=function(W){for(var O=this.getEffectiveChildNodes(),b=[],T=0,L=O.length,h=void 0;T<L&&(h=O[T]);T++)h.nodeType===Node.ELEMENT_NODE&&PeL(h,W)&&b.push(h);return b};
_.Jq.Object.defineProperties(HB.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var W=this.node;return W._activeElement!==void 0?W._activeElement:W.activeElement}}});
var Sw=function(W){this.event=W};
_.Jq.Object.defineProperties(Sw.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 pbL=HB;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var RH9=window.ShadyDOM.Wrapper,K15=function(){return RH9.apply(this,arguments)||this};
_.R(K15,RH9);Object.getOwnPropertyNames(HB.prototype).forEach(function(W){W!="activeElement"&&W!="constructor"&&(K15.prototype[W]=HB.prototype[W])});
eK8(K15.prototype,["classList"]);pbL=K15;Object.defineProperties(Sw.prototype,{localTarget:{get:function(){var W=this.event.currentTarget;W=W&&_.Rs(W).getOwnerRoot();for(var O=this.path,b=0;b<O.length;b++){var T=O[b];if(_.Rs(T).getOwnerRoot()===W)return T}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else lve(),eK8(HB.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),P3i();vJ7=pbL;_.Rs=function(W){W=W||document;if(W instanceof pbL)return W;if(W instanceof Sw)return W;var O=W.__domApi;O||(W instanceof Event?O=new Sw(W):O=new pbL(W),W.__domApi=O);return O};var gJS=/:host\(:dir\((ltr|rtl)\)\)/g,oJ5=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Qsn=/:dir\((?:ltr|rtl)\)/,kDz=!(!window.ShadyDOM||!window.ShadyDOM.inUse),$F=[],Zc=null,tq="",ss7=tR(function(W){kDz||Zc||(tq=document.documentElement.getAttribute("dir"),Zc=new MutationObserver(ptT),Zc.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var O=z_H(W);W=function(){var b=O.call(this)||this;b.__autoDirOptOut=!1;return b};
_.R(W,O);W._processStyleText=function(b,T){b=O._processStyleText.call(this,b,T);!kDz&&Qsn.test(b)&&(b=this._replaceDirInCssText(b),this.__activateDir=!0);return b};
W._replaceDirInCssText=function(b){b=b.replace(gJS,':host([dir="$1"])');return b=b.replace(oJ5,':host([dir="$2"]) $1')};
W.prototype.ready=function(){O.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
W.prototype.connectedCallback=function(){O.prototype.connectedCallback&&O.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(Zc&&Zc.takeRecords().length&&ptT(),$F.push(this),this.__autoDirOptOut||this.setAttribute("dir",tq))};
W.prototype.disconnectedCallback=function(){O.prototype.disconnectedCallback&&O.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var b=$F.indexOf(this);b>-1&&$F.splice(b,1)}};
W.__activateDir=!1;return W});var BlS=function(W){for(;W;){var O=Object.getOwnPropertyDescriptor(W,"observedAttributes");if(O)return O.get;W=Object.getPrototypeOf(W.prototype).constructor}return function(){return[]}};
tR(function(W){var O=N2(W),b=BlS(O);W=function(){return O.call(this)||this};
_.R(W,O);W.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:O.prototype._initializeProperties.call(this)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||O.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(T){return O.prototype._canApplyPropertyDefault.call(this,T)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(T))};
W.prototype.attributeChangedCallback=function(T,L,h,Z){T=="disable-upgrade"?this.__isUpgradeDisabled&&h==null&&(O.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.X2)(this).isConnected&&O.prototype.connectedCallback.call(this)):O.prototype.attributeChangedCallback.call(this,T,L,h,Z)};
W.prototype.connectedCallback=function(){this.__isUpgradeDisabled||O.prototype.connectedCallback.call(this)};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||O.prototype.disconnectedCallback.call(this)};
_.Jq.Object.defineProperties(W,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return b.call(this).concat("disable-upgrade")}}});
return W});var VM=!1,K98=[],Ny=[];var QyQ=window.ShadyDOM,ko8=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",B6O):document.readyState==="interactive"||document.readyState==="complete"?B6O():window.addEventListener("DOMContentLoaded",B6O);var xsO=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=""},rTh=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Dsh=/@import[^;]*;/gim,Go8=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,HF2=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,t7X=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,$sq=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,nNT=/^@[^\s]*keyframes/,
q8q=/\s+/g;var V7X={};var uNX=Promise.resolve();var rCn=new Set;var Dpw=/;\s*/m,xpv=/^\s*(initial)|(inherit)\s*$/,zH9=/\s*!important/,Ce5=function(){this._map={}};
Ce5.prototype.set=function(W,O){W=W.trim();this._map[W]={properties:O,dependants:{}}};
Ce5.prototype.get=function(W){W=W.trim();return this._map[W]||null};
var qk1=null,I3=function(){this._measureElement=this._currentElement=null;this._map=new Ce5};
_.d=I3.prototype;_.d.detectMixin=function(W){W=Oqf.test(W)||W19.test(W);Oqf.lastIndex=0;W19.lastIndex=0;return W};
_.d.transformTemplate=function(W,O){if(W._gatheredStyle===void 0){var b=[];for(var T=W.content.querySelectorAll("style"),L=0;L<T.length;L++){var h=T[L];if(h.hasAttribute("shady-unscoped")){if(!oz8){var Z=h.textContent;if(!rCn.has(Z)){rCn.add(Z);var a=document.createElement("style");a.setAttribute("shady-unscoped","");a.textContent=Z;document.head.appendChild(a)}h.parentNode.removeChild(h)}}else b.push(h.textContent),h.parentNode.removeChild(h)}(b=b.join("").trim())?(T=document.createElement("style"),
T.textContent=b,W.content.insertBefore(T,W.content.firstChild),b=T):b=null;W._gatheredStyle=b}return(W=W._gatheredStyle)?this.JSC$9175_transformStyle(W,O):null};
_.d.JSC$9175_transformStyle=function(W,O){O=O===void 0?"":O;var b=yTT(W);this.transformRules(b,O);W.textContent=F9Q(b);return b};
_.d.transformCustomStyle=function(W){var O=this,b=yTT(W);OD1(b,function(T){T.selector===":root"&&(T.selector="html");O.transformRule(T)});
W.textContent=F9Q(b);return b};
_.d.transformRules=function(W,O){var b=this;this._currentElement=O;OD1(W,function(T){b.transformRule(T)});
this._currentElement=null};
_.d.transformRule=function(W){W.cssText=nJ9(this,W.parsedCssText,W);W.selector===":root"&&(W.selector=":host > *")};
var nJ9=function(W,O,b){O=O.replace(W19,function(T,L,h,Z){return W._produceCssProperties(T,L,h,Z,b)});
return W._consumeCssProperties(O,b)};
_.d=I3.prototype;_.d._getInitialValueForProperty=function(W){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(W)};
_.d._fallbacksFromPreviousRules=function(W){for(var O=this,b=W;b.parent;)b=b.parent;var T={},L=!1;OD1(b,function(h){(L=L||h===W)||h.selector===W.selector&&Object.assign(T,O._cssTextToMap(h.parsedCssText))});
return T};
_.d._consumeCssProperties=function(W,O){for(var b;b=Oqf.exec(W);){var T=b[0],L=b[1];b=b.index;var h=b+T.indexOf("@apply"),Z=b+T.length;T=W.slice(0,h);W=W.slice(Z);h=O?this._fallbacksFromPreviousRules(O):{};Object.assign(h,this._cssTextToMap(T));L=this._atApplyToCssProperties(L,h);W=T+L+W;Oqf.lastIndex=b+L.length}return W};
_.d._atApplyToCssProperties=function(W,O){W=W.replace(Dpw,"");var b=[],T=this._map.get(W);T||(this._map.set(W,{}),T=this._map.get(W));if(T){this._currentElement&&(T.dependants[this._currentElement]=!0);var L,h=T.properties;for(L in h){var Z=O&&O[L];T=[L,": var(",W,"_-_",L];Z&&T.push(",",Z.replace(zH9,""));T.push(")");zH9.test(h[L])&&T.push(" !important");b.push(T.join(""))}}return b.join("; ")};
_.d._replaceInitialOrInherit=function(W,O){var b=xpv.exec(O);b&&(O=b[1]?this._getInitialValueForProperty(W):"apply-shim-inherit");return O};
_.d._cssTextToMap=function(W,O){O=O===void 0?!1:O;W=W.split(";");for(var b,T,L={},h=0;h<W.length;h++)if(b=W[h])T=b.split(":"),T.length>1&&(b=T[0].trim(),T=T.slice(1).join(":"),O&&(T=this._replaceInitialOrInherit(b,T)),L[b]=T);return L};
_.d._invalidateMixinEntry=function(W){if(qk1)for(var O in W.dependants)O!==this._currentElement&&qk1(O)};
_.d._produceCssProperties=function(W,O,b,T,L){var h=this;b&&iDX(b,function(K,k){k&&h._map.get(k)&&(T="@apply "+k+";")});
if(!T)return W;var Z=this._consumeCssProperties(""+T,L);L=W.slice(0,W.indexOf("--"));var a=Z=this._cssTextToMap(Z,!0),m=this._map.get(O),w=m&&m.properties;w?a=Object.assign(Object.create(w),Z):this._map.set(O,a);var A=[],X,l=!1;for(X in a){var p=Z[X];p===void 0&&(p="initial");!w||X in w||(l=!0);A.push(O+"_-_"+X+": "+p)}l&&this._invalidateMixinEntry(m);m&&(m.properties=a);b&&(L=W+";"+L);return L+A.join("; ")+";"};
I3.prototype.detectMixin=I3.prototype.detectMixin;I3.prototype.transformStyle=I3.prototype.JSC$9175_transformStyle;I3.prototype.transformCustomStyle=I3.prototype.transformCustomStyle;I3.prototype.transformRules=I3.prototype.transformRules;I3.prototype.transformRule=I3.prototype.transformRule;I3.prototype.transformTemplate=I3.prototype.transformTemplate;I3.prototype._separator="_-_";Object.defineProperty(I3.prototype,"invalidCallback",{get:function(){return qk1},
set:function(W){qk1=W}});var a3=new I3,fu$=function(){this.customStyleInterface=null;a3.invalidCallback=N6e},mF=function(W){!W.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(W.customStyleInterface=window.ShadyCSS.CustomStyleInterface,W.customStyleInterface.transformCallback=function(O){a3.transformCustomStyle(O)},W.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){W.customStyleInterface.enqueued&&W.flushCustomStyles()})})};
_.d=fu$.prototype;_.d.prepareTemplate=function(W,O){mF(this);bDq(W)===""&&(V7X[O]=W,O=a3.transformTemplate(W,O),W._styleAst=O)};
_.d.flushCustomStyles=function(){mF(this);if(this.customStyleInterface){var W=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var O=0;O<W.length;O++){var b=this.customStyleInterface.getStyleForCustomStyle(W[O]);b&&a3.transformCustomStyle(b)}this.customStyleInterface.enqueued=!1}}};
_.d.styleSubtree=function(W,O){mF(this);O&&elh(W,O);if(W.shadowRoot)for(this.styleElement(W),W=W.shadowRoot.children||W.shadowRoot.childNodes,O=0;O<W.length;O++)this.styleSubtree(W[O]);else for(W=W.children||W.childNodes,O=0;O<W.length;O++)this.styleSubtree(W[O])};
_.d.styleElement=function(W){mF(this);var O=W.localName,b;O?O.indexOf("-")>-1?b=O:b=W.getAttribute&&W.getAttribute("is")||"":b=W.is;O=V7X[b];if(!(O&&bDq(O)!==""||!O||M7E(O))){if(M7E(O)||O._applyShimValidatingVersion!==O._applyShimNextVersion)this.prepareTemplate(O,b),JT1(O);if(W=W.shadowRoot)if(W=W.querySelector("style"))W.__cssRules=O._styleAst,W.textContent=F9Q(O._styleAst)}};
_.d.styleDocument=function(W){mF(this);this.styleSubtree(document.body,W)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Y8=new fu$,GDw=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(W,O){Y8.flushCustomStyles();Y8.prepareTemplate(W,O)},
prepareTemplateStyles:function(W,O,b){window.ShadyCSS.prepareTemplate(W,O,b)},
prepareTemplateDom:function(){},
styleSubtree:function(W,O){Y8.flushCustomStyles();Y8.styleSubtree(W,O)},
styleElement:function(W){Y8.flushCustomStyles();Y8.styleElement(W)},
styleDocument:function(W){Y8.flushCustomStyles();Y8.styleDocument(W)},
getComputedStyleValue:function(W,O){return Pw1(W,O)},
flushCustomStyles:function(){Y8.flushCustomStyles()},
nativeCss:cTT,nativeShadow:oz8,cssBuild:uO,disableRuntime:jsN};GDw&&(window.ShadyCSS.CustomStyleInterface=GDw)}window.ShadyCSS.ApplyShim=a3;var HqU;HqU=window.ShadyCSS;_.E9=tR(function(W){W=au5(N2(W));var O=N37?W:ss7(W),b=BlS(O),T={x:"pan-x",y:"pan-y",none:"none",all:"auto"};W=function(){return O.call(this)||this};
_.R(W,O);W.prototype.created=function(){};
W.prototype.__attributeReaction=function(L,h,Z){(this.__dataAttributes&&this.__dataAttributes[L]||L==="disable-upgrade")&&this.attributeChangedCallback(L,h,Z,null)};
W.prototype.setAttribute=function(L,h){if(lFq&&!this._legacyForceObservedAttributes){var Z=this.getAttribute(L);O.prototype.setAttribute.call(this,L,h);this.__attributeReaction(L,Z,String(h))}else O.prototype.setAttribute.call(this,L,h)};
W.prototype.removeAttribute=function(L){if(lFq&&!this._legacyForceObservedAttributes){var h=this.getAttribute(L);O.prototype.removeAttribute.call(this,L);this.__attributeReaction(L,h,null)}else O.prototype.removeAttribute.call(this,L)};
W.prototype._enableProperties=function(){this.__isUpgradeDisabled||O.prototype._enableProperties.call(this)};
W.prototype._canApplyPropertyDefault=function(L){return O.prototype._canApplyPropertyDefault.call(this,L)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(L))};
W.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(O.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
W.prototype.attached=function(){};
W.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(O.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
W.prototype.detached=function(){};
W.prototype.attributeChangedCallback=function(L,h,Z,a){h!==Z&&(L=="disable-upgrade"?this.__isUpgradeDisabled&&Z==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.X2)(this).isConnected&&this.connectedCallback()):(O.prototype.attributeChangedCallback.call(this,L,h,Z,a),this.attributeChanged(L,h,Z)))};
W.prototype.attributeChanged=function(){};
W.prototype._initializeProperties=function(){if(xF&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var L=Object.getPrototypeOf(this);L.hasOwnProperty("__hasRegisterFinished")||(this._registered(),L.__hasRegisterFinished=!0);O.prototype._initializeProperties.call(this);this.root=this;this.created();lFq&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
W.prototype._takeAttributes=function(){for(var L=this.attributes,h=0,Z=L.length;h<Z;h++){var a=L[h];this.__attributeReaction(a.name,null,a.value)}};
W.prototype._registered=function(){};
W.prototype.ready=function(){this._ensureAttributes();O.prototype.ready.call(this)};
W.prototype._ensureAttributes=function(){};
W.prototype._applyListeners=function(){};
W.prototype.serialize=function(L){return this._serializeValue(L)};
W.prototype.deserialize=function(L,h){return this._deserializeValue(L,h)};
W.prototype.reflectPropertyToAttribute=function(L,h,Z){this._propertyToAttribute(L,h,Z)};
W.prototype.serializeValueToAttribute=function(L,h,Z){this._valueToNodeAttribute(Z||this,L,h)};
W.prototype.extend=function(L,h){if(!L||!h)return L||h;for(var Z=Object.getOwnPropertyNames(h),a=0,m=void 0;a<Z.length&&(m=Z[a]);a++){var w=Object.getOwnPropertyDescriptor(h,m);w&&Object.defineProperty(L,m,w)}return L};
W.prototype.mixin=function(L,h){for(var Z in h)L[Z]=h[Z];return L};
W.prototype.chainObject=function(L,h){L&&h&&L!==h&&(L.__proto__=h);return L};
W.prototype.instanceTemplate=function(L){L=this.constructor._contentForTemplate(L);return document.importNode(L,!0)};
W.prototype.fire=function(L,h,Z){Z=Z||{};h=h===null||h===void 0?{}:h;L=new Event(L,{bubbles:Z.bubbles===void 0?!0:Z.bubbles,cancelable:!!Z.cancelable,composed:Z.composed===void 0?!0:Z.composed});L.detail=h;(0,_.X2)(Z.node||this).dispatchEvent(L);return L};
W.prototype.listen=function(L,h,Z){L=L||this;var a=this.__boundListeners||(this.__boundListeners=new WeakMap),m=a.get(L);m||(m={},a.set(L,m));a=h+Z;m[a]||(m[a]=this._addMethodEventListenerToNode(L,h,Z,this))};
W.prototype.unlisten=function(L,h,Z){L=L||this;var a=this.__boundListeners&&this.__boundListeners.get(L);Z=h+Z;var m=a&&a[Z];m&&(this._removeEventListenerFromNode(L,h,m),a[Z]=null)};
W.prototype.setScrollDirection=function(L,h){_.BB(h||this,T[L]||"auto")};
W.prototype.$$=function(L){return this.root.querySelector(L)};
W.prototype.distributeContent=function(){var L=_.Rs(this);window.ShadyDOM&&L.shadowRoot&&ShadyDOM.flush()};
W.prototype.getEffectiveChildNodes=function(){return _.Rs(this).getEffectiveChildNodes()};
W.prototype.queryDistributedElements=function(L){return _.Rs(this).queryDistributedElements(L)};
W.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(L){return L.nodeType===Node.ELEMENT_NODE})};
W.prototype.getEffectiveTextContent=function(){for(var L=this.getEffectiveChildNodes(),h=[],Z=0,a;a=L[Z];Z++)a.nodeType!==Node.COMMENT_NODE&&h.push(a.textContent);return h.join("")};
W.prototype.queryEffectiveChildren=function(L){return(L=this.queryDistributedElements(L))&&L[0]};
W.prototype.queryAllEffectiveChildren=function(L){return this.queryDistributedElements(L)};
W.prototype.getContentChildNodes=function(L){return(L=this.root.querySelector(L||"slot"))?_.Rs(L).getDistributedNodes():[]};
W.prototype.getContentChildren=function(L){return this.getContentChildNodes(L).filter(function(h){return h.nodeType===Node.ELEMENT_NODE})};
W.prototype.isLightDescendant=function(L){return this!==L&&(0,_.X2)(this).contains(L)&&(0,_.X2)(this).getRootNode()===(0,_.X2)(L).getRootNode()};
W.prototype.isLocalDescendant=function(L){return this.root===(0,_.X2)(L).getRootNode()};
W.prototype.scopeSubtree=function(L,h){return sy8(L,h===void 0?!1:h)};
W.prototype.getComputedStyleValue=function(L){return HqU.getComputedStyleValue(this,L)};
W.prototype.debounce=function(L,h,Z){this._debouncers=this._debouncers||{};return this._debouncers[L]=_.O9(this._debouncers[L],Z>0?_.HT.after(Z):r3,h.bind(this))};
W.prototype.isDebouncerActive=function(L){this._debouncers=this._debouncers||{};L=this._debouncers[L];return!(!L||!L.isActive())};
W.prototype.flushDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.flush()};
W.prototype.cancelDebouncer=function(L){this._debouncers=this._debouncers||{};(L=this._debouncers[L])&&L.cancel()};
W.prototype.async=function(L,h){return h>0?_.HT.run(L.bind(this),h):~r3.run(L.bind(this))};
W.prototype.cancelAsync=function(L){L<0?r3.cancel(~L):_.HT.cancel(L)};
W.prototype.create=function(L,h){L=document.createElement(L);if(h)if(L.setProperties)L.setProperties(h);else for(var Z in h)L[Z]=h[Z];return L};
W.prototype.elementMatches=function(L,h){return PeL(h||this,L)};
W.prototype.toggleAttribute=function(L,h){var Z=this;arguments.length===3&&(Z=arguments[2]);arguments.length==1&&(h=!Z.hasAttribute(L));if(h)return(0,_.X2)(Z).setAttribute(L,""),!0;(0,_.X2)(Z).removeAttribute(L);return!1};
W.prototype.toggleClass=function(L,h,Z){Z=Z||this;arguments.length==1&&(h=!Z.classList.contains(L));h?Z.classList.add(L):Z.classList.remove(L)};
W.prototype.transform=function(L,h){h=h||this;h.style.webkitTransform=L;h.style.transform=L};
W.prototype.translate3d=function(L,h,Z,a){this.transform("translate3d("+L+","+h+","+Z+")",a||this)};
W.prototype.arrayDelete=function(L,h){if(Array.isArray(L)){if(h=L.indexOf(h),h>=0)return L.splice(h,1)}else if(h=E0(this,L).indexOf(h),h>=0)return this.splice(L,h,1);return null};
W.prototype._logger=function(L,h){Array.isArray(h)&&h.length===1&&Array.isArray(h[0])&&(h=h[0]);switch(L){case "log":case "warn":case "error":console[L].apply(console,_.PG(h))}};
W.prototype._log=function(){this._logger("log",_.PD.apply(0,arguments))};
W.prototype._warn=function(){this._logger("warn",_.PD.apply(0,arguments))};
W.prototype._error=function(){this._logger("error",_.PD.apply(0,arguments))};
W.prototype._logf=function(L){return["[%s::%s]",this.is,L].concat(_.PG(_.PD.apply(1,arguments)))};
_.Jq.Object.defineProperties(W.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var L=(0,_.X2)(this).getRootNode();return L instanceof DocumentFragment?L.host:L}}});
_.Jq.Object.defineProperties(W,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return lFq&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],QMQ(this.prototype)),this.__observedAttributes):b.call(this).concat("disable-upgrade")}}});
W.prototype.is="";return W});Polymer.FlattenedNodesObserver=UpN;Polymer.DomApi=vJ7;Polymer.EventApi=Sw;Polymer.dom=_.Rs;Polymer.dom.matchesSelector=PeL;Polymer.dom.flush=_.Lg;Polymer.dom.addDebouncer=_.iK;Polymer.DirMixin=ss7;Polymer.RenderStatus={beforeNextRender:_.oNP,afterNextRender:_.My,flush:function(){for(;K98.length||Ny.length;)RKe(K98),RKe(Ny);VM=!1}};Polymer.LegacyElementMixin=_.E9;var tHU;tHU=jw._mutablePropertyChange;var $pf={properties:{mutableData:Boolean},_shouldPropertyChange:function(W,O,b){return tHU(this,W,O,b,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(W,O,b){return tHU(this,W,O,b,!0)}};
Polymer.OptionalMutableDataBehavior=$pf;var jd1={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},SQ8={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},h9T=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},SQ8),VHf=(0,_.E9)(HTMLElement),VUX=function(W,O){W||console.warn("Polymer.Class requires `info` argument");O=O?O(VHf):VHf;O=ZD8(W,O,W.behaviors);O.is=O.prototype.is=
W.is;return O};Polymer.Class=VUX;Polymer.mixinBehaviors=function(W,O){return ZD8({},(0,_.E9)(O),W)};
Polymer.GenerateClassFromInfo=ZD8;_.v_=function(W){var O=typeof W==="function"?W:_.v_.Class(W);W._legacyForceObservedAttributes&&(O.prototype._legacyForceObservedAttributes=W._legacyForceObservedAttributes);customElements.define(O.is,O);return O};
_.v_.Class=VUX;Polymer._polymerFn=_.v_;var NlU=window.onLegacyPolymerFunctionDefinedCallback;NlU&&NlU();var MUP={templatize:function(W,O){this._templatizerTemplate=W;this.ctor=qy(W,this,{mutableData:!!O,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(W){return new this.ctor(W)},
modelForElement:function(W){return UsX(this._templatizerTemplate,W)}};Polymer.Templatizer=MUP;_.wp=(0,_.E9)(HTMLElement).prototype;Polymer.Base=_.wp;var aLX=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.cB=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(_.cB,PolymerFakeBaseClass);var F2=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(F2,PolymerFakeBaseClass);var mc8=Symbol("Nd"),e9E=[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 MHN=MHN||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},u95;(function(W){function O(V,jQ,y){var d8=M.get(V);if(!d8){if(!y)return;d8=new q;M.set(V,d8)}V=d8.get(jQ);if(!V){if(!y)return;V=new q;d8.set(jQ,V)}return V}
function b(V,jQ,y){if(T(V,jQ,y))return!0;jQ=l(jQ);return jQ!==null?b(V,jQ,y):!1}
function T(V,jQ,y){jQ=O(jQ,y,!1);return jQ===void 0?!1:!!jQ.has(V)}
function L(V,jQ,y){if(T(V,jQ,y))return h(V,jQ,y);jQ=l(jQ);if(jQ!==null)return L(V,jQ,y)}
function h(V,jQ,y){jQ=O(jQ,y,!1);if(jQ!==void 0)return jQ.get(V)}
function Z(V,jQ){var y=a(V,jQ);V=l(V);if(V===null)return y;var d8=Z(V,jQ);if(d8.length<=0)return y;if(y.length<=0)return d8;jQ=new f;V=[];y=_.S(y);for(var pE=y.next();!pE.done;pE=y.next())pE=pE.value,jQ.has(pE)||(jQ.add(pE),V.push(pE));y=_.S(d8);for(d8=y.next();!d8.done;d8=y.next())d8=d8.value,jQ.has(d8)||(jQ.add(d8),V.push(d8));return V}
function a(V,jQ){V=O(V,jQ,!1);var y=[];V&&V.forEach(function(d8,pE){return y.push(pE)});
return y}
function m(V){return V===void 0}
function w(V){return typeof V==="object"?V!==null:typeof V==="function"}
function A(V){return typeof V==="function"}
function X(V){return typeof V==="symbol"?V:String(V)}
function l(V){var jQ=Object.getPrototypeOf(V);if(typeof V!=="function"||V===r||jQ!==r)return jQ;var y=Object.getPrototypeOf(V.prototype);if(y==null||y===Object.prototype)return jQ;y=y.constructor;return typeof y!=="function"||y===V?jQ:y}
function p(){function V(){this._keys=[];this._values=[];this._cache=jQ}
var jQ={};V.prototype={get size(){return this._keys.length},has:function(y){return y===this._cache?!0:this._find(y)>=0?(this._cache=y,!0):!1},
get:function(y){var d8=this._find(y);if(d8>=0)return this._cache=y,this._values[d8]},
set:function(y,d8){this.delete(y);this._keys.push(y);this._values.push(d8);this._cache=y;return this},
delete:function(y){y=this._find(y);return y>=0?(this._keys.splice(y,1),this._values.splice(y,1),this._cache=jQ,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=jQ},
forEach:function(y){for(var d8=this.size,pE=0;pE<d8;++pE){var Qh=this._keys[pE],KE=this._values[pE];this._cache=Qh;y.call(this,KE,Qh,this)}},
_find:function(y){for(var d8=this._keys,pE=d8.length,Qh=0;Qh<pE;++Qh)if(d8[Qh]===y)return Qh;return-1}};
return V}
function K(){function V(){this._map=new q}
V.prototype={get size(){return this._map.length},has:function(jQ){return this._map.has(jQ)},
add:function(jQ){this._map.set(jQ,jQ);return this},
delete:function(jQ){return this._map.delete(jQ)},
clear:function(){this._map.clear()},
forEach:function(jQ,y){this._map.forEach(jQ,y)}};
return V}
function k(){function V(){this._key=y()}
function jQ(r8,nE){for(var tX=0;tX<nE;++tX)r8[tX]=Math.random()*255|0}
function y(){do{if(pE)var r8=pE.randomBytes(16);else typeof Uint8Array==="function"?(r8=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(r8):jQ(r8,16)):(r8=Array(16),jQ(r8,16));r8[6]=r8[6]&79|64;r8[8]=r8[8]&191|128;for(var nE="",tX=0;tX<16;++tX){var yh=r8[tX];if(tX===4||tX===6||tX===8)nE+="-";yh<16&&(nE+="0");nE+=yh.toString(16).toLowerCase()}r8="@@WeakMap@@"+nE}while(Qh.call(KE,r8));KE[r8]=!0;return r8}
function d8(r8,nE){if(!Qh.call(r8,fE)){if(!nE)return;Object.defineProperty(r8,fE,{value:Object.create(null)})}return r8[fE]}
var pE=typeof global!=="undefined"&&typeof MHN==="object"&&typeof require==="function"&&require("crypto"),Qh=Object.prototype.hasOwnProperty,KE={},fE=y();V.prototype={has:function(r8){return(r8=d8(r8,!1))?this._key in r8:!1},
get:function(r8){if(r8=d8(r8,!1))return r8[this._key]},
set:function(r8,nE){d8(r8,!0)[this._key]=nE;return this},
delete:function(r8){return(r8=d8(r8,!1))&&this._key in r8?delete r8[this._key]:!1},
clear:function(){this._key=y()}};
return V}
var r=Object.getPrototypeOf(Function),q=typeof Map==="function"?Map:p(),f=typeof Set==="function"?Set:K(),M=new (typeof WeakMap==="function"?WeakMap:k());W.decorate=function(V,jQ,y,d8){if(m(d8)){if(m(y)){if(!Array.isArray(V))throw new TypeError;if(!A(jQ))throw new TypeError;for(y=V.length-1;y>=0;--y)if(d8=(0,V[y])(jQ),!m(d8)){if(!A(d8))throw new TypeError;jQ=d8}return jQ}if(!Array.isArray(V))throw new TypeError;if(!w(jQ))throw new TypeError;y=X(y);for(d8=V.length-1;d8>=0;--d8)(0,V[d8])(jQ,y)}else{if(Array.isArray(V))if(w(jQ)){if(m(y))throw new TypeError;
if(!w(d8))throw new TypeError;}else throw new TypeError;else throw new TypeError;y=X(y);for(var pE=V.length-1;pE>=0;--pE){var Qh=(0,V[pE])(jQ,y,d8);if(!m(Qh)){if(!w(Qh))throw new TypeError;d8=Qh}}return d8}};
W.metadata=function(V,jQ){return function(y,d8){if(m(d8)){if(!A(y))throw new TypeError;O(y,void 0,!0).set(V,jQ)}else{if(!w(y))throw new TypeError;d8=X(d8);O(y,d8,!0).set(V,jQ)}}};
W.defineMetadata=function(V,jQ){var y;if(w(jQ))m(y)||(y=X(y));else throw new TypeError;O(jQ,y,!0).set("parameters",V)};
W.hasMetadata=function(V,jQ,y){if(w(jQ))m(y)||(y=X(y));else throw new TypeError;return b(V,jQ,y)};
W.hasOwnMetadata=function(V,jQ,y){if(w(jQ))m(y)||(y=X(y));else throw new TypeError;return T(V,jQ,y)};
W.getMetadata=function(V,jQ,y){if(w(jQ))m(y)||(y=X(y));else throw new TypeError;return L(V,jQ,y)};
W.getOwnMetadata=function(V,jQ,y){if(w(jQ))m(y)||(y=X(y));else throw new TypeError;return h(V,jQ,y)};
W.getMetadataKeys=function(V,jQ){if(w(V))m(jQ)||(jQ=X(jQ));else throw new TypeError;return Z(V,jQ)};
W.getOwnMetadataKeys=function(V,jQ){if(w(V))m(jQ)||(jQ=X(jQ));else throw new TypeError;return a(V,jQ)};
W.deleteMetadata=function(V,jQ,y){if(w(jQ))m(y)||(y=X(y));else throw new TypeError;var d8=O(jQ,y,!1);if(!m(d8)){if(!d8.delete(V))return!1;if(d8.size>0)return!0;V=M.get(jQ);V.delete(y);if(V.size>0)return!0;M.delete(jQ);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==W)for(var jQ in W)V.Reflect[jQ]=W[jQ]}else V.Reflect=W})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(u95||(u95={}));var Bwq=self;var JCU=[0,_.ff,_.Hk,_.ff];var cCn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(cCn,_.qA);var F1v=_.WD(cCn,[0,_.yBh,_.t$,JCU,_.Hk,_.VK]);_.Wk(_.yM,_.R8);_.d=_.yM.prototype;_.d.start=function(){this.stop();this.usingListeners_=!1;var W=yCU(this),O=WMN(this);W&&!O&&this.JSC$9218_win_.mozRequestAnimationFrame?(this.JSC$9218_id_=_.Rx(this.JSC$9218_win_,"MozBeforePaint",this.callback_),this.JSC$9218_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9218_id_=W&&O?W.call(this.JSC$9218_win_,this.callback_):this.JSC$9218_win_.setTimeout(jqN(this.callback_),20)};
_.d.stop=function(){if(this.isActive()){var W=yCU(this),O=WMN(this);W&&!O&&this.JSC$9218_win_.mozRequestAnimationFrame?eD(this.JSC$9218_id_):W&&O?O.call(this.JSC$9218_win_,this.JSC$9218_id_):this.JSC$9218_win_.clearTimeout(this.JSC$9218_id_)}this.JSC$9218_id_=null};
_.d.fire=function(){this.stop();this.JSC$9220_doAction_()};
_.d.isActive=function(){return this.JSC$9218_id_!=null};
_.d.JSC$9220_doAction_=function(){this.usingListeners_&&this.JSC$9218_id_&&eD(this.JSC$9218_id_);this.JSC$9218_id_=null;this.JSC$9218_listener_.call(this.handler_,_.yG())};
_.d.disposeInternal=function(){this.stop();_.yM.superClass_.disposeInternal.call(this)};
var yCU=function(W){W=W.JSC$9218_win_;return W.requestAnimationFrame||W.webkitRequestAnimationFrame||W.mozRequestAnimationFrame||W.oRequestAnimationFrame||W.msRequestAnimationFrame||null},WMN=function(W){W=W.JSC$9218_win_;
return W.cancelAnimationFrame||W.cancelRequestAnimationFrame||W.webkitCancelRequestAnimationFrame||W.mozCancelRequestAnimationFrame||W.oCancelRequestAnimationFrame||W.msCancelRequestAnimationFrame||null};_.JI=function(W,O,b){_.R8.call(this);this.JSC$9221_listener_=b!=null?W.bind(b):W;this.JSC$9221_interval_=O;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9221_timer_=null};
_.R(_.JI,_.R8);_.d=_.JI.prototype;_.d.fire=function(W){this.args_=arguments;this.JSC$9221_timer_||this.pauseCount_?this.shouldFire_=!0:OVf(this)};
_.d.stop=function(){this.JSC$9221_timer_&&(_.i1.clearTimeout(this.JSC$9221_timer_),this.JSC$9221_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.d.pause=function(){this.pauseCount_++};
_.d.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9221_timer_||(this.shouldFire_=!1,OVf(this))};
_.d.disposeInternal=function(){_.R8.prototype.disposeInternal.call(this);this.stop()};
var OVf=function(W){W.JSC$9221_timer_=lE(function(){W.JSC$9221_timer_=null;W.shouldFire_&&!W.pauseCount_&&(W.shouldFire_=!1,OVf(W))},W.JSC$9221_interval_);
var O=W.args_;W.args_=null;W.JSC$9221_listener_.apply(null,O)};var iV$=function(W,O){this.childIterator_=W[_.i1.Symbol.iterator]();this.mapFn_=O};
iV$.prototype[Symbol.iterator]=function(){return this};
iV$.prototype.next=function(){var W=this.childIterator_.next();return{value:W.done?void 0:this.mapFn_.call(void 0,W.value),done:W.done}};
var bVz=function(W,O){return new iV$(W,O)};var j5z={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 hTX=function(W){var O=Taf(W);if(!O)throw Error("Rd`"+W);return O},Taf=function(W){var O={};
W=String(W);var b=W.charAt(0)=="#"?W:"#"+W;if(LMv.test(b))return O.hex=iY2(b),O.type="hex",O;b=a1Q(W);return b.length?(O.hex=JWP(b[0],b[1],b[2]),O.type="rgb",O):j5z&&(W=j5z[W.toLowerCase()])?(O.hex=W,O.type="named",O):null},dkH=/#(.)(.)(.)/,iY2=function(W){if(!LMv.test(W))throw Error("Td`"+W);
W.length==4&&(W=W.replace(dkH,"#$1$1$2$2$3$3"));return W.toLowerCase()},Sq8=function(W){W=iY2(W);
W=parseInt(W.slice(1),16);return[W>>16,W>>8&255,W&255]},JWP=function(W,O,b){W=Number(W);
O=Number(O);b=Number(b);if(W!=(W&255)||O!=(O&255)||b!=(b&255))throw Error("Ud`"+W+"`"+O+"`"+b);O=W<<16|O<<8|b;return W<16?"#"+(16777216|O).toString(16).slice(1):"#"+O.toString(16)},LMv=/^#(?:[0-9a-f]{3}){1,2}$/i,h$n=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,a1Q=function(W){var O=W.match(h$n);
if(O){W=Number(O[1]);var b=Number(O[2]);O=Number(O[3]);if(W>=0&&W<=255&&b>=0&&b<=255&&O>=0&&O<=255)return[W,b,O]}return[]};var SO$={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},Pt=SO$;Pt=SO$;var CC8,ZV9,IM$;CC8=function(W,O){switch(O){case 1:return W%4!=0||W%100==0&&W%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
ZV9=function(W,O,b,T,L){W=new Date(W,O,b);L=L||0;return W.valueOf()+(((T!==void 0?T:3)-L+7)%7-((W.getDay()+6)%7-L+7)%7)*864E5};
_.Ac=function(W,O,b){typeof W==="number"?(this.date=IM$(W,O||0,b||1),aM5(this,b||1)):_.LH(W)?(this.date=IM$(W.getFullYear(),W.getMonth(),W.getDate()),aM5(this,W.getDate())):(this.date=new Date(_.yG()),W=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),aM5(this,W))};
IM$=function(W,O,b){O=new Date(W,O,b);W>=0&&W<100&&O.setFullYear(O.getFullYear()-1900);return O};
_.d=_.Ac.prototype;_.d.firstDayOfWeek_=Pt.FIRSTDAYOFWEEK;_.d.firstWeekCutOffDay_=Pt.FIRSTWEEKCUTOFFDAY;_.d.clone=function(){var W=new _.Ac(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.d.getFullYear=function(){return this.date.getFullYear()};
_.d.getYear=function(){return this.getFullYear()};
_.d.getMonth=function(){return this.date.getMonth()};
_.d.getDate=function(){return this.date.getDate()};
_.d.getTime=function(){return this.date.getTime()};
_.d.getDay=function(){return this.date.getDay()};
_.d.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.d.getUTCMonth=function(){return this.date.getUTCMonth()};
_.d.getUTCDate=function(){return this.date.getUTCDate()};
_.d.getUTCDay=function(){return this.date.getDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.d.set=function(W){this.date=new Date(W.getFullYear(),W.getMonth(),W.getDate())};
_.d.setFullYear=function(W){this.date.setFullYear(W)};
_.d.setYear=function(W){this.setFullYear(W)};
_.d.setMonth=function(W){this.date.setMonth(W)};
_.d.setDate=function(W){this.date.setDate(W)};
_.d.setTime=function(W){this.date.setTime(W)};
_.d.setUTCFullYear=function(W){this.date.setUTCFullYear(W)};
_.d.setUTCMonth=function(W){this.date.setUTCMonth(W)};
_.d.setUTCDate=function(W){this.date.setUTCDate(W)};
_.d.add=function(W){if(W.years||W.months){var O=this.getMonth()+W.months+W.years*12,b=this.getYear()+Math.floor(O/12);O%=12;O<0&&(O+=12);var T=Math.min(CC8(b,O),this.getDate());this.setDate(1);this.setFullYear(b);this.setMonth(O);this.setDate(T)}W.days&&(b=this.getYear(),O=b>=0&&b<=99?-1900:0,W=new Date((new Date(b,this.getMonth(),this.getDate(),12)).getTime()+W.days*864E5),this.setDate(1),this.setFullYear(W.getFullYear()+O),this.setMonth(W.getMonth()),this.setDate(W.getDate()),aM5(this,W.getDate()))};
_.d.JSC$9234_toIsoString=function(W){var O=this.getFullYear(),b=O<0?"-":O>=1E4?"+":"";return[b+_.FS(Math.abs(O),b?6:4),_.FS(this.getMonth()+1,2),_.FS(this.getDate(),2)].join(W?"-":"")};
_.d.equals=function(W){return!(!W||this.getYear()!=W.getYear()||this.getMonth()!=W.getMonth()||this.getDate()!=W.getDate())};
_.d.toString=function(){return this.JSC$9234_toIsoString()};
var aM5=function(W,O){W.getDate()!=O&&W.date.setUTCHours(W.date.getUTCHours()+(W.getDate()<O?1:-1))};
_.Ac.prototype.valueOf=function(){return this.date.valueOf()};var U9=function(W,O,b,T,L){this.reversed=!!O;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!b;W&&Xe(this,W,T);this.depth=L!=void 0?L:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Wk(U9,WT);var Xe=function(W,O,b,T){if(W.node=O)W.tagType=typeof b==="number"?b:W.node.nodeType!=1?0:W.reversed?-1:1;typeof T==="number"&&(W.depth=T)};
_.d=U9.prototype;_.d.JSC$9249_copyFrom=function(W){this.node=W.node;this.tagType=W.tagType;this.depth=W.depth;this.reversed=W.reversed;this.constrained=W.constrained};
_.d.clone=function(){return new U9(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.d.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return OY;var W=this.node;var O=this.reversed?-1:1;if(this.tagType==O){var b=this.reversed?W.lastChild:W.firstChild;b?Xe(this,b):Xe(this,W,O*-1)}else(b=this.reversed?W.previousSibling:W.nextSibling)?Xe(this,b):Xe(this,W.parentNode,O*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(W=this.node)?iZ(W):OY};
_.d.equals=function(W){return W.node==this.node&&(!this.node||W.tagType==this.tagType)};
_.d.splice=function(W){var O=this.node,b=this.reversed?1:-1;this.tagType==b&&(this.tagType=b*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;U9.prototype.next.call(this);this.reversed=!this.reversed;b=_.j5(arguments[0])?arguments[0]:arguments;for(var T=b.length-1;T>=0;T--)_.v1(b[T],O);_.Xu(O)};var mkU=function(){},lK=function(W){for(var O=[],b=W.getTextRangeCount(),T=0;T<b;T++)O.push(W.getTextRange(T));
return O};
mkU.prototype.isReversed=function(){return!1};
mkU.prototype.getWindow=function(){return vQ(_.g4(this.JSC$9251_getStartNode()))};
var YOf=function(W,O){U9.call(this,W,O,!0)};
_.Wk(YOf,U9);var ew=function(W,O,b,T,L){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!L;if(W){this.startNode_=W;this.startOffset_=O;this.endNode_=b;this.endOffset_=T;if(W.nodeType==1&&W.tagName!="BR")if(W=W.childNodes,O=W[O])this.startNode_=O,this.startOffset_=0;else{W.length&&(this.startNode_=_.CE(W));var h=!0}b.nodeType==1&&((this.endNode_=b.childNodes[T])?this.endOffset_=0:this.endNode_=b)}U9.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);h&&this.next()};
_.Wk(ew,YOf);_.d=ew.prototype;_.d.JSC$9257_getStartNode=function(){return this.startNode_};
_.d.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)};
_.d.next=function(){return this.isLast()?OY:ew.superClass_.next.call(this)};
_.d.JSC$9249_copyFrom=function(W){this.startNode_=W.startNode_;this.endNode_=W.endNode_;this.startOffset_=W.startOffset_;this.endOffset_=W.endOffset_;this.isReversed_=W.isReversed_;ew.superClass_.JSC$9249_copyFrom.call(this,W)};
_.d.clone=function(){var W=new ew(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);W.JSC$9249_copyFrom(this);return W};var E0U=function(){};
E0U.prototype.__iterator__=function(){return new ew(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Pq=function(W){this.range_=W};
_.Wk(Pq,E0U);var wgL=function(W){var O=_.g4(W).createRange();if(W.nodeType==3)O.setStart(W,0),O.setEnd(W,W.length);else if(p4(W)||W.nodeType==3){for(var b,T=W;(b=T.firstChild)&&(p4(b)||b.nodeType==3);)T=b;O.setStart(T,0);for(T=W;(b=T.lastChild)&&(p4(b)||b.nodeType==3);)T=b;O.setEnd(T,T.nodeType==1?T.childNodes.length:T.length)}else b=W.parentNode,W=Array.prototype.indexOf.call(b.childNodes,W),O.setStart(b,W),O.setEnd(b,W+1);return O},A3q=function(W,O,b,T){var L=_.g4(W).createRange();
L.setStart(W,O);L.setEnd(b,T);return L};
_.d=Pq.prototype;_.d.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.d.getContainer=function(){return this.range_.commonAncestorContainer};
_.d.compareBrowserRangeEndpoints=function(W,O,b){return this.range_.compareBoundaryPoints(b==1?O==1?_.i1.Range.START_TO_START:_.i1.Range.START_TO_END:O==1?_.i1.Range.END_TO_START:_.i1.Range.END_TO_END,W)};
_.d.isCollapsed=function(){return this.range_.collapsed};
_.d.select=function(W){this.selectInternal(vQ(_.g4(this.range_.startContainer)).getSelection(),W)};
_.d.selectInternal=function(W){W.removeAllRanges();W.addRange(this.range_)};
_.d.insertNode=function(W,O){var b=this.range_.cloneRange();b.collapse(O);b.insertNode(W);b.detach();return W};
_.d.collapse=function(W){this.range_.collapse(W)};_.Wk(Wb,Pq);Wb.prototype.selectInternal=function(W,O){!O||this.isCollapsed()?Wb.superClass_.selectInternal.call(this,W,O):(W.collapse(this.range_.endContainer,this.range_.endOffset),W.extend(this.range_.startContainer,this.range_.startOffset))};_.Wk(Ok,Pq);Ok.prototype.compareBrowserRangeEndpoints=function(W,O,b){return Ok.superClass_.compareBrowserRangeEndpoints.call(this,W,O,b)};
Ok.prototype.selectInternal=function(W,O){O?W.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):W.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var XgU=function(W){return _.Lf?new Ok(W):_.TR?new Wb(W):new Pq(W)};var pg=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Uk1;
_.Wk(pg,mkU);Uk1=function(W,O){var b=new pg;b.browserRangeWrapper_=W;b.isReversed_=!!O;return b};
_.lM5=function(W){W=_.Lf?new Ok(wgL(W)):_.TR?new Wb(wgL(W)):new Pq(wgL(W));return Uk1(W)};
_.R3=function(W,O,b,T){var L=new pg;L.isReversed_=e$f(W,O,b,T);if(_.cO(W)&&!p4(W)){var h=W.parentNode;O=Array.prototype.indexOf.call(h.childNodes,W);W=h}_.cO(b)&&!p4(b)&&(h=b.parentNode,T=Array.prototype.indexOf.call(h.childNodes,b),b=h);L.isReversed_?(L.startNode_=b,L.startOffset_=T,L.endNode_=W,L.endOffset_=O):(L.startNode_=W,L.startOffset_=O,L.endNode_=b,L.endOffset_=T);return L};
_.d=pg.prototype;_.d.clone=function(){var W=new pg;W.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();W.startNode_=this.startNode_;W.startOffset_=this.startOffset_;W.endNode_=this.endNode_;W.endOffset_=this.endOffset_;W.isReversed_=this.isReversed_;return W};
_.d.JSC$9251_getType=function(){return"text"};
_.d.getBrowserRangeObject=function(){return Kg(this).range_};
_.d.getTextRangeCount=function(){return 1};
_.d.getTextRange=function(){return this};
var Kg=function(W){var O;if(!(O=W.browserRangeWrapper_)){O=W.JSC$9251_getStartNode();var b=W.JSC$9251_getStartOffset(),T=W.JSC$9251_getEndNode(),L=W.JSC$9251_getEndOffset();O=_.Lf?new Ok(A3q(O,b,T,L)):_.TR?new Wb(A3q(O,b,T,L)):new Pq(A3q(O,b,T,L));O=W.browserRangeWrapper_=O}return O};
_.d=pg.prototype;_.d.getContainer=function(){return Kg(this).getContainer()};
_.d.JSC$9251_getStartNode=function(){return this.startNode_||(this.startNode_=Kg(this).range_.startContainer)};
_.d.JSC$9251_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Kg(this).range_.startOffset};
_.d.JSC$9251_getEndNode=function(){return this.endNode_||(this.endNode_=Kg(this).range_.endContainer)};
_.d.JSC$9251_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Kg(this).range_.endOffset};
_.d.isReversed=function(){return this.isReversed_};
_.d.JSC$9251_containsRange=function(W,O){if(W.JSC$9251_getType()=="text"){var b=Kg(this);W=Kg(W);O=O&&!W.isCollapsed();W=W.range_;b=O?b.compareBrowserRangeEndpoints(W,0,1)>=0&&b.compareBrowserRangeEndpoints(W,1,0)<=0:b.compareBrowserRangeEndpoints(W,0,0)>=0&&b.compareBrowserRangeEndpoints(W,1,1)<=0}else b=!1;return b};
_.d.isCollapsed=function(){return Kg(this).isCollapsed()};
_.d.JSC$9251_getText=function(){return Kg(this).range_.toString()};
_.d.__iterator__=function(){return new ew(this.JSC$9251_getStartNode(),this.JSC$9251_getStartOffset(),this.JSC$9251_getEndNode(),this.JSC$9251_getEndOffset())};
_.d.select=function(){Kg(this).select(this.isReversed_)};
_.d.JSC$9251_removeContents=function(){var W=Kg(this).range_;W.extractContents();if(W.startContainer.hasChildNodes()&&(W=W.startContainer.childNodes[W.startOffset])){var O=W.previousSibling;iH9(W)==""&&_.Xu(W);O&&iH9(O)==""&&_.Xu(O)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.d.insertNode=function(W,O){W=Kg(this).insertNode(W,O);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return W};
_.d.collapse=function(W){W=this.isReversed()?!W:W;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(W);W?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var PXv=function(){};
_.Wk(PXv,mkU);PXv.prototype.JSC$9251_containsRange=function(W,O){var b=lK(this);W=lK(W);return(O?M8:_.cWh)(W,function(T){return M8(b,function(L){return L.JSC$9251_containsRange(T,O)})})};
PXv.prototype.insertNode=function(W,O){O?_.K4(W,this.JSC$9251_getStartNode()):_.v1(W,this.JSC$9251_getEndNode());return W};var pg7,R$7=IG().JSC$7330_document_.documentElement;pg7=R$7.requestFullscreen?"fullscreenchange":R$7.webkitRequestFullscreen?"webkitfullscreenchange":R$7.mozRequestFullScreen?"mozfullscreenchange":R$7.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var KMv=function(){var W=IG().JSC$7330_document_;return!!(W.webkitIsFullScreen||W.mozFullScreen||W.msFullscreenElement||W.fullscreenElement)};var vq=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Wk(vq,PXv);_.d=vq.prototype;_.d.clone=function(){var W=new vq;W.browserRanges_=_.Ov(this.browserRanges_);return W};
_.d.JSC$9251_getType=function(){return"mutli"};
_.d.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.d.getTextRangeCount=function(){return this.browserRanges_.length};
_.d.getTextRange=function(W){this.ranges_[W]||(this.ranges_[W]=Uk1(XgU(this.browserRanges_[W])));return this.ranges_[W]};
_.d.getContainer=function(){if(!this.container_){for(var W=[],O=this.getTextRangeCount(),b=0;b<O;b++)W.push(this.getTextRange(b).getContainer());this.container_=uO$.apply(null,W)}return this.container_};
var gp=function(W){W.sortedRanges_||(W.sortedRanges_=lK(W),W.sortedRanges_.sort(function(O,b){var T=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();var L=b.JSC$9251_getStartNode();b=b.JSC$9251_getStartOffset();return T==L&&O==b?0:e$f(T,O,L,b)?1:-1}));
return W.sortedRanges_};
_.d=vq.prototype;_.d.JSC$9251_getStartNode=function(){return gp(this)[0].JSC$9251_getStartNode()};
_.d.JSC$9251_getStartOffset=function(){return gp(this)[0].JSC$9251_getStartOffset()};
_.d.JSC$9251_getEndNode=function(){return _.CE(gp(this)).JSC$9251_getEndNode()};
_.d.JSC$9251_getEndOffset=function(){return _.CE(gp(this)).JSC$9251_getEndOffset()};
_.d.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.d.JSC$9251_getText=function(){return lK(this).map(function(W){return W.JSC$9251_getText()}).join("")};
_.d.__iterator__=function(){return new o3(this)};
_.d.select=function(){var W=this.getWindow().getSelection();W.removeAllRanges();for(var O=this.getTextRangeCount(),b=0;b<O;b++)W.addRange(this.getTextRange(b).getBrowserRangeObject())};
_.d.JSC$9251_removeContents=function(){lK(this).forEach(function(W){W.JSC$9251_removeContents()})};
_.d.collapse=function(W){if(!this.isCollapsed()){var O=W?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;O.collapse(W);this.ranges_=[O];this.sortedRanges_=[O];this.browserRanges_=[O.getBrowserRangeObject()]}};
var o3=function(W){this.iterators_=null;this.currentIdx_=0;W&&(this.iterators_=gp(W).map(function(O){return _.Huw(O)}));
U9.call(this,W?this.JSC$9257_getStartNode():null,!1,!0)};
_.Wk(o3,YOf);_.d=o3.prototype;_.d.JSC$9257_getStartNode=function(){return this.iterators_[0].JSC$9257_getStartNode()};
_.d.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.d.next=function(){for(;this.currentIdx_<this.iterators_.length;){var W=this.iterators_[this.currentIdx_],O=W.next();if(O.done)this.currentIdx_++;else return Xe(this,W.node,W.tagType,W.depth),O}return OY};
_.d.JSC$9249_copyFrom=function(W){this.iterators_=_.Ov(W.iterators_);o3.superClass_.JSC$9249_copyFrom.call(this,W)};
_.d.clone=function(){var W=new o3(null);W.JSC$9249_copyFrom(this);return W};var v0S,e$f;_.AT=function(){var W=window.getSelection();return W&&v0S(W)};
v0S=function(W){var O=!1;if(W.createRange)try{var b=W.createRange()}catch(L){return null}else if(W.rangeCount){if(W.rangeCount>1){b=new vq;O=W.rangeCount;for(var T=0;T<O;T++)b.browserRanges_.push(W.getRangeAt(T));return b}b=W.getRangeAt(0);O=e$f(W.anchorNode,W.anchorOffset,W.focusNode,W.focusOffset)}else return null;return Uk1(XgU(b),O)};
_.QF=function(W,O){return _.R3(W,O,W,O)};
_.k8=function(W,O,b,T){return _.R3(W,O,b,T)};
e$f=function(W,O,b,T){if(W==b)return T<O;var L;if(W.nodeType==1&&O)if(L=W.childNodes[O])W=L,O=0;else if(_.f5(W,b))return!0;if(b.nodeType==1&&T)if(L=b.childNodes[T])b=L,T=0;else if(_.f5(b,W))return!1;return(MQv(W,b)||O-T)>0};var s9=function(){_.ER.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.K5)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.K5)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.K5)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.K5)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.K5)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.K5)(this.dispatchProgressEvent_,this)};
_.Wk(s9,_.ER);s9.prototype.abort=function(){try{this.reader_.abort()}catch(W){throw new Ms7(W,"aborting read");}};
s9.prototype.getError=function(){return this.reader_.error&&new Ms7(this.reader_.error,"reading file")};
s9.prototype.dispatchProgressEvent_=function(W){this.dispatchEvent(new ukU(W,this))};
s9.prototype.disposeInternal=function(){s9.superClass_.disposeInternal.call(this);delete this.reader_};
var o09=function(W){var O=new s9,b=g0U(O);O.reader_.readAsArrayBuffer(W);return b},Q51=function(W){var O=new s9,b=g0U(O);
O.reader_.readAsDataURL(W);return b},g0U=function(W){var O=new qn;
W.listen("loadend",_.A3(function(b,T){var L=T.reader_.result,h=T.getError();L==null||h?b.errback(h):b.callback(L);T.dispose()},O,W));
return O};var Bq=function(){_.ER.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9291_eventHandler_=new _.be(this);this.JSC$9291_isInitialized_=!1};
_.Wk(Bq,_.ER);var kU9=new _.So("d"),s55=new _.So("beforedragstart"),Baz=new _.So("dragstart"),r3N=new _.So("beforedragmove"),DkN=new _.So("dragmove"),xkH=new _.So("beforedragend"),z$n=new _.So("dragend"),CXU=new _.So("e");Bq.prototype.isDragging=function(){return!!this.JSC$9291_dragger_};
var qOz=function(W,O){O.dlgGrowthDirection_=0;O.dlgDragHoverClass_=void 0;O.dlgDragPermission=0;W.dragLists_.push(O)},n0f=function(W,O){W.getHandleForDragItem_=O};
Bq.prototype.init=function(){if(!this.JSC$9291_isInitialized_){for(var W=this.dragLists_.length,O=0;O<W;O++)for(var b=_.g7(this.dragLists_[O]),T=b.length,L=0;L<T;++L){var h=b[L],Z=this.getHandleForDragItem_(h),a=_.d1(Z);this.dragItemForHandle_[a]=h;this.dragItemHoverClasses_&&(this.JSC$9291_eventHandler_.listen(h,"mouseover",this.handleDragItemMouseover_),this.JSC$9291_eventHandler_.listen(h,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9291_eventHandler_.listen(Z,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9291_eventHandler_.listen(Z,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(h);this.JSC$9291_eventHandler_.listen(Z,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9291_isInitialized_=!0}};
Bq.prototype.disposeInternal=function(){this.JSC$9291_eventHandler_.dispose();for(var W=this.dragLists_.length,O=0;O<W;O++){var b=this.dragLists_[O];b.dlgGrowthDirection_=void 0;b.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;fMS(this);Bq.superClass_.disposeInternal.call(this)};
var GUS=function(W,O){for(var b=W.dragLists_.length,T=0;T<b;T++){var L=W.dragLists_[T];L.dlgBounds_=gq2(L)}b=W.dragItems_.length;for(T=0;T<b;T++)L=W.dragItems_[T],L!=O&&(L.dlgBounds_=gq2(L))};
_.d=Bq.prototype;
_.d.handlePotentialDragStart_=function(W){var O=_.d1(W.currentTarget);O=this.dragItemForHandle_[O];if(O.parentElement.dlgDragPermission!=2){this.currDragItem_=O;a:{O=this.currDragItem_;for(var b=O.cloneNode(!0),T=UV("TEXTAREA",O),L=UV("TEXTAREA",b),h=0;h<T.length;h++)L[h].value=T[h].value;switch(O.tagName){case "TR":O=_.em("TABLE",null,_.em("TBODY",null,b));break a;case "TD":case "TH":O=_.em("TABLE",null,_.em("TBODY",null,_.em("TR",null,b)));break a;case "TEXTAREA":b.value=O.value;default:O=b;break a}O=
void 0}this.draggerEl_=O;this.draggerElClasses_&&zy(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.g4(this.currDragItem_).body.appendChild(this.draggerEl_);b=_.Qr(this.currDragItem_);O=this.draggerEl_;T=_.Qr(O);if(b instanceof _.Kw){var Z=b.y;b=b.x}B1(O,O.offsetLeft+(b-T.x),O.offsetTop+(Number(Z)-T.y));this.JSC$9291_dragger_=new _.s$(this.draggerEl_);_.Nu7(this.JSC$9291_dragger_,this.hysteresisDistance_);
_.Rx(this.JSC$9291_dragger_,"start",this.handleDragStart_,!1,this);_.Rx(this.JSC$9291_dragger_,"end",this.handleDragEnd_,!1,this);_.Rx(this.JSC$9291_dragger_,"earlycancel",this.JSC$9293_cleanup_,!1,this);this.dispatchEvent(new rp(kU9,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_));this.JSC$9291_dragger_.startDrag(W)}};
_.d.handleDragStart_=function(W){if(this.dispatchEvent(new rp(s55,this,W.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.$P1(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?zy(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var O=hLN(this.draggerEl_);this.draggerEl_.halfWidth=O.width/2;this.draggerEl_.halfHeight=O.height/2;O=this.draggerEl_.getBoundingClientRect();
var b=W.clientY,T=Mz9(this.JSC$9291_dragger_,W.clientX);if(T>O.right){var L=this.currDragItem_.getBoundingClientRect();this.JSC$9291_dragger_.deltaX=T-(T-L.left)/L.width*O.width}b=udN(this.JSC$9291_dragger_,b);b>O.bottom&&(this.JSC$9291_dragger_.deltaY+=b-O.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";GUS(this,this.currDragItem_);this.currDragItem_.style.display="";_.Rx(this.JSC$9291_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new rp(Baz,
this,W.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_))}else W.preventDefault(),this.JSC$9293_cleanup_()};
_.d.handleDragMove_=function(W){var O=_.Qr(this.draggerEl_);O=new _.Kw(O.x+this.draggerEl_.halfWidth,O.y+this.draggerEl_.halfHeight);a:{var b=null;if(this.currDragItem_.style.display!="none"){b=this.currDragItem_.parentNode;var T=gq2(b);if(HVf(O,T))break a}T=this.dragLists_.length;for(var L=0;L<T;L++){var h=this.dragLists_[L];if(h!=b&&HVf(O,h.dlgBounds_)){b=h;break a}}b=null}if(b){if(b==null)throw Error("Vd");T=0;L=!1;h=void 0;switch(b.dlgGrowthDirection_){case 0:T=O.y;var Z=txq;var a=$kw;break;case 4:L=
!0;case 2:T=O.x;Z=Vxw;a=$kw;break;case 5:L=!0;case 3:T=O.x,Z=Naw,a=Mxn}for(var m=null,w,A=_.g7(b),X=A.length,l=0;l<X;l++){var p=A[l];if(p!=this.currDragItem_){var K=Z(p.dlgBounds_);if(L){var k=ut$(p,O);h===void 0&&(h=k);a(T,K)&&(w==void 0||k<h||k==h&&(a(K,w)||K==w))&&(m=p,w=K);k<h&&(h=k)}else a(T,K)&&(w==void 0||a(K,w))&&(m=p,w=K)}}Z=m!==null&&ut$(m,O)>h?null:m}else Z=null;if(!this.dispatchEvent(new rp(r3N,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_,O,b,Z)))return!1;if(b&&b.dlgDragPermission!=
1)this.currDragItem_.parentNode==b&&_.$P1(this.currDragItem_)==Z||b.insertBefore(this.currDragItem_,Z),this.currDragItem_.style.display="",b.dlgDragHoverClass_&&_.J4(b,b.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",a=this.dragLists_.length,w=0;w<a;w++)T=this.dragLists_[w],T.dlgDragHoverClass_&&_.Mq(T,T.dlgDragHoverClass_);b!=this.currHoverList_&&(this.currHoverList_=b,GUS(this,this.currDragItem_));this.dispatchEvent(new rp(DkN,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_,
O,b,Z));return!1};
_.d.JSC$9293_cleanup_=function(){fMS(this);this.JSC$9291_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var W=this.dragLists_.length,O=0;O<W;O++)this.dragLists_[O].dlgBounds_=null;W=this.dragItems_.length;for(O=0;O<W;O++)this.dragItems_[O].dlgBounds_=null};
_.d.handleDragEnd_=function(W){if(!this.dispatchEvent(new rp(xkH,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_)))return!1;fMS(this);this.dispatchEvent(new rp(z$n,this,W,this.currDragItem_,this.draggerEl_,this.JSC$9291_dragger_));this.JSC$9293_cleanup_();return!0};
var fMS=function(W){_.JU(W.JSC$9291_dragger_);var O=W.draggerEl_&&W.draggerEl_.parentElement;W.draggerEl_&&_.Xu(W.draggerEl_);W.currDragItem_&&W.currDragItem_.style.display=="none"&&(W.origList_.insertBefore(W.currDragItem_,W.origNextItem_),W.currDragItem_.style.display="");W.currDragItemClasses_&&W.currDragItem_?MPv(W.currDragItem_,W.currDragItemClasses_||[]):W.currDragItem_&&(W.currDragItem_.style.visibility="");for(var b=W.dragLists_.length,T=0;T<b;T++){var L=W.dragLists_[T];L.dlgDragHoverClass_&&
_.Mq(L,L.dlgDragHoverClass_)}O&&W.dispatchEvent(new rp(CXU,W,null,W.currDragItem_,W.draggerEl_,W.JSC$9291_dragger_))};
_.d=Bq.prototype;_.d.getHandleForDragItem_=function(W){return W};
_.d.handleDragItemMouseover_=function(W){zy(W.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemMouseout_=function(W){MPv(W.currentTarget,this.dragItemHoverClasses_||[])};
_.d.handleDragItemHandleMouseover_=function(W){zy(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.d.handleDragItemHandleMouseout_=function(W){MPv(W.currentTarget,this.dragItemHandleHoverClasses_||[])};
var HVf=function(W,O){return W.x>O.left&&W.x<O.left+O.width&&W.y>O.top&&W.y<O.top+O.height},ut$=function(W,O){W=W.dlgBounds_;
return Math.abs(O.y-(W.top+(W.height-1)/2))},txq=function(W){return W.top+W.height-1},Vxw=function(W){return W.left+W.width-1},Naw=function(W){return W.left||0},$kw=function(W,O){return W<O},Mxn=function(W,O){return W>O},rp=function(W,O,b,T,L,h){_.ZB.call(this,W);
this.event=b;this.currDragItem=T;this.draggerEl=L;this.JSC$9295_dragger=h};
_.Wk(rp,_.ZB);_.Wk(jH,_.R8);var J39=new _.Kw(0,0);jH.prototype.JSC$9299_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
jH.prototype.JSC$9299_onMouseMove=function(W){var O=this.containerIsActuallyContent_?J39:ZI(IG(this.containerNode_)),b=this.horizontalScrolling_?this.calculateScrollDelta(W.clientX+O.x,this.scrollBounds_.left,this.scrollBounds_.width):0,T=this.calculateScrollDelta(W.clientY+O.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=b;this.scrollDelta_.y=T;!(b=!b&&!T)&&(b=this.constrainScroll_)&&(b=W.clientX+O.x,W=W.clientY+O.y,O=this.containerBounds_,b=!(O.left<=b&&O.left+O.width>=
b&&O.top<=W&&O.top+O.height>=W));b?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
jH.prototype.calculateScrollDelta=function(W,O,b){var T=0;W<O?T=-8:W>O+b&&(T=8);return T};
jH.prototype.disposeInternal=function(){jH.superClass_.disposeInternal.call(this);this.JSC$9297_eventHandler_.dispose();this.scrollTimer_.dispose()};var c3U={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"}}},Dc=c3U;Dc=c3U;var x8={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 FMv=function(){},HS=function(W){if(typeof W=="number"){var O=new FMv;
O.standardOffset_=W;var b=W;if(b==0)b="Etc/GMT";else{var T=["Etc/GMT",b<0?"-":"+"];b=Math.abs(b);T.push(Math.floor(b/60)%100);b%=60;b!=0&&T.push(":",_.FS(b,2));b=T.join("")}O.timeZoneId_=b;b=W;b==0?b="UTC":(T=["UTC",b<0?"+":"-"],b=Math.abs(b),T.push(Math.floor(b/60)%100),b%=60,b!=0&&T.push(":",b),b=T.join(""));W=y31(W);O.tzNames_=[b,b];O.tzNamesExt_={STD_LONG_NAME_GMT:W,STD_GENERIC_LOCATION:W};O.transitions_=[];return O}O=new FMv;O.timeZoneId_=W.id;O.standardOffset_=-W.std_offset;O.tzNames_=W.names;
O.tzNamesExt_=W.names_ext;O.transitions_=W.transitions;return O},y31=function(W){var O=["GMT"];
O.push(W<=0?"+":"-");W=Math.abs(W);O.push(_.FS(Math.floor(W/60)%100,2),":",_.FS(W%60,2));return O.join("")},W_7=function(W,O){O=Date.UTC(O.getUTCFullYear(),O.getUTCMonth(),O.getUTCDate(),O.getUTCHours(),O.getUTCMinutes())/36E5;
for(var b=0;b<W.transitions_.length&&O>=W.transitions_[b];)b+=2;return b==0?0:W.transitions_[b-1]},Oez=function(W,O){W=W.standardOffset_-W_7(W,O);
return W===-1440?0:W};var tH=function(W,O){this.patternParts_=[];this.JSC$9310_dateTimeSymbols_=O||Pt;typeof W=="number"?iez(this,W):be1(this,W)},jJN=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],zg=function(W){return W.getHours?W.getHours():0},be1=function(W,O){for(c62&&(O=O.replace(/\u200f/g,""));O;){for(var b=O,T=0;T<jJN.length;++T){var L=O.match(jJN[T]);
if(L){var h=L[0];O=O.substring(h.length);T==0&&(h=="''"?h="'":(h=h.substring(1,L[1]=="'"?h.length-1:h.length),h=h.replace(/''/g,"'")));W.patternParts_.push({text:h,type:T});break}}if(b===O)throw Error("Wd`"+O);}};
tH.prototype.format=function(W,O){if(!W)throw Error("Xd");var b=O?(W.getTimezoneOffset()-Oez(O,W))*6E4:0,T=b?new Date(W.getTime()+b):W,L=T;O&&T.getTimezoneOffset()!=W.getTimezoneOffset()&&(T=new Date(T.getTime()+(T.getTimezoneOffset()-W.getTimezoneOffset())*6E4),L=new Date(W.getTime()+(b+(b>0?-864E5:864E5))));b=[];for(var h=0;h<this.patternParts_.length;++h){var Z=this.patternParts_[h].text;1==this.patternParts_[h].type?b.push(Tm1(this,Z,W,T,L,O)):b.push(Z)}return b.join("")};
var iez=function(W,O){if(O<4)var b=W.JSC$9310_dateTimeSymbols_.DATEFORMATS[O];else if(O<8)b=W.JSC$9310_dateTimeSymbols_.TIMEFORMATS[O-4];else if(O<12)b=W.JSC$9310_dateTimeSymbols_.DATETIMEFORMATS[O-8],b=b.replace("{1}",W.JSC$9310_dateTimeSymbols_.DATEFORMATS[O-8]),b=b.replace("{0}",W.JSC$9310_dateTimeSymbols_.TIMEFORMATS[O-8]);else if(O===12)b=W.JSC$9310_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(O===13)b=W.JSC$9310_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{iez(W,10);return}be1(W,b)},Cg=function(W,O){O=String(O);
W=W.JSC$9310_dateTimeSymbols_||Pt;if(W.ZERODIGIT!==void 0&&!J68){for(var b=[],T=0;T<O.length;T++){var L=O.charCodeAt(T);b.push(48<=L&&L<=57?String.fromCharCode(W.ZERODIGIT+L-48):O.charAt(T))}O=b.join("")}return O},J68=!1,c62=!1,dXL=function(W,O,b,T){b=b.getFullYear();
b<=0&&T&&(b=1-b);return Cg(W,L_z(b,O))},L_z=function(W,O){O==2&&(W%=100);
W<0&&O++;return _.FS(W,O)},qv=function(W){if(!(W.getHours&&W.getSeconds&&W.getMinutes))throw Error("Yd");
},hgn=function(W,O){qv(O);
O=zg(O);return W.JSC$9310_dateTimeSymbols_.AMPMS[O>=12&&O<24?1:0]},Tm1=function(W,O,b,T,L,h){var Z=O.length;
switch(O.charAt(0)){case "G":return b=T.getFullYear()>0?1:0,Z>=4?W.JSC$9310_dateTimeSymbols_.ERANAMES[b]:W.JSC$9310_dateTimeSymbols_.ERAS[b];case "y":return dXL(W,Z,T,!0);case "Y":return b=(new Date(ZV9(T.getFullYear(),T.getMonth(),T.getDate(),W.JSC$9310_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9310_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),Z==2&&(b%=100),Cg(W,L_z(b,Z));case "u":return dXL(W,Z,T,!1);case "M":a:switch(b=T.getMonth(),Z){case 5:Z=W.JSC$9310_dateTimeSymbols_.NARROWMONTHS[b];break a;
case 4:Z=W.JSC$9310_dateTimeSymbols_.MONTHS[b];break a;case 3:Z=W.JSC$9310_dateTimeSymbols_.SHORTMONTHS[b];break a;default:Z=Cg(W,_.FS(b+1,Z))}return Z;case "k":return qv(L),Cg(W,_.FS(zg(L)||24,Z));case "S":return Cg(W,(L.getMilliseconds()/1E3).toFixed(Math.min(3,Z)).slice(2)+(Z>3?_.FS(0,Z-3):""));case "E":return b=T.getDay(),Z>=4?W.JSC$9310_dateTimeSymbols_.WEEKDAYS[b]:W.JSC$9310_dateTimeSymbols_.SHORTWEEKDAYS[b];case "a":return hgn(W,L);case "b":return hgn(W,L);case "B":return hgn(W,L);case "h":return qv(L),
Cg(W,_.FS(zg(L)%12||12,Z));case "K":return qv(L),Cg(W,_.FS(zg(L)%12,Z));case "H":return qv(L),Cg(W,_.FS(zg(L),Z));case "c":a:switch(b=T.getDay(),Z){case 5:Z=W.JSC$9310_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[b];break a;case 4:Z=W.JSC$9310_dateTimeSymbols_.STANDALONEWEEKDAYS[b];break a;case 3:Z=W.JSC$9310_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[b];break a;default:Z=Cg(W,_.FS(b,1))}return Z;case "L":a:switch(b=T.getMonth(),Z){case 5:Z=W.JSC$9310_dateTimeSymbols_.STANDALONENARROWMONTHS[b];break a;
case 4:Z=W.JSC$9310_dateTimeSymbols_.STANDALONEMONTHS[b];break a;case 3:Z=W.JSC$9310_dateTimeSymbols_.STANDALONESHORTMONTHS[b];break a;default:Z=Cg(W,_.FS(b+1,Z))}return Z;case "Q":return b=Math.floor(T.getMonth()/3),Z<4?W.JSC$9310_dateTimeSymbols_.SHORTQUARTERS[b]:W.JSC$9310_dateTimeSymbols_.QUARTERS[b];case "d":return Cg(W,_.FS(T.getDate(),Z));case "m":return qv(L),Cg(W,_.FS(L.getMinutes?L.getMinutes():0,Z));case "s":return qv(L),Cg(W,_.FS(L.getSeconds(),Z));case "v":return(h||HS(b.getTimezoneOffset())).timeZoneId_;
case "V":return W=h||HS(b.getTimezoneOffset()),Z<=2?W.timeZoneId_:W_7(W,b)>0?W.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.DST_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?W.tzNamesExt_.STD_GENERIC_LOCATION:W.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return b=ZV9(L.getFullYear(),L.getMonth(),L.getDate(),W.JSC$9310_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,W.JSC$9310_dateTimeSymbols_.FIRSTDAYOFWEEK),Cg(W,_.FS(Math.floor(Math.round((b-(new Date((new Date(b)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,Z));case "z":return W=h||HS(b.getTimezoneOffset()),Z<4?W.tzNames_[W_7(W,b)>0?2:0]:W.tzNames_[W_7(W,b)>0?3:1];case "Z":return O=h||HS(b.getTimezoneOffset()),Z<4?(Z=-Oez(O,b),W=[Z<0?"-":"+"],Z=Math.abs(Z),W.push(_.FS(Math.floor(Z/60)%100,2),_.FS(Z%60,2)),Z=W.join("")):Z=Cg(W,y31(Oez(O,b))),Z;default:return""}};var Srn=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Zev=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Sa8=function(W){this.patternParts_=[];this.JSC$9319_dateTimeSymbols_=Pt;if(typeof W=="number"){W>11&&(W=10);if(W<4)var O=this.JSC$9319_dateTimeSymbols_.DATEFORMATS[W];else W<8?O=this.JSC$9319_dateTimeSymbols_.TIMEFORMATS[W-4]:(O=this.JSC$9319_dateTimeSymbols_.DATETIMEFORMATS[W-8],O=O.replace("{1}",this.JSC$9319_dateTimeSymbols_.DATEFORMATS[W-8]),O=O.replace("{0}",this.JSC$9319_dateTimeSymbols_.TIMEFORMATS[W-
8]));I5$(this,O)}else I5$(this,W)},I5$=function(W,O){for(var b=!1,T="",L=0;L<O.length;L++){var h=O.charAt(L);
if(Srn.test(h))for(T.length>0&&(W.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1}),T=""),W.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});L<O.length-1&&O.charAt(L+1)==" ";)L++;else if(b)h=="'"?L+1<O.length&&O.charAt(L+1)=="'"?(T+="'",L++):b=!1:T+=h;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(h)>=0){T.length>0&&(W.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1}),T="");for(var Z=O.charAt(L),a=L+1;a<O.length&&O.charAt(a)==Z;)a++;Z=a-L;Z<=0?a=!1:(a="MydhHmsSDkK".indexOf(h),
a=a>0||a==0&&Z<3);W.patternParts_.push({text:h,count:Z,abutStart:!1,numeric:a});L+=Z-1}else h=="'"?L+1<O.length&&O.charAt(L+1)=="'"?(T+="'",L++):b=!0:T+=h}T.length>0&&W.patternParts_.push({text:T,count:0,abutStart:!1,numeric:!1});O=!1;for(b=0;b<W.patternParts_.length;b++)W.patternParts_[b].numeric?!O&&b+1<W.patternParts_.length&&W.patternParts_[b+1].numeric&&(O=!0,W.patternParts_[b].abutStart=!0):O=!1};
Sa8.prototype.parse=function(W,O,b){var T=!1,L=!1;b&&(T=b.predictive||!1,L=b.validate||!1);if(T)for(b=0;b<this.patternParts_.length;b++){var h=this.patternParts_[b];if(h.count>0&&("abBhHkKm".indexOf(h.text.charAt(0))<0||h.count>2||h.abutStart))throw Error("Zd`"+h.text.charAt(0));}h=new a51;b=[0];h.dayPeriodIndex=-1;for(var Z=0;Z<this.patternParts_.length&&!(T&&b[0]>=W.length);Z++){if(this.patternParts_[Z].count==0){a:{var a=W;var m=b,w=this.patternParts_[Z],A=T;if(w.text.match(Srn)!=null){if(w=m[0],
mXw(a,m),m[0]>w){a=!0;break a}}else{if(a.indexOf(w.text,m[0])==m[0]){m[0]+=w.text.length;a=!0;break a}if(A&&w.text.indexOf(a.substring(m[0]))==0){m[0]+=a.length-m[0];a=!0;break a}}a=!1}if(a)continue;return 0}if(this.patternParts_[Z].abutStart){a:{m=W;w=b;A=Z;var X=w[0],l=0;for(a=A;a<this.patternParts_.length;a++){var p=this.patternParts_[a],K=p.count;if(K===0)break;if(a==A&&(K-=l,l++,K==0)){a=0;break a}var k=a>A&&p.numeric,r=w[0];if(!Yr1(this,m,w,p,K,h,!1)||k&&w[0]-r<K)a=A-1,w[0]=X}a-=A}if(a<=0)return 0;
Z+=a-1}else if(!Yr1(this,W,b,this.patternParts_[Z],0,h,T))return 0}a:{W=L;if(O==null)throw Error("$d");h.era!=void 0&&h.year!=void 0&&h.era==0&&h.year>0&&(h.year=-(h.year-1));h.year!=void 0&&O.setFullYear(h.year);T=O.getDate();O.setDate(1);h.month!=void 0&&O.setMonth(h.month);h.day!=void 0?O.setDate(h.day):(L=CC8(O.getFullYear(),O.getMonth()),O.setDate(T>L?L:T));typeof O.setHours==="function"&&(h.hours==void 0&&(h.hours=O.getHours()),h.hours<12&&(h.ampm!=void 0&&h.ampm>0?h.hours+=12:h.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(h.dayPeriodName)||["night1","night2"].includes(h.dayPeriodName)&&h.hours>=6)&&(h.hours+=12)),O.setHours(h.hours));typeof O.setMinutes==="function"&&h.minutes!=void 0&&O.setMinutes(h.minutes);typeof O.setSeconds==="function"&&h.seconds!=void 0&&O.setSeconds(h.seconds);typeof O.setMilliseconds==="function"&&h.milliseconds!=void 0&&O.setMilliseconds(h.milliseconds);if(W&&(h.year&&h.year!=O.getFullYear()||h.month&&h.month!=
O.getMonth()||h.day&&h.day!=O.getDate()||h.hours&&h.hours>=24||h.minutes&&h.minutes>=60||h.seconds&&h.seconds>=60||h.milliseconds&&h.milliseconds>=1E3))O=!1;else{h.tzOffset!=void 0&&O.setTime(O.getTime()+(h.tzOffset-O.getTimezoneOffset())*60*1E3);h.ambiguousYear&&(W=new Date,W.setFullYear(W.getFullYear()-80),O.getTime()<W.getTime()&&O.setFullYear(W.getFullYear()+100));if(h.dayOfWeek!=void 0)if(h.day==void 0)h=(7+h.dayOfWeek-O.getDay())%7,h>3&&(h-=7),W=O.getMonth(),O.setDate(O.getDate()+h),O.getMonth()!=
W&&O.setDate(O.getDate()+(h>0?-7:7));else if(h.dayOfWeek!=O.getDay()){O=!1;break a}O=!0}}return O?b[0]:0};
var Yr1=function(W,O,b,T,L,h,Z){mXw(O,b);if(T.numeric&&L>0&&b[0]+L>O.length)return!1;switch(T.text.charAt(0)){case "G":return fg(O,b,[W.JSC$9319_dateTimeSymbols_.ERAS],function(a){return h.era=a}),!0;
case "M":case "L":return E9w(W,O,b,L,T,h);case "E":return fg(O,b,[W.JSC$9319_dateTimeSymbols_.WEEKDAYS,W.JSC$9319_dateTimeSymbols_.SHORTWEEKDAYS],function(a){return h.dayOfWeek=a});
case "B":case "b":return L=[],W=[[].concat(W.JSC$9319_dateTimeSymbols_.AMPMS)],L.push("isAm"),L.push("isPm"),O=fg(O,b,W,function(a){return h.dayPeriodIndex=a},Z),h.dayPeriodName=L[h.dayPeriodIndex],Z?O:!0;
case "a":return O=fg(O,b,[W.JSC$9319_dateTimeSymbols_.AMPMS],function(a){return h.ampm=a},Z),Z?O:!0;
case "y":return wS5(W,O,b,T,L,h);case "Q":return fg(O,b,[W.JSC$9319_dateTimeSymbols_.QUARTERS,W.JSC$9319_dateTimeSymbols_.SHORTQUARTERS],function(a){h.month=a*3;h.day=1});
case "d":return Gg(W,O,b,T,L,function(a){h.day=a}),!0;
case "S":return AHn(W,O,b,L,h);case "h":case "K":case "H":case "k":return O=Gg(W,O,b,T,L,function(a){h.hours=T.text.charAt(0)==="h"&&a===12?0:a},Z),Z?O:!0;
case "m":return O=Gg(W,O,b,T,L,function(a){h.minutes=a},Z),Z?O:!0;
case "s":return Gg(W,O,b,T,L,function(a){h.seconds=a}),!0;
case "z":case "Z":case "v":return XSU(W,O,b,h);default:return!1}},wS5=function(W,O,b,T,L,h){var Z=b[0];
L=Hq(W,O,b,L);L===null&&(L=Hq(W,O,b,0,!0));if(L===null)return!1;L>=0&&b[0]-Z==2&&T.count==2?(W=L,O=(new Date).getFullYear()-80,b=O%100,h.ambiguousYear=W==b,W+=Math.floor(O/100)*100+(W<b?100:0),h.year=W):h.year=L;return!0},E9w=function(W,O,b,T,L,h){return L.numeric&&Gg(W,O,b,L,T,function(Z){h.month=Z-1})?!0:fg(O,b,[W.JSC$9319_dateTimeSymbols_.MONTHS,
W.JSC$9319_dateTimeSymbols_.STANDALONEMONTHS,W.JSC$9319_dateTimeSymbols_.SHORTMONTHS,W.JSC$9319_dateTimeSymbols_.STANDALONESHORTMONTHS],function(Z){h.month=Z})},AHn=function(W,O,b,T,L){var h=b[0];
W=Hq(W,O,b,T);if(W===null)return!1;b=b[0]-h;L.milliseconds=b<3?W*Math.pow(10,3-b):Math.round(W/Math.pow(10,b-3));return!0},XSU=function(W,O,b,T){O.indexOf("GMT",b[0])==b[0]&&(b[0]+=3);
if(b[0]>=O.length)return T.tzOffset=0,!0;var L=b[0],h=Hq(W,O,b,0,!0);if(h===null)return!1;if(b[0]<O.length&&O.charAt(b[0])==":"){var Z=h*60;b[0]++;h=Hq(W,O,b,0);if(h===null)return!1;Z+=h}else Z=h,Z=Z<24&&b[0]-L<=3?Z*60:Z%100+Z/100*60;T.tzOffset=-Z;return!0},Gg=function(W,O,b,T,L,h,Z){Z=Z||!1;
var a=b[0];W=Hq(W,O,b,L);if(W===null)return!1;if(Z&&b[0]-a<T.count){if(b[0]<O.length)return!1;W*=Math.pow(10,T.count-(b[0]-a))}h(W);return!0},fg=function(W,O,b,T,L){L=L||!1;
for(var h,Z=0;Z<b.length;Z++){h=O;for(var a=b[Z],m=L,w=0,A=null,X=W.substring(h[0]).toLowerCase(),l=0;l<a.length;l++){var p=a[l].toLowerCase();if(m&&p.indexOf(X)==0){w=X.length;A=l;break}a[l].length>w&&X.indexOf(p)==0&&(w=a[l].length,A=l)}A!==null&&(h[0]+=w);h=A;if(h!==null)return T(h),!0}return!1},mXw=function(W,O){(W=W.substring(O[0]).match(Zev))&&(O[0]+=W[0].length)},Hq=function(W,O,b,T,L){O=T>0?O.substring(0,b[0]+T):O;
L=L||!1;if(W.JSC$9319_dateTimeSymbols_.ZERODIGIT){T=[];for(var h=b[0];h<O.length;h++){var Z=O.charCodeAt(h)-W.JSC$9319_dateTimeSymbols_.ZERODIGIT;T.push(0<=Z&&Z<=9?String.fromCharCode(Z+48):O.charAt(h))}O=T.join("")}else O=O.substring(b[0]);W=O.match(new RegExp("^"+(L?"[+-]?":"")+"\\d+"));if(!W)return null;b[0]+=W[0].length;return parseInt(W[0],10)},a51=function(){};
a51.prototype.ambiguousYear=!1;_.UXN={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 l55={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"},egS=l55,PvL=l55;PvL=egS=l55;var Rg5,tc,VF,xOX,$8,pSn;
_.ne=function(W,O,b,T){var L;if(L=O){a:if(O&&O.length===3){for(L=0;L<3;L++){var h=O[L];if(h<"A"||h>"Z"&&h<"a"||h>"z"){L=!1;break a}}L=!0}else L=!1;L=!L}if(L)throw new TypeError("ae");this.intlCurrencyCode_=O?O.toUpperCase():null;this.currencyStyle_=b||0;this.overrideNumberFormatSymbols_=T||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_=tc(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof W==="number")switch(W){case 1:$8(this,tc(this).DECIMAL_PATTERN);break;case 2:$8(this,tc(this).SCIENTIFIC_PATTERN);break;case 3:$8(this,tc(this).PERCENT_PATTERN);break;case 4:W=tc(this).CURRENCY_PATTERN;O=["0"];if(b=
x8[VF(this)]){b=b[0]&7;if(b>0)for(O.push("."),T=0;T<b;T++)O.push("0");W=W.replace(/0.00/g,O.join(""))}$8(this,W);break;case 5:pSn(this,1);break;case 6:pSn(this,2);break;default:throw Error("de");}else $8(this,W)};
Rg5=!1;tc=function(W){return W.overrideNumberFormatSymbols_||(Rg5?PvL:egS)};
VF=function(W){return W.intlCurrencyCode_||tc(W).DEF_CURRENCY_CODE};
xOX=function(W,O){if(O>308)throw Error("ce`"+O);W.maximumFractionDigits_=O;return W};
$8=function(W,O){var b=[0];W.positivePrefix_=K_$(W,O,b);for(var T=b[0],L=-1,h=0,Z=0,a=0,m=-1,w=O.length,A=!0;b[0]<w&&A;b[0]++)switch(O.charAt(b[0])){case "#":Z>0?a++:h++;m>=0&&L<0&&m++;break;case "0":if(a>0)throw Error("je`"+O);Z++;m>=0&&L<0&&m++;break;case ",":m>0&&W.groupingArray_.push(m);m=0;break;case ".":if(L>=0)throw Error("ke`"+O);L=h+Z+a;break;case "E":if(W.useExponentialNotation_)throw Error("le`"+O);W.useExponentialNotation_=!0;W.minExponentDigits_=0;b[0]+1<w&&O.charAt(b[0]+1)=="+"&&(b[0]++,
W.useSignForPositiveExponent_=!0);for(;b[0]+1<w&&O.charAt(b[0]+1)=="0";)b[0]++,W.minExponentDigits_++;if(h+Z<1||W.minExponentDigits_<1)throw Error("me`"+O);A=!1;break;default:b[0]--,A=!1}Z==0&&h>0&&L>=0&&(Z=L,Z==0&&Z++,a=h-Z,h=Z-1,Z=1);if(L<0&&a>0||L>=0&&(L<h||L>h+Z)||m==0)throw Error("ne`"+O);a=h+Z+a;W.maximumFractionDigits_=L>=0?a-L:0;L>=0&&(W.minimumFractionDigits_=h+Z-L,W.minimumFractionDigits_<0&&(W.minimumFractionDigits_=0));W.minimumIntegerDigits_=(L>=0?L:a)-h;W.useExponentialNotation_&&(W.maximumIntegerDigits_=
h+W.minimumIntegerDigits_,W.maximumFractionDigits_==0&&W.minimumIntegerDigits_==0&&(W.minimumIntegerDigits_=1));W.groupingArray_.push(Math.max(0,m));W.decimalSeparatorAlwaysShown_=L==0||L==a;T=b[0]-T;W.positiveSuffix_=K_$(W,O,b);b[0]<O.length&&O.charAt(b[0])==";"?(b[0]++,W.multiplier_!=1&&(W.negativePercentSignExpected_=!0),W.negativePrefix_=K_$(W,O,b),b[0]+=T,W.negativeSuffix_=K_$(W,O,b)):(W.negativePrefix_+=W.positivePrefix_,W.negativeSuffix_+=W.positiveSuffix_)};
pSn=function(W,O){W.compactStyle_=O;$8(W,tc(W).DECIMAL_PATTERN);W.minimumFractionDigits_=0;xOX(W,2);if(W.minimumFractionDigits_>0)throw Error("be");W.significantDigits_=2};
_.ne.prototype.parse=function(W,O){O=O||[0];if(this.compactStyle_!==0)throw Error("ee");W=W.replace(/ |\u202f/g,"\u00a0");var b=W.indexOf(this.positivePrefix_,O[0])==O[0],T=W.indexOf(this.negativePrefix_,O[0])==O[0];b&&T&&(this.positivePrefix_.length>this.negativePrefix_.length?T=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(b=!1));b?O[0]+=this.positivePrefix_.length:T&&(O[0]+=this.negativePrefix_.length);if(W.indexOf(tc(this).INFINITY,O[0])==O[0]){O[0]+=tc(this).INFINITY.length;var L=
Infinity}else{L=W;var h=!1,Z=!1,a=!1,m=-1,w=1,A=tc(this).DECIMAL_SEP,X=tc(this).GROUP_SEP,l=tc(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("fe");X=X.replace(/\u202f/g,"\u00a0");for(var p="";O[0]<L.length;O[0]++){var K=L.charAt(O[0]),k=v9$(this,K);if(k>=0&&k<=9)p+=k,a=!0;else if(K==A.charAt(0)){if(h||Z)break;p+=".";h=!0}else if(K==X.charAt(0)&&("\u00a0"!=X.charAt(0)||O[0]+1<L.length&&v9$(this,L.charAt(O[0]+1))>=0)){if(h||Z)break}else if(K==l.charAt(0)){if(Z)break;p+="E";Z=!0;m=O[0]}else if(K==
"+"||K=="-"){if(a&&m!=O[0]-1)break;p+=K}else if(this.multiplier_==1&&K==tc(this).PERCENT.charAt(0)){if(w!=1)break;w=100;if(a){O[0]++;break}}else if(this.multiplier_==1&&K==tc(this).PERMILL.charAt(0)){if(w!=1)break;w=1E3;if(a){O[0]++;break}}else break}this.multiplier_!=1&&(w=this.multiplier_);L=parseFloat(p)/w}if(b){if(W.indexOf(this.positiveSuffix_,O[0])!=O[0])return NaN;O[0]+=this.positiveSuffix_.length}else if(T){if(W.indexOf(this.negativeSuffix_,O[0])!=O[0])return NaN;O[0]+=this.negativeSuffix_.length}return T?
-L:L};
_.ne.prototype.format=function(W){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ge");if(isNaN(W))return tc(this).NAN;var O=[];var b=W;if(this.compactStyle_==0)b=Nv;else{b=Math.abs(b);var T=g99(this,b<=1?0:o9q(b)).divisorBase;b=g99(this,T+o9q(QJv(this,Mv(b,-T)).intValue))}W=Mv(W,-b.divisorBase);(T=W<0||W==0&&1/W<0)?b.negative_prefix?O.push(b.negative_prefix):(O.push(b.prefix),O.push(this.negativePrefix_)):(O.push(b.prefix),O.push(this.positivePrefix_));if(isFinite(W))if(W*=
T?-1:1,W*=this.multiplier_,this.useExponentialNotation_){var L=W;if(L==0)kcU(this,L,this.minimumIntegerDigits_,O),sJU(this,0,O);else{var h=Math.floor(Math.log(L)/Math.log(10)+2E-15);L=Mv(L,-h);var Z=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(Z=h%this.maximumIntegerDigits_,Z<0&&(Z=this.maximumIntegerDigits_+Z),L=Mv(L,Z),h-=Z,Z=1):this.minimumIntegerDigits_<1?(h++,L=Mv(L,-1)):(h-=this.minimumIntegerDigits_-1,L=Mv(L,this.minimumIntegerDigits_-
1));kcU(this,L,Z,O);sJU(this,h,O)}}else kcU(this,W,this.minimumIntegerDigits_,O);else O.push(tc(this).INFINITY);T?b.negative_suffix?O.push(b.negative_suffix):(isFinite(W)&&O.push(b.suffix),O.push(this.negativeSuffix_)):(isFinite(W)&&O.push(b.suffix),O.push(this.positiveSuffix_));return O.join("")};
var QJv=function(W,O){var b=Mv(O,W.maximumFractionDigits_);W.significantDigits_>0&&(b=Bmq(b,W.significantDigits_,W.maximumFractionDigits_));b=Math.round(b);if(isFinite(b)){var T=Math.floor(Mv(b,-W.maximumFractionDigits_));b=Math.floor(b-Mv(T,W.maximumFractionDigits_));if(b<0||b>=Mv(1,W.maximumFractionDigits_))T=Math.round(O),b=0}else T=O,b=0;return{intValue:T,fracValue:b}},kcU=function(W,O,b,T){if(W.minimumFractionDigits_>W.maximumFractionDigits_)throw Error("ge");
T||(T=[]);O=QJv(W,O);var L=O.intValue,h=O.fracValue,Z=W.minimumFractionDigits_>0||h>0||!1;O=W.minimumFractionDigits_;Z&&(O=W.minimumFractionDigits_);for(var a="",m=L;m>1E20;)a="0"+a,m=Math.round(Mv(m,-1));a=m+a;var w=tc(W).DECIMAL_SEP;m=tc(W).ZERO_DIGIT.codePointAt(0);var A=a.length,X=0;if(L>0||b>0){for(L=A;L<b;L++)T.push(String.fromCodePoint(m));if(W.groupingArray_.length>=2)for(b=1;b<W.groupingArray_.length;b++)X+=W.groupingArray_[b];b=A-X;if(b>0){L=W.groupingArray_;X=A=0;for(var l,p=tc(W).GROUP_SEP,
K=a.length,k=0;k<K;k++)if(T.push(String.fromCodePoint(m+Number(a.charAt(k)))),K-k>1)if(l=L[X],k<b){var r=b-k;(l===1||l>0&&r%l===1)&&T.push(p)}else X<L.length&&(k===b?X+=1:l===k-b-A+1&&(T.push(p),A+=l,X+=1))}else{b=a;a=W.groupingArray_;L=tc(W).GROUP_SEP;l=b.length;p=[];for(A=a.length-1;A>=0&&l>0;A--){X=a[A];for(K=0;K<X&&l-K-1>=0;K++)p.push(String.fromCodePoint(m+Number(b.charAt(l-K-1))));l-=X;l>0&&p.push(L)}T.push.apply(T,p.reverse())}}else Z||T.push(String.fromCodePoint(m));(W.decimalSeparatorAlwaysShown_||
Z)&&T.push(w);h=String(h);Z=h.split("e+");Z.length==2&&(h=String(Bmq(parseFloat(Z[0]),W.significantDigits_,1)),h=h.replace(".",""),h+=(0,_.gmT)("0",parseInt(Z[1],10)-h.length+1));W.maximumFractionDigits_+1>h.length&&(h="1"+(0,_.gmT)("0",W.maximumFractionDigits_-h.length)+h);for(W=h.length;h.charAt(W-1)=="0"&&W>O+1;)W--;for(O=1;O<W;O++)T.push(String.fromCodePoint(m+Number(h.charAt(O))))},sJU=function(W,O,b){b.push(tc(W).EXP_SYMBOL);
O<0?(O=-O,b.push(tc(W).MINUS_SIGN)):W.useSignForPositiveExponent_&&b.push(tc(W).PLUS_SIGN);O=""+O;for(var T=tc(W).ZERO_DIGIT,L=O.length;L<W.minExponentDigits_;L++)b.push(T);W=T.codePointAt(0)-rH9;for(T=0;T<O.length;T++)b.push(String.fromCodePoint(W+O.codePointAt(T)))},v9$=function(W,O){O=O.codePointAt(0);
if(48<=O&&O<58)return O-48;W=tc(W).ZERO_DIGIT.codePointAt(0);return W<=O&&O<W+10?O-W:-1},rH9="0".codePointAt(0),K_$=function(W,O,b){for(var T="",L=!1,h=O.length;b[0]<h;b[0]++){var Z=O.charAt(b[0]);
if(Z=="'")b[0]+1<h&&O.charAt(b[0]+1)=="'"?(b[0]++,T+="'"):L=!L;else if(L)T+=Z;else switch(Z){case "#":case "0":case ",":case ".":case ";":return T;case "\u00a4":if(b[0]+1<h&&O.charAt(b[0]+1)=="\u00a4")b[0]++,T+=VF(W);else switch(W.currencyStyle_){case 0:Z=VF(W);T+=Z in x8?x8[Z][1]:Z;break;case 2:Z=VF(W);var a=x8[Z];T+=a?Z==a[1]?Z:Z+" "+a[1]:Z;break;case 1:Z=VF(W),T+=Z in x8?x8[Z][2]:Z}break;case "%":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&
W.multiplier_!=100)throw Error("ie");W.multiplier_=100;W.negativePercentSignExpected_=!1;T+=tc(W).PERCENT;break;case "\u2030":if(!W.negativePercentSignExpected_&&W.multiplier_!=1)throw Error("he");if(W.negativePercentSignExpected_&&W.multiplier_!=1E3)throw Error("ie");W.multiplier_=1E3;W.negativePercentSignExpected_=!1;T+=tc(W).PERMILL;break;default:T+=Z}}return T},Nv={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},g99=function(W,O){W=W.compactStyle_==1?Dc.COMPACT_DECIMAL_SHORT_PATTERN:Dc.COMPACT_DECIMAL_LONG_PATTERN;W==null&&(W=Dc.COMPACT_DECIMAL_SHORT_PATTERN);if(O<3)return Nv;O=Math.min(14,O);var b=W[Mv(1,O)];for(--O;!b&&O>=3;)b=W[Mv(1,O)],O--;if(!b)return Nv;b=b.other;var T=W="",L=b.indexOf(";");L>=0&&(b=b.substring(0,L),L=b.substring(L+1))&&(T=/([^0]*)(0+)(.*)/.exec(L),W=T[1],T=T[3]);return b&&b!="0"?(b=/([^0]*)(0+)(.*)/.exec(b))?{divisorBase:O+
1-(b[2].length-1),negative_prefix:W,negative_suffix:T,prefix:b[1],suffix:b[3]}:Nv:Nv},o9q=function(W){if(!isFinite(W))return W>0?W:0;
for(var O=0;(W/=10)>=1;)O++;return O},Mv=function(W,O){if(!W||!isFinite(W)||O==0)return W;
W=String(W).split("e");return parseFloat(W[0]+"e"+(parseInt(W[1]||0,10)+O))},DX$=function(W,O){return W&&isFinite(W)?Mv(Math.round(Mv(W,O)),-O):W},Bmq=function(W,O,b){if(!W)return W;
O=O-o9q(W)-1;return O<-b?DX$(W,-b):DX$(W,O)};var xX7=function(W){return W%10==1&&W%100!=11?"one":W%10==2&&W%100!=12?"two":W%10==3&&W%100!=13?"few":"other"},zg$=xX7;
zg$=xX7;var Cvf;Cvf=function(W,O){var b=W|0;if(void 0===O){O=Math;var T=O.min,L=W+"",h=L.indexOf(".");O=T.call(O,h===-1?0:L.length-h-1,3)}T=Math.pow(10,O);W={v:O,f:(W*T|0)%T};return b==1&&W.v==0?"one":"other"};
_.$9=Cvf;_.$9=Cvf;var qrv,n9v,f5f,He5,tKL;_.Gc7=function(W){this.JSC$9362_pattern_=W;this.parsedPattern_=this.literals_=this.initialLiterals_=null;W=egS;var O=Dc;if(qrv!==W||n9v!==O)qrv=W,n9v=O,f5f=new _.ne(1);this.numberFormatter_=f5f};
qrv=null;n9v=null;f5f=null;He5=RegExp("'([{}#].*?)'","g");tKL=RegExp("''","g");
_.Gc7.prototype.format=function(W){if(this.JSC$9362_pattern_){this.initialLiterals_=[];var O=$XS(this,this.JSC$9362_pattern_);this.parsedPattern_=VK1(this,O);this.JSC$9362_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ov(this.initialLiterals_),O=[],NmH(this,this.parsedPattern_,W,!1,O),W=O.join("");this.literals_.length>0;)W=W.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else W="";return W};
var NmH=function(W,O,b,T,L){for(var h=0;h<O.length;h++)switch(O[h].type){case 4:L.push(O[h].value);break;case 3:var Z=O[h].value;var a=W,m=L,w=b[Z];w===void 0?m.push("Undefined parameter - "+Z):(a.literals_.push(w),m.push(a.buildPlaceholder_(a.literals_)));break;case 2:Z=O[h].value;a=W;m=b;w=T;var A=L,X=Z.argumentIndex;m[X]===void 0?A.push("Undefined parameter - "+X):(X=Z[m[X]],X===void 0&&(X=Z.other),NmH(a,X,m,w,A));break;case 0:Z=O[h].value;MKq(W,Z,b,_.$9,T,L);break;case 1:Z=O[h].value,MKq(W,Z,
b,zg$,T,L)}},MKq=function(W,O,b,T,L,h){var Z=O.argumentIndex,a=O.argumentOffset,m=+b[Z];
isNaN(m)?h.push("Undefined or invalid parameter - "+Z):(a=m-a,Z=O[b[Z]],Z===void 0&&(T=T(Math.abs(a)),Z=O[T],Z===void 0&&(Z=O.other)),O=[],NmH(W,Z,b,L,O),b=O.join(""),L?h.push(b):(W=W.numberFormatter_.format(a),h.push(b.replace(/#/g,W))))},$XS=function(W,O){var b=W.initialLiterals_,T=W.buildPlaceholder_.bind(W);
O=O.replace(tKL,function(){b.push("'");return T(b)});
return O=O.replace(He5,function(L,h){b.push(h);return T(b)})},uW1=function(W){var O=0,b=[],T=[],L=/[{}]/g;
L.lastIndex=0;for(var h;h=L.exec(W);){var Z=h.index;h[0]=="}"?(b.pop(),b.length==0&&(h={type:1},h.value=W.substring(O,Z),T.push(h),O=Z+1)):(b.length==0&&(O=W.substring(O,Z),O!=""&&T.push({type:0,value:O}),O=Z+1),b.push("{"))}W=W.substring(O);W!=""&&T.push({type:0,value:W});return T},JH1=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,cHq=/^\s*(\w+)\s*,\s*selectordinal\s*,/,F_5=/^\s*(\w+)\s*,\s*select\s*,/,VK1=function(W,O){var b=[];
O=uW1(O);for(var T=0;T<O.length;T++){var L={};if(0==O[T].type)L.type=4,L.value=O[T].value;else if(1==O[T].type){var h=O[T].value;switch(JH1.test(h)?0:cHq.test(h)?1:F_5.test(h)?2:/^\s*\w+\s*/.test(h)?3:5){case 2:L.type=2;L.value=yH1(W,O[T].value);break;case 0:L.type=0;L.value=Wmn(W,O[T].value);break;case 1:L.type=1;L.value=O_1(W,O[T].value);break;case 3:L.type=3,L.value=O[T].value}}b.push(L)}return b},yH1=function(W,O){var b="";
O=O.replace(F_5,function(a,m){b=m;return""});
var T={};T.argumentIndex=b;O=uW1(O);for(var L=0;L<O.length;){var h=O[L].value;L++;var Z=void 0;1==O[L].type&&(Z=VK1(W,O[L].value));T[h.replace(/\s/g,"")]=Z;L++}return T},Wmn=function(W,O){var b="",T=0;
O=O.replace(JH1,function(m,w,A){b=w;A&&(T=parseInt(A,10));return""});
var L={};L.argumentIndex=b;L.argumentOffset=T;O=uW1(O);for(var h=0;h<O.length;){var Z=O[h].value;h++;var a=void 0;1==O[h].type&&(a=VK1(W,O[h].value));L[Z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=a;h++}return L},O_1=function(W,O){var b="";
O=O.replace(cHq,function(a,m){b=m;return""});
var T={};T.argumentIndex=b;T.argumentOffset=0;O=uW1(O);for(var L=0;L<O.length;){var h=O[L].value;L++;var Z=void 0;1==O[L].type&&(Z=VK1(W,O[L].value));T[h.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=Z;L++}return T};
_.Gc7.prototype.buildPlaceholder_=function(W){return"\ufddf_"+(W.length-1).toString(10)+"_"};var i_w;
i_w={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 WrO=function(){this.rdtfSymbols_=b_7||i_w;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
WrO.prototype.format=function(W,O){a:{O=jun(this,O);switch(this.style_){case 2:if(O.NARROW!=void 0){O=O.NARROW;break a}case 1:if(O.SHORT!=void 0){O=O.SHORT;break a}default:O=O.LONG;break a}O=void 0}if(!this.alwaysNumeric_&&O&&O.R&&O.R[""+W])W=O.R[""+W];else if(O){var b=Math.abs(W);W=(new _.Gc7("{N,plural,"+(W>0||W==0&&1/W==Infinity?O.F:O.P)+"}")).format({N:b})}else W="";return W};
var jun=function(W,O){switch(O){default:case 0:return W.rdtfSymbols_.YEAR;case 1:return W.rdtfSymbols_.QUARTER;case 2:return W.rdtfSymbols_.MONTH;case 3:return W.rdtfSymbols_.WEEK;case 4:return W.rdtfSymbols_.DAY;case 5:return W.rdtfSymbols_.HOUR;case 6:return W.rdtfSymbols_.MINUTE;case 7:return W.rdtfSymbols_.SECOND}};var TE$=function(W,O,b,T,L,h,Z,a){this.x0=W;this.y0=O;this.x1=b;this.y1=T;this.x2=L;this.y2=h;this.x3=Z;this.y3=a};
TE$.prototype.clone=function(){return new TE$(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
TE$.prototype.equals=function(W){return this.x0==W.x0&&this.y0==W.y0&&this.x1==W.x1&&this.y1==W.y1&&this.x2==W.x2&&this.y2==W.y2&&this.x3==W.x3&&this.y3==W.y3};
var LmL=function(W,O){if(O==0)return W.x0;if(O==1)return W.x3;var b=AN(W.x0,W.x1,O),T=AN(W.x1,W.x2,O);W=AN(W.x2,W.x3,O);b=AN(b,T,O);T=AN(T,W,O);return AN(b,T,O)},ddn=function(W,O){var b=(O-W.x0)/(W.x3-W.x0);
if(b<=0)return 0;if(b>=1)return 1;for(var T=0,L=1,h=0,Z=0;Z<8;Z++){h=LmL(W,b);var a=(LmL(W,b+1E-6)-h)/1E-6;if(Math.abs(h-O)<1E-6)return b;if(Math.abs(a)<1E-6)break;else h<O?T=b:L=b,b-=(h-O)/a}for(Z=0;Math.abs(h-O)>1E-6&&Z<8;Z++)h<O?(T=b,b=(b+L)/2):(L=b,b=(b+T)/2),h=LmL(W,b);return b};var uK=function(){_.ER.call(this);this.JSC$9383_name_="closure_frame"+h3q++;this.iframesForDisposal_=[];SPL[this.JSC$9383_name_]=this},Jc;
_.Wk(uK,_.ER);var SPL={},h3q=0,Z_7=function(W,O){var b=IG(W);_.g35(O,function(T,L){Array.isArray(T)||(T=[T]);_.$X(T,function(h){h=b.JSC$7332_createDom("INPUT",{type:"hidden",name:L,value:h});W.appendChild(h)})})};
_.d=uK.prototype;_.d.JSC$9385_form_=null;_.d.JSC$9385_iframe_=null;_.d.iframeName_=null;_.d.nextIframeId_=0;_.d.JSC$9385_active_=!1;_.d.complete_=!1;_.d.success_=!1;_.d.lastContent_=null;_.d.JSC$9385_lastErrorCode_=0;_.d.iframeDisposalTimer_=null;
_.d.send=function(W,O,b,T){if(this.JSC$9385_active_)throw Error("oe");W=new _.Np(W);O=O?O.toUpperCase():"GET";b&&_.O$(W);Jc||(Jc=_.em("FORM"),Jc.acceptCharset="utf-8",b=Jc.style,b.position="absolute",b.visibility="hidden",b.top=b.left="-10px",b.width=b.height="10px",b.overflow="hidden",document.body.appendChild(Jc));this.JSC$9385_form_=Jc;O=="GET"&&Z_7(this.JSC$9385_form_,W.JSC$8032_queryData_);T&&Z_7(this.JSC$9385_form_,T);b=W.toString();b=Jth(b);T=this.JSC$9385_form_;b=_.Kz(mj(b));b!==void 0&&(T.action=
b);this.JSC$9385_form_.method=O;Irw(this);arf(this)};
_.d.abort=function(W){if(this.JSC$9385_active_){var O=cq(this);if(O)if(aK(O))O.removeAllListeners(void 0);else if(O=mH(O)){var b=0,T;for(T in O.listeners)for(var L=O.listeners[T].concat(),h=0;h<L.length;++h)eD(L[h])&&++b}this.success_=this.JSC$9385_active_=this.complete_=!1;this.JSC$9385_lastErrorCode_=W||7;this.dispatchEvent("abort");mdv(this)}};
_.d.disposeInternal=function(){this.JSC$9385_active_&&this.abort();uK.superClass_.disposeInternal.call(this);this.JSC$9385_iframe_&&YPL(this);arf(this);this.JSC$9385_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9385_form_=null;this.JSC$9385_lastErrorCode_=0;delete SPL[this.JSC$9383_name_]};
_.d.isComplete=function(){return this.complete_};
_.d.isSuccess=function(){return this.success_};
_.d.isActive=function(){return this.JSC$9385_active_};
_.d.getResponseText=function(){return this.lastContent_};
_.d.getLastError=function(){return _.TC1(this.JSC$9385_lastErrorCode_)};
var Irw=function(W){W.JSC$9385_active_=!0;W.complete_=!1;W.JSC$9385_lastErrorCode_=0;W.iframeName_=W.JSC$9383_name_+"_"+(W.nextIframeId_++).toString(36);W.JSC$9385_iframe_=IG(W.JSC$9385_form_).JSC$7332_createDom("IFRAME",{name:W.iframeName_,id:W.iframeName_});var O=W.JSC$9385_iframe_.style;O.visibility="hidden";O.width=O.height="10px";O.display="none";_.Lf?O.marginTop=O.marginLeft="-10px":(O.position="absolute",O.top=O.left="-10px");IG(W.JSC$9385_form_).JSC$7330_document_.body.appendChild(W.JSC$9385_iframe_);
O=W.iframeName_+"_inner";var b=JXn(W.JSC$9385_iframe_);if(document.baseURI){var T=hI(O);T='<head><base href="'+hI(document.baseURI)+'"></head><body><iframe id="'+T+'" name="'+T+'"></iframe>';T=oQ(T)}else T=hI(O),T=oQ('<body><iframe id="'+T+'" name="'+T+'"></iframe>');b.write(Q0(T));_.Rx(b.getElementById(O),"load",W.onIframeLoaded_,!1,W);T=UV("TEXTAREA",W.JSC$9385_form_);for(var L=0,h=T.length;L<h;L++){var Z=T[L].value;iH9(T[L])!=Z&&(_.oB(T[L],Z),T[L].value=Z)}T=b.importNode(W.JSC$9385_form_,!0);T.target=
O;T.action=W.JSC$9385_form_.action;b.body.appendChild(T);L=UV("SELECT",W.JSC$9385_form_);h=UV("SELECT",T);Z=0;for(var a=L.length;Z<a;Z++)for(var m=UV("OPTION",L[Z]),w=UV("OPTION",h[Z]),A=0,X=m.length;A<X;A++)w[A].selected=m[A].selected;L=UV("INPUT",W.JSC$9385_form_);h=UV("INPUT",T);Z=0;for(a=L.length;Z<a;Z++)if(L[Z].type=="file"&&L[Z].value!=h[Z].value){W.JSC$9385_form_.target=O;T=W.JSC$9385_form_;break}try{W.errorHandled_=!1,T.submit(),b.close(),_.TR&&setTimeout(W.testForFirefoxSilentError_.bind(W),
250)}catch(l){_.YH(b.getElementById(O),"load",W.onIframeLoaded_,!1,W),b.close(),Fe(W,2)}};
uK.prototype.onIframeLoaded_=function(){_.YH(cq(this),"load",this.onIframeLoaded_,!1,this);try{var W=this.JSC$9385_iframe_?JXn(cq(this)):null;this.complete_=!0;this.JSC$9385_active_=!1;try{var O=W.body;this.lastContent_=O.textContent||O.innerText}catch(L){var b=1}var T;b||typeof this.errorChecker_!="function"||(T=this.errorChecker_(W))&&(b=4);b?Fe(this,b):(this.success_=!0,this.JSC$9385_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),mdv(this))}catch(L){Fe(this,1)}};
var Fe=function(W,O){W.errorHandled_||(W.success_=!1,W.JSC$9385_active_=!1,W.complete_=!0,W.JSC$9385_lastErrorCode_=O,W.dispatchEvent("complete"),W.dispatchEvent("error"),mdv(W),W.errorHandled_=!0)},mdv=function(W){YPL(W);
arf(W);W.JSC$9385_form_=null;W.dispatchEvent("ready")},YPL=function(W){var O=W.JSC$9385_iframe_;
O&&(O.onreadystatechange=null,O.onload=null,O.onerror=null,W.iframesForDisposal_.push(O));W.iframeDisposalTimer_&&(clearTimeout(W.iframeDisposalTimer_),W.iframeDisposalTimer_=null);_.TR?W.iframeDisposalTimer_=setTimeout(W.disposeIframes_.bind(W),2E3):W.disposeIframes_();W.JSC$9385_iframe_=null;W.iframeName_=null};
uK.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var W=this.iframesForDisposal_.pop();_.Xu(W)}};
var arf=function(W){W.JSC$9385_form_&&W.JSC$9385_form_==Jc&&_.RB(W.JSC$9385_form_)},cq=function(W){return W.JSC$9385_iframe_?JXn(W.JSC$9385_iframe_).getElementById(W.iframeName_+"_inner"):null};
uK.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9385_active_){var W=this.JSC$9385_iframe_?JXn(cq(this)):null;W&&!oG(W,"documentUri")?(_.YH(cq(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Fe(this,3):Fe(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.yF=function(W){return W=="\r"||W=="\n"||W==" "||W=="\t"};var E1q;_.WL=function(W){this.errorMessage_=null;this.result_=[];this.JSC$9387_buffer_="";this.stack_=[];this.JSC$9387_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!W||!W.deliverMessageAsRawString)};
E1q={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.WL.prototype.isInputValid=function(){return this.streamState_!=3};
_.WL.prototype.done=function(){return this.streamState_===2};
var O_=function(W,O,b){W.streamState_=3;W.errorMessage_="The stream is broken @"+W.JSC$9387_pos_+"/"+b+". With input:\n"+O;throw Error(W.errorMessage_);};
_.WL.prototype.acceptsBinaryInput=function(){return!1};
_.WL.prototype.parse=function(W){function O(){for(;l<W.length;)if(_.yF(W[l]))l++,h.JSC$9387_pos_++;else break;return l<w}
function b(){for(var K;;){K=W[l++];if(!K)break;h.JSC$9387_pos_++;switch(h.state_){case m.INIT:K==="{"?h.state_=m.OBJECT_OPEN:K==="["?h.state_=m.ARRAY_OPEN:_.yF(K)||O_(h,W,l);continue;case m.KEY_START:case m.OBJECT_OPEN:if(_.yF(K))continue;if(h.state_===m.KEY_START)Z.push(m.KEY_END);else if(K==="}"){L("{}");h.state_=T();continue}else Z.push(m.OBJECT_END);K==='"'?h.state_=m.STRING:O_(h,W,l);continue;case m.KEY_END:case m.OBJECT_END:if(_.yF(K))continue;K===":"?(h.state_===m.OBJECT_END&&(Z.push(m.OBJECT_END),
h.depth_++),h.state_=m.VALUE):K==="}"?(h.depth_--,L(),h.state_=T()):K===","?(h.state_===m.OBJECT_END&&Z.push(m.OBJECT_END),h.state_=m.KEY_START):O_(h,W,l);continue;case m.ARRAY_OPEN:case m.VALUE:if(_.yF(K))continue;if(h.state_===m.ARRAY_OPEN)if(h.depth_++,h.state_=m.VALUE,K==="]"){h.depth_--;if(h.depth_===0){h.state_=m.ARRAY_END;return}L("[]");h.state_=T();continue}else Z.push(m.ARRAY_END);K==='"'?h.state_=m.STRING:K==="{"?h.state_=m.OBJECT_OPEN:K==="["?h.state_=m.ARRAY_OPEN:K==="t"?h.state_=m.TRUE1:
K==="f"?h.state_=m.FALSE1:K==="n"?h.state_=m.NULL1:K!=="-"&&("0123456789".indexOf(K)!==-1?h.state_=m.NUM_DIGIT:O_(h,W,l));continue;case m.ARRAY_END:if(K===",")Z.push(m.ARRAY_END),h.state_=m.VALUE,h.depth_===1&&(X=l);else if(K==="]"){h.depth_--;if(h.depth_===0)return;L();h.state_=T()}else if(_.yF(K))continue;else O_(h,W,l);continue;case m.STRING:var k=l;a:for(;;){for(;h.unicodeCount_>0;)if(K=W[l++],h.unicodeCount_===4?h.unicodeCount_=0:h.unicodeCount_++,!K)break a;if(K==='"'&&!h.slashed_){h.state_=
T();break}if(K==="\\"&&!h.slashed_&&(h.slashed_=!0,K=W[l++],!K))break;if(h.slashed_)if(h.slashed_=!1,K==="u"&&(h.unicodeCount_=1),K=W[l++])continue;else break;a.lastIndex=l;K=a.exec(W);if(!K){l=W.length+1;break}l=K.index+1;K=W[K.index];if(!K)break}h.JSC$9387_pos_+=l-k;continue;case m.TRUE1:if(!K)continue;K==="r"?h.state_=m.TRUE2:O_(h,W,l);continue;case m.TRUE2:if(!K)continue;K==="u"?h.state_=m.TRUE3:O_(h,W,l);continue;case m.TRUE3:if(!K)continue;K==="e"?h.state_=T():O_(h,W,l);continue;case m.FALSE1:if(!K)continue;
K==="a"?h.state_=m.FALSE2:O_(h,W,l);continue;case m.FALSE2:if(!K)continue;K==="l"?h.state_=m.FALSE3:O_(h,W,l);continue;case m.FALSE3:if(!K)continue;K==="s"?h.state_=m.FALSE4:O_(h,W,l);continue;case m.FALSE4:if(!K)continue;K==="e"?h.state_=T():O_(h,W,l);continue;case m.NULL1:if(!K)continue;K==="u"?h.state_=m.NULL2:O_(h,W,l);continue;case m.NULL2:if(!K)continue;K==="l"?h.state_=m.NULL3:O_(h,W,l);continue;case m.NULL3:if(!K)continue;K==="l"?h.state_=T():O_(h,W,l);continue;case m.NUM_DECIMAL_POINT:K===
"."?h.state_=m.NUM_DIGIT:O_(h,W,l);continue;case m.NUM_DIGIT:if("0123456789.eE+-".indexOf(K)!==-1)continue;else l--,h.JSC$9387_pos_--,h.state_=T();continue;default:O_(h,W,l)}}}
function T(){var K=Z.pop();return K!=null?K:m.VALUE}
function L(K){h.depth_>1||(K||(K=X===-1?h.JSC$9387_buffer_+W.substring(A,l):W.substring(X,l)),h.deliverMessageAsRawString_?h.result_.push(K):h.result_.push(JSON.parse(K)),X=l)}
for(var h=this,Z=h.stack_,a=h.stringInputPattern_,m=E1q,w=W.length,A=0,X=-1,l=0;l<w;)switch(h.streamState_){case 3:return O_(h,W,l),null;case 2:return O()&&O_(h,W,l),null;case 0:if(O()){var p=W[l++];h.JSC$9387_pos_++;if(p==="["){h.streamState_=1;A=l;h.state_=m.ARRAY_OPEN;continue}else O_(h,W,l)}return null;case 1:return b(),h.depth_===0&&h.state_==m.ARRAY_END?(h.streamState_=2,h.JSC$9387_buffer_=W.substring(l)):h.JSC$9387_buffer_=X===-1?h.JSC$9387_buffer_+W.substring(A):W.substring(X),h.result_.length>
0?(p=h.result_,h.result_=[],p):null}return null};_.Wk(_.TD,Ku);Lq.prototype.getValue=function(){return this.JSC$9395_value_};
Lq.prototype.clone=function(){return new Lq(this.JSC$9395_key_,this.JSC$9395_value_)};var is=function(W){this.nodes_=[];if(W)a:{if(W instanceof is){var O=W.getKeys();W=W.getValues();if(this.getCount()<=0){for(var b=this.nodes_,T=0;T<O.length;T++)b.push(new Lq(O[T],W[T]));break a}}else O=_.PQ.getKeys(W),W=_.PQ.getValues(W);for(b=0;b<O.length;b++)this.insert(O[b],W[b])}};
_.d=is.prototype;_.d.insert=function(W,O){var b=this.nodes_;b.push(new Lq(W,O));W=b.length-1;O=this.nodes_;for(b=O[W];W>0;){var T=W-1>>1;if(O[T].JSC$9395_key_>b.JSC$9395_key_)O[W]=O[T],W=T;else break}O[W]=b};
_.d.remove=function(){var W=this.nodes_,O=W.length,b=W[0];if(!(O<=0)){if(O==1)W.length=0;else{W[0]=W.pop();W=0;O=this.nodes_;for(var T=O.length,L=O[W];W<T>>1;){var h=W*2+1,Z=W*2+2;h=Z<T&&O[Z].JSC$9395_key_<O[h].JSC$9395_key_?Z:h;if(O[h].JSC$9395_key_>L.JSC$9395_key_)break;O[W]=O[h];W=h}O[W]=L}return b.getValue()}};
_.d.peek=function(){var W=this.nodes_;if(W.length!=0)return W[0].getValue()};
_.d.getValues=function(){for(var W=this.nodes_,O=[],b=W.length,T=0;T<b;T++)O.push(W[T].getValue());return O};
_.d.getKeys=function(){for(var W=this.nodes_,O=[],b=W.length,T=0;T<b;T++)O.push(W[T].JSC$9395_key_);return O};
_.d.containsValue=function(W){return this.nodes_.some(function(O){return O.getValue()==W})};
_.d.containsKey=function(W){return this.nodes_.some(function(O){return O.JSC$9395_key_==W})};
_.d.clone=function(){return new is(this)};
_.d.getCount=function(){return this.nodes_.length};
_.d.isEmpty=function(){return this.nodes_.length===0};
_.d.clear=function(){this.nodes_.length=0};_.bs=function(W,O){this.JSC$9401_map_={};this.JSC$9401_keys_=[];this.version_=this.size=0;var b=arguments.length;if(b>1){if(b%2)throw Error("oa");for(var T=0;T<b;T+=2)this.set(arguments[T],arguments[T+1])}else W&&this.addAll(W)};
_.d=_.bs.prototype;_.d.getCount=function(){return this.size};
_.d.getValues=function(){jd(this);for(var W=[],O=0;O<this.JSC$9401_keys_.length;O++)W.push(this.JSC$9401_map_[this.JSC$9401_keys_[O]]);return W};
_.d.getKeys=function(){jd(this);return this.JSC$9401_keys_.concat()};
_.d.containsKey=function(W){return this.has(W)};
_.d.has=function(W){return Ti(this.JSC$9401_map_,W)};
_.d.containsValue=function(W){for(var O=0;O<this.JSC$9401_keys_.length;O++){var b=this.JSC$9401_keys_[O];if(Ti(this.JSC$9401_map_,b)&&this.JSC$9401_map_[b]==W)return!0}return!1};
_.d.equals=function(W,O){if(this===W)return!0;if(this.size!=W.getCount())return!1;O=O||wh5;jd(this);for(var b,T=0;b=this.JSC$9401_keys_[T];T++)if(!O(this.get(b),W.get(b)))return!1;return!0};
var wh5=function(W,O){return W===O};
_.bs.prototype.isEmpty=function(){return this.size==0};
_.bs.prototype.clear=function(){this.JSC$9401_map_={};this.version_=this.size=this.JSC$9401_keys_.length=0};
_.bs.prototype.remove=function(W){return this.delete(W)};
_.bs.prototype.delete=function(W){return Ti(this.JSC$9401_map_,W)?(delete this.JSC$9401_map_[W],--this.size,this.version_++,this.JSC$9401_keys_.length>2*this.size&&jd(this),!0):!1};
var jd=function(W){if(W.size!=W.JSC$9401_keys_.length){for(var O=0,b=0;O<W.JSC$9401_keys_.length;){var T=W.JSC$9401_keys_[O];Ti(W.JSC$9401_map_,T)&&(W.JSC$9401_keys_[b++]=T);O++}W.JSC$9401_keys_.length=b}if(W.size!=W.JSC$9401_keys_.length){O={};for(T=b=0;b<W.JSC$9401_keys_.length;){var L=W.JSC$9401_keys_[b];Ti(O,L)||(W.JSC$9401_keys_[T++]=L,O[L]=1);b++}W.JSC$9401_keys_.length=T}};
_.d=_.bs.prototype;_.d.get=function(W,O){return Ti(this.JSC$9401_map_,W)?this.JSC$9401_map_[W]:O};
_.d.set=function(W,O){Ti(this.JSC$9401_map_,W)||(this.size+=1,this.JSC$9401_keys_.push(W),this.version_++);this.JSC$9401_map_[W]=O};
_.d.addAll=function(W){if(W instanceof _.bs)for(var O=W.getKeys(),b=0;b<O.length;b++)this.set(O[b],W.get(O[b]));else for(O in W)this.set(O,W[O])};
_.d.forEach=function(W,O){for(var b=this.getKeys(),T=0;T<b.length;T++){var L=b[T],h=this.get(L);W.call(O,h,L,this)}};
_.d.clone=function(){return new _.bs(this)};
_.d.transpose=function(){for(var W=new _.bs,O=0;O<this.JSC$9401_keys_.length;O++){var b=this.JSC$9401_keys_[O];W.set(this.JSC$9401_map_[b],b)}return W};
_.d.keys=function(){return tJn(this.__iterator__(!0)).toEs6()};
_.d.values=function(){return tJn(this.__iterator__(!1)).toEs6()};
_.d.entries=function(){var W=this;return bVz(this.keys(),function(O){return[O,W.get(O)]})};
_.d.__iterator__=function(W){jd(this);var O=0,b=this.version_,T=this,L=new WT;L.next=function(){if(b!=T.version_)throw Error("pe");if(O>=T.JSC$9401_keys_.length)return OY;var h=T.JSC$9401_keys_[O++];return iZ(W?h:T.JSC$9401_map_[h])};
return L};
var Ti=function(W,O){return Object.prototype.hasOwnProperty.call(W,O)};var Xhn=function(){this.JSC$9404_map_=new _.bs;this.JSC$9404_head_=new AoH("");this.JSC$9404_head_.next=this.JSC$9404_head_.prev=this.JSC$9404_head_},Ud7=function(W,O){if(O=W.JSC$9404_map_.get(O))O.remove(),W.insert_(O);
return O};
_.d=Xhn.prototype;_.d.get=function(W,O){return(W=Ud7(this,W))?W.value:O};
_.d.set=function(W,O){var b=Ud7(this,W);b?b.value=O:(b=new AoH(W,O),this.JSC$9404_map_.set(W,b),this.insert_(b))};
_.d.peek=function(){return this.JSC$9404_head_.next.value};
_.d.shift=function(){return lr$(this,this.JSC$9404_head_.next)};
_.d.pop=function(){return lr$(this,this.JSC$9404_head_.prev)};
_.d.remove=function(W){return(W=this.JSC$9404_map_.get(W))?(this.removeNode(W),!0):!1};
_.d.removeNode=function(W){W.remove();this.JSC$9404_map_.remove(W.key)};
_.d.getCount=function(){return this.JSC$9404_map_.getCount()};
_.d.isEmpty=function(){return this.JSC$9404_map_.isEmpty()};
_.d.getKeys=function(){return this.map(function(W,O){return O})};
_.d.getValues=function(){return this.map(function(W){return W})};
_.d.contains=function(W){return this.some(function(O){return O==W})};
_.d.containsKey=function(W){return this.JSC$9404_map_.containsKey(W)};
_.d.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9404_head_.prev)};
_.d.forEach=function(W,O){for(var b=this.JSC$9404_head_.next;b!=this.JSC$9404_head_;b=b.next)W.call(O,b.value,b.key,this)};
_.d.map=function(W,O){for(var b=[],T=this.JSC$9404_head_.next;T!=this.JSC$9404_head_;T=T.next)b.push(W.call(O,T.value,T.key,this));return b};
_.d.some=function(W,O){for(var b=this.JSC$9404_head_.next;b!=this.JSC$9404_head_;b=b.next)if(W.call(O,b.value,b.key,this))return!0;return!1};
_.d.every=function(W,O){for(var b=this.JSC$9404_head_.next;b!=this.JSC$9404_head_;b=b.next)if(!W.call(O,b.value,b.key,this))return!1;return!0};
_.d.insert_=function(W){W.next=this.JSC$9404_head_.next;W.prev=this.JSC$9404_head_;this.JSC$9404_head_.next=W;for(W.next.prev=W;this.getCount()>100;)this.removeNode(this.JSC$9404_head_.prev)};
var lr$=function(W,O){W.JSC$9404_head_!=O&&W.removeNode(O);return O.value},AoH=function(W,O){this.key=W;
this.value=O};
AoH.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var e31=function(){is.apply(this,arguments)};
_.R(e31,is);e31.prototype.enqueue=function(W,O){this.insert(W,O)};var P8v=function(){var W=Error();W.name="SecurityError";throw W;},dME=function(){return{get opener(){return null},
get closed(){return!0},get location(){P8v()},get document(){P8v()},postMessage:function(){},
close:function(){},
focus:function(){}}};var oqi={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 sdX={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 phH={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(sdX).join("|");var R3w=function(){function W(a){a.substr(-1)!==";"&&(a+=";");return Z(a)}
for(var O=Object.keys(phH).sort(kNh),b=Object.keys(sdX).sort(kNh),T=0,L=0;T<b.length;T++)O[L]===b[T]?(b[T]+=";?",L++):b[T]+=";";var h=new RegExp("&(?:"+b.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),Z=BYP();return function(a){return String(a).replace(h,W)}}();/*

 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 KmS={};var v1n=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"),g1S=/[\\&]/,o1q=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Quq=RegExp('[&<>"]',"g"),kFv=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),su7=function(W){return W.charCodeAt(0)===92?W.charAt(1):R3w(W)},BEw=function(W){return g1S.test(W)?W.replace(o1q,su7):W},ro1=function(W){try{var O,b="";
if(typeof L!=="string"){var T=L;var L=";/?:@&=+$,-_.!~*'()#"}typeof T==="undefined"&&(T=!0);var h,Z=KmS[L];if(Z)var a=Z;else{Z=KmS[L]=[];for(h=0;h<128;h++){var m=String.fromCharCode(h);/^[0-9a-z]$/i.test(m)?Z.push(m):Z.push("%"+("0"+h.toString(16).toUpperCase()).slice(-2))}for(h=0;h<L.length;h++)Z[L.charCodeAt(h)]=L[h];a=Z}var w=0;for(O=W.length;w<O;w++){var A=W.charCodeAt(w);if(T&&A===37&&w+2<O&&/^[0-9a-f]{2}$/i.test(W.slice(w+1,w+3)))b+=W.slice(w,w+3),w+=2;else if(A<128)b+=a[A];else if(A>=55296&&
A<=57343){if(A>=55296&&A<=56319&&w+1<O){var X=W.charCodeAt(w+1);if(X>=56320&&X<=57343){b+=encodeURIComponent(W[w]+W[w+1]);w++;continue}}b+="%EF%BF%BD"}else b+=encodeURIComponent(W[w])}return b}catch(l){return W}},Ddn=function(W){switch(W){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return W}},Lr=function(W,O){return Quq.test(W)?O?W.replace(kFv,Ddn):W.replace(Quq,Ddn):W};/*

 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 dc;if(String.fromCodePoint)dc=function(W){try{return String.fromCodePoint(W)}catch(O){if(O instanceof RangeError)return String.fromCharCode(65533);throw O;}};
else{var xdU=String.fromCharCode,z3H=Math.floor;dc=function(){var W=[],O=-1,b=arguments.length;if(!b)return"";for(var T="";++O<b;){var L=Number(arguments[O]);if(!isFinite(L)||L<0||L>1114111||z3H(L)!==L)return String.fromCharCode(65533);if(L<=65535)W.push(L);else{L-=65536;var h=(L>>10)+55296;L=L%1024+56320;W.push(h,L)}if(O+1===b||W.length>16384)T+=xdU.apply(null,W),W.length=0}return T}};var C8w=function(W){this.root=this.current=W;this.entering=!0};
C8w.prototype.next=function(){var W=this.current,O=this.entering;if(W===null)return null;a:switch(W._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var b=!0;break a;default:b=!1}O&&b?W._firstChild?(this.current=W._firstChild,this.entering=!0):this.entering=!1:W===this.root?this.current=null:W._next===null?(this.current=
W._parent,this.entering=!1):(this.current=W._next,this.entering=!0);return{entering:O,node:W}};
var Zu=function(W,O){this._type=W;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=O;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};
Zu.prototype.appendChild=function(W){hu(W);W._parent=this;this._lastChild?(this._lastChild._next=W,W._prev=this._lastChild):this._firstChild=W;this._lastChild=W};
var hu=function(W){W._prev?W._prev._next=W._next:W._parent&&(W._parent._firstChild=W._next);W._next?W._next._prev=W._prev:W._parent&&(W._parent._lastChild=W._prev);W._parent=null;W._next=null;W._prev=null},qPz=function(W,O){hu(O);
O._next=W._next;O._next&&(O._next._prev=O);O._prev=W;W._next=O;O._parent=W._parent;O._next||(O._parent._lastChild=O)};
Zu.prototype.insertBefore=function(W){hu(W);W._prev=this._prev;W._prev&&(W._prev._next=W);W._next=this;this._prev=W;W._parent=this._parent;W._prev||(W._parent._firstChild=W)};
_.Jq.Object.defineProperties(Zu.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(W){this._literal=W}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(W){this._destination=W}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(W){this._title=W}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(W){this._info=W}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(W){this._level=W}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(W){this._listData.type=W}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(W){this._listData.tight=W}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(W){this._listData.start=W}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(W){this._onEnter=W}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(W){this._onExit=W}}});var rse=/[ \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,
Dci={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 n1N=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]/),
fr7=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),GF7=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),H_5=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),t4L=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),$d$=/`+/,V4z=/^`+/,NE1=/\.\.\./g,M4n=/--+/g,uEv=/^<([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])?)*)>/,
JoS=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,coN=/^ *(?:\n *)?/,Fmn=/^[ \t\n\x0b\x0c\x0d]/,yoH=/[ \t\n\x0b\x0c\x0d]+/g,W5S=/^\s/,O2H=/ *$/,i2U=/^ */,b29=/^ *(?:\n|$)/,ji5=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Ti$=/^[^\n`\[\]\\!<&*_'"]+/m,Sd=function(W){var O=new Zu("text");O._literal=W;return O},Zw=function(W){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=W||{}};
Zw.prototype.match=function(W){W=W.exec(this.subject.slice(this.pos));if(W===null)return null;this.pos+=W.index+W[0].length;return W[0]};
Zw.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var Iz=function(W){W.match(coN);return!0},L5n=function(W,O,b){var T=0;
var L=W.pos;if(O===39||O===34)T++,W.pos++;else for(;W.peek()===O;)T++,W.pos++;if(T===0)T=null;else{var h=L===0?"\n":W.subject.charAt(L-1);var Z=W.peek();Z=Z===-1?"\n":dc(Z);var a=W5S.test(Z);Z=n1N.test(Z);var m=W5S.test(h);var w=n1N.test(h);h=!a&&!(Z&&!m&&!w);a=!m&&!(w&&!a&&!Z);O===95?(m=h&&(!a||w),Z=a&&(!h||Z)):(m=O===39||O===34?h&&!a:h,Z=a);W.pos=L;T={numdelims:T,can_open:m,can_close:Z}}if(!T)return!1;L=T.numdelims;Z=W.pos;W.pos+=L;Z=O===39?"\u2019":O===34?"\u201c":W.subject.slice(Z,W.pos);Z=Sd(Z);
b.appendChild(Z);W.delimiters={cc:O,numdelims:L,origdelims:L,node:Z,previous:W.delimiters,next:null,can_open:T.can_open,can_close:T.can_close};W.delimiters.previous!==null&&(W.delimiters.previous.next=W.delimiters);return!0},def=function(W,O){O.previous!==null&&(O.previous.next=O.next);
O.next===null?W.delimiters=O.previous:O.next.previous=O.previous},hXv=function(W,O){var b,T,L=[],h=!1;
L[95]=O;L[42]=O;L[39]=O;L[34]=O;for(b=W.delimiters;b!==null&&b.previous!==O;)b=b.previous;for(;b!==null;){var Z=b.cc;if(b.can_close){var a=b.previous;for(T=!1;a!==null&&a!==O&&a!==L[Z];){h=(b.can_open||a.can_close)&&(a.origdelims+b.origdelims)%3===0;if(a.cc===b.cc&&a.can_open&&!h){T=!0;break}a=a.previous}var m=b;if(Z===42||Z===95)if(T){var w=b.numdelims>=2&&a.numdelims>=2?2:1;var A=a.node;var X=b.node;a.numdelims-=w;b.numdelims-=w;A._literal=A._literal.slice(0,A._literal.length-w);X._literal=X._literal.slice(0,
X._literal.length-w);var l=new Zu(w===1?"emph":"strong");for(w=A._next;w&&w!==X;){var p=w._next;hu(w);l.appendChild(w);w=p}qPz(A,l);w=a;p=b;w.next!==p&&(w.next=p,p.previous=w);a.numdelims===0&&(hu(A),def(W,a));b.numdelims===0&&(hu(X),a=b.next,def(W,b),b=a)}else b=b.next;else Z===39?(b.node._literal="\u2019",T&&(a.node._literal="\u2018"),b=b.next):Z===34&&(b.node._literal="\u201d",T&&(a.node.literal="\u201c"),b=b.next);T||h||(L[Z]=m.previous,m.can_open||def(W,m))}else b=b.next}for(;W.delimiters!==
null&&W.delimiters!==O;)def(W,W.delimiters)},SlL=function(W){W=W.match(fr7);
return W===null?null:BEw(W.substr(1,W.length-2))},Z2v=function(W){var O=W.match(GF7);
if(O===null){O=W.pos;for(var b=0,T;(T=W.peek())!==-1;)if(T===92)W.pos+=1,W.peek()!==-1&&(W.pos+=1);else if(T===40)W.pos+=1,b+=1;else if(T===41)if(b<1)break;else W.pos+=1,--b;else if(Fmn.exec(dc(T))!==null)break;else W.pos+=1;O=W.subject.substr(O,W.pos-O);return ro1(BEw(O))}return ro1(BEw(O.substr(1,O.length-2)))},IQS=function(W){W=W.match(ji5);
return W===null||W.length>1001?0:W.length},aQn=function(W,O,b,T){W.brackets!==null&&(W.brackets.bracketAfter=!0);
W.brackets={node:O,previous:W.brackets,previousDelimiter:W.delimiters,index:b,image:T,active:!0}},me5=function(W,O){var b;
return(b=W.match(Ti$))?(W.options.smart?O.appendChild(Sd(b.replace(NE1,"\u2026").replace(M4n,function(T){var L=0,h=0;T.length%3===0?h=T.length/3:T.length%2===0?L=T.length/2:T.length%3===2?(L=1,h=(T.length-2)/3):(L=2,h=(T.length-4)/3);T="";var Z;for(Z=0;Z<h;Z++)T+="\u2014";for(Z=0;Z<L;Z++)T+="\u2013";return T}))):O.appendChild(Sd(b)),!0):!1},Ylv=function(W,O,b){W.subject=O;
W.pos=0;O=W.pos;var T=IQS(W);if(T===0)return 0;var L=W.subject.substr(0,T);if(W.peek()===58)W.pos++;else return W.pos=O,0;Iz(W);T=Z2v(W);if(T===null||T.length===0)return W.pos=O,0;var h=W.pos;Iz(W);var Z=SlL(W);Z===null&&(Z="",W.pos=h);var a=!0;W.match(b29)===null&&(Z===""?a=!1:(Z="",W.pos=h,a=W.match(b29)!==null));if(!a)return W.pos=O,0;L=xcX(L);if(L==="")return W.pos=O,0;b[L]||(b[L]={destination:T,title:Z});return W.pos-O},EIv=function(W,O){var b,T=W.peek();
if(T===-1)return!1;switch(T){case 10:W.pos+=1;if((b=O._lastChild)&&b.type==="text"&&b._literal[b._literal.length-1]===" "){var L=b._literal[b._literal.length-2]===" ";b._literal=b._literal.replace(O2H,"");O.appendChild(new Zu(L?"linebreak":"softbreak"))}else O.appendChild(new Zu("softbreak"));W.match(i2U);b=!0;break;case 92:b=W.subject;W.pos+=1;W.peek()===10?(W.pos+=1,b=new Zu("linebreak"),O.appendChild(b)):H_5.test(b.charAt(W.pos))?(O.appendChild(Sd(b.charAt(W.pos))),W.pos+=1):O.appendChild(Sd("\\"));
b=!0;break;case 96:a:if(b=W.match(V4z),b===null)b=!1;else{L=W.pos;for(var h;(h=W.match($d$))!==null;)if(h===b){h=new Zu("code");h._literal=W.subject.slice(L,W.pos-b.length).trim().replace(yoH," ");O.appendChild(h);b=!0;break a}W.pos=L;O.appendChild(Sd(b));b=!0}break;case 42:case 95:b=L5n(W,T,O);break;case 39:case 34:b=W.options.smart&&L5n(W,T,O);break;case 91:b=W.pos;W.pos+=1;L=Sd("[");O.appendChild(L);aQn(W,L,b,!1);b=!0;break;case 33:b=W.pos;W.pos+=1;W.peek()===91?(W.pos+=1,L=Sd("!["),O.appendChild(L),
aQn(W,L,b+1,!0)):O.appendChild(Sd("!"));b=!0;break;case 93:var Z,a=!1,m;W.pos+=1;var w=W.pos;L=W.brackets;if(L===null)O.appendChild(Sd("]"));else if(L.active){b=L.image;var A=W.pos;W.peek()===40&&(W.pos++,Iz(W)&&(h=Z2v(W))!==null&&Iz(W)&&(Fmn.test(W.subject.charAt(W.pos-1))&&(Z=SlL(W)),1)&&Iz(W)&&W.peek()===41?(W.pos+=1,a=!0):W.pos=A);if(!a){var X=W.pos,l=IQS(W);l>2?m=W.subject.slice(X,X+l):L.bracketAfter||(m=W.subject.slice(L.index,w));l===0&&(W.pos=A);m&&(m=W.refmap[xcX(m)])&&(h=m.destination,Z=
m.title,a=!0)}if(a){w=new Zu(b?"image":"link");w._destination=h;w._title=Z||"";for(h=L.node._next;h;)Z=h._next,hu(h),w.appendChild(h),h=Z;O.appendChild(w);hXv(W,L.previousDelimiter);W.brackets=W.brackets.previous;hu(L.node);if(!b)for(L=W.brackets;L!==null;)L.image||(L.active=!1),L=L.previous}else W.brackets=W.brackets.previous,W.pos=w,O.appendChild(Sd("]"))}else O.appendChild(Sd("]")),W.brackets=W.brackets.previous;b=!0;break;case 60:(b=W.match(uEv))?(b=b.slice(1,b.length-1),L=new Zu("link"),L._destination=
ro1("mailto:"+b),L._title="",L.appendChild(Sd(b)),O.appendChild(L),b=!0):(b=W.match(JoS))?(b=b.slice(1,b.length-1),L=new Zu("link"),L._destination=ro1(b),L._title="",L.appendChild(Sd(b)),O.appendChild(L),b=!0):b=!1;b||(b=W.match(v1n),b===null?b=!1:(L=new Zu("html_inline"),L._literal=b,O.appendChild(L),b=!0));break;case 38:(b=W.match(t4L))?(O.appendChild(Sd(R3w(b))),b=!0):b=!1;break;default:b=me5(W,O)}b||(W.pos+=1,O.appendChild(Sd(dc(T))));return!0};
Zw.prototype.parseInlines=function(W){this.subject=W._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;EIv(this,W););W._string_content=null;hXv(this,null)};
Zw.prototype.parse=Zw.prototype.parseInlines;var w_L=[/./,/^<(?: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")],A1S=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],X_n=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Ueq=/^[#`~*+_=<>0-9-\|]|\|/,lQU=/[^ \t\f\v\r\n]/,eXN=/^[*+-]/,Pm5=/^(\d{1,9})([.)])/,p_1=/^#{1,6}(?:[ \t]+|$)/,RX1=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,K55=/^(?:`{3,}|~{3,})(?= *$)/,vIw=/^(?:=+|-+)[ \t]*$/,gI$=/\r\n|\n|\r/,CUT=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,qQh=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,oIf={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(W,O){for(W=O._firstChild;W;){if(z9O(W)&&W._next){O._listData.tight=!1;break}for(var b=W._firstChild;b;){if(z9O(b)&&(W._next||b._next)){O._listData.tight=!1;break}b=b._next}W=W._next}},
canContain:function(W){return W==="item"},
acceptsLines:!1},block_quote:{continue:function(W){var O=W.currentLine;if(W.indented||hC(O,W.nextNonspace)!==62)return 1;az(W);mQ(W,1,!1);dl(hC(O,W.offset))&&mQ(W,1,!0);return 0},
finalize:function(){},
canContain:function(W){return W!=="item"},
acceptsLines:!1},item:{continue:function(W,O){if(W.blank){if(O._firstChild==null)return 1;az(W)}else if(W.indent>=O._listData.markerOffset+O._listData.padding)mQ(W,O._listData.markerOffset+O._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(W){return W!=="item"&&!nq8(W)},
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(W,O){var b=W.currentLine,T=W.indent;if(O._isFenced){if((T=T<=3&&b.charAt(W.nextNonspace)===O._fenceChar&&b.slice(W.nextNonspace).match(K55))&&T[0].length>=O._fenceLength)return W.finalize(O,W.lineNumber),2;for(O=O._fenceOffset;O>0&&dl(hC(b,W.offset));)mQ(W,1,!0),O--}else if(T>=4)mQ(W,4,!0);else if(W.blank)az(W);else return 1;return 0},
finalize:function(W,O){if(O._isFenced){var b=O._string_content,T=b.indexOf("\n");W=b.slice(0,T);b=b.slice(T+1);O.info=BEw(W.trim());O._literal=b}else O._literal=O._string_content.replace(/(\n *)+$/,"\n");O._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(W,O){return!W.blank||O._htmlBlockType!==6&&O._htmlBlockType!==7?0:1},
finalize:function(W,O){O._literal=O._string_content.replace(/(\n *)+$/,"");O._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(W){return W.blank?1:0},
finalize:function(W,O){for(var b,T=!1;hC(O._string_content,0)===91&&(b=Ylv(W.inlineParser,O._string_content,W.refmap));)O._string_content=O._string_content.slice(b),T=!0;T&&!lQU.test(O._string_content)&&hu(O)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(W){return SH(W.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(W){return W=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(W,O){if(!O._rowIsDelimiter){W=O._isHeader?"th":"td";for(var b=O._parent._tableColumns,T=O._string_content,L=0,h="",Z,a=O._sourcepos[0][0];L<T.length;){switch(T[L]){case "|":Z&&(Z._string_content=h.trim(),h="",Z=null,b--,b<=0&&(L=T.length));break;default:if(!Z){Z=new Zu(W,[[a,L],[a,L]]);var m=O._parent._columnAlignment,w=O._parent._tableColumns-b;m&&w<=m.length&&w>=0&&(Z._alignment=m[w]);O.appendChild(Z)}h+=T[L];Z._sourcepos[1][1]=L}L++}Z&&(Z._string_content=h.trim());O._string_content=
""}},
canContain:function(W){return W!=="row"},
acceptsLines:!1}},Qi$=[function(W){if(W.indented||hC(W.currentLine,W.nextNonspace)!==62)return 0;az(W);mQ(W,1,!1);dl(hC(W.currentLine,W.offset))&&mQ(W,1,!0);Y2(W);W.addChild("block_quote",W.nextNonspace);return 1},
function(W){var O;if(!W.indented&&(O=W.currentLine.slice(W.nextNonspace).match(p_1))){az(W);mQ(W,O[0].length,!1);Y2(W);var b=W.addChild("heading",W.nextNonspace);b.level=O[0].trim().length;b._string_content=W.currentLine.slice(W.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");mQ(W,W.currentLine.length-W.offset);return 2}return 0},
function(W){var O;if(!W.indented&&(O=W.currentLine.slice(W.nextNonspace).match(RX1))){var b=O[0].length;Y2(W);var T=W.addChild("code_block",W.nextNonspace);T._isFenced=!0;T._fenceLength=b;T._fenceChar=O[0][0];T._fenceOffset=W.indent;az(W);mQ(W,b,!1);return 2}return 0},
function(W,O){if(!W.indented&&hC(W.currentLine,W.nextNonspace)===60){var b=W.currentLine.slice(W.nextNonspace),T;for(T=1;T<=7;T++)if(w_L[T].test(b)&&(T<7||O.type!=="paragraph"))return Y2(W),W.addChild("html_block",W.offset)._htmlBlockType=T,2}return 0},
function(W,O){var b;if(!W.indented&&O.type==="paragraph"&&(b=W.currentLine.slice(W.nextNonspace).match(vIw))){Y2(W);var T=new Zu("heading",O.sourcepos);T.level=b[0][0]==="="?1:2;T._string_content=O._string_content;qPz(O,T);hu(O);W.tip=T;mQ(W,W.currentLine.length-W.offset,!1);return 2}return 0},
function(W){return!W.indented&&X_n.test(W.currentLine.slice(W.nextNonspace))?(Y2(W),W.addChild("thematic_break",W.nextNonspace),mQ(W,W.currentLine.length-W.offset,!1),2):0},
function(W,O){var b,T;if(!(T=W.indented&&O.type!=="list")){a:{var L=O,h=W.currentLine.slice(W.nextNonspace);T={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:W.indent};if(b=h.match(eXN))T.type="bullet",T.bulletChar=b[0][0];else{if(!(b=h.match(Pm5))||L.type==="paragraph"&&b[1]!=="1"){b=null;break a}T.type="ordered";T.start=parseInt(b[1],10);T.delimiter=b[2]}var Z=hC(W.currentLine,W.nextNonspace+b[0].length);if(Z!==-1&&Z!==9&&Z!==32||L.type==="paragraph"&&!W.currentLine.slice(W.nextNonspace+
b[0].length).match(lQU))b=null;else{az(W);mQ(W,b[0].length,!0);L=W.column;h=W.offset;do mQ(W,1,!0),Z=hC(W.currentLine,W.offset);while(W.column-L<5&&dl(Z));Z=hC(W.currentLine,W.offset)===-1;var a=W.column-L;a>=5||a<1||Z?(T.padding=b[0].length+1,W.column=L,W.offset=h,dl(hC(W.currentLine,W.offset))&&mQ(W,1,!0)):T.padding=b[0].length+a;b=T}}T=!b}if(T)return 0;Y2(W);(T=W.tip.type!=="list")||(O=O._listData,T=!(O.type===b.type&&O.delimiter===b.delimiter&&O.bulletChar===b.bulletChar));T&&(O=W.addChild("list",
W.nextNonspace),O._listData=b);O=W.addChild("item",W.nextNonspace);O._listData=b;return 1},
function(W){var O;return((O=W.options.shouldParseIndentAsCodeBlock)!=null?O:1)&&W.indented&&W.tip.type!=="paragraph"&&!W.blank?(mQ(W,4,!0),Y2(W),W.addChild("code_block",W.offset),2):0},
function(W,O){var b=SH(W.currentLine),T=SH(W.lookahead);if(b!==0&&T<0&&Math.abs(b)==Math.abs(T)&&!nq8(O.type)){Y2(W);O=W.addChild("table",W.nextNonspace);O._tableRows=1;O._tableColumns=Math.abs(b);b=W.lookahead;if(qQh.test(b)){T=[];for(var L=0,h=!1,Z=0,a=void 0;L<b.length;){var m=Z>=3;switch(b[L]){case "-":Z++;break;case "|":h&&(T.push(a),a=void 0,Z=0);h=!0;break;case ":":a||m||(a="left"),!a&&m&&(a="right"),a==="left"&&m&&(a="center")}L++}b=T}else b=void 0;O._columnAlignment=b;O=W.addChild("row",
W.nextNonspace);O._isHeader=!0;mQ(W,W.currentLine.length-W.offset,!1);O._string_content=W.currentLine;return 1}return 0},
function(W,O){if(O.type=="table"&&SH(W.currentLine)!==0){Y2(W);var b=O;O=W.addChild("row",W.nextNonspace);SH(W.currentLine)<0?O._rowIsDelimiter=!0:b._tableRows+=1;mQ(W,W.currentLine.length-W.offset,!1);O._string_content=W.currentLine;return 2}return 0}],JJi=function(){var W={shouldParseIndentAsCodeBlock:!1};
W=W===void 0?{}:W;this.lastMatchedContainer=this.doc=fL8();this.refmap={};this.lastLineLength=0;this.inlineParser=new Zw(W);this.options=W;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=oIf;this.blockStarts=Qi$},k0q=function(W){W.partiallyConsumedTab&&(W.offset+=1,W.tip._string_content+=" ".repeat(4-W.column%
4));
W.tip._string_content+=W.currentLine.slice(W.offset)+"\n"};
JJi.prototype.addChild=function(W,O){for(;!this.blocks[this.tip.type].canContain(W);)this.finalize(this.tip,this.lineNumber-1);W=new Zu(W,[[this.lineNumber,O+1],[0,0]]);W._string_content="";this.tip.appendChild(W);return this.tip=W};
var Y2=function(W){if(!W.allClosed){for(;W.oldtip!==W.lastMatchedContainer;){var O=W.oldtip._parent;W.finalize(W.oldtip,W.lineNumber-1);W.oldtip=O}W.allClosed=!0}},mQ=function(W,O,b){for(var T=W.currentLine,L,h;O>0&&(h=T[W.offset]);)h==="\t"?(L=4-W.column%4,b?(W.partiallyConsumedTab=L>O,L=L>O?O:L,W.column+=L,W.offset+=W.partiallyConsumedTab?0:1,O-=L):(W.partiallyConsumedTab=!1,W.column+=L,W.offset+=1,--O)):(W.partiallyConsumedTab=!1,W.offset+=1,W.column+=1,--O)},az=function(W){W.offset=W.nextNonspace;
W.column=W.nextNonspaceColumn;W.partiallyConsumedTab=!1},si1=function(W){for(var O=W.currentLine,b=W.offset,T=W.column,L;(L=O.charAt(b))!=="";)if(L===" ")b++,T++;
else if(L==="\t")b++,T+=4-T%4;else break;W.blank=L==="\n"||L==="\r"||L==="";W.nextNonspace=b;W.nextNonspaceColumn=T;W.indent=W.nextNonspaceColumn-W.column;W.indented=W.indent>=4};
JJi.prototype.finalize=function(W,O){var b=W._parent;W._open=!1;W.sourcepos[1]=[O,this.lastLineLength];this.blocks[W.type].finalize(this,W);this.tip=b};
JJi.prototype.parse=function(W){this.tip=this.doc=fL8();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!W)return this.doc;this.options.time&&console.time("preparing input");var O=W.split(gI$),b=O.length;W.charCodeAt(W.length-1)===10&&--b;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(W=0;W<b;W++)a:{var T=void 0,L=O[W],h=O[W+1],Z=!0,a=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;L.indexOf("\x00")!==-1&&(L=L.replace(/\0/g,"\ufffd"));this.currentLine=L;for(this.lookahead=h;(T=a._lastChild)&&T._open;){a=T;si1(this);switch(this.blocks[a.type].continue(this,a)){case 0:break;case 1:Z=!1;break;case 2:this.lastLineLength=L.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!Z){a=a._parent;break}}this.allClosed=a===this.oldtip;this.lastMatchedContainer=
a;T=a.type!=="paragraph"&&oIf[a.type].acceptsLines;h=this.blockStarts;for(Z=h.length;!T;){si1(this);if(!this.indented&&!Ueq.test(L.slice(this.nextNonspace))){az(this);break}for(var m=0;m<Z;){var w=h[m](this,a);if(w===1){a=this.tip;break}else if(w===2){a=this.tip;T=!0;break}else m++}if(m===Z){az(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){Y2(this);this.blank&&a.lastChild&&(a.lastChild._lastLineBlank=!0);T=a.type;h=this.blank&&!(T==="block_quote"||T==="code_block"&&a._isFenced||
T==="item"&&!a._firstChild&&a.sourcepos[0][0]===this.lineNumber);for(Z=a;Z;)Z._lastLineBlank=h,Z=Z._parent;this.blocks[T].acceptsLines?(k0q(this),T==="html_block"&&a._htmlBlockType>=1&&a._htmlBlockType<=5&&A1S[a._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(a,this.lineNumber)):this.offset<L.length&&!this.blank&&(this.addChild("paragraph",this.offset),az(this),k0q(this))}else k0q(this);this.lastLineLength=L.length}for(;this.tip;)this.finalize(this.tip,b);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");L=new C8w(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;b=L.next();)O=b.node,W=O.type,b.entering||W!=="paragraph"&&W!=="heading"&&W!=="th"&&W!="td"||this.inlineParser.parse(O);this.options.time&&console.timeEnd("inline parsing");return this.doc};GNO.prototype.render=function(W){W=new C8w(W);var O;this.buffer="";for(this.lastOut="\n";O=W.next();){var b=O.node.type;if(this[b])this[b](O.node,O.entering)}return this.buffer};
GNO.prototype.out=function(W){E_(this,W)};
var E_=function(W,O){W.buffer+=O;W.lastOut=O};
GNO.prototype.cr=function(){this.lastOut!=="\n"&&E_(this,"\n")};var Bi1=/^javascript:|vbscript:|file:|data:/i,r11=/^data:image\/(?:png|gif|jpeg|webp)/i,Dew=function(W){return Bi1.test(W)&&!r11.test(W)};
Is.prototype=Object.create(GNO.prototype);_.d=Is.prototype;_.d.text=function(W){this.out(W.literal)};
_.d.html_inline=function(W){this.options.safe?E_(this,"\x3c!-- raw HTML omitted --\x3e"):E_(this,W.literal)};
_.d.html_block=function(W){this.cr();this.options.safe?E_(this,"\x3c!-- raw HTML omitted --\x3e"):E_(this,W.literal);this.cr()};
_.d.softbreak=function(){E_(this,this.options.softbreak)};
_.d.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.d.link=function(W,O){var b=this.attrs(W);O?(this.options.safe&&Dew(W.destination)||b.push(["href",Lr(W.destination,!0)]),W.title&&b.push(["title",Lr(W.title,!0)]),this.tag("a",b)):this.tag("/a")};
_.d.image=function(W,O){O?(this.disableTags===0&&(this.options.safe&&Dew(W.destination)?E_(this,'<img src="" alt="'):E_(this,'<img src="'+Lr(W.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(W.title&&E_(this,'" title="'+Lr(W.title,!0)),E_(this,'" />')))};
_.d.emph=function(W,O){this.tag(O?"em":"/em")};
_.d.strong=function(W,O){this.tag(O?"strong":"/strong")};
_.d.paragraph=function(W,O){var b=W.parent.parent;W=this.attrs(W);b!==null&&b.type==="list"&&b.listTight||(O?(this.cr(),this.tag("p",W)):(this.tag("/p"),this.cr()))};
_.d.heading=function(W,O){var b="h"+W.level;W=this.attrs(W);O?(this.cr(),this.tag(b,W)):(this.tag("/"+b),this.cr())};
_.d.code=function(W){this.tag("code");this.out(W.literal);this.tag("/code")};
_.d.code_block=function(W){var O=W.info?W.info.split(/\s+/):[],b=this.attrs(W);O.length>0&&O[0].length>0&&b.push(["class","language-"+Lr(O[0],!0)]);this.cr();this.tag("pre");this.tag("code",b);this.out(W.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.d.thematic_break=function(W){W=this.attrs(W);this.cr();this.tag("hr",W,!0);this.cr()};
_.d.block_quote=function(W,O){W=this.attrs(W);O?(this.cr(),this.tag("blockquote",W)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.d.list=function(W,O){var b=W.listType==="bullet"?"ul":"ol",T=this.attrs(W);O?(W=W.listStart,W!==null&&W!==1&&T.push(["start",W.toString()]),this.cr(),this.tag(b,T)):(this.cr(),this.tag("/"+b));this.cr()};
_.d.item=function(W,O){W=this.attrs(W);O?this.tag("li",W):(this.tag("/li"),this.cr())};
_.d.custom_inline=function(W,O){O&&W.onEnter?E_(this,W.onEnter):!O&&W.onExit&&E_(this,W.onExit)};
_.d.custom_block=function(W,O){this.cr();O&&W.onEnter?E_(this,W.onEnter):!O&&W.onExit&&E_(this,W.onExit);this.cr()};
_.d.table=function(W,O){W=this.attrs(W);O?(this.cr(),this.tag("table",W)):(this.tag("/table"),this.cr())};
_.d.row=function(W,O){W._rowIsDelimiter||(W=this.attrs(W),O?this.tag("tr",W):this.tag("/tr"))};
_.d.td=function(W,O){var b=this.attrs(W);W._alignment&&b.push(["align",W._alignment]);O?this.tag("td",b):this.tag("/td")};
_.d.th=function(W,O){var b=this.attrs(W);W._alignment&&b.push(["align",W._alignment]);O?this.tag("th",b):this.tag("/th")};
_.d.out=function(W){E_(this,Lr(W,!1))};
_.d.tag=function(W,O,b){if(!(this.disableTags>0)){this.buffer+="<"+W;if(O&&O.length>0){W=0;for(var T;(T=O[W])!==void 0;)this.buffer+=" "+T[0]+'="'+T[1]+'"',W++}b&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.d.attrs=function(W){var O=[];this.options.sourcepos&&(W=W.sourcepos)&&O.push(["data-sourcepos",String(W[0][0])+":"+String(W[0][1])+"-"+String(W[1][0])+":"+String(W[1][1])]);return O};
Is.prototype.text=Is.prototype.text;Is.prototype.html_inline=Is.prototype.html_inline;Is.prototype.html_block=Is.prototype.html_block;Is.prototype.softbreak=Is.prototype.softbreak;Is.prototype.linebreak=Is.prototype.linebreak;Is.prototype.link=Is.prototype.link;Is.prototype.image=Is.prototype.image;Is.prototype.emph=Is.prototype.emph;Is.prototype.strong=Is.prototype.strong;Is.prototype.paragraph=Is.prototype.paragraph;Is.prototype.heading=Is.prototype.heading;Is.prototype.code=Is.prototype.code;
Is.prototype.code_block=Is.prototype.code_block;Is.prototype.thematic_break=Is.prototype.thematic_break;Is.prototype.block_quote=Is.prototype.block_quote;Is.prototype.list=Is.prototype.list;Is.prototype.item=Is.prototype.item;Is.prototype.custom_inline=Is.prototype.custom_inline;Is.prototype.custom_block=Is.prototype.custom_block;Is.prototype.table=Is.prototype.table;Is.prototype.row=Is.prototype.row;Is.prototype.td=Is.prototype.td;Is.prototype.th=Is.prototype.th;Is.prototype.out=Is.prototype.out;
Is.prototype.tag=Is.prototype.tag;Is.prototype.attrs=Is.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 xe1,zXU,I1X;(function(){function W(B,g){return B<g?-1:B>g?1:B>=g?0:NaN}
function O(B){return function(g,z){return W(B(g),z)}}
function b(){for(var B=0,g=arguments.length,z={},u;B<g;++B){if(!(u=arguments[B]+"")||u in z)throw Error("re`"+u);z[u]=[]}return new T(z)}
function T(B){this._=B}
function L(B,g){return B.trim().split(/^|\s+/).map(function(z){var u="",TX=z.indexOf(".");TX>=0&&(u=z.slice(TX+1),z=z.slice(0,TX));if(z&&!g.hasOwnProperty(z))throw Error("se`"+z);return{type:z,name:u}})}
function h(B,g,z){for(var u=0,TX=B.length;u<TX;++u)if(B[u].name===g){B[u]=BYZ;B=B.slice(0,u).concat(B.slice(u+1));break}z!=null&&B.push({name:g,value:z});return B}
function Z(B){var g=B,z=g.indexOf(":");z>=0&&(g=B.slice(0,z))!=="xmlns"&&(B=B.slice(z+1));return nF.hasOwnProperty(g)?{space:nF[g],local:B}:B}
function a(B){return function(){var g=this.ownerDocument,z=this.namespaceURI;return z==="http://www.w3.org/1999/xhtml"&&g.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?g.createElement(B):g.createElementNS(z,B)}}
function m(B){return function(){return this.ownerDocument.createElementNS(B.space,B.local)}}
function w(B){B=Z(B);return(B.local?m:a)(B)}
function A(){}
function X(B){return B==null?A:function(){return this.querySelector(B)}}
function l(B){return Array(B.length)}
function p(B,g){this.ownerDocument=B.ownerDocument;this.namespaceURI=B.namespaceURI;this._next=null;this._parent=B;this.__data__=g}
function K(B){return function(){return B}}
function k(B,g,z,u,TX,Iq){for(var XO=0,g8,WN=g.length,JX=Iq.length;XO<JX;++XO)(g8=g[XO])?(g8.__data__=Iq[XO],u[XO]=g8):z[XO]=new p(B,Iq[XO]);for(;XO<WN;++XO)if(g8=g[XO])TX[XO]=g8}
function r(B,g,z,u,TX,Iq,XO){var g8,WN,JX={},bf=g.length,mn=Iq.length,uf=Array(bf),Y7;for(g8=0;g8<bf;++g8)if(WN=g[g8])uf[g8]=Y7="$"+XO.call(WN,WN.__data__,g8,g),Y7 in JX?TX[g8]=WN:JX[Y7]=WN;for(g8=0;g8<mn;++g8)Y7="$"+XO.call(B,Iq[g8],g8,Iq),(WN=JX[Y7])?(u[g8]=WN,WN.__data__=Iq[g8],JX[Y7]=null):z[g8]=new p(B,Iq[g8]);for(g8=0;g8<bf;++g8)(WN=g[g8])&&JX[uf[g8]]===WN&&(TX[g8]=WN)}
function q(B,g){return B<g?-1:B>g?1:B>=g?0:NaN}
function f(B){return function(){this.removeAttribute(B)}}
function M(B){return function(){this.removeAttributeNS(B.space,B.local)}}
function V(B,g){return function(){this.setAttribute(B,g)}}
function jQ(B,g){return function(){this.setAttributeNS(B.space,B.local,g)}}
function y(B,g){return function(){var z=g.apply(this,arguments);z==null?this.removeAttribute(B):this.setAttribute(B,z)}}
function d8(B,g){return function(){var z=g.apply(this,arguments);z==null?this.removeAttributeNS(B.space,B.local):this.setAttributeNS(B.space,B.local,z)}}
function pE(B){return function(){this.style.removeProperty(B)}}
function Qh(B,g,z){return function(){this.style.setProperty(B,g,z)}}
function KE(B,g,z){return function(){var u=g.apply(this,arguments);u==null?this.style.removeProperty(B):this.style.setProperty(B,u,z)}}
function fE(B,g){return B.style.getPropertyValue(g)||(B.ownerDocument&&B.ownerDocument.defaultView||B.document&&B||B.defaultView).getComputedStyle(B,null).getPropertyValue(g)}
function r8(B){return function(){delete this[B]}}
function nE(B,g){return function(){this[B]=g}}
function tX(B,g){return function(){var z=g.apply(this,arguments);z==null?delete this[B]:this[B]=z}}
function yh(){this.textContent=""}
function Gw(B){return function(){this.textContent=B}}
function KH(B){return function(){var g=B.apply(this,arguments);this.textContent=g==null?"":g}}
function h9(){this.innerHTML=""}
function I7(B){return function(){this.innerHTML=B}}
function T1(B){return function(){var g=B.apply(this,arguments);this.innerHTML=g==null?"":g}}
function Y$(){return null}
function aR(){var B=this.parentNode;B&&B.removeChild(this)}
function f0(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function SQ(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function R7(B,g,z){B=zw(B,g,z);return function(u){var TX=u.relatedTarget;TX&&(TX===this||TX.compareDocumentPosition(this)&8)||B.call(this,u)}}
function zw(B,g,z){return function(){B.call(this,this.__data__,g,z)}}
function G1(B){return B.trim().split(/^|\s+/).map(function(g){var z="",u=g.indexOf(".");u>=0&&(z=g.slice(u+1),g=g.slice(0,u));return{type:g,name:z}})}
function k$(B){return function(){var g=this.__on;if(g){for(var z=0,u=-1,TX=g.length,Iq;z<TX;++z)(Iq=g[z],B.type&&Iq.type!==B.type||Iq.name!==B.name)?g[++u]=Iq:this.removeEventListener(Iq.type,Iq.listener,Iq.capture);++u?g.length=u:delete this.__on}}}
function Nz(B,g,z){var u=yRS.hasOwnProperty(B.type)?R7:zw;return function(TX,Iq,XO){TX=this.__on;var g8;Iq=u(g,Iq,XO);if(TX){XO=0;for(var WN=TX.length;XO<WN;++XO)if((g8=TX[XO]).type===B.type&&g8.name===B.name){this.removeEventListener(g8.type,g8.listener,g8.capture);this.addEventListener(g8.type,g8.listener=Iq,g8.capture=z);g8.value=g;return}}this.addEventListener(B.type,Iq,z);g8={type:B.type,name:B.name,value:g,listener:Iq,capture:z};TX?TX.push(g8):this.__on=[g8]}}
function NE(B,g,z){var u=B.ownerDocument&&B.ownerDocument.defaultView||B.document&&B||B.defaultView,TX=u.CustomEvent;typeof TX==="function"?TX=new TX(g,z):(TX=u.document.createEvent("Event"),z?(TX.initEvent(g,z.bubbles,z.cancelable),TX.detail=z.detail):TX.initEvent(g,!1,!1));B.dispatchEvent(TX)}
function XU(B,g){return function(){return NE(this,B,g)}}
function u1(B,g){return function(){return NE(this,B,g.apply(this,arguments))}}
function pH(B,g){this._groups=B;this._parents=g}
function IN(){return new pH([[document.documentElement]],rs5)}
function vN(){this._="@"+(++DcP).toString(36)}
function lk(B,g,z){B.prototype=g.prototype=z;z.constructor=B}
function ZG(B,g){B=Object.create(B.prototype);for(var z in g)B[z]=g[z];return B}
function Zf(){}
function H9(B){var g;B=(B+"").trim().toLowerCase();return(g=xc1.exec(B))?(g=parseInt(g[1],16),new y2(g>>8&15|g>>4&240,g>>4&15|g&240,(g&15)<<4|g&15,1)):(g=z9D.exec(B))?lN(parseInt(g[1],16)):(g=CU7.exec(B))?new y2(g[1],g[2],g[3],1):(g=qQ2.exec(B))?new y2(g[1]*255/100,g[2]*255/100,g[3]*255/100,1):(g=nqR.exec(B))?X0(g[1],g[2],g[3],g[4]):(g=fLR.exec(B))?X0(g[1]*255/100,g[2]*255/100,g[3]*255/100,g[4]):(g=GND.exec(B))?xX(g[1],g[2]/100,g[3]/100,1):(g=HDD.exec(B))?xX(g[1],g[2]/100,g[3]/100,g[4]):WFn.hasOwnProperty(B)?
lN(WFn[B]):B==="transparent"?new y2(NaN,NaN,NaN,0):null}
function lN(B){return new y2(B>>16&255,B>>8&255,B&255,1)}
function X0(B,g,z,u){u<=0&&(B=g=z=NaN);return new y2(B,g,z,u)}
function t9(B){B instanceof Zf||(B=H9(B));if(!B)return new y2;B=B.rgb();return new y2(B.r,B.g,B.b,B.opacity)}
function wg(B,g,z,u){return arguments.length===1?t9(B):new y2(B,g,z,u==null?1:u)}
function y2(B,g,z,u){this.r=+B;this.g=+g;this.b=+z;this.opacity=+u}
function m7(B){B=Math.max(0,Math.min(255,Math.round(B)||0));return(B<16?"0":"")+B.toString(16)}
function xX(B,g,z,u){u<=0?B=g=z=NaN:z<=0||z>=1?B=g=NaN:g<=0&&(B=NaN);return new Um(B,g,z,u)}
function EM(B){if(B instanceof Um)return new Um(B.h,B.s,B.l,B.opacity);B instanceof Zf||(B=H9(B));if(!B)return new Um;if(B instanceof Um)return B;B=B.rgb();var g=B.r/255,z=B.g/255,u=B.b/255,TX=Math.min(g,z,u),Iq=Math.max(g,z,u),XO=NaN,g8=Iq-TX,WN=(Iq+TX)/2;g8?(XO=g===Iq?(z-u)/g8+(z<u)*6:z===Iq?(u-g)/g8+2:(g-z)/g8+4,g8/=WN<.5?Iq+TX:2-Iq-TX,XO*=60):g8=WN>0&&WN<1?0:XO;return new Um(XO,g8,WN,B.opacity)}
function jJ(B,g,z,u){return arguments.length===1?EM(B):new Um(B,g,z,u==null?1:u)}
function Um(B,g,z,u){this.h=+B;this.s=+g;this.l=+z;this.opacity=+u}
function rC(B,g,z){return(B<60?g+(z-g)*B/60:B<180?z:B<240?g+(z-g)*(240-B)/60:g)*255}
function h3(B){if(B instanceof eQ)return new eQ(B.l,B.a,B.b,B.opacity);if(B instanceof e5){if(isNaN(B.h))return new eQ(B.l,0,0,B.opacity);var g=B.h*Og$;return new eQ(B.l,Math.cos(g)*B.c,Math.sin(g)*B.c,B.opacity)}B instanceof y2||(B=t9(B));var z=LU(B.r),u=LU(B.g),TX=LU(B.b);g=Di(.2225045*z+.7168786*u+.0606169*TX);if(z===u&&u===TX)var Iq=z=g;else Iq=Di((.4360747*z+.3850649*u+.1430804*TX)/.96422),z=Di((.0139322*z+.0971045*u+.7141733*TX)/.82521);return new eQ(116*g-16,500*(Iq-g),200*(g-z),B.opacity)}
function eQ(B,g,z,u){this.l=+B;this.a=+g;this.b=+z;this.opacity=+u}
function Di(B){return B>t6N?Math.pow(B,1/3):B/igH+bgz}
function H2(B){return B>Tr?B*B*B:igH*(B-bgz)}
function A9(B){return 255*(B<=.0031308?12.92*B:1.055*Math.pow(B,1/2.4)-.055)}
function LU(B){return(B/=255)<=.04045?B/12.92:Math.pow((B+.055)/1.055,2.4)}
function oR(B){if(B instanceof e5)return new e5(B.h,B.c,B.l,B.opacity);B instanceof eQ||(B=h3(B));if(B.a===0&&B.b===0)return new e5(NaN,0,B.l,B.opacity);var g=Math.atan2(B.b,B.a)*j31;return new e5(g<0?g+360:g,Math.sqrt(B.a*B.a+B.b*B.b),B.l,B.opacity)}
function aN(B,g,z,u){return arguments.length===1?oR(B):new e5(B,g,z,u==null?1:u)}
function e5(B,g,z,u){this.h=+B;this.c=+g;this.l=+z;this.opacity=+u}
function Uv(B,g,z,u){if(arguments.length===1){var TX=B;if(TX instanceof m8)TX=new m8(TX.h,TX.s,TX.l,TX.opacity);else{TX instanceof y2||(TX=t9(TX));var Iq=TX.g/255,XO=TX.b/255,g8=(Tpw*XO+TX.r/255*-1.7884503806-3.5172982438*Iq)/(Tpw+-1.7884503806-3.5172982438);XO-=g8;var WN=(1.97294*(Iq-g8)- -.29227*XO)/-.90649;XO=(Iq=Math.sqrt(WN*WN+XO*XO)/(1.97294*g8*(1-g8)))?Math.atan2(WN,XO)*j31-120:NaN;TX=new m8(XO<0?XO+360:XO,Iq,g8,TX.opacity)}}else TX=new m8(B,g,z,u==null?1:u);return TX}
function m8(B,g,z,u){this.h=+B;this.s=+g;this.l=+z;this.opacity=+u}
function p0(B,g,z,u,TX){var Iq=B*B,XO=Iq*B;return((1-3*B+3*Iq-XO)*g+(4-6*Iq+3*XO)*z+(1+3*B+3*Iq-3*XO)*u+XO*TX)/6}
function S5(B){return function(){return B}}
function UB(B,g){return function(z){return B+z*g}}
function gD(B,g,z){return B=Math.pow(B,z),g=Math.pow(g,z)-B,z=1/z,function(u){return Math.pow(B+u*g,z)}}
function xh(B,g){var z=g-B;return z?UB(B,z>180||z<-180?z-360*Math.round(z/360):z):S5(isNaN(B)?g:B)}
function M9(B){return(B=+B)===1?zK:function(g,z){return z-g?gD(g,z,B):S5(isNaN(g)?z:g)}}
function zK(B,g){var z=g-B;return z?UB(B,z):S5(isNaN(B)?g:B)}
function Bh(B){return function(g){var z=g.length,u=Array(z),TX=Array(z),Iq=Array(z),XO;for(XO=0;XO<z;++XO){var g8=wg(g[XO]);u[XO]=g8.r||0;TX[XO]=g8.g||0;Iq[XO]=g8.b||0}u=B(u);TX=B(TX);Iq=B(Iq);g8.opacity=1;return function(WN){g8.r=u(WN);g8.g=TX(WN);g8.b=Iq(WN);return g8+""}}}
function I8(B,g){return B=+B,g-=B,function(z){return B+g*z}}
function FO(B){return function(){return B}}
function Ag(B){return function(g){return B(g)+""}}
function eB(B,g){var z=o81.lastIndex=Q3i.lastIndex=0,u,TX,Iq,XO=-1,g8=[],WN=[];B+="";for(g+="";(u=o81.exec(B))&&(TX=Q3i.exec(g));)(Iq=TX.index)>z&&(Iq=g.slice(z,Iq),g8[XO]?g8[XO]+=Iq:g8[++XO]=Iq),(u=u[0])===(TX=TX[0])?g8[XO]?g8[XO]+=TX:g8[++XO]=TX:(g8[++XO]=null,WN.push({i:XO,x:I8(u,TX)})),z=Q3i.lastIndex;z<g.length&&(Iq=g.slice(z),g8[XO]?g8[XO]+=Iq:g8[++XO]=Iq);return g8.length<2?WN[0]?Ag(WN[0].x):FO(g):(g=WN.length,function(JX){for(var bf=0,mn;bf<g;++bf)g8[(mn=WN[bf]).i]=mn.x(JX);return g8.join("")})}
function st(B,g,z,u,TX,Iq){var XO,g8,WN;if(XO=Math.sqrt(B*B+g*g))B/=XO,g/=XO;if(WN=B*z+g*u)z-=B*WN,u-=g*WN;if(g8=Math.sqrt(z*z+u*u))z/=g8,u/=g8,WN/=g8;B*u<g*z&&(B=-B,g=-g,WN=-WN,XO=-XO);return{translateX:TX,translateY:Iq,rotate:Math.atan2(g,B)*LFz,skewX:Math.atan(WN)*LFz,scaleX:XO,scaleY:g8}}
function Dd(B,g,z,u){function TX(JX){return JX.length?JX.pop()+" ":""}
function Iq(JX,bf,mn,uf,Y7,wA){JX!==mn||bf!==uf?(Y7=Y7.push("translate(",null,g,null,z),wA.push({i:Y7-4,x:I8(JX,mn)},{i:Y7-2,x:I8(bf,uf)})):(mn||uf)&&Y7.push("translate("+mn+g+uf+z)}
function XO(JX,bf,mn,uf){JX!==bf?(JX-bf>180?bf+=360:bf-JX>180&&(JX+=360),uf.push({i:mn.push(TX(mn)+"rotate(",null,u)-2,x:I8(JX,bf)})):bf&&mn.push(TX(mn)+"rotate("+bf+u)}
function g8(JX,bf,mn,uf){JX!==bf?uf.push({i:mn.push(TX(mn)+"skewX(",null,u)-2,x:I8(JX,bf)}):bf&&mn.push(TX(mn)+"skewX("+bf+u)}
function WN(JX,bf,mn,uf,Y7,wA){JX!==mn||bf!==uf?(Y7=Y7.push(TX(Y7)+"scale(",null,",",null,")"),wA.push({i:Y7-4,x:I8(JX,mn)},{i:Y7-2,x:I8(bf,uf)})):mn===1&&uf===1||Y7.push(TX(Y7)+"scale("+mn+","+uf+")")}
return function(JX,bf){var mn=[],uf=[];JX=B(JX);bf=B(bf);Iq(JX.translateX,JX.translateY,bf.translateX,bf.translateY,mn,uf);XO(JX.rotate,bf.rotate,mn,uf);g8(JX.skewX,bf.skewX,mn,uf);WN(JX.scaleX,JX.scaleY,bf.scaleX,bf.scaleY,mn,uf);JX=bf=null;return function(Y7){for(var wA=-1,$4=uf.length,pz;++wA<$4;)mn[(pz=uf[wA]).i]=pz.x(Y7);return mn.join("")}}}
function T9(B){return function(g,z){var u=B((g=jJ(g)).h,(z=jJ(z)).h),TX=zK(g.s,z.s),Iq=zK(g.l,z.l),XO=zK(g.opacity,z.opacity);return function(g8){g.h=u(g8);g.s=TX(g8);g.l=Iq(g8);g.opacity=XO(g8);return g+""}}}
function nS(B){return function(g,z){var u=B((g=aN(g)).h,(z=aN(z)).h),TX=zK(g.c,z.c),Iq=zK(g.l,z.l),XO=zK(g.opacity,z.opacity);return function(g8){g.h=u(g8);g.c=TX(g8);g.l=Iq(g8);g.opacity=XO(g8);return g+""}}}
function A$(B){return function u(z){function TX(Iq,XO){var g8=B((Iq=Uv(Iq)).h,(XO=Uv(XO)).h),WN=zK(Iq.s,XO.s),JX=zK(Iq.l,XO.l),bf=zK(Iq.opacity,XO.opacity);return function(mn){Iq.h=g8(mn);Iq.s=WN(mn);Iq.l=JX(Math.pow(mn,z));Iq.opacity=bf(mn);return Iq+""}}
z=+z;TX.gamma=u;return TX}(1)}
function zB(){return q6||(dvz(G1X),q6=ta.now()+aqT)}
function G1X(){q6=0}
function Ug(){this._call=this._time=this._next=null}
function tJ(B,g,z){var u=new Ug;u.restart(B,g,z);return u}
function $K(){q6=(mrh=ta.now())+aqT;LC=VA=0;try{zB();++LC;for(var B=Yoq,g;B;)(g=q6-B._time)>=0&&B._call.call(null,g),B=B._next;--LC}finally{LC=0;B=Yoq;for(var z=Infinity;B;)if(B._call){z>B._time&&(z=B._time);var u=B;B=B._next}else g=B._next,B._next=null,B=u?u._next=g:Yoq=g;NH=u;V$(z);q6=0}}
function mLT(){var B=ta.now(),g=B-mrh;g>1E3&&(aqT-=g,mrh=B)}
function V$(B){LC||(VA&&(VA=clearTimeout(VA)),B-q6>24?(B<Infinity&&(VA=setTimeout($K,B-ta.now()-aqT)),MH&&(MH=clearInterval(MH))):(MH||(mrh=ta.now(),MH=setInterval(mLT,1E3)),LC=1,dvz($K)))}
function h4q(B,g,z){var u=new Ug;g=g==null?0:+g;u.restart(function(TX){u.stop();B(TX+g)},g,z);
return u}
function kgX(B,g,z,u,TX,Iq){var XO=B.__transition;if(!XO)B.__transition={};else if(z in XO)return;$ck(B,z,{name:g,index:u,group:TX,on:V6g,tween:NY7,time:Iq.time,delay:Iq.delay,duration:Iq.duration,ease:Iq.ease,timer:null,state:0})}
function s3E(B,g){B=Th(B,g);if(B.state>0)throw Error("te");return B}
function nZ(B,g){B=Th(B,g);if(B.state>2)throw Error("ue");return B}
function Th(B,g){B=B.__transition;if(!B||!(B=B[g]))throw Error("ve");return B}
function $ck(B,g,z){function u(WN){var JX,bf;if(z.state!==1)return Iq();for(uf in XO){var mn=XO[uf];if(mn.name===z.name){if(mn.state===3)return h4q(u);mn.state===4?(mn.state=6,mn.timer.stop(),mn.on.call("interrupt",B,B.__data__,mn.index,mn.group),delete XO[uf]):+uf<g&&(mn.state=6,mn.timer.stop(),delete XO[uf])}}h4q(function(){z.state===3&&(z.state=4,z.timer.restart(TX,z.delay,z.time),TX(WN))});
z.state=2;z.on.call("start",B,B.__data__,z.index,z.group);if(z.state===2){z.state=3;g8=Array(bf=z.tween.length);var uf=0;for(JX=-1;uf<bf;++uf)if(mn=z.tween[uf].value.call(B,B.__data__,z.index,z.group))g8[++JX]=mn;g8.length=JX+1}}
function TX(WN){WN=WN<z.duration?z.ease.call(null,WN/z.duration):(z.timer.restart(Iq),z.state=5,1);for(var JX=-1,bf=g8.length;++JX<bf;)g8[JX].call(null,WN);z.state===5&&(z.on.call("end",B,B.__data__,z.index,z.group),Iq())}
function Iq(){z.state=6;z.timer.stop();delete XO[g];for(var WN in XO)return;delete B.__transition}
var XO=B.__transition,g8;XO[g]=z;z.timer=tJ(function(WN){z.state=1;z.timer.restart(u,z.delay,z.time);z.delay<=WN&&u(WN-z.delay)},0,z.time)}
function M6B(B,g){var z,u;return function(){var TX=nZ(this,B),Iq=TX.tween;if(Iq!==z){u=z=Iq;Iq=0;for(var XO=u.length;Iq<XO;++Iq)if(u[Iq].name===g){u=u.slice();u.splice(Iq,1);break}}TX.tween=u}}
function uvR(B,g,z){var u,TX;if(typeof z!=="function")throw Error();return function(){var Iq=nZ(this,B),XO=Iq.tween;if(XO!==u){TX=(u=XO).slice();XO={name:g,value:z};for(var g8=0,WN=TX.length;g8<WN;++g8)if(TX[g8].name===g){TX[g8]=XO;break}g8===WN&&TX.push(XO)}Iq.tween=TX}}
function BpE(B,g,z){var u=B._id;B.each(function(){var TX=nZ(this,u);(TX.value||(TX.value={}))[g]=z.apply(this,arguments)});
return function(TX){return Th(TX,u).value[g]}}
function S9w(B,g){var z;return(typeof g==="number"?I8:g instanceof H9?ZgL:(z=H9(g))?(g=z,ZgL):eB)(B,g)}
function Js2(B){return function(){this.removeAttribute(B)}}
function csg(B){return function(){this.removeAttributeNS(B.space,B.local)}}
function FNk(B,g,z){var u,TX;return function(){var Iq=this.getAttribute(B);return Iq===z?null:Iq===u?TX:TX=g(u=Iq,z)}}
function ysk(B,g,z){var u,TX;return function(){var Iq=this.getAttributeNS(B.space,B.local);return Iq===z?null:Iq===u?TX:TX=g(u=Iq,z)}}
function WDN(B,g,z){var u,TX,Iq;return function(){var XO=z(this);if(XO==null)return void this.removeAttribute(B);var g8=this.getAttribute(B);return g8===XO?null:g8===u&&XO===TX?Iq:Iq=g(u=g8,TX=XO)}}
function OfU(B,g,z){var u,TX,Iq;return function(){var XO=z(this);if(XO==null)return void this.removeAttributeNS(B.space,B.local);var g8=this.getAttributeNS(B.space,B.local);return g8===XO?null:g8===u&&XO===TX?Iq:Iq=g(u=g8,TX=XO)}}
function ifN(B,g){function z(){var u=this,TX=g.apply(u,arguments);return TX&&function(Iq){u.setAttributeNS(B.space,B.local,TX(Iq))}}
z._value=g;return z}
function bfk(B,g){function z(){var u=this,TX=g.apply(u,arguments);return TX&&function(Iq){u.setAttribute(B,TX(Iq))}}
z._value=g;return z}
function j6k(B,g){return function(){s3E(this,B).delay=+g.apply(this,arguments)}}
function TQR(B,g){return g=+g,function(){s3E(this,B).delay=g}}
function LD9(B,g){return function(){nZ(this,B).duration=+g.apply(this,arguments)}}
function d$8(B,g){return g=+g,function(){nZ(this,B).duration=g}}
function h6k(B,g){if(typeof g!=="function")throw Error();return function(){nZ(this,B).ease=g}}
function S3P(B){return(B+"").trim().split(/^|\s+/).every(function(g){var z=g.indexOf(".");z>=0&&(g=g.slice(0,z));return!g||g==="start"})}
function Zf5(B,g,z){var u,TX,Iq=S3P(g)?s3E:nZ;return function(){var XO=Iq(this,B),g8=XO.on;if(g8!==u)(TX=(u=g8).copy()).on(g,z);XO.on=TX}}
function IbU(B){return function(){var g=this.parentNode,z;for(z in this.__transition)if(+z!==B)return;g&&g.removeChild(this)}}
function ab8(B,g){var z,u,TX;return function(){var Iq=fE(this,B),XO=(this.style.removeProperty(B),fE(this,B));return Iq===XO?null:Iq===z&&XO===u?TX:TX=g(z=Iq,u=XO)}}
function m$8(B){return function(){this.style.removeProperty(B)}}
function Y3N(B,g,z){var u,TX;return function(){var Iq=fE(this,B);return Iq===z?null:Iq===u?TX:TX=g(u=Iq,z)}}
function Es9(B,g,z){var u,TX,Iq;return function(){var XO=fE(this,B),g8=z(this);g8==null&&(g8=(this.style.removeProperty(B),fE(this,B)));return XO===g8?null:XO===u&&g8===TX?Iq:Iq=g(u=XO,TX=g8)}}
function wkU(B,g,z){function u(){var TX=this,Iq=g.apply(TX,arguments);return Iq&&function(XO){TX.style.setProperty(B,Iq(XO),z)}}
u._value=g;return u}
function A$Z(B){return function(){this.textContent=B}}
function Xk1(B){return function(){var g=B(this);this.textContent=g==null?"":g}}
function Zx(B,g,z,u){this._groups=B;this._parents=g;this._name=z;this._id=u}
function rcT(B){return{type:B}}
function DvX(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function EbT(){}
function Ic9(B,g){var z=new EbT;if(B instanceof EbT)B.each(function(XO,g8){z.set(g8,XO)});
else if(Array.isArray(B)){var u=-1,TX=B.length,Iq;if(g==null)for(;++u<TX;)z.set(u,B[u]);else for(;++u<TX;)z.set(g(Iq=B[u],u,B),Iq)}else if(B)for(u in B)z.set(u,B[u]);return z}
function wj8(){}
function ac7(B){return function(g){for(var z={},u=0;u<B.length;u++)z[B[u]]=g[u]||"";return z}}
function U$B(B,g){var z=ac7(B);return function(u,TX){return g(z(u),TX,B)}}
function lb8(B){var g=Object.create(null),z=[];B.forEach(function(u){for(var TX in u)TX in g||z.push(g[TX]=TX)});
return z}
function mvq(B){function g(XO,g8){function WN(){if(wA)return xvQ;if($4)return $4=!1,Y9n;var tS,yC=mn,ex;if(XO.charCodeAt(yC)===34){for(;mn++<bf&&XO.charCodeAt(mn)!==34||XO.charCodeAt(++mn)===34;);(tS=mn)>=bf?wA=!0:(ex=XO.charCodeAt(mn++))===10?$4=!0:ex===13&&($4=!0,XO.charCodeAt(mn)===10&&++mn);return XO.slice(yC+1,tS-1).replace(/""/g,'"')}for(;mn<bf;){if((ex=XO.charCodeAt(tS=mn++))===10)$4=!0;else if(ex===13)$4=!0,XO.charCodeAt(mn)===10&&++mn;else if(ex!==Iq)continue;return XO.slice(yC,tS)}return wA=
!0,XO.slice(yC,bf)}
var JX=[],bf=XO.length,mn=0,uf=0,Y7,wA=bf<=0,$4=!1;XO.charCodeAt(bf-1)===10&&--bf;for(XO.charCodeAt(bf-1)===13&&--bf;(Y7=WN())!==xvQ;){for(var pz=[];Y7!==Y9n&&Y7!==xvQ;)pz.push(Y7),Y7=WN();g8&&(pz=g8(pz,uf++))==null||JX.push(pz)}return JX}
function z(XO){return XO.map(u).join(B)}
function u(XO){return XO==null?"":TX.test(XO)?'"'+XO.replace(/"/g,'""')+'"':XO}
var TX=new RegExp('["'+B+"\n\r]"),Iq=B.charCodeAt(0);return{parse:function(XO,g8){var WN,JX;XO=g(XO,function(bf,mn){if(WN)return WN(bf,mn-1);JX=bf;WN=g8?U$B(bf,g8):ac7(bf)});
XO.columns=JX||[];return XO},
parseRows:g,format:function(XO,g8){g8==null&&(g8=lb8(XO));return[g8.map(u).join(B)].concat(XO.map(function(WN){return g8.map(function(JX){return u(WN[JX])}).join(B)})).join("\n")},
formatRows:function(XO){return XO.map(z).join("\n")}}}
function e6Z(B){if(!B.ok)throw Error("we`"+B.status+"`"+B.statusText);return B.text()}
function E8w(B){return function(g,z,u){arguments.length===2&&typeof z==="function"&&(u=z,z=void 0);return fetch(g,z).then(e6Z).then(function(TX){return B(TX,u)})}}
function wqf(B,g,z,u){if(isNaN(g)||isNaN(z))return B;var TX,Iq=B._root;u={data:u};var XO=B._x0,g8=B._y0,WN=B._x1,JX=B._y1,bf,mn,uf,Y7,wA;if(!Iq)return B._root=u,B;for(;Iq.length;)if((uf=g>=(bf=(XO+WN)/2))?XO=bf:WN=bf,(Y7=z>=(mn=(g8+JX)/2))?g8=mn:JX=mn,TX=Iq,!(Iq=Iq[wA=Y7<<1|uf]))return TX[wA]=u,B;var $4=+B._x.call(null,Iq.data);var pz=+B._y.call(null,Iq.data);if(g===$4&&z===pz)return u.next=Iq,TX?TX[wA]=u:B._root=u,B;do TX=TX?TX[wA]=Array(4):B._root=Array(4),(uf=g>=(bf=(XO+WN)/2))?XO=bf:WN=bf,(Y7=
z>=(mn=(g8+JX)/2))?g8=mn:JX=mn;while((wA=Y7<<1|uf)===(uf=(pz>=mn)<<1|$4>=bf));return TX[uf]=Iq,TX[wA]=u,B}
function ch(B,g,z,u,TX){this.node=B;this.x0=g;this.y0=z;this.x1=u;this.y1=TX}
function PM2(B){return B[0]}
function pkD(B){return B[1]}
function z4e(B,g,z,u,TX,Iq){this._x=B;this._y=g;this._x0=z;this._y0=u;this._x1=TX;this._y1=Iq;this._root=void 0}
function AcN(B){for(var g={data:B.data},z=g;B=B.next;)z=z.next={data:B.data};return g}
function At8(B,g){if((g=(B=g?B.toExponential(g-1):B.toExponential()).indexOf("e"))<0)return null;var z=B.slice(0,g);return[z.length>1?z[0]+z.slice(2):z,+B.slice(g+1)]}
function R6k(B){return B=At8(Math.abs(B)),B?B[1]:NaN}
function KDP(B,g){return function(z,u){for(var TX=z.length,Iq=[],XO=0,g8=B[0],WN=0;TX>0&&g8>0;){WN+g8+1>u&&(g8=Math.max(1,u-WN));Iq.push(z.substring(TX-=g8,TX+g8));if((WN+=g8+1)>u)break;g8=B[XO=(XO+1)%B.length]}return Iq.reverse().join(g)}}
function vs2(B){return function(g){return g.replace(/[0-9]/g,function(z){return B[+z]})}}
function CKQ(B){return new q9i(B)}
function q9i(B){if(!(g=gs8.exec(B)))throw Error("xe`"+B);var g;this.fill=g[1]||" ";this.align=g[2]||">";this.sign=g[3]||"-";this.symbol=g[4]||"";this.zero=!!g[5];this.width=g[6]&&+g[6];this.comma=!!g[7];this.precision=g[8]&&+g[8].slice(1);this.trim=!!g[9];this.type=g[10]||""}
function Xq$(B,g){g=At8(B,g);if(!g)return B+"";B=g[0];g=g[1];return g<0?"0."+Array(-g).join("0")+B:B.length>g+1?B.slice(0,g+1)+"."+B.slice(g+1):B+Array(g-B.length+2).join("0")}
function Uv$(B){return B}
function osg(B){function g(g8){function WN(MA){var aa=ex,k7=TJ,IR,i_;if(yC==="c")k7=Wj(MA)+k7,MA="";else{MA=+MA;var XD=MA<0;MA=Wj(Math.abs(MA),pz);if(tS){var VH=MA.length,ge=1,$O=-1;a:for(;ge<VH;++ge)switch(MA[ge]){case ".":$O=IR=ge;break;case "0":$O===0&&($O=ge);IR=ge;break;default:if(!+MA[ge])break a;$O>0&&($O=0)}MA=$O>0?MA.slice(0,$O)+MA.slice(IR+1):MA}XD&&+MA===0&&(XD=!1);aa=(XD?mn==="("?mn:"-":mn==="-"||mn==="("?"":mn)+aa;k7=(yC==="s"?lc1[8+e4v/3]:"")+k7+(XD&&mn==="("?")":"");if(w4)for(XD=-1,
IR=MA.length;++XD<IR;)if(i_=MA.charCodeAt(XD),48>i_||i_>57){k7=(i_===46?TX+MA.slice(XD+1):MA.slice(XD))+k7;MA=MA.slice(0,XD);break}}$4&&!Y7&&(MA=z(MA,Infinity));i_=aa.length+MA.length+k7.length;XD=i_<wA?Array(wA-i_+1).join(JX):"";$4&&Y7&&(MA=z(XD+MA,XD.length?wA-k7.length:Infinity),XD="");switch(bf){case "<":MA=aa+MA+k7+XD;break;case "=":MA=aa+XD+MA+k7;break;case "^":MA=XD.slice(0,i_=XD.length>>1)+aa+MA+k7+XD.slice(i_);break;default:MA=XD+aa+MA+k7}return Iq(MA)}
g8=CKQ(g8);var JX=g8.fill,bf=g8.align,mn=g8.sign,uf=g8.symbol,Y7=g8.zero,wA=g8.width,$4=g8.comma,pz=g8.precision,tS=g8.trim,yC=g8.type;yC==="n"?($4=!0,yC="g"):PK$[yC]||(pz==null&&(pz=12),tS=!0,yC="g");if(Y7||JX==="0"&&bf==="=")Y7=!0,JX="0",bf="=";var ex=uf==="$"?u[0]:uf==="#"&&/[boxX]/.test(yC)?"0"+yC.toLowerCase():"",TJ=uf==="$"?u[1]:/[%p]/.test(yC)?XO:"",Wj=PK$[yC],w4=/[defgprs%]/.test(yC);pz=pz==null?6:/[gprs]/.test(yC)?Math.max(1,Math.min(21,pz)):Math.max(0,Math.min(20,pz));WN.toString=function(){return g8+
""};
return WN}
var z=B.grouping&&B.thousands?KDP(B.grouping,B.thousands):Uv$,u=B.currency,TX=B.decimal,Iq=B.numerals?vs2(B.numerals):Uv$,XO=B.percent||"%";return{format:g,formatPrefix:function(g8,WN){var JX=g((g8=CKQ(g8),g8.type="f",g8));g8=Math.max(-8,Math.min(8,Math.floor(R6k(WN)/3)))*3;var bf=Math.pow(10,-g8),mn=lc1[8+g8/3];return function(uf){return JX(bf*uf)+mn}}}}
function zR(){this.reset()}
function pqH(B,g,z){var u=B.s=g+z,TX=u-g;B.t=g-(u-TX)+(z-TX)}
function Xj1(B){return B>1?fF:B<-1?-fF:Math.asin(B)}
function Q68(){}
function R4z(B){var g=B[0];B=B[1];var z=Go(B);return[z*Go(g),z*QV(g),QV(B)]}
function KF1(B,g){return[B[1]*g[2]-B[2]*g[1],B[2]*g[0]-B[0]*g[2],B[0]*g[1]-B[1]*g[0]]}
function v8N(B){var g=Ure(B[0]*B[0]+B[1]*B[1]+B[2]*B[2]);B[0]/=g;B[1]/=g;B[2]/=g}
function kR8(){var B=[],g;return{point:function(z,u){g.push([z,u])},
lineStart:function(){B.push(g=[])},
lineEnd:Q68,rejoin:function(){B.length>1&&B.push(B.pop().concat(B.shift()))},
result:function(){var z=B;B=[];g=null;return z}}}
function lqE(B,g,z,u){this.x=B;this.z=g;this.o=z;this.e=u;this.v=!1;this.n=this.p=null}
function s67(B,g,z,u,TX){var Iq=[],XO=[];B.forEach(function(mn){if(!((uf=mn.length-1)<=0)){var uf,Y7=mn[0],wA=mn[uf],$4=Y7;if(IV($4[0]-wA[0])<1E-6&&IV($4[1]-wA[1])<1E-6){TX.lineStart();for(g8=0;g8<uf;++g8)TX.point((Y7=mn[g8])[0],Y7[1]);TX.lineEnd()}else Iq.push(uf=new lqE(Y7,mn,null,!0)),XO.push(uf.o=new lqE(Y7,null,uf,!1)),Iq.push(uf=new lqE(wA,mn,null,!1)),XO.push(uf.o=new lqE(wA,null,uf,!0))}});
if(Iq.length){XO.sort(g);g85(Iq);g85(XO);var g8=0;for(B=XO.length;g8<B;++g8)XO[g8].e=z=!z;z=Iq[0];for(var WN;;){for(var JX=z,bf=!0;JX.v;)if((JX=JX.n)===z)return;g=JX.z;TX.lineStart();do{JX.v=JX.o.v=!0;if(JX.e){if(bf)for(g8=0,B=g.length;g8<B;++g8)TX.point((WN=g[g8])[0],WN[1]);else u(JX.x,JX.n.x,1,TX);JX=JX.n}else{if(bf)for(g=JX.p.z,g8=g.length-1;g8>=0;--g8)TX.point((WN=g[g8])[0],WN[1]);else u(JX.x,JX.p.x,-1,TX);JX=JX.p}JX=JX.o;g=JX.z;bf=!bf}while(!JX.v);TX.lineEnd()}}}
function g85(B){if(g=B.length){for(var g,z=0,u=B[0],TX;++z<g;)u.n=TX=B[z],TX.p=u,u=TX;u.n=TX=B[0];TX.p=u}}
function BQ5(B){return B.length>1}
function r$k(B,g){return((B=B.x)[0]<0?B[1]-fF-1E-6:fF-B[1])-((g=g.x)[0]<0?g[1]-fF-1E-6:fF-g[1])}
function n8T(){}
function o8f(B){return function(g,z){var u=Go(g),TX=Go(z);u=B(u*TX);return[u*TX*QV(g),u*QV(z)]}}
function uz(B){return function(g,z){var u=Ure(g*g+z*z),TX=B(u),Iq=QV(TX);TX=Go(TX);return[Q3S(g*Iq,u*TX),Xj1(u&&z*Iq/u)]}}
function D$g(B){var g=0,z=B.children,u=z&&z.length;if(u)for(;--u>=0;)g+=z[u].value;else g=1;B.value=g}
function kgw(B,g){var z=new Ja(B);B=+B.value&&(z.value=B.value);var u,TX=[z],Iq,XO,g8,WN;for(g==null&&(g=x$9);u=TX.pop();)if(B&&(u.value=+u.data.value),(XO=g(u.data))&&(WN=XO.length))for(u.children=Array(WN),g8=WN-1;g8>=0;--g8)TX.push(Iq=u.children[g8]=new Ja(XO[g8])),Iq.parent=u,Iq.depth=u.depth+1;return z.eachBefore(z65)}
function x$9(B){return B.children}
function CMk(B){B.data=B.data.data}
function z65(B){var g=0;do B.height=g;while((B=B.parent)&&B.height<++g)}
function Ja(B){this.data=B;this.depth=this.height=0;this.parent=null}
function X9(B,g,z,u){function TX(Iq){return B(Iq=new Date(+Iq)),Iq}
TX.floor=TX;TX.ceil=function(Iq){return B(Iq=new Date(Iq-1)),g(Iq,1),B(Iq),Iq};
TX.round=function(Iq){var XO=TX(Iq),g8=TX.ceil(Iq);return Iq-XO<g8-Iq?XO:g8};
TX.offset=function(Iq,XO){return g(Iq=new Date(+Iq),XO==null?1:Math.floor(XO)),Iq};
TX.range=function(Iq,XO,g8){var WN=[],JX;Iq=TX.ceil(Iq);g8=g8==null?1:Math.floor(g8);if(!(Iq<XO&&g8>0))return WN;do WN.push(JX=new Date(+Iq)),g(Iq,g8),B(Iq);while(JX<Iq&&Iq<XO);return WN};
TX.filter=function(Iq){return X9(function(XO){if(XO>=XO)for(;B(XO),!Iq(XO);)XO.setTime(XO-1)},function(XO,g8){if(XO>=XO)if(g8<0)for(;++g8<=0;)for(;g(XO,-1),!Iq(XO););
else for(;--g8>=0;)for(;g(XO,1),!Iq(XO););})};
z&&(TX.count=function(Iq,XO){fcE.setTime(+Iq);Gg8.setTime(+XO);B(fcE);B(Gg8);return Math.floor(z(fcE,Gg8))},TX.every=function(Iq){Iq=Math.floor(Iq);
return isFinite(Iq)&&Iq>0?Iq>1?TX.filter(u?function(XO){return u(XO)%Iq===0}:function(XO){return TX.count(0,XO)%Iq===0}):TX:null});
return TX}
function fZ(B){return X9(function(g){g.setDate(g.getDate()-(g.getDay()+7-B)%7);g.setHours(0,0,0,0)},function(g,z){g.setDate(g.getDate()+z*7)},function(g,z){return(z-g-(z.getTimezoneOffset()-g.getTimezoneOffset())*6E4)/6048E5})}
function GE(B){return X9(function(g){g.setUTCDate(g.getUTCDate()-(g.getUTCDay()+7-B)%7);g.setUTCHours(0,0,0,0)},function(g,z){g.setUTCDate(g.getUTCDate()+z*7)},function(g,z){return(z-g)/6048E5})}
function q39(B){if(0<=B.y&&B.y<100){var g=new Date(-1,B.m,B.d,B.H,B.M,B.S,B.L);g.setFullYear(B.y);return g}return new Date(B.y,B.m,B.d,B.H,B.M,B.S,B.L)}
function e0q(B){if(0<=B.y&&B.y<100){var g=new Date(Date.UTC(-1,B.m,B.d,B.H,B.M,B.S,B.L));g.setUTCFullYear(B.y);return g}return new Date(Date.UTC(B.y,B.m,B.d,B.H,B.M,B.S,B.L))}
function cn(B){return{y:B,m:0,d:1,H:0,M:0,S:0,L:0}}
function ns1(B){function g(k7,IR){return function(i_){var XD=[],VH=-1,ge=0,$O=k7.length,YX,Kr;for(i_ instanceof Date||(i_=new Date(+i_));++VH<$O;)if(k7.charCodeAt(VH)===37){XD.push(k7.slice(ge,VH));(ge=s3H[YX=k7.charAt(++VH)])!=null?YX=k7.charAt(++VH):ge=YX==="e"?" ":"0";if(Kr=IR[YX])YX=Kr(i_,ge);XD.push(YX);ge=VH+1}XD.push(k7.slice(ge,VH));return XD.join("")}}
function z(k7,IR){return function(i_){var XD=cn(1900);if(u(XD,k7,i_,0)!=i_.length)return null;if("Q"in XD)return new Date(XD.Q);"p"in XD&&(XD.H=XD.H%12+XD.p*12);if("V"in XD){if(XD.V<1||XD.V>53)return null;"w"in XD||(XD.w=1);if("Z"in XD){i_=e0q(cn(XD.y));var VH=i_.getUTCDay();i_=VH>4||VH===0?Hg2.ceil(i_):Hg2(i_);i_=BpH.offset(i_,(XD.V-1)*7);XD.y=i_.getUTCFullYear();XD.m=i_.getUTCMonth();XD.d=i_.getUTCDate()+(XD.w+6)%7}else i_=IR(cn(XD.y)),VH=i_.getDay(),i_=VH>4||VH===0?tw8.ceil(i_):tw8(i_),i_=rc$.offset(i_,
(XD.V-1)*7),XD.y=i_.getFullYear(),XD.m=i_.getMonth(),XD.d=i_.getDate()+(XD.w+6)%7}else if("W"in XD||"U"in XD)"w"in XD||(XD.w="u"in XD?XD.u%7:"W"in XD?1:0),VH="Z"in XD?e0q(cn(XD.y)).getUTCDay():IR(cn(XD.y)).getDay(),XD.m=0,XD.d="W"in XD?(XD.w+6)%7+XD.W*7-(VH+5)%7:XD.w+XD.U*7-(VH+6)%7;return"Z"in XD?(XD.H+=XD.Z/100|0,XD.M+=XD.Z%100,e0q(XD)):IR(XD)}}
function u(k7,IR,i_,XD){for(var VH=0,ge=IR.length,$O=i_.length,YX;VH<ge;){if(XD>=$O)return-1;YX=IR.charCodeAt(VH++);if(YX===37){if(YX=IR.charAt(VH++),YX=aa[YX in s3H?IR.charAt(VH++):YX],!YX||(XD=YX(k7,i_,XD))<0)return-1}else if(YX!=i_.charCodeAt(XD++))return-1}return XD}
var TX=B.dateTime,Iq=B.date,XO=B.time,g8=B.periods,WN=B.days,JX=B.shortDays,bf=B.months,mn=B.shortMonths,uf=Fb(g8),Y7=yA(g8),wA=Fb(WN),$4=yA(WN),pz=Fb(JX),tS=yA(JX),yC=Fb(bf),ex=yA(bf),TJ=Fb(mn),Wj=yA(mn),w4={a:function(k7){return JX[k7.getDay()]},
A:function(k7){return WN[k7.getDay()]},
b:function(k7){return mn[k7.getMonth()]},
B:function(k7){return bf[k7.getMonth()]},
c:null,d:Dv9,e:Dv9,f:fb5,H:GRN,I:Hfk,j:tb9,L:xv5,m:$$7,M:VbD,p:function(k7){return g8[+(k7.getHours()>=12)]},
Q:z4v,s:CK5,S:NQg,u:MbB,U:uSU,V:J$B,w:c$U,W:FD1,x:null,X:null,y:y$2,Y:WB2,Z:O4N,"%":q9S},MA={a:function(k7){return JX[k7.getUTCDay()]},
A:function(k7){return WN[k7.getUTCDay()]},
b:function(k7){return mn[k7.getUTCMonth()]},
B:function(k7){return bf[k7.getUTCMonth()]},
c:null,d:n8$,e:n8$,f:i4B,H:b4U,I:jBg,j:T71,L:fcH,m:LBB,M:daU,p:function(k7){return g8[+(k7.getUTCHours()>=12)]},
Q:z4v,s:CK5,S:hu5,u:SiD,U:Z4k,V:IAD,w:aA5,W:maB,x:null,X:null,y:Yi2,Y:Elg,Z:w18,"%":q9S},aa={a:function(k7,IR,i_){return(IR=pz.exec(IR.slice(i_)))?(k7.w=tS[IR[0].toLowerCase()],i_+IR[0].length):-1},
A:function(k7,IR,i_){return(IR=wA.exec(IR.slice(i_)))?(k7.w=$4[IR[0].toLowerCase()],i_+IR[0].length):-1},
b:function(k7,IR,i_){return(IR=TJ.exec(IR.slice(i_)))?(k7.m=Wj[IR[0].toLowerCase()],i_+IR[0].length):-1},
B:function(k7,IR,i_){return(IR=yC.exec(IR.slice(i_)))?(k7.m=ex[IR[0].toLowerCase()],i_+IR[0].length):-1},
c:function(k7,IR,i_){return u(k7,TX,IR,i_)},
d:GgL,e:GgL,f:ANN,H:HgN,I:HgN,j:X1Z,L:UaD,m:lAU,M:eu7,p:function(k7,IR,i_){return(IR=uf.exec(IR.slice(i_)))?(k7.p=Y7[IR[0].toLowerCase()],i_+IR[0].length):-1},
Q:PQg,s:p1Z,S:RuU,u:KBR,U:vlg,V:glD,w:ol5,W:QBg,x:function(k7,IR,i_){return u(k7,Iq,IR,i_)},
X:function(k7,IR,i_){return u(k7,XO,IR,i_)},
y:kpZ,Y:sBk,Z:B71,"%":rNk};w4.x=g(Iq,w4);w4.X=g(XO,w4);w4.c=g(TX,w4);MA.x=g(Iq,MA);MA.X=g(XO,MA);MA.c=g(TX,MA);return{format:function(k7){var IR=g(k7,w4);IR.toString=function(){return k7};
return IR},
parse:function(k7){var IR=z(k7,q39);IR.toString=function(){return k7};
return IR},
utcFormat:function(k7){var IR=g(k7,MA);IR.toString=function(){return k7};
return IR},
utcParse:function(k7){var IR=z(k7,e0q);IR.toString=function(){return k7};
return IR}}}
function ez(B,g,z){var u=B<0?"-":"";B=(u?-B:B)+"";var TX=B.length;return u+(TX<z?Array(z-TX+1).join(g)+B:B)}
function Dag(B){return B.replace(xag,"\\$&")}
function Fb(B){return new RegExp("^(?:"+B.map(Dag).join("|")+")","i")}
function yA(B){for(var g={},z=-1,u=B.length;++z<u;)g[B[z].toLowerCase()]=z;return g}
function ol5(B,g,z){return(g=Pg.exec(g.slice(z,z+1)))?(B.w=+g[0],z+g[0].length):-1}
function KBR(B,g,z){return(g=Pg.exec(g.slice(z,z+1)))?(B.u=+g[0],z+g[0].length):-1}
function vlg(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.U=+g[0],z+g[0].length):-1}
function glD(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.V=+g[0],z+g[0].length):-1}
function QBg(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.W=+g[0],z+g[0].length):-1}
function sBk(B,g,z){return(g=Pg.exec(g.slice(z,z+4)))?(B.y=+g[0],z+g[0].length):-1}
function kpZ(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.y=+g[0]+(+g[0]>68?1900:2E3),z+g[0].length):-1}
function B71(B,g,z){return(g=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(g.slice(z,z+6)))?(B.Z=g[1]?0:-(g[2]+(g[3]||"00")),z+g[0].length):-1}
function lAU(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.m=g[0]-1,z+g[0].length):-1}
function GgL(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.d=+g[0],z+g[0].length):-1}
function X1Z(B,g,z){return(g=Pg.exec(g.slice(z,z+3)))?(B.m=0,B.d=+g[0],z+g[0].length):-1}
function HgN(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.H=+g[0],z+g[0].length):-1}
function eu7(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.M=+g[0],z+g[0].length):-1}
function RuU(B,g,z){return(g=Pg.exec(g.slice(z,z+2)))?(B.S=+g[0],z+g[0].length):-1}
function UaD(B,g,z){return(g=Pg.exec(g.slice(z,z+3)))?(B.L=+g[0],z+g[0].length):-1}
function ANN(B,g,z){return(g=Pg.exec(g.slice(z,z+6)))?(B.L=Math.floor(g[0]/1E3),z+g[0].length):-1}
function rNk(B,g,z){return(B=zuk.exec(g.slice(z,z+1)))?z+B[0].length:-1}
function PQg(B,g,z){return(g=Pg.exec(g.slice(z)))?(B.Q=+g[0],z+g[0].length):-1}
function p1Z(B,g,z){return(g=Pg.exec(g.slice(z)))?(B.Q=+g[0]*1E3,z+g[0].length):-1}
function Dv9(B,g){return ez(B.getDate(),g,2)}
function GRN(B,g){return ez(B.getHours(),g,2)}
function Hfk(B,g){return ez(B.getHours()%12||12,g,2)}
function tb9(B,g){return ez(1+rc$.count(df(B),B),g,3)}
function xv5(B,g){return ez(B.getMilliseconds(),g,3)}
function fb5(B,g){return xv5(B,g)+"000"}
function $$7(B,g){return ez(B.getMonth()+1,g,2)}
function VbD(B,g){return ez(B.getMinutes(),g,2)}
function NQg(B,g){return ez(B.getSeconds(),g,2)}
function MbB(B){B=B.getDay();return B===0?7:B}
function uSU(B,g){return ez(CQN.count(df(B),B),g,2)}
function J$B(B,g){var z=B.getDay();B=z>=4||z===0?$vi(B):$vi.ceil(B);return ez($vi.count(df(B),B)+(df(B).getDay()===4),g,2)}
function c$U(B){return B.getDay()}
function FD1(B,g){return ez(tw8.count(df(B),B),g,2)}
function y$2(B,g){return ez(B.getFullYear()%100,g,2)}
function WB2(B,g){return ez(B.getFullYear()%1E4,g,4)}
function O4N(B){B=B.getTimezoneOffset();return(B>0?"-":(B*=-1,"+"))+ez(B/60|0,"0",2)+ez(B%60,"0",2)}
function n8$(B,g){return ez(B.getUTCDate(),g,2)}
function b4U(B,g){return ez(B.getUTCHours(),g,2)}
function jBg(B,g){return ez(B.getUTCHours()%12||12,g,2)}
function T71(B,g){return ez(1+BpH.count(hK(B),B),g,3)}
function fcH(B,g){return ez(B.getUTCMilliseconds(),g,3)}
function i4B(B,g){return fcH(B,g)+"000"}
function LBB(B,g){return ez(B.getUTCMonth()+1,g,2)}
function daU(B,g){return ez(B.getUTCMinutes(),g,2)}
function hu5(B,g){return ez(B.getUTCSeconds(),g,2)}
function SiD(B){B=B.getUTCDay();return B===0?7:B}
function Z4k(B,g){return ez(qik.count(hK(B),B),g,2)}
function IAD(B,g){var z=B.getUTCDay();B=z>=4||z===0?Vw8(B):Vw8.ceil(B);return ez(Vw8.count(hK(B),B)+(hK(B).getUTCDay()===4),g,2)}
function aA5(B){return B.getUTCDay()}
function maB(B,g){return ez(Hg2.count(hK(B),B),g,2)}
function Yi2(B,g){return ez(B.getUTCFullYear()%100,g,2)}
function Elg(B,g){return ez(B.getUTCFullYear()%1E4,g,4)}
function w18(){return"+0000"}
function q9S(){return"%"}
function z4v(B){return+B}
function CK5(B){return Math.floor(+B/1E3)}
function db(B){for(var g=B.length/6|0,z=Array(g),u=0;u<g;)z[u]="#"+B.slice(u*6,++u*6);return z}
function Nr(B){return nlP(B[B.length-1])}
function PtX(B){var g=B.length;return function(z){return B[Math.max(0,Math.min(g-1,Math.floor(z*g)))]}}
function twL(B){this._context=B}
function $vS(B){this._curve=B}
function VwL(B,g,z){var u=B._x1-B._x0;g-=B._x1;var TX=(B._y1-B._y0)/(u||g<0&&-0);B=(z-B._y1)/(g||u<0&&-0);return((TX<0?-1:1)+(B<0?-1:1))*Math.min(Math.abs(TX),Math.abs(B),.5*Math.abs((TX*g+B*u)/(u+g)))||0}
function Npq(B,g){var z=B._x1-B._x0;return z?(3*(B._y1-B._y0)/z-g)/2:g}
function Nph(B,g,z){var u=B._x0,TX=B._x1,Iq=B._y1,XO=(TX-u)/3;B._context.bezierCurveTo(u+XO,B._y0+XO*g,TX-XO,Iq-XO*z,TX,Iq)}
function MwO(B){this._context=B}
function MwU(B){this._context=B}
function WI(B,g,z){this.k=B;this.x=g;this.y=z}
(function(B){B.length===1&&(B=O(B));return{left:function(g,z,u,TX){u==null&&(u=0);TX==null&&(TX=g.length);for(;u<TX;){var Iq=u+TX>>>1;B(g[Iq],z)<0?u=Iq+1:TX=Iq}return u},
right:function(g,z,u,TX){u==null&&(u=0);TX==null&&(TX=g.length);for(;u<TX;){var Iq=u+TX>>>1;B(g[Iq],z)>0?TX=Iq:u=Iq+1}return u}}})(W);
var BYZ={value:function(){}};
T.prototype=b.prototype={constructor:T,on:function(B,g){var z=this._,u=L(B+"",z),TX,Iq=-1,XO=u.length;if(arguments.length<2)for(;++Iq<XO;){var g8;if(g8=TX=(B=u[Iq]).type){a:{g8=z[TX];for(var WN=0,JX=g8.length;WN<JX;++WN)if((TX=g8[WN]).name===B.name){TX=TX.value;break a}TX=void 0}g8=TX}if(g8)return TX}else{if(g!=null&&typeof g!=="function")throw Error("ye`"+g);for(;++Iq<XO;)if(TX=(B=u[Iq]).type)z[TX]=h(z[TX],B.name,g);else if(g==null)for(TX in z)z[TX]=h(z[TX],B.name,null);return this}},
copy:function(){var B={},g=this._,z;for(z in g)B[z]=g[z].slice();return new T(B)},
call:function(B,g){if((TX=arguments.length-2)>0)for(var z=Array(TX),u=0,TX,Iq;u<TX;++u)z[u]=arguments[u+2];if(!this._.hasOwnProperty(B))throw Error("se`"+B);Iq=this._[B];u=0;for(TX=Iq.length;u<TX;++u)Iq[u].value.apply(g,z)},
apply:function(B,g,z){if(!this._.hasOwnProperty(B))throw Error("se`"+B);B=this._[B];for(var u=0,TX=B.length;u<TX;++u)B[u].value.apply(g,z)}};
var nF={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/"},ue7=function(B){return function(){return this.matches(B)}};
if(typeof document!=="undefined"){var OH=document.documentElement;if(!OH.matches){var fAU=OH.webkitMatchesSelector||OH.msMatchesSelector||OH.mozMatchesSelector||OH.oMatchesSelector;ue7=function(B){return function(){return fAU.call(this,B)}}}}var Jcw=ue7;
p.prototype={constructor:p,appendChild:function(B){return this._parent.insertBefore(B,this._next)},
insertBefore:function(B,g){return this._parent.insertBefore(B,g)},
querySelector:function(B){return this._parent.querySelector(B)},
querySelectorAll:function(B){return this._parent.querySelectorAll(B)}};
var yRS={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(yRS={mouseenter:"mouseover",mouseleave:"mouseout"}));var rs5=[null];pH.prototype=IN.prototype={constructor:pH,select:function(B){typeof B!=="function"&&(B=X(B));for(var g=this._groups,z=g.length,u=Array(z),TX=0;TX<z;++TX)for(var Iq=g[TX],XO=Iq.length,g8=u[TX]=Array(XO),WN,JX,bf=0;bf<XO;++bf)(WN=Iq[bf])&&(JX=B.call(WN,WN.__data__,bf,Iq))&&("__data__"in WN&&(JX.__data__=WN.__data__),g8[bf]=JX);return new pH(u,this._parents)},
filter:function(B){typeof B!=="function"&&(B=Jcw(B));for(var g=this._groups,z=g.length,u=Array(z),TX=0;TX<z;++TX)for(var Iq=g[TX],XO=Iq.length,g8=u[TX]=[],WN,JX=0;JX<XO;++JX)(WN=Iq[JX])&&B.call(WN,WN.__data__,JX,Iq)&&g8.push(WN);return new pH(u,this._parents)},
data:function(B,g){if(!B)return Y7=Array(this.size()),JX=-1,this.each(function(yC){Y7[++JX]=yC}),Y7;
var z=g?r:k,u=this._parents,TX=this._groups;typeof B!=="function"&&(B=K(B));for(var Iq=TX.length,XO=Array(Iq),g8=Array(Iq),WN=Array(Iq),JX=0;JX<Iq;++JX){var bf=u[JX],mn=TX[JX],uf=mn.length,Y7=B.call(bf,bf&&bf.__data__,JX,u),wA=Y7.length,$4=g8[JX]=Array(wA),pz=XO[JX]=Array(wA);uf=WN[JX]=Array(uf);z(bf,mn,$4,pz,uf,Y7,g);mn=bf=0;for(var tS;bf<wA;++bf)if(uf=$4[bf]){for(bf>=mn&&(mn=bf+1);!(tS=pz[mn])&&++mn<wA;);uf._next=tS||null}}XO=new pH(XO,u);XO._enter=g8;XO._exit=WN;return XO},
exit:function(){return new pH(this._exit||this._groups.map(l),this._parents)},
merge:function(B){var g=this._groups;B=B._groups;for(var z=g.length,u=Math.min(z,B.length),TX=Array(z),Iq=0;Iq<u;++Iq)for(var XO=g[Iq],g8=B[Iq],WN=XO.length,JX=TX[Iq]=Array(WN),bf,mn=0;mn<WN;++mn)if(bf=XO[mn]||g8[mn])JX[mn]=bf;for(;Iq<z;++Iq)TX[Iq]=g[Iq];return new pH(TX,this._parents)},
order:function(){for(var B=this._groups,g=-1,z=B.length;++g<z;)for(var u=B[g],TX=u.length-1,Iq=u[TX],XO;--TX>=0;)if(XO=u[TX])Iq&&Iq!==XO.nextSibling&&Iq.parentNode.insertBefore(XO,Iq),Iq=XO;return this},
sort:function(B){function g(mn,uf){return mn&&uf?B(mn.__data__,uf.__data__):!mn-!uf}
B||(B=q);for(var z=this._groups,u=z.length,TX=Array(u),Iq=0;Iq<u;++Iq){for(var XO=z[Iq],g8=XO.length,WN=TX[Iq]=Array(g8),JX,bf=0;bf<g8;++bf)if(JX=XO[bf])WN[bf]=JX;WN.sort(g)}return(new pH(TX,this._parents)).order()},
call:function(){var B=arguments[0];arguments[0]=this;B.apply(null,arguments);return this},
nodes:function(){var B=Array(this.size()),g=-1;this.each(function(){B[++g]=this});
return B},
node:function(){for(var B=this._groups,g=0,z=B.length;g<z;++g)for(var u=B[g],TX=0,Iq=u.length;TX<Iq;++TX){var XO=u[TX];if(XO)return XO}return null},
size:function(){var B=0;this.each(function(){++B});
return B},
empty:function(){return!this.node()},
each:function(B){for(var g=this._groups,z=0,u=g.length;z<u;++z)for(var TX=g[z],Iq=0,XO=TX.length,g8;Iq<XO;++Iq)(g8=TX[Iq])&&B.call(g8,g8.__data__,Iq,TX);return this},
attr:function(B,g){var z=Z(B);if(arguments.length<2){var u=this.node();return z.local?u.getAttributeNS(z.space,z.local):u.getAttribute(z)}return this.each((g==null?z.local?M:f:typeof g==="function"?z.local?d8:y:z.local?jQ:V)(z,g))},
style:function(B,g,z){return arguments.length>1?this.each((g==null?pE:typeof g==="function"?KE:Qh)(B,g,z==null?"":z)):fE(this.node(),B)},
property:function(B,g){return arguments.length>1?this.each((g==null?r8:typeof g==="function"?tX:nE)(B,g)):this.node()[B]},
text:function(B){return arguments.length?this.each(B==null?yh:(typeof B==="function"?KH:Gw)(B)):this.node().textContent},
html:function(B){return arguments.length?this.each(B==null?h9:(typeof B==="function"?T1:I7)(B)):this.node().innerHTML},
append:function(B){var g=typeof B==="function"?B:w(B);return this.select(function(){return this.appendChild(g.apply(this,arguments))})},
insert:function(B,g){var z=typeof B==="function"?B:w(B),u=g==null?Y$:typeof g==="function"?g:X(g);return this.select(function(){return this.insertBefore(z.apply(this,arguments),u.apply(this,arguments)||null)})},
remove:function(){return this.each(aR)},
clone:function(B){return this.select(B?SQ:f0)},
datum:function(B){return arguments.length?this.property("__data__",B):this.node().__data__},
on:function(B,g,z){var u=G1(B+""),TX=u.length,Iq;if(arguments.length<2){var XO=this.node().__on;if(XO)for(var g8=0,WN=XO.length,JX;g8<WN;++g8){var bf=0;for(JX=XO[g8];bf<TX;++bf)if((Iq=u[bf]).type===JX.type&&Iq.name===JX.name)return JX.value}}else{XO=g?Nz:k$;z==null&&(z=!1);for(bf=0;bf<TX;++bf)this.each(XO(u[bf],g,z));return this}},
dispatch:function(B,g){return this.each((typeof g==="function"?u1:XU)(B,g))}};
var DcP=0;vN.prototype=function(){return new vN}.prototype={constructor:vN,
get:function(B){for(var g=this._;!(g in B);)if(!(B=B.parentNode))return;return B[g]},
set:function(B,g){return B[this._]=g},
remove:function(B){return this._ in B&&delete B[this._]},
toString:function(){return this._}};
var St=1/.7,xc1=/^#([0-9a-f]{3})$/,z9D=/^#([0-9a-f]{6})$/,CU7=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),qQ2=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),nqR=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),fLR=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*\\)$"),
GND=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),HDD=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*\\)$"),WFn={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};
lk(Zf,H9,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
lk(y2,wg,ZG(Zf,{brighter:function(B){B=B==null?St:Math.pow(St,B);return new y2(this.r*B,this.g*B,this.b*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new y2(this.r*B,this.g*B,this.b*B,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"#"+m7(this.r)+m7(this.g)+m7(this.b)},
toString:function(){var B=this.opacity;B=isNaN(B)?1:Math.max(0,Math.min(1,B));return(B===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))+(B===1?")":", "+B+")")}}));
lk(Um,jJ,ZG(Zf,{brighter:function(B){B=B==null?St:Math.pow(St,B);return new Um(this.h,this.s,this.l*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new Um(this.h,this.s,this.l*B,this.opacity)},
rgb:function(){var B=this.h%360+(this.h<0)*360,g=this.l,z=g+(g<.5?g:1-g)*(isNaN(B)||isNaN(this.s)?0:this.s);g=2*g-z;return new y2(rC(B>=240?B-240:B+120,g,z),rC(B,g,z),rC(B<120?B+240:B-120,g,z),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 Og$=Math.PI/180,j31=180/Math.PI,bgz=4/29,Tr=6/29,igH=3*Tr*Tr,t6N=Tr*Tr*Tr;lk(eQ,function(B,g,z,u){return arguments.length===1?h3(B):new eQ(B,g,z,u==null?1:u)},ZG(Zf,{brighter:function(B){return new eQ(this.l+18*(B==null?1:B),this.a,this.b,this.opacity)},
darker:function(B){return new eQ(this.l-18*(B==null?1:B),this.a,this.b,this.opacity)},
rgb:function(){var B=(this.l+16)/116,g=isNaN(this.a)?B:B+this.a/500,z=isNaN(this.b)?B:B-this.b/200;g=.96422*H2(g);B=1*H2(B);z=.82521*H2(z);return new y2(A9(3.1338561*g-1.6168667*B-.4906146*z),A9(-.9787684*g+1.9161415*B+.033454*z),A9(.0719453*g-.2289914*B+1.4052427*z),this.opacity)}}));
lk(e5,aN,ZG(Zf,{brighter:function(B){return new e5(this.h,this.c,this.l+18*(B==null?1:B),this.opacity)},
darker:function(B){return new e5(this.h,this.c,this.l-18*(B==null?1:B),this.opacity)},
rgb:function(){return h3(this).rgb()}}));
var Tpw=1.78277*-.29227-.1347134789;lk(m8,Uv,ZG(Zf,{brighter:function(B){B=B==null?St:Math.pow(St,B);return new m8(this.h,this.s,this.l*B,this.opacity)},
darker:function(B){B=B==null?.7:Math.pow(.7,B);return new m8(this.h,this.s,this.l*B,this.opacity)},
rgb:function(){var B=isNaN(this.h)?0:(this.h+120)*Og$,g=+this.l,z=isNaN(this.s)?0:this.s*g*(1-g),u=Math.cos(B);B=Math.sin(B);return new y2(255*(g+z*(-.14861*u+1.78277*B)),255*(g+z*(-.29227*u+-.90649*B)),255*(g+1.97294*u*z),this.opacity)}}));
var ZgL=function z(g){function u(Iq,XO){var g8=TX((Iq=wg(Iq)).r,(XO=wg(XO)).r),WN=TX(Iq.g,XO.g),JX=TX(Iq.b,XO.b),bf=zK(Iq.opacity,XO.opacity);return function(mn){Iq.r=g8(mn);Iq.g=WN(mn);Iq.b=JX(mn);Iq.opacity=bf(mn);return Iq+""}}
var TX=M9(g);u.gamma=z;return u}(1),nlP=Bh(function(g){var z=g.length-1;
return function(u){var TX=u<=0?u=0:u>=1?(u=1,z-1):Math.floor(u*z),Iq=g[TX],XO=g[TX+1];return p0((u-TX/z)*z,TX>0?g[TX-1]:2*Iq-XO,Iq,XO,TX<z-1?g[TX+2]:2*XO-Iq)}});
Bh(function(g){var z=g.length;return function(u){var TX=Math.floor(((u%=1)<0?++u:u)*z);return p0((u-TX/z)*z,g[(TX+z-1)%z],g[TX%z],g[(TX+1)%z],g[(TX+2)%z])}});
var o81=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Q3i=new RegExp(o81.source,"g"),LFz=180/Math.PI,ueq={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},i5,JcX,ccN,pj2,Gp1=Dd(function(g){if(g==="none")return ueq;i5||(i5=document.createElement("DIV"),JcX=document.documentElement,ccN=document.defaultView);i5.style.transform=g;g=ccN.getComputedStyle(JcX.appendChild(i5),null).getPropertyValue("transform");JcX.removeChild(i5);g=g.slice(7,-1).split(",");return st(+g[0],+g[1],+g[2],+g[3],
+g[4],+g[5])},"px, ","px)","deg)"),H4U=Dd(function(g){if(g==null)return ueq;
pj2||(pj2=document.createElementNS("http://www.w3.org/2000/svg","g"));pj2.setAttribute("transform",g);if(!(g=pj2.transform.baseVal.consolidate()))return ueq;g=g.matrix;return st(g.a,g.b,g.c,g.d,g.e,g.f)},", ",")",")");
T9(xh);T9(zK);nS(xh);nS(zK);A$(xh);var cc2=A$(zK),LC=0,VA=0,MH=0,Yoq,NH,mrh=0,q6=0,aqT=0,ta=typeof performance==="object"&&performance.now?performance:Date,dvz=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(g){setTimeout(g,17)};
Ug.prototype=tJ.prototype={constructor:Ug,restart:function(g,z,u){if(typeof g!=="function")throw new TypeError("ze");u=(u==null?zB():+u)+(z==null?0:+z);this._next||NH===this||(NH?NH._next=this:Yoq=this,NH=this);this._call=g;this._time=u;V$()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,V$())}};
var V6g=b("start","end","interrupt"),NY7=[],tmR=IN.prototype.constructor,FFz=0,ZW=IN.prototype;Zx.prototype=function(g){return IN().transition(g)}.prototype={constructor:Zx,
select:function(g){var z=this._name,u=this._id;typeof g!=="function"&&(g=X(g));for(var TX=this._groups,Iq=TX.length,XO=Array(Iq),g8=0;g8<Iq;++g8)for(var WN=TX[g8],JX=WN.length,bf=XO[g8]=Array(JX),mn,uf,Y7=0;Y7<JX;++Y7)(mn=WN[Y7])&&(uf=g.call(mn,mn.__data__,Y7,WN))&&("__data__"in mn&&(uf.__data__=mn.__data__),bf[Y7]=uf,kgX(bf[Y7],z,u,Y7,bf,Th(mn,u)));return new Zx(XO,this._parents,z,u)},
filter:function(g){typeof g!=="function"&&(g=Jcw(g));for(var z=this._groups,u=z.length,TX=Array(u),Iq=0;Iq<u;++Iq)for(var XO=z[Iq],g8=XO.length,WN=TX[Iq]=[],JX,bf=0;bf<g8;++bf)(JX=XO[bf])&&g.call(JX,JX.__data__,bf,XO)&&WN.push(JX);return new Zx(TX,this._parents,this._name,this._id)},
merge:function(g){if(g._id!==this._id)throw Error();var z=this._groups;g=g._groups;for(var u=z.length,TX=Math.min(u,g.length),Iq=Array(u),XO=0;XO<TX;++XO)for(var g8=z[XO],WN=g[XO],JX=g8.length,bf=Iq[XO]=Array(JX),mn,uf=0;uf<JX;++uf)if(mn=g8[uf]||WN[uf])bf[uf]=mn;for(;XO<u;++XO)Iq[XO]=z[XO];return new Zx(Iq,this._parents,this._name,this._id)},
selection:function(){return new tmR(this._groups,this._parents)},
transition:function(){for(var g=this._name,z=this._id,u=++FFz,TX=this._groups,Iq=TX.length,XO=0;XO<Iq;++XO)for(var g8=TX[XO],WN=g8.length,JX,bf=0;bf<WN;++bf)if(JX=g8[bf]){var mn=Th(JX,z);kgX(JX,g,u,bf,g8,{time:mn.time+mn.delay+mn.duration,delay:0,duration:mn.duration,ease:mn.ease})}return new Zx(TX,this._parents,g,u)},
call:ZW.call,nodes:ZW.nodes,node:ZW.node,size:ZW.size,empty:ZW.empty,each:ZW.each,on:function(g,z){var u=this._id;return arguments.length<2?Th(this.node(),u).on.on(g):this.each(Zf5(u,g,z))},
attr:function(g,z){var u=Z(g),TX=u==="transform"?H4U:S9w;return this.attrTween(g,typeof z==="function"?(u.local?OfU:WDN)(u,TX,BpE(this,"attr."+g,z)):z==null?(u.local?csg:Js2)(u):(u.local?ysk:FNk)(u,TX,z+""))},
attrTween:function(g,z){var u="attr."+g;if(arguments.length<2)return(u=this.tween(u))&&u._value;if(z==null)return this.tween(u,null);if(typeof z!=="function")throw Error();var TX=Z(g);return this.tween(u,(TX.local?ifN:bfk)(TX,z))},
style:function(g,z,u){var TX=g==="transform"?Gp1:S9w;return z==null?this.styleTween(g,ab8(g,TX)).on("end.style."+g,m$8(g)):this.styleTween(g,typeof z==="function"?Es9(g,TX,BpE(this,"style."+g,z)):Y3N(g,TX,z+""),u)},
styleTween:function(g,z,u){var TX="style."+g;if(arguments.length<2)return(TX=this.tween(TX))&&TX._value;if(z==null)return this.tween(TX,null);if(typeof z!=="function")throw Error();return this.tween(TX,wkU(g,z,u==null?"":u))},
text:function(g){return this.tween("text",typeof g==="function"?Xk1(BpE(this,"text",g)):A$Z(g==null?"":g+""))},
remove:function(){return this.on("end.remove",IbU(this._id))},
tween:function(g,z){var u=this._id;if(arguments.length<2){u=Th(this.node(),u).tween;for(var TX=0,Iq=u.length,XO;TX<Iq;++TX)if((XO=u[TX]).name===g)return XO.value;return null}return this.each((z==null?M6B:uvR)(u,g,z))},
delay:function(g){var z=this._id;return arguments.length?this.each((typeof g==="function"?j6k:TQR)(z,g)):Th(this.node(),z).delay},
duration:function(g){var z=this._id;return arguments.length?this.each((typeof g==="function"?LD9:d$8)(z,g)):Th(this.node(),z).duration},
ease:function(g){var z=this._id;return arguments.length?this.each(h6k(z,g)):Th(this.node(),z).ease}};
var FFP={time:null,delay:0,duration:250,ease:function(g){return((g*=2)<=1?g*g*g:(g-=2)*g*g+2)/2}};
IN.prototype.transition=function(g){var z;if(g instanceof Zx){var u=g._id;g=g._name}else u=++FFz,(z=FFP).time=zB(),g=g==null?null:g+"";for(var TX=this._groups,Iq=TX.length,XO=0;XO<Iq;++XO)for(var g8=TX[XO],WN=g8.length,JX,bf=0;bf<WN;++bf)if(JX=g8[bf]){var mn=JX,uf=g,Y7=u,wA=bf,$4=g8,pz;if(!(pz=z))a:{pz=void 0;for(var tS=u;!(pz=JX.__transition)||!(pz=pz[tS]);)if(!(JX=JX.parentNode)){pz=(FFP.time=zB(),FFP);break a}}kgX(mn,uf,Y7,wA,$4,pz)}return new Zx(TX,this._parents,g,u)};
["e","w"].map(rcT);["n","s"].map(rcT);"n e s w nw ne se sw".split(" ").map(rcT);DvX.prototype=function(){return new DvX}.prototype={constructor:DvX,
moveTo:function(g,z){this._+="M"+(this._x0=this._x1=+g)+","+(this._y0=this._y1=+z)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(g,z){this._+="L"+(this._x1=+g)+","+(this._y1=+z)},
bezierCurveTo:function(g,z,u,TX,Iq,XO){this._+="C"+ +g+","+ +z+","+ +u+","+ +TX+","+(this._x1=+Iq)+","+(this._y1=+XO)},
rect:function(g,z,u,TX){this._+="M"+(this._x0=this._x1=+g)+","+(this._y0=this._y1=+z)+"h"+ +u+"v"+ +TX+"h"+-u+"Z"},
toString:function(){return this._}};
EbT.prototype=Ic9.prototype={constructor:EbT,has:function(g){return" "+g in this},
get:function(g){return this[" "+g]},
set:function(g,z){this[" "+g]=z;return this},
remove:function(g){g=" "+g;return g in this&&delete this[g]},
clear:function(){for(var g in this)g[0]===" "&&delete this[g]},
keys:function(){var g=[],z;for(z in this)z[0]===" "&&g.push(z.slice(1));return g},
values:function(){var g=[],z;for(z in this)z[0]===" "&&g.push(this[z]);return g},
entries:function(){var g=[],z;for(z in this)z[0]===" "&&g.push({key:z.slice(1),value:this[z]});return g},
size:function(){var g=0,z;for(z in this)z[0]===" "&&++g;return g},
empty:function(){for(var g in this)if(g[0]===" ")return!1;return!0},
each:function(g){for(var z in this)z[0]===" "&&g(this[z],z.slice(1),this)}};
var H7=Ic9.prototype;wj8.prototype=function(g,z){var u=new wj8;if(g instanceof wj8)g.each(function(XO){u.add(XO)});
else if(g){var TX=-1,Iq=g.length;if(z==null)for(;++TX<Iq;)u.add(g[TX]);else for(;++TX<Iq;)u.add(z(g[TX],TX,g))}return u}.prototype={constructor:wj8,
has:H7.has,add:function(g){this[" "+g]=g;return this},
remove:H7.remove,clear:H7.clear,values:H7.keys,size:H7.size,empty:H7.empty,each:H7.each};var Y9n={},xvQ={},$ag=mvq(",").parse,VmU=mvq("\t").parse;E8w($ag);E8w(VmU);var FE=function(g,z,u){z=new z4e(z==null?PM2:z,u==null?pkD:u,NaN,NaN,NaN,NaN);return g==null?z:z.addAll(g)}.prototype=z4e.prototype;
FE.copy=function(){var g=new z4e(this._x,this._y,this._x0,this._y0,this._x1,this._y1),z=this._root,u,TX;if(!z)return g;if(!z.length)return g._root=AcN(z),g;for(u=[{source:z,target:g._root=Array(4)}];z=u.pop();)for(var Iq=0;Iq<4;++Iq)if(TX=z.source[Iq])TX.length?u.push({source:TX,target:z.target[Iq]=Array(4)}):z.target[Iq]=AcN(TX);return g};
FE.add=function(g){var z=+this._x.call(null,g),u=+this._y.call(null,g);return wqf(this.cover(z,u),z,u,g)};
FE.addAll=function(g){var z,u,TX=g.length,Iq,XO,g8=Array(TX),WN=Array(TX),JX=Infinity,bf=Infinity,mn=-Infinity,uf=-Infinity;for(u=0;u<TX;++u)isNaN(Iq=+this._x.call(null,z=g[u]))||isNaN(XO=+this._y.call(null,z))||(g8[u]=Iq,WN[u]=XO,Iq<JX&&(JX=Iq),Iq>mn&&(mn=Iq),XO<bf&&(bf=XO),XO>uf&&(uf=XO));mn<JX&&(JX=this._x0,mn=this._x1);uf<bf&&(bf=this._y0,uf=this._y1);this.cover(JX,bf).cover(mn,uf);for(u=0;u<TX;++u)wqf(this,g8[u],WN[u],g[u]);return this};
FE.cover=function(g,z){if(isNaN(g=+g)||isNaN(z=+z))return this;var u=this._x0,TX=this._y0,Iq=this._x1,XO=this._y1;if(isNaN(u))Iq=(u=Math.floor(g))+1,XO=(TX=Math.floor(z))+1;else if(u>g||g>Iq||TX>z||z>XO){var g8=Iq-u,WN=this._root,JX;switch(JX=(z<(TX+XO)/2)<<1|g<(u+Iq)/2){case 0:do{var bf=Array(4);bf[JX]=WN;WN=bf}while(g8*=2,Iq=u+g8,XO=TX+g8,g>Iq||z>XO);break;case 1:do bf=Array(4),bf[JX]=WN,WN=bf;while(g8*=2,u=Iq-g8,XO=TX+g8,u>g||z>XO);break;case 2:do bf=Array(4),bf[JX]=WN,WN=bf;while(g8*=2,Iq=u+g8,
TX=XO-g8,g>Iq||TX>z);break;case 3:do bf=Array(4),bf[JX]=WN,WN=bf;while(g8*=2,u=Iq-g8,TX=XO-g8,u>g||TX>z)}this._root&&this._root.length&&(this._root=WN)}else return this;this._x0=u;this._y0=TX;this._x1=Iq;this._y1=XO;return this};
FE.data=function(){var g=[];this.visit(function(z){if(!z.length){do g.push(z.data);while(z=z.next)}});
return g};
FE.extent=function(g){return arguments.length?this.cover(+g[0][0],+g[0][1]).cover(+g[1][0],+g[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
FE.find=function(g,z,u){var TX=this._x0,Iq=this._y0,XO,g8,WN,JX,bf=this._x1,mn=this._y1,uf=[],Y7=this._root,wA;Y7&&uf.push(new ch(Y7,TX,Iq,bf,mn));u==null?u=Infinity:(TX=g-u,Iq=z-u,bf=g+u,mn=z+u,u*=u);for(;wA=uf.pop();)if(!(!(Y7=wA.node)||(XO=wA.x0)>bf||(g8=wA.y0)>mn||(WN=wA.x1)<TX||(JX=wA.y1)<Iq))if(Y7.length){wA=(XO+WN)/2;var $4=(g8+JX)/2;uf.push(new ch(Y7[3],wA,$4,WN,JX),new ch(Y7[2],XO,$4,wA,JX),new ch(Y7[1],wA,g8,WN,$4),new ch(Y7[0],XO,g8,wA,$4));if(Y7=(z>=$4)<<1|g>=wA)wA=uf[uf.length-1],uf[uf.length-
1]=uf[uf.length-1-Y7],uf[uf.length-1-Y7]=wA}else if(wA=g-+this._x.call(null,Y7.data),$4=z-+this._y.call(null,Y7.data),wA=wA*wA+$4*$4,wA<u){var pz=Math.sqrt(u=wA);TX=g-pz;Iq=z-pz;bf=g+pz;mn=z+pz;pz=Y7.data}return pz};
FE.remove=function(g){if(isNaN(JX=+this._x.call(null,g))||isNaN(bf=+this._y.call(null,g)))return this;var z,u=this._root,TX,Iq=this._x0,XO=this._y0,g8=this._x1,WN=this._y1,JX,bf,mn,uf,Y7,wA,$4;if(!u)return this;if(u.length)for(;;){(Y7=JX>=(mn=(Iq+g8)/2))?Iq=mn:g8=mn;(wA=bf>=(uf=(XO+WN)/2))?XO=uf:WN=uf;if(!(z=u,u=u[$4=wA<<1|Y7]))return this;if(!u.length)break;if(z[$4+1&3]||z[$4+2&3]||z[$4+3&3]){var pz=z;var tS=$4}}for(;u.data!==g;)if(!(TX=u,u=u.next))return this;(g=u.next)&&delete u.next;if(TX)return g?
TX.next=g:delete TX.next,this;if(!z)return this._root=g,this;g?z[$4]=g:delete z[$4];(u=z[0]||z[1]||z[2]||z[3])&&u===(z[3]||z[2]||z[1]||z[0])&&!u.length&&(pz?pz[tS]=u:this._root=u);return this};
FE.removeAll=function(g){for(var z=0,u=g.length;z<u;++z)this.remove(g[z]);return this};
FE.root=function(){return this._root};
FE.size=function(){var g=0;this.visit(function(z){if(!z.length){do++g;while(z=z.next)}});
return g};
FE.visit=function(g){var z=[],u,TX=this._root,Iq,XO,g8,WN,JX;for(TX&&z.push(new ch(TX,this._x0,this._y0,this._x1,this._y1));u=z.pop();)if(!g(TX=u.node,XO=u.x0,g8=u.y0,WN=u.x1,JX=u.y1)&&TX.length){u=(XO+WN)/2;var bf=(g8+JX)/2;(Iq=TX[3])&&z.push(new ch(Iq,u,bf,WN,JX));(Iq=TX[2])&&z.push(new ch(Iq,XO,bf,u,JX));(Iq=TX[1])&&z.push(new ch(Iq,u,g8,WN,bf));(Iq=TX[0])&&z.push(new ch(Iq,XO,g8,u,bf))}};
FE.visitAfter=function(g){var z=[],u=[],TX;for(this._root&&z.push(new ch(this._root,this._x0,this._y0,this._x1,this._y1));TX=z.pop();){var Iq=TX.node;if(Iq.length){var XO,g8=TX.x0,WN=TX.y0,JX=TX.x1,bf=TX.y1,mn=(g8+JX)/2,uf=(WN+bf)/2;(XO=Iq[0])&&z.push(new ch(XO,g8,WN,mn,uf));(XO=Iq[1])&&z.push(new ch(XO,mn,WN,JX,uf));(XO=Iq[2])&&z.push(new ch(XO,g8,uf,mn,bf));(XO=Iq[3])&&z.push(new ch(XO,mn,uf,JX,bf))}u.push(TX)}for(;TX=u.pop();)g(TX.node,TX.x0,TX.y0,TX.x1,TX.y1);return this};
FE.x=function(g){return arguments.length?(this._x=g,this):this._x};
FE.y=function(g){return arguments.length?(this._y=g,this):this._y};
var gs8=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;CKQ.prototype=q9i.prototype;q9i.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 e4v,PK$={"%":function(g,z){return(g*100).toFixed(z)},
b:function(g){return Math.round(g).toString(2)},
c:function(g){return g+""},
d:function(g){return Math.round(g).toString(10)},
e:function(g,z){return g.toExponential(z)},
f:function(g,z){return g.toFixed(z)},
g:function(g,z){return g.toPrecision(z)},
o:function(g){return Math.round(g).toString(8)},
p:function(g,z){return Xq$(g*100,z)},
r:Xq$,s:function(g,z){var u=At8(g,z);if(!u)return g+"";var TX=u[0];u=u[1];u=u-(e4v=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var Iq=TX.length;return u===Iq?TX:u>Iq?TX+Array(u-Iq+1).join("0"):u>0?TX.slice(0,u)+"."+TX.slice(u):"0."+Array(1-u).join("0")+At8(g,Math.max(0,z+u-1))[0]},
X:function(g){return Math.round(g).toString(16).toUpperCase()},
x:function(g){return Math.round(g).toString(16)}},lc1="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),N78;
(function(g){return N78=osg(g)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});zR.prototype={constructor:zR,reset:function(){this.s=this.t=0},
add:function(g){pqH(R0P,g,this.t);pqH(this,R0P.s,this.s);this.s?this.t+=R0P.t:this.s=R0P.t},
valueOf:function(){return this.s}};
var R0P=new zR,o1=Math.PI,fF=o1/2,yc$=o1/4,MmN=o1*2,ycT=o1/180,IV=Math.abs,WQi=Math.atan,Q3S=Math.atan2,Go=Math.cos,QV=Math.sin,Ure=Math.sqrt;new zR;new zR;new zR;var Or1=new zR;(function(g,z,u,TX){return function(Iq){function XO(Wj,w4){g(Wj,w4)&&Iq.point(Wj,w4)}
function g8(Wj,w4){Y7.point(Wj,w4)}
function WN(){TJ.point=g8;Y7.lineStart()}
function JX(){TJ.point=XO;Y7.lineEnd()}
function bf(Wj,w4){ex.push([Wj,w4]);$4.point(Wj,w4)}
function mn(){$4.lineStart();ex=[]}
function uf(){bf(ex[0][0],ex[0][1]);$4.lineEnd();var Wj=$4.clean(),w4=wA.result(),MA=w4.length,aa;ex.pop();tS.push(ex);ex=null;if(MA)if(Wj&1){if(MA=w4[0],(w4=MA.length-1)>0){pz||(Iq.polygonStart(),pz=!0);Iq.lineStart();for(Wj=0;Wj<w4;++Wj)Iq.point((aa=MA[Wj])[0],aa[1]);Iq.lineEnd()}}else MA>1&&Wj&2&&w4.push(w4.pop().concat(w4.shift())),yC.push(w4.filter(BQ5))}
var Y7=z(Iq),wA=kR8(),$4=z(wA),pz=!1,tS,yC,ex,TJ={point:XO,lineStart:WN,lineEnd:JX,polygonStart:function(){TJ.point=bf;TJ.lineStart=mn;TJ.lineEnd=uf;yC=[];tS=[]},
polygonEnd:function(){TJ.point=XO;TJ.lineStart=WN;TJ.lineEnd=JX;var Wj=yC,w4=Wj.length;var MA=-1;for(var aa=0,k7,IR;++MA<w4;)aa+=Wj[MA].length;for(k7=Array(aa);--w4>=0;)for(IR=Wj[w4],MA=IR.length;--MA>=0;)k7[--aa]=IR[MA];yC=k7;Wj=tS;w4=TX[0];aa=TX[1];var i_=QV(aa);MA=[QV(w4),-Go(w4),0];IR=k7=0;Or1.reset();i_===1?aa=fF+1E-6:i_===-1&&(aa=-fF-1E-6);i_=0;for(var XD=Wj.length;i_<XD;++i_)if(ge=(VH=Wj[i_]).length){var VH,ge,$O=VH[ge-1],YX=$O[0],Kr=$O[1]/2+yc$,KCi=QV(Kr),WQS=Go(Kr);for(Kr=0;Kr<ge;++Kr,YX=
irQ,KCi=Orf,WQS=b5,$O=vbX){var vbX=VH[Kr],irQ=vbX[0];b5=vbX[1]/2+yc$;var Orf=QV(b5),b5=Go(b5),If=irQ-YX,br8=If>=0?1:-1,jz2=br8*If,gbQ=jz2>o1;KCi*=Orf;Or1.add(Q3S(KCi*br8*QV(jz2),WQS*b5+KCi*Go(jz2)));k7+=gbQ?If+br8*MmN:If;gbQ^YX>=w4^irQ>=w4&&($O=KF1(R4z($O),R4z(vbX)),v8N($O),YX=KF1(MA,$O),v8N(YX),YX=(gbQ^If>=0?-1:1)*Xj1(YX[2]),aa>YX||aa===YX&&($O[0]||$O[1]))&&(IR+=gbQ^If>=0?1:-1)}}Wj=(k7<-1E-6||k7<1E-6&&Or1<-1E-6)^IR&1;yC.length?(pz||(Iq.polygonStart(),pz=!0),s67(yC,r$k,Wj,u,Iq)):Wj&&(pz||(Iq.polygonStart(),
pz=!0),Iq.lineStart(),u(null,null,1,Iq),Iq.lineEnd());pz&&(Iq.polygonEnd(),pz=!1);yC=tS=null},
sphere:function(){Iq.polygonStart();Iq.lineStart();u(null,null,1,Iq);Iq.lineEnd();Iq.polygonEnd()}};
return TJ}})(function(){return!0},function(g){var z=NaN,u=NaN,TX=NaN,Iq;
return{lineStart:function(){g.lineStart();Iq=1},
point:function(XO,g8){var WN=XO>0?o1:-o1,JX=IV(XO-z);if(IV(JX-o1)<1E-6)g.point(z,u=(u+g8)/2>0?fF:-fF),g.point(TX,u),g.lineEnd(),g.lineStart(),g.point(WN,u),g.point(XO,u),Iq=0;else if(TX!==WN&&JX>=o1){IV(z-TX)<1E-6&&(z-=TX*1E-6);IV(XO-WN)<1E-6&&(XO-=WN*1E-6);JX=z;var bf=u,mn=XO,uf,Y7,wA=QV(JX-mn);u=IV(wA)>1E-6?WQi((QV(bf)*(Y7=Go(g8))*QV(mn)-QV(g8)*(uf=Go(bf))*QV(JX))/(uf*Y7*wA)):(bf+g8)/2;g.point(TX,u);g.lineEnd();g.lineStart();g.point(WN,u);Iq=0}g.point(z=XO,u=g8);TX=WN},
lineEnd:function(){g.lineEnd();z=u=NaN},
clean:function(){return 2-Iq}}},function(g,z,u,TX){g==null?(u*=fF,TX.point(-o1,u),TX.point(0,u),TX.point(o1,u),TX.point(o1,0),TX.point(o1,-u),TX.point(0,-u),TX.point(-o1,-u),TX.point(-o1,0),TX.point(-o1,u)):IV(g[0]-z[0])>1E-6?(g=g[0]<z[0]?o1:-o1,u=u*g/2,TX.point(-g,u),TX.point(0,u),TX.point(g,u)):TX.point(z[0],z[1])},[-o1,
-fF]);new zR;new zR;new zR;new zR;n8T.prototype={constructor:n8T,point:function(g,z){this.stream.point(g,z)},
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()}};
Go(30*ycT);(function(g){return function(z){var u=new n8T,TX;for(TX in g)u[TX]=g[TX];u.stream=z;return u}})({point:function(g,z){this.stream.point(g*ycT,z*ycT)}});
o8f(function(g){return Ure(2/(1+g))}).invert=uz(function(g){return 2*Xj1(g/2)});
o8f(function(g){return(g=g>1?0:g<-1?o1:Math.acos(g))&&g/QV(g)}).invert=uz(function(g){return g});
Ure(3);uz(WQi);uz(Xj1);uz(function(g){return 2*WQi(g)});
Ja.prototype=kgw.prototype={constructor:Ja,count:function(){return this.eachAfter(D$g)},
each:function(g){var z,u=[this],TX;do{var Iq=u.reverse();for(u=[];z=Iq.pop();)if(g(z),z=z.children){var XO=0;for(TX=z.length;XO<TX;++XO)u.push(z[XO])}}while(u.length);return this},
eachAfter:function(g){for(var z,u=[this],TX=[],Iq,XO;z=u.pop();)if(TX.push(z),z=z.children)for(Iq=0,XO=z.length;Iq<XO;++Iq)u.push(z[Iq]);for(;z=TX.pop();)g(z);return this},
eachBefore:function(g){for(var z,u=[this],TX;z=u.pop();)if(g(z),z=z.children)for(TX=z.length-1;TX>=0;--TX)u.push(z[TX]);return this},
sum:function(g){return this.eachAfter(function(z){for(var u=+g(z.data)||0,TX=z.children,Iq=TX&&TX.length;--Iq>=0;)u+=TX[Iq].value;z.value=u})},
sort:function(g){return this.eachBefore(function(z){z.children&&z.children.sort(g)})},
path:function(g){var z=this;var u=z;var TX=g;if(u!==TX){var Iq=u.ancestors(),XO=TX.ancestors(),g8=null;u=Iq.pop();for(TX=XO.pop();u===TX;)g8=u,u=Iq.pop(),TX=XO.pop();u=g8}for(TX=[z];z!==u;)z=z.parent,TX.push(z);for(z=TX.length;g!==u;)TX.splice(z,0,g),g=g.parent;return TX},
ancestors:function(){for(var g=this,z=[g];g=g.parent;)z.push(g);return z},
links:function(){var g=this,z=[];g.each(function(u){u!==g&&z.push({source:u.parent,target:u})});
return z},
copy:function(){return kgw(this).eachBefore(CMk)}};
(function(g,z){this._=g;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=z}).prototype=Object.create(Ja.prototype);
var fcE=new Date,Gg8=new Date,ir5=X9(function(){},function(g,z){g.setTime(+g+z)},function(g,z){return z-g});
ir5.every=function(g){g=Math.floor(g);return isFinite(g)&&g>0?g>1?X9(function(z){z.setTime(Math.floor(z/g)*g)},function(z,u){z.setTime(+z+u*g)},function(z,u){return(u-z)/g}):ir5:null};
X9(function(g){g.setTime(Math.floor(g/1E3)*1E3)},function(g,z){g.setTime(+g+z*1E3)},function(g,z){return(z-g)/1E3},function(g){return g.getUTCSeconds()});
X9(function(g){g.setTime(Math.floor(g/6E4)*6E4)},function(g,z){g.setTime(+g+z*6E4)},function(g,z){return(z-g)/6E4},function(g){return g.getMinutes()});
X9(function(g){var z=g.getTimezoneOffset()*6E4%36E5;z<0&&(z+=36E5);g.setTime(Math.floor((+g-z)/36E5)*36E5+z)},function(g,z){g.setTime(+g+z*36E5)},function(g,z){return(z-g)/36E5},function(g){return g.getHours()});
var rc$=X9(function(g){g.setHours(0,0,0,0)},function(g,z){g.setDate(g.getDate()+z)},function(g,z){return(z-g-(z.getTimezoneOffset()-g.getTimezoneOffset())*6E4)/864E5},function(g){return g.getDate()-1}),CQN=fZ(0),tw8=fZ(1);
fZ(2);fZ(3);var $vi=fZ(4);fZ(5);fZ(6);X9(function(g){g.setDate(1);g.setHours(0,0,0,0)},function(g,z){g.setMonth(g.getMonth()+z)},function(g,z){return z.getMonth()-g.getMonth()+(z.getFullYear()-g.getFullYear())*12},function(g){return g.getMonth()});
var df=X9(function(g){g.setMonth(0,1);g.setHours(0,0,0,0)},function(g,z){g.setFullYear(g.getFullYear()+z)},function(g,z){return z.getFullYear()-g.getFullYear()},function(g){return g.getFullYear()});
df.every=function(g){return isFinite(g=Math.floor(g))&&g>0?X9(function(z){z.setFullYear(Math.floor(z.getFullYear()/g)*g);z.setMonth(0,1);z.setHours(0,0,0,0)},function(z,u){z.setFullYear(z.getFullYear()+u*g)}):null};
X9(function(g){g.setUTCSeconds(0,0)},function(g,z){g.setTime(+g+z*6E4)},function(g,z){return(z-g)/6E4},function(g){return g.getUTCMinutes()});
X9(function(g){g.setUTCMinutes(0,0,0)},function(g,z){g.setTime(+g+z*36E5)},function(g,z){return(z-g)/36E5},function(g){return g.getUTCHours()});
var BpH=X9(function(g){g.setUTCHours(0,0,0,0)},function(g,z){g.setUTCDate(g.getUTCDate()+z)},function(g,z){return(z-g)/864E5},function(g){return g.getUTCDate()-1}),qik=GE(0),Hg2=GE(1);
GE(2);GE(3);var Vw8=GE(4);GE(5);GE(6);X9(function(g){g.setUTCDate(1);g.setUTCHours(0,0,0,0)},function(g,z){g.setUTCMonth(g.getUTCMonth()+z)},function(g,z){return z.getUTCMonth()-g.getUTCMonth()+(z.getUTCFullYear()-g.getUTCFullYear())*12},function(g){return g.getUTCMonth()});
var hK=X9(function(g){g.setUTCMonth(0,1);g.setUTCHours(0,0,0,0)},function(g,z){g.setUTCFullYear(g.getUTCFullYear()+z)},function(g,z){return z.getUTCFullYear()-g.getUTCFullYear()},function(g){return g.getUTCFullYear()});
hK.every=function(g){return isFinite(g=Math.floor(g))&&g>0?X9(function(z){z.setUTCFullYear(Math.floor(z.getUTCFullYear()/g)*g);z.setUTCMonth(0,1);z.setUTCHours(0,0,0,0)},function(z,u){z.setUTCFullYear(z.getUTCFullYear()+u*g)}):null};
var s3H={"-":"",_:" ",0:"0"},Pg=/^\s*\d+/,zuk=/^%/,xag=/[\\^$*+?|[\]().{}]/g,ob1;(function(g){ob1=ns1(g);xe1=ob1.utcFormat;zXU=ob1.utcParse;return ob1})({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||xe1("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||zXU("%Y-%m-%dT%H:%M:%S.%LZ");db("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
db("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");db("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");db("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");db("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");db("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");db("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
db("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");db("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");db("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");db("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");db("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var u1g=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(db);Nr(u1g);var JNk=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(db);Nr(JNk);var cN1=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(db);Nr(cN1);var FBB=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(db);
Nr(FBB);var yNB=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(db);Nr(yNB);var WH8=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(db);Nr(WH8);var OOU=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(db);Nr(OOU);var iOP=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(db);Nr(iOP);var bON=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(db);Nr(bON);var jKP=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(db);Nr(jKP);var T95=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(db);Nr(T95);var LHg=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(db);Nr(LHg);var dn8=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(db);Nr(dn8);var hfN=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(db);Nr(hfN);var SRU=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(db);Nr(SRU);var ZOP=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(db);Nr(ZOP);var IBZ=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(db);Nr(IBZ);var aB8=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(db);Nr(aB8);var mnD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(db);Nr(mnD);var YR5=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(db);Nr(YR5);var EHD=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(db);Nr(EHD);var wx9=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(db);Nr(wx9);var AYk=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(db);Nr(AYk);var XxU=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(db);Nr(XxU);var UnD=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(db);Nr(UnD);var lBg=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(db);Nr(lBg);var efg=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(db);Nr(efg);cc2(Uv(300,.5,0),Uv(-240,.5,1));cc2(Uv(-100,.75,.35),Uv(80,1.5,.8));cc2(Uv(260,.75,.35),Uv(80,1.5,.8));Uv();wg();PtX(db("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
PtX(db("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
PtX(db("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
PtX(db("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
twL.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(g,z){g=+g;z=+z;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(g,z):this._context.moveTo(g,z);break;case 1:this._point=2;default:this._context.lineTo(g,z)}}};
(function(g){function z(u){return new $vS(g(u))}
z._curve=g;return z})(function(g){return new twL(g)});
$vS.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(g,z){this._curve.point(z*Math.sin(g),z*-Math.cos(g))}};
MwO.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:Nph(this,this._t0,Npq(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(g,z){var u=NaN;g=+g;z=+z;if(g!==this._x1||z!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(g,z):this._context.moveTo(g,z);break;case 1:this._point=2;break;case 2:this._point=3;Nph(this,Npq(this,u=VwL(this,g,z)),u);break;default:Nph(this,this._t0,u=VwL(this,g,z))}this._x0=this._x1;this._x1=g;this._y0=this._y1;this._y1=z;this._t0=u}}};
(function(g){this._context=new MwU(g)}.prototype=Object.create(MwO.prototype)).point=function(g,z){MwO.prototype.point.call(this,z,g)};
MwU.prototype={moveTo:function(g,z){this._context.moveTo(z,g)},
closePath:function(){this._context.closePath()},
lineTo:function(g,z){this._context.lineTo(z,g)},
bezierCurveTo:function(g,z,u,TX,Iq,XO){this._context.bezierCurveTo(z,g,TX,u,XO,Iq)}};
WI.prototype={constructor:WI,scale:function(g){return g===1?this:new WI(this.k*g,this.x,this.y)},
translate:function(g,z){return g===0&z===0?this:new WI(this.k,this.x+this.k*g,this.y+this.k*z)},
apply:function(g){return[g[0]*this.k+this.x,g[1]*this.k+this.y]},
invert:function(g){return[(g[0]-this.x)/this.k,(g[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new WI(1,0,0);I1X=H9;nF.svg=nF.svg;nF.xhtml=nF.xhtml;nF.xlink=nF.xlink;nF.xml=nF.xml;nF.xmlns=nF.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 Cmz="hammer_"+(Math.random()*1E6|0),qlU=function(){var W=document||document;if(!W[Cmz]){var O=function(){(function(b,T,L,h){function Z(eQ,Di,H2){return setTimeout(l(eQ,H2),Di)}
function a(eQ,Di,H2){return Array.isArray(eQ)?(m(eQ,H2[Di],H2),!0):!1}
function m(eQ,Di,H2){var A9;if(eQ)if(eQ.forEach)eQ.forEach(Di,H2);else if(eQ.length!==h){var LU=0;for(A9=eQ.length;LU<A9;LU++)Di.call(H2,eQ[LU],LU,eQ)}else for(LU in eQ)eQ.hasOwnProperty(LU)&&Di.call(H2,eQ[LU],LU,eQ)}
function w(eQ,Di,H2){for(var A9=Object.keys(Di),LU=0,oR=A9.length;LU<oR;LU++)if(!H2||H2&&eQ[A9[LU]]===h)eQ[A9[LU]]=Di[A9[LU]];return eQ}
function A(eQ,Di){return w(eQ,Di,!0)}
function X(eQ,Di,H2){Di=Di.prototype;var A9=eQ.prototype=Object.create(Di);A9.constructor=eQ;A9._super=Di;H2&&w(A9,H2)}
function l(eQ,Di){return function(){return eQ.apply(Di,arguments)}}
function p(eQ,Di){return typeof eQ=="function"?eQ.apply(Di?Di[0]||h:h,Di):eQ}
function K(eQ,Di,H2){m(r(Di),function(A9){eQ.addEventListener(A9,H2,!1)})}
function k(eQ,Di,H2){m(r(Di),function(A9){eQ.removeEventListener(A9,H2,!1)})}
function r(eQ){return eQ.trim().split(/\s+/g)}
function q(eQ,Di,H2){if(eQ.indexOf&&!H2)return eQ.indexOf(Di);for(var A9=0,LU=eQ.length;A9<LU;A9++)if(H2&&eQ[A9][H2]==Di||!H2&&eQ[A9]===Di)return A9;return-1}
function f(eQ,Di,H2){for(var A9=[],LU=[],oR=0,aN=eQ.length;oR<aN;oR++){var e5=Di?eQ[oR][Di]:eQ[oR];q(LU,e5)<0&&A9.push(eQ[oR]);LU[oR]=e5}H2&&(A9=Di?A9.sort(function(Uv,m8){return Uv[Di]>m8[Di]}):A9.sort());
return A9}
function M(eQ,Di){for(var H2,A9=Di[0].toUpperCase()+Di.slice(1),LU=0,oR=u1.length;LU<oR;LU++)if(H2=(H2=u1[LU])?H2+A9:Di,H2 in eQ)return H2;return h}
function V(eQ,Di){var H2=this;this.manager=eQ;this.callback=Di;this.element=eQ.element;this.target=eQ.options.inputTarget;this.domHandler=function(A9){p(eQ.options.enable,[eQ])&&H2.handler(A9)};
this.evEl&&K(this.element,this.evEl,this.domHandler);this.evTarget&&K(this.target,this.evTarget,this.domHandler);this.evWin&&K(b,this.evWin,this.domHandler)}
function jQ(eQ){var Di;lN?Di=nE:X0?Di=tX:H9?Di=yh:Di=r8;return new Di(eQ,y)}
function y(eQ,Di,H2){var A9=H2.pointers.length,LU=H2.changedPointers.length,oR=Di&1&&A9-LU===0;H2.isFirst=!!oR;H2.isFinal=!!(Di&12&&A9-LU===0);oR&&(eQ.session={});H2.eventType=Di;Di=eQ.session;A9=H2.pointers;LU=A9.length;Di.firstInput||(Di.firstInput=d8(H2));LU>1&&!Di.firstMultiple?Di.firstMultiple=d8(H2):LU===1&&(Di.firstMultiple=!1);oR=Di.firstInput;var aN=(LU=Di.firstMultiple)?LU.center:oR.center,e5=H2.center=pE(A9);H2.timeStamp=lk();H2.deltaTime=H2.timeStamp-oR.timeStamp;H2.angle=fE(aN,e5);H2.distance=
KE(aN,e5);oR=H2.center;aN=Di.offsetDelta||{};e5=Di.prevDelta||{};var Uv=Di.prevInput||{};if(H2.eventType===1||Uv.eventType===4)e5=Di.prevDelta={x:Uv.deltaX||0,y:Uv.deltaY||0},aN=Di.offsetDelta={x:oR.x,y:oR.y};H2.deltaX=e5.x+(oR.x-aN.x);H2.deltaY=e5.y+(oR.y-aN.y);H2.offsetDirection=Qh(H2.deltaX,H2.deltaY);LU?(oR=LU.pointers,oR=KE(A9[0],A9[1],wg)/KE(oR[0],oR[1],wg)):oR=1;H2.scale=oR;LU?(LU=LU.pointers,A9=fE(A9[1],A9[0],wg)-fE(LU[1],LU[0],wg)):A9=0;H2.rotation=A9;aN=Di.lastInterval||H2;A9=H2.timeStamp-
aN.timeStamp;H2.eventType!=8&&(A9>25||aN.velocity===h)?(oR=aN.deltaX-H2.deltaX,aN=aN.deltaY-H2.deltaY,e5=oR/A9||0,Uv=aN/A9||0,A9=e5,LU=Uv,e5=vN(e5)>vN(Uv)?e5:Uv,oR=Qh(oR,aN),Di.lastInterval=H2):(e5=aN.velocity,A9=aN.velocityX,LU=aN.velocityY,oR=aN.direction);H2.velocity=e5;H2.velocityX=A9;H2.velocityY=LU;H2.direction=oR;Di=eQ.element;a:{for(A9=H2.srcEvent.target;A9;){if(A9==Di){A9=!0;break a}A9=A9.parentNode}A9=!1}A9&&(Di=H2.srcEvent.target);H2.target=Di;eQ.emit("hammer.input",H2);eQ.recognize(H2);
eQ.session.prevInput=H2}
function d8(eQ){for(var Di=[],H2=0;H2<eQ.pointers.length;H2++)Di[H2]={clientX:IN(eQ.pointers[H2].clientX),clientY:IN(eQ.pointers[H2].clientY)};return{timeStamp:lk(),pointers:Di,center:pE(Di),deltaX:eQ.deltaX,deltaY:eQ.deltaY}}
function pE(eQ){var Di=eQ.length;if(Di===1)return{x:IN(eQ[0].clientX),y:IN(eQ[0].clientY)};for(var H2=0,A9=0,LU=0;LU<Di;LU++)H2+=eQ[LU].clientX,A9+=eQ[LU].clientY;return{x:IN(H2/Di),y:IN(A9/Di)}}
function Qh(eQ,Di){return eQ===Di?1:vN(eQ)>=vN(Di)?eQ>0?2:4:Di>0?8:16}
function KE(eQ,Di,H2){H2||(H2=t9);var A9=Di[H2[0]]-eQ[H2[0]];eQ=Di[H2[1]]-eQ[H2[1]];return Math.sqrt(A9*A9+eQ*eQ)}
function fE(eQ,Di,H2){H2||(H2=t9);return Math.atan2(Di[H2[1]]-eQ[H2[1]],Di[H2[0]]-eQ[H2[0]])*180/Math.PI}
function r8(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function nE(){this.evEl=EM;this.evWin=jJ;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function tX(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function yh(){V.apply(this,arguments);var eQ=l(this.handler,this);this.touch=new tX(this.manager,eQ);this.mouse=new r8(this.manager,eQ)}
function Gw(eQ,Di){this.manager=eQ;this.set(Di)}
function KH(eQ){if(eQ.indexOf("none")>-1)return"none";var Di=eQ.indexOf("pan-x")>-1,H2=eQ.indexOf("pan-y")>-1;return Di&&H2?"pan-x pan-y":Di||H2?Di?"pan-x":"pan-y":eQ.indexOf("manipulation")>-1?"manipulation":"auto"}
function h9(eQ){this.id=ZG++;this.manager=null;this.options=A(eQ||{},this.defaults);eQ=this.options.enable;this.options.enable=eQ===h?!0:eQ;this.state=1;this.simultaneous={};this.requireFail=[]}
function I7(eQ){return eQ==16?"down":eQ==8?"up":eQ==2?"left":eQ==4?"right":""}
function T1(eQ,Di){return(Di=Di.manager)?Di.get(eQ):eQ}
function Y$(){h9.apply(this,arguments)}
function aR(){Y$.apply(this,arguments);this.pY=this.pX=null}
function f0(){Y$.apply(this,arguments)}
function SQ(){h9.apply(this,arguments);this._input=this._timer=null}
function R7(){Y$.apply(this,arguments)}
function zw(){Y$.apply(this,arguments)}
function G1(){h9.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function k$(eQ,Di){Di=Di||{};var H2=Di.recognizers;Di.recognizers=H2===h?k$.defaults.preset:H2;return new Nz(eQ,Di)}
function Nz(eQ,Di){Di=Di||{};this.options=A(Di,k$.defaults);this.options.inputTarget=this.options.inputTarget||eQ;this.handlers={};this.session={};this.recognizers=[];this.element=eQ;this.input=jQ(this);this.touchAction=new Gw(this,this.options.touchAction);NE(this,!0);m(Di.recognizers,function(H2){var A9=this.add(new H2[0](H2[1]));H2[2]&&A9.recognizeWith(H2[2]);H2[3]&&A9.requireFailure(H2[2])},this)}
function NE(eQ,Di){var H2=eQ.element;m(eQ.options.cssProps,function(A9,LU){H2.style[M(H2.style,LU)]=Di?A9:""})}
function XU(eQ,Di){var H2=T.createEvent("Event");H2.initEvent(eQ,!0,!0);H2.gesture=Di;Di.target.dispatchEvent(H2)}
var u1=" webkit moz MS ms o".split(" "),pH=T.createElement("div"),IN=Math.round,vN=Math.abs,lk=Date.now,ZG=1,Zf=/mobile|tablet|ip(ad|hone|od)|android/i,H9="ontouchstart"in b,lN=M(b,"PointerEvent")!==h,X0=H9&&Zf.test(navigator.userAgent),t9=["x","y"],wg=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&k(this.element,this.evEl,this.domHandler);this.evTarget&&k(this.target,this.evTarget,this.domHandler);this.evWin&&k(b,this.evWin,this.domHandler)}};
var y2={mousedown:1,mousemove:2,mouseup:4};X(r8,V,{handler:function(eQ){var Di=y2[eQ.type];Di&1&&eQ.button===0&&(this.pressed=!0);Di&2&&eQ.which!==1&&(Di=4);this.pressed&&this.allow&&(Di&4&&(this.pressed=!1),this.callback(this.manager,Di,{pointers:[eQ],changedPointers:[eQ],pointerType:"mouse",srcEvent:eQ}))}});
var m7={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},xX={2:"touch",3:"pen",4:"mouse",5:"kinect"},EM="pointerdown",jJ="pointermove pointerup pointercancel";b.MSPointerEvent&&(EM="MSPointerDown",jJ="MSPointerMove MSPointerUp MSPointerCancel");X(nE,V,{handler:function(eQ){var Di=this.store,H2=!1,A9=eQ.type.toLowerCase().replace("ms","");A9=m7[A9];var LU=xX[eQ.pointerType]||eQ.pointerType;A9&1&&(eQ.button===0||LU=="touch")?Di.push(eQ):A9&12&&(H2=!0);var oR=q(Di,eQ.pointerId,"pointerId");
oR<0||(Di[oR]=eQ,this.callback(this.manager,A9,{pointers:Di,changedPointers:[eQ],pointerType:LU,srcEvent:eQ}),H2&&Di.splice(oR,1))}});
var Um={touchstart:1,touchmove:2,touchend:4,touchcancel:8};X(tX,V,{handler:function(eQ){var Di=Um[eQ.type];var H2=Array.prototype.slice.call(eQ.touches,0);var A9=this.targetIds;if(Di&3&&H2.length===1)A9[H2[0].identifier]=!0,A9=[H2,H2];else{var LU,oR=Array.prototype.slice.call(eQ.targetTouches,0),aN=Array.prototype.slice.call(eQ.changedTouches,0),e5=[];if(Di===1)for(H2=0,LU=oR.length;H2<LU;H2++)A9[oR[H2].identifier]=!0;H2=0;for(LU=aN.length;H2<LU;H2++)A9[aN[H2].identifier]&&e5.push(aN[H2]),Di&12&&
delete A9[aN[H2].identifier];A9=e5.length?[f(oR.concat(e5),"identifier",!0),e5]:void 0}A9&&this.callback(this.manager,Di,{pointers:A9[0],changedPointers:A9[1],pointerType:"touch",srcEvent:eQ})}});
X(yh,V,{handler:function(eQ,Di,H2){var A9=H2.pointerType=="mouse";if(H2.pointerType=="touch")this.mouse.allow=!1;else if(A9&&!this.mouse.allow)return;Di&12&&(this.mouse.allow=!0);this.callback(eQ,Di,H2)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var rC=M(pH.style,"touchAction"),h3=rC!==h;Gw.prototype={set:function(eQ){eQ=="compute"&&(eQ=this.compute());h3&&(this.manager.element.style[rC]=eQ);this.actions=eQ.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var eQ=[];m(this.manager.recognizers,function(Di){p(Di.options.enable,[Di])&&(eQ=eQ.concat(Di.getTouchAction()))});
return KH(eQ.join(" "))},
preventDefaults:function(eQ){if(!h3){var Di=eQ.srcEvent;eQ=eQ.offsetDirection;if(this.manager.session.prevented)Di.preventDefault();else{var H2=this.actions,A9=H2.indexOf("none")>-1,LU=H2.indexOf("pan-y")>-1;H2=H2.indexOf("pan-x")>-1;if(A9||LU&&H2||LU&&eQ&6||H2&&eQ&24)return this.preventSrc(Di)}}},
preventSrc:function(eQ){this.manager.session.prevented=!0;eQ.preventDefault()}};
h9.prototype={defaults:{},set:function(eQ){w(this.options,eQ);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(eQ){if(a(eQ,"recognizeWith",this))return this;var Di=this.simultaneous;eQ=T1(eQ,this);Di[eQ.id]||(Di[eQ.id]=eQ,eQ.recognizeWith(this));return this},
dropRecognizeWith:function(eQ){if(a(eQ,"dropRecognizeWith",this))return this;eQ=T1(eQ,this);delete this.simultaneous[eQ.id];return this},
requireFailure:function(eQ){if(a(eQ,"requireFailure",this))return this;var Di=this.requireFail;eQ=T1(eQ,this);q(Di,eQ)===-1&&(Di.push(eQ),eQ.requireFailure(this));return this},
dropRequireFailure:function(eQ){if(a(eQ,"dropRequireFailure",this))return this;eQ=T1(eQ,this);eQ=q(this.requireFail,eQ);eQ>-1&&this.requireFail.splice(eQ,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(eQ){return!!this.simultaneous[eQ.id]},
emit:function(eQ){function Di(LU){H2.manager.emit(H2.options.event+(LU?A9&16?"cancel":A9&8?"end":A9&4?"move":A9&2?"start":"":""),eQ)}
var H2=this,A9=this.state;A9<8&&Di(!0);Di();A9>=8&&Di(!0)},
tryEmit:function(eQ){if(this.canEmit())return this.emit(eQ);this.state=32},
canEmit:function(){for(var eQ=0;eQ<this.requireFail.length;eQ++)if(!(this.requireFail[eQ].state&33))return!1;return!0},
recognize:function(eQ){eQ=w({},eQ);p(this.options.enable,[this,eQ])?(this.state&56&&(this.state=1),this.state=this.process(eQ),this.state&30&&this.tryEmit(eQ)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
X(Y$,h9,{defaults:{pointers:1},attrTest:function(eQ){var Di=this.options.pointers;return Di===0||eQ.pointers.length===Di},
process:function(eQ){var Di=this.state,H2=eQ.eventType,A9=Di&6;eQ=this.attrTest(eQ);return A9&&(H2&8||!eQ)?Di|16:A9||eQ?H2&4?Di|8:Di&2?Di|4:2:32}});
X(aR,Y$,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var eQ=this.options.direction;if(eQ===30)return["none"];var Di=[];eQ&6&&Di.push("pan-y");eQ&24&&Di.push("pan-x");return Di},
directionTest:function(eQ){var Di=this.options,H2=!0,A9=eQ.distance,LU=eQ.direction,oR=eQ.deltaX,aN=eQ.deltaY;LU&Di.direction||(Di.direction&6?(LU=oR===0?1:oR<0?2:4,H2=oR!=this.pX,A9=Math.abs(eQ.deltaX)):(LU=aN===0?1:aN<0?8:16,H2=aN!=this.pY,A9=Math.abs(eQ.deltaY)));eQ.direction=LU;return H2&&A9>Di.threshold&&LU&Di.direction},
attrTest:function(eQ){return Y$.prototype.attrTest.call(this,eQ)&&(this.state&2||!(this.state&2)&&this.directionTest(eQ))},
emit:function(eQ){this.pX=eQ.deltaX;this.pY=eQ.deltaY;var Di=I7(eQ.direction);Di&&this.manager.emit(this.options.event+Di,eQ);this._super.emit.call(this,eQ)}});
X(f0,Y$,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(eQ){return this._super.attrTest.call(this,eQ)&&(Math.abs(eQ.scale-1)>this.options.threshold||this.state&2)},
emit:function(eQ){this._super.emit.call(this,eQ);eQ.scale!==1&&this.manager.emit(this.options.event+(eQ.scale<1?"in":"out"),eQ)}});
X(SQ,h9,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(eQ){var Di=this.options,H2=eQ.pointers.length===Di.pointers,A9=eQ.distance<Di.threshold,LU=eQ.deltaTime>Di.time;this._input=eQ;if(!A9||!H2||eQ.eventType&12&&!LU)this.reset();else if(eQ.eventType&1)this.reset(),this._timer=Z(function(){this.state=8;this.tryEmit()},Di.time,this);
else if(eQ.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(eQ){this.state===8&&(eQ&&eQ.eventType&4?this.manager.emit(this.options.event+"up",eQ):(this._input.timeStamp=lk(),this.manager.emit(this.options.event,this._input)))}});
X(R7,Y$,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(eQ){return this._super.attrTest.call(this,eQ)&&(Math.abs(eQ.rotation)>this.options.threshold||this.state&2)}});
X(zw,Y$,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return aR.prototype.getTouchAction.call(this)},
attrTest:function(eQ){var Di=this.options.direction;if(Di&30)var H2=eQ.velocity;else Di&6?H2=eQ.velocityX:Di&24&&(H2=eQ.velocityY);return this._super.attrTest.call(this,eQ)&&Di&eQ.direction&&vN(H2)>this.options.velocity&&eQ.eventType&4},
emit:function(eQ){var Di=I7(eQ.direction);Di&&this.manager.emit(this.options.event+Di,eQ);this.manager.emit(this.options.event,eQ)}});
X(G1,h9,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(eQ){var Di=this.options,H2=eQ.pointers.length===Di.pointers,A9=eQ.distance<Di.threshold,LU=eQ.deltaTime<Di.time;this.reset();if(eQ.eventType&1&&this.count===0)return this.failTimeout();if(A9&&LU&&H2){if(eQ.eventType!=4)return this.failTimeout();H2=this.pTime?eQ.timeStamp-this.pTime<Di.interval:!0;A9=!this.pCenter||KE(this.pCenter,eQ.center)<Di.posThreshold;this.pTime=eQ.timeStamp;this.pCenter=eQ.center;A9&&H2?this.count+=1:this.count=1;this._input=eQ;if(this.count%Di.taps===0)return this.hasRequireFailures()?
(this._timer=Z(function(){this.state=8;this.tryEmit()},Di.interval,this),2):8}return 32},
failTimeout:function(){this._timer=Z(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
k$.VERSION="2.0.2";k$.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[R7,{enable:!1}],[f0,{enable:!1},["rotate"]],[zw,{direction:6}],[aR,{direction:6},["swipe"]],[G1],[G1,{event:"doubletap",taps:2},["tap"]],[SQ]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Nz.prototype={set:function(eQ){w(this.options,eQ);return this},
stop:function(eQ){this.session.stopped=eQ?2:1},
recognize:function(eQ){var Di=this.session;if(!Di.stopped){this.touchAction.preventDefaults(eQ);var H2=this.recognizers,A9=Di.curRecognizer;if(!A9||A9&&A9.state&8)A9=Di.curRecognizer=null;for(var LU=0,oR=H2.length;LU<oR;LU++){var aN=H2[LU];Di.stopped===2||A9&&aN!=A9&&!aN.canRecognizeWith(A9)?aN.reset():aN.recognize(eQ);!A9&&aN.state&14&&(A9=Di.curRecognizer=aN)}}},
get:function(eQ){if(eQ instanceof h9)return eQ;for(var Di=this.recognizers,H2=0;H2<Di.length;H2++)if(Di[H2].options.event==eQ)return Di[H2];return null},
add:function(eQ){if(a(eQ,"add",this))return this;var Di=this.get(eQ.options.event);Di&&this.remove(Di);this.recognizers.push(eQ);eQ.manager=this;this.touchAction.update();return eQ},
remove:function(eQ){if(a(eQ,"remove",this))return this;var Di=this.recognizers;eQ=this.get(eQ);Di.splice(q(Di,eQ),1);this.touchAction.update();return this},
on:function(eQ,Di){var H2=this.handlers;m(r(eQ),function(A9){H2[A9]=H2[A9]||[];H2[A9].push(Di)});
return this},
off:function(eQ,Di){var H2=this.handlers;m(r(eQ),function(A9){Di?H2[A9].splice(q(H2[A9],Di),1):delete H2[A9]});
return this},
emit:function(eQ,Di){this.options.domEvents&&XU(eQ,Di);var H2=this.handlers[eQ]&&this.handlers[eQ].slice();if(H2&&H2.length){Di.type=eQ;Di.preventDefault=function(){Di.srcEvent.preventDefault()};
eQ=0;for(var A9=H2.length;eQ<A9;eQ++)H2[eQ](Di)}},
destroy:function(){this.element&&NE(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
w(k$,{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:Nz,Input:V,TouchAction:Gw,Recognizer:h9,AttrRecognizer:Y$,Tap:G1,Pan:aR,Swipe:zw,Pinch:f0,Rotate:R7,Press:SQ,on:K,off:k,each:m,merge:A,extend:w,inherit:X,bindFn:l,prefixed:M});
b[L]=k$})(window,document,"Hammer");
return window.Hammer}.call({});
O.DOCUMENT=W;W[Cmz]=O}return W[Cmz]};/*

 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 nI5=function(W,O){if(W.length!==O.length)return!1;for(var b=0;b<W.length;++b)if(W[b]!==O[b])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var fQU=_.S(["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"]),G0q=fQU.next();!G0q.done;G0q=fQU.next()){var H21=G0q.value,tlS=document.createElement("link");tlS.rel="stylesheet";tlS.href=H21;document.head.appendChild(tlS)};var M6Q,Jsh,FN1,$c1,uv8,V68,HDO,t6q;M6Q={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Jsh={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:"*"};FN1={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};$c1=/[a-z0-9*]/;uv8=/U\+/;V68=/^arrow/;HDO=/^space(bar)?/;t6q=/^escape$/;_.wc={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(W,O){this._imperativeKeyBindings[W]=O;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(W,O){O=WDq(O);for(var b=0;b<O.length;++b)if(cs8(O[b],W))return!0;return!1},
_collectKeyBindings:function(){var W=this.behaviors.map(function(O){return O.keyBindings});
W.indexOf(this.keyBindings)===-1&&W.push(this.keyBindings);return W},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(b){for(var T in b)this._addKeyBinding(T,b[T])},this);
for(var W in this._imperativeKeyBindings)this._addKeyBinding(W,this._imperativeKeyBindings[W]);for(var O in this._keyBindings)this._keyBindings[O].sort(function(b,T){b=b[0].hasModifiers;return b===T[0].hasModifiers?0:b?-1:1})},
_addKeyBinding:function(W,O){WDq(W).forEach(function(b){this._keyBindings[b.event]=this._keyBindings[b.event]||[];this._keyBindings[b.event].push([b,O])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(W){var O=this._onKeyBindingEvent.bind(this,this._keyBindings[W]);this._boundKeyHandlers.push([this.keyEventTarget,W,O]);this.keyEventTarget.addEventListener(W,O)},this)},
_unlistenKeyEventListeners:function(){for(var W,O,b;this._boundKeyHandlers.length;)W=this._boundKeyHandlers.pop(),O=W[0],b=W[1],W=W[2],O.removeEventListener(b,W)},
_onKeyBindingEvent:function(W,O){this.stopKeyboardEventPropagation&&O.stopPropagation();if(!O.defaultPrevented)for(var b=0;b<W.length;b++){var T=W[b][0],L=W[b][1];if(cs8(T,O)&&(this._triggerKeyHandler(T,L,O),O.defaultPrevented))break}},
_triggerKeyHandler:function(W,O,b){var T=Object.create(W);T.keyboardEvent=b;W=new CustomEvent(W.event,{detail:T,cancelable:!0});this[O].call(this,W);W.defaultPrevented&&b.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.v_({is:"iron-a11y-keys",_template:null,behaviors:[_.wc],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(W){this.keyEventTarget=W},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(W){this.fire("keys-pressed",W.detail,{})}});_.Au={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(W){this._setFocused(W.type==="focus")},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false");this.style.pointerEvents=W?"none":"";W?(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 Xr={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(W){this._detectKeyboardFocus(W);W||this._setPressed(!1)},
_detectKeyboardFocus:function(W){this._setReceivedFocusFromKeyboard(!this.pointerDown&&W)},
_userActivate:function(W){this.active!==W&&(this.active=W,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(W){W=W.detail.keyboardEvent;var O=_.Rs(W).localTarget;this.isLightDescendant(O)||(W.preventDefault(),W.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(W){W=_.Rs(W.detail.keyboardEvent).localTarget;this.isLightDescendant(W)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(W,O){O&&O!=W&&this.hasAttribute(O)&&this.removeAttribute(O)},
_activeChanged:function(W){this.toggles?this.setAttribute(this.ariaActiveAttribute,W?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},$e5=[_.wc,
Xr];_.U_={IronButtonState:$e5,IronButtonStateImpl:Xr};_.ls={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.ed=function(W){_.ed[" "](W);this.type=W&&W.type||"default";this.key=W&&W.key;W&&"value"in W&&(this.value=W.value)};
_.ed.prototype.byKey=function(W){this.key=W;return this.value};
_.Jq.Object.defineProperties(_.ed.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W=this.type,O=this.key;if(W&&O)return PL[W]&&PL[W][O]},
set:function(W){var O=this.type,b=this.key;O&&b&&(O=PL[O]=PL[O]||{},W==null?delete O[b]:O[b]=W)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var W=PL[this.type];return W?Object.keys(W).map(function(O){return PL[this.type][O]},this):[]}}});
_.ed[" "]=function(){};
var PL={};_.v_({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(W,O,b){W=new _.ed({type:W,key:O});b!==void 0&&b!==W.value?W.value=b:this.value!==W.value&&(this.value=W.value);return W},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(W){W&&(this.value=this)},
byKey:function(W){return(new _.ed({type:this.type,key:W})).value}});var Vl5;Vl5=null;_.pr={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Vl5=new _.ed({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Vl5&&Vl5.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(W){this.invalid=W===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(W);return!this.invalid},
_getValidity:function(W){return this.hasValidator()?this._validator.validate(W):!0}};var Nin={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"}},MlU=[_.ls,
_.pr,Nin];_.v_({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 _.ed({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(W){return this.name+":"+W},this)},
applyIcon:function(W,O){this.removeIcon(W);if(O=this._cloneIcon(O,this.rtlMirroring&&this._targetIsRTL(W))){var b=_.Rs(W.root||W);b.insertBefore(O,b.childNodes[0]);return W._svgIcon=O}return null},
removeIcon:function(W){W._svgIcon&&(_.Rs(W.root||W).removeChild(W._svgIcon),W._svgIcon=null)},
_targetIsRTL:function(W){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(W&&W.nodeType!==Node.ELEMENT_NODE&&(W=W.host),this.__targetIsRTL=W&&window.getComputedStyle(W).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 W=Object.create(null);_.Rs(this).querySelectorAll("[id]").forEach(function(O){W[O.id]=O});
return W},
_cloneIcon:function(W,O){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[W],this.size,O)},
_prepareSvgClone:function(W,O,b){if(W){W=W.cloneNode(!0);var T=document.createElementNS("http://www.w3.org/2000/svg","svg");O=W.getAttribute("viewBox")||"0 0 "+O+" "+O;var L="pointer-events: none; display: block; width: 100%; height: 100%;";b&&W.hasAttribute("mirror-in-rtl")&&(L+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");T.setAttribute("viewBox",O);T.setAttribute("preserveAspectRatio","xMidYMid meet");T.setAttribute("focusable","false");T.style&&(T.style.cssText=
L);T.appendChild(W).removeAttribute("id");return T}return null}});var uT9=function(W){this.multi=!1;this.selection=[];this.selectCallback=W};
_.d=uT9.prototype;_.d.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.d.clear=function(W){this.selection.slice().forEach(function(O){(!W||W.indexOf(O)<0)&&this.setItemSelected(O,!1)},this)};
_.d.isSelected=function(W){return this.selection.indexOf(W)>=0};
_.d.setItemSelected=function(W,O){if(W!=null&&O!==this.isSelected(W)){if(O)this.selection.push(W);else{var b=this.selection.indexOf(W);b>=0&&this.selection.splice(b,1)}this.selectCallback&&this.selectCallback(W,O)}};
_.d.select=function(W){this.multi?this.toggle(W):this.get()!==W&&(this.setItemSelected(this.get(),!1),this.setItemSelected(W,!0))};
_.d.toggle=function(W){this.setItemSelected(W,!this.isSelected(W))};_.G0={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 uT9(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Rs(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(W){return this.items?this.items.indexOf(W):-1},
select:function(W){this.selected=W},
selectPrevious:function(){var W=this.items.length,O=W-1;this.selected!==void 0&&(O=(Number(this._valueToIndex(this.selected))-1+W)%W);this.selected=this._indexToValue(O)},
selectNext:function(){var W=0;this.selected!==void 0&&(W=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(W)},
selectIndex:function(W){this.select(this._indexToValue(W))},
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(W){this.listen(this,W,"_activateHandler")},
_removeListener:function(W){this.unlisten(this,W,"_activateHandler")},
_activateEventChanged:function(W,O){this._removeListener(O);this._addListener(W)},
_updateItems:function(){var W=_.Rs(this).queryDistributedElements(this.selectable||"*");W=Array.prototype.filter.call(W,this._bindFilterItem);this._setItems(W)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var W=this._valueToItem(this.selected);W?this._selection.select(W):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(W){return!this._excludedLocalNames[W.localName]},
_valueToItem:function(W){return W==null?null:this.items[this._valueToIndex(W)]},
_valueToIndex:function(W){if(this.attrForSelected)for(var O=0,b;b=this.items[O];O++){if(this._valueForItem(b)==W)return O}else return Number(W)},
_indexToValue:function(W){if(this.attrForSelected){if(W=this.items[W])return this._valueForItem(W)}else return W},
_valueForItem:function(W){if(!W)return null;if(!this.attrForSelected)return W=this.indexOf(W),W===-1?null:W;var O=W[hq(this.attrForSelected)];return O!=void 0?O:W.getAttribute(this.attrForSelected)},
_applySelection:function(W,O){this.selectedClass&&this.toggleClass(this.selectedClass,O,W);this.selectedAttribute&&this.toggleAttribute.call(W,this.selectedAttribute,O);this._selectionChange();this.fire("iron-"+(O?"select":"deselect"),{item:W})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(W){return _.Rs(W).observeNodes(function(O){this._updateItems();this._updateSelected();this.fire("iron-items-changed",O,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(W){W=W.target;for(var O=this.items;W&&W!=this;){var b=O.indexOf(W);if(b>=0){O=this._indexToValue(b);this._itemActivate(O,W);break}W=W.parentNode}},
_itemActivate:function(W,O){this.fire("iron-activate",{selected:W,item:O},{cancelable:!0}).defaultPrevented||this.select(W)}};var J1N={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(W){this.multi?this._toggleSelected(W):this.selected=W},
multiChanged:function(W){this._selection.multi=W;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(W){return this._indexToValue(this.indexOf(W))},this).filter(function(W){return W!=null},this)):_.G0._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(W){W=W||[];W=(this._valuesToItems(W)||[]).filter(function(b){return b!==null&&b!==void 0});
this._selection.clear(W);for(var O=0;O<W.length;O++)this._selection.setItemSelected(W[O],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var W=this._selection.get();this.multi?(this._setSelectedItems(W),this._setSelectedItem(W.length?W[0]:null)):W!==null&&W!==void 0?(this._setSelectedItems([W]),this._setSelectedItem(W)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(W){var O=this.selectedValues.indexOf(W);O<0?this.push("selectedValues",W):this.splice("selectedValues",O,1)},
_valuesToItems:function(W){return W==null?null:W.map(function(O){return this._valueToItem(O)},this)}},c17=[_.G0,
J1N];var F59;
_.Rz={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(W){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var O=this._valueToItem(W);O&&O.hasAttribute("disabled")||(this._setFocusedItem(O),J1N.select.apply(this,arguments))},
_resetTabindices:function(){var W=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(O){O.setAttribute("tabindex",O===W?"0":"-1");O.setAttribute("aria-selected",this._selection.isSelected(O))},this)},
_updateMultiselectable:function(W){W?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(W){if(this._MODIFIER_KEYS.indexOf(W.key)===-1){this.cancelDebouncer("_clearSearchText");var O=this._searchText||"";O+=(W.key&&W.key.length==1?W.key:String.fromCharCode(W.keyCode)).toLocaleLowerCase();W=O.length;for(var b=0,T;T=this.items[b];b++)if(!T.hasAttribute("disabled")){var L=this.attrForItemTitle||"textContent";L=(T[L]||T.getAttribute(L)||"").trim();if(!(L.length<W)&&L.slice(0,W).toLocaleLowerCase()==O){this._setFocusedItem(T);break}}this._searchText=O;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var W=this.items.length,O=Number(this.indexOf(this.focusedItem)),b=1;b<W+1;b++){var T=this.items[(O-b+W)%W];if(!T.hasAttribute("disabled")){var L=_.Rs(T).getOwnerRoot()||document;this._setFocusedItem(T);if(_.Rs(L).activeElement==T)break}}},
_focusNext:function(){for(var W=this.items.length,O=Number(this.indexOf(this.focusedItem)),b=1;b<W+1;b++){var T=this.items[(O+b)%W];if(!T.hasAttribute("disabled")){var L=_.Rs(T).getOwnerRoot()||document;this._setFocusedItem(T);if(_.Rs(L).activeElement==T)break}}},
_applySelection:function(W,O){O?W.setAttribute("aria-selected","true"):W.setAttribute("aria-selected","false");_.G0._applySelection.apply(this,arguments)},
_focusedItemChanged:function(W,O){O&&O.setAttribute("tabindex","-1");!W||W.hasAttribute("disabled")||this.disabled||(W.setAttribute("tabindex","0"),W.focus())},
_onIronItemsChanged:function(W){W.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");_.Rz._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);_.Rz._shiftTabPressed=!1},1)},
_onFocus:function(W){!_.Rz._shiftTabPressed&&(W=_.Rs(W).rootTarget,W===this||typeof W.tabIndex==="undefined"||this.isLightDescendant(W))&&(this._defaultFocusAsync=this.async(function(){var O=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);O?this._setFocusedItem(O):this.items[0]&&this._focusNext()}))},
_onUpKey:function(W){this._focusPrevious();W.detail.keyboardEvent.preventDefault()},
_onDownKey:function(W){this._focusNext();W.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var W=this.focusedItem;W&&W.blur()},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down esc")||this._focusWithKeyboardEvent(W);W.stopPropagation()},
_activateHandler:function(W){_.G0._activateHandler.call(this,W);W.stopPropagation()},
_disabledChanged:function(W){W?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};F59=[c17,_.wc,_.Rz];_.y1U={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
_onDownKey:function(W){this.focusedItem&&(this.focusedItem.click(),W.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(W){return W.ctrlKey||W.shiftKey||W.altKey||W.metaKey},
_onLeftKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),W.detail.keyboardEvent.preventDefault())},
_onRightKey:function(W){this._isSpecialKey(W.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),W.detail.keyboardEvent.preventDefault())},
_onKeydown:function(W){this.keyboardEventMatchesKeys(W,"up down left right esc")||this._focusWithKeyboardEvent(W)}};
_.WwS=[F59,_.y1U];var ObS;ObS=new Set;_.vL={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):(ObS.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},this),this._fireResize())},
assignParentResizable:function(W){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=W)&&W._interestedResizables.indexOf(this)===-1&&(W._interestedResizables.push(this),W._subscribeIronResize(this))},
stopResizeNotificationsFor:function(W){var O=this._interestedResizables.indexOf(W);O>-1&&(this._interestedResizables.splice(O,1),this._unsubscribeIronResize(W))},
_subscribeIronResize:function(W){W.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(W){W.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(W){this._notifyingDescendant?W.stopPropagation():zs||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(W){var O=_.Rs(W).rootTarget;O!==this&&(O.assignParentResizable(this),this._notifyDescendant(O),W.stopPropagation())},
_parentResizableChanged:function(W){W&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(W){this.isAttached&&(this._notifyingDescendant=!0,W.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var W=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function b(){document.removeEventListener("readystatechange",b);W()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(O){O!==this&&O._findParent()},this):(ObS.forEach(function(O){O!==this&&O._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?ObS.delete(this):ObS.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
*/
_.ib5={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(W,O){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);O&&(W==="document"?this.scrollTarget=this._doc:typeof W==="string"?this.scrollTarget=(O=this.domHost)&&O.$?O.$[W]:_.Rs(this.ownerDocument).querySelector("#"+W):this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W)))},
_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(W){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,W):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
W)},set _scrollLeft(W){this.scrollTarget===this._doc?window.scrollTo(W,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=W)},scroll:function(W,O){if(typeof W==="object"){var b=W.left;O=W.top}else b=W;b=b||0;O=O||0;this.scrollTarget===this._doc?window.scrollTo(b,O):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=b,this.scrollTarget.scrollTop=O)},
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(W,O){O=O===this._doc?window:O;W?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),O.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(O.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(W){this._shouldHaveListener=W;this._toggleScrollListener(W,this.scrollTarget)}};_.v_({is:"iron-selector",_template:null,behaviors:[c17]});var oz={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(W){if(W.timing)for(var O in W.timing)this.animationTiming[O]=W.timing[O];return this.animationTiming},
setPrefixedProperty:function(W,O,b){for(var T={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[O],L,h=0;L=T[h];h++)W.style[L]=b;W.style[O]=b},
complete:function(){}};_.v_({is:"fade-in-animation",_template:null,behaviors:[oz],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(W))}});_.v_({is:"fade-out-animation",_template:null,behaviors:[oz],configure:function(W){return this._effect=new KeyframeEffect(W.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(W))}});var bbN=[{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(W,O){for(var b in O)W[b]=O[b]},
_cloneConfig:function(W){var O={isClone:!0};this._copyProperties(O,W);return O},
_getAnimationConfigRecursive:function(W,O,b){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var T=W?this.animationConfig[W]:this.animationConfig;Array.isArray(T)||(T=[T]);if(T)for(var L,h=0;L=T[h];h++)if(L.animatable)L.animatable._getAnimationConfigRecursive(L.type||W,O,b);else if(L.id){var Z=O[L.id];
Z?(Z.isClone||(O[L.id]=this._cloneConfig(Z),Z=O[L.id]),this._copyProperties(Z,L)):O[L.id]=L}else b.push(L)}},
getAnimationConfig:function(W){var O={},b=[];this._getAnimationConfigRecursive(W,O,b);for(var T in O)b.push(O[T]);return b}},
{_configureAnimations:function(W){var O=[],b=[];if(W.length>0)for(var T,L=0;T=W[L];L++){var h=document.createElement(T.name);if(h.isNeonAnimation){var Z=null;h.configure||(h.configure=function(){return null});
Z=h.configure(T);b.push({result:Z,config:T})}else console.warn(this.is+":",T.name,"not found!")}for(W=0;W<b.length;W++){Z=b[W].result;T=b[W].config;try{typeof Z.cancel!="function"&&(Z=document.timeline.play(Z))}catch(a){Z=null,console.warn("Couldnt play","(",T.name,").",a)}Z&&O.push({neonAnimation:h,config:T,animation:Z})}return O},
_shouldComplete:function(W){for(var O=!0,b=0;b<W.length;b++)if(W[b].animation.playState!="finished"){O=!1;break}return O},
_complete:function(W){for(var O=0;O<W.length;O++)W[O].neonAnimation.complete(W[O].config);for(O=0;O<W.length;O++)W[O].animation.cancel()},
playAnimation:function(W,O){var b=this.getAnimationConfig(W);if(b){this._active=this._active||{};this._active[W]&&(this._complete(this._active[W]),delete this._active[W]);var T=this._configureAnimations(b);if(T.length==0)this.fire("neon-animation-finish",O,{bubbles:!1});else for(this._active[W]=T,b=0;b<T.length;b++)T[b].animation.onfinish=function(){this._shouldComplete(T)&&(this._complete(T),delete this._active[W],this.fire("neon-animation-finish",O,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var W in this._active){var O=this._active[W],b;for(b in O)O[b].animation&&O[b].animation.cancel&&O[b].animation.cancel()}this._active={}}}];var as=function(W,O){W=Error.call(this,W);this.message=W.message;"stack"in W&&(this.stack=W.stack);this.arg=O;this.name=this.constructor.name;this.constructor=as;this.__proto__=as.prototype};
_.R(as,Error);var jxn=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O.prototype._marshalArgs=function(b,T,L){T=W.prototype._marshalArgs.call(this,b,T,L);if(this._legacyUndefinedCheck&&T.length>1)for(L=0;L<T.length;L++)if(T[L]===void 0||b[L].wildcard&&T[L].base===void 0)throw b=b[L].name,new as("Argument '"+b+"' is undefined.",b);return T};
O.prototype._addPropertyEffect=function(b,T,L){return W.prototype._addPropertyEffect.call(this,b,T,OfE(L,L&&L.info&&L.info.methodName))};
O._addTemplatePropertyEffect=function(b,T,L){return W._addTemplatePropertyEffect.call(this,b,T,OfE(L))};
return O}),TGU=_.v_.Class;
_.v_.Class=function(W,O){return TGU(W,function(b){return O?O(jxn(b)):jxn(b)})};
var LwN=tR(function(W){var O=jxn(W);W=function(){return O.apply(this,arguments)||this};
_.R(W,O);_.Jq.Object.defineProperties(W.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return W}),dqH=qy.mixin;
qy.mixin=dqH?function(W){return LwN(dqH(W))}:LwN;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.QX=_.U_.IronButtonState;var NTE=xF;/*

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

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

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 Cr,ESq,ws9;Cr=Element.prototype;ESq=Cr.matches||Cr.matchesSelector||Cr.mozMatchesSelector||Cr.msMatchesSelector||Cr.oMatchesSelector||Cr.webkitMatchesSelector;ws9=function(){};
_.Xsz=function(W){var O=AP$,b=[];return O._collectTabbableNodes(W,b)?O._sortByTabIndex(b):b};
_.d=ws9.prototype;_.d._normalizedTabIndex=function(W){return(ESq.call(W,"input, select, textarea, button, object")?ESq.call(W,":not([disabled])"):ESq.call(W,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(W=W.getAttribute("tabindex")||0,Number(W)):-1};
_.d._collectTabbableNodes=function(W,O){if(W.nodeType!==Node.ELEMENT_NODE||!this._isVisible(W))return!1;var b=this._normalizedTabIndex(W),T=b>0;b>=0&&O.push(W);if(W.localName==="content"||W.localName==="slot")b=_.Rs(W).getDistributedNodes();else{var L;b=((L=_.Rs(W).shadowRoot)!=null?L:_.Rs(W.root||W)).children}for(W=0;W<b.length;W++)T=this._collectTabbableNodes(b[W],O)||T;return T};
_.d._isVisible=function(W){var O=W.style;return O.visibility!=="hidden"&&O.display!=="none"?(O=window.getComputedStyle(W),O.visibility!=="hidden"&&O.display!=="none"):!1};
_.d._sortByTabIndex=function(W){var O=W.length;if(O<2)return W;var b=Math.ceil(O/2);O=this._sortByTabIndex(W.slice(0,b));W=this._sortByTabIndex(W.slice(b));return this._mergeSortByTabIndex(O,W)};
_.d._mergeSortByTabIndex=function(W,O){for(var b=[];W.length>0&&O.length>0;)this._hasLowerTabOrder(W[0],O[0])?b.push(O.shift()):b.push(W.shift());return b.concat(W,O)};
_.d._hasLowerTabOrder=function(W,O){W=Math.max(W.tabIndex,0);O=Math.max(O.tabIndex,0);return W===0||O===0?O>W:W>O};
var AP$=new ws9;var UfN;var l3$;_.v_({_template:function(){if(l3$!==void 0)return l3$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;UfN===void 0&&(UfN=document.createElement("template"));var T=UfN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return l3$=W},
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&&_.Rs(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Rs(this.parentNode).removeChild(this)},
_onTransitionend:function(W){W&&W.target===this&&this.complete()},
_openedChanged:function(W){W?this.prepare():(W=window.getComputedStyle(this),W.transitionDuration!=="0s"&&W.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 qu=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;kF(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)};
qu.prototype._bringOverlayAtIndexToFront=function(W){var O=this._overlays[W];if(O){var b=this._overlays.length-1,T=this._overlays[b];T&&this._shouldBeBehindOverlay(O,T)&&b--;if(!(W>=b)){T=Math.max(this._getZ(_.ecq(this)),this._minimumZ);for(this._getZ(O)<=T&&this._applyOverlayZ(O,T);W<b;)this._overlays[W]=this._overlays[W+1],W++;this._overlays[b]=O}}};
qu.prototype.addOverlay=function(W){var O=this._overlays.indexOf(W);if(O>=0)this._bringOverlayAtIndexToFront(O);else{O=this._overlays.length;var b=this._overlays[O-1],T=Math.max(this._getZ(b),this._minimumZ),L=this._getZ(W);b&&this._shouldBeBehindOverlay(W,b)&&(this._applyOverlayZ(b,T),O--,T=Math.max(this._getZ(this._overlays[O-1]),this._minimumZ));L<=T&&this._applyOverlayZ(W,T);this._overlays.splice(O,0,W)}this.trackBackdrop()};
qu.prototype.removeOverlay=function(W){W=this._overlays.indexOf(W);W!==-1&&(this._overlays.splice(W,1),this.trackBackdrop())};
_.ecq=function(W){return W._overlays[W._overlays.length-1]};
_.d=qu.prototype;_.d.trackBackdrop=function(){var W=this._overlayWithBackdrop();if(W||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(W)-1,this.backdropElement.opened=!!W,this.backdropElement.prepare()};
_.d._overlayWithBackdrop=function(){for(var W=this._overlays.length-1;W>=0;W--)if(this._overlays[W].withBackdrop)return this._overlays[W]};
_.d._getZ=function(W){var O=this._minimumZ;if(W){var b,T,L=Number(((b=W.hostElement)!=null?b:W).style.zIndex||window.getComputedStyle((T=W.hostElement)!=null?T:W).zIndex);L===L&&(O=L)}return O};
_.d._setZ=function(W,O){var b;((b=W.hostElement)!=null?b:W).style.zIndex=O};
_.d._applyOverlayZ=function(W,O){this._setZ(W,O+2)};
_.d._overlayInPath=function(W){W=W||[];for(var O=0;O<W.length;O++){var b=void 0;if(((b=W[O].polymerController)!=null?b:W[O])._manager===this)return W[O]}};
_.d._onCaptureClick=function(W){var O=this._overlays.length-1;if(O!==-1)for(var b=_.Rs(W).path,T,L;(T=this._overlays[O])&&this._overlayInPath(b)!==((L=T.hostElement)!=null?L:T);)if(T._onCaptureClick(W),T.allowClickThrough)O--;else break};
_.d._onCaptureFocus=function(W){var O=_.ecq(this);O&&O._onCaptureFocus(W)};
_.d._onCaptureKeyDown=function(W){var O=_.ecq(this);O&&(_.wc.keyboardEventMatchesKeys(W,"esc")?O._onCaptureEsc(W):_.wc.keyboardEventMatchesKeys(W,"tab")&&O._onCaptureTab(W))};
_.d._shouldBeBehindOverlay=function(W,O){return!W.alwaysOnTop&&O.alwaysOnTop&&!O.contains(W)};
_.Jq.Object.defineProperties(qu.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 W=document.activeElement;W&&W instanceof Element!==!1||(W=document.body);for(;W.root&&_.Rs(W.root).activeElement;)W=_.Rs(W.root).activeElement;return W}}});
_.nr=new qu;var KB8=0,vl8=0,glO=null,ole=[],Kq=["wheel","mousewheel","DOMMouseScroll"],QB8;_.e("web_no_lock_on_touchstart_killswitch")&&(Kq.push("touchstart"),Kq.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;_.fr={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:_.nr},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var W;return this._focusedChild||_.Rs((W=this.hostElement)!=null?W:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var W;return _.Xsz((W=this.hostElement)!=null?W: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 W;this._observer=_.Rs((W=this.hostElement)!=null?W:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var W;_.Rs((W=this.hostElement)!=null?W:this).unobserveNodes(this._observer)}this._observer=null;for(var O in this.__rafs)this.__rafs[O]!==null&&cancelAnimationFrame(this.__rafs[O]);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(W){this.fire("iron-overlay-canceled",W,{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 W;((W=this.hostElement)!=null?W:this).style.outline="none";var O;((O=this.hostElement)!=null?O:this).style.display="none"}},
_openedChanged:function(W){if(W){var O;((O=this.hostElement)!=null?O:this).removeAttribute("aria-hidden")}else{var b;((b=this.hostElement)!=null?b:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var W;if(this.withBackdrop&&!((W=this.hostElement)!=null?W:this).hasAttribute("tabindex")){var O;((O=this.hostElement)!=null?O:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var b;((b=this.hostElement)!=null?b:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";var O;((O=this.hostElement)!=null?O:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var W,O;((W=this.hostElement)!=null?W:this).style.transition=((O=this.hostElement)!=null?O:this).style.webkitTransition="none";var b,T;((b=this.hostElement)!=null?b:this).style.transform=((T=this.hostElement)!=null?T:this).style.webkitTransform="none";var L;((L=this.hostElement)!=null?L:this).style.display=""},
_finishPositioning:function(){var W;((W=this.hostElement)!=null?W:this).style.display="none";this.scrollTop=this.scrollTop;var O,b;((O=this.hostElement)!=null?O:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="";var T,L;((T=this.hostElement)!=null?T:this).style.transform=((L=this.hostElement)!=null?L:this).style.webkitTransform="";var h;((h=this.hostElement)!=null?h:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var W=this._manager.deepActiveElement,O;if(!(O=W===document.body))a:{for(;W;W=W.assignedSlot||W.parentNode||W.host)if(W===this){O=!0;break a}O=!1}O&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(W){this.noCancelOnOutsideClick||this.cancel(W)},
_onCaptureFocus:function(W){if(this.withBackdrop){var O=_.Rs(W).path;O.indexOf(this)===-1?(W.stopPropagation(),this._applyFocus()):this._focusedChild=O[0]}},
_onCaptureEsc:function(W){this.noCancelOnEscKey||this.cancel(W)},
_onCaptureTab:function(W){if(this.withBackdrop){this.__ensureFirstLastFocusables();var O=W.shiftKey,b=O?this.__firstFocusableNode:this.__lastFocusableNode;O=O?this.__lastFocusableNode:this.__firstFocusableNode;if(b===O)b=!0;else{var T=this._manager.deepActiveElement;b=T===b||T===this}b&&(W.preventDefault(),this._focusedChild=O,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 W=this._focusableNodes;this.__firstFocusableNode=W[0];this.__lastFocusableNode=W[W.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(W,O){var b=this.__rafs;b[W]!==null&&cancelAnimationFrame(b[W]);b[W]=requestAnimationFrame(function(){b[W]=null;O.call(this)}.bind(this))},
__updateScrollObservers:function(W,O,b){W&&O&&this.__isValidScrollAction(b)?(b==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),QB8=_._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()):(W=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),W!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(W,1),QB8=_._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(zs)for(var W=this;W;)W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&W.host&&this.__rootNodes.push(W),W=W.host||W.assignedSlot||W.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(O){O.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(W){W.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(W){return W==="lock"||W==="refit"||W==="cancel"},
__onCaptureScroll:function(W){if(!(this.__isAnimating||_.Rs(W).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(W)}},
__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)}};
_.Gi=[Y15,_.vL,_.fr];_.v_({_template:function(){if(a3v!==void 0)return a3v;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;I31===void 0&&(I31=document.createElement("template"));var T=I31;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return a3v=W},
is:"tp-yt-iron-dropdown",behaviors:[_.Au,_.wc,_.Gi,bbN],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 W=_.Rs(this.$.content).getDistributedNodes(),O=0,b=W.length;O<b;O++)if(W[O].nodeType===Node.ELEMENT_NODE)return W[O]},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(),_.fr._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.fr._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.fr._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var W=this.containedElement,O=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),b=0;b<O.length;b++)O[b].node=W;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(W){this._readied&&(W?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var W=this.focusTarget||this.containedElement;W&&this.opened&&!this.noAutoFocus?W.focus():_.fr._applyFocus.apply(this,arguments)}});var PnS;var ps1;/*

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 Rc9=new _.ed({type:"iconset"});
_.v_({_template:function(){if(ps1!==void 0)return ps1;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;PnS===void 0&&(PnS=document.createElement("template"));
var T=PnS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return ps1=W},
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(W){W=(W||"").split(":");this._iconName=W.pop();this._iconsetName=W.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&&_.Rs(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Rc9.byKey(this._iconsetName)){var W=this._iconset.applyIcon(this,this._iconName,this.theme);W&&W.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,_.Rs(this.root).appendChild(this._img)}});var KR7;var vSH;_.v_({_template:function(){if(vSH!==void 0)return vSH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;KR7===void 0&&(KR7=document.createElement("template"));var T=KR7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return vSH=W},
is:"tp-yt-iron-input",behaviors:[_.pr],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(){_.zi.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Rs(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Rs(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 W=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":W=/[0-9.,e-]/}return W},_bindValueChanged:function(W,O){O&&(W===void 0?O.value=null:W!==O.value&&(this.inputElement.value=W),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:W}))},
_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(W){var O=W.keyCode==19||W.keyCode==20||W.keyCode==45||W.keyCode==46||W.keyCode==144||W.keyCode==145||W.keyCode>32&&W.keyCode<41||W.keyCode>111&&W.keyCode<124;return!(W.keyCode==8||W.keyCode==9||W.keyCode==13||W.keyCode==27)&&!(W.charCode==0&&O)},
_onKeypress:function(W){if(this.allowedPattern||this.inputElement.type==="number"){var O=this._patternRegExp;if(O&&!(W.metaKey||W.ctrlKey||W.altKey)){this._patternAlreadyChecked=!0;var b=String.fromCharCode(W.charCode);this._isPrintable(W)&&!O.test(b)&&(W.preventDefault(),this._announceInvalidCharacter("Invalid character "+b+" not entered."))}}},
_checkPatternValidity:function(){var W=this._patternRegExp;if(!W)return!0;for(var O=0;O<this.inputElement.value.length;O++)if(!W.test(this.inputElement.value[O]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var W=this.inputElement.checkValidity();W&&(this.required&&this.bindValue===""?W=!1:this.hasValidator()&&(W=_.pr.validate.call(this,this.bindValue)));this.invalid=!W;this.fire("iron-input-validate");return W},
_announceInvalidCharacter:function(W){this.fire("iron-announce",{text:W})},
_computeValue:function(W){return W}});var gSv;var oSU;var QM5=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),kBU=QM5&&QM5[1]>=8;
_.v_({_template:function(){if(oSU!==void 0)return oSU;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;gSv===void 0&&(gSv=document.createElement("template"));var T=gSv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return oSU=W},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[MUP,_.vL,_.ib5,$pf],_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 _.Rs(_.Rs(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var W=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,W-this._physicalCount)},set _virtualStart(W){W=this._clamp(W,0,this._maxVirtualStart);this.grid&&(W-=W%this._itemsPerRow);this._virtualStartVal=W},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(W){W%=this._physicalCount;W<0&&(W=this._physicalCount+W);this.grid&&(W-=W%this._itemsPerRow);this._physicalStartVal=W},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(W){this._physicalCountVal=W},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 W=this._firstVisibleIndexVal;if(W==null){var O=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
W=this._iterateItems(function(b,T){O+=this._getPhysicalSizeIncrement(b);if(O>this._scrollPosition)return this.grid?T-T%this._itemsPerRow:T;if(this.grid&&this._virtualCount-1===T)return T-T%this._itemsPerRow})||0}return W},
get lastVisibleIndex(){var W=this._lastVisibleIndexVal;if(W==null){if(this.grid)W=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var O=this._physicalTop+this._scrollOffset;this._iterateItems(function(b,T){O<this._scrollBottom&&(W=T);O+=this._getPhysicalSizeIncrement(b)})}this._lastVisibleIndexVal=W}return W},
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,_.Kb);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(W){this.style.webkitOverflowScrolling=W===this?"touch":"";this.style.overflowY=W===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Kb)},
updateViewportBoundaries:function(){var W=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(W["padding-top"],10);this._isRTL=W.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var W=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),O=W-this._scrollPosition,b=O>=0;this._scrollPosition=W;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(O)>this._physicalSize&&this._physicalSize>0?(O-=this._scrollOffset,b=Math.round(O/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=b,this._physicalStart+=b,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(W=this._getReusables(b),b?(this._physicalTop=W.physicalTop,this._virtualStart+=W.indexes.length,this._physicalStart+=W.indexes.length):(this._virtualStart=this._virtualStart-W.indexes.length,this._physicalStart=this._physicalStart-W.indexes.length),this._update(W.indexes,b?null:W.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),r3))},
_getReusables:function(W){var O=[],b=this._hiddenContentSize*this._ratio,T=this._virtualStart,L=this._virtualEnd,h=this._physicalCount,Z=this._physicalTop+this._scrollOffset;var a=this._physicalBottom+this._scrollOffset;var m=this._scrollPosition,w=this._scrollBottom;if(W){var A=this._physicalStart;a=m-Z}else A=this._physicalEnd,a-=w;for(;;){var X=this._getPhysicalSizeIncrement(A);a-=X;if(O.length>=h||a<=b)break;if(W){if(L+O.length+1>=this._virtualCount)break;if(Z+X>=m-this._scrollOffset)break;O.push(A);
Z+=X;A=(A+1)%h}else{if(T-O.length<=0)break;if(Z+this._physicalSize-X<=w)break;O.push(A);Z-=X;A=A===0?h-1:A-1}}return{indexes:O,physicalTop:Z-this._scrollOffset}},
_update:function(W,O){if(!(W&&W.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(W);this._updateMetrics(W);if(O)for(;O.length;)W=O.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(W);this._positionItems();this._updateScrollerSize()}},
_createPool:function(W){this._ensureTemplatized();var O,b=Array(W);for(O=0;O<W;O++){var T=this.stamp(null);b[O]=T.root.querySelector("*");this._itemsParent.appendChild(T.root)}return b},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(W){W=this._clamp(this._physicalCount+W,3,this._virtualCount-this._virtualStart);W=this._convertIndexToCompleteRow(W);if(this.grid){var O=W%this._itemsPerRow;O&&W-O<=this._physicalCount&&(W+=this._itemsPerRow);W-=O}W-=this._physicalCount;O=Math.round(this._physicalCount*.5);if(!(W<0)){if(W>0){O=window.performance.now();[].push.apply(this._physicalItems,this._createPool(W));for(var b=0;b<W;b++)this._physicalSizes.push(0);this._physicalCount+=W;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=W);this._update();this._templateCost=(window.performance.now()-O)/W;O=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||O===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,O)),vFL):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,O),r3))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var W=this._getReusables(!0);this._physicalTop=W.physicalTop;this._virtualStart+=W.indexes.length;this._physicalStart+=W.indexes.length;this._update(W.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 W={__key__:!0};W[this.as]=!0;W[this.indexAs]=!0;W[this.selectedAs]=!0;W.tabIndex=!0;this._instanceProps=W;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(W,O){typeof O!=="undefined"&&(this.notifyResize(),_.Lg(),W&&this._updateGridMetrics())},
_itemsChanged:function(W){if(W.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,
_.Kb);else if(W.path==="items.splices"){this._adjustVirtualIndex(W.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(W.value.indexSplices.some(function(b){return b.addedCount>0||b.removed.length>0})){var O=this._getActiveElement();
this.contains(O)&&O.blur()}W=W.value.indexSplices.some(function(b){return b.index+b.addedCount>=this._virtualStart&&b.index<=this._virtualEnd},this);
this._isClientFull()&&!W||this._debounce("_render",this._render,_.Kb)}else W.path!=="items.length"&&this._forwardItemPath(W.path,W.value)},
_forwardItemPath:function(W,O){W=W.slice(6);var b=W.indexOf(".");b===-1&&(b=W.length);var T,L=this.modelForElement(this._offscreenFocusedItem),h=parseInt(W.substring(0,b),10);if(T=this._isIndexRendered(h)){var Z=this._getPhysicalIndex(h);var a=this.modelForElement(this._physicalItems[Z])}else L&&(a=L);a&&a[this.indexAs]===h&&(W=W.substring(b+1),W=this.as+(W?"."+W:""),a._setPendingPropertyOrPath(W,O,!1,!0),a._flushProperties&&a._flushProperties(),T&&(this._updateMetrics([Z]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(W){W.forEach(function(O){O.removed.forEach(this._removeItem,this);O.index<this._virtualStart&&(O=Math.max(O.addedCount-O.removed.length,O.index-this._virtualStart),this._virtualStart+=O,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=O))},this)},
_removeItem:function(W){this.$.selector.deselect(W);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===W&&this._removeFocusedItem()},
_iterateItems:function(W,O){var b,T;if(arguments.length===2&&O)for(T=0;T<O.length;T++){var L=O[T];var h=this._computeVidx(L);if((b=W.call(this,L,h))!=null)return b}else{L=this._physicalStart;for(h=this._virtualStart;L<this._physicalCount;L++,h++)if((b=W.call(this,L,h))!=null)return b;for(L=0;L<this._physicalStart;L++,h++)if((b=W.call(this,L,h))!=null)return b}},
_computeVidx:function(W){return W>=this._physicalStart?this._virtualStart+(W-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+W},
_assignModels:function(W){this._iterateItems(function(O,b){var T=this._physicalItems[O],L=this.items&&this.items[b];if(L!=null){var h=this.modelForElement(T);h.__key__=null;this._forwardProperty(h,this.as,L);this._forwardProperty(h,this.selectedAs,this.$.selector.isSelected(L));this._forwardProperty(h,this.indexAs,b);this._forwardProperty(h,"tabIndex",this._focusedVirtualIndex===b?0:-1);this._physicalIndexForKey[h.__key__]=O;h._flushProperties&&h._flushProperties(!0);T.removeAttribute("hidden")}else T.setAttribute("hidden",
"")},W)},
_updateMetrics:function(W){_.Lg();var O=0,b=0,T=this._physicalAverageCount,L=this._physicalAverage;this._iterateItems(function(h){b+=this._physicalSizes[h];this._physicalSizes[h]=this._physicalItems[h].offsetHeight;O+=this._physicalSizes[h];this._physicalAverageCount+=this._physicalSizes[h]?1:0},W);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(b=this._itemsPerRow===1?b:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+O-b,this._itemsPerRow=1);this._physicalAverageCount!==T&&(this._physicalAverage=Math.round((L*T+O)/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 W=this._physicalTop;if(this.grid){var O=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(b,T){var L=Math.floor(T%this._itemsPerRow*this._itemWidth+O);this._isRTL&&(L*=-1);this.translate3d(L+"px",W+"px",0,this._physicalItems[b]);this._shouldRenderNextRow(T)&&(W+=this._rowHeight)})}else this._iterateItems(function(b){this.translate3d(0,W+"px",0,this._physicalItems[b]);
W+=this._physicalSizes[b]})},
_getPhysicalSizeIncrement:function(W){return this.grid?this._computeVidx(W)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[W]},
_shouldRenderNextRow:function(W){return W%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var W=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(W!==0){this._physicalTop=this._physicalTop-W;var O=this._scrollPosition;!kBU&&O>0&&this._resetScrollPosition(O-W)}},
_resetScrollPosition:function(W){this.scrollTarget&&W>=0&&(this._scrollPosition=this._scrollTop=W)},
_updateScrollerSize:function(W){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((W=(W=(W=W||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(W){return this.scrollToIndex(this.items.indexOf(W))},
scrollToIndex:function(W){if(!(typeof W!=="number"||W<0||W>this.items.length-1)&&(_.Lg(),this._physicalCount!==0)){W=this._clamp(W,0,this._virtualCount-1);if(!this._isIndexRendered(W)||W>=this._maxVirtualStart)this._virtualStart=this.grid?W-this._itemsPerRow*2:W-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var O=this._physicalStart,b=this._virtualStart,T=0,L=this._hiddenContentSize;b<W&&
T<=L;)T+=this._getPhysicalSizeIncrement(O),O=(O+1)%this._physicalCount,b++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+T);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)},_.Kb)},
selectItem:function(W){return this.selectIndex(this.items.indexOf(W))},
selectIndex:function(W){if(!(W<0||W>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(W)){var O=this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)]);O&&(O[this.selectedAs]=!0);this.updateSizeForIndex(W)}this.$.selector.selectIndex(W)}},
deselectItem:function(W){return this.deselectIndex(this.items.indexOf(W))},
deselectIndex:function(W){W<0||W>=this._virtualCount||(this._isIndexRendered(W)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(W)])[this.selectedAs]=!1,this.updateSizeForIndex(W)),this.$.selector.deselectIndex(W))},
toggleSelectionForItem:function(W){return this.toggleSelectionForIndex(this.items.indexOf(W))},
toggleSelectionForIndex:function(W){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(W):this.$.selector.isSelected(this.items[W]))?this.deselectIndex(W):this.selectIndex(W)},
clearSelection:function(){this._iterateItems(function(W){this.modelForElement(this._physicalItems[W])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(W){(W?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(W){var O=this.modelForElement(W.target);if(O){var b=_.Rs(W).path[0];W=this._getActiveElement();var T=this._physicalItems[this._getPhysicalIndex(O[this.indexAs])];if(b.localName!=="input"&&b.localName!=="button"&&b.localName!=="select"){b=O.tabIndex;O.tabIndex=-100;var L=W?W.tabIndex:-1;O.tabIndex=b;W&&T!==W&&T.contains(W)&&L!==-100||this.toggleSelectionForItem(O[this.as])}}},
_multiSelectionChanged:function(W){this.clearSelection();this.$.selector.multi=W},
updateSizeForItem:function(W){return this.updateSizeForIndex(this.items.indexOf(W))},
updateSizeForIndex:function(W){if(!this._isIndexRendered(W))return null;this._updateMetrics([this._getPhysicalIndex(W)]);this._positionItems();return null},
_manageFocus:function(){var W=this._focusedVirtualIndex;W>=0&&W<this._virtualCount?this._isIndexRendered(W)?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(W){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(W/this._itemsPerRow)*this._itemsPerRow:W},
_isIndexRendered:function(W){return W>=this._virtualStart&&W<=this._virtualEnd},
_isIndexVisible:function(W){return W>=this.firstVisibleIndex&&W<=this.lastVisibleIndex},
_getPhysicalIndex:function(W){return(this._physicalStart+(W-this._virtualStart))%this._physicalCount},
focusItem:function(W){this._focusPhysicalItem(W)},
_focusPhysicalItem:function(W){if(!(W<0||W>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(W)||this.scrollToIndex(W);var O=this._physicalItems[this._getPhysicalIndex(W)],b=this.modelForElement(O),T;b.tabIndex=-100;O.tabIndex===-100&&(T=O);T||(T=_.Rs(O).querySelector('[tabindex="-100"]'));b.tabIndex=0;this._focusedVirtualIndex=W;T&&T.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 W=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var O=this.stamp(null);this._focusBackfillItem=O.root.querySelector("*");this._itemsParent.appendChild(O.root)}this._offscreenFocusedItem=this._physicalItems[W];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[W]=this._focusBackfillItem;this._focusedPhysicalIndex=W;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var W=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),O=this._physicalItems[W];if(O){var b=this.modelForElement(O),T=this.modelForElement(this._offscreenFocusedItem);b[this.as]===T[this.as]?(this._focusBackfillItem=O,b.tabIndex=-1,this._physicalItems[W]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(W){W=this.modelForElement(W.target);var O=this.modelForElement(this._focusedItem),b=this._offscreenFocusedItem!==null,T=this._focusedVirtualIndex;W&&(O===W?this._isIndexVisible(T)||this.scrollToIndex(T):(this._restoreFocusedItem(),O&&(O.tabIndex=-1),W.tabIndex=0,this._focusedVirtualIndex=T=W[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(T),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],b&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(W){switch(W.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&W.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&&W.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(W)}},
_clamp:function(W,O,b){return Math.min(b,Math.max(O,W))},
_debounce:function(W,O,b){this._debouncers=this._debouncers||{};this._debouncers[W]=_.O9(this._debouncers[W],b,O.bind(this));_.iK(this._debouncers[W])},
_forwardProperty:function(W,O,b){W._setPendingProperty(O,b)},
_forwardHostPropV2:function(W,O){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).forwardHostProp(W,O)},this)},
_notifyInstancePropV2:function(W,O,b){zc8(this.as,O)&&(W=W[this.indexAs],O==this.as&&(this.items[W]=b),this.notifyPath(mA(this.as,"items."+W,O),b))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(W,O,b){O.indexOf(this.as+".")===0&&this.notifyPath("items."+W.__key__+"."+O.slice(this.as.length+1),b)},
_forwardParentPath:function(W,O){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&this.modelForElement(b).notifyPath(W,O)},this)},
_forwardParentProp:function(W,O){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(b){b&&(this.modelForElement(b)[W]=O)},this)},
_getActiveElement:function(){var W=this._itemsParent.node.domHost;return _.Rs(W?W.root:document).activeElement},
_scrollTargetChanged:function(W,O){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(O)if(W==="document")this.scrollTarget=this._doc;else if(typeof W==="string"){var b,T;this.scrollTarget=(O=(T=(b=this.domHost)==null?void 0:b.polymerController)!=null?T:this.domHost)&&O.$?O.$[W]:_.Rs(this.ownerDocument).querySelector("#"+W)}else this._isValidScrollTarget()&&(this._oldScrollTarget=W,this._toggleScrollListener(this._shouldHaveListener,W))}});var sM$;var BdH;var rPU=function(W,O,b,T){W-=b;O-=T;return Math.sqrt(W*W+O*O)},Dfn=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
kpP.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var sB1=function(W){W.maxRadius=0;W.mouseDownStart=0;W.mouseUpStart=0;W.xStart=0;W.yStart=0;W.xEnd=0;W.yEnd=0;W.containerMetrics=new kpP(W.element)};
B7X.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var W=Dfn()-this.mouseDownStart;this.mouseUpStart&&(W-=this.mouseUpElapsed);return W},get mouseUpElapsed(){return this.mouseUpStart?Dfn()-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 W=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(W*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-W/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var W=this.radius/(this.containerMetrics.size/2);var O=this.xNow-this.containerMetrics.width/2;var b=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+O+"px, "+b+"px)";this.waveContainer.style.transform="translate3d("+O+"px, "+b+"px, 0)";this.wave.style.webkitTransform="scale("+W+","+W+")";this.wave.style.transform="scale3d("+W+","+W+",1)"},
downAction:function(W){var O=this.containerMetrics.width/2,b=this.containerMetrics.height/2;sB1(this);this.mouseDownStart=Dfn();this.center?(this.xStart=O,this.yStart=b):(this.xStart=W?W.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=W?W.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=O,this.yEnd=b);W=this.containerMetrics;O=this.xStart;b=this.yStart;this.maxRadius=Math.max(rPU(O,b,0,0),rPU(O,b,
W.width,0),rPU(O,b,0,W.height),rPU(O,b,W.width,W.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=Dfn())},
remove:function(){_.Rs(_.Rs(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.v_({_template:function(){if(BdH!==void 0)return BdH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;sM$===void 0&&(sM$=document.createElement("template"));var T=sM$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return BdH=W},
is:"tp-yt-paper-ripple",behaviors:[_.wc],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(){_.Rs(this).parentNode.nodeType==11?this.keyEventTarget=_.Rs(this).getOwnerRoot().host:this.keyEventTarget=_.Rs(this).parentNode;var W=this.keyEventTarget;this.listen(W,"up","uiUpAction");this.listen(W,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(W){W.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var W=0;W<this.ripples.length;++W)if(!this.ripples[W].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(W){this.noink||this.downAction(W)},
downAction:function(W){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(W),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(W){this.noink||this.upAction(W)},
upAction:function(W){this.holdDown||(this.ripples.forEach(function(O){O.upAction(W)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var W=0;W<this.ripples.length;++W){var O=this.ripples[W];O.isOpacityFullyDecayed&&!O.isRestingAtMaxRadius&&this.removeRipple(O)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var W=new B7X(this);_.Rs(this.$.waves).appendChild(W.waveContainer);this.$.background.style.backgroundColor=W.color;this.ripples.push(W);this._setAnimating(!0);return W},
removeRipple:function(W){var O=this.ripples.indexOf(W);O<0||(this.ripples.splice(O,1),W.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var W;for(W=0;W<this.ripples.length;++W){var O=this.ripples[W];O.draw();this.$.background.style.opacity=O.outerOpacity;O.isOpacityFullyDecayed&&!O.isRestingAtMaxRadius&&this.removeRipple(O)}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(W,O){O!==void 0&&(W?this.downAction():this.upAction())}});var HL={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(W){Xr._downHandler.call(this,W);this.pressed&&this.ensureRipple(W)},
ensureRipple:function(W){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var O=this._rippleContainer||this.root;O&&_.Rs(O).appendChild(this._ripple);if(W){O=_.Rs(this._rippleContainer||this);var b=_.Rs(W).rootTarget;O.deepContains(b)&&this._ripple.uiDownAction(W)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(W){this.hasRipple()&&(this._ripple.noink=W)}};var xfn={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 W=1;this.disabled?W=0:this.active||this.pressed?W=4:this.receivedFocusFromKeyboard&&(W=3);this._setElevation(W)},
_computeKeyboardClass:function(W){this.toggleClass("keyboard-focus",W)},
_spaceKeyDownHandler:function(W){Xr._spaceKeyDownHandler.call(this,W);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(W){Xr._spaceKeyUpHandler.call(this,W);this.hasRipple()&&this._ripple.uiUpAction()}},zcL=[$e5,
_.Au,HL,xfn];_.Cnz={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=W)},
_createRipple:function(){var W=HL._createRipple();W.id="ink";W.setAttribute("center","");W.classList.add("circle");return W}};
_.q15=[$e5,_.Au,HL,_.Cnz];_.nS1=[_.q15,MlU,{_checkedChanged:function(){Nin._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){HL._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var f3v;var GBw;var Hdf=function(){};
_.d=Hdf.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._createRipple=function(){};
_.d._noinkChanged=function(){};
_.d._computeKeyboardClass=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setElevation=function(){};
Hdf=_.v_({_template:function(){if(GBw!==void 0)return GBw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;f3v===void 0&&(f3v=document.createElement("template"));var T=f3v;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return GBw=W},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[zcL],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?xfn._calculateElevation.apply(this):this._setElevation(0)}});var tEf;var $f9;var VE$={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(W){_.e("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(W)},
_onDialogClickWrapped:function(W){_.e("dialog_behavior_no_tap_killswitch")||this._onDialogClick(W)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(W,O){O&&(W?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(W){this.closingReason=this.closingReason||{};this.closingReason.confirmed=W},
_onDialogClick:function(W){for(var O=_.Rs(W).path,b=0,T,L=O.indexOf((T=this.hostElement)!=null?T:this);b<L;b++)if(T=O[b],T.hasAttribute&&(T.hasAttribute("dialog-dismiss")||T.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(T.hasAttribute("dialog-confirm"));this.close();W.stopPropagation();break}}},Ndn=[_.Gi,
VE$];var MEv=document.createElement("template");_.v(MEv,'<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(MEv.content);var uL$=document.createElement("template");_.v(uL$,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(uL$.content);_.v_({_template:function(){if($f9!==void 0)return $f9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;tEf===void 0&&(tEf=document.createElement("template"));var T=tEf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return $f9=W},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[Ndn,bbN],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 JPL;var cPw;_.v_({_template:function(){if(cPw!==void 0)return cPw;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;JPL===void 0&&(JPL=document.createElement("template"));var T=JPL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return cPw=W},
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 W,O,b;if(((W=window.ShadyDOM)==null?void 0:W.noPatch)!==!0&&((O=window.ShadyDOM)==null?void 0:O.noPatch)!=="on-demand"||((b=this.__shady_parentNode)==null?void 0:b.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(VE$)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var FRz=_.ts(['<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>']),yPq=_.JqN(FRz);yPq.setAttribute("style","display: none;");document.head.appendChild(yPq.content);var WoU;var Opz;var ip1;var bpL;_.v_({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[oz],configure:function(W){var O=W.node,b=O.getBoundingClientRect().height;return this._effect=new KeyframeEffect(O,[{height:b/2+"px"},{height:b+"px"}],this.timingFromConfig(W))}});
_.v_({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[oz],configure:function(W){var O=W.node,b=O.getBoundingClientRect().width;return this._effect=new KeyframeEffect(O,[{width:b/2+"px"},{width:b+"px"}],this.timingFromConfig(W))}});
_.v_({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[oz],configure:function(W){var O=W.node,b=O.getBoundingClientRect().width;return this._effect=new KeyframeEffect(O,[{width:b+"px"},{width:b-b/20+"px"}],this.timingFromConfig(W))}});
_.v_({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[oz],configure:function(W){var O=W.node,b=O.getBoundingClientRect().height;this.setPrefixedProperty(O,"transformOrigin","0 0");return this._effect=new KeyframeEffect(O,[{height:b+"px",transform:"translateY(0)"},{height:b/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(W))}});var tu={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},j4N=function(){};
_.d=j4N.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._focusBlurHandler=function(){};
_.d._changedControlState=function(){};
_.d._setFocused=function(){};
j4N=_.v_({_template:function(){if(bpL!==void 0)return bpL;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;ip1===void 0&&(ip1=document.createElement("template"));var T=ip1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return bpL=W},
is:"tp-yt-paper-menu-button",behaviors:[_.wc,_.Au],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:tu.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:tu.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:tu.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 W=_.Rs(this.$.content).getDistributedNodes(),O=0,b=W.length;O<b;O++)if(W[O].nodeType===Node.ELEMENT_NODE)return W[O]},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(W,O){W?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):O!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(W){_.Au._disabledChanged.apply(this,arguments);W&&this.opened&&this.close()},
__onIronOverlayCanceled:function(W){var O=this.$.trigger;_.Rs(W.detail).path.indexOf(O)>-1&&W.preventDefault()}});
Object.keys(tu).forEach(function(W){j4N[W]=tu[W]});var Tt9=_.U_.IronButtonState,Lon=(0,_.E9)(HTMLElement);
_.v_({_template:function(){if(Opz!==void 0)return Opz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;WoU===void 0&&(WoU=document.createElement("template"));var T=WoU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Opz=W},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Tt9,_.Au,HL,_.ls,_.pr],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(W){var O=(0,_.X2)(this);O.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:W});O.shadowRoot.appendChild(W);return Lon.prototype._attachDom.call(this,W)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.Rs(this.$.content).getDistributedNodes(),O=0,b=W.length;O<b;O++)if(W[O].nodeType===Node.ELEMENT_NODE)return W[O]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var O="";W?O=W.label||W.getAttribute("label")||W.textContent.trim():O="";this.value=O;this._setSelectedItemLabel(O)},
_computeMenuVerticalOffset:function(W,O){return O?O:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",O=this.contentElement;O&&O.setAttribute("aria-expanded",W)},
_computeLabelClass:function(W,O,b){var T="label";if(W)b&&(T+=" label-is-hidden");else if(b||O)T+=" label-is-floating";return T},
_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 dL9;var hl9;_.v_({is:"tp-yt-paper-icon-button",_template:function(){if(hl9!==void 0)return hl9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;dL9===void 0&&(dL9=document.createElement("template"));var T=dL9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return hl9=W},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.q15],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(W,O){var b=this.getAttribute("aria-label");b&&O!=b||this.setAttribute("aria-label",W)}});var Sxz;var ZpH;_.$2=[$e5,_.Au,{hostAttributes:{role:"option",tabindex:"0"}}];_.v_({_template:function(){if(ZpH!==void 0)return ZpH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Sxz===void 0&&(Sxz=document.createElement("template"));var T=Sxz;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return ZpH=W},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.$2]});var IOv;var aOS;var mL$={attached:function(){this.fire("addon-attached")},
update:function(){}};var Yx1=1,Ez9=1,wm1=1,AIL=[_.Au,_.wc,{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();!M2&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(W,O){W?W=W+" "+O:W=O;return W},
_onAddonAttached:function(W){W=_.Rs(W).rootTarget;if(W.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,W.id);else{var O="paper-input-add-on-"+Ez9++;W.id=O;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,O)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(W){_.Au._focusBlurHandler.call(this,W);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var W=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",W);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(W){try{var O=this.inputElement.selectionStart;this.value=W;this.inputElement.selectionStart=O;this.inputElement.selectionEnd=O}catch(b){this.value=W}},
_computeAlwaysFloatLabel:function(W,O){return O||W},
_updateAriaLabelledBy:function(){var W=_.Rs(this.root).querySelector("label");if(W){if(W.id)var O=W.id;else O="paper-input-label-"+Yx1++,W.id=O;this._ariaLabelledBy=O}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+wm1++)},
_onChange:function(W){this.shadowRoot&&this.fire(W.type,{sourceEvent:W},{node:this,bubbles:W.bubbles,cancelable:W.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var W=document.activeElement;W instanceof HTMLElement&&W!==document.body&&W!==document.documentElement||this._focusableElement.focus()}}}];var XmH;var UL$;_.v_({_template:function(){if(UL$!==void 0)return UL$;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;XmH===void 0&&(XmH=document.createElement("template"));var T=XmH;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return UL$=W},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[mL$],properties:{_charCounterStr:{type:String,value:"0"}},update:function(W){if(W.inputElement){W.value=W.value||"";var O=W.value.toString().length.toString();W.inputElement.hasAttribute("maxlength")&&(O+="/"+W.inputElement.getAttribute("maxlength"));this._charCounterStr=O}}});var lOL;var elq;_.v_({_template:function(){if(elq!==void 0)return elq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;lOL===void 0&&(lOL=document.createElement("template"));var T=lOL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return elq=W},
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 hq(this.attrForValue)},get _inputElement(){return _.Rs(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(W){this._addons||(this._addons=[]);W=W.target;this._addons.indexOf(W)===-1&&(this._addons.push(W),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(W){this._handleValueAndAutoValidate(W.target)},
_onValueChanged:function(W){var O=W.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,O.value===void 0||O.value===""))return;this._handleValueAndAutoValidate(W.target)},
_handleValue:function(W){var O=this._inputElementValue;O||O===0||W.type==="number"&&!W.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:W,value:O,invalid:this.invalid})},
_handleValueAndAutoValidate:function(W){this.autoValidate&&W&&(this.invalid=!(W.validate?W.validate(this._inputElementValue):W.checkValidity()));this._handleValue(W)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(W){if(this._addons)for(var O,b=0;O=this._addons[b];b++)O.update(W)},
_computeInputContentClass:function(W,O,b,T,L){var h="input-content";W?(L&&(h+=" label-is-hidden"),T&&!this.noUnfloatedLabelError&&(h+=" is-invalid")):(W=this.querySelector("label"),O||L?(h+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",T?h+=" is-invalid":b&&(h+=" label-is-highlighted")):(W&&(this.$.labelAndInputContainer.style.position="relative"),T&&!this.noUnfloatedLabelError&&(h+=" is-invalid")));b&&(h+=" focused");return h},
_computeUnderlineClass:function(W,O){var b="underline";O?b+=" is-invalid":W&&(b+=" is-highlighted");return b},
_computeAddOnContentClass:function(W,O){var b="add-on-content";O?b+=" is-invalid":W&&(b+=" is-highlighted");return b}});var Pwf;var pmU;_.v_({_template:function(){if(pmU!==void 0)return pmU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Pwf===void 0&&(Pwf=document.createElement("template"));var T=Pwf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return pmU=W},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[mL$],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(W){this._setInvalid(W.invalid)}});_.v_({is:"tp-yt-paper-input",_template:function(){if(aOS!==void 0)return aOS;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;IOv===void 0&&(IOv=document.createElement("template"));var T=IOv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return aOS=W},
behaviors:[AIL,_.ls],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 Rl9;var Ko5;_.v_({_template:function(){if(Ko5!==void 0)return Ko5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=
W.content,b=O.insertBefore;Rl9===void 0&&(Rl9=document.createElement("template"));var T=Rl9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Ko5=W},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.$2]});var vzf;var gzL;_.v_({_template:function(){if(gzL!==void 0)return gzL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;vzf===void 0&&(vzf=document.createElement("template"));var T=vzf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return gzL=W},
is:"tp-yt-paper-item-body"});var ozL;var Q41;var kJz=function(){};
_.d=kJz.prototype;_.d.indexOf=function(){};
_.d.selectPrevious=function(){};
_.d.selectNext=function(){};
_.d.selectIndex=function(){};
_.d.forceSynchronousItemUpdate=function(){};
_.d._checkFallback=function(){};
_.d._addListener=function(){};
_.d._removeListener=function(){};
_.d._activateEventChanged=function(){};
_.d._updateItems=function(){};
_.d._selectSelected=function(){};
_.d._filterItem=function(){};
_.d._valueToItem=function(){};
_.d._valueToIndex=function(){};
_.d._indexToValue=function(){};
_.d._valueForItem=function(){};
_.d._observeItems=function(){};
_.d._itemActivate=function(){};
_.d.multiChanged=function(){};
_.d._updateAttrForSelected=function(){};
_.d._updateSelected=function(){};
_.d._selectMulti=function(){};
_.d._selectionChange=function(){};
_.d._toggleSelected=function(){};
_.d._valuesToItems=function(){};
_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d.select=function(){};
_.d._resetTabindices=function(){};
_.d._updateMultiselectable=function(){};
_.d._focusWithKeyboardEvent=function(){};
_.d._clearSearchText=function(){};
_.d._focusPrevious=function(){};
_.d._focusNext=function(){};
_.d._applySelection=function(){};
_.d._focusedItemChanged=function(){};
_.d._onIronItemsChanged=function(){};
_.d._onShiftTabDown=function(){};
_.d._onFocus=function(){};
_.d._onUpKey=function(){};
_.d._onDownKey=function(){};
_.d._onEscKey=function(){};
_.d._onKeydown=function(){};
_.d._activateHandler=function(){};
_.d._disabledChanged=function(){};
_.d._setSelectedItem=function(){};
_.d._setItems=function(){};
_.d._setSelectedItems=function(){};
_.d._setFocusedItem=function(){};
kJz=_.v_({_template:function(){if(Q41!==void 0)return Q41;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;ozL===void 0&&(ozL=document.createElement("template"));var T=ozL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Q41=W},
is:"tp-yt-paper-listbox",behaviors:[F59],hostAttributes:{role:"listbox"}});var s4H;var Btz;var rIS={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(W,O){return[W||O?"active":"",O?"cooldown":""].join(" ")},
__activeChanged:function(W,O){this.__setAriaHidden(!W);this.__coolingDown=!W&&O},
__altChanged:function(W){this.setAttribute("aria-label",W||"loading")},
__setAriaHidden:function(W){W?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.v_({_template:function(){if(Btz!==void 0)return Btz;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;s4H===void 0&&(s4H=document.createElement("template"));var T=s4H;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Btz=W},
is:"tp-yt-paper-spinner",behaviors:[rIS]});var DLw;var xLH;_.v_({_template:function(){if(xLH!==void 0)return xLH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;DLw===void 0&&(DLw=document.createElement("template"));var T=DLw;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return xLH=W},
is:"tp-yt-paper-spinner-lite",behaviors:[rIS]});var zl1;var Cw5;_.v_({_template:function(){if(Cw5!==void 0)return Cw5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;zl1===void 0&&(zl1=document.createElement("template"));var T=zl1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Cw5=W},
is:"tp-yt-paper-tab",behaviors:[_.Au,_.U_.IronButtonState,HL],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 W=_.Rs(this).parentNode;return!!W&&!!W.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(W){if(this.link){var O=this.queryEffectiveChildren("a");O&&W.target!==O&&O.click()}}});var qxU;var nzw;var fO$=_.ts(['<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>']),GJz=_.JqN(fO$);document.head.appendChild(GJz.content);_.v_({_template:function(){if(nzw!==void 0)return nzw;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;qxU===void 0&&(qxU=document.createElement("template"));var T=qxU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return nzw=W},
is:"tp-yt-paper-tabs",behaviors:[_.vL,_.WwS],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(W){_.Rs(this).querySelectorAll("tp-yt-paper-tab").forEach(W?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(W){W.setAttribute("noink","")},
_removeNoinkAttribute:function(W){W.removeAttribute("noink")},
_computeScrollButtonClass:function(W,O,b,T){return!O||b?"hidden":W?T?"hidden":"not-visible":""},
_computeTabsContentClass:function(W,O){var b="tabs-content";W&&(b+=" scrollable");if(!W||O)b+=" fit-container";return b},
_computeSelectionBarClass:function(W,O){var b="selection-bar";W?b+=" hidden":O&&(b+=" align-bottom");return b},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(W){return""+W},
_onIronSelect:function(W){this._tabChanged(W.detail.item,this._previousTab);this._previousTab=W.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();_.Rz._activateHandler.apply(this,arguments)},
_scheduleActivation:function(W,O){this._pendingActivationItem=W;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,O)},
_delayedActivationHandler:function(){var W=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;W.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(W){W.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(W,O){this.scrollable&&this._affectScroll(O&&-O.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(W){this.$.tabsContainer.scrollLeft+=W;W=this.$.tabsContainer.scrollLeft;this._leftHidden=W===0||this.hideScrollButtons;this._rightHidden=W===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(W,O){if(W){var b=this.$.tabsContent.getBoundingClientRect(),T=b.width,L=W.getBoundingClientRect();b=L.left-b.left;this._pos={width:this._calcPercent(L.width,T),left:this._calcPercent(b,T)};if(this.noSlide||O==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var h=O.getBoundingClientRect();O=this.items.indexOf(O);W=this.items.indexOf(W);this.$.selectionBar.classList.add("expand");
W=O<W;this._isRTL&&(W=!W);W?this._positionBar(this._calcPercent(L.left+L.width-h.left,T)-5,this._left):this._positionBar(this._calcPercent(h.left+h.width-L.left,T)-5,this._calcPercent(b,T)+5);this.scrollable&&this._scrollToSelectedIfNeeded(L.width,b)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(W,O){O-=this.$.tabsContainer.scrollLeft;O<0?this.$.tabsContainer.scrollLeft+=O:(O+=W-this.$.tabsContainer.offsetWidth,O>0&&(this.$.tabsContainer.scrollLeft+=O))},
_calcPercent:function(W,O){return 100*W/O},
_positionBar:function(W,O){W=W||0;O=O||0;this._width=W;this._left=O;this.transform("translateX("+O+"%) scaleX("+W/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var W=this.$.selectionBar.classList;W.contains("expand")?(W.remove("expand"),W.add("contract"),this._positionBar(this._pos.width,this._pos.left)):W.contains("contract")&&W.remove("contract")}});var Hp9;var tkS;_.v_({_template:function(){if(tkS!==void 0)return tkS;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Hp9===void 0&&(Hp9=document.createElement("template"));var T=Hp9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return tkS=W},
is:"tp-yt-paper-textarea",behaviors:[AIL,_.ls],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(W){this.$.input.textarea.selectionStart=W},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(W){this.$.input.textarea.selectionEnd=W},_ariaLabelledByChanged:function(W){this._focusableElement.setAttribute("aria-labelledby",W)},
_ariaDescribedByChanged:function(W){this._focusableElement.setAttribute("aria-describedby",W)},
get _focusableElement(){return this.inputElement.textarea}});var $L7;var Vkv;/*

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 NtL=function(){};
_.d=NtL.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
NtL=_.v_({is:"tp-yt-paper-toggle-button",_template:function(){if(Vkv!==void 0)return Vkv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;$L7===void 0&&($L7=document.createElement("template"));var T=$L7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Vkv=W},
behaviors:[_.nS1],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");_.My(this,function(){_.BB(this,"pan-y")})},
_ontrack:function(W){W=W.detail;W.state==="start"?this._trackStart(W):W.state==="track"?this._trackMove(W):W.state==="end"&&this._trackEnd(W)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(W){W=W.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+W:W)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+W:W));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 W=HL._createRipple();W.id="ink";W.setAttribute("recenters","");W.classList.add("circle","toggle-ink");return W}});var MkL;var ugL;_.v_({_template:function(){if(ugL!==void 0)return ugL;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;MkL===void 0&&(MkL=document.createElement("template"));var T=MkL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return ugL=W},
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 W=_.Rs(this).parentNode,O=_.Rs(this).getOwnerRoot(),b;this.for?b=_.Rs(O).querySelector("#"+this.for):b=W.nodeType==Node.DOCUMENT_FRAGMENT_NODE?O.host:W;return b},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(W){W==="entry"?this.show():W==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Rs(this).textContent.trim()===""){for(var W=!0,O=_.Rs(this).getEffectiveChildNodes(),b=0;b<O.length;b++)if(O[b].textContent.trim()!==""){W=!1;break}if(W)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 W=this.offset;this.marginTop!=14&&this.offset==14&&(W=this.marginTop);var O=this.offsetParent.getBoundingClientRect(),b=this._target.getBoundingClientRect(),T=this.getBoundingClientRect(),L=(b.width-T.width)/2,h=(b.height-T.height)/2,Z=b.left-O.left,a=b.top-O.top;switch(this.position){case "top":var m=Z+L;var w=a-T.height-W;break;case "bottom":m=Z+L;w=a+b.height+W;break;case "left":m=Z-T.width-W;w=a+h;break;case "right":m=Z+b.width+
W,w=a+h}this.fitToVisibleBounds?(O.left+m+T.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,m)+"px",this.style.right="auto"),O.top+w+T.height>window.innerHeight?(this.style.bottom=O.height+"px",this.style.top="auto"):(this.style.top=Math.max(-O.top,w)+"px",this.style.bottom="auto")):(this.style.left=m+"px",this.style.top=w+"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(W){W!==500&&this.updateStyles({"--paper-tooltip-delay-in":W+"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(W){if(W==="entry"&&this.animationEntry!=="")return this.animationEntry;if(W==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[W]&&typeof this.animationConfig[W][0].name==="string"){if(this.animationConfig[W][0].timing&&this.animationConfig[W][0].timing.delay&&this.animationConfig[W][0].timing.delay!==0){var O=this.animationConfig[W][0].timing.delay;W==="entry"?this.updateStyles({"--paper-tooltip-delay-in":O+"ms"}):W==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":O+
"ms"})}return this.animationConfig[W][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 JIw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(JIw,_.qA);var cIq=_.WD(JIw,[0,_.VK]);var VX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(VX,_.qA);var Fof=[3,4],yI1=[5,6];var W9N=[0,Fof,yI1,_.W81,-1,_.$s,_.OUU,-1,Wyh,OJT];var OF7=_.WD(VX,W9N),iF5=_.OB(W9N);var bFq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(bFq,_.qA);var jyw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(jyw,_.qA);var T6S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(T6S,_.qA);var L9f=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(L9f,_.qA);var dsq=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(dsq,_.qA);var Nu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Nu,_.qA);Nu.prototype.getSource=function(){return _.gQ(this,1)};
Nu.prototype.getMessage=function(){return _.vk(this,4)};
Nu.prototype.getData=function(){return _.bP(this,dsq,8)};var hK1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(hK1,_.qA);var Mu=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Mu,_.qA);var us=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(us,_.qA);var Ju=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Ju,_.qA);Ju.prototype.getUrl=function(){return _.vk(this,1)};
Ju.prototype.setUrl=function(W){return _.aG(this,1,W)};
Ju.prototype.hasUrl=function(){return _.fU(_.mD(this,1))!=null};var S8z=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(S8z,_.qA);var ZFH=[3];var IvU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(IvU,_.qA);var cL=function(W){var O=new IvU;return _.jq(O,2,W)};
IvU.prototype.getLanguage=function(){return QK(this,4,Fr)};
var avN=function(W){var O=cL(1);return _.Tb(O,6,Fr,W)},Fr=[3,
4,5,6];var msN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(msN,_.qA);var yX=function(W){var O=new msN;return _.jq(O,1,W)},WX=function(W,O){return _.Tb(W,2,Y8$,O)},Y8$=[2,
3,4,5];var ENf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ENf,_.qA);var O2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(O2,_.qA);var wtw=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(wtw,_.qA);var ATN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ATN,_.qA);var Xt5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Xt5,_.qA);var Usn=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Usn,_.qA);var lvv=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(lvv,_.qA);var ir=function(W){return _.bP(W,us,5)};var eKL=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(eKL,_.qA);eKL.prototype.getValue=function(){return R6(this,1)};var P3S=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(P3S,_.qA);var br=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(br,_.qA);br.prototype.getMetadata=function(){return _.ks(this,Xt5,7,jX)};
br.prototype.hasMetadata=function(){return _.E3(this,Xt5,7,jX)};
var pt$=_.i0X(br),jX=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var T3=function(W){this.JSC$9927_name_=W;this.files_=[];this.directories_=[];this.directoryMap_={}};
T3.prototype.getName=function(){return this.JSC$9927_name_};var d5=function(W,O){this.callback_=O;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new T3("");RKv(this,W,this.rootDirectory_);LN(this)},RKv=function(W,O,b){for(var T=0;T<O.length;T++){var L=O[T];
L.isFile?(W.fileOps_++,L.file((0,_.K5)(W.handleFileSuccess_,W,b),(0,_.K5)(W.handleFileError_,W))):W.unscannedDirectories_.push(new K91(L,b))}},LN=function(W){if(W.unscannedDirectories_.length>0&&W.directoryOps_<5&&!W.hasError_){W.directoryOps_++;
var O=W.unscannedDirectories_.shift(),b=O.entry,T=new T3(b.name);O=O.parent;O.directoryMap_[T.getName()]=T;O.directories_.push(T);b=b.createReader();b.readEntries((0,_.K5)(W.handleDirectorySuccess_,W,b,T),(0,_.K5)(W.handleDirectoryError_,W))}W.directoryOps_!=0||W.fileOps_!=0||W.unscannedDirectories_.length!=0&&!W.hasError_||W.callback_(W.rootDirectory_.files_,W.rootDirectory_.directories_,W.hasError_)};
d5.prototype.handleDirectorySuccess_=function(W,O,b){RKv(this,b,O);b.length==0?(this.directoryOps_--,LN(this)):W.readEntries((0,_.K5)(this.handleDirectorySuccess_,this,W,O),(0,_.K5)(this.handleDirectoryError_,this))};
d5.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;LN(this)};
d5.prototype.handleFileSuccess_=function(W,O){W.files_.push(O);this.fileOps_--;LN(this)};
d5.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;LN(this)};
var K91=function(W,O){this.entry=W;this.parent=O};var h6=function(W){_.ER.call(this);_.Rx(W,"drop",this.onObjectsDropped_,!1,this);_.Rx(W,"dragenter",this.onFilesDragged_,!1,this);_.Rx(W,"dragover",this.onFilesDragged_,!1,this);_.Rx(W,"dragleave",this.onDragLeave_,!1,this);_.Rx(W,"dragend",this.onDragLeave_,!1,this)};
_.Wk(h6,_.ER);var vNH=function(W,O){_.ZB.call(this,"f");this.files=W;this.directories=O};
_.Wk(vNH,_.ZB);var gN1=function(){_.ZB.call(this,"h")};
_.Wk(gN1,_.ZB);var oNz=function(){_.ZB.call(this,"i")};
_.Wk(oNz,_.ZB);var Qy5=function(){_.ZB.call(this,"g")};
_.Wk(Qy5,_.ZB);h6.prototype.onObjectsDropped_=function(W){var O=this;W.preventDefault();var b=W.event_.dataTransfer;if((W=b&&b.items)&&W.length>0&&W[0].webkitGetAsEntry){b=[];for(var T=[],L=0;L<W.length;L++){var h=W[L].webkitGetAsEntry();h?b.push(h):T.push(W[L])}new d5(b,function(Z,a,m){m?O.dispatchEvent(new Qy5("Error occurred while reading from the file system.")):O.dispatchEvent(new vNH(Z,a,T))})}else(W=b&&b.files)&&this.dispatchEvent(new vNH(Array.from(W),[]))};
h6.prototype.onFilesDragged_=function(W){W.type==="dragenter"&&this.dispatchEvent(new gN1);W.preventDefault()};
h6.prototype.onDragLeave_=function(){this.dispatchEvent(new oNz)};var ko1=function(W,O){this.JSC$9950_name_=W;this.inputElement_=O};
ko1.prototype.getName=function(){return this.JSC$9950_name_};
ko1.prototype.getInputElement=function(){return this.inputElement_};var SX=function(W,O,b){O=O===void 0?"single_file":O;b=b===void 0?[]:b;_.ER.call(this);this.overlayTarget_=W;this.parentOverlay_=W!=null?W.parentNode:_.AV("scotty-overlay-parent");this.selectorType_=O;this.acceptTypes_=b;this.overlay_=sy1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.R(SX,_.ER);
var sy1=function(W,O,b,T){var L=document.createElement("input");L.setAttribute("type","file");L.setAttribute("name","Filedata");_.Rx(L,"change",W.onFilesSelected_,!1,W);b==="multiple_file"&&(L.multiple="true");b==="single_directory"&&(L.webkitdirectory="true");T.length>0&&L.setAttribute("accept",T.join(","));L.style.position="absolute";L.style.overflow="hidden";L.style.height="0px";L.style.width="0px";L.style.opacity="0";L.setAttribute("aria-hidden","true");L.setAttribute("tabIndex",-1);if(W.overlayTarget_!=
null)return L.style.height=O.offsetHeight+"px",L.style.width=O.offsetWidth+"px",W.parentOverlay_&&(W.parentOverlay_.style.position="relative"),_.v1(L,O),B1(L,new _.Kw(O.offsetLeft,O.offsetTop)),L;W.parentOverlay_.appendChild(L);return L};
SX.prototype.click=function(){this.overlay_.click()};
SX.prototype.onFilesSelected_=function(W){a:{try{var O=(new XMLHttpRequest).upload!==void 0;break a}catch(w){}O=!1}if(O){var b;W=Array.from((b=W.target.files)!=null?b:[]);b=[];if(this.selectorType_==="single_directory"&&(_.Lf||uq||_.TR)){b=new T3("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(O=0;O<W.length;O++)for(var T=W[O],L=T.webkitRelativePath.split("/"),h=b,Z=0;Z<L.length;Z++){var a=L[Z];if(Z==L.length-1){a!="."&&h.files_.push(T);break}var m=h.directoryMap_[a];m==void 0&&(a=
m=new T3(a),h.directoryMap_[a.getName()]=a,h.directories_.push(a));h=m}b=b.directories_}this.dispatchEvent(new B6U(W,b,null))}else W=W.target.value,W.match(/^c:\\fakepath\\/i)&&(W=W.substring(12)),this.dispatchEvent(new B6U([],[],new ko1(W,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=sy1(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var B6U=function(W,O){_.ZB.call(this,"j");this.files=W;this.directories=O};
_.R(B6U,_.ZB);var rTq=function(W){this.uploadUrl_=W};var Dsq=function(){_.ER.call(this)};
_.Wk(Dsq,_.ER);var Zm=function(W){_.ZB.call(this,W)};
_.Wk(Zm,_.ZB);var IP=function(W){_.ZB.call(this,W)};
_.Wk(IP,_.ZB);var xsU=function(W,O,b,T,L){_.ER.call(this);b=document.createElement("form");b.setAttribute("method",O);b.setAttribute("enctype","multipart/form-data");b.setAttribute("encoding","multipart/form-data");O=document.createElement("input");O.setAttribute("type","hidden");O.setAttribute("name","metadata");O.setAttribute("value",L);b.appendChild(O);b.appendChild(T);this.JSC$9967_form_=b;W=new _.Np(W);_.VC(W,"upload_protocol","multipart");this.JSC$9967_url_=W.toString();this.JSC$9967_request_=new uK;this.state_=
"Ready";this.JSC$9967_errorDescription_=null;this.JSC$9967_eventHandler_=new _.be(this);_.a8(this,this.JSC$9967_eventHandler_);this.JSC$9967_eventHandler_.listen(this.JSC$9967_request_,"success",this.onTransferSuccess_);this.JSC$9967_eventHandler_.listen(this.JSC$9967_request_,"error",this.onTransferError_)};
_.R(xsU,Dsq);_.d=xsU.prototype;_.d.run=function(){this.state_="Transferring";var W=this.JSC$9967_request_,O=this.JSC$9967_form_;if(W.JSC$9385_active_)throw Error("oe");var b=new _.Np(this.JSC$9967_url_||O.action);W.JSC$9385_form_=O;O=W.JSC$9385_form_;b=_.Kz(b.toString());b!==void 0&&(O.action=b);Irw(W)};
_.d.getResponseCode=function(){return null};
_.d.getResponseText=function(){return this.JSC$9967_request_&&this.JSC$9967_request_.getResponseText()||null};
_.d.JSC$25850_getErrorDescription=function(){return this.JSC$9967_errorDescription_};
_.d.cancel=function(){this.JSC$9967_request_&&this.JSC$9967_request_.abort();this.state_="Cancelled";this.dispatchEvent(new Zm("o"))};
_.d.pause=function(){};
_.d.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new Zm("l"))};
_.d.onTransferError_=function(){this.JSC$9967_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new Zm("n"))};var aP=function(){_.pO.call(this)};
_.R(aP,_.pO);aP.prototype.createXhr=function(){var W=_.pO.prototype.createXhr.call(this);W.upload&&(W.upload.onprogress=(0,_.K5)(this.onProgress_,this));return W};
aP.prototype.onProgress_=function(W){this.dispatchEvent(W)};var zKw=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},q87=function(W,O){var b=W.attempt_+1;
if(W.maxAttempts_>0&&b>W.maxAttempts_)return!1;b==0?O():W.delayCallId_=lE(function(){W.delayCallId_=null;O()},C31(W),W);
W.attempt_=b;return!0};
zKw.prototype.reset=function(){this.delayCallId_&&_.i1.clearTimeout(this.delayCallId_);this.attempt_=-1};
var C31=function(W){var O=250*Math.pow(2,W.attempt_);W.maxDelayMs_>=0&&(O=Math.min(O,W.maxDelayMs_));return O};var Da8=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var mU=function(){_.ER.call(this);this.JSC$9977_request_=this.state_=null;this.JSC$9977_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9977_bytesTransferred_=0;this.retryIterator_=new zKw;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9977_errorDescription_=null;this.JSC$9977_eventHandler_=new _.be(this);_.a8(this,this.JSC$9977_eventHandler_);this.JSC$9977_url_=this.blob_=null;this.JSC$9977_method_=void 0;this.chunkSize_=this.JSC$9977_metadata_=
this.JSC$9977_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9977_responseText_=this.JSC$9977_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Wk(mU,Dsq);_.d=mU.prototype;_.d.run=function(){YV(this)};
_.d.getResponseCode=function(){return this.JSC$9977_responseCode_};
_.d.getResponseText=function(){return this.JSC$9977_responseText_};
_.d.JSC$25850_getErrorDescription=function(){return this.JSC$9977_errorDescription_};
_.d.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9977_eventHandler_.removeAll();this.JSC$9977_request_&&this.JSC$9977_request_.abort();this.retryIterator_.reset();var W=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(W==="Upload"||W==="Query")W=new aP,W.JSC$7800_withCredentials_=this.JSC$9977_withCredentials_,W.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9977_bytesTransferred_=
0;this.dispatchEvent(new Zm("o"))}};
_.d.pause=function(){this.pauseRequested_=!0};
var YV=function(W){var O=W.state_;W.pauseRequested_?(W.pauseRequested_=!1,W.stateAfterUnpausing_=O,W.state_="Paused"):q87(W.retryIterator_,function(){switch(W.state_){case "Start":W.JSC$9977_request_=new aP;var b=_.PQ.clone(W.JSC$9977_headers_);W.blob_.size!=null&&(b["Content-Length"]=W.blob_.size);b=xaX(b);b["X-Goog-Upload-Protocol"]="resumable";b["X-Goog-Upload-Command"]="start";W.JSC$9977_eventHandler_.removeAll();W.JSC$9977_eventHandler_.listen(W.JSC$9977_request_,"complete",W.onStartComplete_);
W.JSC$9977_request_.JSC$7800_withCredentials_=W.JSC$9977_withCredentials_;W.JSC$9977_request_.send(W.JSC$9977_url_,W.JSC$9977_method_,W.JSC$9977_metadata_,b);W.lastCommandResponseCode_=null;W.dispatchEvent(new IP("q"));break;case "Upload":b=W.transferHandle_.uploadUrl_;var T=W.blob_.size;if(c_N()){var L=W.chunkSize_;var h=W.offset_+L>=T;T=J_$(W.blob_,W.offset_,h?T:W.offset_+L)}else W.offset_=0,T=W.blob_,h=!0;W.JSC$9977_request_=new aP;W.JSC$9977_request_.JSC$7800_withCredentials_=W.JSC$9977_withCredentials_;
W.JSC$9977_eventHandler_.removeAll();W.JSC$9977_eventHandler_.listen(W.JSC$9977_request_,"progress",W.onUploadProgress_);L=(0,_.K5)(W.JSC$9979_onUploadComplete_,W,W.offset_+T.size,h);W.JSC$9977_eventHandler_.listen(W.JSC$9977_request_,"complete",L);W.lastCommandResponseCode_=null;W.dispatchEvent(new IP("q"));h=Object.assign({},W.JSC$9977_headers_||{},{"X-Goog-Upload-Command":"upload"+(h?", finalize":""),"X-Goog-Upload-Offset":W.offset_});W.JSC$9977_request_.send(b,"POST",T,h);break;case "Query":W.JSC$9977_request_=
new aP;W.JSC$9977_eventHandler_.removeAll();W.JSC$9977_eventHandler_.listen(W.JSC$9977_request_,"complete",W.onQueryComplete_);b=Object.assign({},W.JSC$9977_headers_||{},{"X-Goog-Upload-Command":"query"});W.JSC$9977_request_.send(W.transferHandle_.uploadUrl_,"POST","",b);W.lastCommandResponseCode_=null;W.dispatchEvent(new IP("q"));break;default:throw Error("df");}})||E2(W,"Transfer encountered too many consecutive failures.")},E2=function(W,O){W.state_="Error";
W.JSC$9977_errorDescription_=O;W.dispatchEvent(new Zm("n"))};
mU.prototype.onStartComplete_=function(W){var O=W.target;this.lastCommandResponseCode_=O.getStatus();this.dispatchEvent(new IP("r"));if(nN$(O))fv9(this,O);else if(GoL(O)){W=c5(W.target.getAllResponseHeaders());for(var b in W)_.LE(b.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new Zm("m"));b=vb(W,"X-Goog-Upload-URL");W=(W=vb(W,"X-Goog-Upload-Chunk-Granularity"))?parseInt(W,10):1;b===void 0||isNaN(W)||W<=0?E2(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
W)*W,this.transferHandle_=new rTq(b),this.dispatchEvent(new Zm("p")),this.state_="Upload",this.retryIterator_.reset(),YV(this))}else YV(this)};
mU.prototype.onUploadProgress_=function(W){this.JSC$9977_bytesTransferred_=this.offset_+W.loaded;this.dispatchEvent(new Zm("k"))};
mU.prototype.JSC$9979_onUploadComplete_=function(W,O,b){var T=this,L,h;return _.I(function(Z){switch(Z.nextAddress){case 1:L=b.target;T.lastCommandResponseCode_=L.getStatus();T.dispatchEvent(new IP("r"));if(HFN(L)||L.getStatus()==404)return T.JSC$9977_bytesTransferred_=W,fv9(T,L),Z.return();if(GoL(L)){Z.jumpTo(2);break}if(!(h=T.detectCorruptedBlobEnabled_)){Z.jumpTo(3);break}return _.Y(Z,t7n(T),4);case 4:h=Z.yieldResult;case 3:if(h)return E2(T,"Blob has been modified or corrupted."),Z.return();T.requireUploadRequestModification_=
L.getStatus()==400;T.state_="Query";YV(T);return Z.return();case 2:if(O)return E2(T,"Got a non-final success response after issuing a finalize command."),Z.return();T.JSC$9977_bytesTransferred_=W;T.offset_=W;T.retryIterator_.reset();YV(T);return Z.return()}})};
mU.prototype.onQueryComplete_=function(W){var O=W.target;this.lastCommandResponseCode_=O.getStatus();this.dispatchEvent(new IP("r"));nN$(O)?(O.getStatus()===200&&(this.JSC$9977_bytesTransferred_=this.blob_.size),fv9(this,O)):GoL(O)?(W=c5(W.target.getAllResponseHeaders()),W=parseInt(vb(W,"X-Goog-Upload-Size-Received"),10),isNaN(W)?E2(this,"Server did not respond with current offset."):W<this.offset_?E2(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
W+"."):this.requireUploadRequestModification_&&this.offset_===W?E2(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<W&&this.retryIterator_.reset(),this.offset_=this.JSC$9977_bytesTransferred_=W,this.state_="Upload",YV(this))):YV(this)};
var fv9=function(W,O){W.JSC$9977_responseCode_=O.getStatus();var b=c5(O.getAllResponseHeaders());zu1(b);W.JSC$9977_responseText_=O.getResponseText();W.state_="Response received";W.dispatchEvent(new Zm("l"))},GoL=function(W){var O=W.getStatus();
W=c5(W.getAllResponseHeaders());W=vb(W,"X-Goog-Upload-Status");return O===200&&W==="active"},HFN=function(W){W=c5(W.getAllResponseHeaders());
return vb(W,"X-Goog-Upload-Status")==="final"},nN$=function(W){if(HFN(W))return!0;
W=W.getStatus();return W>=400&&W<500},t7n=function(W){var O;
return _.I(function(b){if(b.nextAddress==1){if(!W.blob_||W.originalBlobSize_<=0)return b.return(!1);if(W.blob_.size!==W.originalBlobSize_)return b.return(!0);_.LI(b,2);if(O=J_$(W.blob_,0,1)){var T=new s9,L=g0U(T);T.reader_.readAsBinaryString(O);b=_.Y(b,L,4)}else b=b.return(!0);return b}if(b.nextAddress!=2)return b.return(W.blob_.size!==W.originalBlobSize_);_.ID(b);return b.return(!0)})};var $s7=function(W,O,b,T,L,h){_.ER.call(this);this.payload_=T;this.JSC$9980_url_=W;this.JSC$9980_method_=O;this.JSC$9980_headers_=b;this.JSC$9980_metadata_=L;this.encoding_=h||"binary";W=new _.Ac;this.boundary_="uploader-"+H5()+"-"+W.JSC$9234_toIsoString();this.JSC$9980_responseText_=this.JSC$9980_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9980_errorDescription_=null;this.JSC$9980_eventHandler_=new _.be(this);_.a8(this,this.JSC$9980_eventHandler_)};
_.R($s7,Dsq);_.d=$s7.prototype;
_.d.run=function(){var W=_.PQ.clone(this.JSC$9980_headers_);this.payload_.length!=null&&(W["Content-Length"]=this.payload_.length);W=xaX(W);W["X-Goog-Upload-Protocol"]="multipart";W["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new aP;this.JSC$9980_eventHandler_.removeAll();this.JSC$9980_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9980_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9980_url_,this.JSC$9980_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9980_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",W)};
_.d.getResponseCode=function(){return this.JSC$9980_responseCode_};
_.d.getResponseText=function(){return this.JSC$9980_responseText_};
_.d.JSC$25850_getErrorDescription=function(){return this.JSC$9980_errorDescription_};
_.d.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9980_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new Zm("o")))};
_.d.pause=function(){};
_.d.onTransferProgress_=function(){this.dispatchEvent(new Zm("k"))};
_.d.onTransferComplete_=function(W){var O=W.target.getStatus();O===void 0||O===-1?(this.JSC$9980_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new Zm("n"))):(this.JSC$9980_responseCode_=O,W=W.target,O=c5(W.getAllResponseHeaders()),zu1(O),this.JSC$9980_responseText_=W.getResponseText(),this.state_="Complete",this.dispatchEvent(new Zm("l")))};_.V7n=function(W,O,b,T){T=T===void 0?!1:T;if(b instanceof ko1)return new xsU(W,"POST",O,b.getInputElement(),"");if(typeof b==="string"||b instanceof String)return new $s7(W,"POST",O,b,"");var L=new mU(void 0);L.JSC$9977_url_=W;L.JSC$9977_method_="POST";L.JSC$9977_headers_=O;L.blob_=b;L.originalBlobSize_=b.size;L.JSC$9977_metadata_="";T&&(L.JSC$9977_withCredentials_=T);L.state_="Start";return L};var w5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(w5,_.qA);_.d=w5.prototype;_.d.getEnableSsEngine=function(){return _.pf(this,2)};
_.d.getEnableAwr=function(){return _.pf(this,3)};
_.d.getAlohaAutoGaRollout=function(){return _.pf(this,5)};
_.d.getEnableConfigurator=function(){return _.pf(this,6)};
_.d.getEnableMweb=function(){return _.pf(this,7)};
var M7H=function(){var W=N6v();return _.os(W,7,!0)};
w5.prototype.getEnableCtlConsentCheckbox=function(){return _.pf(this,8)};
w5.prototype.getEnableIframe=function(){return _.pf(this,9)};
var N6v=function(){var W=new w5;W=_.os(W,5,!0);W=_.os(W,2,!0);W=_.os(W,4,!1);W=_.os(W,8,!0);return _.os(W,9,!0)};
w5.prototype.getEnableScreenshotNudge=function(){return _.pf(this,10)};
var uNw=function(){var W=M7H();return _.os(W,10,!0)};
w5.prototype.getEnableWebStartupConfigEndpoint=function(){return _.pf(this,11)};
w5.prototype.getEnableJunkNudge=function(){return _.pf(this,12)};
var WHX=function(){var W=uNw();return _.os(W,12,!0)};
_.d=w5.prototype;_.d.getEnableConfiguratorLocale=function(){return _.pf(this,13)};
_.d.getEnableTinyNoPointer=function(){return _.pf(this,14)};
_.d.getEnableSupportSessionLogging=function(){return _.pf(this,15)};
_.d.getEnableFileUploadForScreenshot=function(){return _.pf(this,16)};
_.d.getEnableDirectDeflectionForSingleCategory=function(){return _.pf(this,17)};
_.d.getEnableImageSanitization=function(){return _.pf(this,18)};
_.d.getEnableAlohaBinarySplit=function(){return _.pf(this,19)};
_.d.getEnableDbFeedbackIntents=function(){return _.pf(this,20)};
_.d.getEnableMarkMandatoryFieldsWithRequired=function(){return _.pf(this,21)};
_.d.getEnableFeedbackCategoryCustomUi=function(){return _.pf(this,22)};
_.d.getEnableRealtimeCtl=function(){return _.pf(this,23)};var yNQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(yNQ,_.qA);var CQq=[/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 nli="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 fAE=_.ts(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),GpX=_.ts(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var tm8,VmE;var JTf,cT$;
JTf=function(W,O,b){W.timeOfStartCall=(new Date).getTime();var T=b||_.i1,L=T.document,h=W.nonce||_.x4(T.document);h&&!W.nonce&&(W.nonce=h);if(W.flow=="help"){var Z=_.GT("document.location.href",T);!W.helpCenterContext&&Z&&(W.helpCenterContext=Z.substring(0,1200));Z=!0;if(O&&JSON&&JSON.stringify){var a=JSON.stringify(O);(Z=a.length<=1200)&&(W.psdJson=a)}Z||(O={invalidPsd:!0})}O=[W,O,b];T.GOOGLE_FEEDBACK_START_ARGUMENTS=O;b=W.feedbackServerUri||"//www.google.com/tools/feedback";if(Z=T.GOOGLE_FEEDBACK_START)Z.apply(T,O);
else{T=b+"/load.js?";for(var m in W)O=W[m],O==null||_.LH(O)||(T+=encodeURIComponent(m)+"="+encodeURIComponent(O)+"&");W=IG(L).createElement("SCRIPT");h&&W.setAttribute("nonce",h);_.fz(W,_.SL(T));L.body.appendChild(W)}};
cT$=function(W,O,b,T){var L,h;_.I(function(Z){L=b||_.i1;var a=W.serverEnvironment==="DEV",m=b||_.i1;m=W.nonce||_.x4(m.document);a={integrationKeys:{productId:W.productId,feedbackBucket:W.bucket,triggerId:W.triggerId},callbacks:{onClose:W.callback,onLoad:W.onLoadCallback},formContent:{locale:W.locale,disableScreenshot:W.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:W.abuseLink,additionalDataConsent:W.additionalDataConsent},initializationData:{isLocalServer:a,nonce:m,useNightlyRelease:a,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:W.feedbackServerUri,colorScheme:W.colorScheme},extraData:{productVersion:W.productVersion,authUser:W.authuser,configuratorId:W.configuratorId,customZIndex:W.customZIndex,tinyNoPointer:W.tinyNoPointer,
allowNonLoggedInFeedback:W.allowNonLoggedInFeedback,enableAnonymousFeedback:W.enableAnonymousFeedback}};O&&(m=new Map(Object.entries(O)),a.extraData.productSpecificData=m);h=a;return _.Y(Z,JN1(h,T,L),0)})};
_.F95=function(W,O,b){try{if(W.flow==="help"){var T=W.helpCenterPath.replace(/^\//,"");_.BD(b||window,"https://support.google.com/"+T)}else W.flow==="submit"?JTf(W,O,b):OOE(W.productId,W.feedbackServerUri).then(function(L){L=_.bP(L,w5,1);var h=!lgX||(L==null?void 0:L.getEnableMweb()),Z=!W.tinyNoPointer||(L==null?void 0:L.getEnableTinyNoPointer());!L||L.getAlohaAutoGaRollout()&&h&&Z?cT$(W,O,b,L):JTf(W,O,b)},function(L){L&&L.name!=="DuplicateFormError"&&JTf(W,O,b)})}catch(L){cT$(W,O,b,null)}};
_.c3("userfeedback.api.startFeedback",_.F95);var iOi=/https?:\/\/\S+\.\S+/,bOq=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],jKi=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var aY1=function(W){var O=W.split(""),b=[-263237435,15,O,function(T,L,h){var Z=L.length;h.forEach(function(a,m,w){this.push(w[m]=L[(L.indexOf(a)-L.indexOf(this[m])+m+Z--)%L.length])},T.split(""))},
function(T,L){T=(T%L.length+L.length)%L.length;L.splice(-T).reverse().forEach(function(h){L.unshift(h)})},
"response",function(){for(var T=64,L=[];++T-L.length-32;){switch(T){case 58:T-=14;case 91:case 92:case 93:continue;case 123:T=47;case 94:case 95:case 96:continue;case 46:T=95}L.push(String.fromCharCode(T))}return L},
null,12,1540023973,65941107,null,O,function(T,L){for(T=(T%L.length+L.length)%L.length;T--;)L.unshift(L.pop())},
695603893,function(T){for(var L=T.length;L;)T.push(T.splice(--L,1)[0])},
"'[;'[(",function(T,L){T.push(L)},
null,function(T,L,h,Z,a){return L(h,Z,a)},
"continuation",O,function(T,L){if(T.length!=0){L=(L%T.length+T.length)%T.length;var h=T[0];T[0]=T[L];T[L]=h}},
function(){for(var T=64,L=[];++T-L.length-32;){switch(T){case 91:T=44;continue;case 123:T=65;break;case 65:T-=18;continue;case 58:T=96;continue;case 46:T=95}L.push(String.fromCharCode(T))}return L},
'"),/]];'];b[7]=b;b[11]=b;b[18]=b;try{(((0,b[15])(b[21]),b[22])(b[11],b[9]),b[22])(b[new Date("1970-01-01T04:30:12.000+04:30")/1E3],b[1]),((0,b[22])(b[11],b[23]),b[4])(b[10],b[18]),(0,b[20])(b[21],b[14])<<(0,b[17])(b[18],b[1]),(0,b[4])(b[8],b[21]),(0,b[19])((0,b[19])((0,b[17])(b[7],b[9]),b[3],b[20],(0,b[6])(),b[2]),b[3],b[5],(0,b[15])(),b[2])}catch(T){return"aTlOUOubTO4AP____8P_"+W}return O.join("")};_.yT$=new _.J("runAttestationCommand");var WN5=new _.J("verifyCommand");_.A6=new _.J("accessibilityContext");var ODf=new _.J("accessibilityData");var iDn=new _.J("profileCardCommand");var IWi=new _.J("signInEndpoint");var ZCe=new _.J("signOutEndpoint");var jdf;_.bD7=new _.J("accountItemSectionRenderer");jdf=new _.J("accountItemRenderer");_.TY9=new _.J("saveCommandToSessionStorageAction");var LN7=new _.J("crossAccountChannelTransferEndpoint");var dRh=new _.J("getAccountMenuEndpoint");_.h7T=new _.J("getAccountSwitcherEndpoint");var L68=new _.J("getAccountsListEndpoint");var dcH=new _.J("getAccountsListInnertubeEndpoint");_.h9$=new _.J("addToToastAction");var SQL=new _.J("hideEnclosingAction");_.XZ=new _.J("replaceEnclosingAction");var ZDL=new _.J("buttonRefreshAction");var ILz=new _.J("adsControlFlowOpportunityReceivedCommand");var aLn=new _.J("openAdAllowlistInstructionCommand");var mc1=new _.J("videoMastheadAdPrimaryVideoRenderer");var YQq=new _.J("displayAdRenderer");var $hO=new _.J("instreamVideoAdRenderer");_.EqU=new _.J("inFeedAdLayoutRenderer");var wRL=new _.J("sequenceItemInPlayerAdLayoutRenderer");_.As5=new _.J("adSlotRenderer");var XRn=new _.J("adAvatarViewModel");var Uc9=new _.J("adBadgeViewModel");var lLU=new _.J("adButtonViewModel");var U2=new _.J("adImageViewModel");var QZO=new _.J("reelsAdCardButtonedViewModel");var e9H=new _.J("reelsPlayerOverlayLayoutViewModel");var PU9=new _.J("showSchedulingPanelCommand");var pRH=new _.J("backstageCommentsRenderer");var R9H=new _.J("backstageImageRenderer");var KNH=new _.J("backstagePostRenderer");var vqH=new _.J("postRenderer");var gqN=new _.J("sharedPostRenderer");var oqS=new _.J("createBackstagePostEndpoint");var Qdn=new _.J("getPostVideoPreviewEndpoint");var kNq=new _.J("updateBackstagePostEndpoint");var sd9=new _.J("filterChipTransformCommand");var BYz=new _.J("insertRichSectionCommand");var FtO=new _.J("talkToRecsDeselectCommand");var rsv=new _.J("talkToRecsNextCommand");var cZX=new _.J("talkToRecsSelectCommand");var DcS=new _.J("talkToRecsUpdateTextCommand");_.wE=new _.J("browseEndpoint");_.xcw=new _.J("confirmDialogEndpoint");var z9U=new _.J("expandOnHoverCardRenderer");var CU$=new _.J("lumiereShelfDetailsRenderer");var qQq=new _.J("revealBusinessEmailCommand");var nqL=new _.J("validateChannelHandleCommand");var fLL=new _.J("channelCreationFormEndpoint");var GNU=new _.J("aboutChannelViewModel");var HDU=new _.J("channelThumbnailWithLinkRenderer");var t67=new _.J("channelCreationServiceEndpoint");var $cf=new _.J("updateChannelPageSettingsEndpoint");var lr=function(W){this.delegate=W},eX=function(){lr.apply(this,arguments)};
_.R(eX,lr);_.Jq.Object.defineProperties(eX.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(W){this.delegate.entityMetadata=W}}});var V61=function(){eX.apply(this,arguments)};
_.R(V61,eX);V61.prototype.getAssociations=function(){return[]};var vtq=new _.J("webThumbnailDetailsExtensionData");var dW8=new _.J("commandContext");var NY$=new _.J("addVideoLinkAction");var M65=new _.J("createPollAction");var uvL=new _.J("hideIdentityChipAction");var Jsq=new _.J("openUpdateCommentDialogAction");var PX=new _.J("updateBackstagePollAction");var cs1=new _.J("updateCommentVoteAction");var FNf=new _.J("commentThreadRenderer");var ysf=function(){eX.apply(this,arguments)};
_.R(ysf,eX);ysf.prototype.getAssociations=function(){return[]};_.WD7=new _.J("commentDialogRenderer");var OfH=new _.J("updateCommentsSettingsEndpoint");var if7=new _.J("commentViewModel");var bff=new _.J("triStateButtonViewModel");var j6f=new _.J("voiceReplyContainerViewModel");_.I5=new _.J("commandExecutorCommand");var Bi=new _.J("emoji");var TQL=new _.J("updateCreatorChannelInnertubeCommand");_.LDN=new _.J("appendContinuationItemsAction");_.d$n=new _.J("changeEngagementPanelVisibilityAction");_.Cd=new _.J("continuationCommand");var h6f=new _.J("listMutationCommand");_.pN=new _.J("openPopupAction");var S3S=new _.J("persistSubscriptionsDisplayPreferencesCommand");var A$z;_.Zfv=new _.J("playlistRemoveVideosAction");_.IbH=new _.J("updatePlaylistAction");_.abn=new _.J("addToPlaylistCommand");_.m$n=new _.J("endPlaylistCommand");_.Y37=new _.J("recoverPlaylistCommand");_.EsN=new _.J("refreshPlaylistCommand");_.wkH=new _.J("refreshFormCommand");A$z=new _.J("openOnePickAddVideoModalCommand");_.Yj2=new _.J("reloadContinuationItemsCommand");_.Xkw=new _.J("scrollToEngagementPanelCommand");var U$5=new _.J("selectCountryCommand");var lbn=new _.J("showReloadUiCommand");var e6z=new _.J("undoFeedbackAction");var PMq=new _.J("updateButtonAction");var pkU=new _.J("updateSubscribeButtonAction");var R6f=new _.J("updateToggleAction");var KDS=new _.J("webNativeShareCommand");_.F9=new _.J("webCommandMetadata");_.RP=new _.J("webHandleServiceEndpointExtension");var U1P=new _.J("webNavigationEndpointData");var vsq=new _.J("copyLinkCommand");var gsn=new _.J("playlistVotingRefreshPopupCommand");var os9=new _.J("selectChipCommand");var Q6n=new _.J("setCookieCommand");var kRn=new _.J("setLocalStorageCommand");var s6$=new _.J("setPrefStorageEntryCommand");var x$N;_.BQv=new _.J("settingsUpdateCheckboxCommand");_.r$f=new _.J("settingsUpdateTextCommand");_.D$1=new _.J("settingsUpdateOptionsCommand");x$N=new _.J("settingsUpdateSwitchCommand");_.z6v=new _.J("settingsUpdateConnectedAppRendererCommand");var CMf=new _.J("updateTextInputFormFieldRendererCommand");var q3N=new _.J("updateToggleButtonStateCommand");var nsw=new _.J("updateUrlParamCommand");var fbv=new _.J("webSubmitFormCommand");var GR7=new _.J("channelSwitcherPageRenderer"),Hff=new _.J("updateChannelSwitcherPageAction");_.bU=new _.J("continuationItemRenderer");_.KN=new _.J("richItemRenderer");var tbN=new _.J("richSectionRenderer");_.$$$=new _.J("richShelfRenderer");_.VbU=new _.J("metadataBadgeRenderer");_.NQ9=new _.J("multiPageMenuNotificationSectionRenderer");_.Mb5=new _.J("playlistLoopButtonStateRenderer");var uSH=new _.J("claimLegacyYoutubeChannelEndpoint");var J$5=new _.J("getNotificationMenuEndpoint");var c$H=new _.J("getSearchInVideoCommand");_.FDw=new _.J("getTranscriptEndpoint");_.mM=new _.J("signalServiceEndpoint");var y$q=new _.J("verifyAgeEndpoint");var ErX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ErX,_.qA);ErX.prototype.getPath=function(){return _.vk(this,1)};
ErX.prototype.getValue=function(){return _.vk(this,2)};var WBq=[0,_.Hk,-1];var O47=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(O47,_.qA);var YJX=_.WD(O47,[0,_.t$,WBq]);var i45=new _.J("dismissalEndpoint");var b4H=new _.J("elementsCommand");_.D6=new _.J("innertubeCommand");var jB9=new _.J("multipleInlinePlaybackCommand");var bY8=new _.J("loggingDirectives");var T7w=new _.J("acknowledgeChannelTouStrikeCommand");var LB5=function(){eX.apply(this,arguments)};
_.R(LB5,eX);LB5.prototype.getAssociations=function(){return[]};var daH=function(){eX.apply(this,arguments)};
_.R(daH,eX);daH.prototype.getAssociations=function(){return[]};var Nf=new _.J("entityBatchUpdate");_.huv=new _.J("entityUpdateCommand");var SiU=function(){eX.apply(this,arguments)};
_.R(SiU,eX);SiU.prototype.getAssociations=function(){var W=[];this.delegate.alternateChannel&&W.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&W.push.apply(W,_.PG(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&W.push(this.delegate.oneofChannelEntity);return[].concat(_.PG(new Set(W)))};var Z4f=function(){eX.apply(this,arguments)};
_.R(Z4f,eX);Z4f.prototype.getAssociations=function(){var W=[];this.delegate.entryCollection&&W.push(this.delegate.entryCollection);return[].concat(_.PG(new Set(W)))};
var IAU=function(){eX.apply(this,arguments)};
_.R(IAU,eX);IAU.prototype.getAssociations=function(){var W=[];this.delegate.parentPlaylist&&W.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var O=_.S(this.delegate.entries),b=O.next();!b.done;b=O.next())W.push.apply(W,_.PG((new aAv(b.value)).getAssociations()));return[].concat(_.PG(new Set(W)))};
var aAv=function(){lr.apply(this,arguments)};
_.R(aAv,lr);aAv.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);return[].concat(_.PG(new Set(W)))};var ma5=function(){eX.apply(this,arguments)};
_.R(ma5,eX);ma5.prototype.getAssociations=function(){var W=[];this.delegate.descriptionEntity&&W.push(this.delegate.descriptionEntity);this.delegate.creators&&W.push.apply(W,_.PG(this.delegate.creators));this.delegate.theBiggestFan&&W.push(this.delegate.theBiggestFan);return[].concat(_.PG(new Set(W)))};
var Yiq=function(){eX.apply(this,arguments)};
_.R(Yiq,eX);Yiq.prototype.getAssociations=function(){return[]};var El9=new _.J("fantasyRosterViewModel");var w1n=new _.J("addFollowUpSurveyCommand");var AN7=new _.J("getSurveyCommand");var X1z=new _.J("ratingSurveyOptionRenderer");_.QG=new _.J("feedbackEndpoint");var UaU=new _.J("reportHistoryTableCellRenderer"),lAH=new _.J("reportHistoryTableTextCellRenderer"),eu$=new _.J("reportHistoryTableReasonCellRenderer");_.PQ1=new _.J("flagEndpoint");var p1z=new _.J("getFlowCommand");var RuH=new _.J("submitFormWithValidationFlowCommand");var KBL=function(){eX.apply(this,arguments)};
_.R(KBL,eX);KBL.prototype.getAssociations=function(){return[]};var vl1=new _.J("flowFormState");var glU=new _.J("gameCardRenderer");var olv=new _.J("accountLinkingStateChangedCommand");var QB1=function(){eX.apply(this,arguments)};
_.R(QB1,eX);QB1.prototype.getAssociations=function(){return[]};var kpz=new _.J("changeMiniAppPlayStateCommand");var sBf=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(sBf,_.qA);var vX=[1,2,3];var B7w=[0,vX,uJ8,_.JBE,Gmh];var rNf=_.WD(sBf,B7w),Da1=_.OB(B7w);var xa9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(xa9,_.qA);var zuf=[0,_.nf,_.Hk];var CQ7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(CQ7,_.qA);var qif=[0,_.Hk,_.nf,-1];var nlS=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(nlS,_.qA);var fAH=function(W,O){return _.jq(W,3,O)};var Gpw=_.OB([0,1,zuf,_.VK,qif]);var H4H=new _.J("miniAppScoreChallengeViewModel");var tmL=new _.J("miniGameCardViewModel");var $a1=new _.J("teaserCardViewModel");var VmH=function(){eX.apply(this,arguments)};
_.R(VmH,eX);VmH.prototype.getAssociations=function(){return[]};_.N7n=new _.J("feedbackItemRenderer");var Mm7=function(){eX.apply(this,arguments)};
_.R(Mm7,eX);Mm7.prototype.getAssociations=function(){return[]};_.u11=new _.J("playerInterstitialRenderer");var JNf=new _.J("getKidsBlocklistPickerCommand");_.cNw=new _.J("updateKidsBlacklistEndpoint");_.tT=new _.J("likeEndpoint");var FB5,yN5,WHn;FB5=new _.J("addChatItemAction");yN5=new _.J("removeChatItemAction");WHn=new _.J("markChatItemAsDeletedAction");_.OOH=new _.J("setLiveChatCollapsedStateAction");var iOS=function(){eX.apply(this,arguments)};
_.R(iOS,eX);iOS.prototype.getAssociations=function(){return[]};var bO7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(bO7,_.qA);var jKS=_.WD(bO7,[0,1,_.nf]);var T9v=new _.J("liveChatEndpoint");var LH1=new _.J("liveChatItemContextMenuEndpoint");var dnn=new _.J("liveChatReplayEndpoint");_.hf7=new _.J("emojiPickerRenderer");var SRH=new _.J("liveChatAuthorBadgeViewModel");var ZOS=new _.J("deleteLiveChatMessageCommand");var IBz=new _.J("liveChatActionEndpoint");var aBn=new _.J("createLiveChatPollEndpoint");var mnU=new _.J("manageLiveChatUserEndpoint");var YRv=new _.J("moderateLiveChatEndpoint");_.EHU=new _.J("sendLiveChatMessageEndpoint");var wxN=new _.J("sendLiveChatVoteEndpoint");var AYf=new _.J("clearLocationCommand");var XxH=new _.J("resolveLocationCommand");var UnU=new _.J("interactionLoggingCommandMetadata");var kfe=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(kfe,_.qA);var QgP=function(W,O){return _.TP(W,1,O)};var lB1=[0,_.GR];var oCT=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(oCT,_.qA);var gCX=function(W,O){return A8(W,1,kfe,O)};oCT.prototype.JSC$10072_serializeBinary=O0X([0,_.t$,lB1]);var KHX={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 ef9={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"},
PEH={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 C12={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"};_.tZ8=new _.J("logFlowLoggingEventCommand");_.XF=new _.J("loggingContext");var pxz=new _.J("captionLanguageSelectActionCommand");var Rf7=new _.J("showCaptionLanguageSelectActionCommand");var KHn=new _.J("dismissDialogEndpoint");var vHw=new _.J("hideItemSectionVideosByIdCommand");var gHH=new _.J("showMiniplayerCommand");var oHN=function(){eX.apply(this,arguments)};
_.R(oHN,eX);oHN.prototype.getAssociations=function(){return[]};var QKf=function(){eX.apply(this,arguments)};
_.R(QKf,eX);QKf.prototype.getAssociations=function(){return[]};var ky5=function(){eX.apply(this,arguments)};
_.R(ky5,eX);ky5.prototype.getAssociations=function(){return[]};var sK9=function(){eX.apply(this,arguments)};
_.R(sK9,eX);sK9.prototype.getAssociations=function(){var W=[];this.delegate.downloadsList&&W.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&W.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&W.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.PG(new Set(W)))};var B9w=function(){eX.apply(this,arguments)};
_.R(B9w,eX);B9w.prototype.getAssociations=function(){var W=[];this.delegate.refresh&&W.push(this.delegate.refresh);if(this.delegate.downloads)for(var O=_.S(this.delegate.downloads),b=O.next();!b.done;b=O.next())W.push.apply(W,_.PG((new rY1(b.value)).getAssociations()));return[].concat(_.PG(new Set(W)))};
var rY1=function(){lr.apply(this,arguments)};
_.R(rY1,lr);rY1.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playlist&&W.push(this.delegate.playlist);this.delegate.videoItem&&W.push(this.delegate.videoItem);this.delegate.playlistItem&&W.push(this.delegate.playlistItem);return[].concat(_.PG(new Set(W)))};var DnL=function(){eX.apply(this,arguments)};
_.R(DnL,eX);DnL.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.PG(this.delegate.localImageEntities));return[].concat(_.PG(new Set(W)))};var xnq=function(){eX.apply(this,arguments)};
_.R(xnq,eX);xnq.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.PG(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.PG(new Set(W)))};var zf9=function(){eX.apply(this,arguments)};
_.R(zf9,eX);zf9.prototype.getAssociations=function(){return[]};var CEL=function(){eX.apply(this,arguments)};
_.R(CEL,eX);CEL.prototype.getAssociations=function(){var W=[];this.delegate.fakeChildren&&W.push.apply(W,_.PG(this.delegate.fakeChildren));return[].concat(_.PG(new Set(W)))};var qR1=function(){eX.apply(this,arguments)};
_.R(qR1,eX);qR1.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);return[].concat(_.PG(new Set(W)))};var nHf=function(){eX.apply(this,arguments)};
_.R(nHf,eX);nHf.prototype.getAssociations=function(){return[]};var fB5=function(){eX.apply(this,arguments)};
_.R(fB5,eX);fB5.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.videos&&W.push.apply(W,_.PG(this.delegate.videos));this.delegate.collaboratorChannels&&W.push.apply(W,_.PG(this.delegate.collaboratorChannels));this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.refresh&&W.push(this.delegate.refresh);return[].concat(_.PG(new Set(W)))};var GyH=function(){eX.apply(this,arguments)};
_.R(GyH,eX);GyH.prototype.getAssociations=function(){var W=[];this.delegate.video&&W.push(this.delegate.video);this.delegate.channelContributor&&W.push(this.delegate.channelContributor);return[].concat(_.PG(new Set(W)))};var HO1=function(){lr.apply(this,arguments)};
_.R(HO1,lr);HO1.prototype.getAssociations=function(){var W=[];this.delegate.recommendedVideoMetadata&&W.push.apply(W,_.PG((new toN(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.PG(new Set(W)))};
var toN=function(){lr.apply(this,arguments)};
_.R(toN,lr);toN.prototype.getAssociations=function(){var W=[];this.delegate.localImageEntities&&W.push.apply(W,_.PG(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.PG(new Set(W)))};var $nw=function(){lr.apply(this,arguments)};
_.R($nw,lr);$nw.prototype.getAssociations=function(){var W=[];this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);return[].concat(_.PG(new Set(W)))};var Von=function(){eX.apply(this,arguments)};
_.R(Von,eX);Von.prototype.getAssociations=function(){var W=[];this.delegate.owner&&W.push(this.delegate.owner);this.delegate.downloadState&&W.push(this.delegate.downloadState);this.delegate.userState&&W.push.apply(W,_.PG((new $nw(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&W.push.apply(W,_.PG((new HO1(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.PG(new Set(W)))};var N97=function(){eX.apply(this,arguments)};
_.R(N97,eX);N97.prototype.getAssociations=function(){var W=[];this.delegate.userChannelDetails&&W.push(this.delegate.userChannelDetails);return[].concat(_.PG(new Set(W)))};var MoL=function(){eX.apply(this,arguments)};
_.R(MoL,eX);MoL.prototype.getAssociations=function(){var W=[];this.delegate.channelOwner&&W.push(this.delegate.channelOwner);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&W.push.apply(W,_.PG(this.delegate.localImageEntities));this.delegate.downloadStatus&&W.push(this.delegate.downloadStatus);return[].concat(_.PG(new Set(W)))};var ONQ=new _.J("downloadsPageSmartDownloadsOptInBannerParams");var uGw=function(){eX.apply(this,arguments)};
_.R(uGw,eX);uGw.prototype.getAssociations=function(){return[]};var JYw=function(){eX.apply(this,arguments)};
_.R(JYw,eX);JYw.prototype.getAssociations=function(){return[]};var cYz=function(){eX.apply(this,arguments)};
_.R(cYz,eX);cYz.prototype.getAssociations=function(){return[]};var FHv=function(){eX.apply(this,arguments)};
_.R(FHv,eX);FHv.prototype.getAssociations=function(){return[]};var yYS=function(){eX.apply(this,arguments)};
_.R(yYS,eX);yYS.prototype.getAssociations=function(){return[]};var WOL=function(){eX.apply(this,arguments)};
_.R(WOL,eX);WOL.prototype.getAssociations=function(){return[]};var OWH=function(){eX.apply(this,arguments)};
_.R(OWH,eX);OWH.prototype.getAssociations=function(){return[]};var iWn=function(){eX.apply(this,arguments)};
_.R(iWn,eX);iWn.prototype.getAssociations=function(){return[]};var bWN=function(){eX.apply(this,arguments)};
_.R(bWN,eX);bWN.prototype.getAssociations=function(){return[]};_.kz=new _.J("dislikeButtonViewModel");_.QU=new _.J("likeButtonViewModel");var jn1=new _.J("videoSummaryContentViewModel");var TN7=new _.J("videoSummaryParagraphViewModel");var LO5=new _.J("changeTimelyActionVisibilityCommand");var dVn=new _.J("hideEngagementPanelEndpoint");var hQf=new _.J("refreshPanelEndpoint");var S$U=new _.J("scrollToSectionEndpoint");var ZWn=new _.J("seekToVideoTimestampCommand");_.od=new _.J("showEngagementPanelEndpoint");var I8q=new _.J("showTransientPlayerScrimOverlayCommand");var a8$=new _.J("toggleEngagementPanelCommand");_.mVn=new _.J("createBroadcastCommand");var Y$7=new _.J("metadataUpdateCommand");var EB7=function(){eX.apply(this,arguments)};
_.R(EB7,eX);EB7.prototype.getAssociations=function(){return[]};var wyU=function(){eX.apply(this,arguments)};
_.R(wyU,eX);wyU.prototype.getAssociations=function(){return[]};var AEz=function(){eX.apply(this,arguments)};
_.R(AEz,eX);AEz.prototype.getAssociations=function(){return[]};_.Xy5=new _.J("merchandiseShelfRenderer");var UV7=new _.J("gridMovieRenderer");_.l8H=new _.J("movieRenderer");var eQq=function(){eX.apply(this,arguments)};
_.R(eQq,eX);eQq.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.PG(this.delegate.trackDownloadMetadatas));return[].concat(_.PG(new Set(W)))};var PBn=function(){eX.apply(this,arguments)};
_.R(PBn,eX);
PBn.prototype.getAssociations=function(){var W=[];this.delegate.downloadedTracks&&W.push.apply(W,_.PG(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&W.push.apply(W,_.PG(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&W.push.apply(W,_.PG(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&W.push.apply(W,_.PG(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&W.push.apply(W,_.PG(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
W.push.apply(W,_.PG(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&W.push.apply(W,_.PG(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&W.push.apply(W,_.PG(this.delegate.metadataOnlyTracks));return[].concat(_.PG(new Set(W)))};var pyH=function(){eX.apply(this,arguments)};
_.R(pyH,eX);pyH.prototype.getAssociations=function(){var W=[];this.delegate.trackDownloadMetadatas&&W.push.apply(W,_.PG(this.delegate.trackDownloadMetadatas));return[].concat(_.PG(new Set(W)))};var RQ5=function(){eX.apply(this,arguments)};
_.R(RQ5,eX);RQ5.prototype.getAssociations=function(){var W=[];this.delegate.playbackData&&W.push(this.delegate.playbackData);this.delegate.localImageEntities&&W.push.apply(W,_.PG(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.PG(new Set(W)))};var KON=function(){eX.apply(this,arguments)};
_.R(KON,eX);
KON.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&W.push.apply(W,_.PG(this.delegate.primaryArtists));this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.tracks&&W.push.apply(W,_.PG(this.delegate.tracks));this.delegate.share&&W.push(this.delegate.share);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.refresh&&
W.push(this.delegate.refresh);return[].concat(_.PG(new Set(W)))};
var vB$=function(){eX.apply(this,arguments)};
_.R(vB$,eX);vB$.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.tracks&&W.push.apply(W,_.PG(this.delegate.tracks));return[].concat(_.PG(new Set(W)))};
var gB1=function(){eX.apply(this,arguments)};
_.R(gB1,eX);gB1.prototype.getAssociations=function(){var W=[];this.delegate.albumRelease&&W.push(this.delegate.albumRelease);return[].concat(_.PG(new Set(W)))};var oB1=function(){eX.apply(this,arguments)};
_.R(oB1,eX);oB1.prototype.getAssociations=function(){var W=[];this.delegate.details&&W.push(this.delegate.details);this.delegate.userDetails&&W.push(this.delegate.userDetails);return[].concat(_.PG(new Set(W)))};
var QnU=function(){eX.apply(this,arguments)};
_.R(QnU,eX);QnU.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.PG(new Set(W)))};
var khn=function(){eX.apply(this,arguments)};
_.R(khn,eX);khn.prototype.getAssociations=function(){var W=[];this.delegate.parentArtist&&W.push(this.delegate.parentArtist);return[].concat(_.PG(new Set(W)))};var sn7=function(){eX.apply(this,arguments)};
_.R(sn7,eX);sn7.prototype.getAssociations=function(){return[]};var BNw=function(){eX.apply(this,arguments)};
_.R(BNw,eX);BNw.prototype.getAssociations=function(){return[]};var rEn=function(){eX.apply(this,arguments)};
_.R(rEn,eX);
rEn.prototype.getAssociations=function(){var W=[];this.delegate.tracks&&W.push.apply(W,_.PG(this.delegate.tracks));this.delegate.refresh&&W.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&W.push(this.delegate.details);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&W.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.entryCollection&&
W.push(this.delegate.entryCollection);this.delegate.share&&W.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&W.push.apply(W,_.PG((new DVz(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.PG(new Set(W)))};
var DVz=function(){lr.apply(this,arguments)};
_.R(DVz,lr);DVz.prototype.getAssociations=function(){var W=[];this.delegate.creatorEntity&&W.push(this.delegate.creatorEntity);return[].concat(_.PG(new Set(W)))};var xV9=function(){eX.apply(this,arguments)};
_.R(xV9,eX);xV9.prototype.getAssociations=function(){return[]};var zQn=function(){eX.apply(this,arguments)};
_.R(zQn,eX);
zQn.prototype.getAssociations=function(){var W=[];this.delegate.musicLibraryStatusEntity&&W.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&W.push.apply(W,_.PG(this.delegate.artists));this.delegate.audioModeVersion&&W.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&W.push(this.delegate.videoModeVersion);this.delegate.userDetails&&W.push(this.delegate.userDetails);this.delegate.details&&W.push(this.delegate.details);this.delegate.albumRelease&&W.push(this.delegate.albumRelease);this.delegate.share&&
W.push(this.delegate.share);this.delegate.libraryEdit&&W.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&W.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&W.push(this.delegate.playbackPosition);this.delegate.lyrics&&W.push(this.delegate.lyrics);return[].concat(_.PG(new Set(W)))};
var CBn=function(){eX.apply(this,arguments)};
_.R(CBn,eX);CBn.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.PG(new Set(W)))};
var q$$=function(){eX.apply(this,arguments)};
_.R(q$$,eX);q$$.prototype.getAssociations=function(){var W=[];this.delegate.parentTrack&&W.push(this.delegate.parentTrack);return[].concat(_.PG(new Set(W)))};var WR=new _.J("musicResponsiveListItemRenderer");var Xuh=new _.J("addToPlaylistEndpoint");var nB7=new _.J("captionPickerEndpoint");var f87=new _.J("suggestStats");var Ghz=new _.J("backstageImageUploadEndpoint");var HWH=new _.J("createBackstagePostDialogEndpoint");_.tY9=new _.J("createCommentReplyDialogEndpoint");_.$VL=new _.J("updateCommentDialogEndpoint");_.VYf=new _.J("updateCommentReplyDialogEndpoint");var NNv=new _.J("menuEndpoint");var wl8=new _.J("modalEndpoint");var MYL=new _.J("playlistEditorEndpoint");var uV1=new _.J("copyTextEndpoint");var JEw,cE1;JEw=new _.J("shareEndpoint");cE1=new _.J("shareEntityEndpoint");_.FOH=new _.J("shareEntityServiceEndpoint");_.kVO=new _.J("userFeedbackEndpoint");_.V3=new _.J("watchEndpoint");var i6O=new _.J("watchPlaylistEndpoint");var yE$=new _.J("addUpcomingEventReminderEndpoint");_.g5=new _.J("getCommentsFromInboxCommand");var Wc1=new _.J("notificationOptOutEndpoint");var Ocw=new _.J("recordNotificationInteractionsEndpoint");var ic1=new _.J("removeUpcomingEventReminderEndpoint");var wu1=new _.J("getDownloadActionCommand");_.bcn=new _.J("offlineOrchestrationActionCommand");var j$f=function(){eX.apply(this,arguments)};
_.R(j$f,eX);j$f.prototype.getAssociations=function(){return[]};var TqN=function(){eX.apply(this,arguments)};
_.R(TqN,eX);TqN.prototype.getAssociations=function(){return[]};var LcH=function(){eX.apply(this,arguments)};
_.R(LcH,eX);LcH.prototype.getAssociations=function(){return[]};var d2U=function(){eX.apply(this,arguments)};
_.R(d2U,eX);d2U.prototype.getAssociations=function(){return[]};var hjH=function(){eX.apply(this,arguments)};
_.R(hjH,eX);hjH.prototype.getAssociations=function(){var W=[];this.delegate.transfer&&W.push(this.delegate.transfer);this.delegate.adsPlaybackData&&W.push.apply(W,_.PG(this.delegate.adsPlaybackData));this.delegate.drmLicense&&W.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&W.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&W.push(this.delegate.videoDownloadContextEntity);return[].concat(_.PG(new Set(W)))};var SYv=function(){eX.apply(this,arguments)};
_.R(SYv,eX);SYv.prototype.getAssociations=function(){return[]};var Zc1=function(){eX.apply(this,arguments)};
_.R(Zc1,eX);Zc1.prototype.getAssociations=function(){var W=[];this.delegate.offlineVideoStreams&&W.push.apply(W,_.PG(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&W.push.apply(W,_.PG(this.delegate.captionTrack));return[].concat(_.PG(new Set(W)))};var IRS=function(){eX.apply(this,arguments)};
_.R(IRS,eX);IRS.prototype.getAssociations=function(){return[]};var aRn=new _.J("showMoreDrawerCommand");var m2z=new _.J("updateEngagementPanelContentCommand");var YY1=new _.J("getPdgBuyFlowCommand");var Egw=new _.J("liveChatPurchaseMessageEndpoint");var wTf=new _.J("openSuperStickerBuyFlowCommand");var ARL=new _.J("updatePdgFeatureEnablementCommand");var XT$=function(){eX.apply(this,arguments)};
_.R(XT$,eX);XT$.prototype.getAssociations=function(){return[]};var U2z=function(){eX.apply(this,arguments)};
_.R(U2z,eX);U2z.prototype.getAssociations=function(){return[]};_.lR7=new _.J("pdgCommentChipRenderer");_.ejv=new _.J("permissionRoleBottomBarRenderer");_.PZU=new _.J("updatePermissionRoleCommand");var pTU=new _.J("prefetchWatchCommand");var Rj5=new _.J("updatePlayerErrorMessageCommand");var SjQ=new _.J("toggleCaptionsVisibilityCommand");_.KcU=new _.J("quickActionsViewModel");var vgv=new _.J("playerResponse");var ggS=new _.J("playlistRenderer");_.og$=new _.J("playlistVideoListRenderer");_.oP=new _.J("playlistEditEndpoint");var Q$$=new _.J("createImagePollCommand");var kML=new _.J("createQuizCommand");var s$$=new _.J("quizRenderer");var Bq1=new _.J("uploadedVideoRenderer");var rR9=new _.J("decorateMessageEndpoint");var D2N=new _.J("lpOfferCardOptionViewModel");var x2v=new _.J("sfvAudioItemPlaybackCommand");var zjS=function(){eX.apply(this,arguments)};
_.R(zjS,eX);zjS.prototype.getAssociations=function(){return[]};_.Qg=new _.J("reelNonVideoContentEndpoint");_.l8=new _.J("reelWatchEndpoint");_.kV=new _.J("reelItemRenderer");_.CZU=new _.J("reelMetapanelViewModel");_.qYn=new _.J("reelNonVideoContentRenderer");_.ngU=new _.J("reelPlayerOverlayRenderer");var fR$=new _.J("shortsLockupViewModel");var GMH=new _.J("sponsorButtonViewModel");var HcH=new _.J("reelItemWatchResponse");var tON=new _.J("textBadgeRenderer");_.s2=new _.J("buttonRenderer");_.BX=new _.J("toggleButtonRenderer");var oKP=new _.J("switchButtonViewModel");_.$29=new _.J("confirmDialogRenderer");var VO1;VO1=new _.J("menuRenderer");_.Nq7=new _.J("menuFlexibleItemRenderer");var MOz=new _.J("pollRenderer");_.u8w=new _.J("backgroundPromoRenderer");var cRw;_.JRS=new _.J("chipCloudRenderer");cRw=new _.J("chipCloudChipRenderer");var Fcw=new _.J("dropdownRenderer");var brL=new _.J("gridVideoRenderer");_.jzN=new _.J("itemSectionRenderer");_.Tc9=new _.J("messageRenderer");var LQ$=new _.J("sortFilterHeaderRenderer");_.r5=new _.J("videoRenderer");var duf=new _.J("resolveUrlCommandMetadata");var hFq=function(){eX.apply(this,arguments)};
_.R(hFq,eX);hFq.prototype.getAssociations=function(){return[]};_.S_N=new _.J("getAnswerCommand");_.Ao=new _.J("searchEndpoint");var Zrn=new _.J("genAiRichTextViewModel");var EDh=new _.J("overviewAnswerViewModel");var Iwf=new _.J("addToPlaylistServiceEndpoint");var awn=new _.J("clearSearchHistoryEndpoint");var mu7=new _.J("clearWatchHistoryEndpoint");var Y_1=new _.J("webSerializedServiceEndpointExtension");_.E25=new _.J("createCommentEndpoint");var wL5=new _.J("createCommentReplyEndpoint");var Aun=new _.J("performCommentActionEndpoint");var XLn=new _.J("updateCommentEndpoint");var UuU=new _.J("updateCommentReplyEndpoint");_.Dm=new _.J("createPlaylistServiceEndpoint");var lwN=new _.J("deletePlaylistEndpoint");var eF5=new _.J("deleteVideoEndpoint");var A71=new _.J("getReportFormEndpoint");var PsL=new _.J("modifyChannelNotificationPreferenceEndpoint");var BfT;_.Yz=new _.J("offlinePlaylistEndpoint");BfT={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 rK8;_.mo=new _.J("offlineVideoEndpoint");rK8={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 pLq=new _.J("pingingEndpoint");_.RFL=new _.J("selectActiveIdentityEndpoint");var KQ$=new _.J("setSettingEndpoint");var yZO=new _.J("undoFeedbackEndpoint");var v27=new _.J("unsubscribeEndpoint");_.g2q=new _.J("updatedMetadataEndpoint");var o2q=function(){eX.apply(this,arguments)};
_.R(o2q,eX);o2q.prototype.getAssociations=function(){return[]};_.QzS=new _.J("updateLocalAppSettingCommand");var kiv=new _.J("saveImageToDeviceEndpoint");var szn=new _.J("shareImageCommand");var BcS=new _.J("sharingProviderDataCommand");var ruz=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ruz,_.qA);var DuU=[0,_.Hk,-1];ruz.prototype.JSC$10273_serializeBinary=O0X(DuU);var xuz=_.OB(DuU);var zF9=new _.J("userMentionSuggestionRenderer");var Cs7=new _.J("liveChatTunnelCommand");var q_$=new _.J("showSponsorshipsGiftOfferDialogCommand");var n2v=new _.J("sponsorshipsScrollableShelfViewModel");var fwq=new _.J("updateUpcomingEventReminderButtonStateCommand");var GiL=new _.J("upcomingEventReminderButtonStateRenderer");var Hrq=new _.J("subscribeEndpoint");var tdq=new _.J("registerTasksCommand");var $uU=new _.J("showDialogCommand");_.Kbe=new _.J("showSheetCommand");var VdH=new _.J("showSnackbarCommand");var NcL=function(){eX.apply(this,arguments)};
_.R(NcL,eX);NcL.prototype.getAssociations=function(){return[]};var Mdq=function(){eX.apply(this,arguments)};
_.R(Mdq,eX);Mdq.prototype.getAssociations=function(){return[]};_.Hm=new _.J("avatarViewModel");var Jm1=new _.J("badgeViewModel");_.Kp=new _.J("buttonViewModel");_.xV=new _.J("chipViewModel");var urq=new _.J("contentPreviewImageViewModel");var Juf=new _.J("decoratedAvatarViewModel");var ylX=new _.J("downloadButtonViewModel");_.QEe=new _.J("engagementBarViewModel");_.cuf=new _.J("imageBannerViewModel");var AQX=new _.J("lockupContentMetadataRowExtension");var FQw=new _.J("lockupMetadataViewModel");_.yu9=new _.J("lockupViewModel");var WUN=new _.J("avatarStackViewModel");var ON5=function(){eX.apply(this,arguments)};
_.R(ON5,eX);ON5.prototype.getAssociations=function(){return[]};_.iNf=new _.J("pageHeaderViewModel");var bN5=new _.J("snackbarViewModel");var jP7=new _.J("thumbnailHoverOverlayToggleActionsViewModel");_.vm=new _.J("toggleButtonViewModel");var T5q=function(){eX.apply(this,arguments)};
_.R(T5q,eX);T5q.prototype.getAssociations=function(){return[]};_.kaX=new _.J("votingViewModel");var LU1=new _.J("sectionHeaderViewModel");var dNU=new _.J("notifyDropdownOptionSelectedCommand");var vWi=new _.J("listViewModel");_.oWT=new _.J("listItemViewModel");var hUz=new _.J("dialogHeaderViewModel");var S2w=function(){eX.apply(this,arguments)};
_.R(S2w,eX);S2w.prototype.getAssociations=function(){return[]};var ZN5=function(){eX.apply(this,arguments)};
_.R(ZN5,eX);ZN5.prototype.getAssociations=function(){return[]};var Imz=function(){eX.apply(this,arguments)};
_.R(Imz,eX);Imz.prototype.getAssociations=function(){return[]};_.am1=new _.J("transcriptSubmitCaptionCorrectionCommand");var mN1=function(){eX.apply(this,arguments)};
_.R(mN1,eX);mN1.prototype.getAssociations=function(){return[]};var jmO=new _.J("unpluggedStringRunImage");var Y2n=new _.J("tabViewModel");var EVw=new _.J("tabbedViewModel");var wXL=function(){eX.apply(this,arguments)};
_.R(wXL,eX);wXL.prototype.getAssociations=function(){return[]};_.A6q=new _.J("updateDescriptionAction");var XXU=new _.J("updateToggleButtonTextAction");_.UNU=new _.J("autoplaySwitchButtonRenderer");var BR;_.lm5=new _.J("multiMarkersPlayerBarRenderer");BR=new _.J("chapterRenderer");var eU5=new _.J("heatMarkerRenderer");var I$e=new _.J("heatmapRenderer");var Pr9=new _.J("smartSkipPlayerScrimOverlayRenderer");var pX1=new _.J("timedMarkerDecorationRenderer");var w6E=new _.J("postWebToNativeMessageCommand");var RU9=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(RU9,_.qA);var KU7=_.WD(RU9,[0,_.Hk,-2]);var vV$=new _.J("whitelistEditEndpoint");var gVU=new _.J("clearUrlParamCommand");var oV$=new _.J("commerceActionCommand");_.QPn=new _.J("getPaymentInstrumentsParamsCommand");var k31=new _.J("getPaymentsClientTokenCommand");var sP$=new _.J("googlePaymentBillingCommand");var B5n=new _.J("googlePaymentPurchaseManagerCommand");_.r6v=new _.J("logGtmCommand");var DNS=new _.J("updateCardItemOnClickCommand");_.xNH=new _.J("ypcPauseSubscriptionCommand");_.zUU=new _.J("ypcResumeSubscriptionCommand");var Crw=function(){eX.apply(this,arguments)};
_.R(Crw,eX);Crw.prototype.getAssociations=function(){return[]};var q27=function(){eX.apply(this,arguments)};
_.R(q27,eX);q27.prototype.getAssociations=function(){return[]};var nV1=function(){eX.apply(this,arguments)};
_.R(nV1,eX);nV1.prototype.getAssociations=function(){return[]};var fmf=function(){eX.apply(this,arguments)};
_.R(fmf,eX);fmf.prototype.getAssociations=function(){return[]};var G37=function(){eX.apply(this,arguments)};
_.R(G37,eX);G37.prototype.getAssociations=function(){return[]};var yQi=new _.J("ypcOffersEndpoint");var HNN=new _.J("cardItemRenderer"),tX5=new _.J("cardItemTextRenderer");var $Nq=new _.J("commerceCartItemQuantityPickerRenderer");var VX$=new _.J("linkCardRenderer");var Sd8=new _.J("quantityIncrementerButtonViewModel");var N57=new _.J("quantityIncrementerViewModel");var MXn=new _.J("themedImageViewModel");_.uZw=new _.J("ypcCancelRecurrenceEndpoint");var J61=new _.J("ypcCompleteTransactionEndpoint");_.c6N=new _.J("ypcGetCartEndpoint");_.i3=new _.J("ypcGetOffersEndpoint");_.z3=new _.J("ypcHandleTransactionEndpoint");var FUq=new _.J("ypcLogWalletAnalyticDataEndpoint");_.y6N=new _.J("ypcRedeemCodeEndpoint");var WrU=new _.J("ypcUpdateFopEndpoint");WX(yX(1),cL(4));Qhe((new MessageChannel).port2);var OKH=function(){this.register=new Map},gHE=function(W,O,b){W=W+"_"+O;
CN.register.has(W)?b=CN.register.get(W):(b=b(),CN.register.set(W,b));return b},iK5=function(W){W=_.S(W.register.values());
for(var O=W.next();!O.done;O=W.next())_.ad(O.value,"ABORTED")};
OKH.prototype.clear=function(){iK5(this);this.register.clear()};
var CN=new OKH;var dnX=Date.now().toString();var SRE,bKN=_.i1.ytLoggingDocDocumentNonce_;bKN||(bKN=Q3(16),_.c3("ytLoggingDocDocumentNonce_",bKN));SRE=bKN;var AY1={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 jTn;jTn=1;_.kJ=function(W){this.veData=W};
_.Pi=function(W){return new _.kJ({trackingParams:W})};
_.gd=function(W,O,b,T,L,h){var Z=jTn++;return new _.kJ({veType:W,veCounter:Z,elementIndex:b,dataElement:O,youtubeData:T,jspbYoutubeData:L,loggingDirectives:h})};
_.d=_.kJ.prototype;
_.d.getAsJson=function(){var W={};this.veData.trackingParams!==void 0?W.trackingParams=this.veData.trackingParams:(W.veType=this.veData.veType,this.veData.veCounter!==void 0&&(W.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(W.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(W.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(W.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(W.isCounterfactual=!0);
return W};
_.d.getAsJspb=function(){var W=new rLv;this.veData.trackingParams!==void 0?W.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.s3(W,2,this.veData.veType),this.veData.veCounter!==void 0&&_.s3(W,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.s3(W,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.TP(W,5,!0));if(this.veData.dataElement!==void 0){var O=this.veData.dataElement.getAsJspb();_.jL(W,7,O)}this.veData.youtubeData!==void 0&&_.jL(W,8,this.veData.jspbYoutubeData);
return W};
_.d.toString=function(){return JSON.stringify(this.getAsJson())};
_.d.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.d.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.c3("yt_logging_screen.getRootVeType",YRe);_.c3("yt_logging_screen.getCurrentCsn",_.Bb);_.c3("yt_logging_screen.getCttAuthInfo",rl);_.c3("yt_logging_screen.setCurrentScreen",_.Du);var Tkv=function(){this.events=new Map},LrS=function(W){var O=[];
W=_.S(W.events.values());for(var b=W.next();!b.done;b=W.next())O.push(b.value);return O};
Tkv.prototype.clear=function(){this.events.clear()};var ht9=function(){this.logTransport=new dgv;this.loggedEventRegister=new Tkv;this.unloggedEventRegister=new Tkv;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10330_flushTimer=new _.ie(this.flushInterval);this.JSC$10330_flushTimer.listen("tick",this.flush,!1,this)};
ht9.prototype.flush=function(){if(this.eventsCount){var W={loggedEvents:LrS(this.loggedEventRegister),unloggedEvents:LrS(this.unloggedEventRegister)};if(_.e("export_player_version_to_ytconfig")){var O;(O=_.Cv("PLAYER_CLIENT_VERSION"))?(O=O.split("-")[0].replace(/\./g,""),O=isNaN(Number(O))?"0":O):O="";var b=_.Cv("PLAYER_CLIENT_VERSION");if(b){b=b.split("-");var T="";b.length>1&&(T=b[b.length-1]);b=LH8(T.startsWith("canary_experiment")?"canary":T.startsWith("canary_control")?"control":"none")}else b=
"CLIENT_CANARY_STATE_UNKNOWN";W.dimensions={playerClientVersion:O,playerCanaryState:b}}this.logTransport.flush(W);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10330_flushTimer.enabled&&this.JSC$10330_flushTimer.stop()}};
var SLq=function(W){qN==null&&(qN=new ht9);var O=qN;var b=O.loggedEventRegister;W.dimensions=W.dimensions||{};W.dimensions.csn=_.Bb()||"";var T=lB8(W.dimensions).join(";");if(W.records!=null)if(b.events.has(T)){var L;(L=b.events.get(T).records)==null||L.push.apply(L,_.PG(W.records))}else b.events.set(T,W);O.JSC$10330_flushTimer.enabled||O.JSC$10330_flushTimer.start();O.eventsCount++;O.eventsCount>=100&&O.flush()};var dgv=function(){};
dgv.prototype.flush=function(W,O){_.e("enable_client_sli_logging")&&_.BZ("sliEventBatch",W,{sendIsolatedPayload:!!O})};var qN;var ICU;ICU=function(W){var O=ZKN;W=W===void 0?{}:W;O=O.name;var b=vHX("SUCCESS");SLq({dimensions:W,records:[{name:O,state:"SLI_STATE_END",status:b}]})};
_.oH2=function(W,O,b,T){this.name=W;this.sliId=O;this.timeoutMs=b;this.statusOnTimeout=T;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.oH2.prototype.getId=function(){return this.sliId};
_.Id=function(W,O){O=O===void 0?{}:O;W.ongoing||(W.ongoing=!0,W.dimensions=O,W.logSliId=SzL(),SLq({dimensions:W.dimensions,records:[{name:W.name,state:"SLI_STATE_START",sliId:W.logSliId}]}),W.timeoutMs>0&&(W.timeoutHandle=setTimeout(function(){_.ad(W,W.statusOnTimeout)},W.timeoutMs)))};
_.ad=function(W,O){W.ongoing&&(W.timeoutMs>0&&clearTimeout(W.timeoutHandle),W.ongoing=!1,O={dimensions:W.dimensions,records:[{name:W.name,status:vHX(O),state:"SLI_STATE_END",sliId:W.logSliId}]},CN.register.delete(W.name+"_"+W.sliId),SLq(O))};var ZKN=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var aCq=function(){eX.apply(this,arguments)};
_.R(aCq,eX);aCq.prototype.getAssociations=function(){return[]};var $1q=new _.J("highlightTextDecoratorColorMapExtension");var HY1=new _.J("styleRunColorMapExtension");var xnh=_.ts(["data-"]),qR8={};var fBQ={};var nN=function(W){this.wrappedPromise_=W===void 0?null:W;this.state_=0;this.JSC$10362_value_=null};
nN.prototype.then=function(W,O,b){return this.wrappedPromise_?this.wrappedPromise_.then(W,O,b):this.state_===1&&W?(W=W.call(b,this.JSC$10362_value_))&&typeof W.then==="function"?W:_.fN(W):this.state_===2&&O?(W=O.call(b,this.JSC$10362_value_))&&typeof W.then==="function"?W:_.mgU(W):this};
nN.prototype.getValue=function(){return this.JSC$10362_value_};
nN.prototype.isRejected=function(){return this.state_==2};
rAw(nN);_.mgU=function(W){var O=new nN;W=W===void 0?null:W;O.state_=2;O.JSC$10362_value_=W===void 0?null:W;return O};
_.fN=function(W){var O=new nN;W=W===void 0?null:W;O.state_=1;O.JSC$10362_value_=W===void 0?null:W;return O};var iWX="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var YLq=["load","abort","error"],G3=function(W,O,b){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10382_maxAspectRatio_=W;this.disableAnimation_=O===void 0?!1:O;this.disableExifRotation_=b===void 0?!1:b;this.JSC$10382_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10382_reject_=this.resolve_=null};
G3.prototype.transform=function(W){var O=this;this.mime_=W.type;fO(Q51(W),this.dataUrlRead_,this.readError_,this);fO(o09(W.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(b,T){O.resolve_=b;O.JSC$10382_reject_=T})};
G3.prototype.dataUrlRead_=function(W){this.dataUrl_=W;this.angle_!=null&&EP7(this)};
G3.prototype.exifRead_=function(W){if(this.disableExifRotation_)this.angle_=0;else{a:if(W=new DataView(W),W.byteLength<2||W.getUint16(0)!==65496)W=-2;else{for(var O=2,b=W.byteLength;O<b;){var T=W.getUint16(O),L=W.getUint16(O+2);if(T===65505){O+=4;T=W.getUint32(O);L=W.getUint16(O+4);if(T!==1165519206||L!==0)break;O+=6;T=W.getUint16(O)===18761;O+=W.getUint32(O+4,T);L=W.getUint16(O,T);O+=2;for(var h=0;h<L;h++){if(W.getUint16(O,T)===274){O+=8;W=W.getUint16(O,T);break a}O+=12}}else if(T>>8!==255)break;
else O+=L+2}W=-1}switch(W){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&&EP7(this)};
G3.prototype.readError_=function(){this.JSC$10382_reject_()};
var EP7=function(W){lj(W.JSC$10382_image_,YLq,W.completeTransform_,!1,W);W.JSC$10382_image_.src=_.l7(W.dataUrl_).toString();W.JSC$10382_image_.src!=Xy.toString()&&W.JSC$10382_image_.src.substr(0,11)==="data:image/"||W.JSC$10382_reject_()};
G3.prototype.completeTransform_=function(){if(this.JSC$10382_image_.src!=Xy.toString()){var W=_.l7(this.dataUrl_),O=this.JSC$10382_image_.naturalHeight?this.JSC$10382_image_.naturalWidth/this.JSC$10382_image_.naturalHeight:null;this.invalidAspectRatio=O>this.JSC$10382_maxAspectRatio_||O<1/this.JSC$10382_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var b=this.JSC$10382_image_.naturalWidth,T=this.JSC$10382_image_.naturalHeight,L=O=0,h=this.JSC$10382_image_.naturalHeight?this.JSC$10382_image_.naturalWidth/
this.JSC$10382_image_.naturalHeight:null;h>this.JSC$10382_maxAspectRatio_?(b=this.JSC$10382_maxAspectRatio_*T,O=(b-this.JSC$10382_image_.naturalWidth)/2,this.cropped=!0):h<1/this.JSC$10382_maxAspectRatio_?(T=this.JSC$10382_maxAspectRatio_*b,L=(T-this.JSC$10382_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)h=b,b=T,T=h,h=O,O=L,L=h;switch(this.angle_){case 90:L-=b;break;case 180:O-=b;L-=T;break;case 270:O-=
T}this.cropped||this.angle_%360!==0?(W=document.createElement("canvas"),W.width=b||1,W.height=T||1,this.JSC$10382_image_.naturalWidth&&this.JSC$10382_image_.naturalHeight&&(b=W.getContext("2d"),b.rotate(Math.PI/180*this.angle_),b.drawImage(this.JSC$10382_image_,O,L,this.JSC$10382_image_.naturalWidth,this.JSC$10382_image_.naturalHeight)),this.transformedData=_.l7(W.toDataURL(this.mime_))):this.transformedData=W}else this.transformedData=W;this.resolve_(this)}};var HX=function(W,O){_.ZB.call(this,W);this.value=O};
_.R(HX,_.ZB);
var t6=function(W,O,b,T,L,h,Z){Z=Z===void 0?!1:Z;_.ER.call(this);var a=this;this.JSC$10387_url_=W;this.channelId_=O;this.maxFileSizeMb_=b;this.JSC$10387_maxAspectRatio_=T;this.dropZoneEl_=L;this.rejectInvalidAspectRatio_=Z;this.selectButtonEl_=h;this.JSC$10387_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new h6(this.dropZoneEl_);this.selectOverlay_=new SX(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10387_image_=this.transfer_=null;this.handler_=new _.be(this);_.a8(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(h,"click",function(){a.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.R(t6,_.ER);t6.prototype.disposeInternal=function(){for(var W=this.selectButtonEl_.nextSibling;W&&W.parentNode&&W.tagName=="INPUT";)W.parentNode.removeChild(W),W=this.selectButtonEl_.nextSibling;this.cancel();_.ER.prototype.disposeInternal.call(this)};
t6.prototype.uploadPromise=function(){if(this.JSC$10387_image_==null)return null;this.uploadPromise_||wH7(this);return this.uploadPromise_};
t6.prototype.cancel=function(){Apq(this);this.JSC$10387_image_=null};
var Apq=function(W){W.transfer_&&W.transfer_.cancel();W.transfer_=null;W.uploadPromise_=null;W.resolve_=null;W.JSC$10387_reject_=null},wH7=function(W){Apq(W);
W.transfer_=_.V7n(W.JSC$10387_url_,{"X-YouTube-ChannelId":W.channelId_},W.JSC$10387_image_);W.handler_.listenOnce(W.transfer_,"l",W.JSC$10389_onUploadComplete_);W.handler_.listenOnce(W.transfer_,"n",W.onUploadError_);W.transfer_.run();W.uploadPromise_=new Promise(function(O,b){W.resolve_=O;W.JSC$10387_reject_=b})};
_.d=t6.prototype;_.d.onChange_=function(W){W.files.length&&(this.JSC$10387_image_=W.files[0],this.JSC$10387_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10387_image_=null,this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(wH7(this),(new G3(this.JSC$10387_maxAspectRatio_)).transform(this.JSC$10387_image_).then((0,_.K5)(this.onPreview_,this),(0,_.K5)(this.onPreviewError_,this))))};
_.d.onPreview_=function(W){if(W.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10387_image_=null),this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;W.cropped&&this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.CHANGE_EVENT",W.transformedData))};
_.d.onPreviewError_=function(){this.JSC$10387_image_=null;this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.d.onHover_=function(W){W.stopPropagation();W.preventDefault();if(W.type==="dragover")W=!0;else if(W.type==="dragleave")W=!1;else return;this.dispatchEvent(new HX("yt.comments.ImageUploadOverlay.HOVER_EVENT",W))};
_.d.JSC$10389_onUploadComplete_=function(){var W=(0,_.jQw)(this.transfer_.getResponseText());this.resolve_(W.encryptedBlobId)};
_.d.onUploadError_=function(){this.JSC$10387_reject_();Apq(this)};var XHv=function(W){W=W||{};var O={},b={};this.url=W.url||"";this.args=W.args||_.PQ.clone(O);this.assets=W.assets||{};this.attrs=W.attrs||_.PQ.clone(b);this.fallback=W.fallback||null;this.fallbackMessage=W.fallbackMessage||null;this.html5=!!W.html5;this.disable=W.disable||{};this.loaded=!!W.loaded;this.messages=W.messages||{}};
XHv.prototype.clone=function(){var W=new XHv,O;for(O in this)if(this.hasOwnProperty(O)){var b=this[O];W[O]=_.U5(b)=="object"?_.PQ.clone(b):b}return W};var Ug$,lC5,et$,yI,pH1,RtU,Krw,vPq,gPf,oPq,QTU,kn1,sTw,Bkv,rpH,Dg7,xgN,ztf,ChS,qLv,nP5,fCv,Gnv,HK9,tn1,$g7,Vnz,Nkn,MnU,KdT,uB9,Jp5,cpH,FrL,ypw,Wg$,Om$,im1,bmU,jLq,TBf,Lgv,dhN,hIf,SZv,ZmU,Izw,az7,mhv,YZS,E_5,w0w,AeH,X0H,Uhq,lzw,$V,eIH,PHq,p0w,RIL,Kgf,v_S,g_U,o_U,QL9,kz9,sLw,BBH,ren,Dhf,xhw,zIz,CHU,qZH,poP,n_q,fz7,GzU,Hmn,tuS,$hU,Vuw,NBU,Mu7,uXw,JeS,cew,Fgw,ye9,WxU,O6f,i6U,b6N,jVS,Twz,Lxz,dlN,hi1,S65,Z6q;Ug$=["account/accounts_list"];lC5=["acknowledge_channel_tou_strike"];et$=["notification/add_upcoming_event_reminder"];
_.Phq=["att/get"];yI=["browse","music/browse","unplugged/browse"];pH1=["channel/claim_legacy_youtube_channel"];RtU=["history/clear_search_history"];Krw=["history/clear_watch_history"];vPq=["comment/perform_comment_action"];gPf=["comment/get_comment_replies"];oPq=["ypc/commerce_action"];QTU=["backstage/create_post"];kn1=["live/create_broadcast"];sTw=["channel/create_channel"];Bkv=["comment/create_comment_reply"];rpH=["comment/create_comment"];Dg7=["live_chat/create_poll"];xgN=["playlist/create"];
ztf=["decorate_message"];ChS=["live_chat/delete_message"];qLv=["playlist/delete"];nP5=["video/delete"];fCv=["like/dislike"];Gnv=["dismissal/dismiss"];HK9=["flag/flag"];tn1=["flow"];$g7=["account/account_menu"];Vnz=["playlist/get_add_to_playlist"];Nkn=["get_answer"];MnU=["channel/get_channel_creation_form"];KdT=["offline/get_download_action"];uB9=["kids/get_kids_blocklist_picker"];Jp5=["live_chat/get_item_context_menu"];cpH=["live_chat/get_live_chat_message_buy_flow"];FrL=["live_chat/get_live_chat_replay"];
ypw=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Wg$=["live_chat/get_live_chat_super_sticker_buy_flow"];Om$=["notification/get_notification_menu"];im1=["playlist/get_settings_editor"];bmU=["backstage/get_post_video_preview"];jLq=["account/get_profile_card"];TBf=["share/get_share_panel"];Lgv=["share/get_sharing_provider_data"];dhN=["get_survey"];hIf=["notification/get_unseen_count"];SZv=["get_user_mention_suggestions"];ZmU=["get_watch"];Izw=["guide"];
az7=["feedback"];mhv=["kids/update_blacklist"];YZS=["like/like"];E_5=["live_chat/live_chat_action"];w0w=["live_chat/manage_user"];AeH=["video_manager/metadata_update"];X0H=["live_chat/moderate"];Uhq=["notification/modify_channel_preference"];lzw=["notification/opt_out"];$V=["get_panel","get_posts_by_host_panel"];eIH=["player"];PHq=["browse/edit_playlist"];p0w=["notification/record_interactions"];RIL=["reel/reel_item_watch"];Kgf=["reel/reel_watch_sequence"];v_S=["like/removelike"];g_U=["notification/remove_upcoming_event_reminder"];
o_U=["flag/get_form"];QL9=["miniapp/report_value"];kz9=["navigation/resolve_url"];sLw=["channel/reveal_business_email"];BBH=["in_video/search"];ren=["search","sfv/search","unplugged/search"];Dhf=["live_chat/send_message"];xhw=["live_chat/send_live_chat_vote"];zIz=["account/set_setting"];CHU=["submit_caption_correction"];qZH=["subscription/subscribe"];poP=["get_transcript"];n_q=["resolve_location","unplugged/resolve_location"];fz7=["subscription/unsubscribe"];GzU=["backstage/update_post"];Hmn=["channel_edit/update_channel_page_settings"];
tuS=["comment/update_comment_reply"];$hU=["comment/update_comment"];Vuw=["comment/update_comments_settings"];NBU=["creator/update_creator_channel"];Mu7=["pdg/update_enablement"];uXw=["updated_metadata"];JeS=["channel_edit/validate_channel_handle"];cew=["verify_age"];Fgw=["next","unplugged/watch_next"];ye9=["whitelist/edit"];WxU=["ypc/cancel_recurrence"];O6f=["ypc/complete_transaction"];i6U=["ypc/get_cart"];b6N=["ypc/get_fix_instrument_params"];jVS=["ypc/get_offers"];Twz=["ypc/get_payment_instruments_params"];
Lxz=["ypc/handle_transaction"];dlN=["ypc/log_payment_server_analytics"];hi1=["ypc/pause_subscription"];S65=["ypc/redeem_code"];Z6q=["ypc/resume_subscription"];var Ix$=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,
74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,
147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,
50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,
220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,
170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,
191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,
253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,
96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,
8197,168501,156512,161613,156509,208274,161612,161614,262801,262800,262799,262802,262798,82039];var Y0=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.c3("yt.msgs_",Y0);var Vg=new _.MV("ACTION_ROUTER_TOKEN");_.NN=function(){this.autonavState_=_.e("kevlar_is_pupi_enabled")?2:Y$q()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.NN.prototype.getState=function(){return this.autonavState_};
_.NN.prototype.pause=function(W){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=W):this.autonavState_==1&&(this.disabledAutonavPauseReason_=W)};
_.NN.prototype.setState=function(W,O,b){O&&(this.autoplayChangedByUser=!0);O=this.autonavState_===3||W===3;this.autonavState_!=W&&(this.autonavState_=W,W!=3&&_.EBq(W==2),W=_.e("kevlar_is_pupi_enabled")?b||O:!0,_.$G.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,W,b))};
_.NN.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Fv(_.NN);var MN=function(){this.hasRun=!1};var ur={},oB8=(ur.auto_search="LATENCY_ACTION_AUTO_SEARCH",ur.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ur.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ur.app_startup="LATENCY_ACTION_APP_STARTUP",ur.browse="LATENCY_ACTION_BROWSE",ur.cast_splash="LATENCY_ACTION_CAST_SPLASH",ur.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ur.channels="LATENCY_ACTION_CHANNELS",ur.chips="LATENCY_ACTION_CHIPS",ur.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ur.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
ur.editor="LATENCY_ACTION_EDITOR",ur.embed="LATENCY_ACTION_EMBED",ur.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ur.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ur.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ur.explore="LATENCY_ACTION_EXPLORE",ur.favorites="LATENCY_ACTION_FAVORITES",ur.home="LATENCY_ACTION_HOME",ur.inboarding="LATENCY_ACTION_INBOARDING",ur.landing="LATENCY_ACTION_LANDING",ur.library="LATENCY_ACTION_LIBRARY",ur.live=
"LATENCY_ACTION_LIVE",ur.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",ur.management="LATENCY_ACTION_MANAGEMENT",ur.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ur.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ur.onboarding="LATENCY_ACTION_ONBOARDING",ur.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",ur.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ur.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ur.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
ur.prebuffer="LATENCY_ACTION_PREBUFFER",ur.prefetch="LATENCY_ACTION_PREFETCH",ur.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ur.profile_switcher="LATENCY_ACTION_LOGIN",ur.projects="LATENCY_ACTION_PROJECTS",ur.reel_watch="LATENCY_ACTION_REEL_WATCH",ur.results="LATENCY_ACTION_RESULTS",ur.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ur.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ur.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ur.review="LATENCY_ACTION_REVIEW",ur.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",ur.search_ui="LATENCY_ACTION_SEARCH_UI",ur.search_suggest="LATENCY_ACTION_SUGGEST",ur.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ur.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ur.seek="LATENCY_ACTION_PLAYER_SEEK",ur.settings="LATENCY_ACTION_SETTINGS",ur.store="LATENCY_ACTION_STORE",ur.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ur.tenx="LATENCY_ACTION_TENX",ur.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ur.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
ur.watch="LATENCY_ACTION_WATCH",ur.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ur["watch,watch7"]="LATENCY_ACTION_WATCH",ur["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ur["watch,watch7ad"]="LATENCY_ACTION_WATCH",ur["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ur.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",ur.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ur.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ur.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ur.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",ur.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ur.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ur.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ur);var MY8=function(W,O){X8.call(this,1,arguments);this.timer=O};
_.R(MY8,X8);var NNe=new hgX("aft-recorded",MY8);var BNX=_.i1.ytLoggingGelSequenceIdObj_||{};_.c3("ytLoggingGelSequenceIdObj_",BNX);var J6=_.i1.ytLoggingLatencyUsageStats_||{};_.c3("ytLoggingLatencyUsageStats_",J6);var cX=function(){this.cleanupJob=0},xVX=function(){cX.instance||(cX.instance=new cX);
return cX.instance};
_.d=cX.prototype;_.d.baseline=function(W,O,b){FZ(this,"baseline_"+W)||_.BZ("latencyActionBaselined",{clientActionNonce:W},{timestamp:O,cttAuthInfo:b})};
_.d.tick=function(W,O,b,T){FZ(this,"tick_"+W+"_"+O)||_.BZ("latencyActionTicked",{tickName:W,clientActionNonce:O},{timestamp:b,cttAuthInfo:T})};
_.d.info=function(W,O,b){var T=Object.keys(W).join("");FZ(this,"info_"+T+"_"+O)||(W=Object.assign({},W),W.clientActionNonce=O,_.BZ("latencyActionInfo",W,{cttAuthInfo:b}))};
_.d.jspbInfo=function(W,O,b){for(var T="",L=0;L<b_(W).length;L++)b_(W)[L]!==void 0&&(T=L===0?T.concat(""+L):T.concat("_"+L));FZ(this,"info_"+T+"_"+O)||(_.aG(W,2,O),O={cttAuthInfo:b},b=_.e("jspb_sparse_encoded_pivot")?new R1([{}]):new R1,_.Tb(b,7,usn,W),rEX("latencyActionInfo",b,O))};
_.d.span=function(W,O,b){var T=Object.keys(W).join("");FZ(this,"span_"+T+"_"+O)||(W.clientActionNonce=O,_.BZ("latencyActionSpan",W,{cttAuthInfo:b}))};
var FZ=function(W,O){J6[O]=J6[O]||{count:0};var b=J6[O];b.count++;b.time=(0,_.WO)();W.cleanupJob||(W.cleanupJob=_.KB(_.sF,function(){var T=(0,_.WO)(),L;for(L in J6)J6[L]&&T-J6[L].time>6E4&&delete J6[L];W&&(W.cleanupJob=0)},5E3));
return b.count>5?(b.count===6&&Math.random()*1E5<1&&(b=new _.pu("CSI data exceeded logging limit with key",O.split("_")),O.indexOf("plev")>=0||_.z5(b)),!0):!1};var axq,mlz;axq=window;mlz=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.pV=axq.performance||axq.mozPerformance||axq.msPerformance||axq.webkitPerformance||new mlz;var VY1=!1,CBX=!1,uV8=(0,_.K5)(_.pV.clearResourceTimings||_.pV.webkitClearResourceTimings||_.pV.mozClearResourceTimings||_.pV.msClearResourceTimings||_.pV.oClearResourceTimings||_.mB,_.pV);var Y6$=window;Y6$.ytcsi&&(Y6$.ytcsi.infoGel=_.k0,Y6$.ytcsi.tick=_.Bg);var d2O=function(W){X8.call(this,1,arguments);this.csn=W};
_.R(d2O,X8);var mXX=new hgX("screen-created",d2O),pTO=[],LcE=PZO,RjQ=0,CV=new Map,hjE=new Map,SYe=new Map;var rt=Symbol("vf"),uX=new WeakMap;var yg=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Uz=function(){yg.instance||(yg.instance=new yg);
return yg.instance};
_.d=yg.prototype;_.d.setClient=function(W){this.client=W};
_.d.JSC$10468_newScreen=function(){this.clear();this.csn=_.Bb()};
_.d.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.d.reportShown=function(W,O,b){var T=this.JSC$10468_getTrackingParams(W),L=W.visualElement?W.visualElement:T;O=this.shownElements.has(L);var h=this.visibleState.get(L);this.shownElements.add(L);this.visibleState.set(L,!0);W.impressionLog&&!O&&W.impressionLog();if(T||W.visualElement)if(b=Ed9(this,W,b))if(L=wPS(this,W),WH(this,W)||L){T=W.visualElement?W.visualElement:_.Pi(T);var Z=W.interactionLoggingClientData;L||O?WH(this,W)&4?h||AR8(this.client,b,T,Z):WH(this,W)&1&&!O&&YY8(this.client,b,T,Z):YY8(this.client,
b,T,Z)}};
_.d.reportHidden=function(W,O,b){var T=this.JSC$10468_getTrackingParams(W),L=W.visualElement?W.visualElement:T;O=this.hiddenElements.has(L);var h=this.visibleState.get(L);this.hiddenElements.add(L);this.visibleState.set(L,!1);if(h===!1)return!0;if(!T&&!W.visualElement)return!1;b=Ed9(this,W,b);if(!b||!WH(this,W)&&wPS(this,W))return!1;T=W.visualElement?W.visualElement:_.Pi(T);WH(this,W)&8?XTT(this.client,b,T):WH(this,W)&2&&!O&&(W=this.client,O=zU({cttAuthInfo:rl(b)||void 0},b),T={csn:b,ve:T.getAsJson(),
eventType:2},b==="UNDEFINED_CSN"?nV("visualElementHidden",O,T):W?kG("visualElementHidden",T,W,O):_.BZ("visualElementHidden",T,O));return!0};
_.d.JSC$10468_getTrackingParams=function(W){var O=this.getData(W),b,T;if(_.e("il_use_view_model_logging_context")&&(O==null?0:(b=O.context)==null?0:(T=b.loggingContext)==null?0:T.loggingDirectives))return O.context.loggingContext.loggingDirectives.trackingParams||"";var L,h;if(O==null?0:(L=O.rendererContext)==null?0:(h=L.loggingContext)==null?0:h.loggingDirectives)return O.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(O==null?0:O.loggingDirectives)return O.loggingDirectives.trackingParams||
"";var Z;return((Z=W.veContainer)==null?0:Z.trackingParams)?W.veContainer.trackingParams:(O==null?void 0:O.trackingParams)||""};
_.d.JSC$10468_elementShouldLogGesture=function(W,O){W=this.getData(W);return!!((Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.gestures&&W.loggingDirectives.gestures.types||""))||0)&O)};
_.d.JSC$10468_getNearestParentVe=function(W){var O=this.JSC$10468_getTrackingParams(W);return W.visualElement?W.visualElement:O?_.Pi(O):W.parentElement?this.JSC$10468_getNearestParentVe(W.parentElement):null};
var Ed9=function(W,O,b){var T=_.Bb(b);return W.csn===null||T===W.csn||b?T:(W=new _.pu("VisibilityLogger called before newScreen",{caller:O.tagName,previous_csn:W.csn,current_csn:T}),_.z5(W),null)};
yg.prototype.getData=function(W){var O,b=W.data||((O=W.props)==null?void 0:O.data);if(!b&&_.e("enable_wiz_always_try_logging_info_map")){var T;b=(T=J3(W))==null?void 0:T[rt]}else if(W.isWebComponentWrapper){var L;b=(L=J3(W))==null?void 0:L[rt]}return b};
var wPS=function(W,O){var b;return!((b=W.getData(O))==null||!b.loggingDirectives)},WH=function(W,O){W=W.getData(O);
return Math.floor(Number(W&&W.loggingDirectives&&W.loggingDirectives.visibility&&W.loggingDirectives.visibility.types||""))||1};var OL;OL=function(){};
_.Ez=function(){OL.instance||(OL.instance=new OL);return OL.instance};
OL.prototype.setClient=function(W){_.fv(Uz().setClient).bind(Uz())(W)};
_.AWU=function(){_.Ez();_.fv(Uz().JSC$10468_newScreen).bind(Uz())()};
OL.prototype.clear=function(){_.fv(Uz().clear).bind(Uz())()};
OL.prototype.reportShown=function(W,O,b){_.fv(Uz().reportShown).bind(Uz())(W,O,b)};
OL.prototype.reportHidden=function(W,O,b){return _.fv(Uz().reportHidden).bind(Uz())(W,O,b)};
var nA1=function(W,O){return _.fv(Uz().JSC$10468_getTrackingParams).bind(Uz())(O)},USO=function(W,O){return _.fv(Uz().JSC$10468_getNearestParentVe).bind(Uz())(O)};var ih,XP9;ih=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};
_.A4=function(){ih.instance||(ih.instance=new ih);return ih.instance};
ih.prototype.setClient=function(W){this.client=W};
XP9=function(W,O,b){b=b===void 0?{}:b;_.fv(function(){var T,L,h,Z=((T=_.P(O==null?void 0:O.commandMetadata,_.F9))==null?void 0:T.rootVe)||((L=_.P(O==null?void 0:O.commandMetadata,UnU))==null?void 0:(h=L.screenVisualElement)==null?void 0:h.uiType);if(Z){T=_.P(O==null?void 0:O.commandMetadata,duf);if(T==null?0:T.parentTrackingParams){var a=_.Pi(T.parentTrackingParams);if(T.parentCsn)var m=T.parentCsn}else b.clickedVisualElement?a=b.clickedVisualElement:O.clickTrackingParams&&(a=_.Pi(O.clickTrackingParams));
a:{T=_.P(O,_.V3);L=_.P(O,i6O);if(T){if(L=wyO(T,"VIDEO")){T={token:L,videoId:T.videoId};break a}}else if(L&&(T=wyO(L,"PLAYLIST"))){T={token:T,playlistId:L.playlistId};break a}T=void 0}b=Object.assign({},{cttAuthInfo:T,parentCsn:m},b);if(_.e("expectation_logging")){var w;b.loggingExpectations=((w=_.P(O==null?void 0:O.commandMetadata,UnU))==null?void 0:w.loggingExpectations)||void 0}_.bh(W,Z,a,b)}else _.z5(new _.pu("Error: Trying to create a new screen without a rootVeType",O))})()};
_.bh=function(W,O,b,T){T=T===void 0?{}:T;_.fv(function(){Ix$.includes(O)||(_.z5(new _.pu("createClientScreen() called with a non-page VE",O)),O=83769);T.isHistoryNavigation||(W.forwardHistoryStack=[],W.backHistoryStack.push({rootVe:O,key:T.key||""}));W.graftQueue=[];W.stateChangedQueue=[];T.dataPromises?Ul7(W,O,b,T):lxq(W,O,b,T)})()};
_.eiH=function(W,O,b){b=b===void 0?0:b;_.fv(function(){O.then(function(T){W.pendingScreenCreation.has(b)&&W.pendingScreenFn&&W.pendingScreenFn();var L=_.Bb(b),h=_.sk(b);if(L&&h){var Z;(T==null?0:(Z=T.response)==null?0:Z.trackingParams)&&qk(W.client,L,h,_.Pi(T.response.trackingParams));var a;(T==null?0:(a=T.playerResponse)==null?0:a.trackingParams)&&qk(W.client,L,h,_.Pi(T.playerResponse.trackingParams))}})})()};
ih.prototype.graftServerVe=function(W,O,b){var T=this;return _.fv(function(){var L=_.Pi(W);_.jn(T,L,O,b);return L})()};
_.ll8=function(W,O,b,T){return _.e("enable_client_ve_spec")&&O.clientVeSpec?(O=_.gd(O.clientVeSpec.uiType,void 0,O.clientVeSpec.elementIndex,O.clientVeSpec.clientYoutubeData,void 0,O),_.jn(W,O,b,T)?O:null):O.trackingParams?W.graftServerVe(O.trackingParams,b,T):null};
_.wG=function(W,O,b,T){return _.fv(function(){if(!O.veType)return _.xG(new _.pu("Error: Trying to graft a client VE without a veType.")),null;if(O.visibilityTypes){var L=O.visibilityTypes.reduce(function(h,Z){return h|Z});
L={visibility:{types:String(L)}}}L=_.gd(O.veType,O.visualElement,O.elementIndex,O.clientYouTubeData,void 0,L);return _.jn(W,L,b,T)?L:null})()};
_.jn=function(W,O,b,T){T=T===void 0?0:T;return _.fv(function(){if(W.pendingScreenCreation.has(T))return W.graftQueue.push([O,b]),!0;var L=_.Bb(T),h=b||_.sk(T);if(L&&h){if(_.e("combine_ve_grafts")){var Z=W.cachedVisualElements.get(h.toString());Z?Z.push(O):(W.cachedRootVisualElements.set(h.toString(),h),W.cachedVisualElements.set(h.toString(),[O]));W.attachTimeout||(W.attachTimeout=_.KB(_.sF,function(){PDz(W,L)},1200))}else qk(W.client,L,h,O);
return!0}return!1})()};
_.Tn=function(W,O,b){b=b===void 0?0:b;var T=W.recurringGrafts.get(b)||new Map;if(_.e("smarter_ve_dedupping"))for(var L=Array.from(T.keys()),h=0;h<L.length;h++){var Z=void 0,a=void 0;var m=O;var w=L[h];w.isClientVe()&&m.isClientVe()?(Z=m.getAsJson(),a=w.getAsJson(),m=Z.veType!==a.veType||Z.elementIndex!==a.elementIndex||Z.dataElement!==a.dataElement||m.getLoggingDirectives()!==w.getLoggingDirectives()?!1:!0):m=w.veData.trackingParams!==void 0&&m.veData.trackingParams!==void 0?((a=m.veData)==null?void 0:
a.trackingParams)===((Z=w.veData)==null?void 0:Z.trackingParams):!1;if(m)return}else if(T.has(O))return;T.set(O,void 0);W.recurringGrafts.set(b,T);_.Bb(b)==="UNDEFINED_CSN"||W.pendingScreenCreation.has(b)||_.jn(W,O,void 0,b)};
_.LK=function(W,O,b,T){T=_.Bb(T===void 0?0:T);if(!T)return!1;lRq(W.client,T,O,b);return!0};
_.dk=function(W,O,b,T){if(!O)return!1;T=_.Bb(T===void 0?0:T);if(!T)return!1;lRq(W.client,T,_.Pi(O),b);return!0};
_.fd=function(W,O){var b=O.getScreenLayer&&O.getScreenLayer();if(O.visualElement)return _.LK(W,O.visualElement,void 0,b);O=nA1(_.Ez(),O);return _.dk(W,O,void 0,b)};
ih.prototype.clickCommand=function(W,O,b){return _.dk(this,W.clickTrackingParams,O,b===void 0?0:b)};
ih.prototype.stateChanged=function(W,O,b){this.visualElementStateChanged(_.Pi(W),O,b===void 0?0:b)};
ih.prototype.visualElementStateChanged=function(W,O,b){b=b===void 0?0:b;b===0&&this.pendingScreenCreation.has(b)?this.stateChangedQueue.push([W,O]):this.logStateChanged(W,O,b)};
ih.prototype.logStateChanged=function(W,O,b){b=b===void 0?0:b;var T=_.Bb(b);W=W||_.sk(b);return T&&W?(eje(this.client,T,W,O),!0):!1};
var Ul7=function(W,O,b,T){T=T===void 0?{}:T;W.pendingScreenCreation.add(T.layer||0);W.pendingScreenFn=function(){lxq(W,O,b,T);var Z=_.sk(T.layer);if(Z){for(var a=_.S(W.graftQueue),m=a.next();!m.done;m=a.next())m=m.value,_.jn(W,m[0],m[1]||Z,T.layer);Z=_.S(W.stateChangedQueue);for(a=Z.next();!a.done;a=Z.next())a=a.value,W.logStateChanged(a[0],a[1])}};
b||_.Bb(T.layer)||W.pendingScreenFn();if(T.dataPromises)for(var L=_.S(T.dataPromises),h=L.next();!h.done;h=L.next())_.eiH(W,h.value,T.layer);else _.Dt(Error("wf"))},lxq=function(W,O,b,T){T=T===void 0?{}:T;
var L=void 0;T.layer||(T.layer=0);L=T.parentLayer!==void 0?T.parentLayer:T.layer;var h=_.Bb(L);L=_.sk(L);var Z=b||L,a;Z&&(T.parentCsn!==void 0?a={clientScreenNonce:T.parentCsn,visualElement:Z}:h&&h!=="UNDEFINED_CSN"&&(a={clientScreenNonce:h,visualElement:Z}));var m,w=_.Cv("EVENT_ID");h==="UNDEFINED_CSN"&&w&&(m={servletData:{serializedServletEventId:w}});_.e("combine_ve_grafts")&&h&&PDz(W,h);_.e("no_client_ve_attach_unless_shown")&&Z&&h&&m2P(Z,h);try{var A=_.Zc8(W.client,O,a,T.csnToClone,T.cttAuthInfo,
m,T.implicitGestureType,void 0,T.loggingExpectations)}catch(p){_.CB(p,{rootVeType:O,rootVe:L,parentVisualElement:b,currentCsn:h,parentEl:a,csnToClone:T.csnToClone});_.Dt(p);return}_.Du(A,O,T.layer,T.cttAuthInfo);h&&h!=="UNDEFINED_CSN"&&L&&!XxE(h)&&XTT(W.client,h,L,!0);W.backHistoryStack[W.backHistoryStack.length-1]&&!W.backHistoryStack[W.backHistoryStack.length-1].csn&&(W.backHistoryStack[W.backHistoryStack.length-1].csn=A||"");_.k0({clientScreenNonce:A});_.AWU();var X=_.sk(T.layer);h&&h!=="UNDEFINED_CSN"&&
X&&(_.e("web_mark_root_visible")||_.e("music_web_mark_root_visible"))&&_.Hg(A,X);W.pendingScreenCreation.delete(T.layer||0);W.pendingScreenFn=void 0;var l;(l=W.recurringGrafts.get(T.layer))==null||l.forEach(function(p,K){p?_.jn(W,K,p,T.layer):X&&_.jn(W,K,X,T.layer)});
pPq(W)},pPq=function(W){for(var O=0;O<W.afterNewScreenOneOffJobs.length;O++){var b=W.afterNewScreenOneOffJobs[O];
try{b()}catch(T){_.Dt(T)}}for(O=W.afterNewScreenOneOffJobs.length=0;O<W.afterNewScreenRecurringJobs.length;O++){b=W.afterNewScreenRecurringJobs[O];try{b()}catch(T){_.Dt(T)}}},PDz=function(W,O){if(O===void 0)for(var b=wx2(),T=0;T<b.length;T++)b[T]!==void 0&&PDz(W,b[T]);
else W.cachedVisualElements.forEach(function(L,h){(h=W.cachedRootVisualElements.get(h))&&IRi(W.client,O,h,L)}),W.cachedVisualElements.clear(),W.cachedRootVisualElements.clear(),W.attachTimeout=void 0};var hp=function(W){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;W={};this.as1=(W.response=!1,W.playerResponse=!1,W)};
_.R(hp,MN);hp.prototype.validate=function(W){return!(!W.data||!W.data.response&&!W.data.playerResponse)};
hp.prototype.handle=function(W){var O=_.A4(),b=this.createScreenConfig.layer;W.data.response&&W.data.response.trackingParams&&!this.as1.response&&(O.graftServerVe(W.data.response.trackingParams,void 0,b),this.as1.response=!0);W.data.playerResponse&&W.data.playerResponse.trackingParams&&!this.as1.playerResponse&&(O.graftServerVe(W.data.playerResponse.trackingParams,void 0,b),this.as1.playerResponse=!0)};var Sn=function(){this.kk=_.$S();this.hm=[];this.eYv=0};
Sn.prototype.processChunk=function(W){if(W){for(var O=_.S(this.hm),b=O.next();!b.done;b=O.next())b=b.value,b.validate(W)&&(b.handle(W),b.hasRun=!0);_.Bg("np"+this.eYv);this.eYv++}};var Q$T,cg,Ft,ggi=0,ogT=function(W,O,b,T,L,h){var Z=Ft;this.name=W;this.attributes=O;this.startTime=b;this.id=T;this.sessionId=L;this.traceId=h;this.parent=Z};
ogT.prototype.attr=function(W,O){this.attributes[W]=O};
ogT.prototype.close=function(W){if(this!==Ft)throw Error("xf");var O=Ft;W&&(O.status=W);O.endTime=performance.now();W=_.S(cg.spanProcessors);for(var b=W.next();!b.done;b=W.next()){var T=void 0,L=void 0;(L=(T=b.value).onSpanEnd)==null||L.call(T,O)}Ft=O==null?void 0:O.parent};
ogT.prototype[Symbol.dispose]=function(){this.close()};var WPq,vdw;_.ax=function(W,O,b,T,L,h,Z){Z=Z===void 0?[]:Z;this.buildCommandPayload=W;this.navigate=O;this.handleServiceRequest=b;this.sendAction=T;this.JSC$10509_screenManager=L;this.commandResolverMap=h;this.autoLogResolverAllowlist=Z;this.pendingCommands=new Set;if(s$T("command")){var a=this.resolveCommand;this.resolveCommand=function(m,w){var A=kM8("command",{command:m});return rRX(A,a.bind(this,m,w),null)}}};
WPq=function(W,O,b){var T=nni,L=f08,h=_.A4(),Z=Ri5;b=b===void 0?[]:b;_.ax.instance=new _.ax(W,O,T,L,h,Z,b)};
vdw=function(W,O,b){if(!W.commandResolverMap)return!1;var T=CZO(O,W.commandResolverMap);return T?((W.autoLogResolverAllowlist.some(function(L){return!!_.P(O,L)})||(b==null?0:b.forceClickLogging))&&Kx5(W,O,b),T instanceof Promise?T.then(function(L){L.resolve(O,b)}):T.resolve(O,b),!0):!1};
_.ax.prototype.resolveCommand=function(W,O){var b=this,T=gdH(W);if(vdw(this,W,O))return!0;if(T)return odN(this,W,O);if(!this.buildCommandPayload)return D22(W,"Unhandled command by buildCommandPayload"),!1;var L=this.buildCommandPayload(W,O);if(O==null?0:O.commandController)L.commandController=O.commandController;if(L.type===0){if(!this.navigate)return x2e(W,"navigate"),!1;if(!QVU(L.command))return D22(W,"Page requests need to specify a url"),!1;_.e("logging_avoid_blocking_during_navigation")&&_.J12().transition("application_navigating");
W=this.navigate(L)||[];fGn(W).then(function(){b.pendingCommands.delete(L.command)});
return!0}if(L.type===1){if(!this.handleServiceRequest)return x2e(W,"handleServiceRequest"),!1;(O==null?0:O.forceClickLogging)&&Kx5(this,L.command,O);W=this.handleServiceRequest(L);fGn(W).then(function(){b.pendingCommands.delete(L.command)});
return!0}if(L.type===2){if(!this.sendAction)return x2e(W,"sendAction"),!1;Kx5(this,L.command,O);this.sendAction(L);return!0}return!1};
var Kx5=function(W,O,b){if((b==null||!b.disableClickTracking)&&W.JSC$10509_screenManager)if(O.clickTrackingParams&&_.e("log_click_with_layer_from_element_in_command_handler")){var T;b=b==null?void 0:(T=b.form)==null?void 0:T.element;W.JSC$10509_screenManager.clickCommand(O,null,b&&b.getScreenLayer&&b.getScreenLayer())}else O.clickTrackingParams?W.JSC$10509_screenManager.clickCommand(O):!_.e("disable_clicked_visual_element_in_command_handler")&&(b==null?0:b.clickedVisualElement)&&_.LK(W.JSC$10509_screenManager,
b.clickedVisualElement)},gdH=function(W){var O=!!_.P(W,_.I5),b;
W=((b=_.P(W,_.mM))==null?void 0:b.signal)==="CLIENT_SIGNAL";return O||W},odN=function(W,O,b){var T=_.P(O,_.I5);
if(T)var L=(T==null?void 0:T.commands)||[];else{var h;if(((h=_.P(O,_.mM))==null?void 0:h.signal)==="CLIENT_SIGNAL"){var Z;L=((Z=_.P(O,_.mM))==null?void 0:Z.actions)||[]}}if(L){O=_.S(L);for(L=O.next();!L.done;L=O.next()){L=L.value;try{W.resolveCommand(L,b)}catch(a){a instanceof Error&&_.Dt(a)}}return!0}D22(O,"Could not handle the meta command");return!1},QVU=function(W){var O;
return!((O=_.P(W==null?void 0:W.commandMetadata,_.F9))==null||!O.url)};var ZC=function(){MN.apply(this,arguments)};
_.R(ZC,MN);ZC.prototype.validate=function(W){var O,b;return!this.hasRun&&!!((O=W.data.response)==null?0:(b=O.onResponseReceivedEndpoints)==null?0:b.length)};
ZC.prototype.handle=function(W){var O=_.ax.instance;W=_.S(W.data.response.onResponseReceivedEndpoints);for(var b=W.next();!b.done;b=W.next())O.resolveCommand(b.value)};var kL7,sVN,Bw7;
kL7=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.ZM();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.IT=function(){sVN||(sVN=new kL7);return sVN};
Bw7=function(){var W=_.IT();W.miniplayerButtonActivation=!1;W.userActivation=!1;W.playlistWatchPageActivation=!1;W.productDetailsPageActivation=!1;W.miniAppPageActivation=!1;W.playablesDestPageActivation=!1;W.lockupActivation=!1;W.showMiniplayerCommandActivation=!1;W.playlistSuggestionsShelfActivation=!1;W.mediaSessionPipActivation=!1;W.watchPipActivation=!1;W.watchWhileActivation=!1;W.shortsPipActivation=!1};
_.rWn=function(){var W=_.IT(),O=W.mediaSessionPipActivation,b=W.watchPipActivation,T=W.watchWhileActivation,L=W.playlistWatchPageActivation,h=W.lockupActivation,Z=W.showMiniplayerCommandActivation,a=W.navigatingAwayFromWatchDeletedVideo,m=W.shortsPipActivation,w=W.playlistSuggestionsShelfActivation,A=W.productDetailsPageActivation,X=W.miniAppPageActivation,l=W.playablesDestPageActivation;return!W.miniplayerButtonActivation&&!L&&!w&&!A&&!X&&!l&&!h&&!Z&&!O&&!b&&!T&&!m||a};var K2Q;_.aT=WS("FEwhat_to_watch","/",3854);_.vcX=WS("FEdownloads","/feed/downloads",42352);K2Q=WS("FEmusic_offline","browse/FEmusic_offline",42352);var MX=function(W,O){O=O===void 0?[]:O;var b=b===void 0?[]:b;O=ifq.apply(null,[bf1.apply(null,_.PG(O))].concat(_.PG(b)));this.store=d$X(W,void 0,O)};
MX.prototype.getState=function(){return this.store.getState()};
MX.prototype.dispatch=function(W){return this.store.dispatch(W)};
MX.prototype.subscribe=function(W){return this.store.subscribe(W)};
MX.prototype.replaceReducer=function(W){return this.store.replaceReducer(W)};
MX.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.mr=function(W,O,b){var T=O(W.getState());return W.subscribe(function(){var L=O(W.getState());if(L!==T){var h=T;T=L;b(L,h)}})};var TcX;_.AI=function(W,O,b){return _.Tc({type:"REPLACE_ENTITY",payload:{entityPayload:b,entityType:W,key:O}})};
TcX=function(W){return _.Tc({type:"REPLACE_ENTITIES",payload:W})};
_.o4=function(W,O,b,T){return _.Tc({type:"UPDATE_ENTITY",payload:{entityPayload:b,entityType:W,key:O,mergeOption:T}})};var cRX=function(W){var O=this;W=W===void 0?[]:W;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;W.forEach(function(b){O.append(b)})};
_.d=cRX.prototype;_.d.getLength=function(){return this.totalLength};
_.d.append=function(W){var O=this.arrays.length===0?!1:(O=this.arrays[this.arrays.length-1])&&O.buffer===W.buffer&&O.byteOffset+O.length===W.byteOffset;O?(O=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(O.buffer,O.byteOffset,O.length+W.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(W);this.totalLength+=W.length};
_.d.split=function(W){for(var O=new cRX,b=new cRX,T=_.S(this.arrays),L=T.next();!L.done;L=T.next())L=L.value,W>=L.length?(O.append(L),W-=L.length):W?(O.append(new Uint8Array(L.buffer,L.byteOffset,W)),b.append(new Uint8Array(L.buffer,L.byteOffset+W,L.length-W)),W=0):b.append(L);return{headView:O,tailView:b}};
_.d.extract=function(W,O){return this.split(W).tailView.split(O).headView};
_.d.isFocused=function(W){return W>=this.arrayPos&&W<this.arrayPos+this.arrays[this.arrayIdx].length};
_.d.focus=function(W){if(!this.isFocused(W))for(W<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=W&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var Dl5=function(W,O){W.focus(O);return W.arrays[W.arrayIdx][O-W.arrayPos]};(function(){var W=function(T){return new Uint8Array(T)},O=function(T){for(var L=new Uint8Array(T.length),h=0;h<T.length;h++)L[h]=T[h];
return L},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?W:O})();
var $2X=Array(1024),tO2=window.TextDecoder?new TextDecoder:void 0,Nqq=window.TextEncoder?new TextEncoder:void 0;var JRi=function(W){this.arrayView=W;this.pos=0;this.pendingTagAndType=-1},Le=function(W){var O=Dl5(W.arrayView,W.pos);
++W.pos;if(O<128)return O;for(var b=O&127,T=1;O>=128;)O=Dl5(W.arrayView,W.pos),++W.pos,T*=128,b+=(O&127)*T;return b},FcX=function(W,O){var b=W.pendingTagAndType;
for(W.pendingTagAndType=-1;W.pos+1<=W.arrayView.totalLength;){b<0&&(b=Le(W));var T=b>>3,L=b&7;if(T===O)return!0;if(T>O){W.pendingTagAndType=b;break}b=-1;switch(L){case 0:Le(W);break;case 1:W.pos+=8;break;case 2:T=Le(W);W.pos+=T;break;case 5:W.pos+=4}}return!1};var WFX=function(){this.pos=0;this.submessagePosStack=[];this.buf=u8X(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},SK=function(W,O){O=W.pos+O;
if(!(W.buf.length>=O)){for(var b=W.buf.length*2;b<O;)b*=2;W.buf=u8X(b,W.buf.subarray(0,W.pos));W.view=new DataView(W.buf.buffer,W.buf.byteOffset,W.buf.byteLength)}},hH=function(W,O){if(O>268435455){SK(W,4);
for(var b=O&1073741823,T=0;T<4;T++)W.view.setUint8(W.pos,b&127|128),b>>=7,W.pos+=1;O=Math.floor(O/268435456)}for(SK(W,4);O>127;)W.view.setUint8(W.pos,O&127|128),O>>=7,W.pos+=1;W.view.setUint8(W.pos,O);W.pos+=1};for(var OgT={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,
fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,
transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},yRi={},xlL=_.S(Object.entries(OgT)),zi7=xlL.next();!zi7.done;zi7=xlL.next()){var CD1=_.S(zi7.value),q6f=CD1.next().value,ndL=CD1.next().value,fxU=q6f,GLH=ndL;GLH&&(yRi[GLH]=fxU)};var bgP=function(W,O){W=W===void 0?{}:W;switch(O.type){case "ENTITY_LOADED":return O.payload.reduce(function(T,L){var h,Z=(h=L.options)==null?void 0:h.persistenceOption;if(Z&&Z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return T;if(!L.entityKey)return _.Dt(Error("zf")),T;if(L.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!L.payload)return L=new _.pu("REPLACE entity mutation is missing a payload",{entityKey:L.entityKey}),_.Dt(L),T;var a=(0,_.PQ.getAnyKey)(L.payload);
return TpX(T,a,L.entityKey,L.payload[a])}if(L.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{L=L.entityKey;try{var m=_.dm(L).entityType;a=TpX(T,m,L);break a}catch(X){if(X instanceof Error){L=new _.pu("Failed to deserialize entity key",{entityKey:L,originalMessage:X.message});_.Dt(L);a=T;break a}throw X;}a=void 0}return a}if(L.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!L.payload)return L=new _.pu("UPDATE entity mutation is missing a payload",{entityKey:L.entityKey}),_.Dt(L),T;a=(0,_.PQ.getAnyKey)(L.payload);
var w,A;return LFP(T,a,L.entityKey,L.payload[a],(w=L.fieldMask)==null?void 0:(A=w.mergeOptions)==null?void 0:A.repeatedFieldsMergeOption)}return T},W);
case "REPLACE_ENTITY":var b=O.payload;return TpX(W,b.entityType,b.key,b.entityPayload);case "REPLACE_ENTITIES":return Object.keys(O.payload).reduce(function(T,L){var h=O.payload[L];return Object.keys(h).reduce(function(Z,a){return TpX(Z,L,a,h[a])},T)},W);
case "UPDATE_ENTITY":return b=O.payload,LFP(W,b.entityType,b.key,b.entityPayload,b.mergeOption);default:return W}};var dvP;var H6H=!1,YP,EL,wk,Ap,XB,tfz=function(W){_.R8.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!H6H){var O,b=new Uint8Array(256),T=new Uint8Array(256);var L=1;for(O=0;O<256;O++)b[L]=O,T[O]=L,L^=L<<1^(L>>7&&283);YP=new Uint8Array(256);EL=aJ(256);wk=aJ(256);Ap=aJ(256);XB=aJ(256);for(var h=0;h<256;h++){L=h?T[255^b[h]]:0;L^=L<<1^L<<2^L<<3^L<<4;L=L&255^L>>>8^99;YP[h]=L;O=L<<1^(L>>7&&283);var Z=O^L;EL[h]=O<<24|L<<16|L<<8|Z;wk[h]=Z<<24|EL[h]>>>8;Ap[h]=L<<24|wk[h]>>>
8;XB[h]=L<<24|Ap[h]>>>8}H6H=!0}L=aJ(44);for(b=0;b<4;b++)L[b]=W[4*b]<<24|W[4*b+1]<<16|W[4*b+2]<<8|W[4*b+3];for(T=1;b<44;b++)W=L[b-1],b%4||(W=(YP[W>>16&255]^T)<<24|YP[W>>8&255]<<16|YP[W&255]<<8|YP[W>>>24],T=T<<1^(T>>7&&283)),L[b]=L[b-4]^W;this.key=L};
_.R(tfz,_.R8);
tfz.prototype.encrypt=function(W){var O=W.length;W=new Uint8Array(W.buffer.slice(W.byteOffset,W.byteOffset+O));for(var b=this.cipherBlock,T=0;T<O&&this.blockOffset<16;)W[T++]^=b[this.blockOffset++];for(var L=O-(O-T)%16;T<L;)$lq(this),W[T++]^=b[0],W[T++]^=b[1],W[T++]^=b[2],W[T++]^=b[3],W[T++]^=b[4],W[T++]^=b[5],W[T++]^=b[6],W[T++]^=b[7],W[T++]^=b[8],W[T++]^=b[9],W[T++]^=b[10],W[T++]^=b[11],W[T++]^=b[12],W[T++]^=b[13],W[T++]^=b[14],W[T++]^=b[15];if(T<O)for($lq(this),this.blockOffset=0;T<O;)W[T++]^=
b[this.blockOffset++];return W};
var Vf9=function(W,O){for(var b=0;b<4;b++)W.counter[b]=O[b*4]<<24|O[b*4+1]<<16|O[b*4+2]<<8|O[b*4+3];W.blockOffset=16},$lq=function(W){for(var O=W.key,b=W.counter[0]^O[0],T=W.counter[1]^O[1],L=W.counter[2]^O[2],h=W.counter[3]^O[3],Z=3;Z>=0&&!(W.counter[Z]=-~W.counter[Z]);Z--);
for(var a,m,w=4;w<40;)Z=EL[b>>>24]^wk[T>>16&255]^Ap[L>>8&255]^XB[h&255]^O[w++],a=EL[T>>>24]^wk[L>>16&255]^Ap[h>>8&255]^XB[b&255]^O[w++],m=EL[L>>>24]^wk[h>>16&255]^Ap[b>>8&255]^XB[T&255]^O[w++],h=EL[h>>>24]^wk[b>>16&255]^Ap[T>>8&255]^XB[L&255]^O[w++],b=Z,T=a,L=m;W=W.cipherBlock;Z=O[40];W[0]=YP[b>>>24]^Z>>>24;W[1]=YP[T>>16&255]^Z>>16&255;W[2]=YP[L>>8&255]^Z>>8&255;W[3]=YP[h&255]^Z&255;Z=O[41];W[4]=YP[T>>>24]^Z>>>24;W[5]=YP[L>>16&255]^Z>>16&255;W[6]=YP[h>>8&255]^Z>>8&255;W[7]=YP[b&255]^Z&255;Z=O[42];
W[8]=YP[L>>>24]^Z>>>24;W[9]=YP[h>>16&255]^Z>>16&255;W[10]=YP[b>>8&255]^Z>>8&255;W[11]=YP[T&255]^Z&255;Z=O[43];W[12]=YP[h>>>24]^Z>>>24;W[13]=YP[b>>16&255]^Z>>16&255;W[14]=YP[T>>8&255]^Z>>8&255;W[15]=YP[L&255]^Z&255};var Nwq=!1;(function(){var W=function(T){return new Uint8Array(T)},O=function(T){for(var L=new Uint8Array(T.length),h=0;h<T.length;h++)L[h]=T[h];
return L},b=new Uint8Array([1]);
return b.length===1&&b[0]===1?W:O})();
var UL;var Mfz=function(W){this.JSC$10576_aesKey=W};
Mfz.prototype.encrypt=function(W,O){var b=this,T,L;return _.I(function(h){if(h.nextAddress==1){a:{if(!Nwq&&!uq){if(UL){var Z=UL;break a}UL=(Z=window.crypto)==null?void 0:Z.subtle;var a,m,w;if(((a=UL)==null?0:a.importKey)&&((m=UL)==null?0:m.sign)&&((w=UL)==null?0:w.encrypt)){Z=UL;break a}UL=void 0}Z=void 0}T=Z;if(!T)return h.return(u$1(b,W,O));_.LI(h,3);return _.Y(h,JWz(b,W,O,T),5)}if(h.nextAddress!=3)return h.return(h.yieldResult);L=_.ID(h);_.z5(L);Nwq=!0;return h.return(u$1(b,W,O))})};
var JWz=function(W,O,b,T){var L,h;return _.I(function(Z){switch(Z.nextAddress){case 1:if(W.cryptoKey){Z.jumpTo(2);break}return _.Y(Z,T.importKey("raw",W.JSC$10576_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:W.cryptoKey=Z.yieldResult;case 2:return L={name:"AES-CTR",counter:b,length:128},_.Y(Z,T.encrypt(L,W.cryptoKey,O),4);case 4:return h=Z.yieldResult,Z.return(new Uint8Array(h))}})},u$1=function(W,O,b){W.encryptorPolyfill||(W.encryptorPolyfill=new tfz(W.JSC$10576_aesKey));
Vf9(W.encryptorPolyfill,b);return W.encryptorPolyfill.encrypt(O)},cWq=function(W){this.JSC$10580_aesKey=W};
cWq.prototype.encrypt=function(W,O){this.encryptor||(this.encryptor=new tfz(this.JSC$10580_aesKey));Vf9(this.encryptor,O);return this.encryptor.encrypt(W)};var FxS={},Zg8=yY("yt-idb-pref-storage",{objectStores:(FxS.prefs={addedAtVersion:1},FxS),shared:!1,upgrade:function(W,O){O(1)&&n9(q8(W,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.lh=function(W){this.token=W};
_.lh.getInstance=function(){return _.I(function(W){return W.return(new Promise(function(O){_.Fq().then(function(b){b?(_.lh.instance||(_.lh.instance=new _.lh(b)),O(_.lh.instance)):O(void 0)})}))})};
_.lh.prototype.get=function(W){var O=this,b,T,L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,IcX(O.token),2);if(h.nextAddress!=3)return b=h.yieldResult,_.Y(h,b.get("prefs",W),3);T=h.yieldResult;if(!T)return h.return();L=(0,_.WO)();return T.expirationTimestampMs<=L?h.return():h.return(T.value)})};
_.lh.prototype.set=function(W,O,b){b=b===void 0?31536E3:b;var T=this,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return L=(0,_.WO)(),h={key:W,value:O,expirationTimestampMs:L+b*1E3},_.Y(a,IcX(T.token),2);Z=a.yieldResult;return _.Y(a,Z.put("prefs",h),0)})};
_.lh.prototype.remove=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,IcX(O.token),2);b=T.yieldResult;return _.Y(T,b.delete("prefs",W),0)})};var en={},yWL=(en.INVALID_ENCODER_VERSION="Invalid encoder version",en.KEY_CREATION_FAILED="Failed to create encoder key",en.UNKNOWN_DECODE_ERROR="Failed to decode PES data",en.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",en.WRONG_DATA_TYPE="Encoder cannot process the data type",en),m_=function(W,O){O=O===void 0?{}:O;_.pu.call(this,yWL[W],Object.assign({},{name:"PESEncoderError",type:W},O));this.type=W;this.level="WARNING";Object.setPrototypeOf(this,m_.prototype)};
_.R(m_,_.pu);var Wfn=function(){},Oh1=function(W,O,b){try{return W.encodeImpl(O,b)}catch(T){E8X(T,mvh)}},ih7=function(W,O,b){var T;
return _.I(function(L){if(L.nextAddress==1)return _.LI(L,2),_.Y(L,W.decodeAsyncImpl(O,b),4);if(L.nextAddress!=2)return L.return(L.yieldResult);T=_.ID(L);E8X(T,Y9X);_.aD(L)})};
Wfn.prototype.decodeAsyncImpl=function(W,O){return Promise.resolve(this.decodeImpl(W,O))};var PH=function(W,O){this.aesEncryptor=W;this.aesEncryptorAsync=O};
_.R(PH,Wfn);PH.prototype.encodeImpl=function(W,O){O=wq1(O);W=(new TextEncoder).encode(JSON.stringify(W));return this.aesEncryptor.encrypt(W,O)};
PH.prototype.decodeImpl=function(W,O){if(!(W instanceof Uint8Array))throw acq(1);var b=new TextDecoder;O=wq1(O);W=this.aesEncryptor.encrypt(W,O);return JSON.parse(b.decode(W))};
PH.prototype.decodeAsyncImpl=function(W,O){var b=this,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){if(!(W instanceof Uint8Array))throw acq(1);T=new TextDecoder;L=wq1(O);return _.Y(Z,b.aesEncryptorAsync.encrypt(W,L),2)}h=Z.yieldResult;return Z.return(JSON.parse(T.decode(h)))})};var Ac2={accountLinkStatusEntity:QB1,booleanEntity:LB5,buttonEntity:mN1,captionTrack:j$f,channelHandle:V61,chipEntity:NcL,commerceAcquisitionClientPayloadEntity:Crw,commerceCartListEntity:q27,contextNoteFeedEntityPayload:ysf,continuationTokenEntity:nHf,downloadQualityPickerEntity:oHN,downloadsPageRefreshTokenEntity:ky5,downloadsPageViewConfigurationEntity:uGw,downloadStatusEntity:QKf,dismissState:Mdq,sfvAudioItemCurrentlyPlayingEntity:zjS,emojiFountainDataEntity:ZN5,emojiCustomizationSetEntity:S2w,
fakeChannel:SiU,fakePlaylist:Z4f,fakePlaylistEntryCollection:IAU,fakeVideo:ma5,fakeVideoDescription:Yiq,featuredProductsEntity:EB7,flowStateEntity:KBL,iconBadgeEntity:nV1,interstitialInteractionStateEntity:Mm7,likeButtonAnimationEntity:JYw,liveChatPollStateEntity:iOS,liveViewerLeaderboardChatEntryPointStateEntity:XT$,liveViewerLeaderboardPointsEntity:U2z,liveReactionsDataEntity:Imz,logoEntity:VmH,macroMarkerEntity:cYz,mainDownloadsLibraryEntity:sK9,mainDownloadsListEntity:B9w,mainPlaylistDownloadStateEntity:DnL,
mainPlaylistEntity:fB5,mainPlaylistVideoEntity:GyH,mainVideoDownloadStateEntity:xnq,mainVideoEntity:Von,markersEngagementPanelSyncEntity:FHv,markersVisibilityOverrideEntity:yYS,musicAlbumReleaseDetail:vB$,musicAlbumReleaseDownloadMetadataEntity:eQq,musicAlbumRelease:KON,musicAlbumReleaseUserDetail:gB1,musicArtistDetail:QnU,musicArtist:oB1,musicArtistUserDetail:khn,musicDownloadsLibraryEntity:PBn,musicLibraryEdit:sn7,musicLibraryStatusEntity:BNw,musicPlaylist:rEn,musicPlaylistDownloadMetadataEntity:pyH,
musicShare:xV9,musicTrackDetail:CBn,musicTrackDownloadMetadataEntity:RQ5,musicTrack:zQn,musicTrackUserDetail:q$$,offlineOrchestrationActionWrapperEntity:TqN,offlineVideoPolicy:LcH,offlineVideoStreams:d2U,offlineabilityEntity:zf9,orchestrationWebSamplingEntity:CEL,pageHeaderEntity:ON5,pdpStateEntity:fmf,pinnedProductEntity:wyU,playbackData:hjH,playerStateEntity:WOL,quantityIncrementerEntity:G37,refresh:SYv,saveToPlaylistListEntity:hFq,selectedChipIndexEntityPayload:OWH,settingEntity:o2q,stringEntity:daH,
suggestedFeedbackChipStateEntity:iWn,transfer:Zc1,trendingOfferEntity:AEz,videoDownloadContextEntity:IRS,videoOverviewAsyncDataEntity:aCq,videoPlaybackPositionEntity:wXL,votingEntity:T5q,ytMainChannelEntity:N97,youchatPendingResponseEntity:bWN,ytMainDownloadedVideoEntity:qR1,ytMainVideoEntity:MoL};var bhS,Tnz,XW,KF8,v82,hV7,ZhH,Sh5,d5v;bhS=function(W,O){this.JSC$10599_wrapped=W;this.JSC$10599_encoderRegistry=O;this.changedKeys={}};
Tnz=function(W,O){a:{W=jlH(W.JSC$10599_encoderRegistry,O.version);try{var b=W.decodeImpl(O.data,O.key);break a}catch(T){E8X(T,Y9X)}b=void 0}return b};
_.Lff=function(W,O,b){return W.JSC$10599_wrapped.objectStore("EntityStore").get(O).then(function(T){if(T){if(b&&T.entityType!==b)throw Error("Af");return Tnz(W,T)}})};
XW=function(W,O,b){return b?(b=b.map(function(T){return _.Lff(W,T,O)}),qm.all(b)):W.JSC$10599_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(O)).then(function(T){return T.map(function(L){return Tnz(W,L)})})};
_.R4P=function(W,O,b){var T=igE(O),L=jlH(W.JSC$10599_encoderRegistry,1),h=Object.assign({},O);return W.JSC$10599_wrapped.objectStore("EntityStore").get(T).then(function(Z){if(Z){if(Z.entityType!==b)throw Error("Af");h.entityMetadata||(Z=Tnz(W,Z),h.entityMetadata=Z.entityMetadata)}}).then(function(){var Z={key:T,
entityType:b,data:Oh1(L,h,T),version:1};return qm.all([W.JSC$10599_wrapped.objectStore("EntityStore").put(Z),d5v(W,h,b)])}).then(function(){hV7(W,T,b);
return T})};
KF8=function(W,O){var b=_.dm(O).entityType;return qm.all([W.JSC$10599_wrapped.objectStore("EntityStore").delete(O),Sh5(W,O)]).then(function(){hV7(W,O,b)})};
v82=function(W,O,b,T){var L=jlH(W.JSC$10599_encoderRegistry,1);return _.Lff(W,O,T).then(function(h){if(h){h=HcE(h,b);var Z={key:O,entityType:T,data:Oh1(L,h,O),version:1};return qm.all([W.JSC$10599_wrapped.objectStore("EntityStore").put(Z),d5v(W,h,T)])}}).then(function(){hV7(W,O,T);
return O})};
hV7=function(W,O,b){var T=W.changedKeys[b];T||(T=new Set,W.changedKeys[b]=T);T.add(O)};
ZhH=function(W,O,b){var T=igE(O);b=XqT(b);if(!b)return qm.resolve([]);b=new b(O);W=W.JSC$10599_wrapped.objectStore("EntityAssociationStore");O=[];b=_.S(b.getAssociations());for(var L=b.next();!L.done;L=b.next())O.push(W.put({parentEntityKey:T,childEntityKey:L.value}));return qm.all(O).then(function(h){return h.map(function(Z){return Z[1]})})};
Sh5=function(W,O){return W.JSC$10599_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(O))};
d5v=function(W,O,b){var T=igE(O);return Sh5(W,T).then(function(){return ZhH(W,O,b)})};var IXS=function(){};
_.R(IXS,Wfn);IXS.prototype.encodeImpl=function(W){return W};
IXS.prototype.decodeImpl=function(W){if(W instanceof Uint8Array)throw acq(0);return W};var e4e=function(){this.cacheMap={};this.cacheMap[0]=new IXS;if(!_.e("aes_pes_encoder_killswitch")){var W=this.cacheMap;try{var O=_.eJ();var b=wq1(O);var T=new PH(new cWq(b),new Mfz(b))}catch(L){throw W=L instanceof Error?new m_("KEY_CREATION_FAILED",{originalMessage:L.message}):new m_("KEY_CREATION_FAILED"),_.Dt(W),W;}W[1]=T}},jlH=function(W,O){O=O===void 0?0:O;
W=W.cacheMap[O];if(!W)throw O=new m_("INVALID_ENCODER_VERSION",{encoderVersion:O}),_.Dt(O),O;return W};var Er=function(W,O){_.R8.call(this);this.token=W;this.JSC$10613_encoderRegistry=O;this.observers=[];W=new _.i1.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.eJ());W.onmessage=this.handleMessage.bind(this);this.channel=W};
_.R(Er,_.R8);_.AH=function(W,O,b){var T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return _.Y(a,S9X(W.token),2);if(a.nextAddress!=3)return T=a.yieldResult,_.Y(a,_.VY(T,["EntityStore","EntityAssociationStore"],O,function(m){L=new bhS(m,W.JSC$10613_encoderRegistry);return b(L)}),3);
h=a.yieldResult;L&&(Z=L.changedKeys,Object.keys(Z).length>0&&(W.channel.postMessage(Z),aX7(W,Z)));return a.return(h)})};
Er.prototype.observe=function(W){var O=this;this.observers.push(W);return function(){var b=O.observers.indexOf(W);b>=0&&O.observers.splice(b,1)}};
var DHE=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,_.AH(W,{mode:"readonly",enableRetries:!0},function(T){return T.JSC$10599_wrapped.objectStore("EntityStore").getAll()}),2);
O=b.yieldResult;return b.return(Promise.all(O.filter(function(T){return!!T}).map(function(T){var L,h;
return _.I(function(Z){if(Z.nextAddress==1){L=T.key;h=T.entityType;var a=ih7(jlH(W.JSC$10613_encoderRegistry,T.version),T.data,T.key);return _.Y(Z,a,2)}return Z.return({key:L,entityType:h,data:Z.yieldResult})})})))})};
Er.prototype.handleMessage=function(W){aX7(this,W.data)};
var aX7=function(W,O){W=_.S(W.observers);for(var b=W.next();!b.done;b=W.next())b=b.value,b(O)};
Er.prototype.disposeInternal=function(){this.channel.close()};
var UvT;var pK,Yhz,WU2,Ps8;pK={};_.m5q=(pK.mainVideoEntity="mainVideoEntityActionMetadata",pK.mainPlaylistEntity="mainPlaylistEntityActionMetadata",pK.musicTrack="musicTrackEntityActionMetadata",pK.musicPlaylist="musicPlaylistEntityActionMetadata",pK);Yhz=new _.MV("DOWNLOADS_ENTITY_TYPE_MAP");WU2=_.Z5("","downloadsPageViewConfigurationEntity");Ps8=_.Z5("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.bNQ=_.Z5("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.Z5("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.Z5("SMART_DOWNLOADS_ENABLED","settingEntity");_.Z5("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var hFh=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var E2Q=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var tdh={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var RT,G3q,b_7,zJX;RT=window;_.qX=RT.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.y62=RT.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.$9;G3q=RT.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Pt;b_7=RT.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||i_w;_.Eoz=RT.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.UXN;zJX=RT.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||PvL;HS({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 iKQ=HN2(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(W){return W}}}),nCe=HN2(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(W){return W}}}),N5q=new Map;var jTX=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],FUh;var wwn=function(W){return _.Tc({type:"SET_EPHEMERAL_ACTION",payload:W})};var A5f={ephemeralAction:null};var Xw5={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var vPh={sharedUi:function(W,O){W=W===void 0?Xw5:W;switch(O.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},W,{animatedThumbnailEnabled:O.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},W,{inlinePreviewEnabled:O.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},W,{currentPageType:O.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},W,{currentPageSubType:O.payload});default:return W}},
a11y:m1({ephemeralAction:function(W,O){W=W===void 0?A5f.ephemeralAction:W;switch(O.type){case "SET_EPHEMERAL_ACTION":return O.payload;default:return W}}})};var UgT=m1({isLeaderTab:function(W,O){W=W===void 0?!0:W;switch(O.type){case "SET_IS_LEADER_TAB":var b,T;return(T=O==null?void 0:(b=O.payload)==null?void 0:b.isLeaderTab)!=null?T:W;default:return W}}});var U5N=function(W){return _.Tc({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:W}})};var KrX=m1({isDesktopSmallWidth:function(W,O){switch(O.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return O.payload.isDesktopSmallWidth;default:return W===void 0?!1:W}},
isShortsActive:function(W,O){switch(O.type){case "SET_IS_SHORTS_ACTIVE":return O.payload.isShortsActive;default:return W===void 0?!1:W}},
isWatchWhileMode:function(W,O){switch(O.type){case "SET_IS_WATCH_WHILE_MODE":return O.payload.isWatchWhileMode;default:return W===void 0?!1:W}},
playerState:function(W,O){switch(O.type){case "SET_PLAYER_STATE":return O.payload.playerState;default:return W===void 0?-1:W}},
isFullscreen:function(W,O){switch(O.type){case "SET_IS_FULLSCREEN":return O.payload.isFullscreen;default:return W===void 0?!1:W}},
isSmallScreenSqueezeback:function(W,O){switch(O.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return O.payload.isSmallScreenSqueezeback;default:return W===void 0?!1:W}},
isShortsPipActive:function(W,O){switch(O.type){case "SET_IS_SHORTS_PIP_ACTIVE":return O.payload.isShortsPipActive;default:return W===void 0?!1:W}},
isPlaybackStarted:function(W,O){switch(O.type){case "SET_IS_PLAYBACK_STARTED":return O.payload.isPlaybackStarted;default:return W===void 0?!1:W}}});var ZK2={playlistId:"",inviteLinkURL:""};var lX1={};var XHe=m1({continuationCommand:function(W,O){W=W===void 0?lX1:W;switch(O.type){case "SET_CONTINUATION_COMMAND":return O.payload.continuationCommand;default:return W}}});var oPh=function(){return function(W){return function(O){var b=W(O);_.jx(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[O],!0);return b}}};var eV5,Rze;eV5=new _.S4;_.jk=new _.MV("WATCH_PLAYER_PROMISE_TOKEN");_.PoU=new _.S4;_.pw7=new _.MV("SHORTS_PLAYER_PROMISE_TOKEN");Rze=new _.MV("");var QTO=function(){return function(W){return function(O){O.type==="ENTITY_LOADED"&&_.iq().resolve(_.jk).then(function(b){var T;(T=b.dispatchReduxAction)==null||T.call(b,O)});
return W(O)}}};var aCh={currentFormId:"",commandsMap:{}};var RVn={};var lCQ=m1({additionalContext:function(W,O){switch(O.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var b;return(b=O.payload)!=null?b:"";default:return W===void 0?"":W}},
impersonatedChannelUrl:function(W,O){switch(O.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var b;return(b=O.payload)!=null?b:"";default:return W===void 0?"":W}},
selectedVideoIds:function(W,O){W=W===void 0?RVn:W;switch(O.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var b={};return Object.assign({},W,(b[O.payload]=!0,b));case "VIDEO_UNSELECTED":return O=O.payload,W=Object.assign({},W),delete W[O],W;default:return W}}});var etT=m1({parentClickTrackingParams:function(W,O){switch(O.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return O.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return W===void 0?"":W}}});var KfL=function(W){return _.Tc({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:W})};var voq={};var Phh=m1({stepStates:function(W,O){W=W===void 0?voq:W;switch(O.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var b=W,T=O.payload,L,h,Z;W={};O={selectionStates:Object.assign({},(Z=(L=b[T.stepId])==null?void 0:L.selectionStates)!=null?Z:{},(W[T.token]={isSelected:T.isSelected},W)),userQuery:(h=b[T.stepId])==null?void 0:h.userQuery};L={};return Object.assign({},b,(L[T.stepId]=O,L));case "TALK_TO_RECS_UPDATE_USER_QUERY":return L=W,h=O.payload,Z={selectionStates:Object.assign({},
(T=(b=L[h.stepId])==null?void 0:b.selectionStates)!=null?T:{}),userQuery:{userQuery:h.userQuery,token:h.userQueryToken}},b={},Object.assign({},L,(b[h.stepId]=Z,b));default:return W}}});var goU,oof;goU=function(W){return _.Tc({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:W})};
oof=function(W){return _.Tc({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:W})};
_.vR=function(W){return _.Tc({type:"SET_CURRENT_PAGE_TYPE",payload:W})};
_.Qlv=function(W){return _.Tc({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:W})};var YLh={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"};_.klw=function(W){return _.Tc({type:"SET_PLAYER_STATE",payload:{playerState:W}})};var sl$=[],Bn$={width:0,height:0};var pH8=m1({isTheaterMode:function(W,O){W=W===void 0?_.e("kevlar_disable_theater_mode_persistence")?!1:_.qC("START_IN_THEATER_MODE"):W;switch(O.type){case "SET_IS_THEATER_MODE":return O.payload.isTheaterMode;default:return W}},
isWatchActive:function(W,O){switch(O.type){case "SET_IS_WATCH_ACTIVE":return O.payload.isWatchActive;default:return W===void 0?!1:W}},
isLearningJourneyActive:function(W,O){switch(O.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return O.payload.isLearningJourneyActive;default:return W===void 0?!1:W}},
isWatchFullscreen:function(W,O){switch(O.type){case "SET_IS_WATCH_FULLSCREEN":return O.payload.isWatchFullscreen;default:return W===void 0?!1:W}},
isWatchNarrowWidth:function(W,O){switch(O.type){case "SET_IS_WATCH_NARROW_WIDTH":return O.payload.isWatchNarrowWidth;default:return W===void 0?!1:W}},
isWatchRetroMode:function(W,O){switch(O.type){case "SET_IS_WATCH_RETRO_MODE":return O.payload.isWatchRetroMode;default:return W===void 0?!1:W}},
isLiveChatCollapsed:function(W,O){switch(O.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return O.payload.isLiveChatCollapsed;default:return W===void 0?!1:W}},
openEngagementPanels:function(W,O){W=W===void 0?sl$:W;var b=[].concat(_.PG(W));switch(O.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return b.push(O.payload.panelToAdd),b;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return b.splice(b.indexOf(O.payload.panelToRemove),1),b;default:return W}},
playerState:function(W,O){switch(O.type){case "SET_PLAYER_STATE":return O.payload.playerState;default:return W===void 0?-1:W}},
watchScrollTop:function(W,O){switch(O.type){case "SET_WATCH_SCROLL_TOP":return O.payload.watchScrollTop;default:return W===void 0?0:W}},
watchWindowSize:function(W,O){W=W===void 0?Bn$:W;switch(O.type){case "SET_WATCH_WINDOW_SIZE":return O.payload.watchWindowSize;default:return W}}});var r5f={feedbackTokens:[]};var RtO=m1({surveyFeedbackData:function(W,O){W=W===void 0?r5f:W;switch(O.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return O.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},W,O.payload);default:return W}}});var wHq={};var sTX=void 0;_.e("web_enable_redux_store_on_demand")||(sTX=kn8());var D55=function(W,O,b){var T=this;this.listId=W;this.JSC$10747_updateCallback=O;this.isOfflineVideoCallback=b;_.uv().subscribe(function(){T.handleUpdate()})};
D55.prototype.getPlaylistData=function(){var W=_.uv().getState().entities;if(this.listId&&this.listId!=="PPSV"){var O=Bci(W,this.listId,!0),b=_.Z5(this.listId,"mainPlaylistEntity"),T,L;W=W==null?void 0:(T=W.mainPlaylistEntity)==null?void 0:(L=T[b])==null?void 0:L.title;return Bke(O,W,this.listId)}O=_.wLQ(dNO(W));W=_.wLQ(_.vS(W));return Bke(O.concat(W))};
D55.prototype.getPlaylistId=function(){return this.listId};
D55.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10747_updateCallback(this.listId,this.getPlaylistData(),{})};var KK=function(W,O,b,T){T=T===void 0?[]:T;this.JSC$10750_playlistNetworkManager=W;this.listId=O;this.JSC$10750_updateCallback=b;this.videoIds=T;this.pendingUpdates=[];this.currentIndex=0};
KK.prototype.JSC$10750_setCurrentIndex=function(W){this.currentIndex=W};
KK.prototype.setListId=function(W){this.listId=W};
var x51=function(W,O){W.currentCreateRequest&&W.currentCreateRequest.cancel(O);W.currentUpdateRequest&&W.currentUpdateRequest.cancel(O);W.currentRefreshRequest&&W.currentRefreshRequest.cancel(O)};
KK.prototype.delete=function(){x51(this,"PROXY DELETED")};
KK.prototype.addVideos=function(W,O,b){var T=this;b!==void 0?this.videoIds.splice.apply(this.videoIds,[b,0].concat(_.PG(W))):this.videoIds.push.apply(this.videoIds,_.PG(W));this.listId||this.currentCreateRequest?(W.forEach(function(L,h){L={addedVideoId:L,action:"ACTION_ADD_VIDEO"};b&&(L.addedVideoPosition=b+h);T.pendingUpdates.push(L)}),vH(this)):zVz(this,O.onCreateListCommand)};
var Co9=function(W,O,b,T,L){p2h(W.videoIds,O,b);O>W.currentIndex&&b<=W.currentIndex?W.JSC$10750_setCurrentIndex(W.currentIndex+1):O===W.currentIndex?W.JSC$10750_setCurrentIndex(b):O<W.currentIndex&&b>=W.currentIndex&&W.JSC$10750_setCurrentIndex(W.currentIndex-1);W.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:T,movedSetVideoIdPredecessor:L});vH(W)},zVz=function(W,O){x51(W,"OBSOLETE");
W.currentCreateRequest=qhn(W.JSC$10750_playlistNetworkManager,O,W.videoIds);_.UR(W.currentCreateRequest,function(){W.currentCreateRequest=void 0}).then(function(b){W.setListId(b.playlistId);
W.pendingUpdates.length>0?vH(W):no1(W)})},vH=function(W){if(W.pendingUpdates.length!==0&&(W.currentRefreshRequest&&W.currentRefreshRequest.cancel("OBSOLETE"),!W.currentUpdateRequest&&!W.currentCreateRequest)){var O=W.pendingUpdates.splice(0,W.pendingUpdates.length);
W.currentUpdateRequest=W.JSC$10750_playlistNetworkManager.updatePlaylist(W.listId,O);_.UR(W.currentUpdateRequest,function(){W.currentUpdateRequest=void 0}).then(function(){W.pendingUpdates.length>0?vH(W):no1(W)}).thenCatch(function(){W.pendingUpdates.unshift.apply(W.pendingUpdates,_.PG(O))})}},no1=function(W){W.currentRefreshRequest=_.fX$(W.JSC$10750_playlistNetworkManager,W.listId,W.currentIndex,W.videoIds[W.currentIndex]);
_.UR(W.currentRefreshRequest,function(){W.currentRefreshRequest=void 0}).then(function(O){W.JSC$10750_updateCallback(O.playlistId,O.playlistPanelRenderer,O.autoplayRenderer)})};
KK.prototype.size=function(){return this.videoIds.length};var GlH=function(W,O,b,T){T=T===void 0?[]:T;KK.call(this,W,O,b,T);this.JSC$10750_playlistNetworkManager=W;this.listId=O;this.JSC$10750_updateCallback=b;this.videoIds=T};
_.R(GlH,KK);_.gk=function(W,O,b,T,L,h,Z){L=L===void 0?[]:L;Z=Z===void 0?Wx:Z;KK.call(this,W,O,b,L);this.JSC$10750_playlistNetworkManager=W;this.listId=O;this.JSC$10750_updateCallback=b;this.onAuthChange=T;this.videoIds=L;this.storage=h;this.cookieReader=Z;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.dd(_.sF,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R(_.gk,KK);_.d=_.gk.prototype;_.d.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.dd(_.sF,this.checkLoggedInStatusChange.bind(this),1E3)};
_.d.JSC$10750_setCurrentIndex=function(W){KK.prototype.JSC$10750_setCurrentIndex.call(this,W);this.store()};
_.d.delete=function(){_.sF.cancelJob(this.queueSapisIdJob);KK.prototype.delete.call(this)};
_.d.setListId=function(W){KK.prototype.setListId.call(this,W);this.store()};
_.d.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Hhv=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],tTv=["playerResponse","videoDetails"],$51=["response","currentVideoEndpoint","watchEndpoint","videoId"],VT7=["response","currentVideoEndpoint","watchEndpoint","playlistId"],Nn9=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],MTf=["response","contents","twoColumnWatchNextResults","playlist","playlist"],u4w=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
J5w=["response","contents","twoColumnWatchNextResults"];var oT={},Chi=(oT.WEB_UNPLUGGED="^unplugged/",oT.WEB_UNPLUGGED_ONBOARDING="^unplugged/",oT.WEB_UNPLUGGED_OPS="^unplugged/",oT.WEB_UNPLUGGED_PUBLIC="^unplugged/",oT.WEB_CREATOR="^creator/",oT.WEB_KIDS="^kids/",oT.WEB_EXPERIMENTS="^experiments/",oT.WEB_MUSIC="^music/",oT.WEB_REMIX="^music/",oT.WEB_MUSIC_EMBEDDED_PLAYER="^music/",oT.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",oT);var lxh,qhn;lxh=function(W,O){this.networkManager=W;this.innertubeTransportService=O};
qhn=function(W,O,b){if(!_.P(O,_.Dm))return _.vi(Error("Ef"));_.P(O,_.Dm).videoIds=b;b={create_playlist_title:_.EO("QUEUE",void 0,"Queue")};return xg2(_.tP(W.innertubeTransportService,O,b),rpE)};
_.fX$=function(W,O,b,T){O={videoId:T,playlistId:O,playlistIndex:b};b=_.JH(Fgw);return xg2(_.QR(W.innertubeTransportService,O,b),zt1)};
lxh.prototype.updatePlaylist=function(W,O){return xg2(_.tP(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:W,actions:O}}),Dgq)};var c5N=function(W){this.storage=W},Ff7;
c5N.prototype.store=function(W,O){O=O===void 0?0:O;if(this.storage&&W.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",W),this.storage.set("TLPQindex",String(O)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(b){}};
c5N.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
c5N.prototype.getPlaylistId=function(){if(!this.storage)return null;var W=null;try{W=this.storage.get("TLPQplaylist")}catch(O){}return W};var Gne=["navigationEndpoint","watchEndpoint","videoId"],fCe=["nextButtonVideo","watchEndpoint","videoId"];_.k1=new _.MV("NETWORK_TOKEN");_.cs=new _.MV("PAGE_TOKEN");_.kP=new _.MV("PLAYLIST_TOKEN");var y5H;y5H=new _.MV("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.sP=new _.MV("INNERTUBE_TRANSPORT_TOKEN");var WKv,sL,i19,b1w,TT1,LK5;WKv=new Set(["ci","cr","carml"]);sL=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10797_parkedJobs=new Map;this.parkedProcessors=new Map};
_.BH=function(){sL.instance||(sL.instance=new sL);return sL.instance};
sL.prototype.onAny=function(W){return _.O19(this,W,2)};
sL.prototype.parkOrScheduleJob=function(W,O,b,T,L){_.rk(this,b)?_.KD().addJob(W,O,T):(L&&(W=i19(W),b1w(this,W,O,b,L)),L=this.JSC$10797_parkedJobs.get(b),L||(this.JSC$10797_parkedJobs.set(b,[]),L=this.JSC$10797_parkedJobs.get(b)),L.push({job:W,priority:O,delay:T}))};
sL.prototype.addListener=function(W,O,b){b&&(O=i19(O),b1w(this,O,0,W,b));b=this.parkedProcessors.get(W);b||(this.parkedProcessors.set(W,[]),b=this.parkedProcessors.get(W));b.push(O)};
sL.prototype.processSignal=function(W){if(!_.rk(this,W)){this.inProgressSignals.add(W);var O=this.JSC$10797_parkedJobs.get(W);if(O){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,_.KD().addJob(b.job,b.priority,b.delay);this.JSC$10797_parkedJobs.delete(W)}if(O=this.parkedProcessors.get(W)){O=_.S(O);for(b=O.next();!b.done;b=O.next())b=b.value,b();this.parkedProcessors.delete(W)}this.signals.push(W);this.inProgressSignals.delete(W)}};
_.rk=function(W,O){return WKv.has(O)||_.qC("IS_HOMEPAGE_COLD")||_.qC("IS_RESULTS_PAGE_COLD")||_.qC("IS_WATCH_PAGE_COLD")?W.signals.indexOf(O)>=0:!0};
i19=function(W){var O=!1;return function(){O||(O=!0,W())}};
b1w=function(W,O,b,T,L){if(jCU.has(T))_.KD().addJob(O,b,L);else{var h=W.compoundSignals.get(T);h&&_.KD().addJob(function(){_.rk(W,T)||(h.isTimeoutConditionSatisfied?_.KD().addJob(O,b):h.timeoutConditionObservers.push(function(){_.KD().addJob(O,b)}))},b,L)}};
_.O19=function(W,O,b){if(O.length>1){var T=[],L=Object.create(null);O=_.S(O);for(var h=O.next();!h.done;h=O.next())h=h.value,L[h]||(T.push(h),L[h]=!0);O=T}if(O.length===1)return O[0];h=O;T="";L=b===2?"|":"&";h.sort();h=_.S(h);for(var Z=h.next();!Z.done;Z=h.next())T+=Z.value+L;if(!W.compoundSignals.get(T)){L=0;h=[];Z=_.S(O);for(var a=Z.next();!a.done;a=Z.next())a=a.value,L++,_.rk(W,a)||h.push(a);(b=b===2)&&L>h.length||!b&&!h.length?W.signals.push(T):TT1(W,T,b,O,h)}return T};
TT1=function(W,O,b,T,L){var h=L.length,Z=function(){b||--h===0?W.processSignal(O):LK5(W,O)};
L=_.S(L);for(var a=L.next();!a.done;a=L.next())W.addListener(a.value,Z);W.compoundSignals.set(O,{signals:T,isOnAny:b,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});LK5(W,O)};
LK5=function(W,O){if(!_.rk(W,O)){var b=W.compoundSignals.get(O);if(b&&!b.isTimeoutConditionSatisfied){for(var T=!1,L=0,h=0,Z=_.S(b.signals),a=Z.next();!a.done;a=Z.next()){var m=a.value;a=!_.rk(W,m);jCU.has(m)?T=!0:(m=W.compoundSignals.get(m))?a&&!m.isTimeoutConditionSatisfied&&(h++,b.isInitialized||m.timeoutConditionObservers.push(function(){LK5(W,O)})):a&&L++}b.isInitialized=!0;
b.isOnAny?T&&(b.isTimeoutConditionSatisfied=!0):L===0&&h===0&&(b.isTimeoutConditionSatisfied=!0);if(b.isTimeoutConditionSatisfied)for(b=_.S(b.timeoutConditionObservers),T=b.next();!T.done;T=b.next())T=T.value,T()}}};
sL.prototype.processSignal=sL.prototype.processSignal;sL.prototype.parkOrScheduleJob=sL.prototype.parkOrScheduleJob;sL.prototype.onAny=sL.prototype.onAny;_.c3("ytsignals.getInstance",_.BH);sL.prototype.onAny=sL.prototype.onAny;sL.prototype.parkOrScheduleJob=sL.prototype.parkOrScheduleJob;sL.prototype.processSignal=sL.prototype.processSignal;var jCU=new Set(["eop","eocs","dl","pcl"]);_.xq=new _.MV("MINIPLAYER_SERVICE");var DC,dTf,how;DC=function(W,O,b){var T=_.$G.getInstance();if(!Ff7){var L=new auQ;var h=void 0,Z=_.Cv("ID_TOKEN");Z&&L.isAvailable()&&(h=new gO(L,"yt-queue"+Z));Ff7=new c5N(h)}L=Ff7;h=_.BH();this.JSC$10804_actionRouter=T;this.pageManager=W;this.playlistManager=O;this.JSC$10804_playlistNetworkManager=b;this.storage=L;this.signals=h;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.xP=function(){if(!dTf){var W=_.iq(),O=W.resolve(_.OT(_.cs)),b=W.resolve(_.OT(_.k1)),T=W.resolve(_.OT(_.kP));W=W.resolve(_.sP);dTf=new DC(O,T,new lxh(b,W))}return dTf};
how=function(W,O,b){if(b){var T;if(((T=W.responsePlaylistData)==null?void 0:T.playlistId)!==b)return}W.responsePlaylistData&&(b=MnO(O,W.responsePlaylistData),W.responsePlaylistData=(0,_.PQ.unsafeClone)(W.responsePlaylistData),JpQ(W.responsePlaylistData,b));b=W.temporaryItems.findIndex(function(L){return L.videoId===O});
b>-1&&W.temporaryItems.splice(b,1);_.zn(W,_.CK(W,W.response?W.response.autoplayRenderer:void 0))};
_.SAS=function(W,O){if(W.responsePlaylistData){var b=uBX(O,W.responsePlaylistData);JpQ(W.responsePlaylistData,b);if(W.queueProxy){var T=W.queueProxy;b<0||(T.videoIds.splice(b,1),b<T.currentIndex&&T.JSC$10750_setCurrentIndex(T.currentIndex-1),T.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:O}),vH(T))}}_.zn(W,_.CK(W,W.response?W.response.autoplayRenderer:void 0))};
DC.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.zn(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
DC.prototype.setPlaylistData=function(W,O,b){this.temporaryItems=[];this.listId=W;this.responsePlaylistData=O;_.zn(this,_.CK(this,b))};
var Z1q=function(W){return(W==null?0:W.playlistId)?W.playlistId:"PPSV"},Is1=function(W){return W&&W.playlistId?W.playlistId==="PPSV"?!0:kie(_.uv().getState().entities,W.playlistId):!1};
DC.prototype.isPlayingOfflineVideo=function(){return this.response?Is1(this.response):!1};
DC.prototype.closeMiniplayer=function(W){var O=this.queueProxy&&this.queueProxy.size()<=1,b=_.iq().resolve(_.xq);if(!this.queueProxy||O)this.queueProxy&&this.clearQueue(),b.close(!0);else{b.pipController.getWindow()&&window.focus();O=this.responsePlaylistData;var T=this.temporaryItems.length+(O&&O.contents?O.contents.length:0);O=_.EO("QUEUE_CLEARED_UNPLURALIZED")||_.wa("QUEUE_CLEARED",T);O=_.FW(O);b=_.EO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");T=_.EO("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.wa("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",T);var L=_.EO("MINIPLAYER_CLOSE",void 0,"Close"),h=_.EO("CANCEL",void 0,"Cancel");_.o$(this.JSC$10804_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.VV(b),dialogMessages:[_.VV(T)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.VV(L),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
O]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.VV(h)}}}}}}],W)}};
_.CK=function(W,O){var b={},T=W.response;b.autoplayRenderer=O;if(!W.responsePlaylistData&&!W.temporaryItems.length)return!T||!T.hasRelatedVideoData&&_.e("kevlar_prefetch_data_augments_network_data")||(b.playerData={rvs:T.relatedVideoArgs,endScreenRenderer:T.endScreenRenderer}),b;b.playerData={};if(W.index===void 0)return _.Dt(Error("Gf")),b;b.panel=W.responsePlaylistData?(0,_.PQ.unsafeClone)(W.responsePlaylistData):{titleText:_.VV(_.EO("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
O=b.panel;if(O.contents)for(var L=_.S(W.temporaryItems),h=L.next();!h.done;h=L.next())O.contents.push({playlistPanelVideoRenderer:h.value});W.queueProxy&&T&&T.playingVideo&&T.playingVideoId&&!NkX(T.playingVideoId,b.panel)&&(O=T.playingVideo,L=b.panel,h=W.index,L.contents&&L.contents.splice(h===void 0?0:h,0,{playlistPanelVideoRenderer:O}));T&&T.playingVideoId&&(O=W.index,L=b.panel,O=!L.contents||O>=L.contents.length?void 0:L.contents[O].playlistPanelVideoRenderer,O&&O.videoId===T.playingVideoId||(O=
MnO(T.playingVideoId,b.panel),W.index=O!==-1?O:W.index?W.index-1:0));O=VnP(W.index+1,b.panel);L=void 0;W.index>0&&(L=VnP(W.index-1,b.panel));if(L||O)b.autoplayRenderer=HKX(O,L,b.autoplayRenderer);!O&&(T==null?0:T.relatedVideoArgs)&&(b.playerData.rvs=T.relatedVideoArgs);T=T?T.playlistIndexOffset:0;W.queueProxy?ypX(b.panel,W.index,T,$gq,!0,!0,!0):ypX(b.panel,W.index,T);b.playerData.playlistPanelRenderer=b.panel;return b};
DC.prototype.openToast=function(W){_.iq().resolve(_.xq).openToast(W,_.EO("ADDED_TO_QUEUE",void 0,"Added to queue"))};
DC.prototype.isMiniplayerActive=function(){return _.iq().resolve(_.xq).isMiniplayerActive()};
_.zn=function(W,O){W.playlistManager.setAutoplayRenderer(O.autoplayRenderer||null);W.playlistManager.setPlaylistData(O.panel||null);O.playerData&&W.playlistManager.setPlayerPlaybackControlData(O.playerData)};var OmT="#";var asN={},mT7={},YAS={},EYS={},w$w={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:(asN.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",asN),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:(mT7.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",mT7),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:(YAS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",YAS),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:(EYS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",EYS),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 zIP=[{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:w$w},{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:w$w}}];var v_i;_.ho=[[["eGpraW5kI20xMTl5cG9ubGM=","YWx1ZSNvZnV5YWdnbmRmaHZ2"],"VEFSVCM1MmU2M3ZuaTE5b2ZBRF9QTEFDRU1FTlRfS0lORF9T"]];
v_i=[[["I2Q4dGs2ampuNW1sYXByaW1hcnk=",null],[null,["czd5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciM5OTA1eHpjdTU2","Y3B2cG1zdHlsZS1zY29wZSNkbmxiMGJ4"]],["MnVqcmFtYXN0aGVhZC1hZCNieTlmZXI1",["ZGVyZXIjcTlnbHM4YnN0em5zeXRkLXJpY2gtZ3JpZC1yZW4="]],[null,["ZGVyZXIjdWQwNTJ0ZmxveWtieXRkLXJpY2gtZ3JpZC1yZW4=","cTAxMzdzdHlsZS1zY29wZSN1dmw5ODM1"]],[null,["ZXIjNTRzZW9rYmc1MTdmeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","cGw4aGFzdHlsZS1zY29wZSNsb3l3ZHB2"]],[null,["ZW5kZXJlciNqdGk1cHRoMHdzZ2t5dGQtYWQtc2xvdC1y"]]],[["NWg2MGFyYXBsYXllci1hZHMjamw5dzQ=",
null]]];_.dE=["YmFsQ2FsbGJhY2tzI2N5emE0cHhzdDdpc2dsbw==","dGVjdGVkI3ZmZWUyenN5ZDZ2ZW9uQWJub3JtYWxpdHlEZQ==","cWltdHlxbDUyeDNvbkFkU2tpcCNt","cmVzcG9uc2UjeHp5OXYyOGs0d2NjcmF3X3BsYXllcl8=","Izc1YWQ2MXB0YmpibmFkU2xvdHM="];_.qg="YmFsQ2FsbGJhY2tzI2N5emE0cHhzdDdpc2dsbw== dGVjdGVkI3ZmZWUyenN5ZDZ2ZW9uQWJub3JtYWxpdHlEZQ== cWltdHlxbDUyeDNvbkFkU2tpcCNt cmVzcG9uc2UjeHp5OXYyOGs0d2NjcmF3X3BsYXllcl8= MGZwNXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNxM2didWI3Ng== bDJ4ajh0MWQ0NmRhYl9zYV9lZiNh Izc1YWQ2MXB0YmpibmFkU2xvdHM=".split(" ");var nK;nK=function(W,O,b){this.nUv=W;this.isAsync=O;this.a8I=b};
_.uXX=[new nK("b.f_",!1,0),new nK("j.s_",!1,2),new nK("r.s_",!1,4),new nK("e.h_",!1,6),new nK("i.s_",!0,8),new nK("s.t_",!1,10),new nK("p.h_",!1,12),new nK("s.i_",!1,14),new nK("f.i_",!1,16),new nK("a.b_",!1,18),new nK("a.o_",!1),new nK("g.o_",!1,22),new nK("p.i_",!1,24),new nK("p.m_",!1),new nK("n.k_",!0,20),new nK("i.f_",!1),new nK("a.s_",!0),new nK("m.c_",!1),new nK("n.h_",!1,26),new nK("o.p_",!1),new nK("m.p_",!0,28),new nK("o.a_",!1),new nK("d.p_",!1),new nK("e.i_",!1)].reduce(function(W,O){W[O.nUv]=
O;return W},{});var Azn=function(){};
Azn.prototype.flush=function(W,O){W=W===void 0?[]:W;O=O===void 0?!1:O;if(_.e("enable_client_streamz_web")){W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=QN7(b.value),this.rootSpec&&_.jL(b,2,this.rootSpec),b={serializedIncrementBatch:_.WM(b.JSC$7611_serializeBinary())},_.BZ("streamzIncremented",b,{sendIsolatedPayload:O})}};
var TB1=function(){};
_.R(TB1,Azn);var X$$=function(W){var O=new Pk7;var b=new UZ7;b=_.aG(b,1,"botguard");W=_.aG(b,2,W);this.rootSpec=_.Tb(O,1,p9f,W)};
_.R(X$$,Azn);var j4,UTv=new Map;var kzX,dh2,w0X,ZmO,mhe,RI8,BBE,PHh;kzX=2;dh2=2;w0X=2;ZmO=2;mhe=2;RI8=2;BBE=2;PHh=new KIS;var eoS,PdN,p$5;eoS=function(){this.ongoingFlowNonces=new Map};
_.au=function(){PdN||(PdN=new eoS);return PdN};
_.Zr=function(W,O,b){return{eventType:{flowEventNamespace:W,flowEventType:O},metadata:b,statusCode:void 0,csn:void 0,can:void 0}};
_.ceX=function(W,O){var b=_.au(),T=p$5(b,O,!0);_.Iu(b,W,O,T)};
_.Iu=function(W,O,b,T){W={flowNonce:T||p$5(W,b),flowType:b,flowEventType:O.eventType};O.metadata&&(W.flowMetadata=O.metadata);O.statusCode!==void 0&&(W.flowEventStatus=O.statusCode);O.csn&&(W.csn=O.csn);O.can&&(W.can=O.can);_.BZ("flowEvent",W,void 0)};
p$5=function(W,O,b){b=b===void 0?!1:b;var T=W.ongoingFlowNonces.get(O);if(!T||b)T=Q3(16),W.ongoingFlowNonces.set(O,T);return T};_.Ron=new RvN;var O61={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING_JOURNEY_WATCH:"learning_journey_watch"};var fK=function(W,O,b,T,L,h,Z){b=b===void 0?!1:b;T=T===void 0?!1:T;h=h===void 0?_.xP():h;this.hasRun=!1;this.nPa=W;this.fUS=O;this.rmf=b;this.fromHistory=T;this.previousVideoId=L;this.d7J=h;this.tempData=Z;this.o68=new _.va$};
_.R(fK,MN);fK.prototype.validate=function(W){return!(!W.data.playerResponse||W.data.page!=="watch"&&W.data.page!=="learning_journey_watch"&&W.data.page!=="shorts"||this.hasRun)};
fK.prototype.handle=function(W){var O=this,b=_.P(W.endpoint,_.V3),T=_.P(W.endpoint,_.l8);if(_.e("kevlar_continue_playback_without_player_response")&&(b==null?0:b.videoId)&&this.previousVideoId&&(b==null?void 0:b.videoId)===this.previousVideoId&&(b==null?0:b.continuePlayback)&&!this.fromHistory)this.nPa.resolve();else{var L={};b?L.watch_endpoint=b:T&&(L.watch_endpoint=T,T.endTimeSeconds&&(L.end=T.endTimeSeconds));W.data.page==="watch"?(W.data.filler||this.rmf||(_.ra("cfg"),_.$G.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(L,KKH(this,W.endpoint)),_.e("enable_masthead_quartile_ping_fix")&&Object.assign(L,vYq(this)),b=!_.e("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(L,b),W.data.forceExternalPlaylist&&(L.external_list=!0)):W.data.page==="shorts"?_.$G.getInstance().triggerAction("yt-start-loading-shorts"):W.data.page==="learning_journey_watch"&&_.$G.getInstance().triggerAction("yt-start-loading-learning-journey");if(b=this.fUS()){try{b.loadVideoWithPlayerResponse(W.data.playerResponse,
L),b.getPlayerPromise().then(this.nPa.resolve)}catch(h){_.Dt(h),this.nPa.resolve()}this.hasRun=!0;b.getPlayerPromise().then(function(h){h.addEventListener("onAbnormalityDetected",function(){var Z=W.data.playerResponse,a=h.getVideoData().cpn;BBE=0;_.lsH=a;if(a=Muq(Z))O.o68.increment("IN_PLAYER"),_.mm(5),_.e("ab_st_vid_ks")?h.pauseVideo(!0):h.stopVideo(),Z.playabilityStatus=Object.assign({},Z.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:a}}),Z.videoDetails=void 0,_.$G.getInstance().triggerOptionalAction("yt-updated-playability-status",
Z.playabilityStatus)})})}else _.z5(Error("Jf"))}};
var KKH=function(W,O){var b=_.P(O,_.V3);if(O&&b&&b.playlistId&&b.videoId&&(W=W.d7J,W.queueProxy?(W=W.queueProxy,b=W.listId===b.playlistId?W.attributionData.get(b.videoId):void 0):b=void 0,b))return{queue_info:b}},vYq=function(W){var O;
if((O=W.tempData)==null?0:O.adpings)return{adpings:W.tempData.adpings}};var Gn=function(W,O,b){this.hasRun=!1;this.i5P=W;this.tW8=O;this.z2f=b};
_.R(Gn,MN);Gn.prototype.validate=function(W){return!!_.PQ.getValueByKeys.apply(null,[W.data].concat(_.PG(J5w)))};
Gn.prototype.handle=function(W){var O=this;this.i5P.promise.then(function(){var b=W.data;var T=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(Hhv))),L=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(MTf))),h=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG($51)));var Z=(Z=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(tTv))))?{videoId:Z.videoId,thumbnail:Z.thumbnail,title:Z.title?_.VV(Z.title):void 0,shortBylineText:Z.author?_.VV(Z.author):void 0}:void 0;var a=void 0;_.e("web_get_playlist_id_from_current_endpoint_ks")||
(a=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(VT7))));var m=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(u4w))),w=_.PQ.getValueByKeys.apply(null,[b].concat(_.PG(Nn9))),A=!!m||!!w&&!!w.results&&w.results.length>0,X=0;L&&L.currentIndex&&L.localCurrentIndex&&(X=L.currentIndex-L.localCurrentIndex);L&&L.playlistId&&(a=L.playlistId);b={rawResponse:b,autoplayRenderer:T,hasRelatedVideoData:A,playingVideo:Z,playingVideoId:h,playlistPanelRenderer:L,playlistId:a,playlistIndex:L&&L.currentIndex,relatedVideoArgs:m,
endScreenRenderer:w,playlistIndexOffset:X};a:{T=O.z2f;L=O.tW8;T.response=b;if(Is1(b))T.downloadPlaylistProxy&&T.downloadPlaylistProxy.getPlaylistId()===Z1q(b)||(T.downloadPlaylistProxy=new D55(Z1q(b),T.setPlaylistData.bind(T),T.isPlayingOfflineVideo.bind(T))),T.responsePlaylistData=T.downloadPlaylistProxy.getPlaylistData(),T.listId=Z1q(b),T.index=0;else if(b.playlistPanelRenderer&&b.playlistId&&b.autoplayRenderer)b.playlistId.startsWith("TLPQ")?T.queueProxy?T.listId===b.playlistId?(T.index=b.playlistIndex,
T.responsePlaylistData=b.playlistPanelRenderer,T.queueProxy.JSC$10750_setCurrentIndex(T.index)):b.playingVideoId&&T.index!==void 0&&L.clientParams.autoSaveToQueue&&(T.index+=1,T.queueProxy.JSC$10750_setCurrentIndex(T.index),T.queueProxy.addVideos([b.playingVideoId],{},T.index)):(T.queueProxy=new _.gk(T.JSC$10804_playlistNetworkManager,b.playlistId,T.setPlaylistData.bind(T),T.clearQueue.bind(T),_.cpE(b.playlistPanelRenderer),T.storage),T.responsePlaylistData=b.playlistPanelRenderer,T.listId=b.playlistId,
T.index=b.playlistIndex):(T.index=b.playlistIndex,T.listId!==b.playlistId&&T.clearQueue(),T.responsePlaylistData=b.playlistPanelRenderer,T.listId=b.playlistId,T.playlistProxy=new GlH(T.JSC$10804_playlistNetworkManager,b.playlistId,T.setPlaylistData.bind(T),_.cpE(b.playlistPanelRenderer)));else if(!T.queueProxy)T.responsePlaylistData=void 0;else if(b.playingVideoId&&L.clientParams.autoSaveToQueue){if(T.index===void 0){_.Dt(Error("Ff"));T.clearQueue();break a}T.queueProxy.videoIds.includes(b.playingVideoId)||
(T.index+=1,T.queueProxy.JSC$10750_setCurrentIndex(T.index),T.queueProxy.addVideos([b.playingVideoId],{},T.index))}_.zn(T,_.CK(T,T.response.autoplayRenderer))}})};var gYN=function(W,O){O=O===void 0?_.xP():O;Sn.call(this);this.hm.push(new Gn(this.kk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},O));this.hm.push(new fK(this.kk,W,!1,!1));_.e("web_response_commands_chunk_processor")&&this.hm.push(new ZC)};
_.R(gYN,Sn);gYN.prototype.processChunk=function(W){W&&W.data.player===void 0&&this.kk.resolve();Sn.prototype.processChunk.call(this,W)};var HH=function(W,O){W=W===void 0?{layer:0}:W;this.hasRun=!1;this.createScreenConfig=W;this.oyS=O};
_.R(HH,MN);HH.prototype.validate=function(W){return!(this.hasRun||!W.endpoint)};
HH.prototype.handle=function(W){var O=_.A4(),b,T,L=(T=_.P((b=W.endpoint)==null?void 0:b.commandMetadata,_.F9))==null?void 0:T.rootVe;this.oyS&&L?_.bh(O,L,this.oyS,this.createScreenConfig):XP9(O,W.endpoint,this.createScreenConfig);this.hasRun=!0};var tp=function(W,O){this.hasRun=!1;this.h2s=W;this.previousVideoId=O};
_.R(tp,MN);tp.prototype.validate=function(W){return _.e("kevlar_continue_playback_without_player_response")&&(W=_.P(W.endpoint,_.V3),(W==null?0:W.videoId)&&this.previousVideoId&&(W==null?void 0:W.videoId)===this.previousVideoId&&(W==null?0:W.continuePlayback))?!1:this.h2s.eYv===0};
tp.prototype.handle=function(W){_.$G.getInstance().triggerAction("yt-stop-old-player",W.data,!0)};var oYL=function(W){W=W===void 0?{layer:0}:W;Sn.call(this);this.hm.push(new tp(this));this.hm.push(new HH(W));this.hm.push(new hp(W))};
_.R(oYL,Sn);var QCz=function(){this.hasRun=this.hasRun=!1};
_.R(QCz,MN);QCz.prototype.validate=function(W){return!this.hasRun&&!(!W.data.csn||!W.data.rootVe)};
QCz.prototype.handle=function(W){this.hasRun=!0;_.Du(W.data.csn,W.data.rootVe,3)};var kOz=function(){MN.apply(this,arguments)};
_.R(kOz,MN);kOz.prototype.validate=function(W){return!!W.data.preconnect};
kOz.prototype.handle=function(W){_.Bg("bc");W=_.S(W.data.preconnect);for(var O=W.next();!O.done;O=W.next())O=O.value,(new Image).src=O};var sCU=function(W,O,b){b=b===void 0?{layer:0}:b;Sn.call(this);this.hm.push(new fK(this.kk,W));this.hm.push(new HH(b));this.hm.push(new hp(b))};
_.R(sCU,Sn);var BTH=function(W,O,b,T,L){b=b===void 0?{layer:0}:b;T=T===void 0?_.xP():T;Sn.call(this);var h=!!O&&!!O.clientParams&&!!O.clientParams.miniplayer;h&&this.hm.push(new QCz);this.hm.push(new Gn(this.kk,O,T));this.hm.push(new kOz);var Z,a;this.hm.push(new fK(this.kk,W,h,!((Z=O.clientParams)==null||!Z.fromHistory),(a=O.clientParams)==null?void 0:a.previousVideoId,T,O.tempData));var m;this.hm.push(new tp(this,(m=O.clientParams)==null?void 0:m.previousVideoId));var w;(w=O.clientParams)!=null&&w.fromHistory||
(b.layer||(b=Object.assign({},b,{layer:h?3:0})),this.hm.push(new HH(b,L)),this.hm.push(new hp(b)));_.e("web_response_commands_chunk_processor")&&this.hm.push(new ZC)};
_.R(BTH,Sn);var $P,xT1;$P={};
_.rzv=($P["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$P["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$P["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},$P["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$P["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$P["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},$P["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},$P);_.VR=new _.z7("yt-edu");_.DT$=function(){this.JSC$10906_eduDisplayedThisLoad_={}};
xT1=function(W){var O=_.DT$.getInstance();var b=_.Lu("kevlar_tooltip_impression_cap");O=b&&parseInt(_.VR.get(W+"-impression")||0,10)>=b||_.VR.get(W+"-dismissed")?!1:(b=_.rzv[W])&&!O.JSC$10906_eduDisplayedThisLoad_[b.setKey||W]&&(b.titleText&&_.EO(b.titleText)||b.bodyText&&_.EO(b.bodyText))?!0:!1;if(!O)return null;O=_.rzv[W];if(!O)return null;b=O.bodyText?_.EO(O.bodyText):void 0;var T=O.titleText?_.EO(O.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:O.position,popup:{bubbleHintRenderer:{text:T?
_.VV(T):void 0,detailsText:b?_.VV(b):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.VV(_.EO("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:W}}]}}}}}}}},{eduImpressionAction:{key:W}}]};
_.Fv(_.DT$);var FgX=!1;for(var zo5="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Cdq=[],Ng=6;Ng>=1;Ng--)Cdq.push({columnCount:Ng,query:Ng==1?0:Ng*2*107-4+32,className:"grid-"+Ng+"-columns",width:Ng*2*107+"px"});_.nY7=function(W){this.actionRouter_=W=W===void 0?_.$G.getInstance():W;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.qAH(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.qAH=function(W){var O=W.miniGuideVisible_?72:0,b=W.documentWidth_-(W.guidePersistentAndVisible_?240:O);return Cdq.find(function(T){return b>T.query})};
_.Fv(_.nY7);var fsv=function(){var W=this;this.JSC$10918_keyboardInUse=!1;document.addEventListener("keydown",function(){W.onKeydown()});
document.addEventListener("mousedown",function(){W.JSC$10918_keyboardInUse=!1})},GOw;
fsv.prototype.isKeyBoardInUse=function(){return this.JSC$10918_keyboardInUse};
fsv.prototype.onKeydown=function(){this.JSC$10918_keyboardInUse=!0};var H17,Jp;_.Mg=new _.z7("yt-mentions");_.uh=function(){};
H17=function(W,O){return Jp(O,"drag-to-reorder-edu-displayed")};
Jp=function(W,O,b,T,L,h){b=b===void 0?"OPEN_POPUP_POSITION_TOP":b;if(O){if(_.Mg.get(O))return;_.Mg.set(O,!0,T)}if(L&&h!==void 0){O=Number(_.Mg.get(L)||0);if(O>=h)return;_.Mg.set(L,O+1)}return[{openPopupAction:{popupType:"HINT",position:b,popup:{bubbleHintRenderer:{detailsText:W,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Fv(_.uh);var tUU,$Tw,VUn;tUU=function(W,O,b,T){this.JSC$10928_taskManager_=W;this.onFulfilled_=typeof O==="function"?O:null;this.onRejected_=typeof b==="function"?b:null;this.JSC$10928_context_=T};
$Tw=function(W,O){W.onFulfilled_&&_.Xg(W.JSC$10928_taskManager_,function(){W.onFulfilled_.call(W.JSC$10928_context_,O)})};
VUn=function(W,O){W.onRejected_&&_.Xg(W.JSC$10928_taskManager_,function(){W.onRejected_.call(W.JSC$10928_context_,O)})};
_.cH=function(W){this.JSC$10931_taskManager_=W;this.callbacks_=[]};
_.cH.prototype.then=function(W,O,b){this.callbacks_.push(new tUU(this.JSC$10931_taskManager_,W,O,b));return this};
_.cH.prototype.onSuccess=function(W){this.callbacks_.forEach(function(O){$Tw(O,W)})};
_.cH.prototype.onFailure=function(W){this.callbacks_.forEach(function(O){VUn(O,W)})};
_.cH.prototype.cancel=function(){this.callbacks_.length=0};
rAw(_.cH);_.b62=null;_.Qa=new _.MV("ACTIVITY_TOKEN");var FB=function(W,O){this.serviceId=new s81(W,O)};
FB.prototype.toString=function(){return this.serviceId.toString()};var NTH=function(){this.internalMap={}};
_.d=NTH.prototype;_.d.contains=function(W){return Object.prototype.hasOwnProperty.call(this.internalMap,W)};
_.d.get=function(W){if(this.contains(W))return this.internalMap[W]};
_.d.set=function(W,O){this.internalMap[W]=O};
_.d.getKeys=function(){return Object.keys(this.internalMap)};
_.d.remove=function(W){delete this.internalMap[W]};var yR=function(){this.mappings=new NTH;this.errorCallbacks=new Set};
yR.prototype.getModuleId=function(W){return W.serviceId.getModuleId()};
yR.prototype.get=function(W){var O=this.mappings.get(W.toString());return MUz(this,O,W)};
yR.prototype.getMultipleAsync=function(){var W=_.PD.apply(0,arguments),O=this,b=W.map(function(m){return O.getModuleId(m)}),T=W.map(function(m){return O.mappings.get(m.toString())}).filter(function(m){return m});
if(T.length===W.length)return _.ZM(T.map(function(m,w){return MUz(O,m,W[w])}));
var L=B5().loadMultiple(b);T=_.XG(b.map(function(m){return L[m]}));
var h=document.hidden,Z=-1,a=_.Lu("get_async_timeout_ms",-1);a>-1&&(Z=setTimeout(function(){_.z5(new _.pu("Module timeout.",b,h,document.hidden))},a));
return _.UR(T.then(function(){return W.map(function(m){return MUz(O,O.mappings.get(m.toString()),m)})}).thenCatch(function(m){for(var w=_.S(O.errorCallbacks),A=w.next();!A.done;A=w.next())A=A.value,A(m);
throw m;}),function(){clearTimeout(Z)})};
yR.prototype.registerService=function(W,O){this.mappings.set(W.toString(),{type:"mapping",value:O});return W};
var MUz=function(W,O,b){switch(O.type){case "mapping":return O.value;case "factory":return O=O.value(),W.mappings.set(b.toString(),{type:"mapping",value:O}),O;default:return _.SB(O)}};
yR.prototype.onLoadError=function(W){var O=this;this.errorCallbacks.add(W);return function(){O.errorCallbacks.delete(W)}};
_.W0=new yR;var hi8=/^[a-zA-Z0-9_\-]{11}$/;var S6Q=_.Yl(function(){var W,O;return(O=(W=window).matchMedia)==null?void 0:O.call(W,"(prefers-reduced-motion: reduce)").matches});var uoN=_.Yl(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 W=_.GT("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");W||(W=_.AV("VIDEO"),_.c3("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
W));return!!(W&&W.canPlayType&&W.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var EdX=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var OZ;OZ=function(){this.tokenJars={};if(this.cookiesEnabled=_.lq()){var W=_.Xq.get("CONSISTENCY",void 0);W&&Jz7(this,{encryptedTokenJarContents:W})}};
_.AWO=function(){OZ.instance||(OZ.instance=new OZ);return OZ.instance};
OZ.prototype.handleResponse=function(W,O){if(!O)throw Error("Pf");var b,T;O=((b=O.innerTubeRequest.context)==null?void 0:(T=b.request)==null?void 0:T.consistencyTokenJars)||[];var L;(W=(L=W.responseContext)==null?void 0:L.consistencyTokenJar)&&this.replace(O,W)};
OZ.prototype.replace=function(W,O){W=_.S(W);for(var b=W.next();!b.done;b=W.next())delete this.tokenJars[b.value.encryptedTokenJarContents];Jz7(this,O)};
var Jz7=function(W,O){if(O.encryptedTokenJarContents&&(W.tokenJars[O.encryptedTokenJarContents]=O,typeof O.expirationSeconds==="string")){var b=Number(O.expirationSeconds);setTimeout(function(){delete W.tokenJars[O.encryptedTokenJarContents]},b*1E3);
W.cookiesEnabled&&_.UT("CONSISTENCY",O.encryptedTokenJarContents,b,void 0,!0)}};var czf,iH;czf=window.location.hostname.split(".").slice(-2).join(".");_.ou=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var W=_.Cv("LOCATION_PLAYABILITY_TOKEN");_.Cv("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=FK7(this))&&(W=this.localStorage.get("yt-location-playability-token"));W&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0)};
_.ou.getInstance=function(){iH=_.GT("yt.clientLocationService.instance");iH||(iH=new _.ou,_.c3("yt.clientLocationService.instance",iH));return iH};
_.ou.prototype.setLocationOnInnerTubeContext=function(W){W.client||(W.client={});if(this.mostRecentPosition)W.client.locationInfo||(W.client.locationInfo={}),W.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),W.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),W.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),W.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)W.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.ou.prototype.handleResponse=function(W){var O;W=(O=W.responseContext)==null?void 0:O.locationPlayabilityToken;W!==void 0&&(this.locationPlayabilityToken=W,this.mostRecentPosition=void 0,_.Cv("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=FK7(this))&&this.localStorage.set("yt-location-playability-token",W,15552E3):_.UT("YT_CL",JSON.stringify({loctok:W}),15552E3,czf,!0))};
var FK7=function(W){return W.localStorage===void 0?new _.z7("yt-client-location"):W.localStorage};
_.ou.prototype.clearLocationPlayabilityToken=function(W){W==="TVHTML5"?(this.localStorage=FK7(this))&&this.localStorage.remove("yt-location-playability-token"):_.js2("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.ou.prototype.getCurrentPositionFromGeolocation=function(){var W=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Qf"));var O=!1,b=1E4;_.Cv("INNERTUBE_CLIENT_NAME")==="MWEB"&&(O=!0,b=15E3);return new Promise(function(T,L){navigator.geolocation.getCurrentPosition(function(h){W.mostRecentPosition=h;T(h)},function(h){L(h)},{enableHighAccuracy:O,
maximumAge:0,timeout:b})})};
_.ou.prototype.createUnpluggedLocationInfo=function(W){var O={};W=W.coords;if(W==null?0:W.latitude)O.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)O.longitudeE7=Math.floor(W.longitude*1E7);if(W==null?0:W.accuracy)O.locationRadiusMeters=Math.round(W.accuracy);return O};
_.ou.prototype.createLocationInfo=function(W){var O={};W=W.coords;if(W==null?0:W.latitude)O.latitudeE7=Math.floor(W.latitude*1E7);if(W==null?0:W.longitude)O.longitudeE7=Math.floor(W.longitude*1E7);return O};var yzw=function(){};
_.d=yzw.prototype;
_.d.JSC$10998_getRequest=function(W,O,b){O=O===void 0?{}:O;b=b===void 0?Dm7:b;var T=O;if(this.isNavigationCommand()){var L,h=(L=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:L.url;T=_.XPX(W.clickTrackingParams,!0,!1,h,this.JSC$10998_getClientScreen(T))}else T=_.XPX(W.clickTrackingParams,!1,this.includeCsn);T={context:T};if(L=this.getExtension(W))return this.JSC$10998_buildRequest(T,L,O),L=this.getApiUrl(W),h=Object.assign({},{command:W},this.getRequestConfig(W,O)),T={input:L,requestShell:tC(L),
innerTubeRequest:T,config:h},T.config.authStrategy?T.config.authStrategy.identity=b:T.config.authStrategy={identity:b},(W=this.JSC$10998_getRequestKey(W,O))&&!T.config.requestKey&&(T.config.requestKey=W),T;W=new _.pu("Error: Failed to create Request from Command.",W);_.Dt(W)};
_.d.getApiUrl=function(W){var O=_.JH(this.getApiPaths(W)),b;(W=(b=_.P(W.commandMetadata,_.F9))==null?void 0:b.apiUrl)&&(O=W);return VoX($nX(O))};
_.d.isNavigationCommand=function(){return!1};
_.d.JSC$10998_getClientScreen=function(){};
_.d.JSC$10998_getRequestKey=function(){};
_.d.getRequestConfig=function(){};
_.Jq.Object.defineProperties(yzw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var bH=function(){};
_.R(bH,yzw);bH.prototype.JSC$11005_getStoreKey=function(){};
bH.prototype.JSC$10998_getRequestKey=function(W,O){O=O===void 0?{}:O;return this.JSC$11005_getStoreKey(W,O)};var OAq;_.ju=function(W,O,b){var T=b&&b>0?b:0;b=T?Date.now()+T*1E3:0;if((T=T?(0,_.WhN)():OAq())&&window.JSON){typeof O!=="string"&&(O=JSON.stringify(O,void 0));try{T.set(W,O,b)}catch(L){T.remove(W)}}};
_.Tz=function(W){var O=OAq(),b=(0,_.WhN)();if(!O&&!b||!window.JSON)return null;try{var T=O.get(W)}catch(L){}if(typeof T!=="string")try{T=b.get(W)}catch(L){}if(typeof T!=="string")return null;try{T=JSON.parse(T,void 0)}catch(L){}return T};
_.Lm=function(W){try{var O=OAq(),b=(0,_.WhN)();O&&O.remove(W);b&&b.remove(W)}catch(T){}};
_.WhN=_.Yl(function(){try{var W=new Iuq;var O=W.isAvailable()?W:null}catch(b){return null}return O?new _.TD(O):null});
OAq=_.Yl(function(){var W=new auQ;return W.isAvailable()?new _.TD(W):null});var hs=new _.MV("ENTITY_STATE_TOKEN"),dB=new _.MV("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var iAv=XMLHttpRequest.prototype.fetch,bA7=iAv&&iAv.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!uq?!0:!1;var he=function(W){this.JSC$11010_storeWithEntities=W};
_.R(he,bH);_.d=he.prototype;_.d.getApiPaths=function(){return eIH};
_.d.getExtension=function(W){return _.P(W,_.V3)||_.P(W,_.l8)||_.P(W,pTU)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$11005_getStoreKey=function(W){if((_.e("kevlar_cache_on_ttl_player")||_.e("mweb_enable_shorts_innertube_player_prefetch")||_.e("mweb_use_new_history_manager")||_.e("web_shorts_prefetch_service_enabled"))&&(W=this.getExtension(W))&&W.videoId){var O={videoId:W.videoId};W.playlistId&&(O.playlistId=W.playlistId);W.playerParams&&(O.params=W.playerParams);return _.$J("player",O)}};
_.d.JSC$10998_getClientScreen=function(W){var O;return((O=W.contentPlaybackContext)==null?void 0:O.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$10998_buildRequest=function(W,O,b){if(_.e("enable_interstitial_entity_check")){var T=this.JSC$11010_storeWithEntities;if(O.videoId)for(var L=_.S(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),h=L.next();!h.done;h=L.next()){h=h.value;var Z;var a=void 0,m=void 0,w=O.videoId,A=h;(Z=T)?(w=_.Z5(w+A,"interstitialInteractionStateEntity"),Z=(a=(m=_.IJ(Z.getState().entities,"interstitialInteractionStateEntity",w))==null?void 0:m.primaryButtonClicked)!=null?a:!1):Z=!1;if(Z)switch(h){case "CONTENT_CHECK_REQUIRED":O.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":O.racyCheckOk=!0}}}O.videoId&&(W.videoId=O.videoId);O.playlistId&&(W.playlistId=O.playlistId);O.index!==void 0&&(W.playlistIndex=O.index+1);O.playerParams&&(W.params=O.playerParams);"startTimeSeconds"in O&&O.startTimeSeconds&&(_.e("enable_player_request_builder_start_time_floor")?W.startTimeSecs=Math.floor(O.startTimeSeconds):W.startTimeSecs=O.startTimeSeconds);b.contentPlaybackContext&&(W.playbackContext={contentPlaybackContext:b.contentPlaybackContext});b.prefetchPlaybackContext&&
(W.playbackContext=Object.assign({},W.playbackContext,{prefetchPlaybackContext:b.prefetchPlaybackContext}),W.context.request||(W.context.request={}),W.context.request.isPrefetch=!0);W.playbackContext||(W.playbackContext={});T=uoN();W.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!T,supportXhr:bA7};b.overrideMutedAtStart&&(W.overrideMutedAtStart=b.overrideMutedAtStart);W.racyCheckOk=!!O.racyCheckOk;W.contentCheckOk=!!O.contentCheckOk;!_.e("captions_prefs_killswitch")&&(b=(b=_.Tz("yt-player-caption-language-preferences"))?
b:[],b==null?0:b.length)&&(W.captionParams={viewerSelectedCaptionLangs:b})};
_.d.getRequestConfig=function(W){W=this.JSC$11005_getStoreKey(W);var O;W&&(O={storeStrategy:{storeKey:W}});_.e("web_log_player_watch_next_ticks")&&(O=O||{},O.requestTick="ps_s",O.responseTick="ps_r");return O};
he[NV]=[hs];var Su=function(){};
_.R(Su,bH);_.d=Su.prototype;_.d.getApiPaths=function(){return Fgw};
_.d.getExtension=function(W){return _.P(W,_.V3)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$11005_getStoreKey=function(W){if((W=this.getExtension(W))&&W.videoId){var O={videoId:W.videoId};W.playlistId&&(O.playlistId=W.playlistId);W.index&&(O.index=W.index);W.params&&(O.params=W.params);return _.$J("next",O)}};
_.d.JSC$10998_getClientScreen=function(W){var O;return((O=W.contentPlaybackContext)==null?void 0:O.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.d.JSC$10998_buildRequest=function(W,O,b){O.videoId&&(W.videoId=O.videoId);O.playlistId&&(W.playlistId=O.playlistId);O.params&&(W.params=O.params);O.index!==void 0&&(W.playlistIndex=O.index);W.racyCheckOk=!(!b.racyCheckOk&&!O.racyCheckOk);W.contentCheckOk=!!O.contentCheckOk;b.contentPlaybackContext&&(W.autonavState=b.contentPlaybackContext.autonavState,W.playbackContext={vis:b.contentPlaybackContext.vis,lactMilliseconds:b.contentPlaybackContext.lactMilliseconds});b.prefetchPlaybackContext&&(W.context.request||
(W.context.request={}),W.context.request.isPrefetch=!0);_.e("captions_hats_killswitch")||(O=_.Xt().getFlag(65),O=O!=null?!O:!1,b=!!_.Tz("yt-player-sticky-caption"),W.captionsRequested=O&&b)};
_.d.getRequestConfig=function(W){W=this.JSC$11005_getStoreKey(W);var O;W&&(O={storeStrategy:{storeKey:W}});_.e("web_log_player_watch_next_ticks")&&(O=O||{},O.requestTick="wn_s",O.responseTick="wn_r");return O};
var Zz=function(){};
_.R(Zz,bH);Zz.prototype.getApiPaths=function(){return Fgw};
Zz.prototype.getExtension=function(W){return _.P(W,_.Cd)};
Zz.prototype.JSC$10998_buildRequest=function(W,O){O.token&&(W.continuation=O.token)};var IL=function(W,O){this.playerRequestBuilder=W;this.watchNextRequestBuilder=O};
_.R(IL,bH);IL.prototype.getApiPaths=function(){return ZmU};
IL.prototype.getExtension=function(W){return _.P(W,_.V3)};
IL.prototype.isNavigationCommand=function(){return!0};
IL.prototype.JSC$10998_buildRequest=function(W,O,b){W.playerRequest={};this.playerRequestBuilder.JSC$10998_buildRequest(W.playerRequest,O,b);_.e("web_streaming_watch")&&(W.watchNextRequest={},this.watchNextRequestBuilder.JSC$10998_buildRequest(W.watchNextRequest,O,b))};
IL[NV]=[he,Su];var jb$;_.aL=new _.MV("SHORTS_CONTROLLER_TOKEN");jb$=new _.MV("SHORTS_STATE_STORE_TOKEN");var mg=function(W,O){var b=_.PD.apply(2,arguments);W=W===void 0?0:W;_.pu.call(this,O,b);this.errorType=W;Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(mg,_.pu);var To9,LhH,hYN,tIE,qc,mYe,aH5,IH9,Xd$,EuH,YSw;To9=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(W){return W+"="}).join("|"));
LhH=RegExp(".*\\?.*playnext=1.*");_.Y_=function(W,O,b,T){this.watchEndpointMap=W;this.reelWatchEndpointMap=O;this.innerTubeTransportService=b;this.fetchPbj=T};
hYN=function(W,O,b){var T=_.iq().resolve(_.OT(dow));_.Y_.instance=new _.Y_(W,O,b,T)};
_.SSU=function(W,O){var b=_.Lu("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;var T;if((T=_.P(O.commandMetadata,_.F9))==null||!T.rootVe)return b&&_.z5(Error("Sf")),!1;var L;T=(L=_.P(O.commandMetadata,_.F9))==null?void 0:L.url;if(!T)return b&&_.z5(Error("Tf")),!1;if(LhH.test(T))return!0;if(To9.test(T))return b&&_.z5(Error("Uf`"+T)),!1;if(_.P(O,_.V3)){if(!(W.watchEndpointMap.watchNext&&W.watchEndpointMap.player||_.e("kevlar_fetch_initial_data_op_watch_client")))return b&&_.z5(Error("Lf")),!1;
W=_.Lu("web_pbj_log_warning_rate",0);W=W>0&&Math.random()<W;_.P(O,_.V3)?LxP(O)?O=!0:(W&&_.z5(Error("Mf")),O=!1):(W&&_.z5(Error("Lf")),O=!1);return O}if(_.P(O,_.l8))return dl2(O);if(_.P(O,_.Qg))return!0;W=_.Hs(W.innerTubeTransportService,O);!W&&b&&_.Dt(Error("Vf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(O)});return W};
tIE=function(W,O,b,T,L,h){O={url:O};if(b==null?0:b.itct)O.parentTrackingParams=b.itct;var Z=_.JH(kz9);return _.QR(W.innerTubeTransportService,O,Z).then(function(a){(a=a.endpoint)||(a=_.aT);(b==null?0:b.itct)&&a&&!a.trackingParams&&(a.trackingParams=b.itct);var m=XE(a);return qc(W,a,b,T,m,L,h)})};
qc=function(W,O,b,T,L,h,Z,a){a=a===void 0?{}:a;if(W.fetchPbj&&!_.SSU(W,O)&&!_.e("force_one_platform")){a=W.fetchPbj(O);var m=_.ZM(a.then(function(V){if(!V)throw Error("Wf");Z(m)||h(O,V);return V}));
return m}var w,A,X={rootVe:(w=_.P(O.commandMetadata,_.F9))==null?void 0:w.rootVe,url:(A=_.P(O.commandMetadata,_.F9))==null?void 0:A.url,endpoint:O,page:L};if(_.P(O,_.V3)){var l,p={contentPlaybackContext:_.p_(b,(l=_.P(O.commandMetadata,_.F9))==null?void 0:l.url,T)},K=_.$S();_.e("web_streaming_watch")&&window.TextDecoderStream?(a=ZAU(W.innerTubeTransportService,O,p,function(V){!X.response&&V.content&&(X.response=V.content);!X.playerResponse&&V.player&&(X.playerResponse=V.player);h(O,X)}),w=N9q(O),w.length&&
(X.preconnect=w,h(O,X)),IH9(a,K,X).catch(function(V){V instanceof mg&&V.errorType===2&&aH5(W,O,p,X,h,Z,K)})):aH5(W,O,p,X,h,Z,K);
return K.promise}if(_.P(O,_.l8)){var k;if(((k=_.P(O,_.l8))==null?void 0:k.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var r=_.$S();_.mo7(_.iq().resolve(_.aL),O).then(function(V){YSw(W,b,T,L,h,r,V)});
return r.promise}a=_.ZM();var q;w={contentPlaybackContext:_.p_(b,(q=_.P(O.commandMetadata,_.F9))==null?void 0:q.url,T)};(q=W.reelWatchEndpointMap.player)&&(q=q().JSC$10998_getRequest(O,w))&&(a=_.QR(W.innerTubeTransportService,q.innerTubeRequest,q.input,O.clickTrackingParams,q.config));q=_.ZM();(A=W.reelWatchEndpointMap.reelItemWatch)&&(A=A().JSC$10998_getRequest(O))&&(q=_.QR(W.innerTubeTransportService,A.innerTubeRequest,A.input,O.clickTrackingParams,A.config));A=_.ZM();(l=W.reelWatchEndpointMap.reelWatchSequence)&&
_.P(O,_.l8).sequenceParams&&(w=l().JSC$10998_getRequest(O,w))&&(A=_.QR(W.innerTubeTransportService,w.innerTubeRequest,w.input,O.clickTrackingParams,w.config));w=_.ZM(X);l=_.$S();EuH(O,w,a,q,A,h,Z,l);return l.promise}var f;if(_.P(O,i6O)&&((f=_.P(O.commandMetadata,_.F9))==null?0:f.url))return a=wPi(_.tV(vQ().location.href),_.tV(_.P(O.commandMetadata,_.F9).url)).toString(),tIE(W,a,b,T,h,function(){return!1});
if(_.P(O,_.Qg))return h(O,X),_.ZM(X);if(_.Hs(W.innerTubeTransportService,O)){a=Object.assign({},{tempData:b,disableCache:b.disableCache},a);var M=_.tP(W.innerTubeTransportService,O,a).then(function(V){X.response=V;Z(M)||h(O,X);return X});
return M}return _.ZM(X)};
_.AD7=function(W,O,b,T){if(_.P(O,_.V3)||_.P(O,_.l8)&&(_.e("mweb_enable_shorts_innertube_player_prefetch")||_.e("kevlar_enable_shorts_prefetch_in_sequence"))||_.P(O,pTU)&&_.e("web_enable_prefetching_videos_on_home")){var L,h={contentPlaybackContext:_.p_(b,(L=_.P(O.commandMetadata,_.F9))==null?void 0:L.url,T),prefetchPlaybackContext:IxT(b)},Z,a,m;if(((Z=_.P(O,_.V3))==null?void 0:(a=Z.watchEndpointSupportedPrefetchConfig)==null?void 0:(m=a.prefetchHintConfig)==null?void 0:m.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(b=
W.watchEndpointMap.watchNext)if(h=b().JSC$10998_getRequest(O,h))return Promise.resolve(_.QR(W.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(X){return X}))}else if(_.P(O,_.l8)&&_.e("web_prefetch_riw_for_next_video")){if(b=W.reelWatchEndpointMap.reelItemWatch)if((b=b().JSC$10998_getRequest(O,h))&&_.QR(W.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(X){return X}),b=W.reelWatchEndpointMap.player)if(h=b().JSC$10998_getRequest(O,
h))return Promise.resolve(_.QR(W.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(X){return X}))}else if(b=W.watchEndpointMap.player)if(h=b().JSC$10998_getRequest(O,h))return Promise.resolve(_.QR(W.innerTubeTransportService,h.innerTubeRequest,h.input,void 0,h.config).then(function(X){return X}))}else if(_.Hs(W.innerTubeTransportService,O)){var w={tempData:b},A=wdS(W.innerTubeTransportService,O);
return A?new Promise(function(X,l){var p,K;return _.I(function(k){if(k.nextAddress==1)return _.Y(k,A,2);if(k.nextAddress!=4)return p=k.yieldResult,p.JSC$11005_getStoreKey(O,w)?_.Y(k,_.tP(W.innerTubeTransportService,O,w),4):(l(new _.pu("Prefetching request builder with no store key.",O)),k.jumpTo(0));K=k.yieldResult;X(K);_.aD(k)})}):Promise.reject(new _.pu("Prefetching unregistered request builder.",O))}return Promise.reject(new _.pu("No request builder available to prefetch endpoint.",O))};
mYe=function(W,O){var b,T,L;if(_.P(O,_.V3)){var h=W.watchEndpointMap.watchNext;h&&(b=h());(W=W.watchEndpointMap.player)&&(T=W())}else if(_.P(O,_.l8))(h=W.reelWatchEndpointMap.reelItemWatch)&&(b=h()),(h=W.reelWatchEndpointMap.player)&&(T=h()),(W=W.reelWatchEndpointMap.reelWatchSequence)&&(L=W());else{a:{W=uhO(O,W.innerTubeTransportService.endpointMap);if(W!==void 0)if(typeof W.then==="function")_.Dt(new _.pu("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",O));else break a;
W=void 0}W&&(b=W)}var Z,a,m;return{content:(Z=b)==null?void 0:Z.JSC$11005_getStoreKey(O),player:(a=T)==null?void 0:a.JSC$11005_getStoreKey(O),reelSequence:(m=L)==null?void 0:m.JSC$11005_getStoreKey(O)}};
aH5=function(W,O,b,T,L,h,Z){var a=_.ZM(),m=W.watchEndpointMap.player;_.e("web_streaming_player")&&(m=Ph(IL));m&&(m=m().JSC$10998_getRequest(O,b))&&(a=_.QR(W.innerTubeTransportService,m.innerTubeRequest,m.input,O.clickTrackingParams,m.config));m=_.ZM();var w=W.watchEndpointMap.watchNext;w&&(b=w().JSC$10998_getRequest(O,b))&&(m=_.QR(W.innerTubeTransportService,b.innerTubeRequest,b.input,O.clickTrackingParams,b.config));W=_.ZM(T);Xd$(O,W,a,m,L,h,Z)};
IH9=function(W,O,b){return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W,2);O.resolve(b);_.aD(T)})};
Xd$=function(W,O,b,T,L,h,Z){var a,m,w,A,X;_.I(function(l){switch(l.nextAddress){case 1:return _.Y(l,O,2);case 2:a=l.yieldResult;if(h(Z.promise))return Z.resolve(a),l.return();L(W,a);m=N9q(W);if(!m.length){l.jumpTo(3);break}return _.Y(l,O,4);case 4:a.preconnect=m,L(W,a);case 3:return _.LI(l,5),_.Y(l,b,7);case 7:w=l.yieldResult;_.H3(l,6);break;case 5:return A=_.ID(l),Z.reject(A),l.return();case 6:if(w===void 0)return a.reload=!0,L(W,a),Z.resolve(a),l.return();if(h(Z.promise))return Z.resolve(a),l.return();
a.playerResponse=w;L(W,a);_.LI(l,8);return _.Y(l,T,10);case 10:X=l.yieldResult;_.H3(l,9);break;case 8:_.ID(l);case 9:if(X===void 0)return a.response={responseContext:{}},Z.resolve(a),l.return();if(h(Z.promise))return Z.resolve(a),l.return();a.response=X;L(W,a);Z.resolve(a);_.aD(l)}})};
EuH=function(W,O,b,T,L,h,Z,a){var m,w,A,X,l,p;_.I(function(K){switch(K.nextAddress){case 1:return _.Y(K,O,2);case 2:m=K.yieldResult;if(Z(a.promise))return a.resolve(m),K.return();h(W,m);w=N9q(W);if(!w.length){K.jumpTo(3);break}return _.Y(K,O,4);case 4:m.preconnect=w,h(W,m);case 3:return _.LI(K,5),_.Y(K,b,7);case 7:A=K.yieldResult;_.H3(K,6);break;case 5:return X=_.ID(K),a.reject(X),K.return();case 6:if(A===void 0)return m.reload=!0,h(W,m),a.resolve(m),K.return();if(Z(a.promise))return a.resolve(m),
K.return();m.playerResponse=A;h(W,m);_.LI(K,8);return _.Y(K,T,10);case 10:l=K.yieldResult;_.H3(K,9);break;case 8:_.ID(K);case 9:if(l===void 0)return m.response={responseContext:{}},a.resolve(m),K.return();if(Z(a.promise))return a.resolve(m),K.return();m.response=l;h(W,m);_.LI(K,11);return _.Y(K,L,13);case 13:p=K.yieldResult;_.H3(K,12);break;case 11:_.ID(K);case 12:if(Z(a.promise))return a.resolve(m),K.return();m.reelWatchSequenceResponse=p;h(W,m);a.resolve(m);_.aD(K)}})};
YSw=function(W,O,b,T,L,h,Z){var a,m,w,A,X,l;_.I(function(p){if((a=Z)==null||!a.replacementEndpoint)return h.reject(),p.return();m=Z.replacementEndpoint;(w=_.P(m,_.l8))?(Z.sequenceContinuation&&(w.sequenceParams=Z.sequenceContinuation),A=_.iq().resolve(_.aL),X=w.sequenceParams,Uoz(A,m)&&delete w.sequenceParams,l=qc(W,m,O,b,T,L,function(){return!1}),l.then(function(K){return _.I(function(k){if(k.nextAddress==1)return lHU(A,{reelWatchEndpoint:{sequenceParams:X}},K),_.Y(k,0,2);
h.resolve(K);_.aD(k)})})):h.reject();
_.aD(p)})};_.eYz=function(W){if(W.validatedFragments_.length==0)return null;if(!W.mergedPrefetchedData_){for(var O=[],b=_.S(W.validatedFragments_),T=b.next();!T.done;T=b.next()){T=_.S(W.fragmentConfiguration_[T.value].graftedKeys);for(var L=T.next();!L.done;L=T.next())(L=W.prefetchedData_[L.value].trackingParams)&&O.push(L)}W.mergedPrefetchedData_={};Object.assign(W.mergedPrefetchedData_,W.prefetchedData_,{clientSideGrafts:O})}return W.mergedPrefetchedData_};var PL1;_.EZ=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
PL1=function(W,O,b){if(_.jVi(O))return W.prefetchCache_.get(_.TwP(O,b))};_.wB=new _.MV("NAVIGATION_TOKEN");var pdv=function(W){var O=this;var b=b===void 0?eiE():b;var T=T===void 0?_.iq().resolve(_.wB):T;this.onePickCommand=W;this.JSC$11108_playlistNetworkManager=b;this.navigationManager=T;this.videoPickerBuilder=_.Ulq("yt-addtoplaylist");_.Flf(tsL($C9(HvS(this.videoPickerBuilder.setTitle(W.modalTitle).setSize(1E3).addView(Mrz()).addView(NDn())).addView("youtube"),W.selectButtonLabel)),function(L){O.handleAction(L)})};
pdv.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
pdv.prototype.handleAction=function(W){var O=this;if(W&&this.onePickCommand.listId&&W.action==="picked"&&W.docs){var b=[];W.docs.forEach(function(T){b.push({addedVideoId:T.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11108_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,b).then(function(){_.e("playlist_add_video_hard_reload_killswitch")?O.navigationManager.reload():RYv(O.navigationManager)})}};var Kh$=function(){if(this.constructor===Kh$)throw new TypeError("Xf");};
_.d=Kh$.prototype;_.d.dispose=function(){};
_.d.disconnect=function(){};
_.d.reconnect=function(){};
_.d.observe=function(W,O,b){return{element:W,option:b}};
_.d.unobserveByKey=function(){};var PDP=function(W,O){O=O===void 0?0:O;Kh$.call(this);this.viewroot=W;this.defaultPrescanHeight=O;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),W?{root:W,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.R(PDP,Kh$);_.d=PDP.prototype;_.d.dispose=function(){this.disconnect();this.handlers.clear()};
_.d.disconnect=function(W){this.isConnected=!1;this.pauseObservingUntilReconnect=W===void 0?!1:W;this.observer.disconnect();W=_.S(this.prescanObservers.values());for(var O=W.next();!O.done;O=W.next())O.value.disconnect()};
_.d.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var W=_.S(this.handlers),O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;var T=b.next().value;b=!1;T=_.S(T.keys());for(var L=T.next();!L.done;L=T.next())if((L=L.value)&&L.state==="prescan"){b=!0;break}b&&vuL(this,O).observe(O);this.observer.observe(O)}}};
_.d.handleObserveEvent=function(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=this.handlers.get(O.target);if(b){var T=O.isIntersecting;b=_.S(b);for(var L=b.next();!L.done;L=b.next()){var h=_.S(L.value);L=h.next().value;h=h.next().value;L&&(L.state==="visible"&&T||L.state==="hidden"&&!T)&&(h(O.target,L.state),L.calledOnce&&this.unobserveByKey({element:O.target,option:L}))}}}};
_.d.handlePrescanEvent=function(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=this.handlers.get(O.target);if(b&&O.isIntersecting){b=_.S(b);for(var T=b.next();!T.done;T=b.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;T&&T.state==="prescan"&&(L(O.target,T.state),T.calledOnce&&this.unobserveByKey({element:O.target,option:T}))}}}};
_.d.observe=function(W,O,b){var T=(T=this.handlers.get(W))&&T.has(b)?{element:W,option:b}:void 0;if(T)return T;T={element:W,option:b};this.handlers.has(W)||this.handlers.set(W,new Map);var L=this.handlers.get(W);L&&!L.has(b)&&L.set(b,O);this.pauseObservingUntilReconnect||(b.state==="prescan"&&vuL(this,W).observe(W),this.observer.observe(W));return T};
_.d.unobserveByKey=function(W){var O=this.handlers.get(W.element);if(O&&O.has(W.option)){O.delete(W.option);if(W&&W.option.state==="prescan")for(var b=_.S(this.prescanObservers.values()),T=b.next();!T.done;T=b.next())T.value.unobserve(W.element);O.size===0&&(this.handlers.delete(W.element),this.observer.unobserve(W.element))}};
var vuL=function(W,O){var b=W.defaultPrescanHeight;O.hasAttribute("prescan-height")&&(O=Number(O.getAttribute("prescan-height")),isNaN(O)||(b=O));if(W.prescanObservers.has(b))return W.prescanObservers.get(b);O="-0.1px -0.1px "+b+"px -0.1px";O=new IntersectionObserver(W.handlePrescanEvent.bind(W),W.viewroot?{root:W.viewroot,rootMargin:O}:{rootMargin:O});W.prescanObservers.set(b,O);return O};var gu7=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],ou$=function(){var W,O=this;this.JSC$11125_actionRouter=W=W===void 0?_.$G.getInstance():W;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return O.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return O.visibilityObservedElementHandlerKeys}}},Qbv,sb1,Do$;
ou$.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.e("kevlar_use_vimio_behavior")&&_.Cv("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=pPh())};
ou$.prototype.dispose=function(){this.visibilityMonitor&&_.YH(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
ou$.prototype.handleVisibilityRefreshed=function(){for(var W=_.S(this.targetMap.entries()),O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;_.kGU(this,O,b)}};
_.rDN=function(W,O,b){sb1(W,b);var T=_.BoH(W,O);T.element=b;W.targetedElements.set(b,O);_.kGU(W,O,T)};
sb1=function(W,O){var b=W.targetedElements.get(O);if(b){var T=W.targetMap.get(b);T&&(delete T.element,W.targetMap.set(b,T));W.targetedElements.delete(O);W.visibilityObserver&&W.visibilityObservedElementHandlerKeys&&(b=W.visibilityObservedElementHandlerKeys.get(O))&&(W.visibilityObserver.unobserveByKey(b),W.visibilityObservedElementHandlerKeys.delete(O))}};
_.kGU=function(W,O,b){var T=b.action,L=b.element;L&&T&&(gu7.includes(O)||_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||W.visibilityMonitor&&W.visibilityMonitor.isNodeVisible(L)?Do$(W,O,b):W.visibilityObserver&&(W.visibilityObservedElementHandlerKeys||(W.visibilityObservedElementHandlerKeys=new WeakMap),T=W.visibilityObserver.observe(L,function(){Do$(W,O,b);W.visibilityObservedElementHandlerKeys.delete(L)},{calledOnce:!0,
state:"visible"}),W.visibilityObservedElementHandlerKeys.set(L,T)))};
Do$=function(W,O,b){var T=b.action;(b=b.element)&&T&&(_.o$(W.JSC$11125_actionRouter,[T],b),W.targetMap.delete(O),W.targetedElements.delete(b),W.triggeredTargets.add(O))};
_.BoH=function(W,O){var b=W.targetMap.get(O);b||(b={},W.targetMap.set(O,b));return b};
_.Ae=function(){Qbv||(Qbv=new ou$);return Qbv};var xon=document.createElement("div");xon.style.touchAction="pan-down";var RiQ=xon.style.touchAction==="pan-down";var zY9,CLz;zY9=function(){this.hammerFn=qlU();this.JSC$11133_screenManager=_.A4();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.gd(83615);_.Tn(this.JSC$11133_screenManager,this.ve);KxQ()};
_.XX=function(){CLz||(CLz=new zY9);return CLz};
zY9.prototype.registerTouchEvents=function(W,O,b){var T=_.PD.apply(3,arguments),L=this.hammerFn(W,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});b&&L.set({touchAction:b});this.nodeManagerMapping.set(W,L);var h=
vdX(O);T=_.S(T);for(var Z=T.next();!Z.done;Z=T.next()){Z=Z.value;if(Z.includes("swipe")||Z.includes("pinch")||Z.includes("pan"))Z.includes("swipe")?L.get("swipe").set({enable:!0,direction:h,velocity:.2}):Z.includes("pinch")?L.get("pinch").set({enable:!0}):Z.includes("pan")&&(L.get("pan").set({enable:!0,direction:h}),L.get("swipe").set({enable:!0,direction:h,velocity:.2}),L.get("swipe").recognizeWith("pan"));qSv(this,W,L,Z)}};
var qSv=function(W,O,b,T){b.on(T,function(L){if(T.includes("pinch"))W.lastPinchTime=Date.now();else if(T.includes("swipe")&&Date.now()-W.lastPinchTime<400)return;L.pointerType!=="mouse"&&(L=T==="doubletap"?{coordinates:L.center}:T.includes("pan")?L:T.includes("swipe")?{target:L.target}:{},O.dispatchEvent(new CustomEvent(T,{bubbles:!0,composed:!0,detail:L})))})};
zY9.prototype.unregisterTouchEvents=function(W){var O=_.PD.apply(1,arguments),b=this.nodeManagerMapping.get(W);if(b){O=_.S(O);for(var T=O.next();!T.done;T=O.next())b.off(T.value);this.nodeManagerMapping.delete(W);W.style.touchAction="unset"}};var nuS=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var gdE=null;var fHw=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},VfX=function(){fHw.instance||(fHw.instance=new fHw);
return fHw.instance},Nwh=function(W){var O=W.networkEvents;
W.networkEvents=[];return _.e("enable_network_monitoring")?O:[]};var GGf;GGf={};_.HAH=yY("yt-serviceworker-metadata",{objectStores:(GGf.auth={addedAtVersion:1},GGf["resource-manifest-assets"]={addedAtVersion:2},GGf),shared:!0,upgrade:function(W,O){O(1)&&q8(W,"resource-manifest-assets");O(2)&&q8(W,"auth")},
version:2});var rWX=self.location.origin+"/";DlQ([/\.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\//]);DlQ([/purge_shell=1/]);var teN=void 0;teN=teN===void 0?[]:teN;for(var $oH=[],Vev=_.S(gvv),No7=Vev.next();!No7.done;No7=Vev.next())$oH.push({key:No7.value});for(var Me5=_.S(teN),uiq=Me5.next();!uiq.done;uiq=Me5.next())$oH.push(uiq.value);var JD5,rE=_.i1==null?void 0:(JD5=_.i1.performance)==null?void 0:JD5.memory,CD8=!1,MfP={},fxO={},Dr={},x1=navigator;var UZ=function(W){this.JSC$11177_expiringStorage=new Ku(W)};
UZ.prototype.set=function(W,O,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$11177_expiringStorage.set(W,O,b)};
UZ.prototype.get=function(W){return this.JSC$11177_expiringStorage.get(W)};
UZ.prototype.remove=function(W){this.JSC$11177_expiringStorage.remove(W)};var ihq=_.ts(["https://www.youtube.com/",""]),bhi=_.ts(["https://studio.youtube.com/",""]),hVq="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",TnP=null,m5h;var cDv=_.ts(["https://www.youtube.com/iframe_api"]),lH=function(){this.playerResolver_=_.$S();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.mB;this.playbackDurationSeconds_=0},Fhz=function(W){var O=function(){return window.YT&&typeof window.YT.ready==="function"};
if(O())return _.ZM(window.YT);var b=_.$S(),T=_.AV("SCRIPT");T.onload=T.onreadystatechange=function(){T.readyState&&T.readyState!="loaded"&&T.readyState!="complete"||(T.onload=_.mB,T.onreadystatechange=_.mB,T.onerror=_.mB,O()?b.resolve(window.YT):b.reject(new _.pu("Failed to load the iframe player library","script.onload",T.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
T.onerror=function(L){T.onload=_.mB;T.onreadystatechange=_.mB;T.onerror=_.mB;b.reject(new _.pu("Failed to load the iframe player library","script.onerror",L&&L.target&&L.target.src))};
_.fz(T,_.yN(cDv));W.insertBefore(T,W.firstChild);return b.promise},yDH=function(W,O,b){var T,L;
_.I(function(h){switch(h.nextAddress){case 1:return W.playbackEndedCallback_=b,_.LI(h,2),_.Y(h,Fhz(O.parentElement||null),4);case 4:T=h.yieldResult;_.H3(h,3);break;case 2:return L=_.ID(h),L instanceof _.pu&&L.args&&L.args[0]=="script.onerror"?_.z5(L):_.Dt(L),h.return();case 3:T.ready(function(){return new T.Player(O,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:W.onPlayerReady_.bind(W),onStateChange:W.onPlayerStateChange_.bind(W),
onCueRangeExit:W.onCueRangeExit_.bind(W)}})}),_.aD(h)}})};
_.d=lH.prototype;_.d.getPlayerPromise=function(){return this.playerPromise_};
_.d.onPlayerReady_=function(W){this.playerResolver_.resolve(W.target)};
_.d.onPlayerStateChange_=function(W){if(W.data==YT.PlayerState.PLAYING){W=W.target;var O=W.getCurrentTime();W.addCueRange("playback",O,O+this.playbackDurationSeconds_)}};
_.d.onCueRangeExit_=function(W){W.data=="playback"&&(W.target.stopVideo(),this.playbackEndedCallback_())};
_.d.stopVideo=function(){this.playerPromise_.then(function(W){W.stopVideo()})};
var WG9=function(W){W.playerVars_&&W.playerPromise_.then(function(O){typeof O.cueVideoByPlayerVars!="function"?_.z5(new _.pu("vmh: player API not ready","cueVideoByPlayerVars",typeof O.cueVideoByPlayerVars)):O.cueVideoByPlayerVars(W.playerVars_)})};
lH.prototype.playVideo=function(){var W=this;this.playerVars_&&this.playerPromise_.then(function(O){typeof O.loadVideoByPlayerVars!="function"?(O=new _.pu("vmh: player API not ready","loadVideoByPlayerVars",typeof O.loadVideoByPlayerVars),_.Dt(O)):O.loadVideoByPlayerVars(W.playerVars_)})};
var OQ7=function(W,O,b,T,L){O&&(b===void 0&&(b=0),T===void 0&&(T=0),W.playbackDurationSeconds_=T/1E3,W.playerVars_={adformat:"17_8",videoId:O,suggestedQuality:"hd720",startSeconds:b/1E3,player_params:L})};
lH.prototype.mute=function(){this.playerPromise_.then(function(W){W.mute()})};
lH.prototype.unMute=function(){this.playerPromise_.then(function(W){W.unMute()})};var iQ$=function(W,O){var b=Cq();W||(W="unknown");O||(O="unknown");W="MAIN_APP_WEB_PAGE_TYPE_"+W.toUpperCase();W in ef9||(W="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");O="MAIN_APP_WEB_REQUEST_TYPE_"+O.toUpperCase();O in PEH||(O="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Id(b,{mainAppWeb:{pageType:W,requestType:O,isShellLoad:_.qC("IS_SHELL_LOAD",!1)}})},bQz={start:function(){_.Id(kyQ(),{mainAppWeb:_.Hh()})},
success:function(){_.ad(kyQ(),"SUCCESS")},
failure:function(){_.ad(kyQ(),"FAILURE")},
cancelled:function(){_.ad(kyQ(),"CANCELLED")}};var jr$,TZq,lX8;jr$=_.ts(["/sw.js"]);TZq=_.ts(["/sw.js?0"]);_.LGS=_.yN(jr$);lX8=_.yN(TZq);var di5=function(){var W=Error.apply(this,arguments);this.message=W.message;"stack"in W&&(this.stack=W.stack)};
_.R(di5,Error);_.VB.prototype.load=function(W){this.megabloxUrl_=_.Cv("YPC_MB_URL");_.qp(this.megabloxUrl_,(0,_.K5)(function(){W&&W()},this))};
_.hZ8=function(W,O,b,T,L,h,Z,a,m,w,A){_.PoO(m);W.load((0,_.K5)(function(){try{var X=h?h:_.Cv("HL"),l=_.Cv("SESSION_INDEX");_.S$O("client",function(){qKv("59",{helpCenterPath:"/youtube",locale:X,window:window}).JSC$7976_loadChatSupport({authuser:String(l)})})}catch(p){throw to(10,A,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),L&&L(p),_.Dt(p),p;
}hPq(this,O,b,T,L,h,Z,a,m,w,A)},W))};
_.VB.prototype.openFixFlowDialog=function(W,O,b,T){this.load((0,_.K5)(function(){try{Sg$(this,_.GT("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(W).withIntegratorCallback(O).load(b,T)}catch(L){throw _.Dt(L),L;}},this))};
var Sg$=function(W,O,b,T){var L=O.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.e("enable_window_constrained_buy_flow_dialog")&&(L=L.usingPopupStyle(_.GT("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));T&&(L=L.usingCloseCallback(T));O.bootstrap.fromPaymentsUrl(W.megabloxUrl_);W=O.bootstrap.asMashupMode(L);b=b?b:_.Cv("HL");W.usingGaiaIndex(_.Cv("SESSION_INDEX")).usingLocale(b).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.e("enable_google_payments_buyflow_material2_style_web")?
W.usingStyle(":m2;pc=#444;ac=#065fd4"):W.usingStyle(":md;pc=#444;ac=#065fd4");return W},hPq=function(W,O,b,T,L,h,Z,a,m,w,A){try{var X=_.GT("payments.business.integration");
if(!X)throw new di5("payments.business.integration is undefined");var l=X.standaloneContextAuthId.forUserId(),p=Sg$(W,X,h,a);Z&&p.usingServerAnalyticsEventHandler(Z);var K=p.inStandaloneContext(l).buyFlow(function(k){if(k&&(!k.integratorData||k.integratorData===""||k.error))if(k.error!=null)if(String(k.error)==="-1")_.pwq(m);else{var r=String(k.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";to(10,A,r,k.debugCode);
_.$1(r,m,k.debugCode);r=new _.pu("PAYMENT_ERROR_MESSAGE::"+k.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+k.internalErrorDetails);_.Dt(r)}else to(10,A,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.$1("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",m,"EMPTY_INTEGRATOR_DATA"),_.Dt(Error("bg"));b&&b(k)}).withEncryptedParameters(O);
w&&K.withClientParameters(OXT(_.mK8(w)));K.load(function(){to(24,A);_.DM("ttc",void 0,"commerce_transaction");FOE("commerce_transaction");T&&T()},function(k){if(k==null?0:k.debugCode)var r=k==null?void 0:k.debugCode;
else if(!k||(k==null?0:k.debugCode))r="EMPTY_LOAD_FAILURE_ERROR",_.Dt(Error(r));else{r="EMPTY_LOAD_FAILURE_DEBUG_CODE";var q=new _.pu("LOAD_FAILURE:"+k.message," DEBUG_CODE:"+r);_.Dt(q)}to(10,A,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",r);_.$1("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",m,r);_.Dt(k);L&&L(k)})}catch(k){throw k instanceof di5&&(to(10,A,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),L&&L(k)),_.Dt(k),k;
}};var ZQH;ZQH=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.T$X=function(W,O){O=O===void 0?!1:O;W=ZQH.test(W)?_.SL(W):null;!O&&window.payments||!W?(W=_.$S(),O=W.promise,W.resolve()):O=_.KW(W,{attributes:{"data-payments-main":"",id:"payment-lib"}});return O};var Iyv;Iyv=_.ts(["//www.googletagmanager.com/gtm.js?id=",""]);_.eu=function(W,O){_.Ox(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:O}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Cv("GL")}),O=_.AV("SCRIPT"),O.async=!0,_.fz(O,_.yN(Iyv,W)),O.id="gtm",W=document.getElementsByTagName("script"),W.length==0?document.head.appendChild(O):(W=W[0],W.parentNode.insertBefore(O,W)))};
_.P0=function(W){if(W=JSON.parse(W))window.dataLayer=window.dataLayer||[],window.dataLayer.push(W)};var ayN,miS;ayN=_.ts(["https://clients2.google.com/gr/gr_sync.js"]);_.bTe=function(){};
_.bTe.prototype.init=function(){if(miS()){var W=_.$S();W.resolve();return W.promise}return _.KW(_.yN(ayN)).then(function(){if(!miS())throw Error("cg");},function(){throw Error("dg");
})};
_.jkO=function(){if(!miS())return"";var W=window.google.gr;W.init({async:{schedule:"sync"},merchantId:"youtube"});W.start();W=W.finish();return W==null?"":W};
miS=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.n=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.n,PolymerFakeBaseClassWithoutHtml);_.A1=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.A1,PolymerFakeBaseClassWithoutHtml);var RVX=window.ShadyDOM;var TT8,b1X,dT1,hoX,Z1h,Is8,pm,jl;TT8=_.e("enable_shadydom_free_scoped_query_methods");b1X=_.e("enable_shadydom_free_scoped_node_methods");dT1=_.e("enable_shadydom_free_scoped_readonly_properties_batch_one");hoX=_.e("enable_shadydom_free_parent_node");Z1h=_.e("enable_shadydom_free_children");Is8=_.e("enable_shadydom_free_last_child");pm=window.ShadyDOM;_.h1=pm&&pm.noPatch&&pm.wrap?pm.wrap:pm?function(W){return pm.patch(W)}:function(W){return W};
jl=function(W){if(W instanceof ShadowRoot)this.host=(0,_.h1)(W.host),this.root=W;else if(W.$$){this.host=(0,_.h1)(W);var O;this.root=(O=W.root)!=null?O:this.host}else if(W.polymerController){this.host=(0,_.h1)(W);var b;this.root=(b=this.host.shadowRoot)!=null?b:this.host}else this.root=this.host=(0,_.h1)(W)};
jCO();LKQ();as2();mTq();SAi();var Ygq={querySelector:function(W,O){O=voh(O,Jo(W));W=_.yB(W);return W_(W).prototype.querySelector.call(W,O)},
querySelectorAll:function(W,O){O=voh(O,Jo(W));W=_.yB(W);return W_(W).prototype.querySelectorAll.call(W,O)}},EEN={appendChild:function(W,O){var b=Jo(W),T=_.u8(O);
return _.O1X(_.yB(W),b?_.im(O,b,T):O)},
cloneNode:function(W,O){var b=_.u8(W);W=_.yB(W);O=W_(W).prototype.cloneNode.call(W,O);return b?bm(O,b):O},
contains:function(W,O){var b=Jo(W),T=_.u8(O);return b!==T?!1:i1X(W,O)},
insertBefore:function(W,O,b){var T=Jo(W),L=_.u8(O);W=_.yB(W);O=T?_.im(O,T,L):O;return W_(W).prototype.insertBefore.call(W,O,b)},
removeChild:function(W,O){var b=Jo(W);W=_.yB(W);O=b?bm(O,b):O;return W_(W).prototype.removeChild.call(W,O)},
replaceChild:function(W,O,b){var T=Jo(W),L=_.u8(O);O=T?_.im(O,T,L):L?bm(O,L):O;b=T?bm(b,T):b;W=_.yB(W);return W_(W).prototype.replaceChild.call(W,O,b)},
getRootNode:function(W,O){O=O===void 0?{composed:!0}:O;var b;if(((b=O)!=null?b:{}).composed)W=CoX(W);else{O=W;for(W=oo1(W);W;)O=W,W=klX(W);W=O}return W}},EYi=dT1?{firstChild:u4X,
nextSibling:VTq,previousSibling:MT1,firstElementChild:J5X,lastElementChild:Ffq,nextElementSibling:$58,previousElementSibling:NnX,childNodes:y5E}:{};hoX&&(EYi.parentNode=tTe);Z1h&&(EYi.children=WKe);Is8&&(EYi.lastChild=c52);TT8&&YAi(Ygq);b1X&&YAi(EEN);w$X();var AzX=function(W){this.node=W instanceof ShadowRoot?W.host:W};
X$T();UTe();var Pd2=new WeakMap;var RoX=Symbol("wd");var QCP=new Set(["tap","track","down","up"]),kOP=_.e("pbcm_fi_query_decorators");var RL=function(){return _.A1.apply(this,arguments)||this};
_.R(RL,_.A1);_.d=RL.prototype;_.d.getState=function(){return this.store.getState()};
_.d.dispatch=function(W){this.store.dispatch(W)};
_.d.beforeRegister=function(){if(this&&typeof this==="object"){var W;var O=!!this.useSignals||!((W=this.polymerController)==null||!W.useSignals)}else O=!1;if(!O&&this.properties)for(O=_.S(Object.keys(this.properties)),W=O.next();!W.done;W=O.next()){var b=W.value;W=this.properties[b];if(W.selector){if(W.computed)throw Error("jg");b=["reduxPropertiesRecomputeTrigger",'"'+b+'"'].concat(_.PG(W.selectorArgs||[])).join(",");W.computed="recomputeReduxSelector("+b+")"}}};
_.d.attached=function(){var W=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){W.reduxPropertiesRecomputeTrigger++}));
_.e("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.d.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.d.recomputeReduxSelector=function(W,O){var b=_.PD.apply(2,arguments),T=this.properties[O].selector;if(!T)throw Error("hg`"+O);return T.apply(null,[this.store.getState()].concat(_.PG(b)))};
_.d.select=function(W){var O=_.PD.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return W.apply(null,[this.store.getState()].concat(_.PG(O)))};
_.Jq.Object.defineProperties(RL.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("ig");}}});
RL.prototype.recomputeReduxSelector=RL.prototype.recomputeReduxSelector;_.t([_.C(),_.N("design:type",Number)],RL.prototype,"reduxPropertiesRecomputeTrigger",void 0);RL=_.t([_.XT()],RL);var Km=[],DTT={},kI=function(){return F2.apply(this,arguments)||this};
_.R(kI,F2);kI.prototype._addPropertyEffect=function(W,O,b){if(O==="__observeEffects"&&b){var T,L=(T=b.info.method)!=null?T:b.info.methodName;if(L){var h=this[L];this[L]=function(){Km.push(L);try{h==null||h.apply(this,arguments)}finally{Km.pop()}}}}_.wp._addPropertyEffect.apply(this,[W,
O,b])};
kI.prototype._setPendingProperty=function(W,O,b){if(Km.length){var T=Km[Km.length-1],L;(L=DTT[this.is])!=null&&L.has(T)||(xT8(this.is,T),_.BZ("polymerPropertyChangedInObserver",{componentName:this.is,observerName:T}))}return _.wp._setPendingProperty.apply(this,[W,O,b])};
kI=_.t([EqO()],kI);var zoQ=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),qAE,el={};_.e("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=el);var Ri=function(){return _.A1.apply(this,arguments)||this};
_.R(Ri,_.A1);Ri.prototype._setUnmanagedPropertyToNode=function(W,O,b){W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!0);if(b!==W[O]||typeof b==="object")W[O]=b;W.is&&W.polymerController&&W.polymerController!==W&&P_(W.is,O,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");W.loggingStatus&&(W.loggingStatus.isDeclarativeExternal=!1)};
Ri=_.t([_.XT()],Ri);Cdh()&&(CP.prototype._setUnmanagedPropertyToNode=(new Ri)._setUnmanagedPropertyToNode);_.yzX={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(W){},set polymerController(W){}}]};var Qv=function(){var W=F2.apply(this,arguments)||this;W.json=function(){};
return W};
_.R(Qv,F2);Qv.prototype.equals=function(W,O){return W===O};
Qv.prototype.isEmpty=function(W){return!W||_.j5(W)&&W.length===0};
Qv=_.t([EqO()],Qv);var wVN=function(W){W=IAO(W);Dw.call(this,W)};
_.R(wVN,Dw);wVN.prototype.addProvider=function(W){W=W.key?W:IAO([W])[0];var O=this.keyIdToIndex.get(W.key.id);if(O){if(tUO(W,this.providers[O]))throw Error("kg`"+W.key.displayName);}else Dw.prototype.addProvider.call(this,W)};
var AjL=new wVN([]);var XVS=!1;var Jzq={};XVS||(uo2(),XVS=!0);
Jzq.InjectBehavior={initializeInjection:function(){var W=this.provide;try{if((W=W!=null?W:[])&&W.length>0)for(var O=IAO(W),b=_.S(O),T=b.next();!T.done;T=b.next())AjL.addProvider(T.value);var L=new Set;$TX(this.behaviors||[],L);O={};for(var h=_.S(L),Z=h.next();!Z.done;Z=h.next()){var a=Z.value;a.inject&&Object.assign(O,a.inject)}this.inject&&Object.assign(O,this.inject);for(var m=_.S(Object.keys(O)),w=m.next();!w.done;w=m.next()){var A=w.value,X=O[A];try{this[A]=AjL.resolve(X)}catch(l){throw l;}}}catch(l){throw Error(l.message);
}}};var FKq;var Wh2=/\bclass\b/.test(function(){}.toString()),bAq=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var Uiv=function(W){this.wasDefined=!0;Array.isArray(W)||W instanceof Array?(this.JSC$11306_getImpl=W[0],this.JSC$11306_setImpl=W[1]):this.JSC$11306_getImpl=W};
_.d=Uiv.prototype;_.d.getWithPath=function(W){return LhE(this.JSC$11306_getImpl(),W)};
_.d.setWithPath=function(W,O){var b=this;if(W.length)throw Error("lg");if(!this.JSC$11306_setImpl)throw Error("mg");pS(function(){b.JSC$11306_setImpl(O)})};
_.d.notifyPath=function(){throw Error("ng");};
_.d.notifySplices=function(){throw Error("og");};
_.d.getChangeRecordSignal=function(W,O){var b=this;if(W.length)throw Error("pg");return function(){var T=b.getWithPath(W);return{path:O!=null?O:"",base:T,value:T}}};
_.d.getSplicesSignal=function(){throw Error("qg");};
_.d.getPathMutationSignal=function(){throw Error("rg");};
_.d.pop=function(){throw Error("sg");};
_.d.push=function(){throw Error("tg");};
_.d.splice=function(){throw Error("ug");};
_.d.unshift=function(){throw Error("vg");};var v0=function(W){var O=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(W)||W instanceof Array?(this.JSC$11311_getImpl=W[0],this.JSC$11311_setImpl=W[1]):this.JSC$11311_getImpl=W;this.wasDefined=!1;Eo(function(){O.wasDefined=O.JSC$11311_getImpl()!==void 0})};
v0.prototype.getWithPath=function(W){return LhE(this.JSC$11311_getImpl(),W)};
v0.prototype.setWithPath=function(W,O){var b=this;if(W[W.length-1]!=="*"&&W[W.length-1]!=="splices"){if(W.length===0){if(!this.JSC$11311_setImpl)throw Error("wg");this.wasDefined||(this.wasDefined=O!==void 0);pS(function(){b.JSC$11311_setImpl(O)})}else{for(var T=Eo(function(){return b.getWithPath([])}),L=0;L<W.length-1;L++){if(!T)return;
T=T[W[L]]}L=W[W.length-1];T&&(T[L]=O);this.wasDefined||(this.wasDefined=W.length>1||O!==void 0)}ly$(this,W,{pathComponents:W,value:O})}};
v0.prototype.notifyPath=function(W,O){W.length===0?O&&this.setWithPath(W,O.value):ly$(this,W,{pathComponents:W,value:O==null?void 0:O.value,fallbackWhenUndefined:O==null?void 0:O.value})};
var ly$=function(W,O,b,T){if(W.setMutationSignal){var L=++W.mutationIndex,h=[W.observedPath],Z=W.observedPath,a;O.length===0&&(a=Z);for(var m=0;m<O.length;m++){var w=Z.subPaths[O[m]];if(!w)break;h.push(w);Z=w;m===O.length-1&&(a=w)}for(O=!1;h.length;)Z=h.shift(),Z.data={index:L,mutation:b,spliceMutationIndex:T},O||(O=Z===a),O&&h.push.apply(h,_.PG(Object.values(Z.subPaths)));pS(function(){W.setMutationSignal(L)})}};
v0.prototype.notifySplices=function(W,O){var b=this,T=Eo(function(){return b.getWithPath(W)}),L=[].concat(_.PG(W),["splices"]);
ly$(this,L,{pathComponents:L,value:{indexSplices:O}});if(T==null?0:T.length)O=this.mutationIndex,L=[].concat(_.PG(W),["length"]),ly$(this,L,{pathComponents:L,value:T.length},O)};
var ePz=function(W,O,b,T,L,h){W.notifySplices(b,[{index:T,addedCount:L,removed:h,object:O,type:"splice"}])},PFU=function(W,O){W=W.observedPath;
for(var b=0;b<O.length;b++){var T=O[b],L=W.subPaths[T];L||(L={pathComponents:O.slice(0,b+1),subPaths:{}},W.subPaths[T]=L);W=L}},RP9=function(W,O,b){PFU(W,O);
if(!W.getMutationSignal){var T=_.S(_.wu(W.mutationIndex,void 0,"HavCgf"));W.getMutationSignal=T.next().value;W.setMutationSignal=T.next().value}var L=W.getMutationSignal;return _.Pj(function(){L();return b(pVL(W,O))},void 0,"BYaPo")};
v0.prototype.getChangeRecordSignal=function(W,O){var b=this,T=this.mutationIndex,L;return RP9(this,W,function(h){if(h&&h.index>T){var Z=h.mutation;T=h.index;L=void 0}h=Eo(function(){return b.getWithPath(W)});
if(Z){var a=Z.pathComponents[Z.pathComponents.length-1],m=[].concat(_.PG(Z.pathComponents));if(a==="splices"||a==="length")return{base:h,path:(O?[O].concat(_.PG(m)):m).join("."),value:Z.value};var w=W.length>m.length?W:m,A;return{base:h!=null?h:Z.fallbackWhenUndefined,path:(O?[O].concat(_.PG(w)):w).join("."),value:(A=Eo(function(){return b.getWithPath(w)}))!=null?A:Z.fallbackWhenUndefined}}L||(L={base:h,
path:(O?[O].concat(_.PG(W)):W).join("."),value:h});return L})};
v0.prototype.getSplicesSignal=function(W){var O=this.mutationIndex,b;return RP9(this,W,function(T){if(T&&T.index>O&&T.spliceMutationIndex!==O){var L=T.mutation;O=T.index;b=void 0}return L&&L.pathComponents[L.pathComponents.length-1]==="splices"?b=T=L.value:b})};
v0.prototype.getPathMutationSignal=function(W){var O=this;PFU(this,W);if(!this.getMutationSignal){var b=_.S(_.wu(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=b.next().value;this.setMutationSignal=b.next().value}var T=this.getMutationSignal,L=this.mutationIndex,h;return _.Pj(function(){T();var Z=pVL(O,W);if(Z&&Z.index>L&&Z.mutation&&doX(Z.mutation.pathComponents,W)){var a=Z.mutation;L=Z.index}if(!h||L!==h.index){var m,w;Z=(w=Eo(function(){return O.getWithPath(W)}))!=null?w:(m=a)==null?
void 0:m.fallbackWhenUndefined;
h={index:L,value:Z}}return h},void 0,"Aumsyf")};
var pVL=function(W,O){W=W.observedPath;O=_.S(O);for(var b=O.next();!b.done;b=O.next())W=W.subPaths[b.value];return W.data};
v0.prototype.pop=function(W){var O=this,b=Eo(function(){return O.getWithPath(W)});
if(!(b instanceof Array))throw Error("xg");var T=b.length>0,L=b.pop();T&&ePz(this,b,W,b.length,0,[L]);return L};
v0.prototype.push=function(W){var O=_.PD.apply(1,arguments),b=this,T=Eo(function(){return b.getWithPath(W)});
if(!(T instanceof Array))throw Error("yg");var L=T.length,h=T.push.apply(T,_.PG(O));O.length&&ePz(this,T,W,L,O.length,[]);return h};
v0.prototype.splice=function(W,O,b){var T=_.PD.apply(3,arguments),L=this,h=Eo(function(){return L.getWithPath(W)});
if(!(h instanceof Array))throw Error("zg");O<0?O=h.length-Math.floor(-O):O&&(O=Math.floor(O));var Z=h.splice.apply(h,[O,b].concat(_.PG(T)));(T.length||Z.length)&&ePz(this,h,W,O,T.length,Z);return Z};
v0.prototype.unshift=function(W){var O=_.PD.apply(1,arguments),b=this,T=Eo(function(){return b.getWithPath(W)});
if(!(T instanceof Array))throw Error("Ag");var L=T.unshift.apply(T,_.PG(O));O.length&&ePz(this,T,W,0,O.length,[]);return L};var KGH=!0,vEU=!1,HQe=!1,gEv=!1,gB=!1,oE9=0;gEv=!1;oE9=0;KGH=!0;gB=vEU=HQe=!1;var oL=function(W,O,b){this.model=W;this.unknownSignalResolver=O;this.options=b;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];O=_.S(wdi());W=O.next().value;O=O.next().value;this.owner=W;this.disposeImpl=O};
oL.prototype.dispose=function(){if(!this.isDisposed){for(var W=_.S(this.childSignalProxies),O=W.next();!O.done;O=W.next())O.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var QrU=function(W,O){W=bt(W.owner);try{O()}finally{bt(W)}};
oL.prototype.effect=function(W){QrU(this,function(){_.Dq(W)})};
var kjL=function(W,O){W.options!=null||(W.options={});var b;(b=W.options).immutableProps!=null||(b.immutableProps=new Set);W.options.immutableProps.add(O)},GG1=function(W,O){O=""+O;
sr$(W,O);var b;if((b=W.model.__signalCache)==null?0:b.has(O))b=W.model.__signalCache.get(O),Array.isArray(b)&&kjL(W,O);var T,L,h;return(h=(T=W.options)==null?void 0:(L=T.immutableProps)==null?void 0:L.has(O))!=null?h:!1},BZU=function(W,O){var b;
W.unknownSignalResolver&&(b=W.unknownSignalResolver(O));var T,L;((T=W.options)==null?0:(L=T.immutableProps)==null?0:L.has(O))?b!=null||(b=new Uiv(_.wu(W.model[O],void 0,"Xu3svb"))):b!=null||(b=new v0(_.wu(W.model[O],void 0,"NgC9n")));var h=W.model.hostElement;Object.defineProperty(W.model,O,{get:function(){fse(h,O);return b.getWithPath([])},
set:function(Z){p2(h,O);W.setWithPath([O],Z)},
configurable:!0});return b},sr$=function(W,O){var b,T,L;
((b=W.model.__signalCache)==null||!b.has(O))&&((T=W.options)==null?0:(L=T.externalSignalProps)==null?0:L.has(O))&&W.model[O]},DQ=function(W,O){O=""+O;
var b=W.signalCache[O];if(b!==void 0)return b;b=!1;sr$(W,O);var T;if((T=W.model.__signalCache)==null?0:T.has(O))if(b=W.model.__signalCache.get(O),Array.isArray(b))b=!0,kjL(W,O);else return W.signalCache[O]=W.model.__signalCache.get(O).signal,W.signalCache[O];var L,h;T=(h=(L=W.options)==null?void 0:L.reactivityMode)!=null?h:0;var Z,a;if(!((Z=W.options)==null?0:(a=Z.reactiveProps)==null?0:a.has(O))&&!b&&T===1)throw Error("Bg`"+O);L=b?rjq(W,O):BZU(W,O);return W.signalCache[O]=L},rjq=function(W,O){var b=
Object.getOwnPropertyDescriptor(W.model.constructor.prototype,O),T=function(){return W.model[O]};
return new Uiv(b&&b.get&&!b.set?T:[T,function(L){W.model[O]=L}])};
oL.prototype.getWithPath=function(W){var O=_.S(W);W=O.next().value;O=JV(O);fse(this.model.hostElement,""+W);return DQ(this,W).getWithPath(O)};
oL.prototype.setWithPath=function(W,O){if(W.length){p2(this.model.hostElement,W.join("."));var b=_.S(W);W=b.next().value;b=JV(b);DQ(this,W).setWithPath(b,O)}};
oL.prototype.getPathMutationSignal=function(W){var O=_.S(W);W=O.next().value;O=JV(O);return DQ(this,W).getPathMutationSignal(O)};
oL.prototype.notifyPath=function(W,O){var b=_.S(W);W=b.next().value;b=JV(b);DQ(this,W).notifyPath(b,O)};
var Dif=function(W,O){if(O.type==="literal")return function(){return{rootWasDefined:!0,value:O.value}};
var b=B_(O.path),T=_.S(b),L=T.next().value;T=JV(T);var h,Z;if(O.type==="path"&&(b.length===1||((h=W.options)==null?0:(Z=h.immutableProps)==null?0:Z.has(L))))return function(){var X=W.getWithPath(b.slice(0,1)),l=LhE(X,b.slice(1));X=X!==void 0;gB&&(X=DQ(W,b[0]).wasDefined);return{rootWasDefined:X,value:l}};
var a=DQ(W,L);if(O.type==="path"){var m=a.getPathMutationSignal(T);return function(){var X=gB?a.wasDefined:xb(W.owner,function(){return a.getWithPath([])})!==void 0;
var l,p=(l=m())==null?void 0:l.value;return{rootWasDefined:X,value:p}}}if(O.type==="splices"){var w=a.getSplicesSignal(T);
return function(){var X=w();return{rootWasDefined:gB?a.wasDefined:X!==void 0,value:X}}}var A=a.getChangeRecordSignal(T,""+L);
return function(){var X=A();return{rootWasDefined:gB?a.wasDefined:X!==void 0,value:X}}},moq=function(W,O,b){var T=b.map(function(a){return Dif(W,a)}),L=b.length===0,h=[],Z=b.length!==1||b[0].type!=="path"?!1:!0;
W.effect(function(){for(var a=T.length,m=[],w=!!h.length,A=0;A<a;A++){var X=T[A](),l=X.rootWasDefined;X=X.value;L||(L=l);m[A]=X;Z&&(m[A+a]=w?h[A]:m[A],h[A]=X)}L&&xb(W.owner,function(){return void O.apply(null,_.PG(m))})})},hY2=function(W,O,b,T,L){var h=DQ(W,O);
L!==void 0&&h.setWithPath([],L);moq(W,function(){var Z=_.PD.apply(0,arguments);p2(W.model.hostElement,O,!0);h.setWithPath([],b.apply(null,_.PG(Z)))},T)};
oL.prototype.arrayPush=function(W){var O=_.PD.apply(1,arguments),b=_.S(W),T=b.next().value;b=JV(b);T=DQ(this,T);return T.push.apply(T,[b].concat(_.PG(O)))};
oL.prototype.arraySplice=function(W,O,b){var T=_.PD.apply(3,arguments),L=_.S(W),h=L.next().value;L=JV(L);h=DQ(this,h);return h.splice.apply(h,[L,O,b].concat(_.PG(T)))};
oL.prototype.arrayUnshift=function(W){var O=_.PD.apply(1,arguments),b=_.S(W),T=b.next().value;b=JV(b);T=DQ(this,T);return T.unshift.apply(T,[b].concat(_.PG(O)))};
oL.prototype.notifySplices=function(W,O){var b=_.S(W);W=b.next().value;b=JV(b);DQ(this,W).notifySplices(b,O)};var PL8=/([^\s]+?)\(([\s\S]*)\)/,UoP=/\.([^.]+)$/,RYe=/\\,/g,ADq=/&comma;/g,XdT=/\\(.)/g,pde=[],lHO={"*":"wildcard",splices:"splices"};var DoT=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"),kGO=/[A-Z]/,xiL=["class","hidden","id","on-dom-change"],zYX=new Set([].concat(_.PG(xiL),
["if","notify-dom-change","restamp"])),CLP=new Set([].concat(_.PG(xiL),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),qSe=new Set(["restamp"]);var zNX=new Set(["className","id"]);var te2=Symbol(),cDe=window;var TZh=window;var ay2=0,hPh=0,xI=[],Iye=0,diQ=!1,ZQE=document.createTextNode("");(new window.MutationObserver(SgT)).observe(ZQE,{characterData:!0});var C2=new Map,z0=0,zP5=function(W){this.mappedHandleId=W},Ygh=function(W,O,b,T){this.mappedHandleId=W;
var L=this;this.mappedHandleId=W;this.callback=O;this.waitTime=b;this.schedulerPriority=T;this.handleId=_.sF.addJob(function(){L.callback();C2.delete(L.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.R(Ygh,zP5);Ygh.prototype.cancel=function(){_.sF.cancelJob(this.handleId);C2.delete(this.mappedHandleId)};
var EE2=function(W,O){this.mappedHandleId=W;var b=this;this.mappedHandleId=W;this.callback=O;this.handleId=mii(function(){b.callback();C2.delete(b.mappedHandleId)})};
_.R(EE2,zP5);EE2.prototype.cancel=function(){var W=this.handleId-hPh;W<0||xI.length<=W||(xI[W]=null);C2.delete(this.mappedHandleId)};var Uie=function(){};
Uie.prototype.cancel=function(){this.jobHandle!==void 0&&(wV2(this.jobHandle),this.jobHandle=void 0)};
Uie.prototype.run=function(W,O,b){var T=this;this.cancel();this.callback=W;this.jobHandle=_.qe(function(){W();T.callback=void 0},O,b)};
Uie.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var Aj8=new WeakMap;var CFN=tR(function(W){for(var O=W,b=0;b<3;b++)O=Object.getPrototypeOf(O);delete O.prototype.connectedCallback;var T=function(){return W.apply(this,arguments)||this};
_.R(T,W);T.prototype._attachDom=function(L){if(!L)return null;var h=(0,_.h1)(this.hostElement);h.attachShadow({mode:"open",shadyUpgradeFragment:L});h.shadowRoot.appendChild(L);return h.shadowRoot};
T.prototype._takeAttributes=function(){for(var L=this.hostElement.attributes,h=0;h<L.length;h++){var Z=L[h],a=void 0,m=void 0;(m=(a=this).__attributeReaction)==null||m.call(a,Z.name,null,Z.value)}};
T.prototype._readyClients=function(){W.prototype._readyClients.call(this);this.root=this};
T.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);W.prototype.connectedCallback.call(this)};
_.Jq.Object.defineProperties(T,{template:{configurable:!0,enumerable:!0,get:function(){return T.prototype._template}}});
return T}),qgv=tR(function(W){var O=function(){return W.apply(this,arguments)||this};
_.R(O,W);O.prototype.created=function(){if(this.__notifyEffects)for(var b=_.S(Object.values(this.__notifyEffects)),T=b.next();!T.done;T=b.next()){T=_.S(T.value);for(var L=T.next();!L.done;L=T.next())L.value.fn=pV8}if(this.__reflectEffects)for(b=_.S(Object.values(this.__reflectEffects)),T=b.next();!T.done;T=b.next())for(T=_.S(T.value),L=T.next();!L.done;L=T.next())L.value.fn=RPX};
O.prototype._addEventListenerToNode=function(b,T,L){b=f2(b);kF(b,T,L)||W.prototype._addEventListenerToNode.call(this,b,T,L)};
O.prototype._removeEventListenerFromNode=function(b,T,L){b=f2(b);s0(b,T,L)||W.prototype._removeEventListenerFromNode.call(this,b,T,L)};
O.prototype._propertiesChanged=function(b,T,L){if(this.__dataToNotify&&this.__notifyEffects)for(var h=_.S(Object.keys(this.__dataToNotify)),Z=h.next();!Z.done;Z=h.next()){Z=Z.value;var a=PFO(Z);this.__notifyEffects[a]||delete this.__dataToNotify[Z]}else this.__dataToNotify=null;W.prototype._propertiesChanged.call(this,b,T,L)};
O.prototype.fire=function(b,T,L){T=T===void 0?{}:T;var h;return _.bX(f2((h=L==null?void 0:L.node)!=null?h:this),b,T,L)};
O.prototype._ensureAttribute=function(b,T){var L=f2(this);L.hasAttribute(b)||ri(L,T,b)};
O.prototype.isLightDescendant=function(b){var T=f2(this);return f2(T)!==b&&_.Q(T).contains(b)&&_.Q(T).getRootNode()===_.Q(b).getRootNode()};
return O});
_.Au.ready=function(){var W;((W=this.hostElement)!=null?W:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var O;((O=this.hostElement)!=null?O:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.vL._subscribeIronResize=function(W){var O;((O=W.hostElement)!=null?O:W).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.vL._unsubscribeIronResize=function(W){var O;((O=W.hostElement)!=null?O:W).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var gEe=[Array,Boolean,Date,Number,Object,String],H_=function(W,O,b,T){this.polySiInfo=W;this.polySiParams=O;this.polySiContext=b;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;T||this instanceof HTMLElement&&(T=this);if(!T)throw Error("Ig");this.allowedProps=O.allowedProps;this.hostElement=T;this.is=W.is;this.upgradeDisabled=!!O.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");W=new Set(O.reactiveSchemas.filter(function(L){return L.type!==
"observe"}).map(function(L){return L.propertyKey}));
this.signalProxy=new oL(this,void 0,{reactiveProps:W,reactivityMode:O.reactivityMode});this.__dataHasAccessor={};O=_.S(O.reactiveSchemas);for(W=O.next();!W.done;W=O.next())W=W.value,W.type==="signal"&&(this.__dataHasAccessor[W.propertyKey]=!0);this.upgradeDisabled||nEv(this)};
H_.prototype.getExtraMethodsToForward=function(){return[]};
var nEv=function(W){W.polySiContext.didRegister||(W.registered(),W.polySiContext.didRegister=!0);W.polySiContext.finalizedTemplate||(W.polySiContext.finalizedTemplate={},W.polySiParams.templateGetter&&(W.polySiContext.finalizedTemplate.processedTemplate=LGi(W.polySiParams.templateGetter,W.polySiParams.is)));fy5(W);var O=W.hostElement;O.loggingStatus!=null||(O.loggingStatus={});O.loggingStatus.isInitializing=!0;Eo(function(){return void W.created()});
O.loggingStatus.isInitializing=!1;W.isPolySiElementConnected&&GjS(W)},GjS=function(W){W.didCallReady||(Eo(function(){return void W.ready()}),W.didCallReady=!0);
W.isAttached=!0;W.attached()};
_.d=H_.prototype;_.d.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||GjS(this)};
_.d.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.d.attributeChangedCallback=function(W,O,b){if(this.upgradeDisabled)W==="disable-upgrade"&&b===null&&(this.upgradeDisabled=!1,nEv(this));else if(O!==b){var T=_.wl(W),L=this.polySiContext.typesForSignals[T];if(L&&(!this.reflecting||_.e("polysi_attribute_changed_serializing_killswitch"))){switch(L){case Object:try{var h=JSON.parse(b)}catch(a){h=b}break;case Array:try{h=JSON.parse(b)}catch(a){h=null}break;case Date:h=isNaN(b)?String(b):Number(b);h=new Date(h);break;case Boolean:h=b!==null;break;case Number:h=
Number(b);break;default:h=b}this[T]=h}T=_.S(this.polySiParams.behaviors);for(L=T.next();!L.done;L=T.next())h=void 0,(h=L.value.attributeChanged)==null||h.call(this,W,O,b);var Z;(Z=this.attributeChanged)==null||Z.call(this,W,O,b)}};
_.d.attributeChangedCallbackWrapper=function(W,O,b){this.attributeChangedCallback(W,O,b)};
_.d.setPropertiesFromInitialAttributeValues=function(){for(var W=0;W<this.hostElement.attributes.length;W++){var O=this.hostElement.attributes[W];(O.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(O.name))&&this.attributeChangedCallback(O.name,null,O.value)}};
_.d.created=function(){this.provide=this.polySiParams.provide;var W;(W=this.initializeInjection)==null||W.call(this);W=_.S(this.polySiParams.reactiveSchemas);for(var O=W.next();!O.done;O=W.next())O=O.value,O.type==="signal"&&(this.mutablePropNames.add(O.propertyKey),DQ(this.signalProxy,O.propertyKey));vEO(this,this.polySiInfo,this.polySiParams.behaviors);W=_.S(this.polySiParams.reactiveSchemas);for(O=W.next();!O.done;O=W.next())O=O.value,O.type==="signal"&&O.value!==void 0&&(this.signalProxy.model[O.propertyKey]=
typeof O.value==="function"?O.value.call(this):O.value);if(this.polySiParams.signalProperties)for(W=_.S(this.polySiParams.signalProperties),O=W.next();!O.done;O=W.next()){O=O.value;var b=void 0;((b=this.__signalCache)==null?0:b.has(O))||(this.signalProxy.model[O]=void 0)}gEv||HQv(this);KGE(this);W=_.S(this.polySiParams.behaviors);for(O=W.next();!O.done;O=W.next())b=void 0,(b=O.value.created)==null||b.call(this);var T;(T=this.polySiInfo.created)==null||T.call(this)};
_.d.registered=function(){var W=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var O=Object.getPrototypeOf(this);O.addReactiveSchema=function(a){W.polySiParams.reactiveSchemas.push(a)};
for(var b=_.S(this.polySiParams.behaviors),T=b.next();!T.done;T=b.next()){var L=void 0;(L=T.value.beforeRegister)==null||L.call(O)}var h;(h=this.polySiInfo.beforeRegister)==null||h.call(O);O.addReactiveSchema=QrO;b=_.S(this.polySiParams.behaviors);for(T=b.next();!T.done;T=b.next())L=void 0,(L=T.value.registered)==null||L.call(O);var Z;(Z=this.polySiInfo.registered)==null||Z.call(O)};
_.d.ready=function(){var W;(W=this.beforeReady)==null||W.call(this);gEv&&HQv(this);var O;if(W=(O=this.polySiContext.finalizedTemplate)==null?void 0:O.processedTemplate){W=jrT(W.template,W.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:W.hasInsertionPoint,thisCtx:this});O=W.nodesById;W=W.root;var b=this.hostElement;var T=T===void 0?!1:T;b=(0,_.h1)(b);if(!b.attachShadow)throw Error("Cd");if(!b.shadowRoot||T)b.attachShadow({mode:"open",shadyUpgradeFragment:W}),b.shadowRoot.appendChild(W);
this.root=b.shadowRoot;this.$=O}tCU(this);T=_.S(this.polySiParams.behaviors);for(O=T.next();!O.done;O=T.next())W=void 0,(W=O.value.ready)==null||W.call(this);var L;(L=this.polySiInfo.ready)==null||L.call(this)};
_.d.attached=function(){for(var W=_.S(this.polySiParams.behaviors),O=W.next();!O.done;O=W.next()){var b=void 0;(b=O.value.attached)==null||b.call(this)}var T;(T=this.polySiInfo.attached)==null||T.call(this)};
_.d.detached=function(){for(var W=_.S(this.polySiParams.behaviors),O=W.next();!O.done;O=W.next()){var b=void 0;(b=O.value.detached)==null||b.call(this)}var T;(T=this.polySiInfo.detached)==null||T.call(this)};
var fy5=function(W){for(var O=_.S(W.polySiParams.behaviors),b=O.next();!b.done;b=O.next())if(b=b.value,b.listeners)for(var T in b.listeners)bQP(W,W.hostElement,T,b.listeners[T]);if(W.polySiInfo.listeners)for(var L in W.polySiInfo.listeners)bQP(W,W.hostElement,L,W.polySiInfo.listeners[L])},bQP=function(W,O,b,T,L){W=ToX(W,T,L);
kF(O,b,W)||O.addEventListener(b,W);return W},HQv=function(W){for(var O=_.S(W.polySiParams.reactiveSchemas),b=O.next();!b.done;b=O.next())b=b.value,b.type==="compute"||b.type==="computeWithMethod"?SSO(W.signalProxy,b,W):b.type==="redux"?aHQ(W.signalProxy,b,W.store):b.type==="signal"&&b.readOnly&&IHX(W.signalProxy,b)},tCU=function(W){for(var O=_.S(W.polySiParams.reactiveSchemas),b=O.next(),T={};!b.done;T={schema$jscomp$12:void 0},b=O.next())T.schema$jscomp$12=b.value,T.schema$jscomp$12.type==="notify"?
YSX(W.signalProxy,T.schema$jscomp$12,W.hostElement):T.schema$jscomp$12.type==="observe"?EuE(W.signalProxy,T.schema$jscomp$12,W):T.schema$jscomp$12.type==="reflect"&&W.signalProxy.effect(function(h){return function(){var Z=W.signalProxy.getWithPath([h.schema$jscomp$12.propertyKey]);
W.reflecting=!0;vu8(W.hostElement,h.schema$jscomp$12.propertyKey,Z,!0);W.reflecting=!1}}(T));
if(W.reflectedAttributes)for(O=_.S(Object.entries(W.reflectedAttributes)),T=O.next(),b={};!T.done;b={key$jscomp$877:void 0,value$jscomp$8776:void 0},T=O.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;b.key$jscomp$877=T;b.value$jscomp$8776=L;W.signalProxy.effect(function(h){return function(){W.reflecting=!0;vu8(W.hostElement,h.key$jscomp$877,(0,h.value$jscomp$8776)(),!0);W.reflecting=!1}}(b))}};
_.d=H_.prototype;_.d._setPendingProperty=function(W,O){this.set(W,O);return!1};
_.d._enableProperties=function(){};
_.d._setPendingPropertyOrPath=function(W,O){this.notifyPath(W,O);return!1};
_.d._addPropertyEffect=function(){};
_.d._stampTemplate=function(){throw Error("Jg");};
_.d.fire=function(W,O,b){O=O===void 0?{}:O;b=b===void 0?{}:b;var T,L,h={bubbles:(T=b.bubbles)!=null?T:!0,cancelable:!!b.cancelable,composed:(L=b.composed)!=null?L:!0},Z;return _.bX(kj8((Z=b.node)!=null?Z:this.hostElement),W,O,h)};
_.d.get=function(W,O){var b=B_(W);return O?LhE(O,b):W==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(b)};
_.d.linkPaths=function(){};
_.d.listen=function(W,O,b){W=kj8(W);this.boundListeners!=null||(this.boundListeners=new WeakMap);var T=this.boundListeners.get(W);T||(T={},this.boundListeners.set(W,T));var L=O+b;T[L]||(T[L]=bQP(this,W,O,b))};
_.d.notifyPath=function(W,O){this.signalProxy.notifyPath(B_(W),arguments.length===2?{value:O}:void 0)};
_.d.canNotifyPath=function(W){var O,b;return this.mutablePropNames.has(W)&&!((O=this.signalProxy.options)==null?0:(b=O.immutableProps)==null?0:b.has(W))};
_.d.notifySplices=function(W,O){this.signalProxy.notifySplices(B_(W),O)};
_.d.pop=function(W){var O=this.signalProxy;W=B_(W);var b=_.S(W);W=b.next().value;b=JV(b);return DQ(O,W).pop(b)};
_.d.push=function(W){var O=_.PD.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[B_(W)].concat(_.PG(O)))};
_.d.set=function(W,O,b){if(b)throw Error("Kg");W==="hidden"?this.hostElement.hidden=!!O:this.signalProxy.setWithPath(B_(W),O)};
_.d.setProperties=function(W){W=_.S(Object.entries(W));for(var O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;this[O]=b}};
_.d.splice=function(W,O,b){var T=_.PD.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[B_(W),O,b].concat(_.PG(T)))};
_.d.unlinkPaths=function(){};
_.d.unlisten=function(W,O,b){W=kj8(W);if(this.boundListeners){var T=this.boundListeners.get(W);if(T){b=O+b;var L=T[b];L&&(s0(W,O,L)||W.removeEventListener(O,L),delete T[b])}}};
_.d.unshift=function(W){var O=_.PD.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[B_(W)].concat(_.PG(O)))};
_.Jq.Object.defineProperties(H_.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 Gji=[Array,Boolean,Date,Number,Object,String];var $i1=!1;var Q4=function(){var W=HTMLElement.apply(this,arguments)||this;W.restamp=!1;W.notifyDomChange=!1;W.JSC$11419_didCallConnected=!1;W.JSC$11419_renderDebouncer=null;W.disableTemplateUpdateSignalImpl=t1()?void 0:_.wu(!1,void 0,"zLXz1e");var O;W.getDisableTemplateUpdate=(O=W.disableTemplateUpdateSignalImpl)==null?void 0:O[0];var b;W.setDisableTemplateUpdate=(b=W.disableTemplateUpdateSignalImpl)==null?void 0:b[1];return W};
_.R(Q4,HTMLElement);var $if=function(W){W.conditionSignalImpl!=null||(W.conditionSignalImpl=new v0(_.wu(!1,void 0,"wcuOQ")));return W.conditionSignalImpl};
_.d=Q4.prototype;_.d.showHideChildren=function(W){VC$(this,W,this.if)};
_.d.attributeChangedCallback=function(W,O,b){if(this.JSC$11419_didCallConnected)throw Error("Og`"+W);W==="notify-dom-change"?this.notifyDomChange=b!==null:W==="restamp"&&(this.restamp=b!==null)};
_.d.debounceRender=function(){this.JSC$11419_renderDebouncer=_.O9(this.JSC$11419_renderDebouncer,r3,this.JSC$11419_renderImpl.bind(this));_.iK(this.JSC$11419_renderDebouncer)};
_.d.disconnectedCallback=function(){var W=(0,_.h1)(this).parentNode;(!W||W.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in W&&!W.host)&&NZ9(this)};
_.d.connectedCallback=function(){var W=this;this.JSC$11419_didCallConnected=!0;KGH?VCT():this.style.display="none";this.parentSignalProxy.effect(function(){$if(W).getWithPath([]);W.debounceRender()})};
_.d.render=function(){_.Lg()};
_.d.JSC$11419_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var W=this.if;if(W){a:{var O=(0,_.h1)(this).parentNode;if(this.hasInstance()){var b=this.instance.children;if((b==null?0:b.length)&&(0,_.h1)(this).previousSibling!==b[b.length-1])for(var T=0;T<b.length;T++)(0,_.h1)(O).insertBefore(b[T],this)}else{if(!O){O=!1;break a}MCw(this,O)}O=!0}if(!O)return}else this.restamp&&NZ9(this);VC$(this,!1,W);W&&uMN(this);vEU&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.d.hasInstance=function(){return!!this.instance};
var MCw=function(W,O){var b=W.parentSignalProxy;if(t1()){var T=_.S(_.wu(!0,void 0,"wXzgnc"));var L=T.next().value;T=T.next().value;b=W.parentSignalProxy}else{var h;var Z=new oL((h=Jj$(W))!=null?h:{},function(m){var w=DQ(W.parentSignalProxy,m).getChangeRecordSignal([]);m=_.wu(void 0,void 0,"mryEkc");var A=new v0(m);Z.effect(function(){if(W.getDisableTemplateUpdate&&!W.getDisableTemplateUpdate()){var X=w();A.notifyPath(B_(X.path),{value:X.value})}});
return A});
W.parentSignalProxy.childSignalProxies.push(Z);var a=b=Z}b=jrT(W.templateInfo,W.templateInfo.nodeInfoList,b,{eventListenerHost:W.eventListenerHost,hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,enabledSignal:t1()?L:void 0,getModel:function(){return Jj$(W)}}).root;
W.instance={root:b,children:[],hidden:!1,signalProxy:a,getTemplateUpdatesEnabled:L,setTemplateUpdatesEnabled:T};a=_.S(b.childNodes);for(L=a.next();!L.done;L=a.next())W.instance.children.push(L.value);(0,_.h1)(O).insertBefore(W.instance.root,W)},Jj$=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var O={},b;
for(b in W)W.hasOwnProperty(b)&&(O[b]=W[b]);return O}},NZ9=function(W){if(W.instance){var O=W.instance.children;
if(O.length){var b=(0,_.h1)(O[0]).parentNode;if(b){b=(0,_.h1)(b);for(var T=0;T<O.length;T++)b.removeChild(O[T])}}t1()?W.instance.setTemplateUpdatesEnabled(!1):W.instance.signalProxy.dispose();W.instance=void 0}},VC$=function(W,O,b){O=O||!b;
W.instance&&W.instance.hidden!==O&&(W.instance.hidden=O,tCO(O,W.instance.children))},uMN=function(W){if(t1()){var O=W.instance;
O&&xb(W.parentSignalProxy.owner,function(){return!O.getTemplateUpdatesEnabled()})&&O.setTemplateUpdatesEnabled(!0)}else W.setDisableTemplateUpdate(!1)};
_.Jq.Object.defineProperties(Q4.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var W=this;return xb(this.parentSignalProxy.owner,function(){return $if(W).getWithPath([])})},
set:function(W){W||(t1()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));$if(this).setWithPath([],!!W)}}});
_.Jq.Object.defineProperties(Q4,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Q4);var cjf=[],k_=function(){var W=HTMLElement.apply(this,arguments)||this;W.as="item";W.indexAs="index";W.itemsIndexAs="itemsIndex";W.targetFramerate=20;W.notifyDomChange=!1;W.isDetached=!1;W.JSC$11426_renderDebouncer=null;W.instances=[];W.chunkingId=null;W.chunkCount=null;W.shouldMeasureChunk=!1;W.shouldContinueChunking=!1;W.renderStartTime=null;W.JSC$11426_didCallConnected=!1;return W};
_.R(k_,HTMLElement);var FGf=function(W){W.itemSignalImpl!=null||(W.itemSignalImpl=new v0(_.wu(cjf,void 0,"YBrqgf")));return W.itemSignalImpl},yjq=function(W,O){Array.isArray(O)||(O=cjf);
FGf(W).setWithPath([],O)};
_.d=k_.prototype;_.d.showHideChildren=function(W){for(var O=_.S(this.instances),b=O.next();!b.done;b=O.next())tCO(W,b.value.children)};
_.d.notifyPath=function(W,O){W=B_(W);W[0]==="items"&&(W.length===1?yjq(this,O):FGf(this).setWithPath(W.slice(1),O))};
_.d.canNotifyPath=function(W){return W==="items"};
_.d.attributeChangedCallback=function(W,O,b){if(this.JSC$11426_didCallConnected)throw Error("Pg`"+W);W==="as"?this.as=b:W==="index-as"?this.indexAs=b:W==="items-index-as"?this.itemsIndexAs=b:W==="initial-count"?this.initialCount=Number(b):W==="notify-dom-change"?this.notifyDomChange=b!==null:W==="target-framerate"&&(this.targetFramerate=Number(b))};
_.d.disconnectedCallback=function(){this.isDetached=!0;for(var W=0;W<this.instances.length;W++)WuN(this,W);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.d.connectedCallback=function(){var W=this,O=FGf(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var L=O(),h=B_(L.path);if(h[0]===void 0||h[0]==="splices"||h[0]==="length")W.debounceRender();else{var Z=h[0];if(Z=W.instances[typeof Z==="string"?Math.floor(Number(Z)):Z])h=[W.as].concat(_.PG(h.slice(1))),Z.signalProxy.notifyPath(h,L)}});
this.JSC$11426_didCallConnected=!0;KGH?VCT():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var b=(0,_.h1)((0,_.h1)(this).parentNode),T=0;T<this.instances.length;T++)b.insertBefore(this.instances[T].root,this);this.chunkingId&&this.render()}};
_.d.debounceRender=function(){this.JSC$11426_renderDebouncer=_.O9(this.JSC$11426_renderDebouncer,r3,this.JSC$11426_renderImpl.bind(this));_.iK(this.JSC$11426_renderDebouncer)};
_.d.render=function(){this.debounceRender();_.Lg()};
_.d.JSC$11426_renderImpl=function(){var W=this,O=this.items,b=OZq(this,O.length);iZf(this,O,b);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){W.chunkingId=null;if(W.shouldMeasureChunk){var T=performance.now()-W.renderStartTime;W.chunkCount=Math.round(Math.ceil(1E3/W.targetFramerate)/T*W.chunkCount)||1}W.shouldContinueChunking&&W.debounceRender()}));
vEU&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var OZq=function(W,O){var b=O,T=W.instances.length;if(W.initialCount){if(W.chunkCount){var L=Math.min(Math.max(O-T,0),W.chunkCount);b=Math.min(T+L,O)}else b=Math.min(O,W.initialCount),L=Math.max(b-T,0),W.chunkCount=L||1;W.shouldMeasureChunk=L===W.chunkCount;W.shouldContinueChunking=b<O;W.renderStartTime=performance.now()}return b},iZf=function(W,O,b){for(var T=0;T<b;T++){var L=W.instances[T],h=O[T];
L?(L.signalProxy.setWithPath([W.as],h),L.signalProxy.setWithPath([W.indexAs],T)):bZv(W,h,T)}for(O=W.instances.length-1;O>=T;O--)b=W,L=O,WuN(b,L),_.S(b.instances.splice(L,1)).next().value.signalProxy.dispose()},WuN=function(W,O){W=W.instances[O];
O=(0,_.h1)(W.root);for(var b=0;b<W.children.length;b++)O.appendChild(W.children[b])},bZv=function(W,O,b){var T={};
O=Object.assign({},jH9(W),(T[W.as]=O,T[W.indexAs]=b,T[W.itemsIndexAs]=b,T));var L=new oL(O,function(Z){if(Z!==W.as&&Z!==W.indexAs){if(Z===W.itemsIndexAs)return DQ(L,W.indexAs);var a=DQ(W.parentSignalProxy,Z).getChangeRecordSignal([]);Z=_.wu(void 0,void 0,"Mu2Bwb");var m=new v0(Z);L.effect(function(){var w=a();m.notifyPath(B_(w.path),{value:w.value})});
return m}});
W.parentSignalProxy.childSignalProxies.push(L);T=jrT(W.templateInfo,W.templateInfo.nodeInfoList,L,{eventListenerHost:W.eventListenerHost,getModel:function(){var Z={};return Object.assign({},jH9(W),(Z[W.as]=L.model[W.as],Z[W.indexAs]=L.model[W.indexAs],Z[W.itemsIndexAs]=L.model[W.indexAs],Z))},
hasInsertionPoint:W.templateInfo.hasInsertionPoint,thisCtx:W.eventListenerHost,methodInvocationRequirement:oE9,enabledSignal:W.stampingEnabled}).root;O={root:T,children:[],signalProxy:L};T=_.S(T.childNodes);for(var h=T.next();!h.done;h=T.next())O.children.push(h.value);T=(T=W.instances[b+1])?T.children[0]:W;(0,_.h1)((0,_.h1)(W).parentNode).insertBefore(O.root,T);W.instances[b]=O},jH9=function(W){if((W=W.parentSignalProxy.model)&&!W.hostElement){var O={},b;
for(b in W)W.hasOwnProperty(b)&&(O[b]=W[b]);return O}};
k_.prototype.itemForElement=function(W){var O=this,b=this.instances.find(function(T){return T.children.includes(W)});
if(b)return xb(this.parentSignalProxy.owner,function(){return b.signalProxy.getWithPath([O.as])})};
k_.prototype.indexForElement=function(W){var O=this.instances.findIndex(function(b){return b.children.includes(W)});
return O>=0?O:void 0};
_.Jq.Object.defineProperties(k_.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var W=this;return xb(this.parentSignalProxy.owner,function(){return FGf(W).getWithPath([])})},
set:function(W){yjq(this,W)}},
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}}});
_.Jq.Object.defineProperties(k_,{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",k_);var TW$,LuS;_.sZ=new _.MV("STATE_STORE_TOKEN");TW$=new _.MV("SELECT_TOKEN");LuS=new _.MV("DISPATCH_TOKEN");var FG1={getSelectFn:function(){var W;return(W=_.iq().resolve(_.OT(TW$)))!=null?W:NZX},
getDispatchFn:function(){var W;return(W=_.iq().resolve(_.OT(LuS)))!=null?W:_.$I().dispatch.bind(_.$I())},
getAppStore:function(){return _.iq().resolve(_.sZ)}},MCX,cj1=!1;var OZh=void 0;var d61=function(){};
d61.prototype.hasAttribute=function(W){if(W==="dir")return!1;if(W==="disable-upgrade"){var O,b;return(b=(O=this.hostElement)==null?void 0:O.hasAttribute("disable-upgrade"))!=null?b:!1}throw Error("Qg`"+W);};
d61.prototype.attributeChangedCallbackWrapper=function(W,O,b){if(W==="disable-upgrade"&&this.__isUpgradeDisabled&&b===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var T;((T=this.hostElement)!=null?T:this).isConnected&&this.connectedCallback()}else O===b||this.__isReflecting||this.attributeChangedCallback(W,O,b)};
d61.prototype.getExtraMethodsToForward=function(){for(var W=this,O=[],b=_.S(hNH),T=b.next(),L={};!T.done;L={tagName$jscomp$51:void 0,name$jscomp$534:void 0},T=b.next())L.name$jscomp$534=T.value,T=void 0,L.name$jscomp$534==="_setPendingProperty"?(L.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),T=function(h){return function(Z,a,m){P_(h.tagName$jscomp$51,Z,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return W._setPendingProperty(Z,a,m)}}(L)):T=function(h){return function(){return W[h.name$jscomp$534].apply(W,
_.PG(_.PD.apply(0,arguments)))}}(L),O.push([L.name$jscomp$534,
T]);return O};
for(var hNE=qgv(CFN((0,_.E9)(d61))),a7E=["disabled","disable-upgrade"],Spq=(0,_.E9)(function(){}),ZZ1=new Set(Object.getOwnPropertyNames(Spq.prototype)),AdQ=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.PG(ZZ1))),Ype=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),hNH=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),I7$=new Set([].concat(_.PG(Ype),_.PG(hNH),_.PG(ZZ1))),a7H=_.S(I7$),m6v=a7H.next();!m6v.done;m6v=a7H.next())zoQ.add(m6v.value);var w78={created:function(){KGE(this);this.initializeInjection()}};var vRe=!1,Wi=window.ShadyDOM,D61=["appendChild","insertBefore","removeChild","replaceChild"],rd8=[Node];Wi&&rd8.push(Wi.Wrapper);var f71,GET,$6O={};var bj=new Set,Oz="",VSO="";var ij,jD=new Set;var O7i=new Set("context didCallReady is info params signalProxy".split(" ")),b7P="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),j_Q="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Ypv=m1({entities:j38}),ERn=new MX(Ypv);var B0=function(){return _.A1.apply(this,arguments)||this};
_.R(B0,_.A1);_.Jq.Object.defineProperties(B0.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return ERn}}});
B0=_.t([_.XT()],B0);_.rB=[RL.prototype,B0.prototype];_.Dz={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var W=this,O={};setTimeout(function(){var b;return _.bX((b=W.hostElement)!=null?b:W,"yt-live-chat-add-tooltip-target",O)},0);
this.handler_=O.handler},
detached:function(){if(this.handler_){var W;this.handler_.removeElementFromSupportingTooltips((W=this.hostElement)!=null?W:this)}this.handler_=null}}};_.Ix=new _.MV("ICON_MANAGER_TOKEN");var w71=[48,20,18,16,15,13,12],vAh=new Map,l1T=new Set,A0h=new Set,UQP=new Set,wWh=new Set,XWh=new Set,PG1=new Promise(function(W){var O=!1,b=!1,T=!1,L=[],h=function(Z){if("detail"in Z)if(Z=Z.detail,Z.name==="yt-icons")eTO(Z),O=!0;else if(Z.name==="yt-sys-icons")eTO(Z),b=!0;else{var a;((a=Z.name)==null?0:a.includes("yt-sys-icons"))&&Z.size!==24&&(eTO(Z,!0),L.push(Z.size),L.length===w71.length&&(T=!0))}O&&b&&T&&(window.removeEventListener("iron-iconset-added",h),W())};
window.addEventListener("iron-iconset-added",h)}),RTO=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"]]);_.x_={};_.x_.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.NX,computeHref_:function(W,O){O=O===void 0?!1:O;if(!W||W.commandExecutorCommand)return null;var b=CjT(W,O);return O||b!==null?b?_.e("enable_polymer_resin")?_.l7(b).toString():b:null:(_.z5(new _.pu("computeHref was null",this.is,W)),null)},
computeOptionalHref_:function(W){return this.computeHref_(W,!0)},
computeNofollow_:function(W){return W?oyO(W)?"nofollow":null:null},
computeIcon_:function(W){return W&&W.iconType?_.Z6(W.iconType):""},
resolveCommand:function(W,O,b){O=O===void 0?{}:O;return _.mw(W,this.hostElement,O,b===void 0?!1:b)}};var X7n,zz;_.Ad5={};X7n=null;
zz={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_=pPh(this.viewroot));_.qe(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var W=this;this.unobserve_();if(_.e("kevlar_vimio_use_shared_monitor"))s_T(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 O=[];this.visibilityOptionVisible_&&O.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&O.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&O.push(this.visibilityObserver.observe(this.hostElement,function(){return W.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=O}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){gAP(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 W=_.sM(this.parentNode,function(b){var T,L=(T=b.polymerController)!=null?T:b;return!!L.getVisibilityObserverForChild&&L.getVisibilityObserverForChild()},!0);
if(W){var O;this.localVisibilityObserver_=((O=W.polymerController)!=null?O:W).getVisibilityObserverForChild()}else X7n||(X7n=pPh()),this.localVisibilityObserver_=X7n;return this.localVisibilityObserver_},visibilityCallback:function(W){W?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.e("kevlar_use_vimio_behavior")||(zz={});zz&&!_.e("kevlar_use_vimio_behavior")&&(delete zz.attached,delete zz.detached);_.Ad5.YtVisibilityObserverBehavior=[zz];var U67={};U67.YtVisualElementBehavior=[_.Ad5.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.e("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.e("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var W=this.getScreenLayer&&this.getScreenLayer(),O=this.getVisibilityLogger();O&&O.reportShown(this,void 0,W)}},
onHidden:function(){if(_.e("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.e("kevlar_vimio_use_shared_monitor")){var W=this.getScreenLayer&&this.getScreenLayer(),O=this.getVisibilityLogger();O&&O.reportHidden(this,void 0,W)}},
getVisibilityLogger:function(){return _.e("kevlar_use_vimio_behavior")?_.Ez():null},
shouldSkipLogging:function(){if(_.Cv("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var W=this.getParentRenderer&&this.getParentRenderer();if(!W)return!1;var O,b=(O=W.polymerController)!=null?O:W;if(!b.data)return!1;W=this.data.trackingParams;W=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:W;var T;O=(T=b.data)==null?void 0:T.trackingParams;var L,h;O=((L=b.data)==null?0:L.loggingDirectives)?(h=b.data)==null?void 0:h.loggingDirectives.trackingParams:O;return W&&O&&W===
O}}];var DQ8=new Map,pb;var XpO=function(W){this.layer=W},Bm=function(W){return W.layer!==void 0?W.layer:W.parent?Bm(W.parent):W.layer=0};var f1X;_.F={};f1X=0;_.F.YtRendererBehavior=[_.x_.YtComponentBehavior,U67.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_:_.e("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var W,O;(O=(W=this.monitorScrollElement)!=null?W:this.hostElement)==null||O.removeEventListener("scroll",_.Ii(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();BPX(this.hostElement);sb1(_.Ae(),this.hostElement);uX.delete(this.hostElement)},
registerRenderer:function(W){var O;((O=W.polymerController)!=null?O:W).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(W),this.markDirty())},
unregisterRenderer_:function(W){this.useVimio_||(this.childCache_.delete(W),this.markDirty())},
attached:function(){var W=this,O=this.getParentRenderer();if(O){var b,T,L;(T=(b=(L=O.polymerController)!=null?L:O).registerRenderer)==null||T.call(b,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var h,Z;(Z=(h=this.monitorScrollElement)!=null?h:this.hostElement)==null||Z.addEventListener("scroll",_.Ii(this,this.onScroll))}_.sF.addJob(function(){xQe(W.hostElement)},8);
b=new XpO(this.screenLayer||void 0);(O=J3(O))&&O.layerNode&&(b.parent=O.layerNode);O={};KcO(this.hostElement,(O.isRenderer=!0,O.layerNode=b,O[rt]=this.data,O))},
getParentRenderer:function(){for(var W=this.hostElement.parentNode,O,b;W&&((O=J3(W))==null||!O.isRenderer)&&!((b=W.polymerController)!=null?b:W).isRenderer_;)W=W.parentNode||W.host;return W},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.e("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.qC("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.e("debug_web_ve_data")&&this.data.trackingParams){var W="";try{W=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(b){_.Dt(b)}if(W){var O=W1X(W,1);O!==void 0&&(this.hostElement.dataset.veIndex=String(O));W=W1X(W,2);
W!==void 0&&(this.hostElement.dataset.ve=String(W))}}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,_.e("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Pi(this.data.loggingDirectives.trackingParams)),this.visualElement=_.wG(_.A4(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var W=this.data.targetId;_.rDN(_.Ae(),W,this.hostElement)}else sb1(_.Ae(),this.hostElement)},
onScroll:function(){var W=Date.now();W-this.lastHandledScroll_<50||(this.lastHandledScroll_=W,this.markDirty())},
markDirty:function(){_.e("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():GYi(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var W=this.getParentRenderer();if(W&&(W=J3(W))&&W.layerNode)return Bm(W.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.PG(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++)this.sendImpression(this.data.impressionEndpoints[W]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(W){W.clickTrackingParams&&delete W.clickTrackingParams;var O,b;(W==null?0:(O=W.commandMetadata)==null?0:(b=O.webCommandMetadata)==null?0:b.sendPost)?_.da(this.hostElement,[W,{impression:!0}]):_.Sx(this.hostElement,[W],this.hostElement)},
logExplicitClick:function(W){var O=_.Bb(this.getScreenLayer());if(O){var b,T=(b=W.polymerController)!=null?b:W;W=T.visualElement;T=T.trackingParams||T.clickTrackingParams;!W&&T&&(W=_.Pi(T));W&&_.Vw(O,W)}}}];var l71={},Cm=function(){return _.A1.apply(this,arguments)||this};
_.R(Cm,_.A1);Cm.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Cm.prototype.onPdgItemBehaviorClick=Cm.prototype.onPdgItemBehaviorClick;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Cm.prototype,"data",void 0);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Cm.prototype,"onPdgItemBehaviorClick",null);Cm=_.t([_.XT()],Cm);l71.YtPdgLiveChatItemBehavior=[Cm.prototype,_.F.YtRendererBehavior];var eNH;var PVv;_.qh={};_.qh.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var nm=function(){var W=F2.apply(this,arguments)||this;W.switchTemplateAtRegistration=!1;return W};
_.R(nm,F2);nm.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||VZX(this),_.lyT(this,"doRender"),this.doRender())};
nm.prototype.debounceRender=function(){this.templatingFn&&_.n2(this,"doRender",this.doRender)};
nm.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Dt(Error("$g"))};
nm.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
nm=_.t([EqO()],nm);var p7$=nm;var RNw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,fm={},J0q=(fm[1]={filterString:null,isUnwrappable:null,unwrap:null},fm[2]={filterString:function(W,O,b){return hI(b)},
isUnwrappable:function(W){return W instanceof gC},
unwrap:function(W){return Q0(W)}},fm[3]={filterString:function(W,O,b){return RNw.test(b)?b:Xy.toString()},
isUnwrappable:function(W){return Y4(W)},
unwrap:function(W){return _.EB(W)}},fm[4]={filterString:function(){return Xy.toString()},
isUnwrappable:function(W){return W instanceof hv},
unwrap:function(W){return _.Zd(W).toString()}},fm[5]={filterString:function(W,O,b){return b},
isUnwrappable:function(W){return typeof W==="string"},
unwrap:function(W){return W.toString()}},fm[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(W){return W instanceof _.zb},
unwrap:function(W){return qI(W)}},fm[8]={filterString:function(W,O,b){b=String(b).toLowerCase();
return IfQ(W,O,b)?b:"zClosurez"},
isUnwrappable:null,unwrap:null},fm[10]={filterString:null,isUnwrappable:null,unwrap:null},fm);yj[qr["default"]]=FZi;var y0O=[];var hBX=OYh("A"),ScE=OYh("BUTTON"),RM=OYh("DIV"),ZG2=OYh("LABEL");(function(){var W=yH;yH=function(O){W==null||W(O);gG(function(){for(var b=0;b<O.length;b++)WzX(O[b])})}})();var Gz=function(){var W=_.A1.apply(this,arguments)||this;W.hasUnmounted=!1;return W};
_.R(Gz,_.A1);_.d=Gz.prototype;_.d.beforeRegister=function(){var W=this.doIdomRender;this.templatingFn?_.Dt(Error("Zg")):(this.templatingFn=W,this.switchTemplateAtRegistration=!0,uj1(this))};
_.d.attached=function(){};
_.d.detached=function(){WzX(this.hostElement)};
_.d.renderIdom=function(){throw Error("bh");};
_.d.doIdomRender=function(){var W=this;uFT(this.hostElement,function(){W.renderIdom()})};
Gz=_.t([_.XT()],Gz);var Kuq=[p7$.prototype,Gz.prototype];var vRv,gRw=function(){return vRv!==void 0?vRv:vRv=document.createElement("template")};
document.head.appendChild(gRw().content);var oRH;var QHU,kE9=function(){return QHU!==void 0?QHU:QHU=document.createElement("template")};
document.head.appendChild(kE9().content);var sHU;var BWq=document.head,rd1=BWq.appendChild,D6f;if(sHU===void 0){var x6v=document.createElement("template");_.v(x6v,"\x3c!--css-build:shady--\x3e");x6v.content.insertBefore(kE9().content.cloneNode(!0),x6v.content.firstChild);sHU=x6v}D6f=sHU;rd1.call(BWq,D6f.content);var zNw,CVN=function(){return zNw!==void 0?zNw:zNw=document.createElement("template")};
document.head.appendChild(CVN().content);var qp7;var nRH=document.head,f7f=nRH.appendChild,GE$;if(qp7===void 0){var HZU=document.createElement("template");_.v(HZU,"\x3c!--css-build:shady--\x3e");HZU.content.insertBefore(CVN().content.cloneNode(!0),HZU.content.firstChild);qp7=HZU}GE$=qp7;f7f.call(nRH,GE$.content);var tS$=document.head,$6U=tS$.appendChild,VSU;if(oRH===void 0){var NWU=document.createElement("template");_.v(NWU,"\x3c!--css-build:shady--\x3e");NWU.content.insertBefore(gRw().content.cloneNode(!0),NWU.content.firstChild);oRH=NWU}VSU=oRH;$6U.call(tS$,VSU.content);var MSL,un5=function(){return MSL!==void 0?MSL:MSL=document.createElement("template")};
document.head.appendChild(un5().content);var Jdw;_.t4=new _.MV("DARK_THEME_TOKEN");var NMQ=new _.J("accessibilityProperties");var VVO=new _.J("layoutProperties");var MVO=new _.J("imageType");var cdf={};if("ytAttributedStringLinkHoverColor"in cdf)throw Error("eh`ytAttributedStringLinkHoverColor");(function(W,O){cdf[W]="value"in O&&"unit"in O?LzP(W,O):function(b){try{return O(b)}catch(T){throw Error("ch`"+W+"`"+T.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var FuL=function(W){var O=this;this.holdTime=W===void 0?500:W;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(b){var T=new CustomEvent("LONG_PRESS"),L;(L=b.changedTouches[0].target)==null||L.dispatchEvent(T)};
this.ontouchstart=function(b){O.longPressTimeout=_.pp(_.sF,function(){O.onlongpress(b);O.longPressOccurred=!0},O.holdTime)};
this.ontouchmove=function(){_.sF.cancelJob(O.longPressTimeout);O.longPressTimeout=NaN;O.longPressOccurred=!1;O.moveOccurred=!0};
this.ontouchend=function(b){if(O.longPressTimeout&&!O.longPressOccurred&&!O.moveOccurred){var T;(T=b.changedTouches[0].target)==null||T.dispatchEvent(new Event("click"))}_.sF.cancelJob(O.longPressTimeout);O.longPressTimeout=NaN;O.longPressOccurred=!1;O.moveOccurred=!1}};var gU8=function(W,O){FuL.call(this,O);var b=this;this.callback=W;this.onlongpress=function(T){var L;(L=b.callback)==null||L.call(b,T)}};
_.R(gU8,FuL);var oUh=function(W,O){var b=Object.assign({},O);W=_.S(new Map([["ontouchstart",W.ontouchstart],["ontouchend",W.ontouchend],["ontouchmove",W.ontouchmove]]));for(var T=W.next(),L={};!T.done;L={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},T=W.next()){var h=_.S(T.value);T=h.next().value;h=h.next().value;L.eventName$jscomp$85=T;L.eventHandler$jscomp$1=h;O[L.eventName$jscomp$85]=function(Z){return function(a){var m;(m=b[Z.eventName$jscomp$85])==null||m.call(b,a);(0,Z.eventHandler$jscomp$1)(a)}}(L)}};_.bq=new _.MV("COMMAND_HANDLER_TOKEN");var hwe=new _.J("parallelCommand");var IUe=new _.J("performOnceCommand");var ZYq=new _.J("serialCommand");var aU8=void 0;var ydw=function(){this.data=[]};
ydw.prototype.push=function(W){this.data.push(W)};var O8={};_.wu(O8,void 0,"sgPmTd");_.wu(null,void 0,"jypsq");var mOE=new ydw;var lU8=[a2T,m42,YyP,wz8,Em1,I22,Ai8,XzO];var tV8=new _.J("bracketTextDecorator");var Hi=new _.J("highlightTextDecorator");_.VE=new _.MV("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var qnX=function(){},WZL;
(WZL=window.requestIdleCallback)==null||WZL.bind(window);var fUX={calledOnce:!1,state:"visible"},nUe={calledOnce:!1,state:"hidden"};var O7S=new _.MV("ICON_RENDERER_TOKEN"),i77=new _.MV("ICON_WIZ_COMPONENT_TOKEN");_.Ps=_.J1(function(W){var O=W.icon;var b=W.active;var T=W.className;var L=W.style;var h=W.dataSelected;var Z=W.dataDisabled;var a=W.role;var m=W.animateIcon;var w=W.themeOverride;var A=W.ariaHidden;var X=W.ariaExpanded;var l=W.ariaLabel;var p=W.id;var K=W.size;var k=W.iconFilter;return _.E(_.U,{cond:O,then:function(){var r=_.iq().resolve(i77);return _.E(r,{icon:O,dataSelected:h,dataDisabled:Z,animateIcon:m,themeOverride:w,ariaExpanded:X,id:p,active:b,size:K,role:a,className:T,ariaHidden:A,ariaLabel:l,
style:function(){return L!=null&&L()||K==null||!K()?L==null?void 0:L():"width: "+(K==null?void 0:K())+"px;height: "+((K==null?void 0:K())+"px;")},
iconFilter:k})}})},"b");
_.Ps.idomCompat=!0;var Z8i=window.devicePixelRatio||1;var YWq=new Map([["yt_outline_bag_black_24","bag"]]);var H0=function(W){var O=this;this.margin=.1;this.whenInViewportWithMargin=W;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){O.requestScan()});
window.addEventListener("touchend",function(){O.requestScan()});
window.addEventListener("updateui",function(){O.requestScan()});
var b=new _.JI((0,_.K5)(this.requestScan,this),100);window.addEventListener("scroll",function(){b.fire()},!0);
window.addEventListener("resize",(0,_.K5)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){O.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.K5)(this.requestScan,this))};
H0.prototype.observe=function(W){this.observationTargets.includes(W)||this.observationTargets.push(W)};
H0.prototype.unobserve=function(W){this.observationTargets=this.observationTargets.filter(function(O){return O!==W})};
H0.prototype.requestScan=function(){var W=this;this.scanRequested||(gG(function(){b7z(W)}),this.scanRequested=!0)};
var b7z=function(W){var O=(1+W.margin)*(document.documentElement.clientHeight||window.innerHeight);W.observationTargets=W.observationTargets.filter(function(b){var T=b.getBoundingClientRect();(T=O>T.top&&!!T.height)&&W.whenInViewportWithMargin(b);return!T&&b.parentNode});
W.scanRequested=!1};
H0.prototype.disconnect=function(){this.observationTargets=[]};var j_5,LZw;j_5=_.S(_.wu(Xeh(),void 0,"O3X2wd"));_.TP5=j_5.next().value;LZw=j_5.next().value;window.addEventListener("resize",function(){LZw(Xeh())});var dQN={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},hTn=void 0,SqL=window.innerWidth,Z75=window.innerHeight;window.addEventListener("resize",function(){hTn=void 0});var I19;if("IntersectionObserver"in window)I19=eSh();else{if(hTn===void 0){var a15;a15="matchMedia"in window?window.matchMedia(dQN.landscape+","+dQN.portrait).matches:void 0;hTn=a15!==void 0?a15:SqL>=930&&Z75>=550||SqL>=550&&Z75>=930}I19=hTn?{observe:function(W){gG(function(){var O;(O=W.onViewportEntered)==null||O.call(W)})},
unobserve:function(){}}:new H0(function(W){gG(function(){var O;
(O=W.onViewportEntered)==null||O.call(W)})})}var U3E=I19;var mQn=_.J1(function(W){var O=!1,b=_.uy(function(T){_.so(function(){O=!0;T.onload=null})});
_.kb(function(){var T,L=(T=W.data)==null?void 0:T.call(W),h,Z=(h=W.getSrc)==null?void 0:h.call(W).cb,a;T=(a=W.config)==null?void 0:a.call(W);if(a=b.value)if(h=function(w,A){if(!O)return Z?Z(w,A):w},RSq(a,T),_.e("web_image_dont_reload_same_src")&&peQ(a,L,h))_.e("web_image_dont_reload_same_src_simulate_load")&&a.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var m;P$q(a,L||null,h,T,(m=W.lazy)==null?void 0:m.call(W))}});
return _.E("img",{el:b})},"c");
mQn.idomCompat=!0;_.uj=_.J1(function(W){var O=function(){var b,T=W.data(),L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE,Qh,KE,fE,r8,nE,tX;var yh={contentMode:(L=W.contentMode)==null?void 0:L.call(W),loadedClass:(h=W.loadedClass)==null?void 0:h.call(W),isPreloaded:(Z=W.isPreloaded)==null?void 0:Z.call(W),notifyOnLoaded:(a=W.notifyOnLoaded)==null?void 0:a.call(W),notifyOnUnloaded:(m=W.notifyOnUnloaded)==null?void 0:m.call(W),preferredThumbnail:(w=W.preferredThumbnail)==null?void 0:w.call(W),preserveHeight:(A=W.preserveHeight)==
null?void 0:A.call(W),preserveWidth:(X=W.preserveWidth)==null?void 0:X.call(W),objectPosition:(l=W.objectPosition)==null?void 0:l.call(W),targetWidth:(p=W.targetWidth)==null?void 0:p.call(W),targetHeight:(K=W.targetHeight)==null?void 0:K.call(W),shouldShowPlaceholder:(k=W.shouldShowPlaceholder)==null?void 0:k.call(W),useWidth:(r=W.useWidth)==null?void 0:r.call(W),alt:(q=W.alt)==null?void 0:q.call(W),className:(f=W.className)==null?void 0:f.call(W),onerror:W.onerror,onload:W.onload,style$:((M=W.style$)==
null?void 0:M.call(W))||((V=W.style)==null?void 0:V.call(W)),color:(jQ=W.color)==null?void 0:jQ.call(W),width:(y=W.width)==null?void 0:y.call(W),height:(d8=W.height)==null?void 0:d8.call(W),"aria-hidden$":(nE=(pE=W["aria-hidden$"])==null?void 0:pE.call(W))!=null?nE:(Qh=W.ariaHidden)==null?void 0:Qh.call(W),draggable:(KE=W.draggable)==null?void 0:KE.call(W),"data-disabled$":(tX=(fE=W["data-disabled$"])==null?void 0:fE.call(W))!=null?tX:(r8=W.dataDisabled)==null?void 0:r8.call(W)};return gth(T,yh,(b=
W.hideOn404)==null?void 0:b.call(W))};
return _.E(_.vU,null,_.E(_.RW,{when:function(){var b;return((b=O())==null?void 0:b.type)==="image"}},function(){return _.E(mQn,{data:function(){return O().image},
getSrc:{cb:function(b,T){var L=O().image.sources,h=O().config.isPreloaded,Z=O().config.useWidth,a=O().config.targetWidth,m=O().config.targetHeight,w=O().config.preferredThumbnail;return _.IKT(T,L,h,Z,a,m,w)||""}},
config:function(){var b=O().config,T;for(T in b)b[T]===void 0&&delete b[T];return b},
lazy:W.renderLazy})}),_.E(_.RW,{when:function(){var b;
return((b=O())==null?void 0:b.type)==="icon"}},function(){return _.E(_.Ps,{icon:function(){return O().iconName},
role:function(){return O().config.role},
className:function(){return O().config.className},
style:function(){return O().config.style$+";width: "+(O().config.width+"px;height: ")+(O().config.height+"px;color: ")+(O().config.color+";")},
ariaLabel:function(){return O().config["aria-label$"]},
ariaHidden:function(){return O().config["aria-hidden$"]},
dataDisabled:function(){return O().config["data-disabled$"]}})}))},"d");
_.uj.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var Yqq=function(W){return function(O){return _.E(a3e,null,function(){var b=O.data(),T=_.ru(O.config);return _.E(cZ,null,function(){return void W(b,T)})})}}(sF8),QFe=_.J1(function(W){var O=function(T){var L,h=_.ci(function(l){L=Bj(function(){for(var p=_.S(A()),K=p.next();!K.done;K=p.next()){K=BVQ(K.value);
K=typeof K==="string"?document.createTextNode(K):K;if(!(K instanceof Node)){p=new _.pu("Part is not a node",K,typeof K);_.Dt(p);break}l.appendChild(K)}})}),Z=FF(function(){return JnX(T())},{isEqual:otE}),a=_.Me(W.config),m=function(){var l,p=Z();
return!((l=a())==null||!l.ariaLabel)||!(p.commandRuns&&p.commandRuns.length!==0||p.paragraphStyleRuns&&p.paragraphStyleRuns.length!==0)},w=FF(a,{isEqual:D3i}),A=function(){var l=uaQ(Z(),w());
Fz8(l,w());return Z().content?jF8(Z().content,l).parts:[]},X=!0;
_.kb(function(){Z();w();if(X)X=!1;else{var l=A();Promise.resolve().then(function(){var p=h.value;if(p){p.innerText="";var K;(K=L)==null||K();L=_.g0(p,function(){return _.E(ryq,{parts:l})})}})}});
return _.E("span",{el:h,class:function(){return Z()&&rne(Z(),a())},
dir:function(){var l;return((l=a())==null?0:l.userInput)?"auto":void 0},
"aria-label":function(){var l;return m()?(l=a())==null?void 0:l.ariaLabel:void 0},
role:function(){return m()?"text":void 0}})},b;
return((b=W.config)==null?0:b.renderedFromFormattedString)?O(W.text):_.E(_.U,{cond:W.text,then:O})},"e");
QFe.idomCompat=!0;_.uw=_.J1(function(W){var O=_.Me(W.text),b=x3X(W);W.renderedFromFormattedString!==void 0&&(b.renderedFromFormattedString=!0);return _.e("attr_string_reactive")?_.E(QFe,{text:O,config:b}):_.E(_.U,{cond:function(){var T;return O()&&((T=JnX(O()))==null?void 0:T.content)},
then:function(){return _.E(Yqq,{data:W.text,config:b})},
debugInstance:"Apcuac"})},"f");
_.uw.idomCompat=!0;var C$e=function(W,O,b){O=O===void 0?"unknown":O;b=b===void 0?{}:b;_.pu.call(this,W+" ("+O+")",Object.assign({},{name:"YtWcwError",tagName:O},b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(C$e,_.pu);_.t9O=new WeakMap;_.H88=!1;var GIq,$31,fKP;_.te=Symbol("gh");_.Ws=Symbol("hh");GIq=Symbol("ih");$31=new Set(Object.getOwnPropertyNames(Element.prototype));fKP=Symbol("jh");var EA7=_.J1(function(W){return _.E("yt-attributed-string",{"aria-label":W.ariaLabel,hidden:W.hidden,id:W.id,class:W.className,"force-default-style":W.forceDefaultStyle},_.E(_.uw,{text:W.data,ariaLabel:W.ariaLabel,ellipsisTruncate:W.ellipsisTruncate,isOverlay:W.isOverlay,linkInheritColor:W.linkInheritColor,noPreWrap:W.noPreWrap,noWrap:W.noWrap,userInput:W.userInput,noEndpoints:W.noEndpoints,headerRuns:W.headerRuns}))},"g");
_.e("web_wiz_attributed_string")&&_.O1(EA7,"yt-attributed-string",{props:{ariaHidden:_.te,ariaLabel:_.te,className:_.te,ellipsisTruncate:_.te,isOverlay:_.te,linkInheritColor:_.te,noEndpoints:_.te,noStyleRuns:_.te,noLinkColor:_.te,noPreWrap:_.te,noWrap:_.te,skipOnClick:_.te,userInput:_.te,headerRuns:_.te,id:_.te,data:_.te,hidden:_.te,forceDefaultStyle:_.te,text:_.Ws,stopPropagation:_.Ws,disableUpgrade:_.Ws,disable:_.Ws,slot:_.Ws}});var $_=function(){return _.n.apply(this,arguments)||this};
_.R($_,_.n);$_.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},sF8(this.data,this.config))};
_.t([_.D(Kuq),_.N("design:type",Object)],$_.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$_.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$_.prototype,"ariaLabel",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"disable",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"ellipsisTruncate",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"isOverlay",void 0);
_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"linkInheritColor",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"noPreWrap",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"noWrap",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"userInput",void 0);_.t([_.C(),_.N("design:type",Boolean)],$_.prototype,"noEndpoints",void 0);_.t([_.C(),_.N("design:type",Array)],$_.prototype,"headerRuns",void 0);
$_=_.t([_.sl({is:"yt-attributed-string",disableElementRegistration:!0})],$_);
_.e("web_wiz_attributed_string")||_.H($_,"yt-attributed-string",function(){if(Jdw===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
W.content.insertBefore(un5().content.cloneNode(!0),W.content.firstChild);Jdw=W}W=Jdw;return W},{mode:2});var wWq,A0q,FVQ;wWq=function(){this.firstThumbnailLoaded=!1};
_.XWq=function(){A0q||(A0q=new wWq);return A0q};
FVQ=function(W){var O=_.XWq();O.firstThumbnailLoaded||(O.firstThumbnailLoaded=!0,_.Bg("ftl",W))};
wWq.prototype.reset=function(){this.firstThumbnailLoaded=!1};var NVi=0,cy2=new WeakMap,ulq=0,TB=new Set;var UQz,l1$=function(){return UQz!==void 0?UQz:UQz=document.createElement("template")};
document.head.appendChild(l1$().content);var eTU;var i$X,jAX,V4;_.hP=_.i1.caches;V4=function(){};
V4.prototype.open=function(W){return _.hP.open(PGf(W))};
V4.prototype.has=function(W){return _.hP.has(PGf(W))};
V4.prototype.delete=function(W){return _.hP.delete(PGf(W))};
V4.prototype.match=function(W,O){var b=this,T,L,h,Z,a,m;return _.I(function(w){switch(w.nextAddress){case 1:return _.Y(w,b.keys(),2);case 2:T=w.yieldResult,L=_.S(T),h=L.next();case 3:if(h.done){w.jumpTo(5);break}Z=h.value;return _.Y(w,b.open(Z),6);case 6:return a=w.yieldResult,_.Y(w,a.match(W,O),7);case 7:if(m=w.yieldResult)return w.return(m);h=L.next();w.jumpTo(3);break;case 5:return w.return()}})};
var Tye=function(){};
_.R(Tye,V4);var PGf=function(W){if(W.includes(":"))throw Error("mh`"+W);return W+":"+_.eJ("CacheStorage get")};
Tye.prototype.keys=function(){var W,O,b,T,L,h,Z,a,m;return _.I(function(w){if(w.nextAddress==1)return W=[],O=_.eJ("CacheStorage keys"),_.Y(w,_.hP.keys(),2);b=w.yieldResult;T=_.S(b);for(L=T.next();!L.done;L=T.next())h=L.value,Z=_.O$P(h),a=Z.originalName,m=Z.datasyncId,m===O&&W.push(a);return w.return(W)})};var Nh=function(){var W=_.n.apply(this,arguments)||this;W.objectURL=null;W.loadTime=Infinity;return W};
_.R(Nh,_.n);_.d=Nh.prototype;_.d.renderIdom=function(){WsX(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("ph");this.setConfig();this.config&&KVh(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.d.objectFitToContentMode=function(W){switch(W){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.d.logThumbnailFailureVe=function(){var W=_.gd(197497);_.jn(_.A4(),W);var O=_.Bb();O&&W&&O&&_.t3(O,[W])};
_.d.loadImageFromCacheIfExists=function(W){var O=this,b=W.target;(b==null?0:b.src)&&dDX(b.src).then(function(T){O.objectURL=_.eL(T).toString();O.setSrc(b,O.objectURL)}).catch(function(){})};
_.d.onError=function(W){var O=this;if(_.e("web_use_cache_for_image_fallback")){var b=W.target;b&&dDX(b.src).then(function(T){O.objectURL=_.eL(T).toString();O.setSrc(b,O.objectURL)}).catch(function(){_.e("kevlar_woffle_log_thumbnail_failure_ve")&&O.logThumbnailFailureVe();
_.e("kevlar_woffle_fallback_image")&&O.setSrc(b,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.d.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.d.setConfig=function(){var W=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(O){W.loadImageFromCacheIfExists(O);W.revokeObjectURL();yy1(W.hostElement)},
onerror:function(O){W.onError(O)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.e("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.d.setSrc=function(W,O){O&&(W.src=O)};
_.t([_.D(Kuq),_.N("design:type",Object)],Nh.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Nh.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Nh.prototype,"alt",void 0);_.t([_.C(),_.N("design:type",Boolean)],Nh.prototype,"ftlEligible",void 0);_.t([_.C(),_.N("design:type",Number)],Nh.prototype,"height",void 0);_.t([_.C(),_.N("design:type",Boolean)],Nh.prototype,"notifyOnLoaded",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Nh.prototype,"notifyOnUnloaded",void 0);_.t([_.C(),_.N("design:type",String)],Nh.prototype,"objectFit",void 0);_.t([_.C(),_.N("design:type",String)],Nh.prototype,"objectPosition",void 0);_.t([_.C(),_.N("design:type",String)],Nh.prototype,"preferredThumbnail",void 0);_.t([_.C(),_.N("design:type",Boolean)],Nh.prototype,"preserveHeight",void 0);_.t([_.C(),_.N("design:type",Boolean)],Nh.prototype,"preserveWidth",void 0);
_.t([_.C({value:!0}),_.N("design:type",Boolean)],Nh.prototype,"useWidth",void 0);_.t([_.C({value:function(){return!_.qC("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.N("design:type",Boolean)],Nh.prototype,"shouldRenderLazy",void 0);_.t([_.C(),_.N("design:type",Number)],Nh.prototype,"width",void 0);Nh=_.t([_.sl({is:"yt-image",disableElementRegistration:!0})],Nh);
_.H(Nh,"yt-image",function(){if(eTU===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(l1$().content.cloneNode(!0),W.content.firstChild);
eTU=W}W=eTU;return W},{mode:2});var Mh=function(){return _.n.apply(this,arguments)||this};
_.R(Mh,_.n);Mh.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var W=_.xy(this.data.onVisibleCommand);W&&this.ytComponentBehavior.resolveCommand(W)}};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],Mh.prototype,"ytVisibilityBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Mh.prototype,"data",void 0);Mh=_.t([_.sl({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Mh);
_.H(Mh,"yt-bumper-user-edu-content-view-model",function(){if(PVv===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;eNH===void 0&&(eNH=document.createElement("template"));var T=eNH;b.call(O,T.content.cloneNode(!0),W.content.firstChild);PVv=W}W=PVv;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var pWL;var RTU,KZv=function(){if(RTU!==void 0)return RTU;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;pWL===void 0&&(pWL=document.createElement("template"));var T=pWL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return RTU=W};var vAq;_.uH={};vAq=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"]);_.uH.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var W=this.getContext_();return W?W.getTaskManager():_.sF},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var W=_.bX(this.hostElement,"yt-get-context-provider",{});W.detail&&W.detail.contextProvider?this.cachedProviderNode_=W.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return vAq.has(this.hostElement.localName)},
getNetworkManager:function(){var W=this.getContext_();if(W)return W.getNetworkManager()}};var mDO,gAz,Q_S,oAH;_.Je=function(W){var O=gAz.get(W);if(O&&(O=O.pop()))return oAH++,O;Q_S++;try{var b=document.createElement(W)}catch(T){throw new _.pu("ElementPool failed to create element",W,T.message);}return b};
mDO=function(W){var O=W.is;if(O){var b=gAz.get(O);b||(b=[],gAz.set(O,b));var T=_.Cv("ELEMENT_POOL_CONFIG")||{};b.length>=(T[O]!==void 0?T[O]:_.Cv("ELEMENT_POOL_DEFAULT_CAP",0))||b.push(W)}else _.z5(new _.pu("Element pool should only handle custom elements:",W.nodeName))};
gAz=new Map;Q_S=0;oAH=0;var SE=new WeakMap,a_h=new WeakMap;var s_$;_.c0=function(W,O,b){b=b===void 0?_.KD():b;this.JSC$11689_defaultPriority=W;this.signal=O;this.scheduler=b;this.nextJobDescriptor=0;this.JSC$11689_parkedJobs=[];this.scheduledJobs=new Map};
_.FX=function(W,O){if(O){var b=_.BH();W.signal&&!_.rk(b,W.signal)?(b.addListener(W.signal,function(){W.processSignal()}),W.JSC$11689_parkedJobs.push({job:O,
priority:void 0})):kYq(W,O)}};
s_$=function(W,O){if(O!==W.JSC$11689_defaultPriority){W.JSC$11689_defaultPriority=O;for(var b=_.S(W.scheduledJobs.values()),T=b.next();!T.done;T=b.next())T=T.value,W.scheduler.cancelJob(T.jobId),T.jobId=W.scheduler.addJob(T.jobWrapper,O)}};
_.c0.prototype.flushJobs=function(){s_$(this,10);this.processSignal()};
_.c0.prototype.cancel=function(){for(var W=_.S(this.scheduledJobs),O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;this.scheduler.cancelJob(b.jobId);this.scheduledJobs.delete(O)}this.JSC$11689_parkedJobs=[]};
_.c0.prototype.processSignal=function(){for(var W=_.S(this.JSC$11689_parkedJobs),O=W.next();!O.done;O=W.next())O=O.value,kYq(this,O.job,O.priority);this.JSC$11689_parkedJobs=[]};
var kYq=function(W,O,b){b=b||W.JSC$11689_defaultPriority;if(b===10)Ld(O);else{var T=W.nextJobDescriptor++,L=function(){O();W.scheduledJobs.delete(T)},h=W.scheduler.addJob(L,b);
W.scheduledJobs.set(T,{jobWrapper:L,jobId:h,priority:b})}};_.bO(AGO);var XYO={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};EGq({beforeVisit:function(W){if(bj.has(W.type)){var O;(O=W.props).idomKey!=null||(O.idomKey=W.type)}else W.type.TAG_NAME&&(Oz=W.type.TAG_NAME)},
afterRender:function(W,O){var b;Oz=(b=O==null?void 0:O.type)!=null?b:""},
didPatch:function(){Oz=""}});var BPn;_.y4={};BPn={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.y4.YtRendererstamperBehavior=[_.uH.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 W in this.stampDom){var O=this.stampDom[W];O&&O.id&&this.addReactiveSchema({type:"observe",method:{methodName:SUq(O.id),args:[{type:"wildcard",path:W}]}})}else{(W=(this.constructor.generatedFrom||this).observers)||(W=[]);for(O in this.stampDom){var b=this.stampDom[O];b&&b.id&&W.push(SUq(b.id)+"("+O+".*)")}this.constructor.generatedFrom.observers=W}},
addStampDomObserverFns_:function(){for(var W in this.stampDom){var O=this.stampDom[W];O.id?(this[SUq(O.id)]=this.rendererStamperObserver_.bind(this,W,O.id),this.hasDataPath_[W]=!1):(O=new _.pu("Bad rendererstamper config",this.is+":"+W),_.Dt(O))}},
rendererStamperObserver_:function(W,O,b){if(b.path==W){if(b.value===void 0&&!this.hasDataPath_[W])return;this.hasDataPath_[W]=b.value!==void 0}this.rendererStamperApplyChangeRecord_(W,O,b)},
rendererStamperApplyChangeRecord_:function(W,O,b){var T=this.renderJobsMap_[O],L=null;W==b.path?(b=b.value,_.j5(b)||(b=b===void 0||b===null?[]:[b]),W=this.stampDom[W],W.mapping&&(L=this.stampDomArray_.bind(this,b,O,W.mapping,W.reuseComponents,W.events,W.stamperStableList)),T&&T.cancel(),b=W.usePageScheduler?this.getTaskManager():void 0,T||W.initialRenderPriority==void 0)?W.renderPriority==void 0||T||(T=new _.c0(W.renderPriority,W.waitForSignal,b),this.renderJobsMap_[O]=T):(T=new _.c0(W.initialRenderPriority,
W.waitForSignal,b),this.renderJobsMap_[O]=T,L=function(h,Z){h();s_$(Z,10)}.bind(this,L,T)):L=W+".splices"==b.path?this.stampDomArraySplices_.bind(this,W,O,b.value):this.forwardRendererStamperChanges_.bind(this,W,O,b);
T?_.FX(T,L):L()},
forwardRendererStamperChanges_:function(W,O,b){var T=b.path.slice(W.length+1),L=this.getStampContainer_(O),h=T.indexOf("."),Z=T.substring(0,h),a=!1,m=0,w=parseInt(Z,0);if(Z[0]=="#"){a=parseInt(Z.substring(1),0);w=this.get(W);var A=this.get([W,Z]);w[a]==A?m=a:m=w.indexOf(A);a=!0}else isNaN(w)||(m=w,a=!0);a&&(T=T.substring(Z.length+1),h=T.indexOf("."));Z=_.Rs(L).children[m];var X;if(L=(X=Z==null?void 0:Z.polymerController)!=null?X:Z)T="data"+T.slice(h),typeof L.notifyPath!=="function"?_.z5(new _.pu("notifyPath missing",
this.is+": "+W+", "+O)):b.value?L.notifyPath(T,b.value):L.notifyPath(T)},
stampDomArraySplices_:function(W,O,b){if(b&&b.indexSplices){var T=this.getStampContainer_(O);if(T){for(var L=_.Rs(T),h=I_e(this.stampDom[W].reuseComponents),Z=b.indexSplices.length,a=0;a<Z;a++){for(var m=b.indexSplices[a],w=L.children[m.index],A=m.removed.length;A>0;A--)w&&w.parentElement&&(_.Rs(w.parentElement).removeChild(w),h&&mDO(w),w=L.children[m.index]);A=this.stampDom[W].mapping;for(var X=m.index+m.addedCount,l=document.createDocumentFragment(),p=h,K=m.index;K<X;K++){var k=m.object[K],r=hGe(A,
k);if(r){var q=A[r];k=k[r];r=this.getComponentName_(q,k);var f=w?SE.has(w):!1;p&&w&&w.is==r&&f?(r=w,this.telemetry_.reuse++,w=w.nextElementSibling):p&&w&&f?(r=this.createComponent_(q,k,h),f=_.Rs(w).nextElementSibling,L.insertBefore(r,f),Ei2(this.is,L,w,h),w=f):(p=!1,r=this.createComponent_(q,k,h),l.appendChild(r));this.deferRenderStamperBinding_(r,q,k)}else q=new _.pu("Unimplemented type",W,O,T.tagName,Object.keys(k)[0]),_.Dt(q)}L.insertBefore(l,w)}this.flushRenderStamperComponentBindings_();this.stampDom[W].events&&
_.bX(this.hostElement,"yt-rendererstamper-finished",{container:T})}else W=new _.pu("Container object not found",O,this.hostElement?this.hostElement.is:""),_.Dt(W)}},
stampDomArray_:function(W,O,b,T,L,h){var Z=this.getStampContainer_(O);if(Z)if(O=_.Rs(Z),T=I_e(T),W){var a=0,m=0,w;if(h=h===void 0?_.qC("STAMPER_STABLE_LIST",!1):h||!1)for(w=O.firstElementChild;w&&!SE.has(w)&&W.length>m;){h=W[m];var A=hGe(b,h);if(A){if(this.getComponentName_(b[A],h[A])!=w.is){var X=this.createComponent_(b[A],h[A],T),l=_.Rs(w).nextElementSibling;l?O.insertBefore(X,l):O.appendChild(X);Ei2(this.is,O,w,T);w=X}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(w,b[A],h[A]);a++;
m++;w=_.Rs(w).nextElementSibling}else m++}wY2(this.is,O,a,T);a=w;if(W.length>m){h=document.createDocumentFragment();for(A=W.length;m<A;m++)if(X=W[m],l=hGe(b,X))w=this.createComponent_(b[l],X[l],T),this.deferRenderStamperBinding_(w,b[l],X[l]),h.appendChild(w);a&&_.Rs(a).parentNode&&w&&!SE.has(w)?O.insertBefore(h,a):O.appendChild(h)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();L&&_.bX(this.hostElement,"yt-rendererstamper-finished",{container:Z})}else wY2(this.is,O,0,
T);else W=new _.pu("Container object not found",O,this.hostElement?this.hostElement.is:""),_.Dt(W)},
getStampContainer_:function(W){return this.$&&this.$[W]||_.Q(this.hostElement).querySelector("#"+W)},
getComponentName_:function(W,O){return typeof W==="string"?W:W.matcher?W.matcher.call(this,O):W.component},
createComponent_:function(W,O,b){W=this.getComponentName_(W,O);try{var T=jD.has(W)||bj.has(W);if(b&&!T){var L=_.Je(W);try{_.Sl(L)}catch(h){b="Failed to clear styles for "+W+".",h.message&&(b+=" Original error: "+h.message),_.z5(new _.pu(b))}}else L=document.createElement(W)}catch(h){return L="YtRendererStamperBehavior failed to create "+W+".",h.message&&(L+=" Original description: "+h.message),h.message="YtRendererStamperBehavior failed to create element",_.CB(h,L),BPn.hasOwnProperty(W)?_.z5(h):_.Dt(h),
document.createElement("SPAN")}this.telemetry_.create++;return L},
deferRenderStamperBinding_:function(W,O,b){this.deferredBindingTasks_.push({component:W,typeOrConfig:O,data:b})},
flushRenderStamperComponentBindings_:function(){for(var W=0,O=this.deferredBindingTasks_.length;W<O;W++){var b=this.deferredBindingTasks_[W];if(!b)break;var T=void 0,L=void 0,h=void 0,Z=void 0,a=b.component,m=b.typeOrConfig;b=b.data;var w=(Z=a.polymerController)!=null?Z:a;Z=a.loggingStatus;try{Z&&(Z.isRendererStamper=!0);if(typeof m!=="string"){for(h in m.attributes)m.attributes[h]===!0?a.setAttribute(h,""):m.attributes[h]===!1?a.removeAttribute(h):a.setAttribute(h,m.attributes[h]);for(L in m.params)w[L]=
m.params[L],a!==w&&P_(a.localName,L,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(T in m.properties){var A=m.properties[T];if(A){var X=Z$X(A);w[T]=this.get(X);a!==w&&P_(a.localName,T,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(T==="on-tap"||T==="on-click"){var l=this.get(X);a.addEventListener("click",l);a_h.set(a,{property:T,listener:{type:"element",eventName:"click",handler:l}})}}else{var p=new _.pu("Undefined property binding",T);_.Dt(p)}}}if(m.classListBinding){var K=Z$X(m.classListBinding),
k=K?this[K]:null;if(k)for(T=0;T<k.length;T++)_.L2(a,k[T],!0)}w.data=b}finally{Z&&(Z.isRendererStamper=!1)}if(T=SE.get(a))a.hidden=!1,SE.delete(a),_.sF.cancelJob(T)}this.deferredBindingTasks_.length=0}}];_.WP={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(W){for(var O=_.$G.getInstance(),b=_.S(Object.keys(W)),T=b.next();!T.done;T=b.next()){var L=T.value;T=W[L];if(this&&this[T]){var h=O.actionRoutingMap.get(L);h||(h=new Map,O.actionRoutingMap.set(L,h));O.registerActionHandler(this,L,this[T].bind(this),h)}else L=Error("id"),L.params=T,_.nv(L)}},
unregisterActionMap:function(W){_.NJ(_.$G.getInstance(),W,this)}}]};var aM=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}]]);var IM;var mR=new Map;var kC1=window.matchMedia("(forced-colors: active)").matches;var r0$;var DQL;var DD2=new _.MV("LOTTIE_LOADER_TOKEN");_.O1(_.J1(function(W){return _.E("ytd-lottie-player",{id:W.id,hidden:W.hidden,class:W.className,"aria-label":W.ariaLabel,style:"display: block;"},_.E(_.E1,{data:W.data,animationName:function(){var O;return((O=W.data().animationConfig)==null?void 0:O.name)||""},
animationRef:function(){return W.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.te,
id:_.te,hidden:_.te,className:_.te,ariaLabel:_.te}});var O6=function(){var W=_.n.apply(this,arguments)||this;W.animationRef={};return W};
_.R(O6,_.n);_.d=O6.prototype;
_.d.handlePropertyChange=function(){var W=this.animatedIcon,O=this.active,b=this.isDarkTheme;if(W){var T=this.previousActive!==O;this.previousActive=O;this.animationRef.lottieEl?T&&this.toggleAnimation(O,W.totalFrames):O?this.initializeAnimationAsToggled(W.lottiePlayerProps,W.totalFrames):this.initializeAnimationAsUntoggled(W.lottiePlayerProps);W.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=W.type;this.lottiePlayerProps=this.computeLottiePlayerProps(W,b)}};
_.d.computeLottiePlayerProps=function(W,O){var b=this.deepCloneLottiePlayerProps(W);O?(O=W.nameDarkTheme,W=W.pathDarkTheme):(O=W.name,W=W.path);b.animationConfig.name=O;(O=mR.get(W))?b.animationConfig.animationData=O:b.animationConfig.path=W;return b};
_.d.initializeAnimationAsToggled=function(W,O){W.animationConfig.initialSegment=[O-1,O]};
_.d.initializeAnimationAsUntoggled=function(W){W.animationConfig.initialSegment=void 0};
_.d.toggleAnimation=function(W,O){if(W){var b;(b=this.animationRef.lottieEl)==null||b.playSegments([0,O],!0)}else{var T;(T=this.animationRef.lottieEl)==null||T.playSegments([0,1],!0)}};
_.d.deepCloneLottiePlayerProps=function(W){var O=Object.assign({},W.lottiePlayerProps.animationConfig);W=Object.assign({},W.lottiePlayerProps);W.animationConfig=O;return W};
O6.prototype.handlePropertyChange=O6.prototype.handlePropertyChange;_.t([_.C(),_.N("design:type",Object)],O6.prototype,"animatedIcon",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],O6.prototype,"active",void 0);_.t([_.C(),_.N("design:type",Boolean)],O6.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],O6.prototype,"animatedIconType",void 0);_.t([_.C(),_.N("design:type",Boolean)],O6.prototype,"previousActive",void 0);
_.t([_.C(),_.N("design:type",Object)],O6.prototype,"lottiePlayerProps",void 0);_.t([_.C(),_.N("design:type",Object)],O6.prototype,"animationRef",void 0);_.t([_.m5("animatedIcon","active","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],O6.prototype,"handlePropertyChange",null);O6=_.t([_.sl({is:"yt-animated-icon",disableElementRegistration:!0})],O6);
_.H(O6,"yt-animated-icon",function(){if(DQL===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;r0$===void 0&&(r0$=document.createElement("template"));var T=r0$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);DQL=W}W=DQL;return W},{mode:2});var xQv;var zTq;var C91=_.J1(function(W){var O=_.J8(),b=sC(function(){return{value:null}});
_.so(function(){var L;(L=b.value)==null||L.cancel()});
var T=_.Pj(W.data,{equals:function(L,h){return L.iconName===h.iconName&&L.iconStyle===h.iconStyle&&L.iconSize===h.iconSize&&L.iconSetName===h.iconSetName&&L.iconSelected===h.iconSelected}},"aoiXAb");
_.kb(function(){var L,h=(L=W.options)==null?void 0:L.call(W);zG2(O,b,T(),h)});
return _.E("span",{class:"yt-icon-shape",el:O})},"i");
C91.idomCompat=!0;var rFE=["youtube_fill","youtube_outline"];var CGw=new _.ed({type:"iconset",value:void 0}),iD=function(){var W=_.n.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.iconName="";W.iconsetName="yt-icons";W.iconset=null;W.missingIconSet=!1;W.iconType=null;W.iconShapeDataSignal=_.wu(void 0,void 0,"RQ9kUb");W.renderingOptionsSignal=_.wu({iconWidth:"100%",iconHeight:"100%",iconFilter:W.iconFilter},void 0,"qtx8Ef");W.wizHasRendered=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(iD,_.n);_.d=iD.prototype;_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.d.handlePropertyChange=function(){var W=this,O,b,T,L,h,Z,a,m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:if(O=!W.icon&&!W.iconName||!W.isAttached)return X.return();b=W;T=b.icon;L=b.size;h=b.defaultToFilled;Z=b.active;a=b.targetContainer;W.toggleContainerClass(a);_.e("kevlar_use_wil_icons")&&T&&(m=EAq(T),W.iconType=m.length?m[1]:null);if(T){X.jumpTo(2);break}W.iconsetName="";W.iconName="";return _.Y(X,W.renderIcon(a,T),3);case 3:return X.return();case 2:w=W.computeIcon(T);A=EAq(w);A.length&&
(W.iconsetName=A[0],W.iconName=A[1]);if(!_.e("kevlar_use_wil_icons")){X.jumpTo(4);break}return _.Y(X,W.getIconShapeData(),5);case 5:W.iconShapeData=X.yieldResult;case 4:if(W.shouldRenderIconShape(a)){X.jumpTo(6);break}return _.Y(X,W.determineIconSet(w,Z,h,L,a),6);case 6:return _.Y(X,W.renderIcon(a,T),0)}})};
_.d.toggleContainerClass=function(W){W?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.d.computeIcon=function(W){return!_.e("default_to_innertube_icon")||W.indexOf(":")>0?W:_.Z6(W)};
_.d.determineIconSet=function(W,O,b,T){var L=this;return _.I(function(h){return h.nextAddress==1?_.e("kevlar_system_icons")||_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.Y(h,L.switchToYtSysIconset(W,O,b,T),3):h.jumpTo(2):h.nextAddress!=2?h.return():_.Y(h,L.useYtSysIconsetForMissingIcons(W,O,b,T),0)})};
_.d.switchToYtSysIconset=function(W,O,b,T){var L=this,h,Z,a,m,w,A,X;return _.I(function(l){switch(l.nextAddress){case 1:if(!W||L.iconsetName!=="yt-icons"&&L.iconsetName!=="yt-sys-icons"){l.jumpTo(0);break}h=EAq(W);Z=h[1];Z=_.KZe(Z);_.e("enable_polymer_icons_replace_underscores_dash")&&Z.includes("_filled")&&(Z=Z.replace(/_filled/g,"-filled"));return _.Y(l,SD(Z,!0),3);case 3:return a=l.yieldResult,_.Y(l,SD(Z,!1),4);case 4:if((m=l.yieldResult)||O&&a)L.iconsetName="yt-sys-icons";L.iconName=L.getIconName(Z,
O,b,m,a);if(T===24){l.jumpTo(0);break}w="yt-sys-icons"+T+":"+L.iconName;return _.Y(l,SD(w,!1,!0),6);case 6:return A=l.yieldResult,_.Y(l,SD(w,!0,!0),7);case 7:X=l.yieldResult;L.iconName=L.getIconName(Z,O,b,A,X);if(!O&&A||O&&X)L.iconsetName="yt-sys-icons"+T;_.aD(l)}})};
_.d.getIconName=function(W,O,b,T,L){W.includes("-filled")&&(W=W.replace("-filled",""));return L&&(O||b)?W+"-filled":W};
_.d.useYtSysIconsetForMissingIcons=function(W,O,b,T){var L=this,h,Z;return _.I(function(a){if(a.nextAddress==1)return L.iconsetName!=="yt-icons"?a.jumpTo(0):_.Y(a,SD(L.iconName,!1,!1,!0),3);if(a.nextAddress!=4)return h=a.yieldResult,_.Y(a,SD(L.iconName,!1),4);Z=a.yieldResult;if(h||!Z)return a.jumpTo(0);L.iconsetName="yt-sys-icons";return _.Y(a,L.switchToYtSysIconset(W,O,b,T),0)})};
_.d.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.d.getIconManager=function(){return _.I(function(W){try{return W.return(_.iq().resolve(_.Ix))}catch(O){return W.return(new Promise(function(b){_.BH().parkOrScheduleJob(function(){b(_.iq().resolve(_.Ix))},2,"ci")}))}})};
_.d.getIconShapeData=function(){var W=this,O,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1){if(!W.iconType)return a.return(void 0);O=W.iconType.toLowerCase();b=O.endsWith("_filled")||O.endsWith("-filled");return _.Y(a,W.getIconManager(),2)}T=a.yieldResult;L=W.active||W.defaultToFilled||b?"youtube_fill":"youtube_outline";h={iconName:O,iconStyle:L,iconSize:W.size,iconSetName:W.iconsetName};Z=!!T.resolveIcon(h);Z||(h.iconSize=void 0,Z=!!T.resolveIcon(h));!Z&&b&&(h.iconName=O.substring(0,O.length-
7),h.iconSize=W.size,Z=!!T.resolveIcon(h),Z||(h.iconSize=void 0,Z=!!T.resolveIcon(h)));Z||(h.iconStyle=void 0,Z=!!T.resolveIcon(h));Z||_.z5(new _.pu("Icon not supported",{iconName:h.iconName,iconStyle:h.iconStyle,iconSize:h.iconSize,iconType:O}));return a.return(Z?h:void 0)})};
_.d.shouldRenderIconShape=function(W){if(!_.e("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;W=this.getContainer(W);return!sAi(W,this.icon)};
_.d.renderIcon=function(W,O){var b=this,T,L,h,Z,a,m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:if(O&&b.icon!==O)return X.return();T=b.getContainer(W);L=sAi(T,b.icon);if(b.shouldRenderIconShape(W)&&b.iconType)return b.applyIconShape(L,T),X.return();b.removeIconShape();if(!T)return X.return();b.iconName===""&&b.iconset&&T&&(b.removeStaticIcon(b.iconset,T),L&&b.removeAnimatedIcon(T));if(b.iconName===""&&b.iconset||!b.iconsetName||!CGw)return X.return();b.iconset=CGw.byKey(b.iconsetName);
if(!b.iconset)return b.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.Ii(b,b.onIconsetAdded)),X.return();b.missingIconSet&&(b.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.Ii(b,b.onIconsetAdded)));Z=(h=L||b.isAnimatedIcon?QAQ(b.icon):void 0)&&!h.lazyLoad;m=h&&((a=h)==null?void 0:a.lazyLoad)&&(h.lottiePlayerProps.animationConfig.animationData?!0:mR.get(b.isDarkTheme?h.pathDarkTheme:h.path)?!0:!1);if(Z||m)return b.applyAnimatedIcon(T,h,b.iconset),X.return();if(m||
(w=h)==null||!w.lazyLoad){X.jumpTo(2);break}A=rGT(h,b.isDarkTheme);b.applyStaticIcon(b.iconset,T,b.iconName,W,L);return _.Y(X,A,3);case 3:return _.Y(X,b.renderIcon(b.targetContainer,b.icon),4);case 4:return X.return();case 2:b.applyStaticIcon(b.iconset,T,b.iconName,W,L),_.aD(X)}})};
_.d.getContainer=function(W){var O,b=(O=CoX(this.hostElement))==null?void 0:O.host;O=!!b&&!!b.polymerController;if(!W||O)return W?this.getTargetContainer(W,b):this.hostElement};
_.d.getTargetContainer=function(W,O){var b=_.Q(O).querySelector("#"+W);b||(W=new _.pu("yt-icon container missing",O.is,W),_.Dt(W));return b};
_.d.applyStaticIcon=function(W,O,b,T,L){L&&this.removeAnimatedIcon(O);this.removeIconShape();L=L&&!!this.iconType&&!!this.iconShapeData&&_.e("kevlar_use_wil_icons");try{L?this.applyIconShape(!1,O):W.applyIcon(O,b)}catch(h){this.handleError(h,T,O)}};
_.d.applyIconShape=function(W,O){this.iconset&&O&&(this.removeStaticIcon(this.iconset,O),W&&this.removeAnimatedIcon(O));W={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var b=_.S(this.iconShapeDataSignal);O=b.next().value;b=b.next().value;var T=_.S(this.renderingOptionsSignal),L=T.next().value;T=T.next().value;b(this.iconShapeData);T(W);if(!this.wizHasRendered)for(this.wizHasRendered=!0,W=_.S(qU1(O,L)).next().value;W.firstChild;)_.Q(this.hostElement).appendChild(W.firstChild)};
_.d.removeIconShape=function(){if(_.e("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.d.removeStaticIcon=function(W,O){W.removeIcon(O)};
_.d.applyAnimatedIcon=function(W,O,b){this.removeStaticIcon(b,W);this.removeIconShape();var T;b=this.animatedIconElement&&((T=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:T.type)===O.type;if(this.animatedIconElement&&b){this.animatedIconElement.polymerController.animatedIcon=O;var L;((L=this.animatedIconElement)==null?void 0:L.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(W),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=O,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.e("kevlar_use_wil_icons")?W.insertBefore(this.animatedIconElement,W.childNodes[0]):(W=_.Q(W),W.insertBefore(this.animatedIconElement,W.childNodes[0]))};
_.d.removeAnimatedIcon=function(W){_.e("kevlar_use_wil_icons")?this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement):(W=_.Q(W),this.animatedIconElement&&W.contains(this.animatedIconElement)&&W.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.d.handleError=function(W,O,b){_.CB(W,this.iconName,O,b);O=sAi(b,this.icon);var T=!1;window.location.href.includes("JpymaW6Lh2w")?T=!0:b._svgIcon&&(b=(b=b._svgIcon.parentNode)?b.tagName:"unknown",_.CB(W,b),b==="YT-ICON"&&W.name==="NotFoundError"?T=!0:W.name==="NotFoundError"&&O&&(T=!0));T?_.z5(W):_.Dt(W)};
_.Jq.Object.defineProperties(iD,{template:{configurable:!0,enumerable:!0,get:function(){if(zTq===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;
xQv===void 0&&(xQv=document.createElement("template"));var T=xQv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zTq=W}W=zTq;return W}}});
iD.prototype.handlePropertyChange=iD.prototype.handlePropertyChange;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],iD.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",String)],iD.prototype,"icon",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],iD.prototype,"active",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],iD.prototype,"defaultToFilled",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],iD.prototype,"isAnimatedIcon",void 0);
_.t([_.C({value:24}),_.N("design:type",Number)],iD.prototype,"size",void 0);_.t([_.C({value:""}),_.N("design:type",String)],iD.prototype,"targetContainer",void 0);_.t([_.C(),_.N("design:type",Object)],iD.prototype,"animatedIconElement",void 0);_.t([_.C(),_.N("design:type",Object)],iD.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],iD.prototype,"ariaHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],iD.prototype,"ariaLabel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],iD.prototype,"role",void 0);_.t([_.C(),_.N("design:type",String)],iD.prototype,"style",void 0);_.t([_.C(),_.N("design:type",String)],iD.prototype,"iconFilter",void 0);_.t([_.m5("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],iD.prototype,"handlePropertyChange",null);
iD=_.t([_.sl({is:"yt-icon",noInjection:!0})],iD);var qqN;var nAf=function(){var W=document.body,O=W.appendChild;if(qqN===void 0){var b=document.createElement("template");_.v(b,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
qqN=b}b=qqN;O.call(W,b.content)};
document.body?nAf():window.addEventListener("DOMContentLoaded",nAf);var f1n,GYS=function(){return f1n!==void 0?f1n:f1n=document.createElement("template")};
document.head.appendChild(GYS().content);var H7q,tZL=function(){return H7q!==void 0?H7q:H7q=document.createElement("template")};
document.head.appendChild(tZL().content);var $Qf;_.bD=new _.MV("KEY_MANAGER_TOKEN");var tyT={duration:1E3,easing:"ease",fill:"forwards"};_.bO(H$O);var VZ9=_.AP(_.$Di);_.bO(_.$Di);_.jf=_.J1(function(W){var O=_.uy(W.ref),b=W.aTagConfig?W.aTagConfig:_.Pj(function(){var h,Z,a,m,w,A;var X=(A=_.xy((m=W.command)==null?void 0:m.call(W)))!=null?A:(w=W.command)==null?void 0:w.call(W);return _.Cb({innertubeCommand:X,skipOnClick:(h=W.skipOnClick)==null?void 0:h.call(W),stopPropagation:(Z=W.dangerousStopPropagation)==null?void 0:Z.call(W),defaultTarget:(a=W.target)==null?void 0:a.call(W)})||{}},void 0,"gnrRge");
_.kb(function(){O.value._data=b()._data;O.value.params=b().params});
var T=_.XL(function(h){var Z,a;return void((a=(Z=b()).onpointerdown)==null?void 0:a.call(Z,h))}),L=_.XL(function(h){var Z,a;
return void((a=(Z=b()).onclick)==null?void 0:a.call(Z,h))});
return _.E("a",{el:O,href:function(){return b().href$},
rel:function(){return b().rel$},
class:function(){var h,Z;return(Z=b().className)!=null?Z:(h=W.className)==null?void 0:h.call(W)},
style:function(){var h;if((h=W.style)==null?0:h.call(W))return W.style();var Z;return((Z=W.disabled)==null?0:Z.call(W))?"pointer-events:none":""},
"aria-haspopup":function(){return!!b()["aria-haspopup$"]},
"force-new-state":U1(function(){return b()["force-new-state$"]}),
title:U1(function(){var h,Z;return(Z=b().title$)!=null?Z:(h=W.title)==null?void 0:h.call(W)}),
role:U1(function(){return b().role$}),
target:U1(function(){return b().target$}),
dir:U1(function(){var h;return((h=W.dir)==null?0:h.call(W))?W.dir():b().dir}),
tabindex:function(){var h;return b().tabindex$?Number(b().tabindex$):(h=W.tabIndex)==null?void 0:h.call(W)},
"aria-hidden":function(){var h,Z;return(Z=b()["aria-hidden$"])!=null?Z:(h=W.ariaHidden)==null?void 0:h.call(W)},
"aria-label":function(){var h,Z;return(Z=b()["aria-label$"])!=null?Z:(h=W.ariaLabel)==null?void 0:h.call(W)},
"aria-current":W.ariaCurrent,"aria-labelledby":W.ariaLabelledby,"aria-describedby":W.ariaDescribedby,"aria-selected":W.ariaSelected,"tab-identifier":W.tabIdentifier,"on:pointerdown":T,"on:click":L},W.children)},"j");var NP$=function(W,O){this.fillAnimation=new Animation(My1(W),document.timeline);this.strokeAnimation=new Animation(uCX(O),document.timeline)};
NP$.prototype.play=function(){var W,O;(O=(W=this.fillAnimation).play)==null||O.call(W);var b,T;(T=(b=this.strokeAnimation).play)==null||T.call(b)};
NP$.prototype.cancel=function(){var W,O;(O=(W=this.fillAnimation).cancel)==null||O.call(W);var b,T;(T=(b=this.strokeAnimation).cancel)==null||T.call(b)};_.Kd=_.J1(function(W){var O=W.model;var b=W.pointerDownEvent;var T=W.pointerUpEvent;var L=W.pointerLeaveEvent;W=_.uy();var h=_.eE({"border-radius":function(){return O().borderRadius}}),Z=_.uy(),a=_.uy(),m=_.S(_.ln(function(){return(T==null?0:T())||(L==null?0:L())?!1:!(b==null||!b())||!1})),w=m.next().value,A=m.next().value,X=void 0,l=function(){!X&&a.value&&Z.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(X=new NP$(a.value,Z.value));
var f;(f=X)==null||f.play()},p=function(){var f;
(f=X)==null||f.cancel()},K=function(){var f;
(f=X)==null||f.cancel()};
_.kb(function(){(T==null?0:T())&&l()});
_.kb(function(){(b==null?0:b())&&p()});
_.kb(function(){(L==null?0:L())&&K()});
m=_.XL(function(){l();A(!1)});
var k=_.XL(function(){p();A(!0)}),r=_.XL(function(){K();
A(!1)});
_.so(function(){if(X){var f;(f=X)==null||f.cancel();X=void 0}});
var q={};w=_.YS("yt-spec-touch-feedback-shape",function(){return cG8(O().color)},(q["yt-spec-touch-feedback-shape--focused"]=function(){return!!O().focused&&!O().disabled},q["yt-spec-touch-feedback-shape--circular"]=function(){return!!O().circular},q["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!O().isExtended},q["yt-spec-touch-feedback-shape--down"]=w,q["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!O().triggerEvents},q));
return _.E("yt-touch-feedback-shape",{style:_.eE({"border-radius":"inherit"})},_.E("div",{el:W,class:w,style:_.eE({"margin-top":function(){return O().customTopExtend?"-"+O().customTopExtend+"px":void 0}}),
"on:mousedown":k,"on:mouseup":m,"on:pointerleave":r,"on:touchstart":k,"on:touchend":m,"aria-hidden":!0},_.E("div",{class:"yt-spec-touch-feedback-shape__stroke",style:h,el:Z}),_.E("div",{class:"yt-spec-touch-feedback-shape__fill",style:h,el:a})))},"k");
_.Kd.idomCompat=!0;var MZS={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 TL=_.AX();TL=TL.toLowerCase();if(_.aq(TL,"android")){var ujf=TL.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);ujf&&parseFloat(ujf[1])<100||TL.match("("+Object.keys(MZS).join("|")+")")};var J07=_.J1(function(W){return _.E(_.U,{cond:W.aTagConfig,then:function(O){return _.E(_.jf,{aTagConfig:O,disabled:W.disabled,className:W.className,style:W.style,title:W.title,ariaLabel:W.ariaLabel,ariaCurrent:function(){var b,T;return((b=W.toggleable)==null?void 0:b.call(W))&&((T=W.toggled)==null?void 0:T.call(W))}},W.children)},
else:function(){return _.E("button",{"on:click":_.XL(function(O){var b;return(b=W.onClick)==null?void 0:b.call(W,O)}),
class:W.className,title:W.title,style:W.style,disabled:W.disabled,"aria-pressed":function(){var O,b;return((O=W.toggleable)==null?0:O.call(W))?!((b=W.toggled)==null||!b.call(W)):void 0},
"aria-label":W.ariaLabel,"aria-disabled":W.visiblyDisabled,"aria-hidden":W.ariaHidden,tabindex:W.tabIndex},W.children)}})},"l"),FZS=_.J1(function(W){var O=W.data;
var b=W.hasIconLeading;var T=W.hasIconLeadingTrailing;var L=W.hasIconTrailing;var h=W.iconButton;var Z=W.iconClassName;var a=W.secondaryIconClassName;var m=W.icon;var w=W.secondaryIcon;var A=W.textContentClassName;return _.E(L6,{className:"",style:"display: inherit; justify-content: center"},_.E(_.U,{cond:function(){return m&&(b()||T()||(h==null?void 0:h()))},
then:function(){return _.E(L6,null,_.E("div",{class:Z,"aria-hidden":"true"},m==null?void 0:m()))}}),_.E(_.U,{cond:function(){return(O().buttonText||O().animatedTextProps||O().formattedButtonText)&&!(h==null?0:h())},
then:function(){return _.E(L6,null,_.E(c0w,{className:A,iconPosition:function(){return O().iconPosition},
text:function(){return O().buttonText},
oneOffCustomTextWrap:function(){return O().oneOffCustomTextWrap},
formattedButtonText:function(){return O().formattedButtonText},
animatedTextProps:function(){return O().animatedTextProps}}))}}),_.E(_.U,{cond:L,
then:function(){return _.E(L6,null,_.E("div",{class:Z},m==null?void 0:m()))}}),_.E(_.U,{cond:T,
then:function(){return _.E(L6,null,_.E("div",{class:a},w==null?void 0:w()))}}),_.E(_.U,{cond:function(){return!O().disabled&&!0},
then:function(){return _.E(_.Kd,{model:function(){return{color:iGh(O())}}})}}))},"m"),c0w=_.J1(function(W){var O=function(){var b,T;
return((b=W.iconPosition)==null?void 0:b.call(W))==="icon-with-label"||((T=W.oneOffCustomTextWrap)==null?void 0:T.call(W))};
return _.E("div",{class:W.className,"aria-hidden":function(){var b,T,L;return((b=W.ariaHidden)==null?void 0:b.call(W))&&(!((T=W.animatedTextProps)==null||!T.call(W))||!((L=W.formattedButtonText)==null||!L.call(W)))}},_.E(_.vU,null,_.E(_.RW,{when:function(){var b;
return(b=W.animatedTextProps)==null?void 0:b.call(W)}},function(){return _.E(VZ9,{numberText:function(){return W.animatedTextProps().numberText},
numberValue:function(){return W.animatedTextProps().numberValue},
heightPx:function(){return W.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return W.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return W.animatedTextProps().shouldAnimate},
forceRollUp:function(){return W.animatedTextProps().forceRollUp}})}),_.E(_.RW,{when:function(){var b;
return(b=W.formattedButtonText)==null?void 0:b.call(W)}},function(){return _.E(_.uw,{text:function(){return Object.assign({},W.formattedButtonText(),{lineBreakMode:O()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":W.formattedButtonText().lineBreakMode,
alignment:O()?"TEXT_ALIGNMENT_CENTER":W.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!O()}})}),_.E(_.RW,{when:function(){var b,T;
return((b=W.iconPosition)==null?void 0:b.call(W))==="icon-with-label"&&((T=W.text)==null?void 0:T.call(W))}},function(){return _.E(_.uw,{text:function(){return{content:W.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.E(_.Kv,null,function(){return W.text})))},"n"),y0U=_.J1(function(W){return _.E(_.U,{cond:W.hasLabel,
then:function(){var O;return _.E("label",{class:W.className},W.children,(O=W.textContent)==null?void 0:O.call(W))},
else:function(){return W.children}})},"o"),L6=_.J1(function(W){return W.children},"p");var dfT=jz("stamper-context");var cm=_.J1(function(W){var O=W.data;var b=W.icon;var T=W.iconName;var L=W.secondaryIcon;var h=W.secondaryIconName;var Z=W.focusedOverride;mb8();var a=FsO(O),m=a.size,w=a.style;W=a.disabled;var A=a.onTap,X=a.alignByText,l=a.aTagConfig,p=a.customColors,K=a.segmentedPosition,k=a.toggled,r=a.toggleable,q=a.accessibilityLabel,f=a.onToggle,M=a.iconPosition,V=a.oneOffCustomTextWrap,jQ=a.disableTextEllipsis,y=a.disableBackdropFilter,d8=a.tooltipText,pE=a.ariaHidden,Qh=a.tabIndex,KE=a.buttonText,fE=a.formattedButtonText,
r8=a.animatedTextProps,nE=OG1(O,b,L,T,h,Z),tX=nE.type;b=nE.shouldFocus;T=nE.hasIconLeading;L=nE.hasIconTrailing;var yh=nE.hasIconLeadingTrailing,Gw=nE.hasIconOnly;h=nE.hasIconOnly40;var KH=nE.hasIconWithLabel;Z=nE.iconButton;var h9=nE.visiblyDisabled;a=nE.overrideSmallSizeIcon;var I7=nE.iconToRender;nE=nE.secondaryIconToRender;var T1={},Y$={};return _.E(y0U,{className:_.YS("yt-spec-button-shape-with-label",(T1["yt-spec-button-shape-with-label--is-overlay"]=function(){return w()==="overlay"||w()===
"overlay-dark"},T1)),
hasLabel:KH,textContent:function(){return _.E(c0w,{text:KE,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:V,iconPosition:M,formattedButtonText:fE,animatedTextProps:r8})}},_.E(J07,{aTagConfig:l,
className:_.YS("yt-spec-button-shape-next",function(){return jj1(tX())},function(){return h9()?void 0:THi(w())},function(){return LTX(m())},(Y$["yt-spec-button-shape-next--disabled"]=h9,Y$["yt-spec-button-shape-next--focused"]=b,Y$["yt-spec-button-shape-next--icon-trailing"]=L,Y$["yt-spec-button-shape-next--icon-leading"]=T,Y$["yt-spec-button-shape-next--icon-leading-trailing"]=yh,Y$["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return yh()&&!(KE()||fE())},Y$["yt-spec-button-shape-next--icon-button"]=
function(){return Gw()||KH()},Y$["yt-spec-button-shape-next--icon-only-default"]=h,Y$["yt-spec-button-shape-next--align-by-text"]=X,Y$["yt-spec-button-shape-next--segmented-start"]=function(){return K()==="start"},Y$["yt-spec-button-shape-next--segmented-end"]=function(){return K()==="end"},Y$["yt-spec-button-shape-next--override-small-size-icon"]=a,Y$["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=V,Y$["yt-spec-button-shape-next--disable-text-ellipsis"]=jQ,Y$["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!y()&&bGq()},Y$)),
style:function(){return dbX(p()).style},
onClick:function(aR){A==null||A(aR);r()&&(f==null||f(aR))},
disabled:W,ariaLabel:q,toggleable:r,toggled:k,title:function(){var aR;return(aR=d8())!=null?aR:""},
visiblyDisabled:h9,ariaHidden:pE,tabIndex:Qh},_.E(FZS,{data:O,hasIconLeading:T,hasIconLeadingTrailing:yh,hasIconTrailing:L,iconButton:Z,icon:I7,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:nE})))},"q");
cm.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var Wzw=_.J1(function(W){var O=W.data;var b=W.id;var T=W.hidden;var L=W.className;var h=W.iconName;var Z=W.secondaryIconName;W=_.S(_.wu(!1,void 0,"RyKHFc"));var a=W.next().value,m=W.next().value,w=function(){var X=_.iq().resolve(_.OT(_.bD));X&&m(X.isKeyBoardInUse())},A=function(){m(!1)};
W=_.uy(function(X){if(_.iq().resolve(_.OT(_.bD)))return X.addEventListener("focusin",w),X.addEventListener("focusout",A),function(){X.removeEventListener("focusin",w);X.removeEventListener("focusout",A)}});
return _.E("yt-button-shape",{el:W,id:b,class:L,hidden:T},_.E(_.U,{cond:O,then:function(){return _.E(cm,{data:O,iconName:h,secondaryIconName:Z,focusedOverride:a})}}))},"r");
_.e("web_wiz_button_shape")&&_.O1(Wzw,"yt-button-shape",{props:{data:_.te,id:_.te,hidden:_.te,className:_.te,iconName:_.te,secondaryIconName:_.te},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var dw=function(){var W=_.n.apply(this,arguments)||this;W.keyboardFocused=!1;return W};
_.R(dw,_.n);dw.prototype.onFocus=function(){var W=_.iq().resolve(_.OT(_.bD));W&&(this.keyboardFocused=W.isKeyBoardInUse())};
dw.prototype.onBlur=function(){this.keyboardFocused=!1};
dw.prototype.renderIdom=function(){var W=this;if(this.data){var O=pd(this.data,!!this.iconName),b=WTO(this.data);this.data.focused=this.keyboardFocused;IDO(this.data,function(){var T;QE("yt-icon",{icon:W.iconName,active:(T=W.data)==null?void 0:T.toggled,size:O,style:"width: "+O+"px; height: "+O+"px;",iconFilter:b},Jt)},function(){var T;
QE("yt-icon",{icon:W.secondaryIconName,active:(T=W.data)==null?void 0:T.toggled,size:O,style:"width: "+O+"px; height: "+O+"px;",iconFilter:b},Jt)});
_.bX(this.hostElement,"yt-renderidom-finished")}};
_.Jq.Object.defineProperties(dw,{template:{configurable:!0,enumerable:!0,get:function(){if($Qf===void 0){var W=document.createElement("template");_.v(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(tZL().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(GYS().content.cloneNode(!0),W.content.firstChild);$Qf=W}W=$Qf;return W}}});
dw.prototype.onBlur=dw.prototype.onBlur;dw.prototype.onFocus=dw.prototype.onFocus;_.t([_.D(Kuq),_.N("design:type",Object)],dw.prototype,"ytIdomTemplatingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dw.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],dw.prototype,"iconName",void 0);_.t([_.C(),_.N("design:type",String)],dw.prototype,"secondaryIconName",void 0);_.t([_.C(),_.N("design:type",Object)],dw.prototype,"keyboardFocused",void 0);
_.t([_.ai("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dw.prototype,"onFocus",null);_.t([_.ai("focusout"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dw.prototype,"onBlur",null);dw=_.t([_.sl({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.e("web_wiz_button_shape")})],dw);_.O1(_.J1(function(W){function O(){b().seconds&&h(zUO({seconds:Number(b().seconds)-Date.now()/1E3}))}
var b=W.targetTimestamp;W=W.className;var T=_.S(_.wu("",void 0,"U1Q8Ae")),L=T.next().value,h=T.next().value;_.oW(function(){O();var Z=setInterval(function(){O()},1E3);
_.so(function(){clearInterval(Z)})});
return _.E("yt-countdown",{class:_.YS("ytCountDownHost",W)},_.E("div",null,L))},"s"),"yt-countdown",{props:{targetTimestamp:_.te,
className:_.Ws}});_.DO=_.J1(function(W){var O=W.data;var b=W.className;var T=W.style;var L=W.useOutlinedIcon;var h=W.buttonOverrides;var Z=W.animatedTextProps;var a=W.onClick;var m=_.uy(function(r){return function(){sb1(_.Ae(),r)}}),w=function(){return O().iconName},A,X=(A=_.iq().resolve(_.OT(_.t4)))==null?void 0:A(),l=function(){var r=O();
var q=h==null?void 0:h(),f=Z==null?void 0:Z();if(r){var M=wvO(r.type);var V=!!r.title||!!r.titleFormatted;var jQ=!(!r.iconName&&!r.iconImage);V=jQ&&!V?"icon-only":jQ?r.iconTrailing||r.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;V==="icon-only-40"&&(M="text");var y,d8=(y=q==null?void 0:q.disabled)!=null?y:r.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||r.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";y=Object;jQ=y.assign;var pE=r.title,Qh=r.titleFormatted;f=f&&f.numberText&&
!isNaN(Number(f.numberValue))?f:void 0;var KE=r.accessibilityText,fE=EZh(r.style),r8=AM1(r.state),nE=Xv8(r.buttonSize),tX=Yci(r,m,d8,a);d8=d8&&!r.onDisabledTap;var yh=_.Cb({elementsCommand:r.onTap,forceNewState:!0});yh=qq(yh)?yh:void 0;var Gw=r.customFontColor,KH=r.customBackgroundColor;var h9=r.customBorderColor;var I7=r.customDarkThemeFontColor,T1=r.customDarkThemeBackgroundColor,Y$=r.customDarkThemeBorderColor;Gw=X&&I7?I7:Gw;KH=X&&T1?T1:KH;h9=X&&Y$?Y$:h9;h9={color:Gw?_.C_(Gw):void 0,backgroundColor:KH?
_.C_(KH):void 0,borderColor:h9?_.C_(h9):void 0};r=jQ.call(y,{},{buttonText:pE,formattedButtonText:Qh,animatedTextProps:f,accessibilityLabel:KE,style:fE,type:M,state:r8,size:nE,iconPosition:V,onTap:tX,disabled:d8,aTagConfig:yh,customColors:h9,tooltipText:r.tooltip},q)}else r={style:"mono",type:"text",state:"active",size:"M"};r.focused=k();return r},p=function(){return pd(l(),!!O().iconName)};
W=_.S(_.wu(!1,void 0,"JjUrEe"));A=W.next().value;var K=W.next().value,k=A;W=_.XL(function(){var r=_.iq().resolve(_.OT(_.bD));r&&K(r.isKeyBoardInUse());return!1});
A=_.XL(function(){K(!1);return!1});
_.kb(function(){var r,q=_.P(O==null?void 0:(r=O())==null?void 0:r.onVisible,_.D6);q&&_.zH(q,{disableClickTracking:!0})});
_.kX(function(){m.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var r=O().targetId;r&&_.rDN(_.Ae(),r,m.value)});
return _.E("button-view-model",{el:m,class:_.YS("yt-spec-button-view-model",b),"on:focusin":W,"on:focusout":A},_.E(_.U,{cond:function(){return O().iconImage?{sources:[O().iconImage]}:void 0},
then:function(r){return _.E(cm,{data:l,icon:function(){return _.E(_.uj,{data:r,alt:"",targetWidth:p,targetHeight:p,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.E(cm,{data:l,icon:function(){return _.E(_.Ps,{icon:w,active:function(){return(L==null?0:L())?!1:l().toggled},
animateIcon:function(){var r;return!!(T==null?0:(r=T())==null?0:r.animateIcon)},
size:p})}})}}))},"t");
_.DO.idomCompat={callbacks:{onClick:!0}};_.O1(_.J1(function(W){return _.E("yt-button-view-model",{id:W.id,class:_.YS(W.scopingClassName,W.classes),icon:function(){var O;return(O=W.icon)==null?void 0:O.call(W)},
"dialog-dismiss":function(){var O;return((O=W.dialogDismiss)==null?0:O.call(W))?"":void 0}},_.E(_.DO,{data:function(){var O;
return(O=W.data)==null?void 0:O.call(W)},
className:function(){var O;return(O=W.className)==null?void 0:O.call(W)},
style:function(){var O;return(O=W.style)==null?void 0:O.call(W)},
useOutlinedIcon:function(){var O;return(O=W.useOutlinedIcon)==null?void 0:O.call(W)},
buttonOverrides:function(){var O;return(O=W.buttonOverrides)==null?void 0:O.call(W)},
animatedTextProps:function(){var O;return(O=W.animatedTextProps)==null?void 0:O.call(W)},
onClick:function(O){var b;return(b=W.onClick)==null?void 0:b.call(W,O)}}))},"u"),"yt-button-view-model",{props:{data:_.te,
className:_.te,style:_.te,useOutlinedIcon:_.te,buttonOverrides:_.te,animatedTextProps:_.te,onClick:_.Ws,scopingClassName:_.te,id:_.te,icon:_.te,dialogDismiss:_.te,classes:_.te}});var hW=function(){var W=_.n.apply(this,arguments)||this;W.isGoalActive=!0;return W};
_.R(hW,_.n);hW.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
hW.prototype.progressBarChanged=function(){var W=_.Q(this.hostElement).querySelector("#progress-bar-progress"),O,b,T,L=(T=Number((O=this.creatorGoalState)==null?void 0:O.currentGoalCount)/Number((b=this.creatorGoalState)==null?void 0:b.totalGoalCount)*100)!=null?T:0,h;W.style.width=((h=Math.min(L,100))!=null?h:0)+"%"};
hW.prototype.goalStateChanged=function(){var W;this.isGoalActive=((W=this.creatorGoalState)==null?void 0:W.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var O;W={"--yt-progress-bar-color":H7h((O=this.creatorGoalState)==null?void 0:O.progressBarColor)};_.Sl(this.hostElement,W)};
hW.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Jq.Object.defineProperties(hW.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var W;return this.isGoalActive&&!((W=this.creatorGoalState)==null||!W.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.endTimestampMs){var O;W=Number((O=this.creatorGoalState)==null?void 0:O.endTimestampMs)/1E3;return{seconds:String(W)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.creatorGoalState)==null?0:W.themedTargetImage){var O;W=_.P((O=this.creatorGoalState)==null?void 0:O.themedTargetImage,MXn);return this.isAppDarkTheme()?W==null?void 0:W.imageDark:W==null?void 0:W.imageLight}}}});
_.Jq.Object.defineProperties(hW,{template:{configurable:!0,enumerable:!0,get:function(){return KZv()}}});
hW.prototype.goalStateChanged=hW.prototype.goalStateChanged;hW.prototype.progressBarChanged=hW.prototype.progressBarChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],hW.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);
_.t([_.C({selectorArgs:["data.creatorGoalEntityKey"],selector:function(W,O){return _.IJ(W.entities,"creatorGoalEntity",O)}}),
_.N("design:type",Object)],hW.prototype,"creatorGoalState",void 0);_.t([_.C(),_.N("design:type",Object)],hW.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],hW.prototype,"isGoalActive",void 0);_.t([_.x("creatorGoalState","isGoalActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hW.prototype,"shouldShowCountdown",null);_.t([_.x("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],hW.prototype,"endTimestamp",null);
_.t([_.x("creatorGoalState"),_.N("design:type",Object),_.N("design:paramtypes",[])],hW.prototype,"targetIconThemedImage",null);_.t([_.m5("creatorGoalState.currentGoalCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hW.prototype,"progressBarChanged",null);_.t([_.m5("creatorGoalState.creatorGoalState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hW.prototype,"goalStateChanged",null);
hW=_.t([_.sl({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],hW);_.H(hW,"yt-creator-goal-progress-flow-view-model",function(){return KZv()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var OYq;var iYN;var Sf=function(){return _.n.apply(this,arguments)||this};
_.R(Sf,_.n);Sf.prototype.attached=function(){var W,O,b;if(this==null?0:(W=this.data)==null?0:(O=W.pdgPurchasedBumperLoggingDirectives)==null?0:(b=O.loggingDirectives)==null?0:b.trackingParams){var T,L,h;eBE(this==null?void 0:(T=this.data)==null?void 0:(L=T.pdgPurchasedBumperLoggingDirectives)==null?void 0:(h=L.loggingDirectives)==null?void 0:h.trackingParams)}};
Sf.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Sf.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Sf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Sf.prototype,"data",void 0);Sf=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],Sf);
_.H(Sf,"yt-live-chat-item-bumper-view-model",function(){if(iYN===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;OYq===void 0&&(OYq=document.createElement("template"));var T=OYq;b.call(O,T.content.cloneNode(!0),W.content.firstChild);iYN=W}W=iYN;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var bY1;var jmU;_.Mf=function(W,O){this.data=W;this.actions=O;this.data=W;this.actions=O};
_.nd=function(){};_.aV={};_.aV.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(W,O){PST(this.hostElement,W,O)},
getNavigationEndpointPopupAction:function(W){return pvP(W,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(W,O){RBX(this.hostElement,W,O,this.openPopupConfig)}};var Dbh=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.mx={};
_.mx.YtEndpointBehavior=[_.aV.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Cv("openPopupConfig");(this.useClickHandler=_.qC("useClickHandler",!1))?this.hostElement.addEventListener("click",ZQ(this,this.onEndpointClick_)):(kF(this.hostElement,"tap",ZQ(this,this.onEndpointTap_)),kF(this.hostElement,"touchend",ZQ(this,this.onEndpointTouchEnd_)));kF(this.hostElement,"touchstart",ZQ(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
ZQ(this,this.onEndpointTapStart_))},
onEndpointClick_:function(W){gZ8(this.hostElement,W,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(W){var O=this.hostElement,b=this.openPopupConfig,T=this.disableCommandHandlerOverride;T=T===void 0?!1:T;var L=KTP(W);if(L){L.href&&f_(L.href);var h=W.detail;var Z=h.sourceEvent;h=h.preventer;Z=Z.button!==void 0?Z.button===0&&!oM(Z):h?!oM(h):!0;L.data&&Z&&vZ8(O,L,W,b,T)}},
onEndpointTouchEnd_:function(W){oM(W)||KTP(W)&&W.preventDefault()},
onEndpointTapStart_:function(W){BHO(W)}}];var xbh="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),CSh=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var TM7={};TM7.YtPlaintextBehavior=[_.wc,{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(W){W.preventDefault();W=W.clipboardData.getData("text/plain");document.execCommand("insertText",!1,W)},
preventRichTextFormatting_:function(W){_.Sb&&(W=W.detail.keyboardEvent,W.stopImmediatePropagation(),W.preventDefault())}}];var Lzz;var d1$;var Yd=function(){var W=_.n.apply(this,arguments)||this;W.ignoreShadyDom=!1;W.hasChange_=!1;W.hasSetTitle_=!1;W.useIOObserverForVisibilityLogging_=_.e("kevlar_use_vimio_behavior")&&_.Cv("INNERTUBE_CLIENT_NAME")==="WEB";W.ytFormattedStringObserverHandlerKeys_=void 0;return W};
_.R(Yd,_.n);_.d=Yd.prototype;_.d.created=function(){this.useIOObserverForVisibilityLogging_=_.e("kevlar_use_vimio_behavior")&&_.Cv("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.d.ready=function(){_.Cv("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_()};
_.d.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.d.detached=function(){this.unobserveIOObservers_()};
_.d.clearContents_=function(){for(var W=this.getRoot(),O=W.lastChild;O&&O.tagName!=="STYLE";){try{W.removeChild(O)}catch(b){break}O=W.lastChild}};
_.d.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var W=_.S(this.ytFormattedStringObserverHandlerKeys_),O=W.next();!O.done;O=W.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(O.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.d.resetForAttributedString=function(){var W=this.getRoot();!W.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),W.appendChild(this.ytAttributedStringElementRef))};
_.d.resetForFormattedString=function(){var W=this.getRoot(),O=W.querySelector("yt-attributed-string");O&&(this.ytAttributedStringElementRef=W.removeChild(O))};
_.d.textChanged=function(){this.textChanged_(this.text)};
_.d.textChanged_=function(W){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!W||!W.runs&&!W.simpleText;if(_.e("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var O=this.hostElement.firstChild;O&&O.nodeName==="FONT";){var b=O;O=O.nextSibling;this.hostElement.removeChild(b)}O=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
b=W.simpleText;var T;!b&&((T=W.runs)==null?void 0:T.length)===1&&this.isSimpleString_(W.runs[0])&&(b=W.runs[0].text);b!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Cv("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(b!==void 0){try{O.textContent=b}catch(L){}O.textContent||(this.isEmpty=!0)}else W=W.runs,b!==void 0&&(W=[{text:b}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),W&&this.updateText_(W),
O.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.d.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)};
_.d.computeAriaLabel_=function(W){return W};
_.d.computeEllipsisTruncateStyling=function(W,O){return W&&!O};
_.d.computeUseAttributedString=function(W){return _.e("web_replace_formatted_with_attributed_string")&&TMq(W)&&!this.disableAttributedString&&!this.enableContentEditable};
_.d.setNodeStyle_=function(W,O){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.e("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?O.removeAttribute("dir"):O.setAttribute("dir","auto");O.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");O.style.color="";var b=null;this.noStyles||(W.bold&&(O.classList.add("bold"),b="bold"),W.deemphasize&&(O.classList.add("deemphasize"),b="deemphasize"),W.italics&&O.classList.add("italic"),
W.strikethrough&&O.classList.add("strikethrough"),W.errorUnderline&&(O.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),W.bracket&&O.classList.add("bracket"),W.textColor&&(O.style.color=_.zF(W.textColor)));b!==O.getAttribute("style-target")&&(b?O.setAttribute("style-target",b):O.removeAttribute("style-target"))};
_.d.setUpVisibilityLogging_=function(W,O){var b=this;this.setNodeTrackingParams_(W,O);var T;((T=O.data)==null?0:T.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(W=this.ytRendererBehavior.visibilityObserver.observe(O,function(L){var h=b.ytRendererBehavior.getVisibilityLogger();h&&h.reportShown(L)},this.ytRendererBehavior.visibilityOptionVisible_),O=this.ytRendererBehavior.visibilityObserver.observe(O,function(L){var h=b.ytRendererBehavior.getVisibilityLogger();
h&&h.reportHidden(L)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(W),this.ytFormattedStringObserverHandlerKeys_.push(O))};
_.d.setNodeTrackingParams_=function(W,O){O.data||(O.data={});if((W=W.loggingDirectives?W.loggingDirectives.trackingParams:null)||O.data.trackingParams)O.data.trackingParams=W};
_.d.computeHasLinkOnly_=function(W){return!(!W||W.length!==1||this.noEndpoints||!W[0].navigationEndpoint)};
_.d.getRoot=function(){var W=this.buildScopeDomOptions();return this.enableContentEditable?_.Q(_.Q(this.hostElement,W).querySelector("[contenteditable]")):_.Q(this.hostElement,W)};
_.d.fixContenteditableScope=function(){var W=function(O){O&&(O.nodeType===1&&O.classList&&(O.classList.add("style-scope"),O.classList.add("yt-formatted-string")),O.childNodes&&O.childNodes.forEach(function(b){W(b)}))};
W(this.getRoot())};
_.d.updateText_=function(W){for(var O=W.length,b=this.getRoot(),T=b.firstChild;T&&T.nodeName==="STYLE";)T=T.nextSibling;for(var L=0;L<O&&T;){var h=W[L],Z=_.e("remove_cr_char")&&h.text?h.text.replace("\r",""):h.text;if(this.isSimpleString_(h)&&!this.useMixedDirectionFormattedStrings)if(T.nodeName==="#text"){T.textContent!=Z&&(T.textContent=Z);L++;T=T.nextSibling;continue}else break;if(_.P(h,Bi))break;else if(!this.noEndpoints&&h.navigationEndpoint){if(T.nodeName!=="A")break;this.setDataOnAnchor_(T,
h.navigationEndpoint)}else if(T.nodeName!=="SPAN")break;this.setNodeStyle_(h,T);this.setUpVisibilityLogging_(h,T);T.textContent!=Z&&(T.textContent=Z);L++;T=T.nextSibling}if(T)for(h=b.lastChild,T=L?T.previousSibling:null;h&&h!=T;){try{b.removeChild(h)}catch(a){break}h=b.lastChild}L!==O&&this.addTextNodes_(W,L)};
_.d.addTextNodes_=function(W,O){for(var b=document.createDocumentFragment(),T=W.length;O<T;O++){var L=W[O],h=_.e("remove_cr_char")&&L.text?L.text.replace("\r",""):L.text;if(this.isSimpleString_(L)&&!this.useMixedDirectionFormattedStrings)b.appendChild(document.createTextNode(h));else{var Z=_.P(L,Bi);if(Z){if(Z.image){var a=document.createElement("img");Z.isCustomEmoji||a.classList.add("small-emoji");a.classList.add("emoji");Z.isCustomEmoji&&(a.dataset.emojiId=Z.emojiId);a.src=_.bn(Z.image.thumbnails,
this.emojiSize);(L=this.get("image.accessibility.accessibilityData.label",Z))?a.alt=L:Z.shortcuts&&Z.shortcuts.length>0?a.alt=Z.shortcuts[0]:Z.emojiId&&(a.alt=Z.emojiId);b.appendChild(a);this.hasEmoji=!0}}else!this.noEndpoints&&L.navigationEndpoint?(a=document.createElement("a"),a.classList.add("yt-simple-endpoint"),a.setAttribute("spellcheck","false"),this.setDataOnAnchor_(a,L.navigationEndpoint)):a=document.createElement("span"),this.setNodeStyle_(L,a),this.setUpVisibilityLogging_(L,a),a.appendChild(document.createTextNode(h)),
b.appendChild(a)}}this.getRoot().appendChild(b)};
_.d.isSimpleString_=function(W){return(this.noEndpoints||!W.navigationEndpoint)&&!_.P(W,Bi)&&(this.noStyles||!(W.bold||W.deemphasize||W.italics||W.strikethrough||W.errorUnderline||W.bracket||W.textColor))&&!W.loggingDirectives};
_.d.getRawText=function(){return _.NX(this.text)};
_.d.getFirstRunText=function(){var W;if(((W=this.text)==null?0:W.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.d.setFirstRunText=function(W){var O;((O=this.text)==null?0:O.runs)&&this.text.runs[0]&&(this.text.runs[0].text=W,this.textChanged_(this.text))};
_.d.setDataOnAnchor_=function(W,O){var b=this;!_.e("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(O)||this.isSignalServiceEndpoint_(O)?(W.onclick=this.serviceEndpointHandler_(O),vD(W,"#")):vy8({text:this.text,command:O},function(){qzO(W,O,b.target)})};
_.d.isServiceEndpoint_=function(W){var O;return!((O=_.P(W==null?void 0:W.commandMetadata,_.F9))==null||!O.sendPost)};
_.d.isSignalServiceEndpoint_=function(W){return!!_.P(W,_.mM)};
_.d.serviceEndpointHandler_=function(W){var O=this;return function(b){_.da(O.hostElement,[W]);b.preventDefault()}};
_.d.overrideAriaLabelChanged_=function(){var W=this.getRoot();this.enableContentEditable&&W&&W.setAttribute("aria-label",this.overrideAriaLabel)};
_.d.enableContentEditableChanged_=function(){var W=this,O=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),O=_.Q(this.hostElement,O),!O.lastChild||O.lastChild instanceof HTMLElement&&O.lastChild.id!=="contenteditable-root"){var b=document.createElement("div");b.id="contenteditable-root";b.setAttribute("contenteditable","true");b.setAttribute("dir","auto");b.onfocus=function(){W.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
O.appendChild(b);this.overrideAriaLabel&&b.setAttribute("aria-label",this.overrideAriaLabel)}}else b=_.T0(this.hostElement).firstChild,b instanceof HTMLElement&&b.id==="contenteditable-root"&&_.Q(this.hostElement,O).removeChild(b)};
_.d.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.d.getNodesForVisibilityLogging_=function(){return _.iM(this.getRoot().childNodes,function(W){var O;return!((O=W.data)==null||!O.trackingParams)})};
_.d.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.d.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(O){W.reportShown(O)})}};
_.d.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var W=this.ytRendererBehavior.getVisibilityLogger();W&&this.getNodesForVisibilityLogging_().forEach(function(O){W.reportHidden(O)})}};
_.Jq.Object.defineProperties(Yd.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.e("enable_mixed_direction_formatted_strings")}}});
Yd.prototype.enableContentEditableChanged_=Yd.prototype.enableContentEditableChanged_;Yd.prototype.overrideAriaLabelChanged_=Yd.prototype.overrideAriaLabelChanged_;Yd.prototype.ellipsisTruncateChanged_=Yd.prototype.ellipsisTruncateChanged_;Yd.prototype.textChanged=Yd.prototype.textChanged;_.t([_.D(TM7.YtPlaintextBehavior),_.N("design:type",Object)],Yd.prototype,"ytPlaintextBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Yd.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yd.prototype,"text",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"noEndpoints",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"noStyles",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yd.prototype,"isDarkTheme",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Yd.prototype,"splitLines",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yd.prototype,"forceDefaultStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yd.prototype,"ellipsisTruncate",void 0);_.t([_.C(),_.N("design:type",Object)],Yd.prototype,"ignoreShadyDom",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.N("design:type",Boolean)],Yd.prototype,"ellipsisTruncateStyling",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.N("design:type",String)],Yd.prototype,"ariaLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yd.prototype,"isEmpty",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.N("design:type",Boolean)],Yd.prototype,"hasLinkOnly_",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"hasEmoji",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"disableAttributedString",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"isOverlay",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"linkInheritColor",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"noPreWrap",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"userInput",void 0);_.t([_.C({value:16}),_.N("design:type",Number)],Yd.prototype,"emojiSize",void 0);_.t([_.C(),_.N("design:type",String)],Yd.prototype,"target",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"enableContentEditable",void 0);_.t([_.C(),_.N("design:type",String)],Yd.prototype,"overrideAriaLabel",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"respectHtmlDir",void 0);_.t([_.C(),_.N("design:type",Boolean)],Yd.prototype,"respectLangDir",void 0);_.t([_.x("plaintextOnly"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Yd.prototype,"useMixedDirectionFormattedStrings",null);_.t([_.C({computed:"computeUseAttributedString(text)"}),_.N("design:type",Boolean)],Yd.prototype,"useYtAttributedString",void 0);
_.t([_.m5("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yd.prototype,"textChanged",null);_.t([_.m5("ellipsisTruncate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yd.prototype,"ellipsisTruncateChanged_",null);_.t([_.m5("overrideAriaLabel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yd.prototype,"overrideAriaLabelChanged_",null);
_.t([_.m5("enableContentEditable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yd.prototype,"enableContentEditableChanged_",null);Yd=_.t([_.sl({is:"yt-formatted-string",disableElementRegistration:!0})],Yd);
_.H(Yd,"yt-formatted-string",function(){if(d1$===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Lzz===void 0&&(Lzz=document.createElement("template"));var T=Lzz;b.call(O,T.content.cloneNode(!0),W.content.firstChild);d1$=W}W=d1$;return W});var hwv;var Snq;var ZY7;var IUv;var E6=function(){var W=_.n.apply(this,arguments)||this;W.focused=!1;W.disabled=!1;W.isOverlay=!1;return W};
_.R(E6,_.n);E6.prototype.triggerDown=function(){if(!this.disabled){_.L2(this.hostElement,"down",!0);var W;(W=this.currentAnimation)==null||W.cancel()}};
E6.prototype.triggerUp=function(){if(!this.disabled){_.L2(this.hostElement,"down",!1);var W=this.fillElement;var O=this.strokeElement;typeof GroupEffect==="function"?(W=new GroupEffect([My1(W),uCX(O)]),W=new Animation(W,document.timeline)):W=new NP$(W,O);this.currentAnimation=W;var b;(b=this.currentAnimation)==null||b.play()}};
_.t([_.El(".stroke"),_.N("design:type",HTMLElement)],E6.prototype,"strokeElement",void 0);_.t([_.El(".fill"),_.N("design:type",HTMLElement)],E6.prototype,"fillElement",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],E6.prototype,"focused",void 0);_.t([_.C(),_.N("design:type",Object)],E6.prototype,"disabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],E6.prototype,"isOverlay",void 0);E6=_.t([_.sl({is:"yt-interaction",disableElementRegistration:!0})],E6);
_.H(E6,"yt-interaction",function(){if(IUv===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ZY7===void 0&&(ZY7=document.createElement("template"));var T=ZY7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);IUv=W}W=IUv;return W},{mode:2});var ww=function(){return _.n.apply(this,arguments)||this};
_.R(ww,_.n);_.d=ww.prototype;_.d.ready=function(){var W=this,O=_.Q(this.hostElement).querySelector("#button");O.addEventListener("focus",function(){GOw||(GOw=new fsv);W.keyboardFocused=GOw.isKeyBoardInUse()});
O.addEventListener("blur",function(){W.keyboardFocused=!1;W.rippleUp_()})};
_.d.computeTabIndex_=function(W){return W?-1:0};
_.d.computeButtonAriaPressed_=function(W){if(this.toggleable)return W?"true":"false"};
_.d.rippleDown_=function(){_.Q(this.hostElement).querySelector("#interaction").triggerDown()};
_.d.rippleUp_=function(){_.Q(this.hostElement).querySelector("#interaction").triggerUp()};
_.d.onPressedChanged_=function(){var W=_.T0(_.Q(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.T0(_.Q(this.hostElement).querySelector("#button")).children[0];W&&(W.active=this.pressed)};
ww.prototype.onPressedChanged_=ww.prototype.onPressedChanged_;ww.prototype.rippleUp_=ww.prototype.rippleUp_;ww.prototype.rippleDown_=ww.prototype.rippleDown_;_.t([_.C(),_.N("design:type",String)],ww.prototype,"label",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ww.prototype,"disabled",void 0);_.t([_.C(),_.N("design:type",Boolean)],ww.prototype,"pressed",void 0);_.t([_.C(),_.N("design:type",Object)],ww.prototype,"toggleable",void 0);
_.t([_.C(),_.N("design:type",Boolean)],ww.prototype,"untabbable",void 0);_.t([_.C(),_.N("design:type",Boolean)],ww.prototype,"keyboardFocused",void 0);_.t([_.ai("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ww.prototype,"rippleDown_",null);_.t([_.ai("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ww.prototype,"rippleUp_",null);
_.t([_.m5("pressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ww.prototype,"onPressedChanged_",null);ww=_.t([_.sl({is:"yt-icon-button",disableElementRegistration:!0})],ww);
_.H(ww,"yt-icon-button",function(){if(Snq===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;hwv===void 0&&(hwv=document.createElement("template"));var T=hwv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Snq=W}W=Snq;return W},{mode:2});var aUL=_.ts(["aria-"]),AW={};AW.YtRenderButtonBehavior=[_.F.YtRendererBehavior,_.mx.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!!_.iq().resolve(_.OT(_.bD))&&_.e("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 W=this.computeHref_(this.endpoint,!0);W?vD(this.elements_.endpoint,W):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){W=this.buttonClass.split(" ");W=_.S(W);for(var O=W.next();!O.done;O=W.next())O=O.value,_.L2(this.hostElement,O,!0),this.elements_.button&&_.L2(this.elements_.button,O,!0),this.elements_.text&&_.L2(this.elements_.text,O,!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&&(W=null,this.buttonAccessibility&&(W=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=W:W?_.HD([_.cG(aUL)],this.elements_.button,"aria-label",W):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var W=_.iq().resolve(_.OT(_.bD));W&&(this.keyboardFocused=W.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Je("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,_.Rs(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Rs(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(W,O){if(O)for(W=O.split(" "),W=_.S(W),O=W.next();!O.done;O=W.next())O=O.value,_.L2(this.hostElement,O,!1),this.elements_.button&&_.L2(this.elements_.button,O,!1),this.elements_.text&&_.L2(this.elements_.text,O,!1)},
buttonIconChanged_:function(W){this.elements_.icon?W?(this.elements_.icon.icon=W,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Rs(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.di(this.hostElement,"is-paper-button-with-icon",!1)):W&&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"&&_.Rs(this.elements_.button).appendChild(this.elements_.icon):_.Rs(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.di(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(W){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,W){var O=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(W){case "yt_icon_button_with_label":O=!0;_.L2(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();W=_.Rs(this.elements_.button).firstElementChild;
this.elements_.icon=W;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Rs(this.elements_.endpoint).appendChild(this.elements_.button);_.Rs(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Je("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;_.Rs(this.elements_.button).appendChild(this.elements_.text);_.Rs(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":O=!0,this.elements_.button=this.getYtIconButton_(),W=_.Rs(this.elements_.button).firstElementChild,this.elements_.icon=W,this.setIconActive_(this.elements_.icon),
_.Rs(this.elements_.endpoint).appendChild(this.elements_.button)}_.di(this.hostElement,"is-icon-button",O);_.di(this.hostElement,"is-paper-button",!O);_.di(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var b;_.Q((b=this.container.hostElement)!=null?b:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Rs(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(W){if(W!=void 0||this.disabled)this.disabled=W,this.elements_.button&&(this.elements_.button.disabled=W)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(W){_.e("kevlar_system_icons")&&W&&this.data&&(this.data.isSelected!==void 0?W.active=this.data.isSelected:this.data.isToggled!==void 0&&(W.active=this.data.isToggled))},
observeBasicPalette_:function(W){_.kS(this.hostElement,W)},
disabledChanged_:function(W){this.data&&this.set("data.isDisabled",W)},
onYtButtonTap_:function(W){if(this.disabled)W.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.da(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(W=this.disableCommandHandlerOverride,!this.data||!this.data.command||W||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.e("handle_service_request_actions")||_.da(this.hostElement,[this.serviceEndpoint]),
_.bX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.e("handle_service_request_actions")?(W=[],this.serviceEndpoint&&W.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&W.push(this.data.command),W.length&&_.Sx(this.hostElement,W,this.hostElement)):this.data&&this.data.command&&(W=this.data.command,W.accountUnlinkCommand||W.accountLinkCommand||W.insertAdCommand||W.insertHighlightMarkerCommand||
W.createLivestreamHighlightClipCommand||W.getVideoUploadFeedbackCommand||W.musicDeletePrivatelyOwnedEntityCommand||W.ypcCancelRecurrenceEndpoint||W.getMultiSelectCommandEndpoint?_.da(this.hostElement,[W]):_.Sx(this.hostElement,[W],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 W,O=_.Q((W=this.container.hostElement)!=null?W:this.container);O.lastChild&&O.lastChild.tagName!="STYLE";)try{O.removeChild(O.lastChild)}catch(b){break}},
getYtIconButton_:function(){var W=this.reuseEnabled_()?_.Je("yt-icon-button"):document.createElement("yt-icon-button"),O=_.Rs(W).firstElementChild;if(O&&O.is!="yt-icon"){for(O=_.Rs(W);O.lastChild;)O.removeChild(O.lastChild);O=null}O||(O=this.getIcon_(),this.setIconActive_(O),_.Rs(W).appendChild(O));return W},
reuseEnabled_:function(){return _.e("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Je("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Je("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.m15={};
_.m15.YtButtonBehavior=[AW.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var W=this.data;W&&(this._setEndpoint(this.computeEndpoint_(W)),this._setServiceEndpoint(this.computeServiceEndpoint_(W)),this._setCommand(this.computeCommand_(W)),this._setButtonIcon(this.computeButtonIcon_(W)),this._setButtonText(this.computeButtonText_(W,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(W)),this._setButtonTooltip(this.computeTooltip_(W)),this._setButtonClass(this.computeButtonClass_(W)),this._setIconPositionType(this.computeIconPositionType_(W)),this.updateRenderedElements())},
setPressedState:function(W){var O;if((O=this.elements_)==null?0:O.button)this.elements_.button.pressed=!!W},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeEndpoint_:function(W){var O=W&&W.navigationEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.url"),T=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return O?O:W&&W.command&&W.command.modalEndpoint?W.command:b&&!T&&W.command?W.command:null},
computeServiceEndpoint_:function(W){var O=W&&W.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return O?O:b&&W.command?W.command:null},
computeCommand_:function(W){return W&&W.command||null},
computeButtonIcon_:function(W){return W&&W.icon&&W.icon.iconType?_.Z6(W.icon.iconType):null},
computeButtonText_:function(W,O){return!O&&W&&W.text||null},
computeAccessibility_:function(W){return this.get("accessibilityData.accessibilityData",W)||W&&W.accessibility||(W&&W.text?{label:this.getSimpleString(W.text)}:null)},
computeTooltip_:function(W){return W?W.isDisabled&&W.disabledTooltip||W.tooltip||null:null},
computeButtonClass_:function(W){var O=W&&W.style?W.style.toLowerCase().replace(/_/g,"-")+" ":"";O+=W&&W.size?W.size.toLowerCase().replace(/_/g,"-")+" ":"";W.colorData&&W.colorData.basicColorPaletteData&&W.colorData.basicColorPaletteData.borderColor&&(O+="palette-with-border");return O.trim()}}];var s1={};var YnL;var EUn;var wlL,Anq=function(){return wlL!==void 0?wlL:wlL=document.createElement("template")};
document.head.appendChild(Anq().content);var Xlv;var U1z,lU1=function(){return U1z!==void 0?U1z:U1z=document.createElement("template")};
document.head.appendChild(lU1().content);var ewH;var PpS,plz=function(){return PpS!==void 0?PpS:PpS=document.createElement("template")};
document.head.appendChild(plz().content);var Rwz;var Kz7=document.head,vUS=Kz7.appendChild,gU1;if(Rwz===void 0){var oUq=document.createElement("template");_.v(oUq,"\x3c!--css-build:shady--\x3e");oUq.content.insertBefore(plz().content.cloneNode(!0),oUq.content.firstChild);Rwz=oUq}gU1=Rwz;vUS.call(Kz7,gU1.content);var QmL=document.head,k2v=QmL.appendChild,smf;if(ewH===void 0){var BMN=document.createElement("template");_.v(BMN,"\x3c!--css-build:shady--\x3e");BMN.content.insertBefore(lU1().content.cloneNode(!0),BMN.content.firstChild);ewH=BMN}smf=ewH;k2v.call(QmL,smf.content);var rnv=document.head,D1H=rnv.appendChild,x15;if(Xlv===void 0){var zwL=document.createElement("template");_.v(zwL,"\x3c!--css-build:shady--\x3e");zwL.content.insertBefore(Anq().content.cloneNode(!0),zwL.content.firstChild);Xlv=zwL}x15=Xlv;D1H.call(rnv,x15.content);var CpL;_.Bs("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");CpL=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live");_.X$=function(){return _.n.apply(this,arguments)||this};
_.R(_.X$,_.n);_.X$.prototype.created=function(){this.openPopupConfig=_.Cv("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.X$.prototype.onYtNavigate_=function(W){var O=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);O&&(this.ytOpenPopupBehavior.openPopup(O),W.stopPropagation(),W.preventDefault())};
_.Jq.Object.defineProperties(_.X$,{template:{configurable:!0,enumerable:!0,get:function(){if(EUn===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;YnL===void 0&&(YnL=document.createElement("template"));var T=YnL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);EUn=W}W=EUn;return W}}});
_.X$.prototype.onYtNavigate_=_.X$.prototype.onYtNavigate_;_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],_.X$.prototype,"ytOpenPopupBehavior",void 0);_.t([_.D(_.m15.YtButtonBehavior),_.N("design:type",Object)],_.X$.prototype,"ytButtonBehavior",void 0);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.X$.prototype,"onYtNavigate_",null);
_.X$=_.t([_.sl({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:CpL})],_.X$);var qn9;var nUv=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live"),U6=function(){var W=_.n.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.skipCommandHandling=!1;W.alignByText=!1;W.fitToVisibleBounds=!0;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};W.onTap=function(O){_.bX(W.hostElement,"yt-service-request-sent-button-renderer",O)};
return W};
_.R(U6,_.n);_.d=U6.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.d.onClick=function(W){var O,b=this.disabled||((O=this.data)==null?void 0:O.isDisabled);O=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");b&&O&&W.stopPropagation()};
_.d.computeIcon=function(){var W,O,b=(W=this.data)==null?void 0:(O=W.icon)==null?void 0:O.iconType;if(b)return _.Z6(b)};
_.d.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.d.handleUpdateButtonAction=function(W){W=_.P(W,PMq);var O=_.P(W==null?void 0:W.updatedButton,_.s2);if(this.data&&W&&O){var b=this.data;b.targetId&&W.targetId&&b.targetId===W.targetId&&(this.data=O)}};
_.Jq.Object.defineProperties(U6.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var W=this;if(this.data){var O=t_O({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.bX(W.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.bX(W.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});O.alignByText=this.alignByText;return O}}}});
_.Jq.Object.defineProperties(U6,{template:{configurable:!0,enumerable:!0,get:function(){if(qn9===void 0){var W=document.createElement("template");_.v(W,'\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>');qn9=W}W=qn9;return W}}});
U6.prototype.onClick=U6.prototype.onClick;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],U6.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],U6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"isPressed",void 0);
_.t([_.C(),_.N("design:type",Object)],U6.prototype,"forceIconButton",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"forceIconOnly",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"forceModernIconButton",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"skipCommandHandling",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"alignByText",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"buttonTooltipPosition",void 0);
_.t([_.C(),_.N("design:type",Object)],U6.prototype,"fitToVisibleBounds",void 0);_.t([_.C({computed:"computeTooltip(data)"}),_.N("design:type",Object)],U6.prototype,"tooltip",void 0);_.t([_.C(),_.N("design:type",Object)],U6.prototype,"overrides",void 0);_.t([_.C(),_.N("design:type",Boolean)],U6.prototype,"disabled",void 0);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],U6.prototype,"onClick",null);
_.t([_.x("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.N("design:type",Object),_.N("design:paramtypes",[])],U6.prototype,"computedButtonShape",null);U6=_.t([_.sl({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!nUv,cssBuildOptOut:!0}),_.sl({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!nUv,cssBuildOptOut:!0})],U6);var fUw;var G2S;var lD=function(){var W=_.n.apply(this,arguments)||this;W.empty_=!0;W.loadTime=Infinity;W.pendingPaint=!1;W.hasChange_=!1;W.oldThumbnail_=null;W.oldDelayedSrc_="";W.objectURL_=null;return W};
_.R(lD,_.n);_.d=lD.prototype;_.d.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.d.ready=function(){var W=this.shouldShowPlaceholder_();_.L2(this.hostElement,"no-transition",!0);W&&this.hostElement.classList.add("with-placeholder")};
_.d.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.d.isThumbPreloaded_=function(W){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",W)};
_.d.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||HYf};
_.d.computeThumbnailSrc_=function(W){return W&&W.thumbnails?_.bn(W.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.d.computeAlt_=function(){var W=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&W||""};
_.d.thumbnailChanged_=function(){var W=_.S([this.thumbnail,this.oldThumbnail_]),O=W.next().value;W=W.next().value;this.oldThumbnail_=O;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(W=this.computeThumbnailSrc_(W),this.computeThumbnailSrc_(O)===W))return;_.e("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(O)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):O&&_.qC("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.My(this,this.onReload_):_.My(this,this.onShow_):this.resetImage_();O&&(this.hostElement.style.opacity=""+O.opacity)}};
_.d.delayedSrcChanged_=function(){var W=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===W||this.resetImage_()};
_.d.setSrc_=function(W){W?(_.Q(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Q(this.hostElement).querySelector("#img").src=W):(_.Q(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.d.resetImage_=function(){WsX(this.hostElement);this.empty_=!0;this.setSrc_(HYf);this.ytRendererBehavior.invalidate(!1)};
_.d.observePlaceholderColor_=function(){var W=this.thumbnail&&this.thumbnail.placeholderColor;W?this.hostElement.style.backgroundColor=_.zF(W):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.d.onLoad_=function(){_.Q(this.hostElement).querySelector("#img").src&&_.Q(this.hostElement).querySelector("#img").src!==HYf&&(yy1(this.hostElement),this.notifyOnLoaded&&_.bX(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.d.onError_=function(){var W=this;if(_.e("web_use_cache_for_image_fallback"))dDX(_.Q(this.hostElement).querySelector("#img").src).then(function(O){W.objectURL_=_.eL(O).toString();W.setSrc_(W.objectURL_)}).catch(function(){_.e("kevlar_woffle_fallback_image")&&W.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.d.onPrescanVisible=function(){this.onShow_()};
_.d.onVisible=function(){if(_.e("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.d.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var W=this.computeSrc_();W!==_.Q(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))}};
_.d.onReload_=function(){this.empty_=!1;var W=this.computeSrc_();W!==_.Q(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(W))};
_.d.shouldShowPlaceholder_=function(){return _.e("kevlar_thumbnail_bg")};
lD.prototype.observePlaceholderColor_=lD.prototype.observePlaceholderColor_;lD.prototype.delayedSrcChanged_=lD.prototype.delayedSrcChanged_;lD.prototype.thumbnailChanged_=lD.prototype.thumbnailChanged_;_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"alt",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lD.prototype,"ariaHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"ariaLabel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"id",void 0);_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],lD.prototype,"ytVisibilityBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",String)],lD.prototype,"delayedSrc",void 0);
_.t([_.C(),_.N("design:type",Object)],lD.prototype,"thumbnail",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"loaded",void 0);_.t([_.C(),_.N("design:type",Boolean)],lD.prototype,"notifyOnLoaded",void 0);_.t([_.C(),_.N("design:type",Number)],lD.prototype,"height",void 0);_.t([_.C(),_.N("design:type",Number)],lD.prototype,"width",void 0);_.t([_.C({value:function(){return"width"}}),
_.N("design:type",String)],lD.prototype,"dimension",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"fit",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"fitHeight",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"fitWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"objectFit",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"objectPosition",void 0);_.t([_.C(),_.N("design:type",String)],lD.prototype,"preferredThumbnail",void 0);_.t([_.C({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.N("design:type",String)],lD.prototype,"alt_",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],lD.prototype,"sharedTooltipText",void 0);
_.t([_.C(),_.N("design:type",Boolean)],lD.prototype,"ftlEligible",void 0);_.t([_.C({value:void 0}),_.N("design:type",String)],lD.prototype,"observeHiddenOption",void 0);_.t([_.C({value:"observe_once"}),_.N("design:type",String)],lD.prototype,"observePrescanOption",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],lD.prototype,"roundedContainer",void 0);
_.t([_.Ul("thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lD.prototype,"thumbnailChanged_",null);_.t([_.Ul("delayedSrc"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lD.prototype,"delayedSrcChanged_",null);_.t([_.m5("thumbnail.placeholderColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lD.prototype,"observePlaceholderColor_",null);
lD=_.t([_.sl({is:"yt-img-shadow",disableElementRegistration:!0})],lD);var HYf=_.qC("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.TH()(lD,"yt-img-shadow",function(){if(G2S===void 0){var W=document.createElement("template");_.v(W,'\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">');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;fUw===void 0&&(fUw=document.createElement("template"));var T=fUw;b.call(O,T.content.cloneNode(!0),W.content.firstChild);G2S=W}W=G2S;return W},{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 VIh;_.ef=new _.MV("SCREEN_MANAGER_TOKEN");VIh=new _.MV("LOG_INITIAL_SCREEN_TOKEN");_.gt=_.J1(function(W){function O(d8){return _.P(d8,_.Kp)}
function b(){var d8=T().isTogglingDisabled||l()?k():!k();r(d8);f(!1);if(!T().isTogglingDisabled){var pE;(pE=Z)==null||pE(!!d8)}var Qh;((Qh=h)==null?0:Qh())||_.dk(_.iq().resolve(_.ef),T().trackingParams);var KE;if(!d8||!O(T().defaultButtonViewModel)||(KE=h)!=null&&KE()){var fE;!O(T().toggledButtonViewModel)||((fE=h)==null?0:fE())||_.dk(_.iq().resolve(_.ef),O(T().toggledButtonViewModel).trackingParams)}else _.dk(_.iq().resolve(_.ef),O(T().defaultButtonViewModel).trackingParams)}
var T=W.data,L=W.buttonShapeOverrides,h=W.disableExplicitClickLogging,Z=W.onToggle,a=W.style,m=W.useOutlinedIcon,w=W.className,A=function(){var d8,pE;return k()?(d8=W.animatedTextPropsToggled)==null?void 0:d8.call(W):(pE=W.animatedTextPropsDefault)==null?void 0:pE.call(W)},X=_.Pj(function(){return A()?Object.assign({},A(),{shouldAnimate:q()}):void 0},void 0,"ZKEa0b"),l=function(){var d8;
return((d8=jQ())==null?void 0:d8.isToggled)!==void 0},p=_.S(_.ln(function(){var d8,pE,Qh;
return l()?(d8=jQ())==null?void 0:d8.isToggled:(Qh=L==null?void 0:(pE=L())==null?void 0:pE.toggled)!=null?Qh:T().isToggled})),K=p.next().value;
p=p.next().value;var k=K,r=p;p=_.S(_.ln(function(){var d8,pE;return(d8=W.animatedTextPropsToggled)==null?void 0:(pE=d8.call(W))==null?void 0:pE.shouldAnimate}));
K=p.next().value;p=p.next().value;var q=K,f=p;K=_.S(_.wu(!1,void 0,"S11hid"));var M=K.next().value,V=K.next().value,jQ=_.D3(function(d8){var pE;a:{var Qh=T().entityKey,KE=T().toggledStateEntitySelectorType;if(KE&&Qh)switch(KE){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var fE;d8=(fE=_.IJ(d8.entities,"sfvAudioItemCurrentlyPlayingEntity",Qh))!=null?fE:void 0;fE=(pE=d8==null?void 0:d8.sfvAudioItemPlaybackState)!=null?pE:void 0;if(fE==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){pE={isToggled:!0};
break a}if(fE){pE={isToggled:!1};break a}break;default:_.z5(new _.pu("Error: entitySelectorType defined but not matched in selector.",d8,KE))}pE=void 0}return pE});
K=_.XL(function(){var d8=_.iq().resolve(_.OT(_.bD));d8&&V(d8.isKeyBoardInUse());return!1});
p=_.XL(function(){V(!1);return!1});
var y=function(){return Object.assign({},L==null?void 0:L(),{onToggle:b,toggleable:!0,toggled:k(),focused:M()})};
return _.E("toggle-button-view-model",{"on:focusin":K,"on:focusout":p,class:w},_.E(_.U,{cond:function(){return k()?O(T().toggledButtonViewModel):O(T().defaultButtonViewModel)},
then:function(d8){return _.E(_.DO,{data:d8,className:w,style:a,useOutlinedIcon:m,buttonOverrides:y,animatedTextProps:X})}}))},"v");
_.gt.idomCompat={callbacks:{onToggle:!0}};_.O1(_.J1(function(W){return _.E("yt-toggle-button-view-model",{class:function(){var O;return(O=W.scopingClassName)==null?void 0:O.call(W)}},_.E(_.gt,{data:function(){var O;
return(O=W.data)==null?void 0:O.call(W)},
buttonShapeOverrides:function(){var O;return(O=W.overrides)==null?void 0:O.call(W)},
animatedTextPropsDefault:function(){var O;return(O=W.animatedTextPropsDefault)==null?void 0:O.call(W)},
animatedTextPropsToggled:function(){var O;return(O=W.animatedTextPropsToggled)==null?void 0:O.call(W)},
disableExplicitClickLogging:function(){var O;return(O=W.disableExplicitClickLogging)==null?void 0:O.call(W)},
onToggle:function(O){var b;return(b=W.onToggle)==null?void 0:b.call(W,O)},
style:function(){var O;return(O=W.style)==null?void 0:O.call(W)},
useOutlinedIcon:function(){var O;return(O=W.useOutlinedIcon)==null?void 0:O.call(W)},
className:function(){var O;return(O=W.className)==null?void 0:O.call(W)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.te,
buttonShapeOverrides:_.te,overrides:_.te,animatedTextPropsDefault:_.te,animatedTextPropsToggled:_.te,disableExplicitClickLogging:_.te,onToggle:_.Ws,style:_.te,useOutlinedIcon:_.te,className:_.te,scopingClassName:_.te}});var PP=function(){return _.n.apply(this,arguments)||this};
_.R(PP,_.n);PP.prototype.onTap=function(W){W.stopPropagation();W=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.o4("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W})):this.ytLiveChatReduxBehavior.dispatch(_.AI("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:W}))};
_.Jq.Object.defineProperties(PP.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.P(this.data.toggleButton,_.vm),O;if(Number(((O=this.likeCountState)==null?void 0:O.likeCountIfIndifferentNumber)||"0")===0){var b;O=((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}else{var T,L,h;O=((T=this.likeCountState)==null?void 0:(L=T.likeCountIfIndifferent)==null?void 0:L.content)||((h=this.data.likeCountPlaceholder)==null?void 0:h.content)||""}var Z,a;b=((Z=this.likeCountState)==null?void 0:(a=
Z.likeCountIfLiked)==null?void 0:a.content)||"1";Z=_.P(W.toggledButtonViewModel,_.Kp);return Object.assign({},W,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.P(W.defaultButtonViewModel,_.Kp),{title:O})},toggledButtonViewModel:{buttonViewModel:Object.assign({},Z,{title:b})}})}}}});
PP.prototype.onTap=PP.prototype.onTap;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],PP.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PP.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],PP.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PP.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.likeCountEntityKey"],selector:$b2}),_.N("design:type",Object)],PP.prototype,"likeCountState",void 0);_.t([_.C({selectorArgs:["data.engagementStateKey"],selector:UbX}),_.N("design:type",Object)],PP.prototype,"engagementState",void 0);_.t([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PP.prototype,"isLiked",null);
_.t([_.x("data","likeCountState","isLiked"),_.N("design:type",Object),_.N("design:paramtypes",[])],PP.prototype,"toggleButton",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],PP.prototype,"onTap",null);PP=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],PP);
_.H(PP,"yt-live-chat-like-button-view-model",function(){if(jmU===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;bY1===void 0&&(bY1=document.createElement("template"));var T=bY1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);jmU=W}W=jmU;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var tVL;var $17;var p6=function(){return _.n.apply(this,arguments)||this};
_.R(p6,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],p6.prototype,"data",void 0);p6=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],p6);
_.H(p6,"yt-live-chat-paid-message-footer-renderer",function(){if($17===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;tVL===void 0&&(tVL=document.createElement("template"));var T=tVL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);$17=W}W=$17;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var VVU;var NM5;var MVU;var ua5,Jnn=function(){if(ua5!==void 0)return ua5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;MVU===void 0&&(MVU=document.createElement("template"));var T=MVU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return ua5=W};var RV=function(){return _.n.apply(this,arguments)||this};
_.R(RV,_.n);RV.prototype.onTap=function(W){W.stopPropagation()};
_.Jq.Object.defineProperties(RV.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=_.P(this.data.replyButton,_.Kp),O,b,T,L,h,Z,a,m=Number(((O=this.replyCountState)==null?void 0:O.replyCountNumber)||"0")===0?(b=this.data)==null?void 0:(T=b.replyCountPlaceholder)==null?void 0:T.content:((L=this.replyCountState)==null?void 0:(h=L.replyCount)==null?void 0:h.content)||((Z=this.data)==null?void 0:(a=Z.replyCountPlaceholder)==null?void 0:a.content)||"",w;return Object.assign({},
W,{title:m,accessibilityText:(w=this.replyCountState)==null?void 0:w.replyButtonAccessibilityText})}}}});
_.Jq.Object.defineProperties(RV,{template:{configurable:!0,enumerable:!0,get:function(){return Jnn()}}});
RV.prototype.onTap=RV.prototype.onTap;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],RV.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],RV.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.replyCountEntityKey"],selector:function(W,O){return _.IJ(W.entities,"replyCountEntity",O)}}),
_.N("design:type",Object)],RV.prototype,"replyCountState",void 0);_.t([_.x("data","replyCountState"),_.N("design:type",Object),_.N("design:paramtypes",[])],RV.prototype,"buttonViewModel",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],RV.prototype,"onTap",null);RV=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],RV);
_.H(RV,"yt-live-chat-reply-button-view-model",function(){return Jnn()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var cn$;var Fz1;var K6=function(){var W=_.n.apply(this,arguments)||this;W.ariaLabel="";return W};
_.R(K6,_.n);
K6.prototype.dataChanged=function(){for(var W=(0,_.h1)(_.Q(this.hostElement).querySelector("#image"));W.firstChild;)W.removeChild(W.firstChild);if(this.data)if(this.data.icon){var O=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(O.polymerController.icon="yt-sys-icons:shield-filled",O.polymerController.defaultToFilled=!0):O.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();W.appendChild(O)}else if(this.data.customThumbnail){O=document.createElement("img");
var b=_.V9X(this.data.customThumbnail.thumbnails,16);b?(O.src=b,W.appendChild(O),O.setAttribute("alt",this.hostElement.ariaLabel||"")):_.z5(new _.pu("Could not compute URL for thumbnail",this.data.customThumbnail))}};
K6.prototype.identity=function(W){return W};
K6.prototype.computeType=function(W){return dG(W||void 0)};
K6.prototype.dataChanged=K6.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],K6.prototype,"data",void 0);_.t([_.C({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.N("design:type",Object)],K6.prototype,"ariaLabel",void 0);_.t([_.C({computed:"computeType(data)",reflectToAttribute:!0}),_.N("design:type",String)],K6.prototype,"type",void 0);
_.t([_.C({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.N("design:type",String)],K6.prototype,"sharedTooltipText",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("live_chat_enable_new_moderator_badge")}}),
_.N("design:type",Boolean)],K6.prototype,"enableNewModeratorBadge",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K6.prototype,"dataChanged",null);K6=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],K6);
_.H(K6,"yt-live-chat-author-badge-renderer",function(){if(Fz1===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;cn$===void 0&&(cn$=document.createElement("template"));var T=cn$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Fz1=W}W=Fz1;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var yn1;var WV1;var vP=function(){return _.n.apply(this,arguments)||this};
_.R(vP,_.n);_.d=vP.prototype;_.d.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"}}}}};
_.d.computeBadgesInsideChip=function(W){return W?W.filter(function(O){return dG(O.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.d.computeBadgesOutsideChip=function(W){return this.prependChatBadges||!W?[]:W.filter(function(O){O=dG(O.liveChatAuthorBadgeRenderer);return O!=="verified"&&O!=="owner"})};
_.d.computeBadgesBeforeChip=function(W){return this.prependChatBadges&&W?W.filter(function(O){O=dG(O.liveChatAuthorBadgeRenderer);return O!=="verified"&&O!=="owner"}):[]};
_.d.computeIsHighlighted=function(W,O){var b=!!dQ2(W,"owner"),T=!!dQ2(W,"verified");W=!!dQ2(W,"moderator");return(b||T&&!W)&&!O};
_.d.computeAuthorType=function(W){return LZX(W)};
_.d.computeAuthorClass=function(W,O){return O?(W?W+" ":"")+"single-line":W};
_.d.onSeedColorChanged=function(){_.e("live_chat_author_name_color_usernames")||_.e("live_chat_seed_color_usernames")||_.e("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):_.e("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
vP.prototype.onSeedColorChanged=vP.prototype.onSeedColorChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vP.prototype,"authorName",void 0);_.t([_.C(),_.N("design:type",Array)],vP.prototype,"authorBadges",void 0);
_.t([_.C({computed:"computeAuthorType(authorBadges)"}),_.N("design:type",String)],vP.prototype,"authorType",void 0);_.t([_.C({computed:"computeAuthorClass(authorType, singleLine)"}),_.N("design:type",String)],vP.prototype,"authorClass",void 0);_.t([_.C({computed:"computeBadgesInsideChip(authorBadges)"}),_.N("design:type",Array)],vP.prototype,"badgesInsideChip",void 0);_.t([_.C({computed:"computeBadgesOutsideChip(authorBadges)"}),_.N("design:type",Array)],vP.prototype,"badgesOutsideChip",void 0);
_.t([_.C({computed:"computeBadgesBeforeChip(authorBadges)"}),_.N("design:type",Array)],vP.prototype,"badgesBeforeChip",void 0);_.t([_.C({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.N("design:type",Boolean)],vP.prototype,"isHighlighted",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],vP.prototype,"singleLine",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],vP.prototype,"disableHighlighting",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],vP.prototype,"dashboardMoneyFeed",void 0);_.t([_.C({value:_.e("live_chat_prepend_badges"),reflectToAttribute:!0}),_.N("design:type",Boolean)],vP.prototype,"prependChatBadges",void 0);_.t([_.C(),_.N("design:type",String)],vP.prototype,"authorNameColor",void 0);_.t([_.El("#author-name"),_.N("design:type",HTMLDivElement)],vP.prototype,"username",void 0);
_.t([_.m5("authorNameColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vP.prototype,"onSeedColorChanged",null);vP=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],vP);
_.H(vP,"yt-live-chat-author-chip",function(){if(WV1===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;yn1===void 0&&(yn1=document.createElement("template"));var T=yn1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);WV1=W}W=WV1;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var O8L;var i85;var gw=function(){var W=_.n.apply(this,arguments)||this;W.debounceCommand=_.Ei(function(O){W.ytComponentBehavior.resolveCommand(O)},1500);
return W};
_.R(gw,_.n);gw.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var W=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",O,b,T=this.isHearted?(O=this.data)==null?void 0:O.unheartCommand:(b=this.data)==null?void 0:b.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.o4("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:W}));(W=_.xy(T))&&this.debounceCommand(W)}};
_.Jq.Object.defineProperties(gw.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W,O;if(!((W=this.data)==null?0:(O=W.creatorThumbnail)==null?0:O.sources))return{};W={thumbnails:[]};O={};O.url=this.data.creatorThumbnail.sources[0].url;W.thumbnails.push(O);return W}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.engagementState)==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((O=this.engagementState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
gw.prototype.onTap=gw.prototype.onTap;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],gw.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gw.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],gw.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gw.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.engagementStateKey"],selector:UbX}),_.N("design:type",Object)],gw.prototype,"engagementState",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],gw.prototype,"thumbnailDetails",null);_.t([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gw.prototype,"isHearted",null);_.t([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gw.prototype,"isEditable",null);
_.t([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gw.prototype,"showCreatorView",null);_.t([_.x("data","engagementState"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],gw.prototype,"showButton",null);_.t([_.x("data","isHearted"),_.N("design:type",String),_.N("design:paramtypes",[])],gw.prototype,"label",null);_.t([_.x("data","isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],gw.prototype,"heartHoverText",null);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gw.prototype,"onTap",null);gw=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],gw);
_.H(gw,"yt-live-chat-creator-heart-view-model",function(){if(i85===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;O8L===void 0&&(O8L=document.createElement("template"));var T=O8L;b.call(O,T.content.cloneNode(!0),W.content.firstChild);i85=W}W=i85;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var oV=function(){};
_.R(oV,bH);oV.prototype.JSC$10998_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:tC("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
oV.prototype.getApiPaths=function(){return[]};
oV.prototype.getExtension=function(){};
oV.prototype.JSC$10998_buildRequest=function(){};var b8w={},jFL=(b8w.GET_DATASYNC_IDS=e4(oV),b8w);var TVU,LVU,d3q,ZAU,Q8,Z8S,wdS,SWU,hSS;TVU="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");LVU=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.GB=function(W,O,b,T,L,h,Z,a,m){this.endpointMap=W;this.networkManager=O;this.authService=b;this.responseProcessorMap=T;this.innertubeResponseStore=L;this.contextProcessors=h;this.asyncContextProcessors=Z;this.localInnertubeRouter=a;this.requestSequencer=m;this.inflightRequests=new Map;W.signalEndpointMap||(W.signalEndpointMap={});W.signalEndpointMap=Object.assign({},jFL,W.signalEndpointMap)};
d3q=function(W,O,b,T,L,h,Z,a,m){if(_.GB.instance!==void 0){if(T=_.GB.instance,W=[W!==T.endpointMap,O!==T.networkManager,b!==T.authService,L!==T.innertubeResponseStore,h!==T.contextProcessors,Z!==T.asyncContextProcessors,a!==T.localInnertubeRouter],W.some(function(w){return w}))throw new _.pu("InnerTubeTransportService is already initialized",W);
}else _.GB.instance=new _.GB(W,O,b,T,L,h,Z,a,m)};
_.tP=function(W,O,b){var T=T===void 0?Dm7:T;var L=wdS(W,O);return L?new _.mJ(function(h,Z){var a,m,w,A,X;return _.I(function(l){switch(l.nextAddress){case 1:return _.Y(l,L,2);case 2:a=l.yieldResult;m=a.JSC$10998_getRequest(O,b,T);if(!m){Z(new _.pu("Error: Failed to build request for command.",O));l.jumpTo(0);break}f_(m.input);A=((w=m.requestShell)==null?void 0:w.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){X=hSS(m.config,A);l.jumpTo(4);break}return _.Y(l,SWU(m.config,A),5);case 5:X=
l.yieldResult;case 4:h(Z8S(W,m,X)),_.aD(l)}})}):_.vi(new _.pu("Error: No request builder found for command.",O))};
ZAU=function(W,O,b,T){var L=L===void 0?Dm7:L;var h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y;return _.I(function(d8){switch(d8.nextAddress){case 1:h=M_e(O,W.endpointMap);if(!h)throw new _.pu("Error: No streaming request builder found for command",O);Z=h.JSC$10998_getRequest(O,b,L);if(!Z)throw new _.pu("Failed to build YtRequest for streaming Command",O);if((a=W.localInnertubeRouter)==null||!a.shouldPreferLocalResponse(Z.input,Z.innerTubeRequest)){d8.jumpTo(2);break}return _.Y(d8,W.localInnertubeRouter.localInnertubeResponse(Z.input,
Z.innerTubeRequest),3);case 3:return m=d8.yieldResult,w={},m.playerResponse&&(Q8(W,m.playerResponse,Z),w.player=m.playerResponse,(A=T)==null||A(w,m)),m.watchNextResponse&&(Q8(W,m.watchNextResponse,Z),w.content=m.watchNextResponse,(X=T)==null||X(w,m)),d8.return(w);case 2:p=((l=Z.requestShell)==null?void 0:l.mode)==="cors"?"cors":void 0;if(W.authService.syncHeaders){K=hSS(Z.config,p);d8.jumpTo(4);break}return _.Y(d8,SWU(Z.config,p),5);case 5:K=d8.yieldResult;case 4:return q=(r=(k=Z.requestShell)==null?
void 0:k.headers)!=null?r:{},Z.requestShell=Object.assign({},Z.requestShell,{headers:Object.assign({},q,K)}),f=Object.assign({},Z.requestShell),M=JSON.stringify(Z.innerTubeRequest),Z.requestShell.method==="POST"&&(f=Object.assign({},f,{body:M})),V=function(pE,Qh){Q8(W,Qh.playerResponse||Qh.watchNextResponse||Qh.reelItemWatchResponse||Qh.reelWatchSequenceResponse,Z);T==null||T(pE,Qh)},jQ={},_.Y(d8,IK$(W.networkManager,Z.input,f,V),6);
case 6:return jQ=d8.yieldResult,((y=Z.config)==null?0:y.responseTick)&&_.Bg(Z.config.responseTick),d8.return(jQ)}})};
_.QR=function(W,O,b,T,L){L=L===void 0?{authStrategy:{identity:Dm7}}:L;var h=h===void 0?!0:h;var Z=function(){};
Z=Tq2(bcX(b));O.context||(O.context=_.XPX(T,h));return new _.mJ(function(a){var m,w,A,X,l;return _.I(function(p){if(p.nextAddress==1)return m=$nX(b),w=_.Hb(m),W.authService.syncHeaders?(A=hSS(L,w),p.jumpTo(2)):_.Y(p,SWU(L,w),3);p.nextAddress!=2&&(A=p.yieldResult);X=VoX($nX(b));l={input:X,requestShell:tC(X),innerTubeRequest:O,config:L};a(Z8S(W,l,A,Z));_.aD(p)})})};
Q8=function(W,O,b){var T;if(O&&!(O==null?0:(T=O.sequenceMetaData)==null?0:T.skipProcessing)&&W.responseProcessorMap){T=_.S(TVU);for(var L=T.next();!L.done;L=T.next())L=L.value,W.responseProcessorMap[L]&&W.responseProcessorMap[L].handleResponse(O,b)}};
Z8S=function(W,O,b,T){T=T===void 0?function(){}:T;
var L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE,Qh,KE,fE,r8,nE,tX,yh,Gw,KH,h9,I7,T1,Y$,aR,f0,SQ,R7,zw,G1;return _.I(function(k$){switch(k$.nextAddress){case 1:Z=(L=O.config)==null?void 0:(h=L.storeStrategy)==null?void 0:h.storeKey;if(!(Z&&W.innertubeResponseStore&&W.innertubeResponseStore.has(Z))||((a=O.config)==null?0:(m=a.storeStrategy)==null?0:m.disableCache)){k$.jumpTo(2);break}return _.Y(k$,W.innertubeResponseStore.get(Z),3);case 3:if((w=k$.yieldResult)&&!w.isExpired())return k$.return(Promise.resolve(_.LD(w)));
case 2:if(!((A=O)==null?0:(X=A.innerTubeRequest)==null?0:X.context)){k$.jumpTo(4);break}l=O.innerTubeRequest.context;if(!(W.asyncContextProcessors&&W.asyncContextProcessors.length>0)){k$.jumpTo(5);break}p=[];K=_.S(W.asyncContextProcessors);for(k=K.next();!k.done;k=K.next())r=k.value,q=r.processContext(O),q.wrappedPromise_&&p.push(q.wrappedPromise_);if(!(p.length>0)){k$.jumpTo(5);break}return _.Y(k$,Promise.all(p),5);case 5:f=_.S(W.contextProcessors||[]),M=f.next();case 8:if(M.done){k$.jumpTo(4);break}V=
M.value;return _.Y(k$,V.processContext(l),9);case 9:M=f.next();k$.jumpTo(8);break;case 4:if((jQ=W.localInnertubeRouter)==null||!jQ.shouldPreferLocalResponse(O.input,O.innerTubeRequest)){k$.jumpTo(12);break}return _.Y(k$,W.localInnertubeRouter.localInnertubeResponse(O.input,O.innerTubeRequest),13);case 13:return y=k$.yieldResult,Q8(W,y,O),k$.return(y);case 12:return(Qh=(pE=O.config)==null?void 0:pE.requestKey)&&W.inflightRequests.has(Qh)?d8=W.inflightRequests.get(Qh):(KE=JSON.stringify(O.innerTubeRequest),
nE=(r8=(fE=O.requestShell)==null?void 0:fE.headers)!=null?r8:{},O.requestShell=Object.assign({},O.requestShell,{headers:Object.assign({},nE,b)}),tX=Object.assign({},O.requestShell),O.requestShell.method==="POST"&&(tX=Object.assign({},tX,{body:KE})),((yh=O.config)==null?0:yh.requestTick)&&_.Bg(O.config.requestTick),Gw=function(){return W.networkManager.fetch(O.input,tX,O.config)},d8=W.requestSequencer?aK5(W.requestSequencer,O,Gw):Gw(),Qh&&W.inflightRequests.set(Qh,d8)),_.Y(k$,d8,14);
case 14:(KH=k$.yieldResult)&&_.e("web_streaming_player")&&Array.isArray(KH)&&(KH=KH[0].playerResponse);if(KH&&"error"in KH&&((h9=KH)==null?0:(I7=h9.error)==null?0:I7.details))for(T1=KH.error.details,Y$=_.S(T1),aR=Y$.next();!aR.done;aR=Y$.next())f0=aR.value,(SQ=f0["@type"])&&LVU.indexOf(SQ)>-1&&(delete f0["@type"],KH=f0);Qh&&W.inflightRequests.has(Qh)&&W.inflightRequests.delete(Qh);((R7=O.config)==null?0:R7.responseTick)&&_.Bg(O.config.responseTick);if(KH||(zw=W.localInnertubeRouter)==null||!zw.canProvideFallbackResponse(O.input,
O.innerTubeRequest)){k$.jumpTo(15);break}return _.Y(k$,W.localInnertubeRouter.localFallbackInnertubeResponse(O.input,O.innerTubeRequest),16);case 16:KH=k$.yieldResult;case 15:return Q8(W,KH,O),((G1=O.config)==null?0:G1.processorTick)&&_.Bg(O.config.processorTick),T(),k$.return(KH||void 0)}})};
_.Hs=function(W,O){return NHq(O,W.endpointMap)};
wdS=function(W,O){W=uhO(O,W.endpointMap);if(W!==void 0)return Promise.resolve(W)};
SWU=function(W,O){var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){L=(b=W)==null?void 0:(T=b.authStrategy)==null?void 0:T.sessionIndex;var a=_.ZM(Uk8({sessionIndex:L}));return _.Y(Z,a,2)}h=Z.yieldResult;return Z.return(Promise.resolve(Object.assign({},JMT(O),h)))})};
hSS=function(W,O){var b;W=W==null?void 0:(b=W.authStrategy)==null?void 0:b.sessionIndex;b=Uk8({sessionIndex:W});return Object.assign({},JMT(O),b)};var m3v,YW7,Etq,we5,AyN,Xeq,eSq,P$7,BP,pe5,RS7,lK1,KVq;m3v=0;YW7=/tone[1-5]/;Etq=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");we5="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
AyN=Number.MAX_SAFE_INTEGER;Xeq=RegExp("\ufe0f","g");_.kd=function(W){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;W&&_.U3H(this,W)};
_.U3H=function(W,O){try{_.Yv(O,{context:W,onSuccess:function(T,L){Array.isArray(L)?W.load(L):(T=new _.pu("Emoji manager JSON response was not an array!",{response:L}),_.Dt(T))},
onError:function(T){T=new _.pu("Failed to retrieve emoji manager initial JSON data!",{url:O,statusCode:_.SJ(T).toString()});_.z5(T)}})}catch(T){var b=new _.pu("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:O});
_.z5(b)}};
_.kd.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.kd.prototype.load=function(W,O){if(O)if(W.length)W=W.concat(O.emojis);else{this.emojis=O.emojis;this.emojiMap=O.emojiMap;this.emojiShortcutMap=O.emojiShortcutMap;this.emojiShortcutCharMap=lK1(O);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=O.emojiRegex;return}this.emojis=[].concat(_.PG(new Set(this.emojis.concat(W))));this.hasInitializedShortcutCharMap=!1;W=Array(this.emojis.length);for(O=0;O<this.emojis.length;O++){var b=this.emojis[O];if(b.emojiId){this.emojiMap[b.emojiId]=b;this.emojiMap[b.emojiId].index=
O;for(var T=0;b.shortcuts&&T<b.shortcuts.length;T++)this.emojiShortcutMap[b.shortcuts[T].toLocaleLowerCase()]=b;W[O]=b.isCustomEmoji&&b.shortcuts?b.shortcuts[0]:b.emojiId}}W.sort(function(L,h){return h.length-L.length});
if(W.length)try{this.emojiRegex=new RegExp(W.join("|").replace("*","\\*"),"gi")}catch(L){this.emojiRegex=/$./}else this.emojiRegex=/$./};
eSq=function(W,O){O=_.S(O);for(var b=O.next();!b.done;b=O.next()){var T=b.value;if(T.emojiId&&W.emojiMap[T.emojiId]){b=Object.assign({},W.emojiMap[T.emojiId],T);W.emojiMap[T.emojiId]=b;var L=void 0;b.index&&((L=W.emojis[b.index])==null?void 0:L.emojiId)===T.emojiId&&(W.emojis[b.index]=b);T=void 0;if((T=b.shortcuts)==null?0:T.length)for(W.hasInitializedShortcutCharMap=!1,T=_.S(b.shortcuts),L=T.next();!L.done;L=T.next())W.emojiShortcutMap[L.value.toLocaleLowerCase()]=b}}};
P$7=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,_.lh.getInstance(),2);if(T.nextAddress!=3)return(O=T.yieldResult)?_.Y(T,O.get("ytlc-emoji-pref"),3):T.return();(b=T.yieldResult)&&eSq(W,Object.keys(b).map(function(L){return{emojiId:L,stickyPrefId:b[L]}}).filter(function(L){return!!L.emojiId&&!!L.stickyPrefId}));
_.aD(T)})};
_.s6=function(W,O,b){return(W=W.emojiMap[O])&&(!W.isLocked||b!==void 0&&b)?W:void 0};
BP=function(W,O,b){b=_.s6(W,O,b===void 0?!1:b);var T=O.match("\u200d");b&&W.skinTone!==0&&(W=(T==null?void 0:T.length)===1?_.s6(W,O.replace("\u200d",Etq[W.skinTone]+"\u200d")):_.s6(W,O+Etq[W.skinTone]))&&(b=W);return b};
pe5=function(W,O){var b=W.emojiMap[O];return(b==null?0:b.stickyPrefId)?W.emojiMap[b.stickyPrefId]:BP(W,O)};
_.E8=function(W,O){W=W.emojiShortcutMap[O.toLocaleLowerCase()];return!W||W.isLocked?null:W};
RS7=function(W,O,b){return lK1(W,b===void 0?!1:b)[O]||{}};
lK1=function(W,O){O=O===void 0?!1:O;if(!W.hasInitializedShortcutCharMap){W.hasInitializedShortcutCharMap=!0;for(var b=0;b<W.emojis.length;b++){var T=W.emojis[b];if(!(T.isLocked||O&&T.isCustomEmoji&&T.emojiId&&!W.pickerCustomEmojiIds.includes(T.emojiId)))for(var L=0;T.shortcuts&&L<T.shortcuts.length;L++){var h=T.shortcuts[L];h.startsWith(":_")&&T.isCustomEmoji&&(W.emojiShortcutCharMap[":_"]==null&&(W.emojiShortcutCharMap[":_"]=Object.create(null)),W.emojiShortcutCharMap[":_"][h]=T);if(!(h.length<3||
!T.isCustomEmoji&&YW7.test(h))){var Z=h.substr(0,3).toLocaleLowerCase();W.emojiShortcutCharMap[Z]==null&&(W.emojiShortcutCharMap[Z]=Object.create(null));W.emojiShortcutCharMap[Z][h]=T}}}}return W.emojiShortcutCharMap};
_.kd.prototype.createEmoji=function(W,O){O=O===void 0?!0:O;var b=document.createElement("img");W.isCustomEmoji||b.classList.add("small-emoji");b.classList.add("emoji");b.classList.add("yt-formatted-string");b.src=W.image?_.bn(W.image.thumbnails,this.emojiSize)||"":"";var T=void 0;W.image&&W.image.accessibility&&W.image.accessibility.accessibilityData&&(T=W.image.accessibility.accessibilityData.label);b.alt=T?T:(W.isCustomEmoji&&W.shortcuts?W.shortcuts[0]:W.emojiId)||"";W.isCustomEmoji&&(b.dataset.emojiId=
W.emojiId);_.jb&&(b.setAttribute("contenteditable","false"),b.setAttribute("unselectable","on"));O&&(W.shortcuts&&W.shortcuts.length&&b.setAttribute("shared-tooltip-text",W.shortcuts[0]),b.id="emoji-"+m3v++);return b};
_.kd.prototype.createDocumentFragment=function(W,O,b,T){O=O===void 0?!1:O;b=b===void 0?!0:b;T=T===void 0?!1:T;W=W.replace(Xeq,"");for(var L=document.createDocumentFragment(),h=0,Z,a=0;(Z=this.emojiRegex.exec(W))!=null;){var m=_.s6(this,Z[0])||_.E8(this,Z[0]);!m||m.isCustomEmoji&&!O||(m=this.createEmoji(m,b),h!==Z.index&&L.appendChild(document.createTextNode(W.substring(h,Z.index))),L.appendChild(m),h=Z.index+Z[0].length,a++)}if(!T||a)return L.appendChild(document.createTextNode(W.substr(h))),L};
KVq=function(W,O,b){var T,L,h,Z,a,m,w,A,X;return _.I(function(l){if(l.nextAddress==1){if(!O.emojiId||!W.emojiMap[O.emojiId])return l.return();T=Object.assign({},W.emojiMap[O.emojiId],{stickyPrefId:b});W.emojiMap[O.emojiId]=T;O.index&&((L=W.emojis[O.index])==null?void 0:L.emojiId)===O.emojiId&&(W.emojis[O.index]=T);if((h=O.shortcuts)==null?0:h.length)for(W.hasInitializedShortcutCharMap=!1,Z=_.S(O.shortcuts),a=Z.next();!a.done;a=Z.next())m=a.value,W.emojiShortcutMap[m.toLocaleLowerCase()]=T;return _.Y(l,
_.lh.getInstance(),2)}if(l.nextAddress!=4)return(w=l.yieldResult)?_.Y(l,w.get("ytlc-emoji-pref"),4):l.jumpTo(0);X=(A=l.yieldResult)!=null?A:{};X[O.emojiId]=b;return _.Y(l,w.set("ytlc-emoji-pref",X,AyN),0)})};
_.rw=new _.kd;var otH;_.Dx={};
otH={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.e("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:_.e("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 tH(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 W=_.Q(this.hostElement||this).querySelector("#inline-action-button-container");W&&W.setAttribute("aria-hidden","true");this.menuButton=_.Q(this.hostElement).querySelector("#menu-button")},
attached:function(){var W=this.menuButton;W&&(W.addEventListener("focusin",_.Ii(this,this.onMenuButtonFocus_)),W.addEventListener("focusout",_.Ii(this,this.onMenuButtonBlur_)))},
detached:function(){var W=this.menuButton;W&&(W.removeEventListener("focusin",_.Ii(this,this.onMenuButtonFocus_)),W.removeEventListener("focusout",_.Ii(this,this.onMenuButtonBlur_)))},
identity:_.GX,truthy:function(W){return!!W},
computeTimestampString:function(W){return W?W.timestampText?this.getSimpleString(W.timestampText):this.TIME_FORMATTER.format(new Date(W.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(W){return _.e("live_chat_whole_message_clickable")&&W},
computeMenuVisible_:function(W,O){return W||O},
computeHasInlineActionButtons:function(W){if(!W)return!1;var O,b;return!((O=W.inlineActionButtons)==null||!O.length)||!((b=W.additionalInlineActionButtons)==null||!b.length)},
createDocumentFragmentFromString:function(W){var O=_.rw.createDocumentFragment.bind(_.rw),b;if((b=this.participantsManager)==null||!b.viewerRegex)return O(W);b=document.createDocumentFragment();for(var T=0,L;(L=this.participantsManager.viewerRegex.exec(W))!=null;){if(L.index>0){var h=":"+L[0]+":";if((_.s6(_.rw,h)||_.E8(_.rw,h))&&W.indexOf(h)===L.index-1)continue}b.appendChild(O(W.substring(T,L.index)));T=document.createElement("span");T.appendChild(O(L[0]));T.classList.add("mention");b.appendChild(T);
T=L.index+L[0].length}b.appendChild(O(W.substring(T)));return b},
createDocumentFragment:function(W){var O=document.createDocumentFragment();if(W.simpleText)return O.appendChild(this.createDocumentFragmentFromString(W.simpleText)),O;if(!W.runs)return O;for(var b=0;b<W.runs.length;b++){var T=W.runs[b];if(T.emoji)O.appendChild(_.rw.createEmoji(T.emoji));else if(T.text)if(T.navigationEndpoint){var L=document.createElement("a");L.classList.add("yt-simple-endpoint");qzO(L,T.navigationEndpoint);_.Q(L).appendChild(this.createDocumentFragmentFromString(T.text));O.appendChild(L)}else O.appendChild(this.createDocumentFragmentFromString(T.text))}return O},
hasModerationOverlayVisible:function(){var W;return((W=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:W.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(W){W.composedPath().some(function(O){return(O=O instanceof Element?O:null)?O.tagName&&(O.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||O.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.e("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(W)},
colorFromDecimal:function(W){return H7h(W)},
markAsDeleted:function(W,O){this.set("data.deletedStateMessage",W);this.set("data.showOriginalContentMessage",O)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(W){if(this.data.contextMenuEndpoint){var O=_.iq().resolve(_.k1),b=this.data.contextMenuEndpoint,T;(T=_.GB.instance)&&_.Hs(T,b)?(O=vt7(O,b),T=_.QR(T,{},O)):T=_.gtq(O,b);T.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);W&&W.stopPropagation()}},
handleGetContextMenuResponse_:function(W){var O=_.GB.instance;O&&_.Hs(O,{liveChatEndpoint:{}})||(W=W.response);W.liveChatItemContextMenuSupportedRenderers&&W.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(W.liveChatItemContextMenuSupportedRenderers.menuRenderer);W.actions&&_.jx(this.hostElement,"yt-live-chat-actions",[W.actions])},
handleGetContextMenuError:function(W){if(W instanceof Error||W instanceof Object||W instanceof String)var O=W;_.Dt(new _.pu("Error encountered calling GetLiveChatItemContextMenu",O))},
showContextMenu_:function(W){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:W}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.bX(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.bX(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Dx.YtLiveChatItemBehavior=[otH,_.x_.YtComponentBehavior,_.aV.YtOpenPopupBehavior];_.xd=function(){};var QFv;var kIH;var sFL;var BV5;var zL=function(){var W=_.n.apply(this,arguments)||this;W.active=!1;W.identity=_.GX;return W};
_.R(zL,_.n);zL.prototype.dataChanged=function(){this.active=!1};
zL.prototype.onClick=function(){_.bX(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
zL.prototype.dataChanged=zL.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],zL.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],zL.prototype,"active",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zL.prototype,"dataChanged",null);zL=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],zL);
_.H(zL,"yt-live-chat-text-input-field-suggestion",function(){if(BV5===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;sFL===void 0&&(sFL=document.createElement("template"));var T=sFL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);BV5=W}W=BV5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});_.C6=function(W,O,b){return CustomEvent.call(this,W,{detail:{value:O,path:b}})||this};
_.R(_.C6,CustomEvent);_.ql=function(){var W=_.n.apply(this,arguments)||this;W.viewerName=null;W.actionMap={"yt-live-chat-actions":"onChatMessage_"};W.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];W.PARTICIPANT_TIME_USEC_=3E8;return W};
_.R(_.ql,_.n);_.d=_.ql.prototype;_.d.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.d.addParticipant=function(W){var O=_.e8e(this.participants,W,function(T,L){T=T[Object.keys(T)[0]];L=L[Object.keys(L)[0]];T=String(_.NX(T.authorName)).toLowerCase();L=String(_.NX(L.authorName)).toLowerCase();return T<L?-1:T==L?0:1}.bind(this));
if(O>=0){var b=this.participants[O];b[Object.keys(b)[0]].timestampUsec&&this.splice("participants",O,1,W)}else this.splice("participants",-O-1,0,W);W=W[Object.keys(W)[0]];O=_.NX(W.authorName).toLocaleLowerCase();b=O.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(b)||(this.allParticipantsCharMap_[b]={});this.allParticipantsCharMap_[b][O]=W};
_.d.getAuthorsFromPrefix=function(W){return this.allParticipantsCharMap_.hasOwnProperty(W)?this.allParticipantsCharMap_[W]:null};
_.d.computeViewerRegex_=function(W){if(!W)return null;W=W.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.e("enable_web_yt_handles")||_.e("enable_live_chat_yt_handles")?new RegExp("([#]"+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+W.replace(/ /g,"\\s*")+"|^"+W.replace(/ /g,"\\s*")+"$|^"+W.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+W.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+W.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.d.checkForStaleParticipants_=function(){var W=this;this.trimOldParticipants_();this.asyncHandle_&&wV2(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.qe(function(){W.checkForStaleParticipants_()},3E4))};
_.d.onChatMessage_=function(W){var O=this,b=Date.now()*1E3;W.forEach(function(T){if(T=_.P(T,FB5)){T=T.item;var L=Object.keys(T)[0];O.SUPPORTED_ITEM_TYPES_.indexOf(L)!=-1&&T[L].timestampUsec>=b-O.PARTICIPANT_TIME_USEC_&&O.addParticipant(T)}},this);
this.checkForStaleParticipants_()};
_.d.trimOldParticipants_=function(){for(var W=Date.now()*1E3,O=this.participants.length-1;O>=0;O--){var b=this.participants[O];b=b[Object.keys(b)[0]];b.timestampUsec&&b.timestampUsec<W-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",O,1)}};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],_.ql.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],_.ql.prototype,"viewerName",void 0);_.t([_.C({computed:"computeViewerRegex_(viewerName)"}),_.N("design:type",Object)],_.ql.prototype,"viewerRegex",void 0);_.t([_.C({value:function(){return[]},
notify:!0}),_.N("design:type",Array)],_.ql.prototype,"participants",void 0);_.ql=_.t([_.sl({is:"yt-live-chat-participants-manager",noInjection:!0})],_.ql);var ry7=/.*([:@#].*?)$/,n6=/\u00a0/g,D3S=String.fromCharCode(160),x3w={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"},f6=function(){var W=_.n.apply(this,arguments)||this;W.disabled=!1;W.liveChatRichMessageInput=null;W.messageInput=null;W.isValidWithNoInputText=!1;W.suggestions=[];W.emojiManager=_.rw;W.inputMethodEditorActive=
!1;W.suggestionIndex=-1;W.JSC$11987_lastSuggestionRange=null;return W};
_.R(f6,_.n);_.d=f6.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.d.attached=function(){_.TR&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.d.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.d.dataChanged=function(){if(!this.ignoreColorMapping){var W=!1,O={},b;for(b in x3w)this.data&&this.data.hasOwnProperty(b)&&(O[x3w[b]]=this.colorFromDecimal(this.data[b]),W=!0);W&&_.Sl(this.hostElement,O)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.d.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.d.colorFromDecimal=function(W){W=Math.floor(Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
_.d.preventDrag=function(W){W.dataTransfer&&(W.dataTransfer.dropEffect="none");W.preventDefault()};
_.d.preventResize=function(W){W.returnValue=!1};
_.d.onInputChange=function(){var W=this.characterCount,O=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&O&&O.remove();if(!O&&this.characterCount>this.maxCharacterLimit){var b=window.getSelection();if(b){var T=b.getRangeAt(0);b.removeAllRanges();b.addRange(T)}}if(b=this.getCurrentRange())T=this.calculateTextBeforeRange(b),this.completeEmojisInRange(b,T,!0)||this.updateSuggestions(b,T);T=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(T);
_.bX(this.hostElement,"yt-live-chat-message-input-change",T);O&&this.characterCount===0&&O.remove();b&&b.commonAncestorContainer.parentElement.id==="input"&&b.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>W):b&&!b.collapsed&&b.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(W=this.input.childNodes.length-1;W>=0;W--)this.input.childNodes[W].nodeName==="BR"&&this.input.childNodes[W].remove()};
_.d.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.d.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var W=this.getCurrentRange();W&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.mergeOverflowText=function(W){if(W){var O=document.createRange();O.selectNodeContents(W);O=O.extractContents();this.input.insertBefore(O,W)}};
_.d.checkRangeAtEndOfInput=function(){var W=this.getCurrentRange();if(W){var O=_.Q(this.hostElement).querySelector("#overflow-text"),b=document.createRange();O&&O.previousSibling?O.previousSibling instanceof HTMLImageElement?b.selectNode(O.previousSibling):b.selectNodeContents(O.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?b.selectNode(this.input.lastChild):b.selectNodeContents(this.input.lastChild));b.collapse(!1);return b.isPointInRange(W.startContainer,
W.startOffset)}return!1};
_.d.handleOverflowText=function(W){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var O=_.Q(this.hostElement).querySelector("#overflow-text"),b=this.getCurrentRange();this.input.normalize();W=this.checkRangeAtEndOfInput()&&W;this.mergeOverflowText(O);for(var T,L=0,h=0,Z,a=this.input.childNodes,m=0;m<a.length;m++){var w=a[m];w instanceof Text?(h+=w.textContent.length,h>this.maxCharacterLimit&&(T=w,L=this.maxCharacterLimit+w.textContent.length-h)):w instanceof HTMLImageElement&&
(T=void 0,h=w.dataset.emojiId&&((T=this.data)==null?0:T.emojiCharacterCount)?h+this.data.emojiCharacterCount:h+w.alt.length,T=this.input,L=m);if(h>this.maxCharacterLimit&&T){Z=document.createRange();Z.collapse(!1);O?(h=this.input.lastChild.previousSibling,h instanceof Text?Z.setEnd(this.input.lastChild.previousSibling,h.textContent.length):h instanceof HTMLImageElement&&Z.setEnd(this.input,this.input.childNodes.length-1)):Z.selectNodeContents(this.input);Z.setStart(T,L);break}}Z&&(T=!1,b&&(W=Z.isPointInRange(b.startContainer,
b.startOffset-1)),O||(O=document.createElement("span"),O.id="overflow-text",O.textContent="",O.setAttribute("contenteditable","true"),_.Q(_.Q(this.hostElement).querySelector("#input")).appendChild(O),T=!0),O&&(b=Z.extractContents(),O.insertBefore(b,O.firstChild),W&&O.firstChild&&(b=document.createRange(),T?b.setStartAfter(O.lastChild):b.setStartAfter(O.firstChild),b.collapse(!0),O=window.getSelection(),O.removeAllRanges(),O.addRange(b))))}};
_.d.checkForDuplicateSpans=function(){for(var W=0;W<this.input.childNodes.length;W++){var O=this.input.childNodes[W];if(O.nodeName==="SPAN"){var b=document.createRange();b.selectNodeContents(O);b=b.extractContents();this.input.insertBefore(b,O);O.remove()}}this.handleOverflowText(!0)};
_.d.getCurrentRange=function(){var W=window.getSelection();return W&&W.rangeCount?W.getRangeAt(0).cloneRange():null};
_.d.getInputRange=function(){var W=this.getCurrentRange();if(W){for(var O=W.commonAncestorContainer,b=!1,T=_.Q(this.hostElement).querySelector("#input");O;){if(O===T){b=!0;break}O=O.parentNode}b||(W=null)}W||(W=this.getRangeAtEnd());return W};
_.d.getRangeAtEnd=function(){var W=document.createRange(),O=_.Q(this.hostElement).querySelector("#input").lastChild;!O||O.nodeName!=="#text"&&O.nodeName!=="SPAN"?(W.selectNodeContents(_.Q(this.hostElement).querySelector("#input")),W.collapse(!1)):O.nodeName==="#text"?W.setStart(O,O.textContent.length):W.setStart(O,O.childNodes.length);return W};
_.d.getSuggestions=function(W){var O=[],b=W.substring(0,3),T=RS7(_.rw,b,!0);if(T)for(var L in T)if(L.toLocaleLowerCase().indexOf(W)===0){var h=T[L];if(h&&h.emojiId){if(h=pe5(_.rw,h.emojiId)){var Z=void 0,a=void 0,m=void 0,w=void 0,A=((Z=h.image)==null?0:(a=Z.accessibility)==null?0:(m=a.accessibilityData)==null?0:m.label)||h.isCustomEmoji?(w=h.shortcuts)==null?void 0:w[0]:h.emojiId;O.push({suggestion:{emoji:!0,image:h.image,alt:A,text:L,textToInsertWhenSelected:h.isCustomEmoji?L:A}})}if(O.length>=
64)break}}if(!this.participantsManager)return null;T=_.e("enable_web_yt_handles")||_.e("enable_live_chat_yt_handles");if(b.indexOf("@")===0||b.indexOf("#")===0)if(L=b.charAt(0),W=W.substring(1),b=T&&b.indexOf("@")===0?b.substring(0,2):b.substring(1),b=this.participantsManager.getAuthorsFromPrefix(b))for(var X in b)if(X.indexOf(W)===0||T&&X.indexOf(L+W)===0)if(h=b[X],Z=_.NX(h.authorName),O.push({suggestion:{author:!0,authorType:L,image:h.authorPhoto,alt:Z,text:Z}}),O.length>=64)break;return O?O.sort(function(l,
p){return p.suggestion.text<l.suggestion.text?-1:p.suggestion.text===l.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(W){var O=_.e("enable_web_yt_handles")||_.e("enable_live_chat_yt_handles")?W.text+D3S:W.authorType+W.text+D3S;W.emoji?this.insertTextAtRange(this.JSC$11987_lastSuggestionRange,W.textToInsertWhenSelected||""):W.author&&this.insertTextAtRange(this.JSC$11987_lastSuggestionRange,O)};
_.d.updateSuggestionsAtCaret=function(){var W=this.getCurrentRange();W&&this.updateSuggestions(W,this.calculateTextBeforeRange(W))};
_.d.offsetStartOfRangeBy=function(W,O){for(;O>0;)if(W.startOffset-O>=0){W.setStart(W.startContainer,W.startOffset-O);break}else{O=W.startContainer instanceof HTMLImageElement?O-W.startContainer.alt.length:O-W.startOffset;var b=W.startContainer.previousSibling;if(!b){W.setStart(W.startContainer,0);break}if(_.e("live_chat_require_space_for_autocomplete_emoji")){var T=void 0,L=void 0;W.setStart(b,((T=b)==null?void 0:(L=T.textContent)==null?void 0:L.length)||0)}else W.setStart(b,b.childNodes.length||
0)}};
_.d.updateSuggestions=function(W,O){var b=this;this.JSC$11987_lastSuggestionRange&&(this.JSC$11987_lastSuggestionRange.detach(),this.JSC$11987_lastSuggestionRange=null);if((O=ry7.exec(O))&&O.length&&(O=O[O.length-1].toLocaleLowerCase(),O.length>2&&(this.offsetStartOfRangeBy(W,O.length),this.JSC$11987_lastSuggestionRange=W,(W=this.getSuggestions(O))&&W.length))){this.suggestions=W;_.My(this,function(){_.Q(b.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.d.completeEmojisInRange=function(W,O,b){var T=O.replace(/[\s\xa0]+$/,"");O=O.length-T.length;T=T.split(" ");T=T[T.length-1].trim().toLocaleLowerCase();var L=T.lastIndexOf(":");if(b&&!O&&L!==T.length-1)return!1;L!==-1&&(b=T.lastIndexOf(":",L-1),b!==-1&&(T=T.substring(b)));if((b=_.E8(_.rw,T))&&b.emojiId){b=pe5(_.rw,b.emojiId)||null;this.offsetStartOfRangeBy(W,T.length+O);var h,Z,a,m;T=(((h=b)==null?0:h.isCustomEmoji)?(Z=b)==null?void 0:(a=Z.shortcuts)==null?void 0:a[0]:(m=b)==null?void 0:m.emojiId)||
"";O&&(T+=D3S);this.insertTextAtRange(W,T);this.dropdown.opened=!1;return!0}return!1};
_.d.onSuggestion=function(W){this.insertSuggestion(W.detail);this.dropdown.opened=!1};
_.d.onKeyPress=function(W){W.keyCode===13&&(W.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.bX(this.hostElement,"yt-live-chat-send-message"))};
_.d.completeEmojis=function(){var W=document.createRange(),O=_.Q(this.hostElement).querySelector("#input").lastChild;O?W.setStart(O,O.childNodes.length):(W.selectNodeContents(_.Q(this.hostElement).querySelector("#input")),W.collapse(!1));this.completeEmojisInRange(W,this.calculateTextBeforeRange(W),_.e("live_chat_require_space_for_autocomplete_emoji"))};
_.d.maybePreventTextFormatting=function(W){!_.Sb||!W.ctrlKey&&!W.metaKey||W.keyCode!==66&&W.keyCode!==73||(W.stopImmediatePropagation(),W.preventDefault())};
_.d.onKeyDown=function(W){this.maybePreventTextFormatting(W);if(this.dropdown.opened)switch(W.keyCode){case 27:this.dropdown.opened=!1;W.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;W.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.d.onKeyUp=function(W){switch(W.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.jb)this.onInputChange()};
_.d.changeSuggestionIndex=function(W){if(this.dropdown.opened){var O=_.Q(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<O.children.length&&(O.children[this.suggestionIndex].active=!1);var b=this.suggestions.length;this.suggestionIndex=(W+b)%b;W=O.children[this.suggestionIndex];W.active=!0;O.scrollTop=W.offsetTop}};
_.d.onInputPaste=function(W){W.preventDefault();(W=W.clipboardData)&&W.types&&(W=W.getData("text/plain")||"",W=W.replace(/\n/g,""),this.insertText(W));(W=this.getCurrentRange())&&W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.d.onFocus=function(){this._setFocused(!0)};
_.d.onBlur=function(){this._setFocused(!1)};
_.d.insertText=function(W){this.insertTextAtRange(this.getInputRange(),W)};
_.d.insertTextAtRange=function(W,O){if(W&&(W.collapsed||W.deleteContents(),O=_.rw.createDocumentFragment(O,!0,!1))){for(var b=_.S((O==null?void 0:O.childNodes)||[]),T=b.next();!T.done;T=b.next()){T=T.value;var L=void 0,h=void 0,Z=void 0,a=void 0,m=void 0;(Z=(L=window)==null?void 0:(h=L.ShadyCSS)==null?void 0:h.ScopingShim)==null||(m=(a=Z).scopeNode)==null||m.call(a,T,this.hostElement.localName)}b=O.lastChild;W.insertNode(O);this.focused||this.input.focus();if(this.focused){W=W.cloneRange();W.selectNodeContents(b);
W.collapse(!1);if(O=window.getSelection())O.removeAllRanges(),O.addRange(W);W.commonAncestorContainer.parentElement.id==="input"&&W.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}W=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(W);_.bX(this.hostElement,"yt-live-chat-message-input-change",W)}};
_.d.setLiveChatRichMessageInput=function(W){_.Q(_.Q(this.hostElement).querySelector("#input")).textContent="";if(W&&W.textSegments){for(var O=0;O<W.textSegments.length;O++){var b=W.textSegments[O];b.text?_.Q(_.Q(this.hostElement).querySelector("#input")).appendChild(_.rw.createDocumentFragment(b.text,!0,!1)):b.emojiId&&(b=_.s6(_.rw,b.emojiId))&&_.Q(_.Q(this.hostElement).querySelector("#input")).appendChild(_.rw.createEmoji(b,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.d.setText=function(W){this.setLiveChatRichMessageInput(W?{textSegments:[{text:W}]}:null)};
_.d.calculateTextBeforeRange=function(W){var O="",b=W.startContainer;if(b&&b instanceof Text){var T;O=((T=b.textContent)==null?void 0:T.substring(0,W.startOffset))||"";b=b.previousSibling}for(;b&&b instanceof Text;)O=b.textContent+O,b=b.previousSibling;return O.replace(n6," ")};
_.d.calculateLiveChatRichMessageInput=function(){for(var W=[],O="",b=_.Q(_.Q(this.hostElement).querySelector("#input")).childNodes,T=0;T<b.length;T++){var L=b[T];L instanceof Text?O+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(O&&(W.push({text:O.replace(n6," ")}),O=""),W.push({emojiId:L.dataset.emojiId})):O+=L.alt)}O&&W.push({text:O.replace(n6," ")});if(b=_.Q(this.hostElement).querySelector("#overflow-text")){O="";b=b.childNodes;for(T=0;T<b.length;T++)L=b[T],L instanceof Text?
O+=L.textContent:L instanceof HTMLImageElement&&(L.dataset.emojiId?(O&&(W.push({text:O.replace(n6," ")}),O=""),W.push({emojiId:L.dataset.emojiId})):O+=L.alt);O&&W.push({text:O.replace(n6," ")})}return{textSegments:W}};
_.d.computeCharacterCount=function(W){if(!W||!W.textSegments)return 0;for(var O=0,b=0;b<W.textSegments.length;b++){var T=W.textSegments[b];if(T.text)O+=T.text.length;else if(T.emojiId){var L=void 0;if((L=this.data)==null?0:L.emojiCharacterCount)O+=this.data.emojiCharacterCount;else{var h=L=void 0,Z=void 0;O+=((h=_.s6(_.rw,(L=T)==null?void 0:L.emojiId))==null?void 0:(Z=h.shortcuts)==null?void 0:Z[0].length)||0}}}return O};
_.d.characterCountChanged=function(){_.bX(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.d.focusedChanged=function(){this.hostElement.dispatchEvent(new _.C6("focused-changed",this.focused))};
_.d.focus=function(){this.setFocus(!1)};
_.d.focusAtEnd=function(){this.setFocus(!0)};
_.d.setFocus=function(W){W=W?this.getRangeAtEnd():this.getInputRange();_.Q(this.hostElement).querySelector("#input").focus();var O=window.getSelection();O&&(O.removeAllRanges(),O.addRange(W))};
_.d.insertEmoji=function(W){var O,b=((W==null?0:W.isCustomEmoji)?(O=W.shortcuts)==null?void 0:O[0]:W==null?void 0:W.emojiId)||"";this.insertText(b)};
_.d.computeText=function(W){if(!W||!W.textSegments)return"";for(var O="",b=0;b<W.textSegments.length;b++){var T=W.textSegments[b];if(T.text)O+=T.text;else if(T.emojiId){var L=void 0,h=void 0,Z=void 0;O+=((h=_.s6(_.rw,(L=T)==null?void 0:L.emojiId))==null?void 0:(Z=h.shortcuts)==null?void 0:Z[0])||""}}return O};
_.d.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Jq.Object.defineProperties(f6.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
f6.prototype.focusedChanged=f6.prototype.focusedChanged;f6.prototype.characterCountChanged=f6.prototype.characterCountChanged;f6.prototype.onSuggestion=f6.prototype.onSuggestion;f6.prototype.onMessageSet=f6.prototype.onMessageSet;f6.prototype.dataChanged=f6.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],f6.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],f6.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],f6.prototype,"disabled",void 0);_.t([_.x("disabled"),_.N("design:type",Number),_.N("design:paramtypes",[])],f6.prototype,"inputTabIndex",null);_.t([_.x("data.maxCharacterLimit"),_.C({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],f6.prototype,"maxCharacterLimit",null);
_.t([_.x("liveChatRichMessageInput"),_.C({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],f6.prototype,"characterCount",null);_.t([_.x("maxCharacterLimit, characterCount"),_.C({readOnly:!0,notify:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],f6.prototype,"remainingCharacterCount",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],f6.prototype,"isChatMessageInput",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],f6.prototype,"inputExpanded",void 0);_.t([_.C({readOnly:!0,notify:!0}),_.N("design:type",Object)],f6.prototype,"liveChatRichMessageInput",void 0);_.t([_.C(),_.N("design:type",Object)],f6.prototype,"messageInput",void 0);_.t([_.C(),_.N("design:type",Boolean)],f6.prototype,"ignoreColorMapping",void 0);_.t([_.x("characterCount"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],f6.prototype,"hasText",null);
_.t([_.C(),_.N("design:type",Object)],f6.prototype,"isValidWithNoInputText",void 0);_.t([_.x("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.C(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],f6.prototype,"isInputValid",null);_.t([_.C({readOnly:!0,value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],f6.prototype,"focused",void 0);_.t([_.C(),_.N("design:type",Array)],f6.prototype,"suggestions",void 0);
_.t([_.C(),_.N("design:type",_.kd)],f6.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",_.ql)],f6.prototype,"participantsManager",void 0);_.t([_.C(),_.N("design:type",Boolean)],f6.prototype,"noUnderline",void 0);_.t([_.C(),_.N("design:type",Object)],f6.prototype,"inputMethodEditorActive",void 0);_.t([_.El("#dropdown"),_.N("design:type",Object)],f6.prototype,"dropdown",void 0);_.t([_.El("#input"),_.N("design:type",HTMLElement)],f6.prototype,"input",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f6.prototype,"dataChanged",null);_.t([_.m5("messageInput"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f6.prototype,"onMessageSet",null);_.t([_.ai("yt-live-chat-select-suggestion"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],f6.prototype,"onSuggestion",null);
_.t([_.m5("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f6.prototype,"characterCountChanged",null);_.t([_.m5("focused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f6.prototype,"focusedChanged",null);f6=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],f6);
_.zS$=_.H(f6,"yt-live-chat-text-input-field-renderer",function(){if(kIH===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;QFv===void 0&&(QFv=document.createElement("template"));var T=QFv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);kIH=W}W=kIH;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var GL=function(){var W=_.n.apply(this,arguments)||this;W.buttonOverrides={style:"overlay",type:"filled"};W.allowAnimations=!1;W.modern=_.e("web_button_rework_with_live");W.noPadding=!1;return W};
_.R(GL,_.n);_.d=GL.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.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"}}}}};
_.d.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.attached=function(){this.allowAnimations=!1};
_.d.dataChanged=function(){if(this.data){var W={"--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)};_.Sl(this.hostElement,W);this.allowAnimations=!0}};
_.d.messageChanged=function(){var W,O=(W=this.data)==null?void 0:W.message;W=_.Q(_.Q(this.hostElement).querySelector("#message"));W.textContent="";O&&W.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(O))};
_.d.computeShowOnlyHeader=function(W,O){return!W||W.pdgLikeButton||W.replyButton||W.buyFlowButton?!1:this.isEmpty(W,O)&&!W.footer};
_.d.computeShowFooterDivider=function(W,O,b){return W?!!W.footer&&!this.isEmpty(W,O)&&!b:!1};
_.d.computeIsUserEditable=function(W){return!!W.inputField};
_.d.computeHasHeartButton=function(W){return(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(W==null?void 0:W.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.d.computeNoveltyImage=function(W){if(W.headerOverlayImage&&W.headerOverlayImage.thumbnails.length){var O=W.headerOverlayImage.thumbnails[0],b,T;if((b=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(T=b.loggingDirectives)==null?0:T.trackingParams){var L,h;eBE((L=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(h=L.loggingDirectives)==null?void 0:h.trackingParams)}return O.width||0}return 0};
_.d.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.d.inputFocus=function(){var W=_.Q(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");W&&W.focus()};
_.d.inputInsertEmoji=function(W){var O=_.Q(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");O&&O.insertEmoji(W)};
_.d.inputMessage=function(){var W=_.Q(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),O;return W&&((O=this.data)==null?0:O.inputField)?(W.completeEmojis(),_.qf(W.liveChatRichMessageInput)):null};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.d.isEmpty=function(W,O){return W?W.empty||!(W.message||W.inputField||O):!0};
_.d.onLowerBuyButtonClick=function(){var W,O=_.P((W=this.data)==null?void 0:W.buyButton,_.s2);O&&O.trackingParams&&!$Q1(O.command)&&(W=_.Pi(O.trackingParams))&&(O=_.Bb())&&_.Vw(O,W)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.Jq.Object.defineProperties(GL.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
GL.prototype.isDeletedChanged=GL.prototype.isDeletedChanged;GL.prototype.messageChanged=GL.prototype.messageChanged;GL.prototype.dataChanged=GL.prototype.dataChanged;_.t([_.D(l71.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],GL.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],GL.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],GL.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GL.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:UbX}),_.N("design:type",Object)],GL.prototype,"engagementState",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.N("design:type",Boolean)],GL.prototype,"isUserEditable",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.N("design:type",Boolean)],GL.prototype,"hasHeartButton",void 0);_.t([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Boolean)],GL.prototype,"showOnlyHeader",void 0);
_.t([_.C({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.N("design:type",Boolean)],GL.prototype,"showFooterDivider",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],GL.prototype,"allowAnimations",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],GL.prototype,"dashboardMoneyFeed",void 0);_.t([_.C({computed:"computeNoveltyImage(data)"}),_.N("design:type",Number)],GL.prototype,"noveltyWidth",void 0);
_.t([_.C({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],GL.prototype,"authorPhotoSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],GL.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],GL.prototype,"noPadding",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GL.prototype,"dataChanged",null);
_.t([_.m5("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GL.prototype,"messageChanged",null);_.t([_.x("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GL.prototype,"hideLowerBumper",null);_.t([_.m5("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GL.prototype,"isDeletedChanged",null);
GL=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],GL);
_.H(GL,"yt-live-chat-paid-message-renderer",function(){if(NM5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;VVU===void 0&&(VVU=document.createElement("template"));var T=VVU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);NM5=W}W=NM5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var C$v;var qW5;var HP=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.R(HP,_.A1);HP.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Cv("openPopupConfig")};
_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],HP.prototype,"ytOpenPopupBehavior",void 0);HP=_.t([_.XT()],HP);_.tW=[_.aV.YtOpenPopupBehavior,HP.prototype];var nt$;var Va=[_.wE,fLL,_.oP,_.Ao,_.V3,_.FDw,_.l8,_.S_N,_.QG,wu1];_.e("web_watch_get_updated_metadata_response_processing")&&Va.push(_.g2q);_.e("web_continuation_response_processing")&&Va.push(_.Cd);var UYO=new _.MV("RESPONSE_RECEIVED_COMMANDS"),aZ1=new _.MV("RESPONSE_RECEIVED_COMMANDS");var TLe="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),jOX=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],bM8=["GET_UNSEEN_NOTIFICATION_COUNT"];var $d=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.serviceEndpointHandlers=[];return W};
_.R($d,_.A1);$d.prototype.created=function(){var W=this;this.endpointHandlerActionMap={"yt-service-request":function(O,b,T,L){var h;return iM1(W.hostElement,O,b,T,L,W.serviceEndpointHandlers,(h=W.onEntitiesUpdated)==null?void 0:h.bind(W))}}};
$d.prototype.attached=function(){_.Vj(_.$G.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
$d.prototype.detached=function(){_.NJ(_.$G.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
$d=_.t([_.XT()],$d);_.fKz=[$d.prototype];var GI7,H81=function(){return GI7!==void 0?GI7:GI7=document.createElement("template")};
document.head.appendChild(H81().content);var t9U;var $3f=document.head,V99=$3f.appendChild,NVS;if(t9U===void 0){var M9w=document.createElement("template");_.v(M9w,"\x3c!--css-build:shady--\x3e");M9w.content.insertBefore(H81().content.cloneNode(!0),M9w.content.firstChild);t9U=M9w}NVS=t9U;V99.call($3f,NVS.content);var ul7,Jyz=function(){return ul7!==void 0?ul7:ul7=document.createElement("template")};
document.head.appendChild(Jyz().content);var cyN;var FV5=document.head,yyf=FV5.appendChild,Wsn;if(cyN===void 0){var O$z=document.createElement("template");_.v(O$z,"\x3c!--css-build:shady--\x3e");O$z.content.insertBefore(Jyz().content.cloneNode(!0),O$z.content.firstChild);cyN=O$z}Wsn=cyN;yyf.call(FV5,Wsn.content);var i$n;_.Bs("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.Bs("sharingRendererButtons","buttonRenderer","ytd-button-renderer");i$n=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live");_.V8=function(){var W=_.n.apply(this,arguments)||this;W.isPressed=!1;W.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return W};
_.R(_.V8,_.n);_.d=_.V8.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.onHintIdChanged=function(){var W=this,O,b,T=(O=this.ytButtonBehavior.data)==null?void 0:(b=O.hint)==null?void 0:b.hintRenderer;if(T&&T.hintId){O=_.TU(this.hostElement,"yt-get-opened-popups-action");O=(O&&O.length===1?O[0]:[]).length>0;var L=null;T.hintId!=="sponsor-pre-purchase"||O?T.hintId.startsWith("sponsor-post-purchase")&&!O?L=xT1("membership-manage"):T.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!O&&(L=xT1("membership-freebie-join")):L=xT1("membership-join");L&&_.sF.addLowPriorityJob(function(){for(var h=
_.S(L),Z=h.next();!Z.done;Z=h.next())W.ytComponentBehavior.resolveCommand(Z.value)})}};
_.d.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.d.onYtNavigate=function(W){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);O&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(O))};
_.d.onYtServiceRequestSent=function(W,O){this.handleServiceRequestActions(O);_.bX(this.hostElement,"yt-service-request-sent-button-renderer")};
_.d.onServiceRequestCompleted=function(W,O){this.handleServiceRequestActions(O);_.bX(this.hostElement,"yt-service-request-completed-button-renderer")};
_.d.updateButton=function(W){var O;if(W=(O=_.P(W,PMq))==null?void 0:O.updatedButton)this.ytButtonBehavior.data=_.P(W,_.s2)};
_.d.handleUpdateButtonAction=function(W){var O=this.ytButtonBehavior.data;O.targetId&&W.updateButtonAction.targetId&&O.targetId===W.updateButtonAction.targetId&&this.updateButton(W)};
_.d.handleServiceRequestActions=function(W){if(W=W.actions)for(var O=0;O<W.length;O++)this.updateButton(W[O])};
_.Jq.Object.defineProperties(_.V8,{template:{configurable:!0,enumerable:!0,get:function(){if(nt$===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);nt$=W}W=nt$;return W}}});
_.V8.prototype.onServiceRequestCompleted=_.V8.prototype.onServiceRequestCompleted;_.V8.prototype.onYtServiceRequestSent=_.V8.prototype.onYtServiceRequestSent;_.V8.prototype.onYtNavigate=_.V8.prototype.onYtNavigate;_.V8.prototype.onPressedStateChanged=_.V8.prototype.onPressedStateChanged;_.V8.prototype.onHintIdChanged=_.V8.prototype.onHintIdChanged;_.t([_.C(),_.N("design:type",Object)],_.V8.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],_.V8.prototype,"isPressed",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],_.V8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.m15.YtButtonBehavior),_.N("design:type",Object)],_.V8.prototype,"ytButtonBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],_.V8.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],_.V8.prototype,"ytComponentBehavior",void 0);
_.t([_.D(AW.YtRenderButtonBehavior),_.N("design:type",Object)],_.V8.prototype,"ytRenderButtonBehavior",void 0);_.t([_.m5("data.hint.hintRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.V8.prototype,"onHintIdChanged",null);_.t([_.m5("isPressed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],_.V8.prototype,"onPressedStateChanged",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],_.V8.prototype,"onYtNavigate",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],_.V8.prototype,"onYtServiceRequestSent",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],_.V8.prototype,"onServiceRequestCompleted",null);_.V8=_.t([_.G({is:"ytd-button-renderer",disableElementRegistration:i$n})],_.V8);var Nl=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.R(Nl,_.n);_.d=Nl.prototype;_.d.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"}}}}};
_.d.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.d.dataChanged=function(){if(this.data&&this.data.sticker){var W=_.bn(this.data.sticker.thumbnails,this.stickerWidth);W||_.UR2(W).thenCatch(function(){_.z5(new _.pu("Failed to load Super Sticker with url",W))})}};
_.d.computeAuthorPhotoSize=function(W){return(W==null?0:W.isV2Style)?32:40};
_.d.computeIsV2Style=function(W){return(W==null?0:W.isV2Style)?!0:!1};
_.d.onStickerLoaded=function(W){var O,b,T;(O=_.Md(W))==null||(b=O.parentNode)==null||(T=b.classList)==null||T.add("sticker-loaded")};
_.d.computeNoveltyImageWidth=function(W){var O,b;if(W==null?0:(O=W.headerOverlayImage)==null?0:(b=O.thumbnails)==null?0:b.length){O=W.headerOverlayImage.thumbnails[0];var T,L;if((T=W.pdgPurchasedNoveltyLoggingDirectives)==null?0:(L=T.loggingDirectives)==null?0:L.trackingParams){var h,Z;eBE((h=W.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(Z=h.loggingDirectives)==null?void 0:Z.trackingParams)}return O.width||0}return 0};
_.d.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.d.updateStickerStyles=function(){var W=this.data;W&&(W={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(W.authorNameTextColor)},
_.Sl(this.hostElement,W))};
_.d.onBuyButtonClick=function(){var W,O=_.P((W=this.data)==null?void 0:W.buyButton,_.s2);O&&!$Q1(O.command)&&this.ytRendererBehavior.logExplicitClick(O)};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.Jq.Object.defineProperties(Nl.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 W;return((W=this.data)==null?0:W.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Nl.prototype.updateStickerStyles=Nl.prototype.updateStickerStyles;Nl.prototype.isDeletedChanged=Nl.prototype.isDeletedChanged;Nl.prototype.onStickerLoaded=Nl.prototype.onStickerLoaded;Nl.prototype.dataChanged=Nl.prototype.dataChanged;_.t([_.D(l71.YtPdgLiveChatItemBehavior),_.N("design:type",Object)],Nl.prototype,"ytPdgLiveChatItemBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Nl.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Nl.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],Nl.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Nl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Nl.prototype,"data",void 0);
_.t([_.C({computed:"computeAuthorPhotoSize(data)"}),_.N("design:type",Number)],Nl.prototype,"authorPhotoSize",void 0);_.t([_.C(),_.N("design:type",Boolean)],Nl.prototype,"isDeleted",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Nl.prototype,"dashboardMoneyFeed",void 0);_.t([_.C({computed:"computeNoveltyImageWidth(data)"}),_.N("design:type",Number)],Nl.prototype,"noveltyWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Nl.prototype,"modern",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.N("design:type",Boolean)],Nl.prototype,"isV2Style",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nl.prototype,"dataChanged",null);_.t([_.ai("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Nl.prototype,"onStickerLoaded",null);
_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Nl.prototype,"stickerWidth",null);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Nl.prototype,"stickerHeight",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nl.prototype,"hasHeartButton",null);_.t([_.x("data","dashboardMoneyFeed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Nl.prototype,"hideLowerBumper",null);
_.t([_.m5("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nl.prototype,"isDeletedChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Nl.prototype,"updateStickerStyles",null);Nl=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Nl);
_.H(Nl,"yt-live-chat-paid-sticker-renderer",function(){if(qW5===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;C$v===void 0&&(C$v=document.createElement("template"));var T=C$v;b.call(O,T.content.cloneNode(!0),W.content.firstChild);qW5=W}W=qW5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var b$7;var jAn;var Tyv,LsU=function(){return Tyv!==void 0?Tyv:Tyv=document.createElement("template")};
document.head.appendChild(LsU().content);var dDw,hGv=function(){return dDw!==void 0?dDw:dDw=document.createElement("template")};
document.head.appendChild(hGv().content);var SU7;var Z$9,I_v=function(){return Z$9!==void 0?Z$9:Z$9=document.createElement("template")};
document.head.appendChild(I_v().content);var a_q;var mDU=document.head,YUq=mDU.appendChild,EiN;if(a_q===void 0){var wYN=document.createElement("template");_.v(wYN,"\x3c!--css-build:shady--\x3e");wYN.content.insertBefore(I_v().content.cloneNode(!0),wYN.content.firstChild);a_q=wYN}EiN=a_q;YUq.call(mDU,EiN.content);var AGU=document.head,XYU=AGU.appendChild,UD$;if(SU7===void 0){var Ml=document.createElement("template");_.v(Ml,"\x3c!--css-build:shady--\x3e");Ml.content.insertBefore(hGv().content.cloneNode(!0),Ml.content.firstChild);Ml.content.insertBefore(LsU().content.cloneNode(!0),Ml.content.firstChild);SU7=Ml}UD$=SU7;XYU.call(AGU,UD$.content);var uD=function(){var W=_.A1.apply(this,arguments)||this;W.focusedIndex=0;W.verticalOffset=0;W.verticalAlign="top";W.dynamicAlign=!0;return W};
_.R(uD,_.A1);uD.prototype.emojiUrl=function(W){W=_.s6(this.emojiManager,W);if(!W)return"";var O;W=(O=W.image)==null?void 0:O.thumbnails;return _.bn(W,24)||""};
var l_N=function(W){var O;W.emojiVariants&&(O=W.data)!=null&&O.target&&_.My(W,function(){W.set("verticalOffset",-1*W.hostElement.clientHeight);var b=_.Q(W.hostElement).querySelector("img");b&&b.focus()})};
_.d=uD.prototype;_.d.onKeyboardEnter=function(){};
_.d.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.d.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.d.onKeyDown=function(W){switch(W.keyCode){case 13:this.onKeyboardEnter();W.preventDefault();break;case 40:this.changeFocus(1);W.preventDefault();break;case 38:this.changeFocus(-1);W.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.d.onYtEmojiSelect=function(W){var O=this,b,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return T=(b=O.data)==null?void 0:b.emoji,Z=((L=T)==null?void 0:L.stickyPrefId)||((h=T)==null?void 0:h.emojiId),m=(a=W.detail)==null?void 0:a.emojiId,Z&&m&&Z!==m?_.Y(A,(w=O.emojiManager)==null?void 0:KVq(w,T,m),2):A.return();_.jx(O.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[T,m]);_.aD(A)})};
_.d.changeFocus=function(W){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+W+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(W=_.Q(this.hostElement).querySelector("#variants"))&&W.children[this.focusedIndex].focus())};
_.Jq.Object.defineProperties(uD.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
uD.prototype.onYtEmojiSelect=uD.prototype.onYtEmojiSelect;uD.prototype.onKeyDown=uD.prototype.onKeyDown;uD.prototype.onEmojiVariantsChanged=uD.prototype.onEmojiVariantsChanged;uD.prototype.onVerticalOffsetOrPositionTargetChanged=uD.prototype.onVerticalOffsetOrPositionTargetChanged;_.t([_.D(_.Gi),_.N("design:type",Object)],uD.prototype,"ironOverlayBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uD.prototype,"data",void 0);_.t([_.C(),_.N("design:type",_.kd)],uD.prototype,"emojiManager",void 0);
_.t([_.C(),_.N("design:type",Object)],uD.prototype,"emojiVariants",void 0);_.t([_.C(),_.N("design:type",Object)],uD.prototype,"focusedIndex",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uD.prototype,"positionTarget",null);_.t([_.C({reflectToAttribute:!0}),_.x("verticalOffset","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uD.prototype,"isPositioned",null);_.t([_.C(),_.N("design:type",Object)],uD.prototype,"verticalOffset",void 0);
_.t([_.C(),_.N("design:type",Object)],uD.prototype,"verticalAlign",void 0);_.t([_.C(),_.N("design:type",Object)],uD.prototype,"dynamicAlign",void 0);_.t([_.m5("verticalOffset","positionTarget"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uD.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.t([_.m5("emojiVariants"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uD.prototype,"onEmojiVariantsChanged",null);
_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],uD.prototype,"onKeyDown",null);_.t([_.ai("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],uD.prototype,"onYtEmojiSelect",null);uD=_.t([_.XT()],uD);var eGf=[uD.prototype];var P95;var pYN;var RG5=/medium-light|medium-dark|light|medium|dark/,Ksw=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,vi1=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),JW=function(){var W=_.n.apply(this,arguments)||this;W.userSelection={left:null,right:null};W.scrollAction="lock";W.isEmojiDraftInProgress=!1;return W};
_.R(JW,_.n);_.d=JW.prototype;_.d.onClick=function(W){W=_.Md(W);W instanceof HTMLImageElement&&this.selectOrUpdateEmoji(W)};
_.d.selectOrUpdateEmoji=function(W){var O=W.getAttribute("selection");O&&(O==="default"?_.bX(this.hostElement,"yt-emoji-select",_.s6(this.emojiManager,W.id)):O==="left"?this.userSelection=Object.assign({},this.userSelection,{left:W.src}):O==="right"?this.userSelection=Object.assign({},this.userSelection,{right:W.src}):O==="user"&&this.userSelection.left&&this.userSelection.right&&_.bX(this.hostElement,"yt-emoji-select",_.s6(this.emojiManager,W.id)))};
_.d.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.d.onMultiSelectorThumbnailRowChanged=function(){var W,O,b;((W=this.data)==null?0:(O=W.emoji)==null?0:(b=O.multiSelectorThumbnailRow)==null?0:b.length)&&this.openSelector()};
_.d.getThumbnailFromEmojiRow=function(W){var O,b;return(W==null?void 0:(O=W.thumbnails)==null?void 0:(b=O[0])==null?void 0:b.url)||""};
_.d.getEmojiAltTextForPartialSelector=function(W){var O;return((O=this.getThumbnailFromEmojiRow(W).match(Ksw))==null?void 0:O[0])||""};
_.d.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.d.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.d.getRowSelection=function(W){return["left","right"][W]};
_.d.getIdFromComposedEmoji=function(W){return(W==null?void 0:W.emojiId)||""};
_.d.getEmojiFromPartialSelections=function(W,O){if(!W&&!O)return null;var b,T,L=(b=this.data)==null?void 0:(T=b.emoji)==null?void 0:T.variantIds;if(!L||!L.length)return null;var h;W=(h=W.match(RG5))==null?void 0:h[0];var Z;O=(Z=O.match(RG5))==null?void 0:Z[0];if(!W||!O)return null;var a=vi1.get(W);Z=vi1.get(O);if(a===Z){Z=Array.from(vi1.values()).filter(function(w){return w!==a}).join("|");
var m=new RegExp("^((?!("+Z+")).)*"+a+"$")}else m=new RegExp(a+".*"+Z);return(L=L.find(function(w){return m.test(w)}))&&_.s6(this.emojiManager,L)||null};
_.d.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var W,O=this.ytEmojiSelectorBehavior.emojiUrl(((W=this.data.emoji)==null?void 0:W.emojiId)||"");_.Q(this.hostElement).querySelector('[selection="user"]').src.includes(O)||(this.isEmojiDraftInProgress=!0)}};
_.d.onDomChange=function(){l_N(this.ytEmojiSelectorBehavior)};
_.d.getFocusableElements=function(){return _.Q(this.hostElement).querySelectorAll("img").filter(function(W){return W.getAttribute("role")==="option"})};
_.d.changeFocus=function(W){var O=this.getFocusableElements();O!=null&&O.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+W+O.length)%O.length,this.ytEmojiSelectorBehavior.focusedIndex<O.length&&(W=O[this.ytEmojiSelectorBehavior.focusedIndex])&&W.focus())};
_.d.onKeyboardEnter=function(){var W=this.getFocusableElements();W!=null&&W.length&&(W=W[this.ytEmojiSelectorBehavior.focusedIndex])&&W instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(W),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Jq.Object.defineProperties(JW.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b,T;return this.emojiManager&&((O=this.data)==null?0:(b=O.emoji)==null?0:(T=b.variantIds)==null?0:T.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.s6(W.emojiManager,L)}).filter(function(L){return!!L}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var W,O=(W=this.userSelection)==null?void 0:W.left,b;W=(b=this.userSelection)==null?void 0:b.right;return O&&W?this.getEmojiFromPartialSelections(O,W):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.composedEmojiSelection)==null?0:W.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var O;W=(O=this.userSelection)==null?void 0:O.left;var b;O=(b=this.userSelection)==null?void 0:b.right;if(!W&&!O){var T;return this.ytEmojiSelectorBehavior.emojiUrl(((T=this.data.emoji)==null?void 0:T.emojiId)||"")}return W&&!O?W:!W&&O?O:""}}});
JW.prototype.onMultiSelectorThumbnailRowChanged=JW.prototype.onMultiSelectorThumbnailRowChanged;JW.prototype.onClick=JW.prototype.onClick;_.t([_.D(_.Gi),_.N("design:type",Object)],JW.prototype,"ironOverlayBehavior",void 0);_.t([_.D(eGf),_.N("design:type",Object)],JW.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],JW.prototype,"data",void 0);_.t([_.C(),_.N("design:type",_.kd)],JW.prototype,"emojiManager",void 0);
_.t([_.C(),_.N("design:type",Object)],JW.prototype,"userSelection",void 0);_.t([_.C(),_.N("design:type",Object)],JW.prototype,"scrollAction",void 0);_.t([_.C(),_.N("design:type",Object)],JW.prototype,"isEmojiDraftInProgress",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JW.prototype,"emojiVariants",null);_.t([_.x("data","userSelection"),_.N("design:type",Object),_.N("design:paramtypes",[])],JW.prototype,"composedEmojiSelection",null);
_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],JW.prototype,"onClick",null);_.t([_.m5("data.emoji.multiSelectorThumbnailRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JW.prototype,"onMultiSelectorThumbnailRowChanged",null);_.t([_.x("data","userSelection","composedEmojiSelection"),_.N("design:type",String),_.N("design:paramtypes",[])],JW.prototype,"draftEmojiUrl",null);
JW=_.t([_.sl({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],JW);
_.H(JW,"yt-emoji-multi-person-selector",function(){if(pYN===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;P95===void 0&&(P95=document.createElement("template"));var T=P95;b.call(O,T.content.cloneNode(!0),W.content.firstChild);pYN=W}W=pYN;return W},{mode:2});var giH;var oif;var cP=function(){var W=_.n.apply(this,arguments)||this;W.tooltip_=null;return W};
_.R(cP,_.n);_.d=cP.prototype;_.d.dataChanged_=function(){var W;if((W=this.data)==null?0:W.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Q(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.h1)(this.tooltip_).textContent=this.data.tooltip};
_.d.computeTargetId=function(){var W;return((W=this.data)==null?void 0:W.targetId)||""};
_.d.computeId_=function(W){return W};
_.d.computeIcon_=function(W){return _.Z6(W)};
_.d.onTap_=function(){this.active=!this.active;_.bX(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.d.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("active-changed",this.active))};
_.Jq.Object.defineProperties(cP.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var W,O;if((W=this.data)==null?0:(O=W.icon)==null?0:O.iconType)return this.data.icon.iconType==="SUPER_STICKER";var b,T;return((b=this.data)==null?void 0:(T=b.icon)==null?void 0:T.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
cP.prototype.activeChangedForBinding=cP.prototype.activeChangedForBinding;cP.prototype.dataChanged_=cP.prototype.dataChanged_;_.t([_.D(_.Dz.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],cP.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cP.prototype,"data",void 0);_.t([_.C({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.N("design:type",String)],cP.prototype,"id",void 0);
_.t([_.C({computed:"computeTargetId(data.targetId)"}),_.N("design:type",String)],cP.prototype,"targetId",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],cP.prototype,"active",void 0);_.t([_.C({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.N("design:type",String)],cP.prototype,"icon",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"dataChanged_",null);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cP.prototype,"iconFilled",null);_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cP.prototype,"activeChangedForBinding",null);cP=_.t([_.sl({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],cP);
_.H(cP,"yt-emoji-picker-category-button-renderer",function(){if(oif===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;giH===void 0&&(giH=document.createElement("template"));var T=giH;b.call(O,T.content.cloneNode(!0),W.content.firstChild);oif=W}W=oif;return W},{mode:2});var QA5;var kCf;var F$=function(){var W=_.n.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};W.JSC$12052_ignoreNextFocus_=!1;W.longPressTimeoutId=-1;return W};
_.R(F$,_.n);_.d=F$.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.A4(),O=0;O<this.emoji.length;O++){var b={veType:88013,elementIndex:O},T=this.emoji[O];T.isCustomEmoji&&(T=document.querySelector(("#"+T.emojiId).replace("/","\\/")))&&(b=_.wG(W,b))&&(T.visualElement=b)}};
_.d.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.d.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.d.emojiSkinToneChanged_=function(W){this.skinTone=W};
_.d.dataChanged=function(){this.data&&this.data.emojiData&&eSq(this.emojiManager,this.data.emojiData)};
_.d.emojiUrl=function(W){W=this.getEmoji(W);if(!W)return"";var O;W=(O=W.image)==null?void 0:O.thumbnails;return _.bn(W,24)||""};
_.d.emojiAlt=function(W){var O=this.get("image.accessibility.accessibilityData.label",W);return O?O:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.d.emojiAriaLabel=function(W){return W.shortcuts?W.shortcuts[0]:""};
_.d.emojiAriaSelected=function(W,O,b){return W&&b==O?"true":"false"};
_.d.getEmoji=function(W){if(this.emojiManager)return this.shouldUseStickyPreferences?pe5(this.emojiManager,W):BP(this.emojiManager,W)};
_.d.computeId_=function(W){return W.categoryId||""};
_.d.computeEmoji=function(W){var O=this;return this.emojiManager?W.emojiIds?W.emojiIds.map(function(b){return b?_.s6(O.emojiManager,b):null}).filter(lZX):W.emojiData?W.emojiData.map(function(b){var T=!!b.emojiId&&_.s6(O.emojiManager,b.emojiId);
return T?Object.assign({},T,b):null}).filter(lZX):[]:[]};
_.d.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.d.computeAriaLabel_=function(W){return _.NX(W)};
_.d.computeAriaActivedescendant_=function(W,O){return W&&W[O]?W[O].emojiId||"":""};
_.d.handleLongPressEmojiWithVariants=function(W,O){this.changeFocusToEmoji(W.emojiId,!1);this.openVariantSelector(W,O)};
_.d.onMouseDown=function(W){var O=this;this.hostElement!==document.activeElement&&(this.JSC$12052_ignoreNextFocus_=!0);if(W.button===0){var b=_.Md(W);if(b instanceof HTMLImageElement){var T=_.Q(this.hostElement).querySelector("#repeat").itemForElement(b);this.emojiContainsVariants(T)&&(this.longPressTimeoutId=setTimeout(function(){O.handleLongPressEmojiWithVariants(T,b)},500))}}};
_.d.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.d.onFocus=function(){this.JSC$12052_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12052_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.emojiContainsVariants=function(W){return!!(W&&W.variantIds&&W.variantIds.length)};
_.d.onClick=function(W){clearTimeout(this.longPressTimeoutId);W=_.Md(W);if(W instanceof HTMLImageElement){var O=W.id;this.changeFocusToEmoji(O,!1);var b=this.getEmoji(O),T;if(T=this.shouldUseStickyPreferences&&this.emojiContainsVariants(b)){var L;T=!((L=this.emojiManager.emojiMap[O])!=null&&L.stickyPrefId)}T?(L=_.Q(this.hostElement).querySelector("#repeat").itemForElement(W),this.openVariantSelector(L,W)):_.bX(this.hostElement,"yt-emoji-select",b)}};
_.d.isActiveEmojiWithVariants=function(W,O){return W&&O?O.stickyPrefId?W===O.stickyPrefId:W===O.emojiId:!1};
_.d.onCloseEmojiVariantSelector=function(W){this.activeEmojiWithVariantsId===W&&(this.activeEmojiWithVariantsId="")};
_.d.onMouseOver_=function(W){W=_.Md(W);W instanceof HTMLImageElement&&_.bX(this.hostElement,"yt-emoji-hover",_.s6(this.emojiManager,W.id))};
_.d.changeFocus_=function(W,O){this.focusedIndex=(this.focusedIndex+W+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(W=this.emoji[this.focusedIndex],O&&(this.showFocus=!0,_.Q(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.bX(this.hostElement,"yt-emoji-hover",W)))};
_.d.changeFocusToEmoji=function(W,O){if(W){var b=this.emoji.findIndex(function(T){return T.emojiId===W});
b!==-1&&this.changeFocus_(b-this.focusedIndex,O)}};
_.d.onKeyDown_=function(W){switch(W.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var O=this.emoji[this.focusedIndex];if(O&&O.emojiId){if(this.emojiContainsVariants(O)){var b=_.Q(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(O,b)}else _.bX(this.hostElement,"yt-emoji-select",BP(this.emojiManager,O.emojiId)),this.hostElement.focus();W.preventDefault()}}break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
_.d.onEmojiStickyPreferenceChanged=function(W,O){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&W.emojiId&&W.variantIds&&W.variantIds.includes(O)&&this.activeEmojiWithVariantsId!==O&&this.setStickyEmojiPreference(W.emojiId,O)};
_.d.openVariantSelector=function(W,O){this.activeEmojiWithVariantsId=W.stickyPrefId||W.emojiId||"";_.bX(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:W,target:O})};
_.d.setStickyEmojiPreference=function(W,O){if(this.data){var b=this.emoji.findIndex(function(L){return L.emojiId===W});
if(b!==-1){var T=this.emoji[b];T.stickyPrefId=O;this.set("emoji."+b,Object.assign({},T));this.activeEmojiWithVariantsId=O}}};
F$.prototype.onKeyDown_=F$.prototype.onKeyDown_;F$.prototype.onMouseOver_=F$.prototype.onMouseOver_;F$.prototype.onClick=F$.prototype.onClick;F$.prototype.onBlur_=F$.prototype.onBlur_;F$.prototype.onFocus=F$.prototype.onFocus;F$.prototype.onMouseUp=F$.prototype.onMouseUp;F$.prototype.onMouseDown=F$.prototype.onMouseDown;F$.prototype.dataChanged=F$.prototype.dataChanged;F$.prototype.disableIncrementalLoadingChanged_=F$.prototype.disableIncrementalLoadingChanged_;F$.prototype.emojiManagerChanged_=F$.prototype.emojiManagerChanged_;
F$.prototype.emojiChanged_=F$.prototype.emojiChanged_;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],F$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],F$.prototype,"data",void 0);_.t([_.C({computed:"computeId_(data)"}),_.N("design:type",String)],F$.prototype,"id",void 0);_.t([_.C({computed:"computeEmoji(data)"}),_.N("design:type",Array)],F$.prototype,"emoji",void 0);_.t([_.C(),_.N("design:type",Number)],F$.prototype,"skinTone",void 0);
_.t([_.C(),_.N("design:type",_.kd)],F$.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Boolean)],F$.prototype,"disableIncrementalLoading",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],F$.prototype,"focusedIndex",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],F$.prototype,"showFocus",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.N("design:type",Object)],F$.prototype,"ariaLabel",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.N("design:type",Object)],F$.prototype,"ariaActivedescendant",void 0);_.t([_.C({value:60}),_.N("design:type",Number)],F$.prototype,"domRepeatTargetFramerate",void 0);_.t([_.C({value:1}),_.N("design:type",Number)],F$.prototype,"domRepeatInitialCount",void 0);_.t([_.C({value:""}),_.N("design:type",String)],F$.prototype,"activeEmojiWithVariantsId",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],F$.prototype,"shouldUseStickyPreferences",void 0);_.t([_.m5("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"emojiChanged_",null);_.t([_.m5("emojiManager"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"emojiManagerChanged_",null);
_.t([_.m5("disableIncrementalLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"disableIncrementalLoadingChanged_",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"dataChanged",null);_.t([_.ai("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],F$.prototype,"onMouseDown",null);
_.t([_.ai("mouseup"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"onMouseUp",null);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"onFocus",null);_.t([_.ai("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F$.prototype,"onBlur_",null);
_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],F$.prototype,"onClick",null);_.t([_.ai("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],F$.prototype,"onMouseOver_",null);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],F$.prototype,"onKeyDown_",null);
F$=_.t([_.sl({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],F$);
_.H(F$,"yt-emoji-picker-category-renderer",function(){if(kCf===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;QA5===void 0&&(QA5=document.createElement("template"));var T=QA5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);kCf=W}W=kCf;return W},{mode:2});var sAS;var By9;var rG$;var DDN;var y8=function(){var W=_.n.apply(this,arguments)||this;W.ariaLabel=null;W.ariaActivedescendant=null;W.getFormattedStringRawText=_.NX;W.JSC$12058_ignoreNextFocus_=!1;return W};
_.R(y8,_.n);_.d=y8.prototype;_.d.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")};
_.d.emojiUrl=function(W){var O,b;W=(O=BP(this.emojiManager,W,!0))==null?void 0:(b=O.image)==null?void 0:b.thumbnails;return _.bn(W,24)||""};
_.d.emojiAlt=function(W){var O=this.get("image.accessibility.accessibilityData.label",W);return O?O:W.isCustomEmoji?W.shortcuts[0]:W.emojiId};
_.d.emojiId=function(W){return"emoji"+W};
_.d.computeId_=function(W){return W.categoryId||""};
_.d.computeAriaActivedescendant_=function(W){return this.emoji&&W<this.emoji.length?this.emojiId(W):""};
_.d.emojiChanged_=function(){this.changeFocus_(0,!1);for(var W=_.A4(),O=0;O<this.emoji.length;O++){var b={veType:88013,elementIndex:O},T=this.emoji[O];T.isCustomEmoji&&(T=document.querySelector(("#"+T.emojiId).replace("/","\\/")))&&(b=_.wG(W,b))&&(T.visualElement=b)}};
_.d.computeEmoji_=function(W){var O=this;return this.emojiManager?W.emojiIds.map(function(b){return _.s6(O.emojiManager,b,!0)}).filter(e7X):[]};
_.d.titleOffsetChanged_=function(){var W=this.hostElement.getBoundingClientRect(),O=_.Q(this.hostElement).querySelector("#title").getBoundingClientRect();W=Math.max(0,Math.min(this.titleOffset,W.height-O.height));_.Q(this.hostElement).querySelector("#title").style.top=W+"px"};
_.d.onEmojiMouseOver_=function(W){_.bX(this.hostElement,"yt-emoji-hover",W.model.item)};
_.d.onEmojiTap_=function(W){this.data.command&&(W=Qj2(_.iq().resolve(_.OT(HZ)),this.data.command,W),_.bX(this.hostElement,"yt-navigate",W))};
_.d.emojiAriaLabel=function(W){return W.shortcuts[0]};
_.d.emojiAriaSelected=function(W,O,b){return W&&b==O?"true":"false"};
_.d.changeFocus_=function(W,O){var b=this.emoji.length;this.focusedIndex=(this.focusedIndex+W+b)%b;W=this.emoji[this.focusedIndex];if(O){var T;(T=_.Q(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||T.scrollIntoView(!1);_.bX(this.hostElement,"yt-emoji-hover",W)}};
_.d.onMouseDown_=function(){this.JSC$12058_ignoreNextFocus_=!0};
_.d.onFocus_=function(){this.JSC$12058_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12058_ignoreNextFocus_=!1};
_.d.onBlur_=function(){this.showFocus=!1};
_.d.onKeyDown_=function(W){switch(W.keyCode){case 13:this.onEmojiTap_(W);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);W.preventDefault();break;case 38:this.changeFocus_(-1,!0),W.preventDefault()}};
y8.prototype.onKeyDown_=y8.prototype.onKeyDown_;y8.prototype.onBlur_=y8.prototype.onBlur_;y8.prototype.onFocus_=y8.prototype.onFocus_;y8.prototype.onMouseDown_=y8.prototype.onMouseDown_;y8.prototype.onEmojiTap_=y8.prototype.onEmojiTap_;y8.prototype.titleOffsetChanged_=y8.prototype.titleOffsetChanged_;y8.prototype.emojiChanged_=y8.prototype.emojiChanged_;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],y8.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],y8.prototype,"data",void 0);_.t([_.C({computed:"computeId_(data)"}),_.N("design:type",String)],y8.prototype,"id",void 0);_.t([_.C({computed:"computeEmoji_(data)"}),_.N("design:type",Array)],y8.prototype,"emoji",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],y8.prototype,"titleOffset",void 0);_.t([_.C({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.N("design:type",Object)],y8.prototype,"ariaLabel",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.N("design:type",Object)],y8.prototype,"ariaActivedescendant",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],y8.prototype,"showFocus",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],y8.prototype,"focusedIndex",void 0);_.t([_.C(),_.N("design:type",_.kd)],y8.prototype,"emojiManager",void 0);
_.t([_.m5("emoji"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y8.prototype,"emojiChanged_",null);_.t([_.m5("titleOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y8.prototype,"titleOffsetChanged_",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],y8.prototype,"onEmojiTap_",null);
_.t([_.ai("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y8.prototype,"onMouseDown_",null);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y8.prototype,"onFocus_",null);_.t([_.ai("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y8.prototype,"onBlur_",null);
_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],y8.prototype,"onKeyDown_",null);y8=_.t([_.sl({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],y8);
_.H(y8,"yt-emoji-picker-upsell-category-renderer",function(){if(DDN===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;rG$===void 0&&(rG$=document.createElement("template"));var T=rG$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);DDN=W}W=DDN;return W},{mode:2});var xDN;var zGN;var Ww=function(){var W=_.n.apply(this,arguments)||this;W.scrollAction="lock";W.verticalAlign="top";return W};
_.R(Ww,_.n);_.d=Ww.prototype;_.d.onClick=function(W){W=_.Md(W);W instanceof HTMLImageElement&&_.bX(this.hostElement,"yt-emoji-select",_.s6(this.emojiManager,W.id))};
_.d.openSelector=function(){this.ironOverlayBehavior.open()};
_.d.onDomChange=function(){l_N(this.ytEmojiSelectorBehavior)};
_.d.computeIsFamilySelector=function(W){var O;return(W==null?void 0:(O=W.emoji)==null?void 0:O.emojiId)==="\ud83d\udc6a"};
_.d.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var W=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];W&&W.emojiId&&(_.bX(this.hostElement,"yt-emoji-select",_.s6(this.emojiManager,W.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Jq.Object.defineProperties(Ww.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b,T;return this.emojiManager&&((O=this.data)==null?0:(b=O.emoji)==null?0:(T=b.variantIds)==null?0:T.length)?this.data.emoji.variantIds.map(function(L){return!!L&&_.s6(W.emojiManager,L)}).filter(function(L){return!!L}):[]}}});
Ww.prototype.onClick=Ww.prototype.onClick;_.t([_.D(_.Gi),_.N("design:type",Object)],Ww.prototype,"ironOverlayBehavior",void 0);_.t([_.D(eGf),_.N("design:type",Object)],Ww.prototype,"ytEmojiSelectorBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ww.prototype,"data",void 0);_.t([_.C(),_.N("design:type",_.kd)],Ww.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Object)],Ww.prototype,"scrollAction",void 0);_.t([_.C(),_.N("design:type",Object)],Ww.prototype,"verticalAlign",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.N("design:type",Boolean)],Ww.prototype,"isFamilySelector",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ww.prototype,"emojiVariants",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],Ww.prototype,"onClick",null);Ww=_.t([_.sl({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Ww);
_.H(Ww,"yt-emoji-variant-selector",function(){if(zGN===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;xDN===void 0&&(xDN=document.createElement("template"));var T=xDN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zGN=W}W=zGN;return W},{mode:2});var C9f=/:/g,qUf=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],Oh=function(){var W=_.n.apply(this,arguments)||this;W.emojiVariantSelector=null;W.emojiMultiPersonSelector=null;W.identity=_.GX;W.lastAnimationTime_=0;W.animationStart_=null;W.animationEnd_=null;return W};
_.R(Oh,_.n);_.d=Oh.prototype;
_.d.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}}};
_.d.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.rw)};
_.d.attached=function(){_.jb&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&P$7(this.emojiManager)};
_.d.dataChanged=function(){var W;if((W=this.data)==null?0:W.categories){W=this.emojiManager;var O=this.getCustomEmojiIds();W.pickerCustomEmojiIds=[].concat(_.PG(we5),_.PG(O))}};
_.d.getCustomEmojiIds=function(){var W,O=(W=this.data.categories)==null?void 0:W.find(function(h){var Z;return((Z=h.emojiPickerCategoryRenderer)==null?void 0:Z.categoryId)&&qUf.includes(h.emojiPickerCategoryRenderer.categoryId)}),b;
W=(b=this.data.categories)==null?void 0:b.find(function(h){return h.emojiPickerUpsellCategoryRenderer});
var T,L;return[O==null?void 0:(T=O.emojiPickerCategoryRenderer)==null?void 0:T.emojiIds,W==null?void 0:(L=W.emojiPickerUpsellCategoryRenderer)==null?void 0:L.emojiIds].flat().filter(function(h){return!!h})};
_.d.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.d.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.d.updateCategoriesAndPlaceholderInternal=function(W,O){var b=this;W&&O&&(this.categories=W.categories||[],this.categoryButtons=W.categoryButtons||[],this.resetPlaceholder(),this.search="",_.qe(function(){b.updateButtons_()}))};
_.d.computeId_=function(W){return W.id||""};
_.d.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(W){return W.emojiPickerCategoryRenderer&&W.emojiPickerCategoryRenderer.emojiData}):!1};
_.d.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.d.onShowEmojiVariantSelector=function(W){var O=W.detail.emojiData;O.variantIds&&O.variantIds.length&&(O.multiSelectorThumbnailRow&&O.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:O,target:W.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:O,target:W.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onIronOverlayClosed=function(W){var O=pe5(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");O&&W.composedPath&&(W.composedPath().includes(_.Q(this.hostElement).querySelector("#emoji-variant-selector"))||W.composedPath().includes(_.Q(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.jx(this.hostElement,"yt-close-emoji-variant-selector",[O.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.d.onEmojiVariantSelectorMouseup=function(W){var O=W.target.firstChild;this.variantSelectorOpened&&O&&_.qe(function(){O.noCancelOnOutsideClick=!1},100)};
_.d.onEmojiVariantSelectorMousedown=function(W){W=W.target.firstChild;this.variantSelectorOpened&&W&&(W.noCancelOnOutsideClick=!1)};
_.d.onSelectCategory_=function(W){var O=this.search!="";this.search="";for(var b=_.Q(this.hostElement).querySelector("#categories").children,T=0;T<b.length;T++){var L=b[T];if(L.id==W.detail.categoryId){O?(_.Q(this.hostElement).querySelector("#categories").scrollTop=L.offsetTop,this.updateButtons_()):(this.animationStart_=_.Q(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=L.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.d.onEmojiHover_=function(W){this.placeholder=W.detail.shortcuts?W.detail.shortcuts[0]:""};
_.d.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.d.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.d.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.d.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.d.computeSearchCategory_=function(W){W=W.replace(C9f,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();W=W.split(" ");for(var O=[],b=this.emojiManager.emojis,T=0;T<b.length;T++){var L=b[T];if(L.searchTerms)for(var h=0;h<L.searchTerms.length;h++){for(var Z=L.searchTerms[h].toLocaleLowerCase(),a=!1,m=0;m<W.length;m++)if(Z.indexOf(W[m])!=-1){a=!0;break}if(a&&(!L.isCustomEmoji||!L.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(L.emojiId))){O.push(L.emojiId);
break}}}return{categoryId:-1,emojiIds:O}};
_.d.computeSearchEmptyMessage_=function(W,O){return W&&O&&O.emojiIds&&O.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.d.computeSearching_=function(W){return this.emojiManager&&W.replace(C9f,"").length>1};
_.d.computeSkinToneHidden=function(){var W;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((W=this.data)==null||!W.hideSkinTonePicker)};
_.d.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.d.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.d.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.d.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.d.selectSkinTone_=function(W){W=Number(W.target.getAttribute("tone"));this.set("emojiManager.skinTone",W);_.jx(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[W]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.d.skinToneChanged_=function(){_.Q(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var W=_.Q(this.hostElement).querySelector("#dropdown-content").children,O=0;O<W.length;O++)O===this.skinTone?W[O].setAttribute("selected",""):W[O].removeAttribute("selected")};
_.d.animateScroll_=function(W){this.lastAnimationTime_||(this.lastAnimationTime_=W);W-=this.lastAnimationTime_;W<200?(_.Q(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*W/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Q(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.d.searchChanged_=function(){this.updateButtons_()};
_.d.updateButtons_=function(){var W=null;if(!this.search)for(var O=_.Q(this.hostElement).querySelector("#categories").scrollTop,b=_.Q(this.hostElement).querySelector("#categories").children,T=0;T<b.length;T++){var L=b[T];L.offsetTop<=O&&(W=L.id)}O=_.Q(this.hostElement).querySelector("#category-buttons").children;for(b=0;b<O.length;b++)T=O[b],T.active=T.id===W};
Oh.prototype.searchChanged_=Oh.prototype.searchChanged_;Oh.prototype.skinToneChanged_=Oh.prototype.skinToneChanged_;Oh.prototype.onEmojiHover_=Oh.prototype.onEmojiHover_;Oh.prototype.onSelectCategory_=Oh.prototype.onSelectCategory_;Oh.prototype.onShowEmojiVariantSelector=Oh.prototype.onShowEmojiVariantSelector;Oh.prototype.updateCategoriesAndPlaceholder_=Oh.prototype.updateCategoriesAndPlaceholder_;Oh.prototype.dataChanged=Oh.prototype.dataChanged;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Oh.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Oh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Oh.prototype,"data",void 0);_.t([_.C({value:function(){return[]}}),
_.N("design:type",Array)],Oh.prototype,"categories",void 0);_.t([_.C({value:function(){return[]}}),
_.N("design:type",Array)],Oh.prototype,"categoryButtons",void 0);_.t([_.C({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"disableScroll",void 0);_.t([_.C({computed:"computeId_(data)",reflectToAttribute:!0}),_.N("design:type",String)],Oh.prototype,"id",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Oh.prototype,"selected",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],Oh.prototype,"disableIncrementalLoading",void 0);_.t([_.C(),_.N("design:type",String)],Oh.prototype,"placeholder",void 0);_.t([_.C({value:""}),_.N("design:type",String)],Oh.prototype,"search",void 0);_.t([_.C({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"searching",void 0);_.t([_.C({computed:"computeSearchCategory_(search)"}),_.N("design:type",Object)],Oh.prototype,"searchCategory",void 0);
_.t([_.C({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.N("design:type",Object)],Oh.prototype,"searchEmptyMessage",void 0);_.t([_.C({computed:"identity(emojiManager.skinTone)"}),_.N("design:type",Number)],Oh.prototype,"skinTone",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Oh.prototype,"skinToneOpened",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Oh.prototype,"variantSelectorOpened",void 0);
_.t([_.C({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.N("design:type",Boolean)],Oh.prototype,"skinToneHidden",void 0);_.t([_.C(),_.N("design:type",_.kd)],Oh.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Object)],Oh.prototype,"emojiVariantSelector",void 0);_.t([_.C(),_.N("design:type",Object)],Oh.prototype,"emojiMultiPersonSelector",void 0);
_.t([_.C({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.N("design:type",Boolean)],Oh.prototype,"shouldUseStickyPreferences",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"dataChanged",null);_.t([_.m5("data","selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"updateCategoriesAndPlaceholder_",null);
_.t([_.ai("yt-show-emoji-variant-selector"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oh.prototype,"onShowEmojiVariantSelector",null);_.t([_.ai("yt-emoji-picker-select-category"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oh.prototype,"onSelectCategory_",null);_.t([_.ai("yt-emoji-hover"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Oh.prototype,"onEmojiHover_",null);
_.t([_.m5("skinTone"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"skinToneChanged_",null);_.t([_.m5("search"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oh.prototype,"searchChanged_",null);Oh=_.t([_.sl({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],Oh);
_.H(Oh,"yt-emoji-picker-renderer",function(){if(By9===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;sAS===void 0&&(sAS=document.createElement("template"));var T=sAS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);By9=W}W=By9;return W},{mode:2});var io=function(){var W=_.n.apply(this,arguments)||this;W.emojiManager=_.rw;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.selectedIndex=1;W.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return W};
_.R(io,_.n);_.d=io.prototype;_.d.handleEmojiCustomizationVisible=function(W){this.emojiPickerRenderer.selected=W;this.selectedIndex=1;W?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.d.emojiCustomizationSetChanged=function(){var W;(W=this.data)!=null&&W.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Ev(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.d.updateSaveButtonState=function(W){var O;(O=this.data)!=null&&O.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.AI("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:W}))};
_.d.emojiUrl=function(W){W=_.s6(this.emojiManager,W);if(!W)return"";var O;W=(O=W.image)==null?void 0:O.thumbnails;return _.bn(W,24)||""};
_.d.emojiAlt=function(W){var O=_.s6(this.emojiManager,W);if(!O)return W;var b,T,L,h=(O==null?void 0:(b=O.image)==null?void 0:(T=b.accessibility)==null?void 0:(L=T.accessibilityData)==null?void 0:L.label)||"";return h?h:O.isCustomEmoji?O.shortcuts[0]:O.emojiId||W};
_.d.emojiAriaLabel=function(W){var O,b;return((O=_.s6(this.emojiManager,W))==null?void 0:(b=O.shortcuts)==null?void 0:b[0])||W};
_.d.onEmojiClick=function(W){W.model.index!==0&&(this.selectedIndex=W.model.index)};
_.d.onEmojiSelect=function(W){W=W.detail;var O,b;((O=this.data)==null?0:O.emojiCustomizationSetEntityKey)&&((b=this.emojiCustomizationSet)==null?0:b.emojiId)&&W.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.AI("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,W.emojiId,this.selectedIndex)}))};
_.d.canEditEmoji=function(W,O,b){W=W.indexOf(O);return W===b||W===0||b===0?!1:!0};
_.d.getUpdatedEmojiIdList=function(W,O,b){var T=W.indexOf(O);W=[].concat(_.PG(W));T>=0&&(W[T]=W[b]);W[b]=O;return W};
_.Jq.Object.defineProperties(io,{template:{configurable:!0,enumerable:!0,get:function(){if(jAn===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;b$7===void 0&&(b$7=document.createElement("template"));var T=b$7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);jAn=W}W=jAn;return W}}});
io.prototype.onEmojiSelect=io.prototype.onEmojiSelect;_.t([_.D(_.rB),_.N("design:type",Object)],io.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],io.prototype,"ytActionHandlerBehavior",void 0);_.t([_.El("yt-emoji-picker-renderer"),_.N("design:type",Object)],io.prototype,"emojiPickerRenderer",void 0);
_.t([_.C({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(W,O){return _.IJ(W.entities,"emojiCustomizationSetEntity",O)},
observer:"emojiCustomizationSetChanged"}),_.N("design:type",Object)],io.prototype,"emojiCustomizationSet",void 0);_.t([_.C(),_.N("design:type",Object)],io.prototype,"originalEmojiSet",void 0);_.t([_.C(),_.N("design:type",_.kd)],io.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Object)],io.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],io.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],io.prototype,"selectedIndex",void 0);
_.t([_.ai("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],io.prototype,"onEmojiSelect",null);io=_.t([_.sl({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],io);var niH;var f_f;var GC$;var H$U;var bo=function(){var W=_.n.apply(this,arguments)||this;W.authorBadges=[];return W};
_.R(bo,_.n);_.d=bo.prototype;_.d.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.d.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]]"}}}}}};
_.d.dataChanged=function(){var W=LZX(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",W)};
_.d.updateMessage=function(){var W=this.data.message,O=_.Q(_.Q(this.hostElement).querySelector("#message"));O.textContent="";W&&O.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.d.shouldSupportWholeItemClick=function(){return!0};
_.d.onShowOriginalClick=function(W){W.preventDefault();this.showOriginal=!0};
_.d.computeShowBar=function(W,O,b){return W&&O||b};
_.d.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.d.computeAuthorIsOwner=function(W){return!!dQ2(W.authorBadges,"owner")};
_.d.computeAuthorNameColor=function(W){var O;if(_.e("live_chat_author_name_color_usernames")&&(W==null?0:(O=W.authorName)==null?0:O.simpleText))return _.mQX(_.Yqh(W.authorName.simpleText));if(_.e("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.mQX(_.h4(W.authorSeedColorArgb));if(_.e("live_chat_colored_usernames"))return"#cc0000";var b;return _.e("live_chat_simple_color_usernames")&&(W==null?0:(b=W.authorName)==null?0:b.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.h4(W.authorUsernameColorDark):_.h4(W.authorUsernameColorLight):""};
bo.prototype.updateMessage=bo.prototype.updateMessage;bo.prototype.dataChanged=bo.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],bo.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bo.prototype,"data",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"showOriginal",void 0);_.t([_.C({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"isDimmed",void 0);_.t([_.C({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"showBar",void 0);
_.t([_.C({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],bo.prototype,"authorBadges",void 0);_.t([_.C({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"authorIsOwner",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"inCollapsedBanner",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"inBanner",void 0);
_.t([_.C({value:_.e("live_chat_hide_avatars"),reflectToAttribute:!0}),_.N("design:type",Boolean)],bo.prototype,"avatarHidden",void 0);_.t([_.C({computed:"computeAuthorNameColor(data)"}),_.N("design:type",String)],bo.prototype,"authorNameColor",void 0);_.t([_.C(),_.N("design:type",_.ql)],bo.prototype,"participantsManager",void 0);_.t([_.C({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.N("design:type",Object)],bo.prototype,"filledButtonOverrides",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bo.prototype,"dataChanged",null);_.t([_.m5("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bo.prototype,"updateMessage",null);bo=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],bo);
_.H(bo,"yt-live-chat-text-message-renderer",function(){if(H$U===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;GC$===void 0&&(GC$=document.createElement("template"));var T=GC$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);H$U=W}W=H$U;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var jT=function(){var W=_.n.apply(this,arguments)||this;W.tonalButtonOverrides={type:"tonal",style:"overlay"};return W};
_.R(jT,_.n);
jT.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]]"}}}}}};
jT.prototype.shouldSupportInlineActionButtons=function(){return!0};
jT.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Jq.Object.defineProperties(jT.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],jT.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],jT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],jT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",_.ql)],jT.prototype,"participantsManager",void 0);
_.t([_.C(),_.N("design:type",Object)],jT.prototype,"tonalButtonOverrides",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.infoDialogButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],jT.prototype,"hasInfoDialogButton",null);jT=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],jT);
_.H(jT,"yt-live-chat-auto-mod-message-renderer",function(){if(f_f===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;niH===void 0&&(niH=document.createElement("template"));var T=niH;b.call(O,T.content.cloneNode(!0),W.content.firstChild);f_f=W}W=f_f;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var ty$;var $DS;var Vy5;var Tl=function(){return _.n.apply(this,arguments)||this};
_.R(Tl,_.n);_.t([_.C(),_.N("design:type",Object)],Tl.prototype,"data",void 0);Tl=_.t([_.G({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Tl);
_.H(Tl,"ytd-factoid-renderer",function(){if(Vy5!==void 0)return Vy5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Vy5=W},{mode:1});var Lh=function(){return _.n.apply(this,arguments)||this};
_.R(Lh,_.n);Lh.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.t([_.C(),_.N("design:type",Object)],Lh.prototype,"data",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);Lh=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],Lh);
_.H(Lh,"yt-live-chat-channel-activity-reputation-renderer",function(){if($DS===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ty$===void 0&&(ty$=document.createElement("template"));var T=ty$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);$DS=W}W=$DS;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var NyS;var Myf;var dn=function(){return _.n.apply(this,arguments)||this};
_.R(dn,_.n);dn.prototype.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dn.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Boolean)],dn.prototype,"menuFocused",void 0);_.t([_.C(),_.N("design:type",Object)],dn.prototype,"data",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],dn.prototype,"ytLiveChatItemBehavior",void 0);dn=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],dn);
_.H(dn,"yt-live-chat-donation-announcement-renderer",function(){if(Myf===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;NyS===void 0&&(NyS=document.createElement("template"));var T=NyS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Myf=W}W=Myf;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var uCn;var JGf,cGL=function(){if(JGf!==void 0)return JGf;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;uCn===void 0&&(uCn=document.createElement("template"));var T=uCn;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return JGf=W};var h5=function(){return _.n.apply(this,arguments)||this};
_.R(h5,_.n);_.Jq.Object.defineProperties(h5,{template:{configurable:!0,enumerable:!0,get:function(){return cGL()}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],h5.prototype,"data",void 0);h5=_.t([_.sl({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],h5);_.H(h5,"yt-live-chat-empty-feed-view-model",function(){return cGL()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var FsU;var yG7;var ST=function(){return _.n.apply(this,arguments)||this};
_.R(ST,_.n);ST.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"}}}}}};
_.Jq.Object.defineProperties(ST.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var W,O;return{runs:[{text:(W=this.data)==null?void 0:(O=W.channelName)==null?void 0:O.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var W=[],O;if((O=this.data)==null||!O.channelBadges)return W;var b;O=_.S((b=this.data)==null?void 0:b.channelBadges);for(b=O.next();!b.done;b=O.next()){b=_.P(b.value,SRH);var T=void 0,L=void 0;if((T=b)==null?0:(L=T.badgeImage)==null?0:L.sources)T=void 0,L={liveChatAuthorBadgeRenderer:{tooltip:b.tooltip,accessibility:{accessibilityData:{label:(T=_.P(b.rendererContext,_.A6))==null?void 0:T.label}}}},b.badgeImage.sources[0].clientResource?L.liveChatAuthorBadgeRenderer.icon=
{iconType:b.badgeImage.sources[0].clientResource.imageName}:L.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:b.badgeImage.sources},W.push(L)}return W}}});
_.t([_.C(),_.N("design:type",Object)],ST.prototype,"data",void 0);_.t([_.x("data.channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],ST.prototype,"channelName",null);_.t([_.x("data.channelBadges"),_.N("design:type",Array),_.N("design:paramtypes",[])],ST.prototype,"channelBadges",null);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);
ST=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],ST);
_.H(ST,"yt-live-chat-identity-view-model",function(){if(yG7===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;FsU===void 0&&(FsU=document.createElement("template"));var T=FsU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);yG7=W}W=yG7;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var WTU;var OGf;var iGq;var bG7;var ZX=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;W.supportsInlineActionButtons=!0;return W};
_.R(ZX,_.n);ZX.prototype.ready=function(){var W;((W=document.querySelector("yt-live-chat-app"))==null?0:W.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
ZX.prototype.dataChanged=function(W){var O=(0,_.h1)(_.Q(this.hostElement).querySelector("#detail-text"));O.textContent="";(W==null?0:W.detailText)&&O.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W.detailText))};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],ZX.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({observer:"dataChanged"}),_.N("design:type",Object)],ZX.prototype,"data",void 0);
_.t([_.C({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],ZX.prototype,"hidden",void 0);ZX=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],ZX);
_.H(ZX,"yt-live-chat-legacy-paid-message-renderer",function(){if(bG7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;iGq===void 0&&(iGq=document.createElement("template"));var T=iGq;b.call(O,T.content.cloneNode(!0),W.content.firstChild);bG7=W}W=bG7;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var jjf;var THS;var LTw={},Il=function(){return _.A1.apply(this,arguments)||this};
_.R(Il,_.A1);Il.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Il.prototype.onLiveChatMembershipItemBehaviorClick=Il.prototype.onLiveChatMembershipItemBehaviorClick;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Il.prototype,"data",void 0);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Il.prototype,"onLiveChatMembershipItemBehaviorClick",null);Il=_.t([_.XT()],Il);
LTw.YtLiveChatMembershipItemBehavior=[Il.prototype,_.F.YtRendererBehavior];var al=function(){var W=_.n.apply(this,arguments)||this;W.supportsInlineActionButtons=!0;W.hasPrimaryHeaderText=!1;W.showOnlyHeader=!1;W.authorBadges=[];W.modern=_.e("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.R(al,_.n);_.d=al.prototype;_.d.shouldSupportInlineActionButtons=function(){return!0};
_.d.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.d.ready=function(){var W=document.querySelector("yt-live-chat-app");W&&W.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d.messageChanged=function(){var W=this.data.message,O=(0,_.h1)(_.Q(this.hostElement).querySelector("#message"));O.textContent="";W&&O.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(W))};
_.d.computeHasPrimaryHeaderText=function(W){return!(!W||!W.headerPrimaryText)};
_.d.computeShowOnlyHeader=function(W,O){return this.isMessageEmpty(W,O)};
_.d.computeAuthorBadges=function(W){return W.authorBadges||[]};
_.d.isMessageEmpty=function(W,O){return!W||W.empty?!0:!W.message&&!W.inputField&&!O};
_.d.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.d.getInputElement=function(){return _.Q(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.d.inputFocus=function(){var W=this.getInputElement();W&&W.focus()};
_.d.inputInsertEmoji=function(W){var O=this.getInputElement();O&&O.insertEmoji(W)};
_.d.inputMessage=function(){var W=this.getInputElement();return W&&this.data.inputField?(W.completeEmojis(),_.qf(W.liveChatRichMessageInput)):null};
_.d.onFooterButtonClick=function(){this.data.footerButton&&_.bX(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.d.shouldSupportWholeItemClick=function(){return!0};
al.prototype.isDeletedChanged=al.prototype.isDeletedChanged;al.prototype.messageChanged=al.prototype.messageChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],al.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(LTw.YtLiveChatMembershipItemBehavior),_.N("design:type",Object)],al.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],al.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],al.prototype,"data",void 0);_.t([_.C({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.N("design:type",Object)],al.prototype,"hasPrimaryHeaderText",void 0);_.t([_.C({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.N("design:type",Object)],al.prototype,"showOnlyHeader",void 0);
_.t([_.C({computed:"computeAuthorBadges(data)"}),_.N("design:type",Array)],al.prototype,"authorBadges",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],al.prototype,"modern",void 0);_.t([_.m5("data.message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],al.prototype,"messageChanged",null);_.t([_.m5("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],al.prototype,"isDeletedChanged",null);
al=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],al);
_.H(al,"yt-live-chat-membership-item-renderer",function(){if(THS===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;jjf===void 0&&(jjf=document.createElement("template"));var T=jjf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);THS=W}W=THS;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var dbn;var hBn;var mf=function(){return _.n.apply(this,arguments)||this};
_.R(mf,_.n);mf.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mf.prototype,"data",void 0);mf=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],mf);
_.H(mf,"yt-live-chat-mode-change-message-renderer",function(){if(hBn===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;dbn===void 0&&(dbn=document.createElement("template"));var T=dbn;b.call(O,T.content.cloneNode(!0),W.content.firstChild);hBn=W}W=hBn;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var ScH;var ZGN;var Yo=function(){return _.n.apply(this,arguments)||this};
_.R(Yo,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],Yo.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yo.prototype,"data",void 0);Yo=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Yo);
_.H(Yo,"yt-live-chat-moderation-message-renderer",function(){if(ZGN===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;ScH===void 0&&(ScH=document.createElement("template"));var T=ScH;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ZGN=W}W=ZGN;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var IDU;var aD5;var Eh=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework");return W};
_.R(Eh,_.n);Eh.prototype.onClick=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var O;_.ax.instance.resolveCommand((O=this.data)==null?void 0:O.onClickCommand)}};
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Eh.prototype,"modern",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Eh.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],Eh.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],Eh.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Eh.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Eh.prototype,"data",void 0);Eh=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Eh);
_.H(Eh,"yt-live-chat-offer-click-count-message-renderer",function(){if(aD5===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;IDU===void 0&&(IDU=document.createElement("template"));var T=IDU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);aD5=W}W=aD5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var mbL;var wn=function(){return _.n.apply(this,arguments)||this};
_.R(wn,_.n);_.t([_.C(),_.N("design:type",Object)],wn.prototype,"data",void 0);wn=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],wn);
_.H(wn,"yt-live-chat-placeholder-item-renderer",function(){if(mbL===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);mbL=W}W=mbL;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var YcS;var EZq;var wvU=new tH(7),A5=function(){var W=_.n.apply(this,arguments)||this;W.data={};return W};
_.R(A5,_.n);A5.prototype.dataChanged=function(){var W;((W=this.data)==null?0:W.class)&&_.L2(this.hostElement,this.data.class,!0);var O;((O=this.oldData)==null?0:O.class)&&_.L2(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
A5.prototype.computeTimestampString=function(W){return wvU.format(new Date(W/1E3))};
A5.prototype.dataChanged=A5.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],A5.prototype,"data",void 0);_.t([_.C({computed:"computeTimestampString(data.timestampUsec)"}),_.N("design:type",String)],A5.prototype,"timestampString",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],A5.prototype,"dataChanged",null);A5=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],A5);
_.H(A5,"yt-live-chat-server-error-message",function(){if(EZq===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;YcS===void 0&&(YcS=document.createElement("template"));var T=YcS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);EZq=W}W=EZq;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var AMf;var XvL;var X4=function(){var W=_.n.apply(this,arguments)||this;W.defaultToFilledIcon=!1;return W};
_.R(X4,_.n);X4.prototype.computeHasPrimaryColorIcon=function(W){return W==="SPARK"||W==="SPONSORSHIP_STAR"};
X4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],X4.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],X4.prototype,"defaultToFilledIcon",void 0);_.t([_.C(),_.N("design:type",Object)],X4.prototype,"data",void 0);
_.t([_.C({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.N("design:type",Boolean)],X4.prototype,"hasPrimaryColorIcon",void 0);X4=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],X4);
_.H(X4,"yt-live-chat-viewer-engagement-message-renderer",function(){if(XvL===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;AMf===void 0&&(AMf=document.createElement("template"));var T=AMf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);XvL=W}W=XvL;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Ubn;var Uh=function(){var W=_.n.apply(this,arguments)||this;W.modernUpdate=!1;W.buttonStyle="overlay";W.buttonType="filled";return W};
_.R(Uh,_.n);Uh.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
Uh.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Uh.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Uh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Uh.prototype,"modernUpdate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],Uh.prototype,"buttonStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],Uh.prototype,"buttonType",void 0);
Uh=_.t([_.G({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],Uh);
_.H(Uh,"ytd-ad-hover-text-button-renderer",function(){if(Ubn!==void 0)return Ubn;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ubn=W},{mode:1});var lDf;var lo=function(){var W=_.n.apply(this,arguments)||this;W.buttonOverrides={size:"XS"};W.modern=_.e("web_button_rework");return W};
_.R(lo,_.n);lo.prototype.onHelpTap=function(W){this.data&&this.data.informationDialog&&(_.bX(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),W.preventDefault(),W.stopPropagation())};
_.t([_.C(),_.N("design:type",Object)],lo.prototype,"buttonOverrides",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lo.prototype,"modern",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lo.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lo.prototype,"data",void 0);lo=_.t([_.G({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],lo);
_.H(lo,"ytd-live-chat-purchased-product-message-renderer",function(){if(lDf!==void 0)return lDf;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return lDf=W},{mode:1});var eBH;var PS$;var eT=function(){var W=_.n.apply(this,arguments)||this;W.isContainerDeleted=!1;return W};
_.R(eT,_.n);eT.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
eT.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))};
eT.prototype.isContainerDeletedChanged=eT.prototype.isContainerDeletedChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],eT.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],eT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],eT.prototype,"isContainerDeleted",void 0);
_.t([_.C(),_.N("design:type",String)],eT.prototype,"deletedStateMessage",void 0);_.t([_.m5("isContainerDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eT.prototype,"isContainerDeletedChanged",null);eT=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],eT);
_.H(eT,"ytd-sponsorships-live-chat-header-renderer",function(){if(PS$!==void 0)return PS$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return PS$=W},{mode:1});var Pw=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework_with_live");W.buttonOverrides={style:"overlay",type:"filled"};return W};
_.R(Pw,_.n);Pw.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]]"}}}}}};
Pw.prototype.onCtaButtonClick=function(){var W,O=_.P((W=this.data)==null?void 0:W.optInPrompt,_.s2);if(W=this.maybeGetButtonCommand(O)){var b;(b=_.A4())==null||b.clickCommand(W)}};
Pw.prototype.maybeGetButtonCommand=function(W){return!W||!W.command||_.P(W.command,q_$)===void 0&&_.P(W.command,Cs7)===void 0?null:W.command};
Pw.prototype.shouldHideOptinPrompt=function(W,O){return!W||O};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],Pw.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pw.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pw.prototype,"modern",void 0);Pw=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Pw);
_.H(Pw,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(eBH!==void 0)return eBH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return eBH=W},{mode:1});var pvz;var ph=function(){return _.n.apply(this,arguments)||this};
_.R(ph,_.n);ph.prototype.onContextMenuClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
ph.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))};
ph.prototype.isDeletedChanged=ph.prototype.isDeletedChanged;_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],ph.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ph.prototype,"data",void 0);_.t([_.m5("isDeleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ph.prototype,"isDeletedChanged",null);ph=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],ph);
_.H(ph,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(pvz!==void 0)return pvz;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return pvz=W},{mode:1});var Rl=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return W};
_.R(Rl,_.n);_.d=Rl.prototype;
_.d.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"}}}};
_.d.handleLiveChatAction=function(W){_.P(W,WHn)?this.handleMarkChatItemAsDeletedAction(_.P(W,WHn)):_.P(W,yN5)&&this.handleRemoveChatItemAction(_.P(W,yN5))};
_.d.handleLiveChatActions=function(W){W.forEach(this.handleLiveChatAction,this)};
_.d.handleMarkChatItemAsDeletedAction=function(W){var O=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(T,L){var h=Object.keys(T)[0];Object.values(T)[0].id===W.targetItemId&&O.markAsDeleted("data.items",L,h,W.deletedStateMessage,W.showOriginalContentMessage)})};
_.d.handleRemoveChatItemAction=function(W){var O=this,b;((b=this.data)==null?0:b.items)&&this.data.items.forEach(function(T,L){Object.values(T)[0].id===W.targetItemId&&O.splice("data.items",L,1)})};
_.d.markAsDeleted=function(W,O,b,T,L){W=[W,O,b].join(".");this.set(W+".deletedStateMessage",T);this.set(W+".showOriginalContentMessage",L)};
_.t([_.C(),_.N("design:type",Object)],Rl.prototype,"data",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Rl.prototype,"ytActionHandlerBehavior",void 0);Rl=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Rl);
_.H(Rl,"yt-live-chat-item-display-list-renderer",function(){if(OGf===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;WTU===void 0&&(WTU=document.createElement("template"));var T=WTU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);OGf=W}W=OGf;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var RBw;var KTz,vZL=function(){if(KTz!==void 0)return KTz;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;RBw===void 0&&(RBw=document.createElement("template"));var T=RBw;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return KTz=W};var Kh=function(){var W=_.n.apply(this,arguments)||this;W.isHeader=!1;return W};
_.R(Kh,_.n);Kh.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Jq.Object.defineProperties(Kh,{template:{configurable:!0,enumerable:!0,get:function(){return vZL()}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Kh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Kh.prototype,"isHeader",void 0);Kh=_.t([_.sl({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Kh);_.H(Kh,"yt-live-chat-item-display-renderer",function(){return vZL()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var gZ1,oZU,rMS,BHU;
gZ1={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}};oZU={home:"eohps",search:"eosps",watch:"eowps"};_.QjN=["watch","search","home"];
_.vw=function(){this.JSC$12169_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12169_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Cv("PRECONSTRUCTION_DELAY",0);this.signals_=_.BH();this.targetPage_=""};
_.vw.prototype.init=function(W,O){W=W===void 0?"":W;O=O===void 0?null:O;if(this.JSC$12169_isInitialized_)this.abort();else if(this.JSC$12169_isInitialized_=!0,W&&_.kVU(this,W),O){var b=_.rk(this.signals_,"pcl")?0:10,T=function(){for(var L=0,h;h=_.QjN[L++];)h!=W&&h!=O&&this.pendingPages_.push(h);_.sjn(this)}.bind(this);
this.signals_.parkOrScheduleJob(T,b,"pcl")}};
_.vw.prototype.abort=function(){this.fragmentJobId_&&(_.sF.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);BHU(this)};
_.kVU=function(W,O){W.JSC$12169_isInitialized_&&!W.targetPage_&&(W.targetPage_=O,rMS(W,O),W.isInitialPass_=!1,rMS(W,O),W.signals_.processSignal(oZU[W.targetPage_]),BHU(W),_.sjn(W))};
_.sjn=function(W){W.pendingPages_.length&&!W.pagePreparerJobId_&&(W.pagePreparerJobId_=_.KB(_.sF,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.kVU(this,this.pendingPages_.shift())}.bind(W),W.DEFAULT_DELAY_))};
rMS=function(W,O){if(O=gZ1[O])for(var b in O){var T=!1,L=b;b.charAt(0)=="~"&&(T=!0,L=b.substring(1));var h=O[b];h=typeof h=="object"?h:{count:h};O[b]=h;h.componentName=L;h.count>0&&(W.isInitialPass_?T||W.isSeenDuringInitialPass_[L]||(W.JSC$12169_queue_.push({componentName:L,count:1,signals:h.signals}),W.isSeenDuringInitialPass_[L]=!0,h.count--):W.JSC$12169_queue_.push(h))}};
BHU=function(W){W.JSC$12169_queue_.length=0;W.targetPage_="";W.isInitialPass_=!0;W.signals_.processSignal("eop")};
_.vw.getInstance=function(){return _.j6(_.vw)};var Dbq=function(){this.signals=_.BH();this.init()};
Dbq.prototype.startPreconstruction=function(){_.vw.getInstance().init(_.qC("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
Dbq.prototype.init=function(){xbq(this);window.Polymer&&Umf&&yeX();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var W=_.i1.ytcsi;if(W&&W.gt&&(W=W.gt())&&W.tick&&(W.tick.aft>0||W.tick.pbs>0)&&(_.qC("IS_HOMEPAGE_COLD")||_.qC("IS_RESULTS_PAGE_COLD")||_.qC("IS_WATCH_PAGE_COLD"))){zBH(this);break a}I5T(NNe,this.onNotifications,this)}};
var xbq=function(W){var O=function(){W.signals.processSignal("dl")};
document.readyState==="complete"?(_.HU(Error("sh"),"WARNING"),O()):_.frq(window,"load",O)};
Dbq.prototype.onNotifications=function(W){W.timer||(_.qC("IS_HOMEPAGE_COLD")||_.qC("IS_RESULTS_PAGE_COLD")||_.qC("IS_WATCH_PAGE_COLD"))&&zBH(this)};
var zBH=function(W){W.signals.parkOrScheduleJob(function(){W.signals.processSignal("eocs")},10,"eor")};
new Dbq;var gn,ol=function(){return _.A1.apply(this,arguments)||this};
_.R(ol,_.A1);_.d=ol.prototype;_.d.enableActiveViewMeasurement=function(W){if(this.isActiveViewEnabled(W)){var O=this.getUrlPrefixesFromCommand(W.viewableCommands);W=this.getUrlPrefixesFromCommand(W.endOfSessionCommands);if(!gn){var b=_.Lu("active_view_tos_timeout_ms");gn=b>0?new pAE(this.getVersion(),b):new pAE(this.getVersion())}Keq(gn,this.hostElement);vx1(gn,this.hostElement,O,W)}};
_.d.stopActiveViewMeasurement=function(){gn&&Keq(gn,this.hostElement)};
_.d.isActiveViewEnabled=function(W){return!!W&&(this.hasAtLeastOneUrl(W.viewableCommands)||this.hasAtLeastOneUrl(W.endOfSessionCommands))};
_.d.hasAtLeastOneUrl=function(W){return!!W&&W.length>0&&W[0].loggingUrls!=null&&W[0].loggingUrls.length>0};
_.d.getVersion=function(){var W=_.Cv("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(W==null?void 0:W.length)===2?W[1]:null};
_.d.getUrlPrefixesFromCommand=function(W){if(!W)return[];var O=[];W=_.S(W);for(var b=W.next();!b.done;b=W.next())if(b=b.value,b.loggingUrls){b=_.S(b.loggingUrls);for(var T=b.next();!T.done;T=b.next())T=T.value,T.baseUrl&&O.push(T.baseUrl)}return O};
ol=_.t([_.XT()],ol);var Qc=[ol.prototype];var ko=function(){return _.A1.apply(this,arguments)||this};
_.R(ko,_.A1);_.Jq.Object.defineProperties(ko.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_entity_store_from_dependency_injection")?_.$I():_.uv()}}});
ko=_.t([_.XT()],ko);_.sh=[RL.prototype,ko.prototype];var CSq=["ytd-rich-shelf-renderer"],Bw=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";W.followUpDialogPromise=null;W.followUpDialogPromiseResolve=null;W.followUpDialogPromiseReject=null;return W};
_.R(Bw,_.A1);_.d=Bw.prototype;_.d.dismissibleItemIsDismissedChanged_=function(W){_.e("kevlar_fluid_dismiss")&&(W?_.bX(this.hostElement,"yt-dismissible-item-dismissed"):_.bX(this.hostElement,"yt-dismissible-item-undismissed"))};
_.d.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.d.dismissibleItemReset_=function(){var W=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 _.mJ(function(O,b){W.followUpDialogPromiseResolve=O;W.followUpDialogPromiseReject=b});
_.bX(this.hostElement,"yt-enable-lockup-interaction")};
_.d.dismissibleItemOnYtServiceRequestSent_=function(W,O){O.actions&&this.dismissibleItemProcessActions(O.actions,W)};
_.d.dismissibleItemOnRequestSent=function(W){if(_.e("web_button_rework"))for(var O=_.S(W.detail),b=O.next();!b.done;b=O.next()){var T=void 0;(b=(T=_.P(b.value,_.mM))==null?void 0:T.actions)&&this.dismissibleItemProcessActions(b,W)}};
_.d.dismissibleItemOnCommandSent=function(W,O){O&&this.dismissibleItemProcessActions(O,W)};
_.d.setAndGetDismissedContentId=function(W){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+W};
_.d.replayDismissAction=function(W){this.dismissibleItemProcessActions([W])};
_.d.dismissibleItemProcessActions=function(W,O){for(var b=0;b<W.length;b++){var T=W[b],L=void 0;((L=_.P(T,_.I5))==null?0:L.commands)&&this.dismissibleItemProcessActions(_.P(T,_.I5).commands,O);if(_.P(T,_.XZ)){if(L=_.P(T,_.XZ),!L.replaceParentSection||CSq.includes(this.hostElement.nodeName.toLowerCase()))_.e("web_see_fewer_shorts_reactive_dismissal")&&L.groupDismissal&&PRX(this,L.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(L),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.AI("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:T})),T=void 0,(T=O)==null||T.stopPropagation()}else if(_.P(T,SQL))this.dismissibleItemHandleHideEnclosingAction_(),T=void 0,(T=O)==null||T.stopPropagation();else if(_.P(T,e6z))_.e("web_see_fewer_shorts_reactive_dismissal")&&(T=_.P(T,e6z),L=void 0,((L=T)==null?0:L.targetGroupId)&&PRX(this,{targetGroupId:T.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.AI("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),T=void 0,(T=O)==null||T.stopPropagation();else if(_.P(T,_.mM))(T=_.P(T,_.mM).actions)&&_.Sx(this.hostElement,T,this.hostElement),T=void 0,(T=O)==null||T.stopPropagation();else{var h=L=void 0;((L=_.P(T,_.G5))==null?void 0:L.signal)!=="TELL_US_WHY"||((h=_.P(T,_.G5))==null?0:h.targetId)&&_.e("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),T=void 0,(T=O)==null||T.stopPropagation())}}};
_.d.dismissibleItemOnYtServiceRequestCompleted_=function(W,O){var b=this.get("feedbackResponses.0.followUpDialog",O.data);b?this.followUpDialogPromiseResolve(b):O.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(O.actions,W)};
_.d.dismissibleItemHandleReplaceEnclosingAction_=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0;var O=null;(O=_.Q(this.hostElement).querySelector("#dismissed"))&&_.My(this,function(){_.JS(O)});
_.bX(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.d.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.d.dismissibleItemHandleUndoFeedbackAction_=function(){_.bX(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.d.dismissibleItemHandleTellUsWhySignalAction_=function(){var W=this;this.followUpDialogPromise.then(function(O){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:O}})})};
Bw.prototype.dismissibleItemOnYtServiceRequestCompleted_=Bw.prototype.dismissibleItemOnYtServiceRequestCompleted_;Bw.prototype.dismissibleItemOnCommandSent=Bw.prototype.dismissibleItemOnCommandSent;Bw.prototype.dismissibleItemOnRequestSent=Bw.prototype.dismissibleItemOnRequestSent;Bw.prototype.dismissibleItemOnYtServiceRequestSent_=Bw.prototype.dismissibleItemOnYtServiceRequestSent_;Bw.prototype.dismissibleItemDataChanged_=Bw.prototype.dismissibleItemDataChanged_;
Bw.prototype.dismissibleItemIsDismissedChanged_=Bw.prototype.dismissibleItemIsDismissedChanged_;_.t([_.D(_.tW),_.N("design:type",Object)],Bw.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Bw.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bw.prototype,"isDismissed",void 0);_.t([_.C(),_.N("design:type",Object)],Bw.prototype,"dismissedRenderer",void 0);
_.t([_.m5("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],Bw.prototype,"dismissibleItemIsDismissedChanged_",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bw.prototype,"dismissibleItemDataChanged_",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],Bw.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.t([_.ai("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bw.prototype,"dismissibleItemOnRequestSent",null);
_.t([_.ai("yt-dismissible-item-action"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Array]),_.N("design:returntype")],Bw.prototype,"dismissibleItemOnCommandSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Bw.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);Bw=_.t([_.XT()],Bw);_.rn=[_.tW,_.sh,Bw.prototype];var DX=function(){var W=_.A1.apply(this,arguments)||this;W.disableGridStateAware=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.currentGridClass="";return W};
_.R(DX,_.A1);DX.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.My(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var W=this.gridStateAwareGetElement();_.L2(W,"grid",!0)}};
DX.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
DX.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Q(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
DX.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var W="grid-disabled";else{W=_.nY7.getInstance();var O=this.get("pageSubtype");W=O&&zo5.includes(O)?"grid-disabled":W.currentSnapState_?W.currentSnapState_.className:null}(O=this.gridStateAwareGetElement())&&W!==this.currentGridClass&&(W&&_.L2(O,W,!0),this.currentGridClass&&_.L2(O,this.currentGridClass,!1),this.currentGridClass=W)};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],DX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",String)],DX.prototype,"gridStateAwareSizingElementSelector",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],DX.prototype,"disableGridStateAware",void 0);DX=_.t([_.XT()],DX);_.xo=[DX.prototype,_.WP.YtActionHandlerBehavior];_.zl=new _.MV("GUIDE_TOKEN");var q5;_.Ch={};q5=function(){var W=_.A1.apply(this,arguments)||this;W.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 W};
_.R(q5,_.A1);_.d=q5.prototype;_.d.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var W=_.iq().resolve(_.OT(_.zl));W&&(this.guidePersistentAndVisible=W.getGuidePersistentAndVisible(),this.activeEndpoint=W.getActiveEndpoint(),this.guideOpened=W.getGuideOpened(),this.miniGuideVisible=W.getMiniGuideVisible())};
_.d.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.d.handleGuideStateAction=function(W){this.guidePersistentAndVisible=W};
_.d.handleMiniGuideStateAction=function(W){this.miniGuideVisible=W};
_.d.handleGuideOpenedAction=function(W){this.guideOpened=W};
_.d.handleActiveEndpointAction=function(W){this.activeEndpoint=W};
q5.prototype.onActiveEndpointChange=q5.prototype.onActiveEndpointChange;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],q5.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"guidePersistentAndVisible",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],q5.prototype,"miniGuideVisible",void 0);_.t([_.C(),_.N("design:type",Object)],q5.prototype,"activeEndpoint",void 0);
_.t([_.m5("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q5.prototype,"onActiveEndpointChange",null);_.t([_.C(),_.N("design:type",Boolean)],q5.prototype,"guideOpened",void 0);q5=_.t([_.XT()],q5);_.Ch.YtdGuideStateAwareBehavior=[];_.Ch.YtdGuideStateAwareBehavior.push(q5.prototype,_.WP.YtActionHandlerBehavior);var qc5=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],nh=function(){var W=_.A1.apply(this,arguments)||this;W.hoverJobId=0;W.JSC$12200_touched=!1;return W};
_.R(nh,_.A1);_.d=nh.prototype;_.d.created=function(){this.useExpandableTooltip=!qc5.includes(this.is)};
_.d.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.d.detached=function(){this.useExpandableTooltip=!1};
_.d.lockupOnDown=function(W){this.interactionElement&&!_.un(_.Nd(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.d.lockupOnUp=function(W){this.interactionElement&&!_.un(_.Nd(W),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.d.onTouchStart=function(){this.JSC$12200_touched=!0};
_.d.lockupOnMouseEnter=function(){var W=this,O=_.Lu("kevlar_lockup_hover_delay",-1);this.JSC$12200_touched&&O>=0?(_.sF.cancelJob(this.hoverJobId),this.hoverJobId=_.sF.addJob(function(){W.lockupIsHovered=!0},8,O),this.JSC$12200_touched=!1):this.lockupIsHovered=!0};
_.d.lockupOnMouseLeave=function(){this.hoverJobId&&(_.sF.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.d.lockupOnPopupClosed=function(W,O){var b;((b=O.popupRenderer)==null?void 0:b.is)==="ytd-menu-popup-renderer"&&(W=O.popupRenderer.veData,O=_.Bb(),W&&O&&_.$0(O,[W]))};
_.d.lockupOnLockupRequested=function(W){var O=W.detail.videoIds[0],b;W.detail&&O===((b=this.data)==null?void 0:b.videoId)&&(W.detail.returnValue=[this.data])};
_.d.lockupOnYtServiceRequestSent=function(W,O){if(W=O.actions)for(var b=0;b<W.length;b++){var T=W[b];if(T.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&O.ajaxPromise){var L=void 0,h=(L=_.P(O.endpoint,_.oP))==null?void 0:L.playlistId;L=void 0;T=(L=T.removedVideoId)!=null?L:"";how(_.xP(),T,h)}else T.action==="ACTION_REMOVE_VIDEO"&&O.ajaxPromise&&(h=void 0,T=(h=T.setVideoId)!=null?h:"",_.SAS(_.xP(),T))}};
_.d.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.d.lockupOnLockupEnabled=function(){if(!this.$){var W=_.iq().resolve(_.cs).getCurrentPage(),O=this.getParentRenderer?this.getParentRenderer():void 0;_.z5(new _.pu("component not ready",this.is,this.isAttached,W==null?void 0:W.is,O==null?void 0:O.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
nh.prototype.lockupOnLockupEnabled=nh.prototype.lockupOnLockupEnabled;nh.prototype.lockupOnLockupDisabled=nh.prototype.lockupOnLockupDisabled;nh.prototype.lockupOnYtServiceRequestSent=nh.prototype.lockupOnYtServiceRequestSent;nh.prototype.lockupOnLockupRequested=nh.prototype.lockupOnLockupRequested;nh.prototype.lockupOnPopupClosed=nh.prototype.lockupOnPopupClosed;nh.prototype.lockupOnMouseLeave=nh.prototype.lockupOnMouseLeave;nh.prototype.lockupOnMouseEnter=nh.prototype.lockupOnMouseEnter;
nh.prototype.onTouchStart=nh.prototype.onTouchStart;nh.prototype.lockupOnUp=nh.prototype.lockupOnUp;nh.prototype.lockupOnDown=nh.prototype.lockupOnDown;_.t([_.C(),_.N("design:type",Object)],nh.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],nh.prototype,"lockupIsHovered",void 0);_.t([_.C(),_.N("design:type",Boolean)],nh.prototype,"lockupTouchTriggered",void 0);_.t([_.C(),_.N("design:type",Boolean)],nh.prototype,"useExpandableTooltip",void 0);
_.t([_.El("#interaction"),_.N("design:type",Object)],nh.prototype,"interactionElement",void 0);_.t([_.ai("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nh.prototype,"lockupOnDown",null);_.t([_.ai("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nh.prototype,"lockupOnUp",null);
_.t([_.ai("touchstart"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"onTouchStart",null);_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"lockupOnMouseEnter",null);_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"lockupOnMouseLeave",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],nh.prototype,"lockupOnPopupClosed",null);_.t([_.ai("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nh.prototype,"lockupOnLockupRequested",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],nh.prototype,"lockupOnYtServiceRequestSent",null);_.t([_.ai("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"lockupOnLockupDisabled",null);
_.t([_.ai("yt-enable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nh.prototype,"lockupOnLockupEnabled",null);nh=_.t([_.XT()],nh);_.fh=[nh.prototype];_.nZU={YtdReduxBehavior:[]};_.nZU.YtdReduxBehavior.push.apply(_.nZU.YtdReduxBehavior,_.sh);var Gl=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.disableNowPlaying=!1;W.disableTooltips=!1;W.useHoveredProperty=!1;W.hovered=!1;W.isThumbnailHovered_=!1;W.addBackground=_.e("kevlar_thumbnail_bg");W.nowPlaying=!1;W.disableRounding=!1;W.size="small";return W};
_.R(Gl,_.A1);_.d=Gl.prototype;_.d.computeThumbnailOverlaySidePanelWidth_=function(W,O){return W-O};
_.d.computeSize=function(W,O){if(!this.disableRounding){if(!W&&!O)return"small";W=Math.max(W||0,O||0);return W>=256?"large":W>=96?"medium":"small"}};
_.d.computeFinalHoveredState_=function(W,O,b){return this.nowPlaying?!1:_.e("kevlar_thumbnail_fluid")&&W?O:b};
_.d.computeHoverOverlays_=function(W,O){return W&&O?O:void 0};
_.d.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.d.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.d.checkMiniplayer_=function(){var W;if(((W=this.data)==null?0:W.playlistSetVideoId)&&_.e("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{W=_.IT();var O=W.currentEndpoint;!this.disableNowPlaying&&O&&_.P(O,_.V3)&&this.data?(O=_.P(O,_.V3),this.nowPlaying=this.data.playlistId?O.playlistId===this.data.playlistId:O.videoId===this.data.videoId,this.isVideoPlaying=W==null?void 0:W.isVideoPlaying):this.nowPlaying=!1}};
Gl.prototype.checkMiniplayer_=Gl.prototype.checkMiniplayer_;Gl.prototype.onMouseLeave_=Gl.prototype.onMouseLeave_;Gl.prototype.onMouseEnter_=Gl.prototype.onMouseEnter_;Gl.prototype.computeHoverOverlays_=Gl.prototype.computeHoverOverlays_;Gl.prototype.computeFinalHoveredState_=Gl.prototype.computeFinalHoveredState_;Gl.prototype.computeSize=Gl.prototype.computeSize;Gl.prototype.computeThumbnailOverlaySidePanelWidth_=Gl.prototype.computeThumbnailOverlaySidePanelWidth_;
_.t([_.D(_.sh),_.N("design:type",Object)],Gl.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],Gl.prototype,"height",void 0);_.t([_.C(),_.N("design:type",Boolean)],Gl.prototype,"bottomSidePanel",void 0);_.t([_.C(),_.N("design:type",Number)],Gl.prototype,"width",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"disableNowPlaying",void 0);
_.t([_.C({selector:_.BS}),_.N("design:type",Boolean)],Gl.prototype,"miniplayerIsActive",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"disableTooltips",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"useHoveredProperty",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"hovered",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"isThumbnailHovered_",void 0);
_.t([_.C({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.N("design:type",Boolean)],Gl.prototype,"finalHoveredState_",void 0);_.t([_.C({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.N("design:type",Number)],Gl.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Gl.prototype,"addBackground",void 0);
_.t([_.C({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.N("design:type",Object)],Gl.prototype,"hoverOverlays_",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Gl.prototype,"nowPlaying",void 0);_.t([_.C(),_.N("design:type",Boolean)],Gl.prototype,"isVideoPlaying",void 0);_.t([_.C(),_.N("design:type",Object)],Gl.prototype,"disableRounding",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.N("design:type",Object)],Gl.prototype,"size",void 0);_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gl.prototype,"onMouseEnter_",null);_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gl.prototype,"onMouseLeave_",null);
_.t([_.m5("data","disableNowPlaying","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gl.prototype,"checkMiniplayer_",null);Gl=_.t([_.XT()],Gl);var fDv=[Gl.prototype];_.Hw={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(W,O){return W+":"+_.d1(O)},
getPlayerListener_:function(W,O,b){W=this.getPlayerListenerKey_(W,O);O=this.playerListeners_.get(W);b&&this.playerListeners_.delete(W);return O},
savePlayerListener_:function(W,O){var b=O.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(W,O),b);return b},
listenToPlayerEvent:function(W,O,b){b=this.savePlayerListener_(O,b);W.addEventListener(O,b)},
listenToPlayerEvents:function(W,O){O.forEach(function(b,T){this.listenToPlayerEvent(W,T,b)}.bind(this))},
unlistenFromPlayerEvent:function(W,O,b){b=this.getPlayerListener_(O,b,!0);W.removeEventListener(O,b)},
unlistenFromPlayerEvents:function(W,O){O.forEach(function(b,T){this.unlistenFromPlayerEvent(W,T,b)}.bind(this))}}};
_.t5=function(){};_.GVz=new _.MV("PLAYER_API_TOKEN");var oDX=!1,BL2,ke1=!1,DR2;var iw=function(W,O,b,T,L){_.R8.call(this);var h=this;this.playerId=O;this.webPlayerContextConfig=T;this.tAw=L;this.cgS=!1;this.api={};this.iBZ=this.znv=null;this.mea=new _.wO;this.sC={};this.kkl=this.zJg=this.elementId=this.bQa=this.config=null;this.fXI=!1;this.pU=this.zPa=null;this.zEg={};this.uxw=["onReady"];this.lastError=null;this.dAS=NaN;this.lyI={};this.gwa=0;this.tD=this.targetElement=W;_.a8(this,this.mea);HGH(this);b?this.gwa=setTimeout(function(){h.loadNewVideoConfig(b)},0):T&&(t_U(this),
$bN(this))};
_.R(iw,_.R8);iw.prototype.getId=function(){return this.playerId};
iw.prototype.loadNewVideoConfig=function(W){if(!this.isDisposed()){this.gwa&&(clearTimeout(this.gwa),this.gwa=0);var O=W||{};O instanceof XHv||(O=new XHv(O));this.config=O;this.setConfig(W);$bN(this);this.isReady()&&V_$(this)}};
var t_U=function(W){var O;W.webPlayerContextConfig?O=W.webPlayerContextConfig.rootElementId:O=W.config.attrs.id;W.elementId=O||W.elementId;W.elementId==="video-player"&&(W.elementId=W.playerId,W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.playerId:W.config.attrs.id=W.playerId);var b;((b=W.tD)==null?void 0:b.id)===W.elementId&&(W.elementId+="-player",W.webPlayerContextConfig?W.webPlayerContextConfig.rootElementId=W.elementId:W.config.attrs.id=W.elementId)};
iw.prototype.setConfig=function(W){this.bQa=W;this.config=NH7(W);t_U(this);if(!this.zJg){var O;this.zJg=M_v(this,((O=this.config.args)==null?void 0:O.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var b;if((b=this.config)==null?0:b.attrs)W=this.config.attrs,(O=W.width)&&this.tD&&(this.tD.style.width=si(Number(O)||O,!0)),(W=W.height)&&this.tD&&(this.tD.style.height=si(Number(W)||W,!0))};
var V_$=function(W){if(W.config&&W.config.loaded!==!0)if(W.config.loaded=!0,!W.config.args||W.config.args.autoplay!=="0"&&W.config.args.autoplay!==0&&W.config.args.autoplay!==!1){var O;W.api.loadVideoByPlayerVars((O=W.config.args)!=null?O:null)}else W.api.cueVideoByPlayerVars(W.config.args)},JM$=function(W){var O=!0,b=W.getPlayerElement();
b&&W.config&&(O=b.dataset.version===uhU(W));return O&&!!_.GT("yt.player.Application.create")},$bN=function(W){if(!W.isDisposed()&&!W.fXI){var O=JM$(W);
if(O&&(W.getPlayerElement()?"html5":null)==="html5")W.kkl="html5",W.isReady()||cMS(W);else if(FTH(W),W.kkl="html5",O&&W.pU&&W.targetElement)W.targetElement.appendChild(W.pU),cMS(W);else{W.config&&(W.config.loaded=!0);var b=!1;W.zPa=function(){b=!0;var T=yMn(W,"player_bootstrap_method")?_.GT("yt.player.Application.createAlternate")||_.GT("yt.player.Application.create"):_.GT("yt.player.Application.create");var L=W.config?NH7(W.config):void 0;T&&T(W.targetElement,L,W.webPlayerContextConfig,W.tAw);cMS(W)};
W.fXI=!0;O?W.zPa():(_.qp(uhU(W),W.zPa),(O=W6H(W))&&mVX(O||""),OMq(W)&&!b&&_.c3("yt.player.Application.create",null))}}};
iw.prototype.getPlayerElement=function(){var W=_.Ox(document,this.elementId);!W&&this.tD&&this.tD.querySelector&&(W=this.tD.querySelector("#"+this.elementId));return W};
var cMS=function(W){if(!W.isDisposed()){var O=W.getPlayerElement(),b=!1;O&&O.getApiInterface&&O.getApiInterface()&&(b=!0);if(b){W.fXI=!1;if(!yMn(W,"html5_remove_not_servable_check_killswitch")){var T;if((O==null?0:O.isNotServable)&&W.config&&(O==null?0:O.isNotServable((T=W.config.args)==null?void 0:T.video_id)))return}iMf(W)}else W.dAS=setTimeout(function(){cMS(W)},50)}},iMf=function(W){HGH(W);
W.cgS=!0;var O=W.getPlayerElement();if(O){W.znv=bM1(W,O,"addEventListener");W.iBZ=bM1(W,O,"removeEventListener");var b=O.getApiInterface();b=b.concat(O.getInternalApiInterface());for(var T=W.api,L=0;L<b.length;L++){var h=b[L];T[h]||(T[h]=bM1(W,O,h))}}for(var Z in W.sC)W.sC.hasOwnProperty(Z)&&W.znv&&W.znv(Z,W.sC[Z]);V_$(W);W.zJg&&W.zJg(W.api);W.mea.publish("onReady",W.api)},bM1=function(W,O,b){var T=O[b];
return function(){var L=_.PD.apply(0,arguments);try{return W.lastError=null,T.apply(O,L)}catch(h){if(b!=="sendAbandonmentPing")throw h.params=b,W.lastError=h,L=new _.pu("PlayerProxy error in method call",{error:h,method:b,playerId:W.playerId}),L.level="WARNING",L;}}},HGH=function(W){W.cgS=!1;
if(W.iBZ)for(var O in W.sC)W.sC.hasOwnProperty(O)&&W.iBZ(O,W.sC[O]);for(var b in W.lyI)W.lyI.hasOwnProperty(b)&&clearTimeout(Number(b));W.lyI={};W.znv=null;W.iBZ=null;O=W.api;for(var T in O)O.hasOwnProperty(T)&&(O[T]=null);O.addEventListener=function(L,h){W.addEventListener(L,h)};
O.removeEventListener=function(L,h){W.removeEventListener(L,h)};
O.destroy=function(){W.dispose()};
O.getLastError=function(){return W.getLastError()};
O.getPlayerType=function(){return W.getPlayerType()};
O.getCurrentVideoConfig=function(){return W.bQa};
O.loadNewVideoConfig=function(L){W.loadNewVideoConfig(L)};
O.isReady=function(){return W.isReady()}};
iw.prototype.isReady=function(){return this.cgS};
iw.prototype.addEventListener=function(W,O){var b=this;this.isDisposed();var T=M_v(this,O);T&&(_.Vh(this.uxw,W)||this.sC[W]||(O=jO9(this,W),this.znv&&this.znv(W,O)),this.mea.subscribe(W,T),W==="onReady"&&this.isReady()&&setTimeout(function(){T(b.api)},0))};
iw.prototype.removeEventListener=function(W,O){this.isDisposed()||(O=M_v(this,O))&&this.mea.unsubscribe(W,O)};
var M_v=function(W,O){var b=O;if(typeof O==="string"){if(W.zEg[O])return W.zEg[O];b=function(){var T=_.PD.apply(0,arguments),L=_.GT(O);if(L)try{L.apply(_.i1,T)}catch(h){throw T=new _.pu("PlayerProxy error when executing callback",{error:h}),T.level="ERROR",T;}};
W.zEg[O]=b}return b?b:null},jO9=function(W,O){var b=function(T){var L=function(){W.isDisposed();
if(!W.isDisposed())try{W.mea.publish(O,T!=null?T:void 0)}catch(a){var Z=new _.pu("PlayerProxy error when creating global callback",{error:a.message,event:O,playerId:W.playerId,data:T,originalStack:a.stack,componentStack:a.componentStack});Z.level="WARNING";throw Z;}};
if(yMn(W,"web_player_publish_events_immediately"))L();else{var h=setTimeout(function(){L();_.PQ.remove(W.lyI,String(h))},0);
_.PQ.add(W.lyI,String(h),!0)}};
return W.sC[O]=b};
iw.prototype.getPlayerType=function(){return this.kkl||(this.getPlayerElement()?"html5":null)};
iw.prototype.getLastError=function(){return this.lastError};
var FTH=function(W){W.cancel();HGH(W);W.kkl=null;W.config&&(W.config.loaded=!1);var O=W.getPlayerElement();O&&(JM$(W)||!OMq(W)?W.pU=O:(O&&O.destroy&&O.destroy(),W.pU=null));W.targetElement&&_.RB(W.targetElement)};
iw.prototype.cancel=function(){this.zPa&&_.GyE(uhU(this),this.zPa);clearTimeout(this.dAS);this.fXI=!1};
iw.prototype.disposeInternal=function(){FTH(this);if(this.pU&&this.config&&this.pU.destroy)try{this.pU.destroy()}catch(O){var W=new _.pu("PlayerProxy error during disposal",{error:O});W.level="ERROR";throw W;}this.zEg=null;for(W in this.sC)this.sC.hasOwnProperty(W)&&delete this.sC[W];this.bQa=this.config=this.api=null;delete this.targetElement;delete this.tD;_.R8.prototype.disposeInternal.call(this)};
var OMq=function(W){var O,b;W=(O=W.config)==null?void 0:(b=O.args)==null?void 0:b.fflags;return!!W&&W.indexOf("player_destroy_old_version=true")!==-1},uhU=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.jsUrl:(W=W.config.assets)?W.js:""},W6H=function(W){return W.webPlayerContextConfig?W.webPlayerContextConfig.cssUrl:(W=W.config.assets)?W.css:""},yMn=function(W,O){if(W.webPlayerContextConfig)var b=W.webPlayerContextConfig.serializedExperimentFlags;
else{var T;if((T=W.config)==null?0:T.args)b=W.config.args.fflags}return(b||"").split("&").includes(O+"=true")},NH7=function(W){for(var O={},b=_.S(Object.keys(W)),T=b.next();!T.done;T=b.next()){T=T.value;
var L=W[T];O[T]=typeof L==="object"?_.PQ.clone(L):L}return O};var nDh={},qjO="player_uid_"+(Math.random()*1E9>>>0);var $o=function(W,O,b,T,L,h){O=O===void 0?document.createElement("div"):O;this.webPlayerContextConfig=W;this.container=O;this.commandResolver=b;this.apiResolver=HME();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.S4;T||h?TLv(this):L6L(this);this.pendingPlayerResponse=T;this.pendingWatchNextResponse=L;this.pendingPlayerVars=h;dRq(this)};
$o.prototype.loadVideoWithPlayerResponse=function(W,O,b){this.loadVideo(W,O,b)};
$o.prototype.loadVideoWithPlayerVars=function(W){return this.loadVideo(void 0,void 0,W)};
$o.prototype.destroy=function(W){if(W=_.Ox(document,W))W=qjO+"_"+_.d1(W),(W=nDh[W])&&W.dispose()};
var Sj5=function(W,O){var b;_.I(function(T){if(T.nextAddress==1)return W.pendingWatchNextResponse=O,W.synchronousApi?(b=W.synchronousApi,T.jumpTo(2)):_.Y(T,W.api,3);T.nextAddress!=2&&(b=T.yieldResult);h7$(W,b);W.pendingWatchNextResponse&&(b.updateVideoData({raw_watch_next_response:W.pendingWatchNextResponse}),W.pendingWatchNextResponse=void 0);_.aD(T)})},h7$=function(W,O){var b;
if(!(O==null?0:(b=O.isReady)==null?0:b.call(O))){var T;W=new _.pu("playerApi is falsey",{synchronousApi:W.synchronousApi,apiResolved:W.apiResolver.resolved,playerApiUndefined:O===void 0,playerApiNull:O===null,playerApiReady:(O==null?void 0:(T=O.isReady)==null?void 0:T.call(O))===!0,playerApiMethods:O?Object.keys(O):[]});_.Dt(W)}},ZMq=function(W,O){if(typeof W[O]==="function")return W[O]()},IZw=function(W){var O=window,b,T=(b=O.ytplayer)==null?void 0:b.bootstrapPlayerContainer;
if((b=T==null?void 0:T.firstElementChild)&&_.xH(b,"html5-video-player")){var L,h,Z=(L=O.ytplayer)==null?void 0:(h=L.bootstrapWebPlayerContextConfig)==null?void 0:h.contextId;L=W.webPlayerContextConfig.contextId;if(Z&&Z===L){T!==W.container&&(T=!1,ZMq(b,"getPlayerState")===2&&(T=!0),W.container.appendChild(b),T||ZMq(b,"playVideo"));var a;if((a=O.ytplayer)==null?0:a.bootstrapPlayerResponse)W.bootstrapPlayerResponse=O.ytplayer.bootstrapPlayerResponse}}},dRq=function(W){var O,b,T,L,h;
_.I(function(Z){if(Z.nextAddress==1)return W.pageReadyOrDataAvailable?Z.jumpTo(2):_.Y(Z,W.pageReadyOrDataAvailableResolver.promise,2);if(Z.nextAddress!=4)return!_.e("kevlar_player_unified_player_loading")||QO1()&&sO8()?Z.jumpTo(4):_.Y(Z,z7Q(),4);IZw(W);if(W.pendingPlayerResponse||W.pendingPlayerVars)O=CRX(W.pendingPlayerResponse,W.pendingWatchNextResponse,W.pendingPlayerVars),W.pendingPlayerResponse&&W.pendingPlayerResponse===W.bootstrapPlayerResponse&&(O.loaded=!0),W.bootstrapPlayerResponse=void 0;
b=GeT(W.container,O,W.webPlayerContextConfig);((T=O)==null?0:T.loaded)&&W.pendingWatchNextResponse?(Sj5(W,W.pendingWatchNextResponse),W.pendingPlayerResponse=void 0,W.pendingPlayerVars=void 0):aZf(W);L=function(a){b.removeEventListener("onReady",L);W.synchronousApi=a;W.apiResolver.resolve(a)};
b.addEventListener("onReady",L);W.commandResolver!==void 0&&(h=W.commandResolver,b.addEventListener("innertubeCommand",function(a){h(a)}));
_.aD(Z)})};
$o.prototype.loadVideo=function(W,O,b){var T=this,L,h,Z,a,m,w,A,X,l;return _.I(function(p){if(p.nextAddress==1)return T.pendingPlayerResponse=W,T.pendingWatchNextResponse=O,T.pendingPlayerVars=b,TLv(T),T.synchronousApi?(L=T.synchronousApi,p.jumpTo(2)):_.Y(p,T.api,3);p.nextAddress!=2&&(L=p.yieldResult);h7$(T,L);Z=new Promise(function(K){h=K});
a=function(){var K=L.getPlayerResponse();K&&(L.removeEventListener("onVideoDataChange",a),h(K))};
L.addEventListener("onVideoDataChange",a);if(T.pendingPlayerResponse||T.pendingPlayerVars)T.pendingPlayerResponse&&T.pendingPlayerResponse===T.bootstrapPlayerResponse?(h(T.pendingPlayerResponse),T.pendingWatchNextResponse&&Sj5(T,T.pendingWatchNextResponse)):(m=CRX(T.pendingPlayerResponse,T.pendingWatchNextResponse,T.pendingPlayerVars),(l=(w=T.pendingPlayerResponse)==null?void 0:(A=w.playerConfig)==null?void 0:(X=A.playbackStartConfig)==null?void 0:X.startPaused)?L.cueVideoByPlayerVars(m.args):L.loadVideoByPlayerVars(m.args)),
aZf(T),T.bootstrapPlayerResponse=void 0;return p.return(Z)})};
var L6L=function(W){if(document.readyState==="complete"||document.readyState==="interactive")TLv(W);else{var O=function(){document.removeEventListener("DOMContentLoaded",O);TLv(W)};
document.addEventListener("DOMContentLoaded",O)}},TLv=function(W){W.pageReadyOrDataAvailable=!0;
W.pageReadyOrDataAvailableResolver.resolve()},aZf=function(W){W.pendingPlayerResponse=void 0;
W.pendingWatchNextResponse=void 0;W.pendingPlayerVars=void 0};
_.Jq.Object.defineProperties($o.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Vc=function(W){vT.call(this,W===void 0?"document_active":W);var O=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(b){O.transition("document_disposed",{event:b})});
window.addEventListener("beforeunload",function(b){O.transition("document_disposed_preventable",{event:b})});
window.addEventListener("unload",function(b){O.transition("document_disposed",{event:b});O.hasRun=new Map})};
_.R(Vc,vT);
Vc.prototype.runPreventableDispose=function(W,O){if(!this.hasRun.get("document_disposed_preventable")){W(O==null?void 0:O.event);var b,T;if((O==null?0:(b=O.event)==null?0:b.defaultPrevented)||(O==null?0:(T=O.event)==null?0:T.returnValue)){O.event.returnValue||(O.event.returnValue=!0);O.event.defaultPrevented||O.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Vc.prototype.runDispose=function(W,O){this.hasRun.get("document_disposed")?this.transition("document_active"):(W(O==null?void 0:O.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Vc.prototype.runFlush=function(W,O){W(O==null?void 0:O.event);this.transition("document_active")};
Vc.prototype.runActive=function(){};var N5=function(W){vT.call(this,W===void 0?"document_visibility_unknown":W);var O=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(b){document.visibilityState==="visible"?O.transition("document_visible",{event:b}):O.transition("document_hidden",
{event:b})});
_.e("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(b){O.transition("document_backgrounded",{event:b})}),window.addEventListener("focus",function(b){O.transition("document_foregrounded",{event:b})}))};
_.R(N5,vT);N5.prototype.runVisible=function(W,O){W(O==null?void 0:O.event);_.e("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
N5.prototype.runHidden=function(W,O){W(O==null?void 0:O.event);_.e("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
N5.prototype.runBackgrounded=function(W,O){W(O==null?void 0:O.event)};
N5.prototype.runForegrounded=function(W,O){W(O==null?void 0:O.event)};var M5=function(){this.teardownLifecycle=new Vc;this.visibilityLifecycle=new N5};
M5.prototype.install=function(){var W=_.PD.apply(0,arguments),O=this;W.forEach(function(b){O.teardownLifecycle.install(b)});
W.forEach(function(b){O.visibilityLifecycle.install(b)})};var uo=function(){M5.call(this);var W={};this.install((W.document_disposed={callback:this.abortSlisAndFlush},W));_.e("combine_ve_grafts")&&(W={},this.install((W.document_disposed={callback:this.flushInteractionLoggingAttachVes},W)));W={};this.install((W.flush_logs={callback:this.logFinalPayload},W));_.e("web_log_cfg_cee_ks")||_.KB(_.sF,mR1)};
_.R(uo,M5);var th8=function(){uo.loggingInstance||(uo.loggingInstance=new uo);return uo.loggingInstance};
uo.prototype.logFinalPayload=function(){if(_.e("web_fp_via_jspb")){var W=new MqL,O=_.Bb();O&&_.aG(W,1,O);O=_.e("jspb_sparse_encoded_pivot")?new R1([{}]):new R1;_.Tb(O,380,usn,W);rEX("finalPayload",O);_.e("web_fp_via_jspb_and_json")&&_.BZ("finalPayload",{csn:_.Bb()})}else _.BZ("finalPayload",{csn:_.Bb()})};
uo.prototype.abortSlisAndFlush=function(){iK5(CN);qN!=null&&qN.flush()};
uo.prototype.flushInteractionLoggingAttachVes=function(){PDz(_.A4())};
var mR1=function(){var W=_.Cv("CLIENT_EXPERIMENT_EVENTS");if(W){var O=qeP();W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,O(b)&&_.BZ("genericClientExperimentEvent",{eventType:b});delete _.Dk.CLIENT_EXPERIMENT_EVENTS}};var YjN={};
YjN.YtPlayerBehavior=[_.Hw.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 W=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.S4;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;$RX(function(){W.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.BB(this,"pan-down"),_.e("kevlar_pinch_fullscreen")&&_.XX().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.e("kevlar_pinch_fullscreen")&&_.XX().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(W,O,b){var T=this;bw(this.useUnifiedPlayer_());if(this.mainAppPlayer_)bw(!1,"MainAppPlayer already created.");else{var L=_.e("kevlar_player_container_query_killswitch")?this.$.container:_.Q(this.hostElement).querySelector("#container");this.mainAppPlayer_=new $o(this.getWebPlayerContextConfig_(),L,function(h){return _.mw(h,T.hostElement)},W,O,b);
this.mainAppPlayer_.api.then(function(h){T.player_=h;T.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&eV5.resolve(h)})}},
loadVideoWithPlayerResponse:function(W,O){var b=this;if(this.useUnifiedPlayer_()){var T=this.watchNextData,L,h=(L=W.videoDetails)==null?void 0:L.videoId,Z,a,m;(L=(Z=this.watchNextData)==null?void 0:(a=Z.currentVideoEndpoint)==null?void 0:(m=a.watchEndpoint)==null?void 0:m.videoId)&&h!=L&&(T=void 0,_.e("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(W,T,O):this.createMainAppPlayer_(W,T,O);this.mainAppPlayer_.api.then(function(){_.bX(b.hostElement,
"yt-player-updated")})}else this.update(K6O(W,O))},
loadVideoWithPlayerVars:function(W){var O=this;this.useUnifiedPlayer_()?(_.e("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(W):this.createMainAppPlayer_(void 0,void 0,W),this.mainAppPlayer_.api.then(function(){_.bX(O.hostElement,"yt-player-updated")})):this.update({args:W})},
update:function(W){var O=this;if(this.useUnifiedPlayer_())bw(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(W);var b=cYP(W.args);b&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==b&&Object.assign(W.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(W).then(function(T){_.bX(O.hostElement,"yt-player-updated",_.e("kevlar_player_updated_obsolete_player_killswitch")?
T:void 0)})}_.xG(new _.pu("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.getPlayerPromise(),2);b=T.yieldResult;if(!b)throw Error("uh");W&&O.updatePlayerPlaylist_(W);_.aD(T)})},
acquireApi_:function(W){var O=this;if(this.useUnifiedPlayer_())bw(!1,"Invalid method call in kevlar_unified_player.");else return _.sF.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(bw(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(b){O.shouldAutoplay_(W)?b.loadVideoByPlayerVars(W.args):b.cueVideoByPlayerVars(W.args)})):this.initPlayerPromise_=this.initPlayerContainer_(W),this.initPlayerPromise_},
initPlayerContainer_:function(W){var O=this;if(this.useUnifiedPlayer_())bw(!1,"Invalid method call in kevlar_unified_player.");else return bw(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.z5(Error("vh")),bw(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.e("kevlar_player_container_query_killswitch")?this.$.container:_.Q(this.hostElement).querySelector("#container"),z7Q().then(function(){var b=O.initPlayer_(W);O.playerResolver_.resolve(b);
return b})},
onPlayerReady_:function(W,O){this.useUnifiedPlayer_()?bw(!1,"Invalid method call in kevlar_unified_player."):(W.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&eV5.resolve(W),O(W))},
maybeCallApiMethodOnElement_:function(W,O){if(typeof W[O]==="function")return W[O]()},
maybeAdoptBootstrapPlayer_:function(){var W=window,O,b=(O=W.ytplayer)==null?void 0:O.bootstrapPlayerContainer;if((O=b==null?void 0:b.firstElementChild)&&O.classList.contains("html5-video-player")){var T,L,h=(T=W.ytplayer)==null?void 0:(L=T.bootstrapWebPlayerContextConfig)==null?void 0:L.contextId;T=this.getWebPlayerContextConfig_().contextId;if(h&&h===T){b!==this.playerContainer_&&(b=!1,this.maybeCallApiMethodOnElement_(O,"getPlayerState")===2&&(b=!0),this.playerContainer_.appendChild(O),b||this.maybeCallApiMethodOnElement_(O,
"playVideo"));var Z;if((Z=W.ytplayer)==null?0:Z.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=W.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(W){var O=this;if(this.useUnifiedPlayer_())bw(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(b){O.maybeAdoptBootstrapPlayer_();var T=W?vDi(W):void 0;T&&T==O.bootstrapPlayerResponse_&&(W.loaded=!0);T=O.playerContainer_;var L=O.getWebPlayerContextConfig_();T=GeT(T,W,L);O.player_=T;O.onPlayerReadyEvent_=O.onPlayerReady_.bind(O,O.player_,b);O.player_.addEventListener("onReady",O.onPlayerReadyEvent_);O.player_.addEventListener("innertubeCommand",
O.onPlayerInnerTubeCommand_.bind(O))})},
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(W){W.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(W){W.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var W=_.iq().resolve(_.cs).getCurrentPage();W&&W.getScrollTop()<=0?_.BB(this,"pan-down"):_.BB(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()||W.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(W){W.isFullscreen()&&W.toggleFullscreen()})},
updatePlayerPlaylist_:function(W){var O=this,b,T,L;return _.I(function(h){if(h.nextAddress==1)return b=_.iq().resolve(_.OT(_.kP)),T=!!(b&&b.playlistComponent&&b.playlistComponent.loopOn),_.Y(h,O.getPlayerPromise(),2);var Z=L=h.yieldResult,a=Z.updatePlaylist,m=[];if(_.e("kevlar_player_playlist_use_local_index")){var w,A;var X=(A=(w=W.localCurrentIndex)!=null?w:W.currentIndex)!=null?A:0}else{var l;X=(l=W.currentIndex)!=null?l:0}if(W.contents)for(w=0;w<W.contents.length;w++)if((A=W.contents[w])&&A.playlistPanelVideoRenderer)if(tn8(A)){A=
A.playlistPanelVideoRenderer;l="";A.shortBylineText&&(l=_.NX(A.shortBylineText));var p="";A.title?p=_.NX(A.title):A.unplayableText&&(p=_.NX(A.unplayableText));m.push({author:l,title:p,encrypted_id:A.videoId})}else w<X&&--X;a.call(Z,{index:X,list:W.playlistId?W.playlistId:"",loop:T,playlist_title:W.title,playlist_length:m.length,video:m,fetch:0,external_list:"1",title:W.title?W.title:"",playlist_author:W.ownerName?_.NX(W.ownerName):void 0});_.aD(h)})},
focusOnPlayer:function(){_.My(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var W=this.playerContainer_.querySelector(".html5-video-player");W&&(_.J5(_.iq().resolve(_.Qa)),W.focus())}})},
preparePlayer:function(){var W=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(O){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")O();else{var b=function(){document.removeEventListener("DOMContentLoaded",b);O()};
document.addEventListener("DOMContentLoaded",b)}})).then(function(){return z7Q()}).then(function(){W.initPlayerPromise_||W.preparePlayerJobId_||(W.preparePlayerJobId_=_.KB(_.sF,function(){W.initPlayerPromise_||(W.initPlayerPromise_=W.initPlayerContainer_())}))}):_.xG(new _.pu("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(W){this.useUnifiedPlayer_()?bw(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(W)||(W.args.autoplay="0")},
shouldAutoplay_:function(W){if(this.useUnifiedPlayer_())bw(!1,"Invalid method call in kevlar_unified_player.");else{var O=this.get("args.el",W);return O&&O!="detailpage"&&this.isMiniplayerActive_()||O&&(O=="sponsorshipsoffer"||O=="handlesclaiming")&&this.get("args.autoplay",W)=="0"?!1:(W=vDi(W))&&this.get("playerConfig.playbackStartConfig.startPaused",W)?!1:!0}},
isMiniplayerActive_:function(){return _.iq().resolve(_.xq).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var W=this.getPlayer();if(W){var O=W.getPlayerState();_.e("kevlar_player_check_ad_state_on_stop")&&(O=W.getPlayerState(W.getPresentingPlayerType()));O!=5&&W.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(W,O,b){b=b===void 0?!1:b;var T=this,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return O||(O=T.hostElement),L=T.useUnifiedPlayer_()?!!T.mainAppPlayer_:!!T.initPlayerPromise_,L?_.Y(m,T.getPlayerPromise(),2):(b?W.insertBefore(O,W.firstChild):W.appendChild(O),m.return());h=m.yieldResult;Z=h.getPlayerState(h.getPresentingPlayerType());a=!1;if(Z==-1||Z==1||Z==3)a=!0;b?W.insertBefore(O,W.firstChild):W.appendChild(O);a&&h.playVideo();h.setSize(NaN,NaN);_.aD(m)})},
watchNextDataChanged_:function(W){var O=this;W&&(this.useUnifiedPlayer_()&&_.e("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&Sj5(this.mainAppPlayer_,W):this.getPlayerPromise().then(function(b){b.updateVideoData(O.computeWatchNextPlayerVars_(W))}))},
computeWatchNextPlayerVars_:function(W){if(this.useUnifiedPlayer_()&&_.e("kevlar_unified_player_update_watch_next_killswitch"))bw(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:W}},
maybeSendAbandonmentPing_:function(){var W=this.getPlayer();W&&W.getPlayerState()!=5&&W.getPlayerState()!=0&&W.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var W=_.Cv("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(W=Object.assign({},W),W.rootElementId=this.playerId);W.serializedExperimentIds&&W.serializedExperimentFlags||_.z5(Error("wh"));return W},
hasWebPlayerContextConfig_:function(){return!!_.Cv("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(W){this.useUnifiedPlayer_()?bw(!1,"Invalid method call in kevlar_unified_player."):_.mw(W,this.hostElement)},
useUnifiedPlayer_:function(){var W=_.e("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.e("kevlar_unified_player")||W}}];var EDq={};EDq.YtPlaylistPanelBehavior=[_.F.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(W){W=W.detail;if(W.actions.loop!=void 0||W.actions["yt-icons:loop"]!=void 0)this.loopOn=W.actions.loop||W.actions["yt-icons:loop"];if(W.actions.shuffle!=void 0||W.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=W.actions.shuffle||W.actions["yt-icons:shuffle"]},
setMenuData_:function(W){if(!W||!W.playlistButtons||W.isInfinite)return null;for(var O=W.playlistButtons.menuRenderer.topLevelButtons,b=O.length,T=0;T<b;T++)if(O[T].toggleButtonRenderer){var L=O[T].toggleButtonRenderer;L.defaultIcon.iconType=="LOOP"&&this.loopOn?L.isToggled=this.loopOn:L.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(L.isToggled=this.shuffleOn)}return W.playlistButtons}}];var wuf=function(W){jH.call(this,W,132);this.isDocument=W===document.documentElement};
_.R(wuf,jH);wuf.prototype.calculateScrollDelta=function(W,O,b){var T=0;W<O?T=W<O-100?-48:-8:W>O+b&&(T=W>O+b+100?48:8);return T};
wuf.prototype.JSC$9299_onMouseMove=function(W){this.isDocument||(W.clientX=W.event_.pageX,W.clientY=W.event_.pageY);jH.prototype.JSC$9299_onMouseMove.call(this,W)};var cw=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.scrollElement=document.documentElement;W.JSC$12259_dragListGroup=null;W.dragScrollSupport=null;W.onDraggerCreated=function(O){var b=O.JSC$9295_dragger;b.scrollTarget_=W.scrollElement;O=O.draggerEl;b&&O.menuOpened&&b.setEnabled(!1)};
W.onDragStart=function(O){var b=O.draggerEl;O=O.currDragItem;var T=Object.assign({},O==null?void 0:O.data);T.trackingParams=void 0;b.data=T;b.style.position="absolute";b.style.width=(O==null?void 0:O.clientWidth)+"px";b.style.zIndex="2030";b.onDrag&&b.onDrag();_.e("web_owner_document_fallback_killswitch")?(O=document.querySelector("ytd-app"))&&_.Q(O).appendChild(b):(O=_.g4(b),(T=O.querySelector("ytd-app"))?_.Q(T).appendChild(b):O.body.appendChild(b));W.dragScrollSupport=new wuf(W.scrollElement);W.dragScrollSupport.horizontalScrolling_=
!1;b=W.dragScrollSupport;b.constrainScroll_=!!b.margin_&&!1};
W.onDrop=function(O){W.handleDrop(O);W.dragScrollSupport&&(_.JU(W.dragScrollSupport),W.dragScrollSupport=null)};
W.onReorderableScroll=function(){if(W.JSC$12259_dragListGroup){var O=W.JSC$12259_dragListGroup;GUS(O,O.currDragItem_)}};
return W};
_.R(cw,_.A1);cw.prototype.detached=function(){_.A7f(this)};
_.A7f=function(W){W.JSC$12259_dragListGroup&&(_.YH(W.JSC$12259_dragListGroup,Baz,W.onDragStart),_.YH(W.JSC$12259_dragListGroup,z$n,W.onDragStart),W.JSC$12259_dragListGroup.dispose(),W.JSC$12259_dragListGroup=null);W.dragScrollSupport&&(_.JU(W.dragScrollSupport),W.dragScrollSupport=null);W.scrollElement.removeEventListener("scroll",W.onReorderableScroll)};
_.Xuq=function(W,O,b,T){T=T===void 0?"":T;_.A7f(W);b&&(W.scrollElement=b);W.JSC$12259_dragListGroup=new Bq;W.JSC$12259_dragListGroup.hysteresisDistance_=2;qOz(W.JSC$12259_dragListGroup,O);W.JSC$12259_dragListGroup.draggerElClasses_=Ee("dragging").split(" ");T&&n0f(W.JSC$12259_dragListGroup,function(L){var h=L||document,Z=null;h.getElementsByClassName?Z=h.getElementsByClassName(T)[0]:Z=B8z("*",T,L);return Z||L});
_.Rx(W.JSC$12259_dragListGroup,kU9,W.onDraggerCreated);_.Rx(W.JSC$12259_dragListGroup,Baz,W.onDragStart);_.Rx(W.JSC$12259_dragListGroup,z$n,W.onDrop);W.JSC$12259_dragListGroup.init();W.scrollElement.addEventListener("scroll",W.onReorderableScroll,{passive:!0})};
cw.prototype.handleDrop=function(){};
_.Jq.Object.defineProperties(cw.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.t([_.C({value:100}),_.N("design:type",Number)],cw.prototype,"scrollMargin",void 0);cw=_.t([_.XT()],cw);_.URN=[cw.prototype];_.F4={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(W,O,b){var T=this.getClickTarget_(O);if(T&&this.isClickAllowed_(T)){O.preventDefault();W=(0,_.PQ.unsafeClone)(W);var L=this.getContainerBoundingRect();O=this.getRelativeClickXy_(O,L);this.expandEndpointUrlMacros_(W,{NX:O[0],NY:O[1],NB:T.code});b&&this.truncateWebCommendMetadataUrl_(W);_.bX(this.hostElement,"yt-navigate",{endpoint:W})}},
getClickTarget_:function(W){if(!this.clickTargetMap)return null;W=_.Nd(W)||[];W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;if(O===_.Q(this.hostElement).querySelector("#menu"))break;if(O=this.clickTargetMap.get(O.id))return O}return null},
getRelativeClickXy_:function(W,O){var b=W.detail.x,T=W.detail.y;_.e("use_on_click_for_desktop_display_ad")&&W.clientX!=null&&W.clientY!=null&&(b=W.clientX,T=W.clientY);W=Math.round(b-O.left);O=Math.round(T-O.top);return W<0||O<0?[null,null]:[W,O]},
getContainerBoundingRect:function(){return _.Q(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(W,O){for(var b=_.S(W.loggingUrls||[]),T=b.next();!T.done;T=b.next())T=T.value,T.baseUrl&&(T.baseUrl=pw(T.baseUrl,O));W.urlEndpoint&&W.urlEndpoint.url&&(W.urlEndpoint.url=pw(W.urlEndpoint.url,O));W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url&&(W.commandMetadata.webCommandMetadata.url=pw(W.commandMetadata.webCommandMetadata.url,O))},
truncateWebCommendMetadataUrl_:function(W){if(W.commandMetadata&&W.commandMetadata.webCommandMetadata&&W.commandMetadata.webCommandMetadata.url){var O=W.commandMetadata.webCommandMetadata.url,b=O.indexOf("&pp=");if(b>0){var T=O.indexOf("&",b+1);W.commandMetadata.webCommandMetadata.url=T>b&&T<O.length?O.slice(0,b)+O.slice(T):O.slice(0,b)}}},
configureClickTargets:function(W,O,b){this.containerId=W;this.clickTargetMap=new Map;W=_.S(O);for(O=W.next();!O.done;O=W.next())if(O=O.value,O.location){var T=b.get(O.location);T&&(_.L2(_.Q(this.hostElement).querySelector("#"+T),"yt-simple-endpoint",this.isClickAllowed_(O)),this.clickTargetMap.set(T,O))}},
isClickAllowed_:function(W){return W.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||W.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.yc={};
_.yc.YtLazyListBehavior=[_.uH.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 W=(this.constructor.generatedFrom||this).observers;W||(W=[]);W.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
W}},
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 W=this.renderElementsOutsideVisibleArea_;W&&(s_$(W,4),W.processSignal())},
deepLazyListObserver_:function(W){var O=this;if(W){var b=W.value||[];if(this.itemsPath==W.path){var T=this.nonDeferredItemCount;W=0;T>-1&&b.length>T&&(W=_.Cv("REMAINING_DOVA_DEFERRED_CHUNKS",-1));W>0?(T>0&&(T=b.slice(0,T),this.setInitialItemsOnDataChanged(T)),(T=this.renderElementsOutsideVisibleArea_)?T.cancel():(T=this.renderElementsOutsideVisibleArea_=new _.c0(2,"eocs"),_.frq(window,"scroll",function(){return O.renderDeferredElements()})),_.FX(T,function(){O.setInitialItemsOnDataChanged(b)}),_.zT("REMAINING_DOVA_DEFERRED_CHUNKS",
W-1)):this.setInitialItemsOnDataChanged(b)}else if(this.itemsPath+".splices"==W.path)this.onItemsUpdated_(b);
else T="shownItems"+W.path.substr(this.itemsPath.length),this.useSignals&&T==="shownItems.length"||this.notifyPath(T,W.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(W){W&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(W),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(W){W=W.indexSplices;for(var O=0,b=W.length;O<b;O++){var T=W[O];if(T.index<this.shownCount&&(T.removed&&this.splice("shownItems",T.index,T.removed.length),T.addedCount)){var L=T.object.slice(T.index,T.index+T.addedCount);T=["shownItems",T.index,0];T.push.apply(T,L);this.splice.apply(this,T)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(W){this.cancelPendingTasks_();W||(W=[]);this.items_=W;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&&(_.qC("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.My(this,this.tryRenderChunk_)))},
fillRange_:function(W,O){this.canShowMore&&this.items_&&(W=this.items_.slice(W,O),W.unshift("shownItems"),this.push.apply(this,W),this.shownCount=O,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var W=this;this.canShowMore&&_.n2(this,"renderChunk",function(){W.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.qC("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Xg(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var W=this.renderElementsOutsideVisibleArea_;W&&(W.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var W=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(W-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=W;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(W){return Math.ceil(1E3/W)},
onCanShowMoreUpdated_:function(W){this.data&&this.items_!==null&&(W?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(W){!this.shouldUseTaskManager()&&this.data&&(!W&&this.canShowMore?(_.lyT(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):W&&this.partiallyRenderedItems_.has(this.items_)&&(_.e("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var id;_.W$={};
id=function(){var W=_.A1.apply(this,arguments)||this;W.atStart=!0;W.atEnd=!0;W.startIndex=0;W.endIndex=0;W.scrollCount=0;W.initialStartIndex=0;W.disableScrollEventListener=!1;W.useFloorScrolling=!1;W.isSearch=!1;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.disableWheelScroll=!1;W.centerListItems=!1;W.offset=0;W.minComponentWidth=0;W.marginWidthRight=0;W.marginWidthLeft=0;W.setButtonsStateRequested=!1;W.itemsVisibilityObserver=null;W.fullyVisibleItemsIndices=[];W.JSC$12270_onWheelScroll=function(O){if(W.isSearch&&
!W.disableWheelScroll&&_.e("desktop_enable_dmpanel_wheel_scroll")){var b=O.shiftKey?Math.abs(O.deltaY)>Math.abs(O.deltaX)?O.deltaY:O.deltaX:O.deltaX;b!==0&&(O.preventDefault(),W.ytLazyListBehavior.fillRemainingListItems(),W.offset+=b,OA(W),W.reposition_())}};
W.onPointerDown=function(O){lZ9(W)&&(W.dragMouseStart=O.clientX,W.dragOffsetStart=W.offset,W.dragging=!0)};
W.onPointerMove=function(O){lZ9(W)&&W.dragging&&(W.ytLazyListBehavior.fillRemainingListItems(),W.offset=W.dragOffsetStart-(O.clientX-W.dragMouseStart),OA(W),W.reposition_())};
W.onPointerUp=function(){lZ9(W)&&(W.dragging=!1)};
return W};
_.R(id,_.A1);var e7w=function(W){var O=_.Q(W.hostElement).querySelector("#items").children;if(!O)return 0;var b=0;W=_.S(W.fullyVisibleItemsIndices);for(var T=W.next();!T.done;T=W.next())b+=O[T.value].clientWidth;return b},lZ9=function(W){return W.isSearch&&_.e("desktop_enable_dmpanel_click_drag_scroll")};
id.prototype.created=function(){this.cachedViewportWidth=_.Cv("initialInnerWidth")||window.innerWidth;this.JSC$12270_cachedViewportHeight=_.Cv("initialInnerHeight")||window.innerHeight;_.Cv("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.zT("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
id.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.e("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();PRw(this)};
id.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.e("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var W;(W=this.itemsVisibilityObserver)==null||W.disconnect();this.itemsVisibilityObserver=null;var O;(O=this.itemsObserver)==null||O.disconnect()};
var PRw=function(W){var O=_.Q(W.hostElement).querySelector("#scroll-container");if(O){if(!W.itemsVisibilityObserver){var b=window.getComputedStyle(O).marginRight;W.itemsVisibilityObserver=new IntersectionObserver(function(T){puq(W,T)},{root:O,
rootMargin:b,threshold:.98})}if(O=_.Q(W.hostElement).querySelector("#items"))W.itemsObserver=new UpN(O,function(T){R75(W,T)})}},R75=function(W,O){K6U(W)&&(Array.from(O.addedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.observe(b)}),Array.from(O.removedNodes).filter(function(b){return b.nodeType===Node.ELEMENT_NODE}).forEach(function(b){W.itemsVisibilityObserver&&W.itemsVisibilityObserver.unobserve(b)}))},
puq=function(W,O){var b=new Set(W.fullyVisibleItemsIndices);
O=_.S(O);for(var T=O.next();!T.done;T=O.next()){T=T.value;var L=T.target.parentElement;L?(L=Array.from(L.children).indexOf(T.target),T.isIntersecting?b.add(L):b.has(L)&&b.delete(L)):_.z5(new _.pu("Parent element not found",T.target.nodeName))}W.fullyVisibleItemsIndices=Array.from(b).sort(function(h,Z){return h-Z});
b.size===0?_.z5(new _.pu("No visible entries in horizontal list")):(W.startIndex=W.fullyVisibleItemsIndices[0],W.endIndex=W.fullyVisibleItemsIndices[W.fullyVisibleItemsIndices.length-1])},K6U=function(W){W.data?W=(W=W.data)&&W.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===W.itemSizeConstraint:!1:W=!1;
return W};
_.d=id.prototype;_.d.addScrollEventListeners=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container");W.style.touchAction="pan-y";W.addEventListener("wheel",this.JSC$12270_onWheelScroll);W.addEventListener("pointerdown",this.onPointerDown);W.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.d.removeScrollEventListeners=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.JSC$12270_onWheelScroll);W.removeEventListener("pointerdown",this.onPointerDown);W.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.d.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.My(this,this.setStartIndex,[this.initialStartIndex])};
_.d.reposition_=function(){var W=_.Cv("HTML_DIR")=="rtl"?"":"-",O=_.Q(this.hostElement).querySelector("#items");O&&(O.style.transform="translateX("+W+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.d.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.My(this,this.setButtonsState_))};
_.d.setButtonsState_=function(){this.setButtonsStateRequested=!1;var W=_.Q(this.hostElement).querySelector("#items").firstElementChild;if(W){this.minComponentWidth||(this.minComponentWidth=vDS(this,W));W=_.Q(this.hostElement).querySelector("#scroll-container").clientWidth;var O=_.Q(this.hostElement).querySelector("#items").clientWidth,b=this.get(this.ytLazyListBehavior.itemsPath,this);if(b){var T=Math.round(W/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+T,b.length)-1)}this.ytLazyListBehavior.canShowMore?O+this.minComponentWidth>=this.offset+W&&(this.atEnd=!1):this.atEnd=this.offset+W>=O-20?!0:!1;this.atStart=this.offset<=20}};
_.d.setStartIndex=function(W){if(!this.minComponentWidth){var O=_.Q(this.hostElement).querySelector("#items").firstElementChild;if(!O)return;this.minComponentWidth=vDS(this,O)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*W;OA(this);this.reposition_()};
_.d.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Lg();var W=_.Q(this.hostElement).querySelector("#scroll-container").clientWidth;_.e("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=vDS(this,_.Q(this.hostElement).querySelector("#items").firstElementChild));W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&gDf(this);this.offset+=K6U(this)?
e7w(this):W*this.minComponentWidth;OA(this);this.reposition_();this.scrollCount++};
_.d.prevClick_=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container").clientWidth;W=this.useFloorScrolling?Math.floor(W/this.minComponentWidth)||1:Math.round(W/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=K6U(this)?e7w(this):this.minComponentWidth*this.scrollCount-1):this.offset-=K6U(this)?e7w(this):W*this.minComponentWidth;this.centerListItems&&gDf(this);OA(this);this.reposition_()};
_.d.onIronResize_=function(){this.resizeSupportEnabled&&_.My(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.d.onItemsTransitionEnd_=function(W){_.Md(W)===_.Q(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.d.onChildElementFocus_=function(W){W=W.target.closest("#items > *");var O=_.Q(this.hostElement).querySelector("#scroll-container");if(O.contains(W)){if(_.e("web_horizontal_list_behavior_focus_killswitch"))if(W.offsetLeft<this.offset)this.offset=Math.abs(W.offsetLeft)<W.clientWidth?0:W.offsetLeft;else if(W.offsetLeft+W.clientWidth>this.offset+O.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Lg(),this.offset=W.offsetLeft+W.clientWidth-O.clientWidth;else return;else{var b=_.Q(this.hostElement).querySelector("#items"),
T=_.Cv("HTML_DIR")==="rtl",L=T?b.clientWidth-W.offsetLeft:W.offsetLeft;b=T?b.clientWidth-(W.offsetLeft+W.clientWidth):W.offsetLeft+W.clientWidth;var h=T?L>this.offset+O.clientWidth:L<this.offset,Z=T?b<this.offset:b>this.offset+O.clientWidth,a=T?h:Z;if(T?Z:h)O=T?b:L,this.offset=Math.abs(O)<W.clientWidth?0:O;else if(a)this.ytLazyListBehavior.fillRemainingListItems(),_.Lg(),this.offset=(T?L:b)-O.clientWidth;else return}OA(this);this.reposition_()}};
_.d.observeShownItems_=function(){this.reset()};
_.d.checkComponentWidthResize=function(){var W=_.Q(this.hostElement).querySelector("#items").firstElementChild;W&&(W=vDS(this,W),this.centerListItems||W!==this.minComponentWidth)&&(this.minComponentWidth=W,this.offset=W*this.scrollCount,this.centerListItems&&gDf(this),OA(this),this.reposition_())};
var vDS=function(W,O){var b=window.getComputedStyle(O).marginRight;b=Math.floor(Number(b.replace("px","")));var T=window.getComputedStyle(O).marginLeft;T=Math.floor(Number(T.replace("px","")));W.centerListItems&&!W.marginWidthRight&&(W.marginWidthRight=b,W.marginWidthLeft=T);return W.resizeSupportEnabled?O.getBoundingClientRect().width+b:O.offsetWidth+b},OA=function(W){var O=_.Q(W.hostElement).querySelector("#scroll-container").clientWidth,b=_.Q(W.hostElement).querySelector("#items").clientWidth;
W.offset<0?W.offset=0:W.offset+O>=b&&(W.offset=b-O)},gDf=function(W){W.offset-=(_.Q(W.hostElement).querySelector("#scroll-container").clientWidth+W.marginWidthRight-W.minComponentWidth)/2-W.marginWidthLeft};
_.Jq.Object.defineProperties(id.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var W=_.Cv("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(W==-1)W=this.JSC$12270_cachedViewportHeight,W=W>1320?5:W>1020?4:W>730?3:W>430?2:1;else if(W==0)return 0;_.zT("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",W-1);W=_.Cv("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(W>-1)return W;W=this.cachedViewportWidth;W=W>1600?6:W>1400?5:W>1300?4:W>1090?5:W>870?4:W>660?3:2;_.zT("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
W);return W},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.e("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
id.prototype.observeShownItems_=id.prototype.observeShownItems_;id.prototype.onChildElementFocus_=id.prototype.onChildElementFocus_;id.prototype.onItemsTransitionEnd_=id.prototype.onItemsTransitionEnd_;id.prototype.onIronResize_=id.prototype.onIronResize_;id.prototype.prevClick_=id.prototype.prevClick_;id.prototype.nextClick_=id.prototype.nextClick_;id.prototype.setButtonsState_=id.prototype.setButtonsState_;id.prototype.requestButtonsStateUpdate_=id.prototype.requestButtonsStateUpdate_;
id.prototype.reposition_=id.prototype.reposition_;id.prototype.reset=id.prototype.reset;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],id.prototype,"ytLazyListBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],id.prototype,"atStart",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],id.prototype,"atEnd",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"startIndex",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"endIndex",void 0);_.t([_.C({value:6}),_.N("design:type",Number)],id.prototype,"initialCount",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"scrollCount",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"initialStartIndex",void 0);
_.t([_.C(),_.N("design:type",Object)],id.prototype,"disableScrollEventListener",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"supportComponentResize",void 0);_.t([_.C({value:function(){var W=this;return function(){return W.prevClick_()}}}),
_.N("design:type",Function)],id.prototype,"boundPrevClick",void 0);_.t([_.C({value:function(){var W=this;return function(){return W.nextClick_()}}}),
_.N("design:type",Function)],id.prototype,"boundNextClick",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"useFloorScrolling",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"isSearch",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"dragging",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"dragMouseStart",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"dragOffsetStart",void 0);
_.t([_.C(),_.N("design:type",Object)],id.prototype,"disableWheelScroll",void 0);_.t([_.C(),_.N("design:type",Object)],id.prototype,"centerListItems",void 0);_.t([_.ai("iron-resize"),_.m5("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],id.prototype,"onIronResize_",null);_.t([_.ai("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],id.prototype,"onItemsTransitionEnd_",null);
_.t([_.ai("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],id.prototype,"onChildElementFocus_",null);_.t([_.m5("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],id.prototype,"observeShownItems_",null);id=_.t([_.XT()],id);_.W$.YtdHorizontalListBehavior=[];_.W$.YtdHorizontalListBehavior.push(_.vL,_.F.YtRendererBehavior,_.yc.YtLazyListBehavior,_.Ch.YtdGuideStateAwareBehavior,id.prototype);var NLE=["APP_STATE","PI"];var oDw=_.ts(["about:blank"]),QOf={pushState:window.history.pushState,replaceState:window.history.replaceState};var bd=function(W){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=W;this.internalPushState=W.pushState.bind(W);this.internalReplaceState=W.replaceState.bind(W)};
bd.prototype.init=function(){this.initialized=!0};
bd.prototype.pushState=function(W,O){this.initialized||this.init();this.internalPushState&&this.internalPushState(W,"",O)};
bd.prototype.replaceState=function(W,O){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(W,"",O)};
bd.prototype.getState=function(){return this.history&&this.history.state};var kef=function(W){var O=function(){var b=W.apply(this,arguments)||this;b.boundHistoryPushState=!1;b.boundHistoryReplaceState=!1;b.debugInfo={};return b};
_.R(O,W);O.prototype.init=function(){var b=_.AV("IFRAME");_.k4(b,_.yN(oDw));b.sandbox="allow-same-origin";b.style.display="none";this.iframe=b;document.body.appendChild(b);this.bindHistoryStateFunctions();W.prototype.init.call(this)};
O.prototype.bindHistoryStateFunctions=function(){var b=this,T=[],L;this.iframe&&((L=this.iframe.contentWindow)==null?0:L.history)&&(L=this.iframe.contentWindow.history)&&(T.push(L),Object.getPrototypeOf(L)&&T.push(Object.getPrototypeOf(L)));window.history&&T.push(window.history);L=window.history;Object.getPrototypeOf(L)&&T.push(Object.getPrototypeOf(L));T.push(QOf);L=function(Z){for(var a=null,m=0;m<T.length;m++){var w=T[m][Z];if(typeof w==="function"){a=w.bind(window.history);b.debugInfo[Z]=m;break}}return a};
if(!this.boundHistoryReplaceState){var h=L("replaceState");h&&(this.internalReplaceState=h,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(L=L("pushState"))&&(this.internalPushState=L,this.boundHistoryPushState=!0)};
return O}(bd),sOL=function(){return kef.call(this,window.history)||this};
_.R(sOL,kef);sOL.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var jU=function(W){this.browserHistory=W;this.initialized=!1};
jU.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
jU.prototype.pushState=function(W,O){this.initialized||this.init();this.browserHistory.pushState(W,O)};
jU.prototype.replaceState=function(W,O){this.initialized||this.init();this.browserHistory.replaceState(W,O)};
jU.prototype.handlePopstate=function(W){return W.state};_.BLN=function(W,O,b,T,L){this.endpoint=W;this.forward=O;this.historyEntry=b;this.JSC$26543_savedComponentState=T;this.legacyBorder=L===void 0?!1:L};var r7U=function(W,O){this.rootData=W;this.scrollTop=O};var PR=new _.MV("PAGE_REQUEST_TOKEN"),dow=new _.MV("FETCH_PBJ_TOKEN");_.TO=new _.MV("EPHEMERAL_STORE_TOKEN");_.L1=function(W){this.data=Object.assign({},W);var O;(O=this.data.innertubeResponse)==null||delete O.frameworkUpdates};
_.L1.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.WO)()};
_.LD=function(W){return Object.assign({},W.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var DRN=function(){this.maxSize=100;this.timeToDataCache=new Map};
DRN.prototype.get=function(W){var O=this.timeToDataCache.get(W);O&&(this.timeToDataCache.delete(W),this.timeToDataCache.set(W,O));if(O&&O.rootData&&(_.e("web_use_response_store_for_history_cache")||_.e("mweb_use_new_history_manager"))){var b=_.iq().resolve(_.TO),T=xRn(O),L=!!T;if(T){if(T.content){var h=dT(b,T.content);L&&h?O.rootData.response=_.LD(h):L=!1}T.player&&(h=dT(b,T.player),L&&h?O.rootData.playerResponse=_.LD(h):L=!1);T.reelSequence&&(b=dT(b,T.reelSequence),L&&b?O.rootData.reelWatchSequenceResponse=
_.LD(b):L=!1)}L||(this.timeToDataCache.delete(W),O=void 0)}return O};
DRN.prototype.set=function(W,O){if(O.rootData&&(_.e("web_use_response_store_for_history_cache")||_.e("mweb_use_new_history_manager"))){var b=xRn(O),T=Object.assign({},O.rootData);b&&(b.content&&O.rootData.response&&(z75(this,b.content,O.rootData.response),T.response=null),b.player&&O.rootData.playerResponse&&(z75(this,b.player,O.rootData.playerResponse),T.playerResponse=null),b.reelSequence&&O.rootData.reelWatchSequenceResponse&&(z75(this,b.reelSequence,O.rootData.reelWatchSequenceResponse),T.reelWatchSequenceResponse=
null));O=new r7U(T,O.scrollTop)}this.timeToDataCache.has(W)?this.timeToDataCache.delete(W):this.timeToDataCache.size>=this.maxSize&&(b=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(b.value));this.maxSize!==0&&this.timeToDataCache.set(W,O)};
DRN.prototype.clear=function(){this.timeToDataCache.clear()};
var xRn=function(W){var O=_.iq().resolve(_.OT(PR)),b;if((b=W.rootData)==null?0:b.endpoint)return O==null?void 0:mYe(O,W.rootData.endpoint);var T;_.z5(new _.pu("History snapshot response data does not contain endpoint",(T=W.rootData)==null?void 0:T.url));return null},z75=function(W,O,b){if(W.maxSize>0){var T;
(W=(T=b.responseContext)==null?void 0:T.maxAgeSeconds)&&Number(W)>0&&(T=_.iq().resolve(_.TO),b=dt(b,W),T.put(O,new _.L1(b)))}};var CR9=function(W,O,b){this.endpoint=O;this.JSC$26548_savedComponentState=b===void 0?null:b;this.entryTime=W};var y7X=1;var hz=function(W){var O=function(){var b=W.apply(this,[].concat(_.PG(_.PD.apply(0,arguments))))||this;b.historyEntryTime=0;b.historySnapshotCache=b.createHistoryCache();return b};
_.R(O,W);O.prototype.createHistoryCache=function(){return new DRN};
O.prototype.saveAndReplace=function(b,T,L){var h=window.location.href;var Z=Z===void 0?{}:Z;var a=(a=this.browserHistory.getState())&&a.entryTime?a.entryTime:WEP();b=this.createNewHistoryEntry(b,Z,a);this.saveSnapshot(a,T,L);this.replaceState(b,h||window.location.href)};
O.prototype.saveAndPush=function(b,T,L,h,Z){Z=Z===void 0?{}:Z;this.saveSnapshot(this.historyEntryTime,L,h);L=this.historySnapshotCache;h=this.historyEntryTime;var a=L.timeToDataCache.keys();a=_.S(a);for(var m=a.next();!m.done;m=a.next())m=m.value,m>h&&L.timeToDataCache.delete(m);T=this.createNewHistoryEntry(T,Z);this.pushState(T,b)};
O.prototype.saveSnapshot=function(b,T,L){this.historySnapshotCache.set(b,new r7U(T,L))};
O.prototype.createNewHistoryEntry=function(b,T,L){L=L===void 0?WEP():L;return new CR9(L,b,T)};
O.prototype.handlePopstate=function(b){var T=W.prototype.handlePopstate.call(this,b),L=null,h=null,Z=!1,a=null;T&&T.entryTime&&(a=this.historySnapshotCache.get(T.entryTime)||null,Z=T.entryTime>this.historyEntryTime,this.historyEntryTime=T.entryTime,L=T.endpoint,h=T.JSC$26548_savedComponentState);this.handleHistoryCacheLoad(new _.BLN(L,Z,a,h),b);return T};
O.prototype.pushState=function(b,T){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);W.prototype.pushState.call(this,b,T)};
O.prototype.replaceState=function(b,T){Number(b==null?void 0:b.entryTime)>=0&&(this.historyEntryTime=b.entryTime);W.prototype.replaceState.call(this,b,T)};
O.prototype.handleHistoryCacheLoad=function(){};
return O}(jU),qjU=function(){var W=hz.call(this,new sOL)||this;
W.dispatchElement=null;W.entryIndex=0;return W};
_.R(qjU,hz);_.d=qjU.prototype;_.d.init=function(W){W=W===void 0?!0:W;hz.prototype.init.call(this);this.initialized||(W||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.d.handlePopstate=function(W){var O=null;W.state||(O="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return hz.prototype.handlePopstate.call(this,W);var b=new CustomEvent("yt-history-pop",{cancelable:!0});_.jx(this.dispatchElement,"yt-history-pop",[b,{errorMsg:O}]);_.TU(this.dispatchElement,"yt-close-all-popups-action");if(!b.defaultPrevented){b=_.iq().resolve(_.cs);O=b.getCurrentData();var T=b.getCurrentPage();b=0;T?(T=_.jx(this.dispatchElement,"yt-get-page-offset",
[T]),T.length>0&&(b=T[0])):_.z5(new _.pu("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:O?O.page:"undefined"}));O&&(O.csn=_.Bb());this.saveSnapshot(this.historyEntryTime,O,b)}return hz.prototype.handlePopstate.call(this,W)};
_.d.handleHistoryCacheLoad=function(W,O){W.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.S(_.TU(this.dispatchElement,"yt-history-will-navigate",[O])).next().value||_.jx(this.dispatchElement,"yt-history-load",[O,W]))};
_.d.pushState=function(W,O){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var b=new _.pu("history.pushState is not a function",this.getDebugString());_.Dt(b)}hz.prototype.pushState.call(this,W,O)};
_.d.replaceState=function(W,O){if(!this.browserHistory.boundHistoryReplaceState){var b=new _.pu("history.replaceState is not a function",this.getDebugString());_.Dt(b)}hz.prototype.replaceState.call(this,W,O)};
_.d.saveAndPush=function(W,O,b,T,L){L=L===void 0?{}:L;b&&(b.csn=_.Bb());hz.prototype.saveAndPush.call(this,W,O,b,T,L)};
_.d.getDebugString=function(){var W=[];this.initialized&&W.push("i");this.browserHistory.boundHistoryReplaceState&&W.push("bhr");this.browserHistory.boundHistoryPushState&&W.push("bhs");"replaceState"in this.browserHistory.debugInfo&&W.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&W.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&W.push("ei:"+String(this.entryIndex));return W.join(",")};
_.SU=function(W,O){W.init(!0);var b=W.browserHistory.getState();W.replaceState(b,Lp(O))};
qjU.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Zs=new _.MV("DESKTOP_HISTORY_MANAGER_TOKEN");var nDq=[10,20,30,40,50,60],IC=function(){this.currentPartitionIndex=0},fZw=function(W){ICU({mainAppWeb:_.Hh(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},Ge$=function(W){ICU({mainAppWeb:_.Hh(),
survivalSli:{partitionMinute:W,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},HMH=function(W){return W.currentPartitionIndex>=0&&W.currentPartitionIndex<nDq.length?nDq[W.currentPartitionIndex]:-1},thL=function(W){return W.currentPartitionIndex>0&&W.currentPartitionIndex-1<nDq.length?nDq[W.currentPartitionIndex-1]:-1};
IC.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var W=thL(this);W>0&&Ge$(W);W=HMH(this);W>0&&fZw(W);$R9(this)}};
var $R9=function(W){var O=HMH(W);if(O>0){var b=thL(W);b<0&&(b=0);W.intervalId=_.sF.addJob(function(){var T=thL(W);T>0&&Ge$(T);T=HMH(W);T>0&&fZw(T);$R9(W)},3,(O-b)*6E4);
W.currentPartitionIndex+=1}else W.currentPartitionIndex=-1};var Vh5=function(){this.skipNextNavigation=!1},NLH=function(W,O,b){if(!O)return!1;
if(W.skipNextNavigation)return W.skipNextNavigation=!1;if(_.P(b,_.t8))return!1;var T,L,h;if((T=_.P(b,_.wE))==null?0:(L=T.browseEndpointContextSupportedConfigs)==null?0:(h=L.browseEndpointContextMainConfig)==null?0:h.skipConfirmation)return!1;var Z;return((Z=_.P(O.commandMetadata,_.F9))==null?void 0:Z.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
Vh5.prototype.showConfirmationDialog=function(W,O){this.navigateParams=O;this.customConfirmationCommand?_.iq().resolve(_.bq).resolveCommand(this.customConfirmationCommand):(O={openPopupAction:{popup:{confirmDialogRenderer:{title:_.VV(_.EO("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.VV(_.EO("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.VV(_.EO("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.VV(_.EO("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.$G.getInstance().triggerAction("yt-open-popup-action",O,W))};
Vh5.prototype.cancelPendingNavigation=function(){var W;((W=this.navigateParams)==null?void 0:W.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var Mh7=function(){},J7z=function(W,O,b,T,L,h,Z){b=b===void 0?{}:b;
Z=Z===void 0?{}:Z;var a=_.Y_.instance,m,w=(m=_.P(O,_.t8))==null?void 0:m.url;return w?tIE(a,w,b,window.location.href,function(A,X){uIU(W,A,X,!1,!0,b,h,T)},function(){return!1}):qc(a,O,b,window.location.href,XE(O),function(A,X){uIU(W,A,X,!1,!0,b,h,T)},L,Z)},uIU=function(W,O,b,T,L,h,Z,a){if(!W.JSC$12328_chunkHandler)if(b.page==="watch"||b.page==="learning_journey_watch")if(L||T){if(_.e("kevlar_continue_playback_without_player_response")){var m;
var w=(m=_.P(a,_.V3))==null?void 0:m.videoId}W.JSC$12328_chunkHandler=new BTH(_.ya,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:T,previousVideoId:w},tempData:h},Z)}else W.JSC$12328_chunkHandler=new gYN(_.ya);else b.page==="shorts"&&L&&!T?W.JSC$12328_chunkHandler=new sCU(_.ya,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:h},Z):W.JSC$12328_chunkHandler=new oYL(Z);W.JSC$12328_chunkHandler.processChunk({endpoint:O,data:b});return W.JSC$12328_chunkHandler.kk.promise},
c71=function(W,O,b,T,L){(b=_.eYz(b))&&uIU(W,O,b,!1,!0,T,void 0,L)};var F6U=function(){this.pendingNavigationPromise=null};
_.d=F6U.prototype;_.d.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.d.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.d.addEventListener=function(){throw Error("xh");};
_.d.dispatchEvent=function(){throw Error("xh");};
_.d.removeEventListener=function(){throw Error("xh");};var y79=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],aC=function(){_.ER.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];WEz(this)};
_.R(aC,_.ER);aC.prototype.verifyUser=function(){var W=WEz(this),O=W.logout;if(!W.sessionChange)return!0;this.dispatchEvent("ytsessionchange");O&&this.dispatchEvent("ytuserinvalid");return!1};
var WEz=function(W){var O=y79.map(function(L){var h;return(h=_.Xq.get(L))!=null?h:""}),b=O.some(function(L,h){return W.sessionCookies&&W.sessionCookies[h]!==""&&L===""}),T=O.some(function(L,h){return W.sessionCookies&&W.sessionCookies[h]!==L});
W.sessionCookies=O;return{logout:b,sessionChange:T}};
aC.prototype.clearTimeout=function(){this.scheduledJobId&&(_.sF.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var Tfq=new _.MV("POSTMESSAGE_TUNNEL_TOKEN");var iC8=["/parent_tools","/file_download","/artist_roster"],hzh=[a2T,m42,YyP,wz8,Em1,I22,Ai8,XzO];var OCL=new _.MV("APP_ROOT");var mK=new _.MV("NAVIGATION_CONFIRMATION_SERVICE");var iC1="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),bCz=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
YY=function(W,O){this.pendingNavigationPromise=null;this.JSC$12346_clientRoot=W;this.historyManager=O;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new Mh7;this.debugString=W.is;W={"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};_.Vj(_.$G.getInstance(),W,this.JSC$12346_clientRoot)},hzq,SsN,ZCv,IWS,dMH;
_.R(YY,F6U);YY.prototype.reload=function(){_.GF(window.location.href)};
var RYv=function(W){W.currentEndpoint&&_.P(W.currentEndpoint,_.l8)?W.reload():W.currentEndpoint&&W.navigate(W.currentEndpoint,!0,void 0,{disableCache:!0})};
YY.prototype.navigate=function(W,O,b,T,L,h,Z,a){O=O===void 0?!1:O;b=b===void 0?{}:b;T=T===void 0?{}:T;var m=_.iq().resolve(mK),w;if(!Z&&NLH(m,(w=this.currentEndpoint)!=null?w:void 0,W))return m.showConfirmationDialog(this.JSC$12346_clientRoot.parentElement,{endpoint:W,reload:O,params:b,tempData:T,requestType:L,createScreenConfig:h}),!1;var A=_.BH();_.rk(A,"eocs")||A.parkOrScheduleJob(function(){A.processSignal("eocs")},10,"eor");
Z=XE(W);m=T.autonav==="1";w=_.Bb();aC.instance||(aC.instance=new aC);var X=aC.instance.verifyUser(),l;if(_.e("enable_dark_theme_only_on_shorts")){var p=document.documentElement.hasAttribute("dark"),K=_.K_(!0)==="USER_INTERFACE_THEME_DARK";if(Z==="shorts"){if(!p)if(_.e("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var k;_.GF((k=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:k.url,void 0,void 0,window.top)}}else{var r;_.GF(_.MC((r=_.P(W==null?
void 0:W.commandMetadata,_.F9))==null?void 0:r.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.e("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!p){var q;_.GF(_.MC((q=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:q.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(K!==p){var f;_.GF(_.MC((f=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:f.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(Z==="watch"){if(jfv(_.iq().resolve(_.xq),
W)&&(X||_.e("fix_miniplayer_navigation_killswitch")))return!1;_.e("block_all_player_prefetch_requests")||(l=PL1(_.j6(_.EZ),W,m))}else{var M,V=(M=_.P(this.currentEndpoint,_.V3))==null?void 0:M.videoId;V&&_.lh.getInstance().then(function(fE){fE&&fE.set("yt-miniplayer-shown-video-id",V)})}l&&(b.frags=l.missingFragments_.join(","));
k=null;var jQ;r=(jQ=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:jQ.ignoreNavigation;if(!r)if(_.e("kevlar_command_url")){var y;k=(y=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?void 0:y.url}else k=_.gyi(W,b);if(k&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&k==this.lastNavigationUrl)return _.k0({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.ad(Cq(),"CANCELLED")}k&&(this.lastNavigationUrl=k);Jei();_.zT("IS_HOMEPAGE_COLD",
!1);_.zT("IS_RESULTS_PAGE_COLD",!1);_.zT("IS_WATCH_PAGE_COLD",!1);W.loggingUrls&&W.loggingUrls.forEach(function(fE){fE.baseUrl&&_.G7(fE.baseUrl)});
_.aW8(W,h?h.layer:0)&&_.e("kevlar_flush_logs_on_away_navigation")&&_.re();if(Ss2(W))return!1;iQ$(Z,L);if(!k)return r||_.z5(new _.pu("Can't construct url for endpoint",W)),_.ad(Cq(),"FAILURE"),!1;_.OC8();jQ=W&&_.P(W,_.wE)&&_.P(W,_.wE).browseId.startsWith("UC");b=(y=_.e("enable_dark_theme_only_on_shorts")&&Z==="shorts"?!1:_.vh()&&document.documentElement.hasAttribute("dark")!==_.Ru())?{themeRefresh:1}:{};y&&!_.lq()&&_.K_()==="USER_INTERFACE_THEME_DARK"&&(b.theme="dark");jQ=y||Tf7(k)&&!jQ&&!_.e("kevlar_disable_url_allowlist");
X||(jQ=!0);if(jQ||_.Cv("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var d8;var pE=(d8=window.top)==null?void 0:d8.location.href}catch(fE){var Qh;pE=(Qh=fE)==null?void 0:Qh.message}_.z5(new _.pu("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:pE}))}W=_.e("kevlar_redirect_on_window_killswitch")?window.top:window;f_(k);_.GF(_.MC(k,b),void 0,void 0,W);_.ad(Cq(),"ABORTED");return!1}_.e("kevlar_early_popup_close")&&_.jx(this.JSC$12346_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12328_chunkHandler=void 0;var KE;pE=XE((KE=this.currentEndpoint)!=null?KE:void 0);(KE=Z==="shorts"&&pE==="shorts")||_.cE8();_.fv(q$T)("nr",void 0);m&&_.k0({webInfo:{navigationReason:"an"}});W.clickTrackingParams&&(T.itct=W.clickTrackingParams,T.csn=w);d5e(T);T.endpoint=JSON.stringify(W);_.e("enable_unknown_lact_fix_on_html5")&&(_.iq().resolve(_.Qa),T.lact=_.by());_.PQ.isEmpty(T)||_.JC(k,T);!_.e("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(h=Object.assign({},{layer:0},h,{parentLayer:3}));this.pendingNavigationPromise=h=J7z(this.pageFetcher,W,T,this.currentEndpoint,this.JSC$12346_isNetworkPromiseStale.bind(this),h,a);h=h.then(this.handleNavigateSuccess.bind(this,h,W,l,T),this.handleNavigateFail.bind(this,h,W));_.IT().navigationFinishPromise=h;O={endpoint:W,pageType:Z,url:Lp(k),reload:!!O,noProgressBar:_.e("web_disable_page_navigation_progress")||KE};L&&(O.type=L);this.fireEvent("yt-navigate-start",O);l&&
c71(this.pageFetcher,W,l,T,this.currentEndpoint);return!0};
YY.prototype.JSC$12346_isNetworkPromiseStale=function(W){return W!=this.pendingNavigationPromise};
var LE1=function(W,O,b,T,L){var h=XE(O);O={endpoint:O,pageType:h};L&&(O.errorMessage=L);_.z5(b);O.navigationDoneMs=_.Bg("nd");O.navigationErrorReason=T;W.fireEvent("yt-navigate-error",O)};
YY.prototype.handleNavigateFail=function(W,O,b){var T=void 0;b instanceof _.$N&&(T=b,Kwe(b));if(this.JSC$12346_isNetworkPromiseStale(W))return _.vi(T);_.ad(Cq(),"FAILURE");LE1(this,O,b,"101");return _.vi(b)};
YY.prototype.handleNavigateSuccess=function(W,O,b,T,L){if(this.JSC$12346_isNetworkPromiseStale(W))return _.ZM();this.pendingNavigationPromise=null;if(!L)return O=new _.pu("Missing data in response for navigation endpoint",O),_.vi(O);if(L.reload)return window.location.reload(!0),_.ZM();b&&(W={},_.PQ.extend(W,_.eYz(b),L),L=W);var h,Z;b=(h=L)==null?void 0:(Z=h.timing)==null?void 0:Z.responseStart;b!=null&&_.Bg("srt",b);_.Bg("pdc");var a,m;h=(a=L)==null?void 0:(m=a.timing)==null?void 0:m.info;h!=null&&
(a=_.fv(_.HWE)(h),_.k0(a));_.ad(Cq(),"SUCCESS");dMH(this,O,L,1,T);return _.ZM()};
var Tf7=function(W){var O=W;_.e("kevlar_no_redirect_to_classic_2_ks")||(O=(new _.Np(W)).getPath());if(O==="/"||O==="/red")return!1;var b=!0;iC1.forEach(function(T){W.indexOf(T)===0&&(b=!1)});
bCz.forEach(function(T){var L=T.url;_.e(T.expFlag)&&W.indexOf(L)===0&&(b=!1)});
return b};
YY.prototype.publishPageData=function(W){this.fireEvent("yt-page-data-fetched",{pageData:W})};
hzq=function(W,O,b,T,L,h){var Z=null;O.page!=="watch"||T?O.filler||_.jx(W.JSC$12346_clientRoot,"yt-stop-old-player",[O]):Z=uIU(W.pageFetcher,L,O,b,!1,h,void 0,W.currentEndpoint);if(Z)return Z.then(W.publishPageData.bind(W,O));W.publishPageData(O);return _.ZM()};
SsN=function(W,O,b){var T=null;if(!b)return T=new _.pu("Empty data",W.debugString,O);var L=b.response;if(!L)return T;var h={endpointType:XE(O)||"unknown"};L.responseContext?(L=L.responseContext.errors)&&(T=new _.pu("Errors in response context",W.debugString,O,L,h)):T=L.error||L.errorMetadata?new _.pu("Errors in response",W.debugString,O,L.error,L.errorMetadata,h):new _.pu("responseContext missing",W.debugString,O,Object.keys(L).sort().join(","),h);var Z,a,m,w;if(W=b==null?void 0:(Z=b.response)==null?
void 0:(a=Z.responseContext)==null?void 0:(m=a.webResponseContextExtensionData)==null?void 0:(w=m.webResponseContextDebugData)==null?void 0:w.debugErrorMessages)for(Z=0;Z<W.length;Z++);return T};
ZCv=function(W){var O,b,T,L;return W==null?void 0:(O=W.response)==null?void 0:(b=O.responseContext)==null?void 0:(T=b.errors)==null?void 0:(L=T.error)==null?void 0:L["0"]};
IWS=function(W,O){var b;if(b=O.url&&!O.url.startsWith("/clip"))b=O.url,b=!_.e("webfe_parse_debug_param_in_resolveurl_service")&&W.searchDebugUrlMatcher.test(b)||B31(b)?!0:!1;if(b)B31(O.url)&&_.NC(window.location.href).themeRefresh?(O=_.cb(O.url,"themeRefresh"),_.SU(W.historyManager,O)):O.url&&!c78(O.url)&&_.SU(W.historyManager,O.url);else if(O.endpoint){var T,L,h;(b=(T=O.endpoint)==null?void 0:(L=T.commandMetadata)==null?void 0:(h=L.webCommandMetadata)==null?void 0:h.url)&&!c78(b)&&_.SU(W.historyManager,
b);b&&O.url&&b!=O.url&&!O.url.match("playnext=1")&&new _.pu("Response url mismatch in response data",W.debugString,b,O.url)}};
_.aW1=function(W,O,b,T,L,h,Z,a){h=h===void 0?!1:h;var m=_.iq().resolve(mK),w;if(!a&&NLH(m,(w=W.currentEndpoint)!=null?w:void 0,O))return m.showConfirmationDialog(W.JSC$12346_clientRoot.parentElement,{endpoint:O,data:b,navigationType:T,tempData:L,isMiniplayer:h,isForwardHistoryNavigation:Z==null?void 0:Z.forward}),_.ZM();W.pageFetcher.JSC$12328_chunkHandler=void 0;return dMH(W,O,b,T,L,h)};
dMH=function(W,O,b,T,L,h){h=h===void 0?!1:h;W.isMiniplayerExpansion=h;var Z=T===2;W.currentEndpoint=O;W.numNavigations++;W.numNavigations&&(MfP.navigationCount=W.numNavigations);_.zT("NUM_NAV",W.numNavigations);var a=SsN(W,O,b);if(a)return LE1(W,O,a,"102",ZCv(b)),_.vi(a);var m,w,A,X;a=b.rootVe||(b==null?void 0:(m=b.response)==null?void 0:(w=m.responseContext)==null?void 0:(A=w.webResponseContextExtensionData)==null?void 0:(X=A.ytConfigData)==null?void 0:X.rootVisualElementType);!Z&&b&&IWS(W,b);var l,
p;m=b==null?void 0:(l=b.response)==null?void 0:(p=l.responseContext)==null?void 0:p.maxAgeSeconds;if(!Z&&!isNaN(m)){var K;_.e("kevlar_use_response_ttl_to_invalidate_cache")?K=(0,_.WO)()+1E3*m:_.e("kevlar_always_invalidate_cache")&&(K=0);isNaN(K)||(b.expirationTime=K)}_.e("html5_enable_ssap_entity_id")&&Z&&b.playerResponse&&(b.playerResponse.cacheMetadata={isCacheHit:!0});_.j6(_.EZ).prefetchCache_.clear();Z||b.page!=="watch"||b.type!=="reduced"&&T!==1?T=hzq(W,b,Z,!!h,O,L):(W.publishPageData(b),T=_.ZM());
L=T.then(function(){var k=XE(O);k={endpoint:O,pageType:k,fromHistory:Z,response:b};k.navigationDoneMs=_.Bg("nd");W.fireEvent("yt-navigate-finish",k)});
b.csn&&a&&b.clientSideGrafts&&T.then(W.attachClientSideGrafts.bind(W,b,_.sk()));return L};
_.d=YY.prototype;_.d.attachClientSideGrafts=function(W,O){W.clientSideGrafts&&O&&W.clientSideGrafts.forEach(function(b){if(O&&b){var T=_.Pi(b);_.e("combine_ve_grafts")?_.A4().graftServerVe(b,O):_.fV(W.csn,O,T)}})};
_.d.handleSignalActionHistoryBack=function(){window.history.back()};
_.d.handleSignalActionCloseWindow=function(){window.close()};
_.d.handleSignalActionReloadPage=function(){this.reload()};
_.d.handleSignalActionSoftReloadPage=function(){RYv(this)};
_.d.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.d.fireEvent=function(W,O){W=new CustomEvent(W,{bubbles:!0,cancelable:!1,composed:!0,detail:O});this.dispatchEvent(W)};
_.d.addEventListener=function(W,O){this.JSC$12346_clientRoot.addEventListener(W,O)};
_.d.dispatchEvent=function(W){return this.JSC$12346_clientRoot.dispatchEvent(W)};
_.d.removeEventListener=function(W,O){this.JSC$12346_clientRoot.removeEventListener(W,O)};
YY[NV]=[OCL,_.Zs];_.Wae=new FB("browse","h8y2qb");_.Oi1=new FB("search","JzFVk");_.ii1=new FB("shorts","xwEKAe");_.biQ=new FB("watchFixie","nmfa2d");_.j9q=new FB("watchFlexy","CF909");_.Tz8=new FB("watchGrid","Tm0L3c");_.La1=new FB("watchLearningJourney","L3n37");var mM9;var EA=function(){return _.n.apply(this,arguments)||this};
_.R(EA,_.n);_.Jq.Object.defineProperties(EA,{template:{configurable:!0,enumerable:!0,get:function(){if(mM9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);mM9=W}W=mM9;return W}}});
_.t([_.D(YjN.YtPlayerBehavior),_.N("design:type",Object)],EA.prototype,"ytPlayerBehavior",void 0);EA=_.t([_.G({is:"ytd-player"})],EA);var YsL;var EpL;var wan;var wT=function(){var W=_.n.apply(this,arguments)||this;W.forceModernIconButton=!1;W.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return W};
_.R(wT,_.n);wT.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]]"}}}}}};
wT.prototype.handleAccountLinkingStateChangedCommand=function(W){if(W=_.P(W,olv)){var O,b=(O=this.data)==null?void 0:O.providerKey;O=W.providerKey;b&&O&&b.id===O.id&&b.subject===O.subject&&(W=W.linked,W!==void 0&&(this.set("data.linked",W),this.notifyPath("data.linked"),_.e("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(W)))}};
wT.prototype.setPlayerAccountLinkState=function(W){var O=new oCT;gCX(O,QgP(new kfe,W));var b=_.ya();b&&b.getPlayerPromise().then(function(T){T.setAccountLinkState(_.WM(O.JSC$10072_serializeBinary(),4));T.updateAccountLinkingConfig(W)})};
wT.prototype.handleShowAccountLinkDialog=function(){var W=this.get("button.buttonRenderer.command");W&&_.a5([W],this.hostElement)};
_.Jq.Object.defineProperties(wT.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}}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wT.prototype,"ytRendererBehavior",void 0);_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],wT.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],wT.prototype,"overrides",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wT.prototype,"forceModernIconButton",void 0);_.t([_.C({value:"bottom"}),_.N("design:type",String)],wT.prototype,"buttonTooltipPosition",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],wT.prototype,"forceIconButton",void 0);_.t([_.C(),_.N("design:type",Boolean)],wT.prototype,"disableTextTransform",void 0);
_.t([_.x("data","data.linked","data.isWarning"),_.N("design:type",Object),_.N("design:paramtypes",[])],wT.prototype,"button",null);wT=_.t([_.G({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],wT);
_.H(wT,"ytd-account-link-button-renderer",function(){if(wan!==void 0)return wan;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return wan=W},{mode:1});var AK1;var Xan=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Az=function(){return _.n.apply(this,arguments)||this};
_.R(Az,_.n);Az.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Az.prototype.updateButtonActiveState=function(){var W=this,O=!!Xan.find(function(b){return W.currentState===b});
this.button&&(this.button.isPressed=O)};
_.Jq.Object.defineProperties(Az.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.playlistLoopStateEntity)==null?void 0:W.state)||((O=this.data)==null?void 0:O.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=void 0,O;if(this.currentState&&((O=this.data)==null?0:O.states)){O=_.S(this.data.states);for(var b=O.next();!b.done;b=O.next()){b=_.P(b.value,_.Mb5);var T=void 0;if(((T=b)==null?void 0:T.state)===this.currentState){W=b;break}}}return W}}});
Az.prototype.updateButtonActiveState=Az.prototype.updateButtonActiveState;_.t([_.D(_.sh),_.N("design:type",Object)],Az.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Az.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.UMe}),_.N("design:type",Object)],Az.prototype,"playlistLoopStateEntity",void 0);_.t([_.C(),_.N("design:type",Object)],Az.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],Az.prototype,"forceIconOnly",void 0);_.t([_.El("ytd-button-renderer"),_.N("design:type",_.V8)],Az.prototype,"button",void 0);
_.t([_.x("data","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],Az.prototype,"currentState",null);_.t([_.m5("currentButtonStateRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Az.prototype,"updateButtonActiveState",null);_.t([_.x("currentState"),_.N("design:type",Object),_.N("design:paramtypes",[])],Az.prototype,"currentButtonStateRenderer",null);
Az=_.t([_.G({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Az);
_.H(Az,"ytd-playlist-loop-button-renderer",function(){if(AK1!==void 0)return AK1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return AK1=W},
{mode:1});var UMv;var lWH=_.EO("DOWNLOAD",{},"Download"),ezv=_.EO("DOWNLOADING",{},"Downloading"),P6n=_.EO("DOWNLOADED",{},"Downloaded"),paL=_.EO("RETRY",{},"Retry"),Xo=function(){var W=_.n.apply(this,arguments)||this;W.forceIconButton=!1;W.forceIconOnly=!1;W.overrides=!1;W.buttonTooltipPosition=!1;W.styleActionButton=!1;W.disableTextTransform=!1;W.downloadProgress=0;W.isDownloadComplete=!1;W.isHidden=!0;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return W};
_.R(Xo,_.n);_.d=Xo.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var W;(W=this.data)!=null&&W.text||(W=_.D5(_.uv().getState(),this.videoId),this.updateButtonState(W))};
_.d.computeVideoId=function(W){return W};
_.d.showHideButton=function(){this.updateButtonVisibility()};
_.d.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(W){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==ezv||!_.lv(W))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=lWH;var O="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":W=paL;O="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":W=P6n;O="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":W=
ezv;O="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":W=paL;O="OFFLINE_DOWNLOAD";b="ACTION_RETRY";break;default:W=lWH,O="OFFLINE_DOWNLOAD",b="ACTION_ADD"}this.isVideoDeletedByUser&&(W=lWH,O="OFFLINE_DOWNLOAD",b="ACTION_ADD");var T=Object.assign({},this.data);T.text=_.VV(W);T.tooltip=W;T.icon={iconType:O};T.size="SIZE_DEFAULT";T.style="STYLE_DEFAULT";_.P(T.command,_.mo)&&(_.P(T.command,_.mo).action=b);this.set("data",T)}};
_.d.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?W="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var O;W!==((O=this.data.icon)==null?void 0:O.iconType)&&(O=Object.assign({},this.data),O.text=_.VV(ezv),O.tooltip=ezv,O.icon={iconType:W},_.P(O.command,_.mo)&&(_.P(O.command,_.mo).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",O))}};
Xo.prototype.updateProgress=Xo.prototype.updateProgress;Xo.prototype.onTransferStateChanged=Xo.prototype.onTransferStateChanged;Xo.prototype.showHideButton=Xo.prototype.showHideButton;Xo.prototype.dataChanged=Xo.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Xo.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"forceIconButton",void 0);
_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"forceIconOnly",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"overrides",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"buttonTooltipPosition",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"styleActionButton",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"disableTextTransform",void 0);
_.t([_.C({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.N("design:type",String)],Xo.prototype,"videoId",void 0);_.t([_.C(),_.N("design:type",Object)],Xo.prototype,"data",void 0);_.t([_.C({selector:zc,selectorArgs:["videoId"]}),_.N("design:type",Object)],Xo.prototype,"downloadProgress",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xo.prototype,"isDownloadComplete",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xo.prototype,"isHidden",void 0);_.t([_.C({selector:_.D5,selectorArgs:["videoId"]}),_.N("design:type",String)],Xo.prototype,"transferState",void 0);_.t([_.C({selector:_.sPT,selectorArgs:["videoId"]}),_.N("design:type",Object)],Xo.prototype,"isVideoDeletedByUser",void 0);_.t([_.C({selector:vVT,selectorArgs:["videoId"]}),_.N("design:type",Object)],Xo.prototype,"offlineabilityState",void 0);
_.t([_.C({value:!0}),_.N("design:type",Boolean)],Xo.prototype,"showTooltips",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],Xo.prototype,"sendCommandWhenDisabled",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Xo.prototype,"disabled",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"dataChanged",null);
_.t([_.Ul("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"showHideButton",null);_.t([_.Ul("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"onTransferStateChanged",null);_.t([_.Ul("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xo.prototype,"updateProgress",null);
Xo=_.t([_.G({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],Xo);
_.H(Xo,"ytd-download-button-renderer",function(){if(UMv!==void 0)return UMv;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UMv=W},{mode:2});var Rzv;var KEU,vpq=function(){if(KEU!==void 0)return KEU;var W=document.createElement("template");_.v(W,'\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 KEU=W};var gpv=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live"),op5=_.Lu("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,UA=function(){var W=_.n.apply(this,arguments)||this;W.isPressed=!1;W.forceIconButton=!1;W.forceIconOnly=!1;W.forceModernIconButton=!1;W.alignByText=!1;W.isShorts=!1;W.animatedText=!1;W.shouldAnimate=!1;W.JSC$12384_browserSupportsAnimation=_.e("web_supports_animations_api");W.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};W.onTap=function(){var O;if((O=W.data)==null||!O.defaultNavigationEndpoint){var b;O=!((b=W.data)==null?0:b.isToggled);var T;if((T=W.data)==null||!T.preventAutoToggle){W.shouldAnimate=!1;W.disableTextUpdateJobId&&_.sF.cancelJob(W.disableTextUpdateJobId);W.disableTextUpdateJobId=_.sF.addLowPriorityJob(function(){W.disableTextUpdateJobId=void 0},op5);
var L;W.set("data.isToggled",!((L=W.data)==null?0:L.isToggled));b=W.getInnertubeIcon();T={toggled:O,actions:{}};b&&(T.actions[b.toLowerCase()]=O);_.bX(W.hostElement,"yt-toggle-button",T)}}};
return W};
_.R(UA,_.n);_.d=UA.prototype;_.d.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.sF.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.toggle=function(W){var O;this.set("data.isToggled",W!==void 0?W:!((O=this.data)==null?0:O.isToggled))};
_.d.handleUpdateToggleButtonStateCommand=function(W){if(this.data){W=_.P(W,q3N);var O,b,T,L=(O=this.data)==null?void 0:(b=O.toggleButtonSupportedData)==null?void 0:(T=b.toggleButtonIdData)==null?void 0:T.id;L&&W&&L===(W==null?void 0:W.buttonId)&&this.set("data.isToggled",W.toggled)}};
_.d.handleUpdateToggleButtonTextAction=function(W){if(this.data){W=_.P(W,XXU);var O,b,T,L=(O=this.data)==null?void 0:(b=O.toggleButtonSupportedData)==null?void 0:(T=b.toggleButtonIdData)==null?void 0:T.id;L&&W&&L===(W==null?void 0:W.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=W.defaultNumericalValue,this.set("data.defaultText",W.defaultText),this.set("data.toggledText",W.toggledText),this.shouldAnimate=!1)}};
_.d.getInnertubeIcon=function(){var W=this.data;if(W){var O,b,T=((O=W.defaultIcon)==null?0:O.iconType)?(b=W.defaultIcon)==null?void 0:b.iconType:null,L,h;O=((L=W.toggledIcon)==null?0:L.iconType)?(h=W.toggledIcon)==null?void 0:h.iconType:T;return W.isToggled?O:T}};
_.d.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Jq.Object.defineProperties(UA.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W={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$12384_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var O=W.renderer;var b=W.element;var T=W.toggled;var L=W.onTapCallback;var h=W.commandClientArgs;var Z=W.overrides;var a=W.forceIcon;var m=W.forceModernIconButton;var w=W.forceDisabled;var A=W.useAnimatedText;var X=W.animatedTextProps;W=pa8(O,T);a=!O.defaultIcon||!a&&O.defaultText?O.defaultIcon?"leading":void 0:m?"icon-only":"icon-only-40";a==="icon-only-40"&&(W.type="text");var l;m=Object;var p=m.assign,K;a:switch((K=
O.style)==null?void 0:K.styleType){case "STYLE_COMPACT_GRAY":K={size:"S"};break a;default:K={size:"M"}}var k=!!T;var r=(r=T&&O.toggledText||O.defaultText)?_.sz(r):void 0;A?(A=_.NX(T&&O.toggledText||O.defaultText))&&X&&!isNaN(Number(X.numberValue))?(X.numberText=A,T&&(X.numberValue+=1),A=X):A=void 0:A=void 0;var q,f,M,V;var jQ=(X=((f=T?O.toggledAccessibilityData||((jQ=O.toggledText)==null?void 0:jQ.accessibility):O.accessibilityData||((q=O.defaultText)==null?void 0:q.accessibility))==null?void 0:(M=
f.accessibilityData)==null?void 0:M.label)||((V=O.accessibility)==null?void 0:V.label))?X:_.NX(T&&O.toggledText||O.defaultText);w=w===void 0?O.isDisabled:w;b=P6X(O,T,L,b,h);T=eze(O,T);T!=null&&T.length?(T=_.Cb({innertubeCommand:Xle(T),forceNewState:!0}),T=qq(T)?T:void 0):T=void 0;O=p.call(m,{},W,K,{iconPosition:a},Z,{focused:!1,toggled:k,toggleable:!0,formattedButtonText:r,animatedTextProps:A,accessibilityLabel:jQ,disabled:w,onTap:b,aTagConfig:T},qcQ((l=O.colorData)==null?void 0:l.basicColorPaletteData));
O.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(O.type="filled");return O}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.getInnertubeIcon();if(W)return _.Z6(W)}}});
UA.prototype.resetAnimation=UA.prototype.resetAnimation;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],UA.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],UA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],UA.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],UA.prototype,"isPressed",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"forceIconButton",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"forceIconOnly",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"forceModernIconButton",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"alignByText",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"overrides",void 0);
_.t([_.C(),_.N("design:type",Boolean)],UA.prototype,"disabled",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"isShorts",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"buttonTooltipPosition",void 0);_.t([_.C(),_.N("design:type",Object)],UA.prototype,"animatedText",void 0);_.t([_.C(),_.N("design:type",String)],UA.prototype,"textNumberValue",void 0);_.t([_.C({computed:"computeTooltip(data, data.isToggled)"}),_.N("design:type",Object)],UA.prototype,"tooltip",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UA.prototype,"resetAnimation",null);_.t([_.x("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.N("design:type",Object),_.N("design:paramtypes",[])],UA.prototype,"computedButtonShape",null);_.t([_.x("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],UA.prototype,"computedIcon",null);
UA=_.t([_.G({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],UA);gpv&&_.H(UA,"ytd-toggle-button-renderer",vpq,{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var sx=_.J1(function(W){function O(w){var A;return _.I(function(X){if(X.nextAddress==1)return(A=!KEO(w,a())||!a().enabled)?X.jumpTo(2):_.Y(X,kr2(),3);X.nextAddress!=2&&(A=X.yieldResult);if(A)return X.return();b();setTimeout(function(){Z(!1)},1500);
_.aD(X)})}
function b(){setTimeout(function(){Z(!0);var w;(w=T.lottieEl)==null||w.goToAndPlay(0)},150)}
var T=_.I4(),L=_.S(_.wu(!1,void 0,"JJXzp")),h=L.next().value,Z=L.next().value,a=_.Me(W.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.kX(function(){var w,A;((w=W.settings)==null?void 0:(A=w.call(W))==null?void 0:A.uniqueId)==="this is not intended behavior"&&_.z5(new _.pu("Smartimation Settings is undefined"))});
_.kb(function(){a().experimentEnabled&&(a().enabled?vph(O):(Z(!1),gpe(O)),_.so(function(){gpe(O)}))});
_.kb(function(){a().timings.join("");a().experimentEnabled&&(opQ(a()),_.so(function(){Qfi(a())}))});
var m=_.Pj(function(){var w=T,A=a().uniqueId+"-border",X,l;var p="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((l=(X=_.iq().resolve(_.OT(_.t4)))==null?void 0:X())!=null&&l?"dark":"light")+"_v2.json";return{animationRef:w,animationConfig:{name:A,autoplay:!1,loop:!1,path:p}}},void 0,"tgykab");
L={};return _.E("yt-smartimation",{class:_.YS(W.className,"smartimation",(L["smartimation--experiment-enabled"]=function(){return a().experimentEnabled},L["smartimation--active-border"]=h,L["smartimation--enable-masking"]=sfT(),L))},_.E(_.U,{cond:function(){return a().experimentEnabled},
then:function(){return _.E("div",{class:"smartimation__border"},_.E(_.E1,{className:"smartimation__border-gradient",data:m,animationName:function(){return m().animationConfig.name}}))}}),_.E("div",{class:"smartimation__content"},W.children))},"x");
sx.idomCompat=!0;_.O1(sx,"yt-smartimation",{props:{className:_.te,settings:_.te}});var ld=function(){var W=_.n.apply(this,arguments)||this;W.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};W.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};W.shouldEnableSmartimation=!1;return W};
_.R(ld,_.n);ld.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ld.prototype.onDataChanged=function(){var W,O;this.shouldEnableSmartimation=(((W=this.data)==null?void 0:(O=W.timedAnimationData)==null?void 0:O.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
ld.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var W=_.P(this.data.likeButton,_.BX),O=_.P(this.data.dislikeButton,_.BX);return!!((W==null?0:W.isToggled)||(O==null?0:O.isToggled))};
ld.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]]"}}}}}};
_.Jq.Object.defineProperties(ld.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,O,b=((W=this.data)==null?void 0:(O=W.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"like-dislike",timings:b,enabled:this.shouldEnableSmartimation,experimentEnabled:b.length>0}}}});
ld.prototype.onDataChanged=ld.prototype.onDataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ld.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ld.prototype,"likeButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],ld.prototype,"dislikeButtonOverride",void 0);
_.t([_.x("shouldEnableSmartimation"),_.N("design:type",Object),_.N("design:paramtypes",[])],ld.prototype,"smartimationSettings",null);_.t([_.m5("data"),_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ld.prototype,"onDataChanged",null);ld=_.t([_.G({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],ld);
_.H(ld,"ytd-segmented-like-dislike-button-renderer",function(){if(Rzv!==void 0)return Rzv;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Rzv=W},{mode:1});var QfS;var krN;(krN=document.body)==null||krN.setAttribute("rounded-container","");var sf$={};sf$.YtToggleButtonBehavior=[_.WP.YtActionHandlerBehavior,AW.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 W=this.data.isToggled;if(!this.isModal_(W)){if(!this.data.preventAutoToggle){this.toggle();var O={toggled:this.data.isToggled,actions:{}};O.actions[this.buttonIcon]=this.data.isToggled;_.bX(this.hostElement,"yt-toggle-button",O)}O=this.data.defaultServiceEndpoint||null;var b=this.data.toggledServiceEndpoint||null;if(O&&b||O&&this.data.preventAutoToggle)W=W?b:O,O=this.disableCommandHandlerOverride,_.e("killswitch_toggle_button_behavior_resolve_command")||O?_.da(this.hostElement,
[W]):_.mw(W,this.hostElement),_.bX(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:W})}},
stateChanged_:function(){var W=this.data;if(W){var O=W.isToggled;this._setEndpoint(this.computeEndpoint_(W));this._setServiceEndpoint(this.computeServiceEndpoint_(W));this._setButtonIcon(this.computeButtonIcon_(W,O));this._setButtonText(this.computeButtonText_(W,O));this._setButtonAccessibility(this.computeAccessibility_(W,O));this._setButtonTooltip(this.computeTooltip_(W,O));this._setButtonClass(this.computeButtonClass_(W,O));this._setIconPositionType(this.computeIconPositionType_(W));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=O):this.elements_.button.setAttribute("aria-pressed",O));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=O)}},
shouldSetIconActiveState_:function(){return _.e("kevlar_system_icons")},
toggle:function(W){this.set("data.isToggled",W!==void 0?W:!this.data.isToggled);_.e("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(W){if(W){var O,b;return!!((O=this.data)==null?0:(b=O.toggledServiceEndpoint)==null?0:b.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(W){return W&&W.defaultNavigationEndpoint||null},
computeButtonIcon_:function(W,O){var b=W&&W.defaultIcon?_.Z6(W.defaultIcon.iconType):null;W=W&&W.toggledIcon?_.Z6(W.toggledIcon.iconType):b;return O?W:b},
handleUpdateToggleButtonStateCommand_:function(W){W=W.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&this.toggle(W.toggled)},
computeButtonText_:function(W,O){return W?O&&W.toggledText||W.defaultText||null:null},
computeAccessibility_:function(W,O){return W?(O?this.get("toggledAccessibilityData.accessibilityData",W):this.get("accessibilityData.accessibilityData",W))||W.accessibility||null:null},
computeTooltip_:function(W,O){return W?O&&W.toggledTooltip||W.defaultTooltip||null:null},
computeButtonClass_:function(W,O){if(!W)return"";var b="",T=W.toggledStyle||W.style;if(O=O?T:W.style){O.styleType&&(O=O.styleType);try{b+=O.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.CB(L,O,typeof O),_.z5(L)}}if(W=W.size){W.sizeType&&(W=W.sizeType);try{b+=W.toLowerCase().replace(/_/g,"-")+" "}catch(L){_.CB(L,W,typeof W),_.z5(L)}}return b.trim()},
computeIconPositionType_:function(W){return W&&W.iconPosition||null},
computeServiceEndpoint_:function(W){var O=W&&W.serviceEndpoint,b=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return O?O:b&&W.command?W.command:null},
handleUpdateToggleButtonTextAction_:function(W){W=W.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==W.buttonId&&(this.set("data.defaultText",W.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",W.toggledText),this.notifyPath("data.toggledText"))}}];_.Bs("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Bf$=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live"),eU=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.roundedContainer=!0;return W};
_.R(eU,_.n);eU.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
eU.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var W=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var O={toggled:!!this.data.isToggled,actions:{}};O.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var b,T;O.actions.playlistId=(b=this.data.defaultServiceEndpoint)==null?void 0:(T=b.playlistEditEndpoint)==null?void 0:T.playlistId;_.bX(this.hostElement,"yt-toggle-button",O)}(W=W?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(W)}};
eU.prototype.onYtNavigate=function(W){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);O&&(W.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(O))};
_.Jq.Object.defineProperties(eU,{template:{configurable:!0,enumerable:!0,get:function(){if(QfS===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);QfS=W}W=QfS;return W}}});
eU.prototype.onYtNavigate=eU.prototype.onYtNavigate;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],eU.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],eU.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(sf$.YtToggleButtonBehavior),_.N("design:type",Object)],eU.prototype,"ytToggleButtonBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],eU.prototype,"data",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],eU.prototype,"showTooltips",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],eU.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],eU.prototype,"roundedContainer",void 0);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eU.prototype,"onYtNavigate",null);
eU=_.t([_.G({is:"ytd-toggle-button-renderer",disableElementRegistration:Bf$})],eU);var rK1;_.P$=new _.MV("PANEL_CONTROLLER_TOKEN");_.p1=new _.MV("SHEET_CONTROLLER_TOKEN");_.RC=new _.MV("DIALOG_CONTROLLER_TOKEN");rK1=new _.MV("DIALOG_CONTAINER_TOKEN");var fW8=_.EO("DOWNLOAD",{},"Download"),Gri=_.EO("DOWNLOADING",{},"Downloading"),HCT=_.EO("DOWNLOADED",{},"Downloaded"),tte=_.EO("RETRY",{},"Retry");var VtP=[],NfX=!1;var DM1=_.J1(function(W){var O=iL1,b=function(){return""},T=FE2(W.data),L=yKq(W.data),h=Wb8(W.data),Z=OLE(W.data);
O=function(){var a=W.data(),m=qsQ(a,T(),L(),h(),Z()),w=!!a.videoId,A=m.text;return{title:w?A:void 0,tooltip:w?void 0:A,accessibilityText:A,onTap:m.onTap,iconName:m.iconType,style:a.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:m.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:a.buttonSize}};
b={};b=_.YS("ytDownloadButtonViewModelHost",(b.ytDownloadButtonViewModelIsHidden=function(){var a=W.data(),m=Z();return a.playlistId||m()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||m()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},b));
return _.E("download-button-view-model",{class:b},_.E(_.DO,{data:O}))},"y");
DM1.idomCompat=!0;var zz9=_.J1(function(W){var O=W.backgroundLottieRef;var b=W.foregroundLottieRef;var T=W.children;var L=W.wrapperClass;var h=W.disableAnimation;W=function(){return(_.e("web_animated_actions")||_.e("web_animated_actions_v2"))&&!(h==null?0:h())};
return _.E("yt-animated-action",{class:_.YS("animated-action__container",L)},_.E("div",{class:"animated-action__content-with-background"},_.E(_.U,{cond:W,then:function(){return _.E(xM5,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:O==null?void 0:O(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(bLX()?"dark":"light")+"_v5.json"}}}})}}),T),_.E(_.U,{cond:W,
then:function(){return _.E(xM5,{lottiePlayerProps:function(){return{animationRef:b==null?void 0:b(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(bLX()?"dark":"light")+"_v4.json"}}}})}}))},"z");
zz9.idomCompat=!0;var xM5=_.J1(function(W){var O=W.wrapperClass;var b=W.lottieClass;var T=W.lottiePlayerProps;return _.E("div",{class:_.YS("animated-action__lottie",O),"aria-hidden":"true"},_.E(_.E1,{className:b,data:T,animationName:function(){return T().animationConfig.name}}))},"A");var j01={isOpen:!1};var Lbe={isAllowed:!1};var hnQ={errorMessage:"",title:"",privacy:"",isDisabled:!0};var ZL8={isOpen:!1};var aoQ={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var C65={response:void 0};var Y7P=function(W,O){W=W===void 0?C65:W;switch(O.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},W,{response:O.payload});default:return W}};var qs5={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var EW2=function(W,O){W=W===void 0?qs5:W;switch(O.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},W,{nextDisabled:O.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},W,{nextCommand:O.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},W,{footerSubmissionData:O.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},W,{isImpersonationValid:O.payload});default:return W}};var np$={reportFormData:void 0,reportDetailsFormData:void 0};var w8q=function(W,O){W=W===void 0?np$:W;switch(O.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportFormData:O.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},W,{reportDetailsFormData:O.payload});default:return W}};var fWL=void 0;_.e("mweb_enable_redux_store_on_demand")||(fWL=new MX(Al2()));var GrS=_.J1(function(W){W=_.um(W,{themeOverride:void 0,animationRef:{}});var O=W.animatedIconType,b=W.active,T=W.themeOverride,L=W.animationRef;W=W.staticIconFn;var h=_.S(_.wu(void 0,void 0,"P5a72b")),Z=h.next().value,a=h.next().value,m=function(){a:{var r=O();var q=T==null?void 0:T();var f;q=(q==null?void 0:q.useDarkTheme)||((f=_.iq().resolve(_.OT(_.t4)))==null?void 0:f());switch(r){case "LIKE":fWL||(fWL=new MX(Al2()));r=(r=KsX(fWL.getState()))&&r.animationLightUrl&&r.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:q?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:q?r.animationDarkUrl:r.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0}:void 0;if(r){q=r;break a}q="animated_like_icon_"+(q?"dark_v4":"light_v4");q={lottiePlayerProps:{animationConfig:{name:q,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+q+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":q={lottiePlayerProps:{animationConfig:{name:q?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(q?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}q=void 0}return q},w=function(){var r,q;
return(q=(r=m())==null?void 0:r.lottiePlayerProps.animationConfig.name)!=null?q:""},A=function(){if(m()){var r=m().lottiePlayerProps.animationConfig.path;
return mR.get(r)||Z()}};
h=_.S(_.wu(!1,void 0,"h6xR3c"));var X=h.next().value;h=h.next().value;var l=U_1(h),p=function(){var r=m(),q,f,M;return(M=r==null?void 0:(q=r.lottiePlayerProps.animationConfig)==null?void 0:(f=q.rendererSettings)==null?void 0:f.className)!=null?M:""},K=void 0,k=void 0;
_.kb(function(){var r=m(),q=w(),f=A(),M=X(),V=b();if(r&&(k!==q&&(k=q,K=V,q=L(),l.animationConfig=r.lottiePlayerProps.animationConfig,l.animationRef=q,f&&(l.animationConfig.animationData=f,l.animationConfig.path=void 0),q=r.lottiePlayerProps.animationConfig.path,!mR.get(q)&&r.lazyLoad&&q&&X8T(q,a)),!(M||r.lazyLoad&&!f))){if(f=!L().lottieEl)V?(M=r.totalFrames,l.animationConfig.initialSegment=[M-1,M]):l.animationConfig.initialSegment=void 0;if(K!==V&&!f)if(f=L(),V){var jQ;(jQ=f.lottieEl)==null||jQ.playSegments([0,
r.totalFrames],!0)}else{var y;(y=f.lottieEl)==null||y.playSegments([0,1],!0)}K=V}});
return _.E("animated-icon",{class:"ytAnimatedIconHost"},_.E(_.U,{cond:function(){var r,q;return!((r=m())==null||!r.lottiePlayerProps.animationConfig.path||((q=m())==null?0:q.lazyLoad)&&!A()||X())},
then:function(){return _.E(_.E1,{data:l,animationName:w,className:p,animationRef:L})},
else:W}))},"B");_.K1=_.J1(function(W){var O=_.uy(),b=_.uy(),T=_.uy(),L=_.I4(),h=_.I4(),Z=_.I4(),a=_.wt(mMX,function(){return W.data().stateEntityStoreKey}),m=_.wt(Ys8,function(){var h9,I7;
return(I7=(h9=W.data().notificationStateEntityStoreKeys)==null?void 0:h9.subsNotificationStateKey)!=null?I7:""}),w=function(){return!W.data().enableSubscribeButtonPostClickAnimation},A=_.S(_.wu(0,void 0,"WIh5Qe")),X=A.next().value,l=A.next().value;
A=_.S(_.wu(0,void 0,"DLe07"));var p=A.next().value,K=A.next().value;A=_.S(_.wu(!1,void 0,"pPeKsd"));var k=A.next().value,r=A.next().value;A=_.S(_.wu(!1,void 0,"SgCom"));var q=A.next().value,f=A.next().value;A=_.S(_.wu(!1,void 0,"SnaGE"));var M=A.next().value,V=A.next().value,jQ;A=_.S(_.wu(!1,void 0,"mZPNLe"));var y=A.next().value,d8=A.next().value,pE=function(){f(!0);_.Xg(_.sF,function(){f(!1)},1500)};
_.kb(function(){var h9=q();Eo(function(){h9&&!w()&&a()&&s08(L,h,Z)})});
_.kb(function(){var h9=a();Eo(function(){if(!w()&&h9){var I7;((I7=W.animateWidth)==null?0:I7.call(W))&&kQe(O.value,!!h9.subscribed,X(),p());var T1,Y$;((T1=jQ)==null?0:T1.subscribed)||!h9.subscribed||h9.key!==((Y$=jQ)==null?void 0:Y$.key)||pE();jQ=h9}})});
A=_.Pj(function(){var h9,I7,T1,Y$=W.data(),aR=!((h9=a())==null||!h9.subscribed);h9=!((I7=W.isOverlay)==null||!I7.call(W));I7=k()?O.value:void 0;var f0=(T1=m())==null?void 0:T1.state;T1=y();Q0X(Y$,f0);return Pg1({model:Y$,subscribed:aR,isOverlay:h9,element:I7,notificationState:f0,disableTextEllipsis:!0,focused:T1})},void 0,"vnnmge");
var Qh=function(){var h9;if(!w()&&((h9=W.animateWidth)==null?0:h9.call(W))&&(b==null?0:b.value)&&(T==null?0:T.value)&&!M()){h9=a();var I7=_.S((h9==null?0:h9.subscribed)?[b,T]:[T,b]),T1=I7.next().value;I7=I7.next().value;T1=Math.ceil(T1.value.getBoundingClientRect().width);I7=Math.ceil(I7.value.getBoundingClientRect().width);l(T1);K(I7);kQe(O.value,!(h9==null||!h9.subscribed),T1,I7);V(!0)}},KE=_.XL(function(h9){Qh();
var I7=a();I7&&(h9.detail.endpoint.subscribeEndpoint||h9.detail.endpoint.unsubscribeEndpoint)&&RnX(O.value,!I7.subscribed,I7)}),fE=function(){var h9=_.iq().resolve(_.OT(_.bD));
h9&&d8(h9.isKeyBoardInUse())},r8=function(){d8(!1)};
_.MJ("yt-player-subscribe",function(h9){var I7=a();I7&&h9===W.data().channelId&&RnX(O.value,!0,I7)});
_.MJ("yt-player-unsubscribe",function(h9){var I7=a();I7&&h9===W.data().channelId&&RnX(O.value,!1,I7)});
_.MJ("yt-update-subscribe-button-action",function(h9){h9=_.P(h9,pkU);var I7=a();I7&&h9&&h9.channelId===W.data().channelId&&RnX(O.value,!!h9.subscribed,I7)});
_.kX(function(){O.value&&(O.value.addEventListener("focusin",fE),O.value.addEventListener("focusout",r8));var h9=_.KB(_.sF,function(){Qh()});
r(!0);_.so(function(){_.sF.cancelJob(h9);O.value&&(O.value.removeEventListener("focusin",fE),O.value.removeEventListener("focusout",r8))})});
var nE=function(){var h9,I7,T1;if(T1=!((h9=a())==null||!h9.subscribed))h9=!!W.data().disableNotificationBell,T1=(I7=m())==null?void 0:I7.state,T1=!h9&&!!T1;return T1},tX=function(){var h9;
return!((h9=a())==null?0:h9.subscribed)},yh=function(){var h9,I7;
if(I7=tX()){I7=!!W.data().disableNotificationBell;var T1=(h9=m())==null?void 0:h9.state;I7=!I7&&!!T1}return I7},Gw={},KH={};
return _.E("yt-subscribe-button-view-model",{class:_.YS(W.className,"yt-subscribe-button-view-model-wiz",(Gw["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var h9,I7;return!((h9=a())==null||!h9.subscribed)&&((I7=W.animateWidth)==null?void 0:I7.call(W))&&q()},Gw["yt-subscribe-button-view-model-wiz--hidden"]=function(){var h9;
return!((h9=a())==null?0:h9.subscribed)&&W.data().hideWhenUnsubscribed},Gw)),
el:O,"on:yt-service-request-sent":KE},_.E(zz9,{backgroundLottieRef:L,foregroundLottieRef:h,wrapperClass:_.YS("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(KH["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var h9;return((h9=W.animateWidth)==null?void 0:h9.call(W))&&q()},KH["yt-subscribe-button-view-model-wiz__static-width"]=function(){var h9;
return!((h9=W.animateWidth)==null?0:h9.call(W))},KH)),
disableAnimation:w},_.E("div",{el:b,class:"yt-subscribe-button-view-model-wiz__container"},_.E(cm,{data:A,icon:function(){return _.E(_.U,{cond:nE,then:function(){var h9=function(){var I7;return p8e((I7=m())==null?void 0:I7.state)};
return _.E(_.U,{cond:function(){return w()||h9()!=="NOTIFICATIONS_NONE"},
then:function(){return _.E(_.Ps,{icon:h9})},
else:function(){return _.E(GrS,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:Z})}})}})},
secondaryIconName:function(){return nE()?"EXPAND":void 0}}))),_.E("div",{el:T,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.E(_.U,{cond:function(){var h9;return((h9=W.animateWidth)==null?void 0:h9.call(W))&&!w()&&!M()},
then:function(){return _.E(cm,{data:_.Pj(function(){var h9;return Pg1({model:W.data(),subscribed:tX(),isOverlay:!((h9=W.isOverlay)==null||!h9.call(W)),element:O.value,disableTextEllipsis:!0})},void 0,"qRN0Cf"),
iconName:function(){var h9;return yh()?p8e((h9=m())==null?void 0:h9.state):void 0},
secondaryIconName:function(){return yh()?"EXPAND":void 0}})}})))},"C");
_.K1.idomCompat=!0;var BsE=new _.MV("RENDERER_STAMPER_OPTIONS_TOKEN");var Pm;_.ek=new Xhn;Pm=new Map;var uR8="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),clh=["notificationTextRenderer","notificationMultiActionRenderer"],Jlq="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
MA8=foX(function(W){return _.ru(W==null?void 0:W.targetId)}).useUpdatableData;var NsX=0;_.R4.debugName="EjJbCe";var HC$=_.J1(function(W){var O=W.data;var b=_.wt(mMX,function(){return O().subscriptionStateEntityKey});
return _.E(_.U,{cond:function(){var T=O(),L=b();return!T.hideWhenUnsubscribed||(L==null?0:L.subscribed)?_.P(O().button,_.Kp):void 0},
then:function(T){return _.E("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.E(_.DO,{data:T,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var Wv8=_.lw({buttonViewModel:_.DO,subscribeButtonViewModel:_.K1,downloadButtonViewModel:DM1,toggleButtonViewModel:_.gt,subscribePlusButtonViewModel:HC$});_.bO(iyP);var ttv=_.J1(function(W){return _.E(_.R4,{data:function(){return W.actionRow().actions}},{buttonViewModel:function(O){var b=O.data;
return _.E(v$,{isRow:W.isRow,isIconOnlyButton:function(){return by2(b())},
useIntrinsicWidth:W.useIntrinsicWidth},_.E(_.DO,{data:b}))},
subscribeButtonViewModel:function(O){return _.E(v$,{isRow:W.isRow},_.E(_.K1,{data:O.data,isOverlay:!1,animateWidth:function(){return!W.isRow()}}))},
downloadButtonViewModel:function(O){var b=O.data;return _.E(v$,{isRow:W.isRow,isIconOnlyButton:function(){return!!b().playlistId}},_.E(DM1,{data:b}))},
toggleButtonViewModel:function(O){var b=O.data;return _.E(v$,{isRow:W.isRow,isIconOnlyButton:function(){var T=b();return by2(_.P(T.isToggled?T.toggledButtonViewModel:T.defaultButtonViewModel,_.Kp))}},_.E(_.gt,{data:b}))},
subscribePlusButtonViewModel:function(O){return _.E(v$,{isRow:W.isRow},_.E(HC$,{data:O.data}))}})},"E"),v$=_.J1(function(W){var O={};
return _.E("div",{class:_.YS("yt-flexible-actions-view-model-wiz__action",(O["yt-flexible-actions-view-model-wiz__action--row-action"]=W.isRow,O["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=W.useIntrinsicWidth,O["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,O["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=W.isIconOnlyButton,O))},W.children)},"F"),$Mw=_.J1(function(W){var O=function(){var T;
return((T=W.layout)==null?void 0:T.call(W))===1},b={};
return _.E("yt-flexible-actions-view-model",{class:_.YS("yt-flexible-actions-view-model-wiz",W.className,(b["yt-flexible-actions-view-model-wiz--inline"]=function(){return!O()},b["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return W.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},b))},_.E(_.pv,{each:function(){return W.data().actionsRows||[]}},function(T){return _.E(_.U,{cond:O,
then:function(){return _.E("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.E(ttv,{actionRow:T,isRow:O,useIntrinsicWidth:function(){return!!W.data().respectActionIntrinsicWidth}}))},
else:function(){return _.E(ttv,{actionRow:T,isRow:O})}})}))},"G"),Vtz=_.e("web_enable_sink_yt_flexible_actions_view_model")?$Mw:iyP,gT=_.e("web_enable_sink_yt_flexible_actions_view_model")?$Mw:_.AP(iyP);
$Mw.idomCompat=!0;_.O1(gT,"yt-flexible-actions-view-model",{props:{data:_.te,layout:_.te,justifyContentOverride:_.te,className:_.te}});_.bO(jgO);var Nf9,SGi;Nf9=_.J1(function(W){var O=_.wt(xS,function(){var L;return(L=W.data().dislikeEntityKey)!=null?L:""}),b=_.Pj(function(){var L=O();
return L?L.likeStatus==="DISLIKE":_.P(W.data().toggleButtonViewModel,_.vm).isToggled},void 0,"D8oIFb"),T=_.Pj(function(){return Object.assign({},_.P(W.data().toggleButtonViewModel,_.vm),{isToggled:b()})},void 0,"shaCXe");
return _.E("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.E(_.gt,{data:T,buttonShapeOverrides:W.buttonShapeOverrideables,onToggle:function(L){var h=O();h&&L!==(h.likeStatus==="DISLIKE")&&h.key&&_.Ne(_.o4("likeStatusEntity",h.key,{likeStatus:L?"DISLIKE":"INDIFFERENT",hadUserInteraction:L}))}}))},"H");
SGi=_.e("web_enable_sink_dislike_button_view_model")?Nf9:jgO;_.oC=_.e("web_enable_sink_dislike_button_view_model")?Nf9:_.AP(jgO);Nf9.idomCompat=!0;_.bO(Lv8);var MtS,h11;MtS=_.J1(function(W){var O=_.e("web_supports_animations_api"),b=FF(function(l){var p=w(),K,k=(p==null?void 0:(K=p.likeCountIfIndifferent)==null?void 0:K.content)!==l.numberText;if(a()||!k)return l;var r,q;return{numberText:(p==null?void 0:(r=p.likeCountIfIndifferent)==null?void 0:r.content)||"",numberValue:Number((q=p==null?void 0:p.likeCountIfIndifferentNumber)!=null?q:0),heightPx:36,shouldAnimate:!!p}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),T=FF(function(l){var p=w(),K,k=(p==null?void 0:(K=p.likeCountIfIndifferent)==null?void 0:K.content)!==l.numberText;if(a()||!k)return l;var r,q;return{numberText:(p==null?void 0:(r=p.likeCountIfLiked)==null?void 0:r.content)||"",numberValue:Number((q=p==null?void 0:p.likeCountIfLikedNumber)!=null?q:0),heightPx:36,shouldAnimate:!!p}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),L=_.S(_.wu(void 0,void 0,"T6jMHc")),h=L.next().value,Z=L.next().value,a=h,m=_.wt(xS,function(){var l,p;return(p=(l=W.data())==null?void 0:l.likeStatusEntityKey)!=null?p:""}),w=_.wt($b2,function(){var l,p;
return((l=W.likeCountEntity)==null?void 0:(p=l.call(W))==null?void 0:p.key)||""}),A=_.Pj(function(){var l;
return((l=m())==null?void 0:l.likeStatus)==="LIKE"},void 0,"WxQBcd"),X=function(){var l;
return O&&!((l=W.likeCountEntity)==null||!l.call(W))};
return _.E("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.E(_.gt,{data:function(){var l=Object,p=l.assign,K;var k=_.P((K=W.data())==null?void 0:K.toggleButtonViewModel,_.vm);return p.call(l,{},k||{},{isToggled:A()})},
buttonShapeOverrides:W.buttonShapeOverrideables,animatedTextPropsDefault:function(){return X()?b():void 0},
animatedTextPropsToggled:function(){return X()?T():void 0},
onToggle:function(l){dSE(l,m(),a(),Z)},
style:function(){var l;return((l=W.disableIconAnimation)==null?0:l.call(W))?void 0:{animateIcon:"true"}}}))},"I");
h11=_.e("web_enable_sink_like_button_view_model")?MtS:Lv8;_.QJ=_.e("web_enable_sink_like_button_view_model")?MtS:_.AP(Lv8);_.bO(ZyX);var uAH=_.J1(function(W){var O=function(){return _.P(W.data().likeButtonViewModel,_.QU)},b=function(){var L;
return((L=O())==null?void 0:L.likeStatusEntityKey)||""},T=_.Pj(function(){var L,h;
var Z=(h=_.wt(xS,b)())!=null?h:(L=O())==null?void 0:L.likeStatusEntity;L=W.data();var a;L=(L==null?void 0:(a=L.timedAnimationData)==null?void 0:a.animationTiming)||[];return{uniqueId:"like-dislike",timings:L,enabled:(Z==null?void 0:Z.likeStatus)==="INDIFFERENT"&&L.length>0,experimentEnabled:L.length>0}},void 0,"e1fsz");
return _.E("segmented-like-dislike-button-view-model",{class:_.YS("ytSegmentedLikeDislikeButtonViewModelHost",W.className),"button-renderer":!0},_.E(sx,{settings:T},_.E("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.E(_.U,{cond:O,then:function(L){return _.E(_.QJ,{data:L,likeCountEntity:function(){return W.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.E(_.U,{cond:function(){return _.P(W.data().dislikeButtonViewModel,_.kz)},
then:function(L){return _.E(_.oC,{data:L,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"J"),JKq=_.e("web_enable_sink_segmented_like_dislike_button_view_model")?uAH:ZyX;
uAH.idomCompat=!0;_.e("web_enable_sink_segmented_like_dislike_button_view_model")?_.O1(JKq,"segmented-like-dislike-button-view-model",{props:{data:_.te,className:_.te}}):_.Z3(JKq,"segmented-like-dislike-button-view-model",{propNames:["data"]});var wpi=0;_.O1(sge,"account-link-button-view-model",{props:{data:_.te,className:_.Ws,setMinWidth:_.Ws,forceIconOnly:_.Ws}});_.Bs("menuRenderer","menuRenderer","ytd-menu-renderer");
var cKL={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"}},
FEN=_.e("web_fix_missing_action_buttons")?100:200,kY=function(){var W=_.n.apply(this,arguments)||this;W.safeArea=!_.e("kevlar_flex_menu_safe_area_killswitch");W.tonalOverride=!1;W.threeDotSize="M";W.isOverlay=!1;W.useOverlayDark=!1;W.topLevelIconsOnly=!1;W.JSC$12528_lastWidth=0;W.maybeUpdateFlexibleMenu=function(){_.e("web_fix_missing_action_buttons")?requestAnimationFrame(W.maybeUpdateFlexibleMenuImpl):W.maybeUpdateFlexibleMenuImpl()};
W.maybeUpdateFlexibleMenuImpl=function(){var O;if((O=W.data)!=null&&O.flexibleItems){W.maybeFlushDebouncer();O=W.hostElement.clientWidth;var b=O>W.JSC$12528_lastWidth,T,L=((T=W.topLevelButtonsContainer)==null?void 0:T.scrollHeight)||0,h;T=((h=W.flexibleItemButtonsContainer)==null?void 0:h.scrollHeight)||0;h=W.hostElement.scrollHeight>Math.max(L,T)+8;b?(W.resetFlexibleItems(),W.JSC$12528_lastWidth=W.hostElement.clientWidth,W.maybeUpdateFlexibleMenu()):h&&(W.shrinkFlexibleMenu(),W.JSC$12528_lastWidth=
O)}};
W.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){W.onOverflowTap()},
iconPosition:"icon-only",style:W.isOverlay?W.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:W.threeDotSize,state:"active",accessibilityLabel:W.computeAccessibilityLabel(W.data)},W.threeDotButtonOverride)};
W.onOverflowTap=function(){if(W.data.fetchMenuCommand)_.iq().resolve(_.bq).resolveCommand(W.data.fetchMenuCommand,{form:{element:W.hostElement}});else if(W.data.isDisabled&&W.data.disabledCommand)_.mw(W.data.disabledCommand,W.hostElement);else{var O=W.createMenuRendererVe(),b={items:W.items};W.data.menuPopupAccessibility&&(b.menuPopupAccessibility=W.data.menuPopupAccessibility);W.data.footer&&(b.footer=W.data.footer);O={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:b},veData:O}};
_.iq().resolve(_.p1).openSheet({openPopupActionCommand:O},W.hostElement)}};
return W};
_.R(kY,_.n);_.d=kY.prototype;_.d.updateButtonOverrides=function(){if(!_.e("menu_renderer_label_update_upkillswitch")){var W=_.Q(this.hostElement).querySelector("yt-button-view-model");W&&(W.buttonOverrides=this.buttonOverrides)}};
_.d.computeHasItems=function(){var W;return((W=this.topLevelButtonData)==null?void 0:W.length)||this.hasFlexibleItems};
_.d.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.d.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Sl(this.hostElement,{"--ytd-menu-renderer-button-color":_.zF(this.data.iconColor)}))};
_.d.onStamperFinished=function(){this.JSC$12528_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.d.setupFlexibleMenu=function(){var W=this,O;(O=this.data)!=null&&O.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.JI(this.maybeUpdateFlexibleMenu,FEN,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){W.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))};
_.d.maybeFlushDebouncer=function(){if(_.e("web_replace_formatted_with_attributed_string")){var W;(W=this.topLevelButtons)==null||W.forEach(function(b){var T;(b=(T=b.getElementsByTagName("yt-attributed-string"))==null?void 0:T[0])&&ePP(b)});
var O;(O=this.flexibleItemButtons)==null||O.forEach(function(b){var T;(b=(T=b.getElementsByTagName("yt-attributed-string"))==null?void 0:T[0])&&ePP(b)})}};
_.d.resetFlexibleItems=function(){var W;if((W=this.data)!=null&&W.flexibleItems){_.e("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var O;this.flexAsTopLevelButtons=(O=this.data.flexibleItems)==null?void 0:O.map(function(b){return _.P(b,_.Nq7).topLevelButton});
_.e("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.d.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.d.shrinkFlexibleMenu=function(){var W;(W=this.flexAsTopLevelButtons)!=null&&W.length&&(this.flexAsTopLevelButtons=[].concat(_.PG(this.flexAsTopLevelButtons.slice(0,-1))))};
_.d.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:cKL,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:cKL,events:!0}}};
_.d.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.d.detached=function(){this.icon="yt-icons:more_vert"};
_.d.computeTopLevelButtonData=function(W){if(!W)return[];var O;W=(O=W==null?void 0:W.topLevelButtons)!=null?O:[];return _.PQ.unsafeClone([].concat(_.PG(W)))};
_.d.computeItems=function(W,O){if(!W)return[];var b=[];if(O){var T=(W.flexibleItems||[]).map(function(Z){return _.P(Z,_.Nq7)});
T=_.S(T);for(var L=T.next();!L.done;L=T.next())L=L.value,O.includes(L.topLevelButton)||(L=L.menuItem)&&b.push(L)}var h;W=(h=W==null?void 0:W.items)!=null?h:[];return[].concat(_.PG(b),_.PG(W))};
_.d.computeMenuActive=function(W,O){return W||O};
_.d.onPopupOpened=function(){this.overlayOpen=!0;_.bX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.d.onPopupClosed=function(){this.overlayOpen=!1;_.bX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.onPopupCanceled=function(){this.overlayOpen=!1;_.bX(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.d.computeAccessibilityLabel=function(W){return this.get("accessibility.accessibilityData.label",W)};
_.d.isHidden=function(W,O){return this.tonalOverride||!W?!0:W.fetchMenuCommand||W.isDisabled&&W.disabledCommand?!1:!(O==null?0:O.length)};
_.d.isModernOverflowHidden=function(W,O){return this.tonalOverride&&W?W.fetchMenuCommand?!1:!(O==null?0:O.length):!0};
_.d.createMenuRendererVe=function(){var W=this.data.trackingParams,O=_.Bb(),b=_.sk();return W&&O&&b?(W=_.Pi(W),b=_.gd(7591),_.e("combine_ve_grafts")?_.jn(_.A4(),b,W):_.fV(O,W,b),b):null};
_.Jq.Object.defineProperties(kY.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.flexAsTopLevelButtons)==null||!W.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
kY.prototype.onPopupCanceled=kY.prototype.onPopupCanceled;kY.prototype.onPopupClosed=kY.prototype.onPopupClosed;kY.prototype.onPopupOpened=kY.prototype.onPopupOpened;kY.prototype.tonalOverrideChanged=kY.prototype.tonalOverrideChanged;kY.prototype.resetFlexibleItems=kY.prototype.resetFlexibleItems;kY.prototype.setupFlexibleMenu=kY.prototype.setupFlexibleMenu;kY.prototype.iconButtonColorChanged=kY.prototype.iconButtonColorChanged;kY.prototype.updateButtonOverrides=kY.prototype.updateButtonOverrides;
_.t([_.D(_.tW),_.N("design:type",Object)],kY.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#button-shape"),_.N("design:type",dw)],kY.prototype,"buttonShape",void 0);_.t([_.El("#button"),_.N("design:type",Object)],kY.prototype,"button",void 0);
_.t([_.C(),_.N("design:type",Object)],kY.prototype,"data",void 0);_.t([_.C({computed:"computeTopLevelButtonData(data)"}),_.N("design:type",Array)],kY.prototype,"topLevelButtonData",void 0);_.t([_.C(),_.N("design:type",Array)],kY.prototype,"flexAsTopLevelButtons",void 0);_.t([_.C({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.N("design:type",Array)],kY.prototype,"items",void 0);_.t([_.C({value:"yt-icons:more_vert"}),_.N("design:type",String)],kY.prototype,"icon",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kY.prototype,"safeArea",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.N("design:type",Boolean)],kY.prototype,"menuActive",void 0);_.t([_.C(),_.N("design:type",Boolean)],kY.prototype,"menuFocused",void 0);_.t([_.C({value:"bottom"}),_.N("design:type",String)],kY.prototype,"buttonTooltipPosition",void 0);_.t([_.C(),_.N("design:type",Boolean)],kY.prototype,"overlayOpen",void 0);
_.t([_.C({value:!0}),_.N("design:type",Boolean)],kY.prototype,"forceIconButton",void 0);_.t([_.C(),_.N("design:type",Boolean)],kY.prototype,"styleActionButton",void 0);_.t([_.C(),_.N("design:type",Boolean)],kY.prototype,"disableTextTransformOnButtons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kY.prototype,"tonalOverride",void 0);_.t([_.C(),_.N("design:type",Object)],kY.prototype,"threeDotSize",void 0);
_.t([_.C(),_.N("design:type",Object)],kY.prototype,"threeDotButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],kY.prototype,"isOverlay",void 0);_.t([_.C(),_.N("design:type",Object)],kY.prototype,"useOverlayDark",void 0);_.t([_.C({computed:"computeButtonOverride(tonalOverride)"}),_.N("design:type",Object)],kY.prototype,"buttonOverride",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],kY.prototype,"hasCustomIconColor",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("flexAsTopLevelButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],kY.prototype,"hasFlexibleItems",null);_.t([_.C({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.N("design:type",Boolean)],kY.prototype,"hasItems",void 0);_.t([_.C(),_.N("design:type",Object)],kY.prototype,"topLevelIconsOnly",void 0);
_.t([_.m5("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"updateButtonOverrides",null);_.t([_.x("topLevelIconsOnly"),_.N("design:type",Object),_.N("design:paramtypes",[])],kY.prototype,"buttonOverrides",null);_.t([_.El("#top-level-buttons-computed"),_.N("design:type",HTMLElement)],kY.prototype,"topLevelButtonsContainer",void 0);_.t([_.wi(".top-level-buttons > *"),_.N("design:type",Array)],kY.prototype,"topLevelButtons",void 0);
_.t([_.El("#flexible-item-buttons"),_.N("design:type",HTMLElement)],kY.prototype,"flexibleItemButtonsContainer",void 0);_.t([_.wi("#flexible-item-buttons > *"),_.N("design:type",Array)],kY.prototype,"flexibleItemButtons",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"iconButtonColorChanged",null);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"setupFlexibleMenu",null);_.t([_.Ul("topLevelIconsOnly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"resetFlexibleItems",null);_.t([_.m5("tonalOverride"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"tonalOverrideChanged",null);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"onPopupOpened",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"onPopupClosed",null);_.t([_.ai("yt-popup-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kY.prototype,"onPopupCanceled",null);
_.H(kY,"ytd-menu-renderer",function(){if(EpL===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);EpL=W}W=EpL;return W},{mode:_.Lb("kevlar_poly_si_batch_j030")?1:2});var yK7;var WbL;_.NL=_.J1(function(W){var O=W.data;var b=function(){if(O().icon)a:{var T={iconName:O().icon};for(var L=_.iq().resolve(_.Ix),h=_.S([12,24]),Z=h.next();!Z.done;Z=h.next()){var a=Z.value;Z=Object.assign({},T,{iconStyle:"youtube_fill",iconSize:a});a=Object.assign({},T,{iconStyle:"youtube_outline",iconSize:a});if(L.resolveIcon(Z)){T=Z;break a}if(L.resolveIcon(a)){T=a;break a}}T=void 0}else T=void 0;return T};
W={};return _.E("badge-shape",{class:_.YS("badge-shape-wiz",function(){return DSP(O().type)},(W["badge-shape-wiz--overlay"]=function(){return O().isOverlay},W["badge-shape-wiz--ads-include-dot"]=function(){return O().adsIncludeDot},W["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(O().type){case 16:case 17:case 18:var T=!0;
break a;default:T=!1}return T},W["badge-shape-wiz--status-badge"]=function(){a:switch(O().type){case 11:case 12:case 13:case 14:case 15:var T=!0;
break a;default:T=!1}return T},W["badge-shape-wiz--no-text"]=function(){return!O().text},W["badge-shape-wiz--modern"]=function(){return O().modern},W)),
style:_.eE({"background-color":function(){var T;return(T=O().customColors)==null?void 0:T.backgroundColor}}),
role:function(){return O().accessibilityText?"img":void 0},
"aria-label":function(){return O().accessibilityText}},_.E(_.U,{cond:function(){return O().animation},
then:function(T){return _.E(_.E1,{className:"badge-shape-wiz__icon",data:T,animationName:function(){return T().animationConfig.name||""}})}}),_.E(_.U,{cond:function(){var T;
return b()&&!((T=O())==null?0:T.animation)},
then:function(){return _.E("div",{class:"badge-shape-wiz__icon"},_.E(C91,{data:function(){return b()}}))}}),_.E("div",{class:"badge-shape-wiz__text"},function(){var T;
return(T=O())==null?void 0:T.text}))},"K");
_.NL.idomCompat=!0;_.O1(_.NL,"badge-shape",{props:{data:_.te}});var sA=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.animated=_.e("animated_live_badge_icon");W.useBadgeShape=_.e("web_badge_shape_defrag");return W};
_.R(sA,_.n);_.d=sA.prototype;_.d.addTooltips=function(){for(var W=_.Q(this.hostElement).querySelectorAll(".badge"),O=0,b;b=W[O++];){var T=this.repeatElement.itemForElement(b);b=_.Q(b);b.lastChild&&b.lastChild.is==="tp-yt-paper-tooltip"&&b.removeChild(b.lastChild);if(T=T.metadataBadgeRenderer&&T.metadataBadgeRenderer.tooltip){var L=_.Je("tp-yt-paper-tooltip");(0,_.h1)(L).textContent=T;L.setAttribute("position","top");b.appendChild(L)}}};
_.d.badgesChanged=function(){var W=this;_.BH().parkOrScheduleJob(function(){W.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.d.standaloneRoundedBadgeChanged=function(){var W=this.useRoundedBadge?this.useRoundedBadge:void 0;W&&(this.useRoundedBadge=W)};
_.d.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.d.computeStyle=function(W){_.e("enable_html5_teal_ad_badge")&&W==="BADGE_STYLE_TYPE_AD"&&(W="badge-style-type-ad-alternate");_.e("kevlar_ytb_live_badges")&&W==="BADGE_STYLE_TYPE_LIVE_NOW"&&(W="badge-style-type-live-now-alternate");return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeRole=function(W){return this.computeAriaLabel(W)?"img":"status"};
_.d.computeAriaLabel=function(W){var O;return(W==null?void 0:(O=W.accessibilityData)==null?void 0:O.label)||(W==null?void 0:W.label)};
_.d.computeBadgeShape=function(W){var O;if(W){var b,T=B2h(W.style),L=rwq(W.style),h=W.label,Z=((b=W.accessibilityData)==null?void 0:b.label)||W.label;W=(O=W.icon)==null?void 0:O.iconType;O={type:T,brNzRatingBadgeType:L,text:h,accessibilityText:Z,icon:W!=="PREMIUM"?W:void 0}}else O={};return O};
_.d.updateComputedBadges=function(W,O,b){var T=this;(O=O?[O]:b?[b]:void 0)?this.computedBadges=O:this.computedBadges=W==null?void 0:W.filter(function(L){var h;if((h=L.metadataBadgeRenderer)==null?0:h.groups){h=!1;L=_.S(L.metadataBadgeRenderer.groups);for(var Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var a=void 0;h=h||((a=T.hiddenBadgeGroups)==null?void 0:a.includes(Z))}return!h}return!0})};
_.d.useFilledIcons=function(W){return _.e("kevlar_system_icons")&&(W==="AUDIO_BADGE"||W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE"||W==="SPONSORSHIP_STAR"||W==="PERSON_RADAR_FILLED"||W==="PERSON_RADAR")};
_.d.computeIcon=function(W){var O,b;W=W==null?void 0:(O=W.metadataBadgeRenderer)==null?void 0:(b=O.icon)==null?void 0:b.iconType;if(W!=="PREMIUM"&&W)return _.Z6(W)};
_.d.computeStandaloneBadge=function(W){var O;W=W==null?void 0:(O=W.icon)==null?void 0:O.iconType;return W==="PREMIUM_STANDALONE"||W==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
sA.prototype.hiddenBadgeGroupsChanged=sA.prototype.hiddenBadgeGroupsChanged;sA.prototype.standaloneBadgeChanged=sA.prototype.standaloneBadgeChanged;sA.prototype.standaloneRoundedBadgeChanged=sA.prototype.standaloneRoundedBadgeChanged;sA.prototype.badgesChanged=sA.prototype.badgesChanged;_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"hidden",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],sA.prototype,"componentBehavior",void 0);
_.t([_.C(),_.N("design:type",Array)],sA.prototype,"badges",void 0);_.t([_.C(),_.N("design:type",Object)],sA.prototype,"topStandaloneBadge",void 0);_.t([_.C(),_.N("design:type",Object)],sA.prototype,"bottomStandaloneBadge",void 0);_.t([_.C(),_.N("design:type",Object)],sA.prototype,"computedBadges",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"mediumFontAdBadge",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"useRoundedBadge",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"largeFontAdBadge",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"overlayAd",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"overlayPremium",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"noDotAdBadge",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"collectionTruncate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"isThumbnailBadge",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sA.prototype,"wrapBadges",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sA.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sA.prototype,"animated",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sA.prototype,"useBadgeShape",void 0);_.t([_.C({value:[]}),_.N("design:type",Array)],sA.prototype,"hiddenBadgeGroups",void 0);_.t([_.El("#repeat"),_.N("design:type",gi)],sA.prototype,"repeatElement",void 0);_.t([_.Ul("badges"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sA.prototype,"badgesChanged",null);
_.t([_.Ul("useRoundedBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sA.prototype,"standaloneRoundedBadgeChanged",null);_.t([_.Ul("topStandaloneBadge","bottomStandaloneBadge"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sA.prototype,"standaloneBadgeChanged",null);_.t([_.Ul("hiddenBadgeGroups"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sA.prototype,"hiddenBadgeGroupsChanged",null);
sA=_.t([_.G({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],sA);
var OLH=_.TH()(sA,"ytd-badge-supported-renderer",function(){if(WbL===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);WbL=W}W=WbL;return W},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Lb("kevlar_poly_si_batch_j053")?1:2});var B$=function(){var W=_.n.apply(this,arguments)||this;W.iconType="STAR";W.standardizeIconSize=_.e("kevlar_system_icons");W.mediaHoverOverlayInitialVisibility=_.e("enable_top_landscape_image_button_command_web");W.noBottomMargin=!1;W.thumbnailObjectFit="CONTAIN";W.thumbnailFitHeight=!0;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.R(B$,_.n);_.d=B$.prototype;
_.d.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"}}}};
_.d.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",B$.JSC$12540_DEFAULT_CLICK_LOCATION_BEHAVIOR,B$.JSC$12540_CLICK_LOCATION_ID_MAP))};
_.d.onTap=function(W){if(!_.e("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.d.onClick=function(W){if(_.e("use_on_click_for_desktop_display_ad"))this.onTapOrClick(W)};
_.d.onTapOrClick=function(W){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,W,!1)};
_.d.updateMediaBackgroundImage=function(){var W=this.get("data.image.thumbnail.thumbnails");W&&(W=_.bn(W,0))&&_.Sl(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+W+")"})};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var W=0;W<this.data.impressionEndpoints.length;W++){var O=this.data.impressionEndpoints[W];O.clickTrackingParams&&delete O.clickTrackingParams;_.iq().resolve(_.bq).resolveCommand(O,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var b;((b=this.data)==null?0:b.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.d.handleMuteAd=function(){};
_.d.attached=function(){var W=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jq.Object.defineProperties(B$.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.titleText)return"";var O;return _.EO("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((O=this.data)==null?void 0:O.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.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 W;return!((W=this.data)==null||!W.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"}}});
B$.prototype.onClick=B$.prototype.onClick;B$.prototype.onTap=B$.prototype.onTap;B$.prototype.dataChanged=B$.prototype.dataChanged;
B$.JSC$12540_CLICK_LOCATION_ID_MAP=_.e("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"]]);
B$.JSC$12540_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.e("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"}];_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.rn),_.N("design:type",Object)],B$.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],B$.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],B$.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],B$.prototype,"ytdActiveViewBehavior",void 0);_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],B$.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],B$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],B$.prototype,"clickCommand",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],B$.prototype,"miniMode",void 0);_.t([_.C(),_.N("design:type",String)],B$.prototype,"iconType",void 0);_.t([_.x("data.titleText"),_.N("design:type",String),_.N("design:paramtypes",[])],B$.prototype,"titleAriaLabel",null);
_.t([_.x("data.rating"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"getRating",null);_.t([_.x("data.price"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"getPrice",null);_.t([_.x("data.thirdLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"getThirdLine",null);_.t([_.x("data.fourthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"getFourthLine",null);
_.t([_.x("data.fifthLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"getFifthLine",null);_.t([_.x("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computeRatingHidden",null);_.t([_.x("getPrice"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computePriceHidden",null);_.t([_.x("getThirdLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computeThirdLineHidden",null);
_.t([_.x("getFourthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computeFourthLineHidden",null);_.t([_.x("getFifthLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computeFifthLineHidden",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.energyIcon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"hasEnergyIcon",null);
_.t([_.x("computePriceHidden","computeRatingHidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"computeSecondaryTextHidden",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],B$.prototype,"standardizeIconSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],B$.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],B$.prototype,"noBottomMargin",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.layout"),_.N("design:type",String),_.N("design:paramtypes",[])],B$.prototype,"layout",null);_.t([_.x("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],B$.prototype,"mediaThumbnailWidth",null);_.t([_.x("layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B$.prototype,"useRoundedBadge",null);_.t([_.C(),_.N("design:type",String)],B$.prototype,"thumbnailObjectFit",void 0);
_.t([_.C(),_.N("design:type",Object)],B$.prototype,"thumbnailFitHeight",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],B$.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B$.prototype,"onTap",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B$.prototype,"onClick",null);
B$=_.t([_.G({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],B$);
_.H(B$,"ytd-display-ad-renderer",function(){if(yK7!==void 0)return yK7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return yK7=W},{mode:1});var iLf;var bLn;var j0f;var xSQ=new Map;var TsH=!1;var rT=function(){var W=_.n.apply(this,arguments)||this;W.DEFAULT_TOOLTIP_OFFSET="10";W.TOOLTIP_OFFSET_NO_BANNER="-8";W.badges=null;W.noEndpoints=!1;W.wrapText=!1;W.forceVerified=!1;W.tooltipPosition="top";W.compactStyle=!1;W.height=0;W.lineHeight=0;return W};
_.R(rT,_.n);_.d=rT.prototype;_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.d.attached=function(){var W=this;this.observer=new MutationObserver(function(O,b){W.handleResized();b.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.d.detached=function(){this.observer&&this.observer.disconnect()};
_.d.logTooltipEvent=function(){_.e("kevlar_wiz_tooltip_event_killswitch")||TsH||(_.z1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),TsH=!0)};
_.d.handleWindowResized=function(){this.handleResized()};
_.d.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")))};
_.d.onHeightChanged=function(){if(this.verified){var W=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Cv("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=W:this.textContainerEl.style.marginRight=W}};
_.d.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Cv("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.d.handleResized=function(){var W=this;this.verified&&_.sF.addLowPriorityJob(function(){W.fitBackgroundToText();var O=getComputedStyle(W.hostElement).lineHeight;O&&(O=O.match(/\d+/))&&O.length&&(W.lineHeight=Number(O[0]));W.height=W.lineHeight&&!W.wrapText?W.lineHeight:W.textEl.offsetHeight})};
_.d.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var W=document.createRange(),O=_.Q(this.textEl).children;O.length>0?W.selectNodeContents(O[0]):W.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(W.getBoundingClientRect().width)+"px"}};
_.d.computeChannelBadgeStyle=function(W){var O;if((W==null?0:(O=W.runs)==null?0:O.length)&&W.runs[0].textColor)return"--ytd-badge-icon-color:"+_.zF(W.runs[0].textColor)+";"};
_.Jq.Object.defineProperties(rT.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"?_.VV(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var W=this.get("badges.0.metadataBadgeRenderer.tooltip");if(W)return W}return _.NX(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
rT.prototype.onLineHeightChanged=rT.prototype.onLineHeightChanged;rT.prototype.onHeightChanged=rT.prototype.onHeightChanged;rT.prototype.onChannelNameChanged=rT.prototype.onChannelNameChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],rT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"badges",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"channelName",void 0);
_.t([_.C(),_.N("design:type",Object)],rT.prototype,"noEndpoints",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"wrapText",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"forceVerified",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"tooltipPosition",void 0);_.t([_.C(),_.N("design:type",String)],rT.prototype,"tooltip",void 0);_.t([_.C(),_.N("design:type",Boolean)],rT.prototype,"hasChannelArt",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rT.prototype,"compactStyle",void 0);_.t([_.El("#text-container"),_.N("design:type",HTMLElement)],rT.prototype,"textContainerEl",void 0);_.t([_.El("#text"),_.N("design:type",Object)],rT.prototype,"textEl",void 0);_.t([_.El("#verified-tooltip"),_.N("design:type",HTMLElement)],rT.prototype,"verifiedTooltip",void 0);_.t([_.C(),_.N("design:type",Object)],rT.prototype,"height",void 0);
_.t([_.C(),_.N("design:type",Object)],rT.prototype,"lineHeight",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("badges","forceVerified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rT.prototype,"verified",null);_.t([_.x("badges","verified"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rT.prototype,"hideBadges",null);_.t([_.x("channelName"),_.N("design:type",Object),_.N("design:paramtypes",[])],rT.prototype,"formattedName",null);
_.t([_.x("badges","verified","formattedName"),_.N("design:type",String),_.N("design:paramtypes",[])],rT.prototype,"tooltipText",null);_.t([_.x("hasChannelArt"),_.N("design:type",String),_.N("design:paramtypes",[])],rT.prototype,"tooltipOffset",null);_.t([_.m5("channelName"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onChannelNameChanged",null);
_.t([_.m5("height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onHeightChanged",null);_.t([_.m5("lineHeight","height"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rT.prototype,"onLineHeightChanged",null);rT=_.t([_.G({is:"ytd-channel-name",disableElementRegistration:!0})],rT);
_.H(rT,"ytd-channel-name",function(){if(j0f!==void 0)return j0f;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return j0f=W},{mode:_.Lb("kevlar_poly_si_batch_j036")?1:2});var Ds=function(){var W=_.n.apply(this,arguments)||this;W.standardizeIconSize=_.e("kevlar_system_icons");W.enableModernCommentBadges=_.e("enable_modern_comment_badges");return W};
_.R(Ds,_.n);Ds.prototype.basicPaletteChanged=function(){var W;(W=this.data.color)!=null&&W.basicColorPaletteData&&_.kS(this.hostElement,this.data.color.basicColorPaletteData)};
Ds.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var W,O=this.get("basicColorPaletteData.backgroundColor",(W=this.data)==null?void 0:W.color),b;W=this.get("basicColorPaletteData.foregroundTitleColor",(b=this.data)==null?void 0:b.color);b={};O?(O=_.zF(O),b["--ytd-author-comment-badge-background-color"]=O):(b["--ytd-author-comment-badge-icon-background-color"]="transparent",b["--ytd-author-comment-badge-background-color"]="transparent");W?(O=_.zF(W),b["--ytd-author-comment-badge-name-color"]=
O,b["--ytd-author-comment-badge-icon-color"]=O):b["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(b).length>0&&_.Sl(this.hostElement,b)}};
Ds.prototype.useFilledIcons=function(W){return _.e("kevlar_system_icons")&&(W==="CHECK_CIRCLE_THICK"||W==="OFFICIAL_ARTIST_BADGE")};
_.Jq.Object.defineProperties(Ds.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
Ds.prototype.colorChanged=Ds.prototype.colorChanged;Ds.prototype.basicPaletteChanged=Ds.prototype.basicPaletteChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ds.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ds.prototype,"standardizeIconSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ds.prototype,"enableModernCommentBadges",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.authorUnifiedVerified"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ds.prototype,"verified",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ds.prototype,"creator",null);_.t([_.m5("data.color.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ds.prototype,"basicPaletteChanged",null);
_.t([_.m5("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ds.prototype,"colorChanged",null);Ds=_.t([_.G({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Ds);
_.H(Ds,"ytd-author-comment-badge-renderer",function(){if(bLn!==void 0)return bLn;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return bLn=W},{mode:1});var Lbv;var xY=function(){return _.n.apply(this,arguments)||this};
_.R(xY,_.n);xY.prototype.computeThumbnailWidth=function(W){if(W==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xY.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],xY.prototype,"icon",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],xY.prototype,"surface",void 0);
_.t([_.C({reflectToAttribute:!0,value:_.e("enable_shrink_image_size_on_web_posts_singleton")}),_.N("design:type",Boolean)],xY.prototype,"searchSxsUx",void 0);xY=_.t([_.G({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],xY);
_.H(xY,"ytd-backstage-image-renderer",function(){if(Lbv!==void 0)return Lbv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Lbv=W},{mode:1});var d_L;var zO=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;W.selectedItemIndex=-1;return W};
_.R(zO,_.n);_.d=zO.prototype;_.d.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.d.computeIsImagePoll=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.d.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.d.thumbnailSrc=function(W){var O,b,T,L;return(W==null?0:(O=W.thumbnails)==null?0:(b=O[0])==null?0:b.url)?_.l7((T=W.thumbnails)==null?void 0:(L=T[0])==null?void 0:L.url):void 0};
_.d.progressWidth=function(W){return"width:"+(W?W*100:0)+"%;"};
_.d.textAreaWidth=function(W){return this.isImagePoll?null:"width:"+(W?W*100:0)+"%;"};
_.d.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.d.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var W=this.data.choices,O=0;O<W.length;O++)if(W[O].selected){this.selectedItemIndex=O;break}};
_.d.onPopupClosed=function(W,O){W=Number(this.pollVotes.selected);O.confirmed&&(this.selectChoice(W,!1),_.jx(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.d.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.d.onYtCommentPollRevert=function(W,O){O&&(this.selectChoice(O.selectedChoiceIndex,!0),this.set("data.totalVotes",O.totalVotes))};
_.d.onYtServiceRequestSent=function(W,O){if(O.actions)for(W=0;W<O.actions.length;W++){var b=O.actions[W];_.P(b,PX)&&this.set("data.totalVotes",_.P(b,PX).totalVotes)}};
_.d.onYtServiceRequestCompleted=function(W){var O=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(O==="FEEDBACK_DESELECT"||O==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.bX(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.d.getEndpoint=function(W,O){return O===W?this.data.choices[O].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.d.selectChoice=function(W,O){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++){var T;if(W===this.selectedItemIndex){var L=!1;var h=T=null}else T=(L=b===W)?this.data.choices[b].voteRatioIfSelected:this.data.choices[b].voteRatioIfNotSelected,h=L?this.data.choices[b].votePercentageIfSelected:this.data.choices[b].votePercentageIfNotSelected;this.set("data.choices."+b+".voteRatio",T);
this.set("data.choices."+b+".votePercentage",h);this.set("data.choices."+b+".selected",L)}O||(this.isLoading=!0,(O=this.getEndpoint(W,this.selectedItemIndex))&&_.iq().resolve(_.bq).resolveCommand(O,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.Jq.Object.defineProperties(zO.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
zO.prototype.onYtServiceRequestCompleted=zO.prototype.onYtServiceRequestCompleted;zO.prototype.onYtServiceRequestSent=zO.prototype.onYtServiceRequestSent;zO.prototype.onYtCommentPollRevert=zO.prototype.onYtCommentPollRevert;zO.prototype.onPopupClosed=zO.prototype.onPopupClosed;zO.prototype.dataChanged=zO.prototype.dataChanged;_.t([_.D(_.$2),_.N("design:type",Object)],zO.prototype,"paperItemBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zO.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],zO.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zO.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],zO.prototype,"isLoading",void 0);_.t([_.C({computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],zO.prototype,"isChannelOwner",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.N("design:type",Boolean)],zO.prototype,"isImagePoll",void 0);_.t([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],zO.prototype,"isTotalVotesDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],zO.prototype,"previousPollInfo",void 0);_.t([_.C(),_.N("design:type",Object)],zO.prototype,"selectedItemIndex",void 0);_.t([_.El("#poll-votes"),_.N("design:type",Object)],zO.prototype,"pollVotes",void 0);
_.t([_.x("isChannelOwner"),_.N("design:type",Object),_.N("design:paramtypes",[])],zO.prototype,"endpointStyle",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zO.prototype,"dataChanged",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],zO.prototype,"onPopupClosed",null);
_.t([_.ai("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],zO.prototype,"onYtCommentPollRevert",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],zO.prototype,"onYtServiceRequestSent",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],zO.prototype,"onYtServiceRequestCompleted",null);zO=_.t([_.G({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],zO);
_.H(zO,"ytd-backstage-poll-renderer",function(){if(d_L!==void 0)return d_L;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return d_L=W},{mode:2});var hn5;var S7q={autoplay:!1,loop:!1},ZL1={simpleText:""},C1=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;W.usesPanelLockup=!1;W.selectedItemIndex=-1;W.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},S7q,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});W.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},S7q,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});W.correctnessAnimationProps=[];W.correctnessAnimationRefs=[];return W};
_.R(C1,_.n);_.d=C1.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.d.computeIsChannelOwner=function(W){if(!W)return!0;W=W[0];return!(W&&(W.signinEndpoint||W.selectServiceEndpoint))};
_.d.computeIsTotalVotesDisabled=function(W){return!(W==null?0:W.totalVotes)};
_.d.computeIsImageQuiz=function(W){return(W==null?void 0:W.type)==="POLL_TYPE_IMAGE"};
_.d.onExplanationChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var W=this.data.choices;if(W){this.maybeInitializeQuizLotties(W);for(var O=0;O<W.length;O++)if(W[O].isSelected||this.isChannelOwner&&W[O].isCorrect){this.selectedItemIndex=O;return}this.selectedItemIndex=-1}}};
_.d.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var W=this.selectedItemIndex,O=Number(this.quizVotes.selected);this.selectChoice(O);this.sendVoteAction(O,W);this.quizVotes.selected=-1;var b;W=!((b=this.data)==null?0:b.enableAnimation);this.maybePlayAnswerAnimations(W)}};
_.d.onYtCommentPollRevert=function(W,O){O&&(this.selectChoice(O.selectedChoiceIndex),this.set("data.totalVotes",O.totalVotes))};
_.d.onYtServiceRequestSent=function(W,O){if(O.actions)for(W=_.S(O.actions),O=W.next();!O.done;O=W.next())(O=_.P(O.value,PX))&&this.set("data.totalVotes",O.totalVotes)};
_.d.onYtServiceRequestCompleted=function(W){var O=this.get("detail.data.actionResults.0.feedback",W);W=this.get("detail.data.actionResults.0.status",W);if(O==="FEEDBACK_DESELECT"||O==="FEEDBACK_SELECT")this.isLoading=!1,W==="STATUS_FAILED"?_.bX(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.d.getAnimationPropsForChoiceIndex=function(W,O){return O[W]};
_.d.maybePlayAnswerAnimations=function(W){W=W===void 0?!1:W;var O;if((O=this.data)!=null&&O.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){O=_.S(this.correctnessAnimationRefs);for(var b=O.next();!b.done;b=O.next()){var T=void 0,L=void 0;(T=b.value)==null||(L=T.lottieEl)==null||L.stop()}if(!(this.selectedItemIndex<0)){O=0;W&&(O=this.isCorrect?37:25);var h,Z;(h=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(Z=h.lottieEl)==null||Z.goToAndPlay(W?O:0,!0);if(!(this.isCorrect||
(h=this.data.choices.findIndex(function(A){return A.isCorrect}),h<0))){var a,m;
(m=(a=this.correctnessAnimationRefs[h])==null?void 0:a.lottieEl)==null||m.goToAndPlay(37,!0);var w;a=(w=this.fadeContainers)==null?void 0:w.item(h);!W&&a&&this.fadeIn(a)}}}};
_.d.thumbnailSrc=function(W){var O,b,T,L;return(W==null?0:(O=W.thumbnails)==null?0:(b=O[0])==null?0:b.url)?_.l7((T=W.thumbnails)==null?void 0:(L=T[0])==null?void 0:L.url):void 0};
_.d.a11yVotedText=function(W,O){var b,T,L=((b=this.data)==null?void 0:(T=b.correctVotedText)==null?void 0:T.simpleText)||"",h,Z;b=((h=this.data)==null?void 0:(Z=h.votedText)==null?void 0:Z.simpleText)||"";if(!O)return"";var a,m;if((a=this.data)==null?0:(m=a.choices)==null?0:m[W].isCorrect)return L;var w,A;return((w=this.data)==null?0:(A=w.choices)==null?0:A[W].isSelected)?b:""};
_.d.getEndpoint=function(W,O){return O===W?this.data.choices[W].deselectServiceEndpoint||null:this.data.choices[W].selectServiceEndpoint||null};
_.d.sendVoteAction=function(W,O){if(W=this.getEndpoint(W,O))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(W)};
_.d.selectChoice=function(W){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var O=0;O<this.data.choices.length;O++)this.set("data.choices."+O+".isSelected",W===this.selectedItemIndex?!1:O===W);this.selectedItemIndex=this.selectedItemIndex===W?-1:W};
_.d.maybeInitializeQuizLotties=function(W){var O=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=W.map(function(b){return{animationConfig:b.isCorrect?O.baseCorrectLottiePlayerAnimationConfig:O.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){O.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(b){return b.animationRef||{}})};
_.d.fadeIn=function(W){W.classList.add("fade-in");_.dd(_.sF,function(){W.classList.remove("fade-in")},900)};
_.Jq.Object.defineProperties(C1.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.NX(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 W,O;return((W=this.data)==null?void 0:(O=W.choices)==null?void 0:O.some(function(b){return b.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?ZL1:this.data.choices[this.selectedItemIndex].explanation||ZL1}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null||!W.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
C1.prototype.onYtServiceRequestCompleted=C1.prototype.onYtServiceRequestCompleted;C1.prototype.onYtServiceRequestSent=C1.prototype.onYtServiceRequestSent;C1.prototype.onYtCommentPollRevert=C1.prototype.onYtCommentPollRevert;C1.prototype.dataChanged=C1.prototype.dataChanged;C1.prototype.onExplanationChanged=C1.prototype.onExplanationChanged;_.t([_.D(_.$2),_.N("design:type",Object)],C1.prototype,"paperItemBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],C1.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.uH.YtTaskEmitterBehavior),_.N("design:type",Object)],C1.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],C1.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],C1.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],C1.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Object)],C1.prototype,"usesPanelLockup",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.N("design:type",Boolean)],C1.prototype,"isChannelOwner",void 0);_.t([_.C({computed:"computeIsTotalVotesDisabled(data)"}),_.N("design:type",Boolean)],C1.prototype,"isTotalVotesDisabled",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.N("design:type",Boolean)],C1.prototype,"isImageQuiz",void 0);_.t([_.C(),_.N("design:type",Object)],C1.prototype,"previousQuizInfo",void 0);_.t([_.C(),_.N("design:type",Object)],C1.prototype,"selectedItemIndex",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data","usesPanelLockup"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"shouldUseModernUi",null);
_.t([_.wi(".fade-container"),_.N("design:type",Object)],C1.prototype,"fadeContainers",void 0);_.t([_.C(),_.N("design:type",Array)],C1.prototype,"correctnessAnimationProps",void 0);_.t([_.x("explanation","showCorrectAnswer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"showExplanation",null);_.t([_.x("isChannelOwner","isAttempted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"showCorrectAnswer",null);
_.t([_.x("isChannelOwner","isAttempted","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"isQuizAnsweringDisabled",null);_.t([_.x("isQuizAnsweringDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],C1.prototype,"endpointStyle",null);_.t([_.x("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"isAttempted",null);
_.t([_.x("data","selectedItemIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],C1.prototype,"explanation",null);_.t([_.x("data","selectedItemIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],C1.prototype,"isCorrect",null);_.t([_.El("ytd-expander"),_.N("design:type",Object)],C1.prototype,"expander",void 0);_.t([_.El("#quiz-votes"),_.N("design:type",Object)],C1.prototype,"quizVotes",void 0);
_.t([_.m5("explanation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C1.prototype,"onExplanationChanged",null);_.t([_.m5("data","isChannelOwner"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],C1.prototype,"dataChanged",null);_.t([_.ai("yt-comment-quiz-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],C1.prototype,"onYtCommentPollRevert",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],C1.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],C1.prototype,"onYtServiceRequestCompleted",null);C1=_.t([_.G({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],C1);
_.H(C1,"ytd-backstage-quiz-renderer",function(){if(hn5!==void 0)return hn5;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return hn5=W},{mode:1});var Iow;var qT=function(){return _.n.apply(this,arguments)||this};
_.R(qT,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qT.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qT.prototype,"data",void 0);qT=_.t([_.G({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],qT);
_.H(qT,"ytd-post-uploaded-video-renderer",function(){if(Iow!==void 0)return Iow;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Iow=W},{mode:1});var ao5;var n1=function(){return _.n.apply(this,arguments)||this};
_.R(n1,_.n);n1.prototype.useFilledIcons=function(W){return W==="SPONSORSHIP_STAR"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],n1.prototype,"data",void 0);n1=_.t([_.G({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],n1);
_.H(n1,"ytd-sponsors-only-badge-renderer",function(){if(ao5!==void 0)return ao5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ao5=W},{mode:1});var m_9;var f1=function(){return _.n.apply(this,arguments)||this};
_.R(f1,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],f1.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],f1.prototype,"data",void 0);f1=_.t([_.G({is:"ytd-child-video-renderer",disableElementRegistration:!0})],f1);
_.H(f1,"ytd-child-video-renderer",function(){if(m_9!==void 0)return m_9;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return m_9=W},{mode:1});var Y7z;var EWN;var GO=function(){var W=_.n.apply(this,arguments)||this;W.size=0;W.enableWebModernCollectionsV2=_.e("web_modern_collections_v2");W.fallbackImageSize={height:void 0,width:9999};W.webModernCollections=!1;return W};
_.R(GO,_.n);_.d=GO.prototype;_.d.computeBlurredImageSize=function(W){return W?{height:W*2,width:W*2}:this.fallbackImageSize};
_.d.computeImageSize=function(W){return W?{height:W,width:W}:this.fallbackImageSize};
_.d.computeObjectFit=function(W){return W?"FILL":"CONTAIN"};
_.d.computePreserve=function(W){return W?!0:!1};
_.d.setBackground=function(){var W,O;_.e("web_modern_collections_v2")&&((W=this.data)==null?0:(O=W.thumbnail)==null?0:O.sampledThumbnailColor)&&(W=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+W.red+","+W.green+","+W.blue+",1)")};
GO.prototype.setBackground=GO.prototype.setBackground;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],GO.prototype,"watchFeedThumbnail",void 0);_.t([_.C(),_.N("design:type",Object)],GO.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],GO.prototype,"size",void 0);
_.t([_.C({computed:"computeBlurredImageSize(size)"}),_.N("design:type",Object)],GO.prototype,"blurredImageSize",void 0);_.t([_.C({computed:"computeImageSize(size)"}),_.N("design:type",Object)],GO.prototype,"imageSize",void 0);_.t([_.C({computed:"computePreserve(size)"}),_.N("design:type",String)],GO.prototype,"preserve",void 0);_.t([_.C({computed:"computeObjectFit(size)"}),_.N("design:type",String)],GO.prototype,"objectFit",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],GO.prototype,"enableWebModernCollectionsV2",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],GO.prototype,"webModernCollections",void 0);_.t([_.m5("data.thumbnail.sampledThumbnailColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GO.prototype,"setBackground",null);GO=_.t([_.G({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],GO);
_.H(GO,"ytd-playlist-custom-thumbnail-renderer",function(){if(EWN!==void 0)return EWN;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return EWN=W},{mode:1});var w87;var H$=function(){return _.n.apply(this,arguments)||this};
_.R(H$,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],H$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],H$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],H$.prototype,"width",void 0);H$=_.t([_.G({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],H$);
_.H(H$,"ytd-playlist-video-thumbnail-renderer",function(){if(w87!==void 0)return w87;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return w87=W},{mode:1});var AlN;var tz=function(){return _.n.apply(this,arguments)||this};
_.R(tz,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tz.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],tz.prototype,"width",void 0);tz=_.t([_.G({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],tz);
_.H(tz,"ytd-show-custom-thumbnail-renderer",function(){if(AlN!==void 0)return AlN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return AlN=W},{mode:1});var X8$;var $Y=function(){return _.n.apply(this,arguments)||this};
_.R($Y,_.n);$Y.prototype.useFilledIcons=function(W){return W==="MUSIC"||W==="COURSE"};
$Y.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=qd(this.overlayColor,"0.8");else if(this.overlayColor){var W=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+W.red+","+W.green+","+W.blue+",0.8)"}};
_.Jq.Object.defineProperties($Y.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)}}});
$Y.prototype.overlayColorChanged=$Y.prototype.overlayColorChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$Y.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],$Y.prototype,"overlayColor",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Y.prototype,"overlayStyle",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.icon","data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Y.prototype,"overlayTextStyle",null);_.t([_.m5("overlayColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Y.prototype,"overlayColorChanged",null);$Y=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],$Y);
_.H($Y,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(X8$!==void 0)return X8$;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return X8$=W},{mode:1});var U_f;var VJ=function(){var W=_.n.apply(this,arguments)||this;W.active=!1;return W};
_.R(VJ,_.n);VJ.prototype.computeIsSpinnerHidden=function(W){return(W==null?void 0:W.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
VJ.prototype.computeOverlayIcon=function(W){return(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(W==null?void 0:W.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VJ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],VJ.prototype,"active",void 0);VJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],VJ);
_.H(VJ,"ytd-thumbnail-overlay-downloading-renderer",function(){if(U_f!==void 0)return U_f;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return U_f=W},{mode:1});var loq;var NT=function(){return _.n.apply(this,arguments)||this};
_.R(NT,_.n);_.Jq.Object.defineProperties(NT.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],NT.prototype,"data",void 0);_.t([_.x("data.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],NT.prototype,"text",null);NT=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],NT);
_.H(NT,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(loq!==void 0)return loq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return loq=W},{mode:1});var en9,Pgf=function(){if(en9!==void 0)return en9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return en9=W};var MT=function(){return _.n.apply(this,arguments)||this};
_.R(MT,_.n);_.Jq.Object.defineProperties(MT,{template:{configurable:!0,enumerable:!0,get:function(){return Pgf()}}});
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],MT.prototype,"animateEqualizer",void 0);MT=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],MT);_.TH()(MT,"ytd-thumbnail-overlay-equalizer",function(){return Pgf()},{allowedProps:["animateEqualizer"],
mode:1});var p8v;var ud=function(){var W=_.n.apply(this,arguments)||this;W.nowPlayingBadge=_.e("web_now_playing_badge");W.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return W};
_.R(ud,_.n);ud.prototype.activeChanged=function(){var W=this;_.e("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.My(this,function(){_.bX(W.hostElement,"yt-playlist-lockup-now-playing-active",W)})};
ud.prototype.onMiniplayerPlayStateChanged=function(W){var O,b=(O=_.P(_.IT().currentEndpoint,_.V3))==null?void 0:O.videoId;this.isVideoPlaying=W&&(_.e("web_limit_now_playing_animation_killswitch")||this.videoId===b)};
ud.prototype.activeChanged=ud.prototype.activeChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ud.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ud.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],ud.prototype,"isVideoPlaying",void 0);_.t([_.C(),_.N("design:type",String)],ud.prototype,"videoId",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ud.prototype,"equalizerOnly",void 0);_.t([_.C(),_.N("design:type",Boolean)],ud.prototype,"isActive",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ud.prototype,"nowPlayingBadge",void 0);_.t([_.m5("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ud.prototype,"activeChanged",null);
ud=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],ud);
_.H(ud,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(p8v!==void 0)return p8v;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return p8v=W},{mode:1});var Rn9;var Jz=function(){return _.n.apply(this,arguments)||this};
_.R(Jz,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Jz.prototype,"data",void 0);Jz=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],Jz);
_.H(Jz,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Rn9!==void 0)return Rn9;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Rn9=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var Kbv;var c$=function(){return _.n.apply(this,arguments)||this};
_.R(c$,_.n);c$.prototype.onDurationChanged=function(){var W,O;_.Q(this.hostElement).querySelector("#progress").style.width=((O=(W=this.data)==null?void 0:W.percentDurationWatched)!=null?O:0)+"%"};
c$.prototype.onDurationChanged=c$.prototype.onDurationChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],c$.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],c$.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],c$.prototype,"isLive",void 0);_.t([_.m5("data.percentDurationWatched"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c$.prototype,"onDurationChanged",null);
c$=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],c$);
_.H(c$,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Kbv!==void 0)return Kbv;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Kbv=W},{mode:1});var vWS;var Fo=function(){var W=_.n.apply(this,arguments)||this;W.bottomPanel=!1;W.richGridOverlay=!1;W.watchFeedOverlay=!1;W.isCompact=!1;return W};
_.R(Fo,_.n);Fo.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Jq.Object.defineProperties(Fo.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.icon)==null?void 0:O.iconType)==="PLAY_ALL"&&_.e("kevlar_system_icons")}}});
Fo.prototype.widthChanged=Fo.prototype.widthChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fo.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],Fo.prototype,"width",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fo.prototype,"bottomPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fo.prototype,"richGridOverlay",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fo.prototype,"watchFeedOverlay",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fo.prototype,"isCompact",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Fo.prototype,"isIconFilled",null);_.t([_.m5("width","watchFeedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fo.prototype,"widthChanged",null);
Fo=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],Fo);
_.H(Fo,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(vWS!==void 0)return vWS;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return vWS=W},{mode:1});var gWH;var oW$=["CLIP","SHORTS"],yJ=function(){var W=_.n.apply(this,arguments)||this;W.animated=_.e("animated_live_badge_icon");W.hasIcon=!1;W.updateTimerIntervalId=0;W.timeSinceLive=0;return W};
_.R(yJ,_.n);_.d=yJ.prototype;_.d.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.d.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.d.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.d.hasIconOrText=function(){var W,O;return!!(((W=this.data)==null?0:W.icon)||((O=this.data)==null?0:O.text))};
_.d.initializeLiveBadgeTimer=function(){var W=this,O,b=(O=this.liveBadgeData)==null?void 0:O.startTimestampSec;if(b&&this.canShowLiveBadgeTimer()){var T;O=Number((T=this.liveBadgeData)==null?void 0:T.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(b);this.updateTimerIntervalId=_.Ie(function(){W.canShowLiveBadgeTimer()?W.timeSinceLive++:(W.timeSinceLive=0,window.clearInterval(W.updateTimerIntervalId))},O)}else this.timeSinceLive=0};
_.d.canShowLiveBadgeTimer=function(){var W=Date.now(),O,b;return W<(Number((O=this.liveBadgeData)==null?void 0:O.endTimestampSec)-1)*1E3&&W>Number((b=this.liveBadgeData)==null?void 0:b.startTimestampSec)*1E3};
_.Jq.Object.defineProperties(yJ.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data;var O=this.timeSinceLive;var b,T,L,h;a:{var Z=W.style;if(Z===void 0)Z=16;else switch(Z){case "LIVE":Z=17;break a;default:Z=16}}O={type:Z,text:O?zUO({seconds:O}):_.NX(W.text),accessibilityText:(b=W.text)==null?void 0:(T=b.accessibility)==null?void 0:(L=T.accessibilityData)==null?void 0:L.label,icon:(h=W.icon)==null?void 0:h.iconType}}else O={};return O}},
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 W;return(W=this.data)==null?void 0:W.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 oW$.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
yJ.prototype.initializeLiveBadgeTimer=yJ.prototype.initializeLiveBadgeTimer;yJ.prototype.dataChanged=yJ.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],yJ.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yJ.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],yJ.prototype,"icon",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],yJ.prototype,"animated",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.N("design:type",Boolean)],yJ.prototype,"hideTimeStatus",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yJ.prototype,"hasIcon",void 0);_.t([_.C(),_.N("design:type",Object)],yJ.prototype,"timeSinceLive",void 0);_.t([_.x("data","timeSinceLive"),_.N("design:type",Object),_.N("design:paramtypes",[])],yJ.prototype,"badgeShapeData",null);
_.t([_.x("data","overlayType"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yJ.prototype,"hideBadgeShape",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yJ.prototype,"dataChanged",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],yJ.prototype,"overlayStyle",null);
_.t([_.x("data.liveBadgeData"),_.N("design:type",Object),_.N("design:paramtypes",[])],yJ.prototype,"liveBadgeData",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.type"),_.N("design:type",Object),_.N("design:paramtypes",[])],yJ.prototype,"overlayType",null);_.t([_.x("overlayType","overlayStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],yJ.prototype,"useFilledIcon",null);
_.t([_.Ul("liveBadgeData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yJ.prototype,"initializeLiveBadgeTimer",null);yJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],yJ);
_.H(yJ,"ytd-thumbnail-overlay-time-status-renderer",function(){if(gWH!==void 0)return gWH;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gWH=W},{mode:_.Lb("kevlar_poly_si_batch_j035")?1:2});var Q0n;var Wd=function(){return _.n.apply(this,arguments)||this};
_.R(Wd,_.n);Wd.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"}}}}};
Wd.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(W){if(this.hasPlaybackProgressBar)return{percentDurationWatched:W.percentDurationWatched}};
Wd.prototype.computeHasPlaybackProgressBar=function(W){return!!W.percentDurationWatched&&W.percentDurationWatched>0};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Wd.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.N("design:type",Boolean)],Wd.prototype,"hasPlaybackProgressBar",void 0);
Wd=_.t([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Wd);
_.H(Wd,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(Q0n!==void 0)return Q0n;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Q0n=W},{mode:1});var kQv;var s01=_.J1(function(W){var O=W.data;var b=W.children;var T=function(){return!!O().doubleStack};
return _.E("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!O().experimentEnabled}},_.E(_.U,{cond:O,
then:function(){return _.E("div",null,_.E(_.U,{cond:T,then:function(){var L={};return _.E("div",{class:_.YS("collections-stack-wiz__collection-stack2",function(){return O().customClassName2ndStack},(L["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return O().enableResponsiveMode},L)),
style:_.eE({"background-color":function(){return qGQ(O())}})})}}),_.E("div",{class:_.YS("collections-stack-wiz__collection-stack1",function(){return O().customClassName1stStack},function(){return C01(O().thumbnailSize?O().thumbnailSize:"medium")}),
style:_.eE({"background-color":function(){return qGQ(O())}})}),b)}}))},"L");_.O1(s01,"yt-collections-stack",{props:{data:_.te}});var OS=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};W.webModernCollections=!1;W.isSearch=!1;W.isDoubleStack=!1;W.thumbnailSize="medium";W.enableWebModernCollectionsV2=_.e("web_modern_collections_v2");return W};
_.R(OS,_.n);_.d=OS.prototype;
_.d.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]]"}}}}}};
_.d.getThumbnailDetails=function(W){if(W!=null&&W.thumbnailRenderer){var O=W.thumbnailRenderer,b;if((b=O.playlistVideoThumbnailRenderer)==null?0:b.thumbnail)return O.playlistVideoThumbnailRenderer.thumbnail;var T;if((T=O.playlistCustomThumbnailRenderer)==null?0:T.thumbnail)return O.playlistCustomThumbnailRenderer.thumbnail;W=W.thumbnailRenderer;var L;if((L=W.showCustomThumbnailRenderer)==null?0:L.thumbnail)return W.showCustomThumbnailRenderer.thumbnail}};
_.d.computeOverlayColor=function(W){var O,b;if((O=this.getThumbnailDetails(W))==null?0:(b=O.darkColorPalette)==null?0:b.section2Color)return this.getThumbnailDetails(W).darkColorPalette.section2Color;var T;return(T=this.getThumbnailDetails(W))==null?void 0:T.sampledThumbnailColor};
_.d.computeWebModernCollections=function(W){if(W==null||!W.thumbnailOverlays)return!1;W=_.S(W.thumbnailOverlays);for(var O=W.next();!O.done;O=W.next()){var b=void 0;if((b=O.value)==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.d.computeNavigationEndpoint=function(W){return fRT(W==null?void 0:W.navigationEndpoint)};
_.Jq.Object.defineProperties(OS.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:W==null?void 0:W.sampledThumbnailColor,vibrantColorPalette:W==null?void 0:W.vibrantColorPalette,darkColorPalette:W==null?void 0:W.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],OS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(fDv),_.N("design:type",Object)],OS.prototype,"ytdThumbnailBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],OS.prototype,"componentBehavior",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],OS.prototype,"watchFeedThumbnail",void 0);_.t([_.C(),_.N("design:type",Number)],OS.prototype,"customThumbnailSize",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],OS.prototype,"hideAria",void 0);_.t([_.C(),_.N("design:type",Object)],OS.prototype,"data",void 0);_.t([_.C({computed:"computeOverlayColor(data)"}),_.N("design:type",Object)],OS.prototype,"overlayColor",void 0);
_.t([_.C({computed:"computeWebModernCollections(data)"}),_.N("design:type",Object)],OS.prototype,"webModernCollections",void 0);_.t([_.C({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],OS.prototype,"computedNavigationEndpoint",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],OS.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],OS.prototype,"isDoubleStack",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],OS.prototype,"thumbnailSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OS.prototype,"enableWebModernCollectionsV2",void 0);_.t([_.x("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],OS.prototype,"collectionStack",null);OS=_.t([_.G({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],OS);
_.H(OS,"ytd-playlist-thumbnail",function(){if(kQv!==void 0)return kQv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return kQv=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var BsH;var iL=function(){var W=_.n.apply(this,arguments)||this;W.noEndpoints=!1;W.amsterdamPostMvp=_.e("web_amsterdam_post_mvp_playlists");W.badges=[];W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.R(iL,_.n);_.d=iL.prototype;_.d.getMetadata=function(W){if(!W)return[];var O=[],b=W.shortViewCountText||W.viewCountText;b&&O.push(_.NX(b));W.publishedTimeText&&O.push(_.NX(W.publishedTimeText));W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&O.push(_.xz(_.NX(W.upcomingEventData.upcomingEventText),Number(W.upcomingEventData.startTime)));return O};
_.d.observeDataForBylineSeparator=function(){this.data&&_.L2(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.d.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.zF(this.metadataColor)};
_.d.getSimpleString=function(W){return _.NX(W)};
_.d.isBylineHidden=function(W){return this.noByline||!((W==null?0:W.longBylineText)||(W==null?0:W.shortBylineText))};
_.d.isMetadataHidden=function(W){var O;return((O=this.getMetadata(W))==null?void 0:O.length)===0};
_.d.isBylineMetadataSeparatorHidden=function(W){return this.isMetadataHidden(W)||!this.shouldShowVideoInfo};
_.d.isLongByline=function(W,O){return O&&!(W==null||!W.longBylineText)};
_.Jq.Object.defineProperties(iL.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var W;return this.amsterdamPostMvp&&!((W=this.data)==null||!W.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
iL.prototype.metadataColorChanged=iL.prototype.metadataColorChanged;iL.prototype.observeDataForBylineSeparator=iL.prototype.observeDataForBylineSeparator;_.t([_.D(_.sh),_.N("design:type",Object)],iL.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],iL.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],iL.prototype,"noEndpoints",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"isSlimShort",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"radioMeta",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],iL.prototype,"isGridViewEnabled",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"richMeta",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iL.prototype,"amsterdamPostMvp",void 0);_.t([_.C(),_.N("design:type",Boolean)],iL.prototype,"noByline",void 0);
_.t([_.C({computed:"isLongByline(data, radioMeta)"}),_.N("design:type",Boolean)],iL.prototype,"longByline",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"truncateMetadataLine",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"miniMode",void 0);_.t([_.C(),_.N("design:type",Number)],iL.prototype,"metadataColor",void 0);_.t([_.C(),_.N("design:type",Array)],iL.prototype,"badges",void 0);
_.t([_.C({selector:_.D5,selectorArgs:["data.videoId"]}),_.N("design:type",String)],iL.prototype,"transferState",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"isDownloading",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],iL.prototype,"typographyBump",void 0);_.t([_.El("#metadata-line"),_.N("design:type",HTMLElement)],iL.prototype,"metadataLine",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iL.prototype,"observeDataForBylineSeparator",null);_.t([_.m5("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iL.prototype,"metadataColorChanged",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],iL.prototype,"shouldShowVideoInfo",null);
_.t([_.x("badges"),_.N("design:type",String),_.N("design:paramtypes",[])],iL.prototype,"inlineBadgeClass",null);_.t([_.x("longByline"),_.N("design:type",String),_.N("design:paramtypes",[])],iL.prototype,"longBylineClass",null);_.t([_.x("data","longByline"),_.N("design:type",Object),_.N("design:paramtypes",[])],iL.prototype,"bylineText",null);_.t([_.x("isGridViewEnabled","data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iL.prototype,"watchFeedBigThumbs",null);
iL=_.t([_.G({is:"ytd-video-meta-block",disableElementRegistration:!0})],iL);
_.H(iL,"ytd-video-meta-block",function(){if(BsH!==void 0)return BsH;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BsH=W},{mode:_.Lb("kevlar_poly_si_batch_j080")?1:2});_.Bs("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var bL=function(){var W=_.n.apply(this,arguments)||this;W.displayItemCount=2;W.isBackstagePlaylist=!1;W.isPostCompactPlaylist=!1;W.shouldShowChannelThumbnail=!1;W.useModernCollectionsV2=_.e("web_modern_collections_v2");return W};
_.R(bL,_.n);_.d=bL.prototype;_.d.computeFirstVideos=function(W,O){return W===void 0||O===void 0?[]:W.slice(0,O)};
_.d.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var W=this.data.thumbnailRenderer;W.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",W.playlistVideoThumbnailRenderer.thumbnail);W.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",W.playlistCustomThumbnailRenderer.thumbnail)}};
_.d.computeThumbnailHeight=function(W,O,b,T,L){return T?L==="BIG"?280:L==="MASSIVE"?337:234:b?240:O?72:W?118:138};
_.d.computeThumbnailWidth=function(W,O,b,T,L){return T?L==="MEDIUM"?450:L==="BIG"?500:L==="MASSIVE"?600:420:b?360:O?128:W?210:246};
_.d.computeUseBiggerThumbs=function(W){return W&&_.e("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelThumbnail=function(W,O){return W&&!(O==null||!O.channelThumbnail)};
_.Jq.Object.defineProperties(bL.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
bL.prototype.dataChanged=bL.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],bL.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],bL.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bL.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],bL.prototype,"displayItemCount",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bL.prototype,"isBackstagePlaylist",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bL.prototype,"isPostCompactPlaylist",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bL.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.N("design:type",Boolean)],bL.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],bL.prototype,"biggerThumbsStyle",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bL.prototype,"isDownloads",void 0);_.t([_.C({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.N("design:type",Object)],bL.prototype,"shouldShowChannelThumbnail",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bL.prototype,"useModernCollectionsV2",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bL.prototype,"dataChanged",null);_.t([_.x("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],bL.prototype,"stackThumbnailSize",null);bL=_.t([_.G({is:"ytd-playlist-renderer",disableElementRegistration:!0})],bL);
_.H(bL,"ytd-playlist-renderer",function(){if(Y7z===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);Y7z=W}W=Y7z;return W},{mode:1});var rl$;var D_v;var je=function(){var W=_.n.apply(this,arguments)||this;W.collections=!!_.e("web_modern_collections_v2");W.startX=0;return W};
_.R(je,_.n);je.prototype.onEndpointMouseDown=function(W){this.startX=W.clientX};
je.prototype.onEndpointClick=function(W){this.startX!==W.clientX&&(W.preventDefault(),W.stopPropagation())};
je.prototype.computeObjectFit=function(W){return W==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||W==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
je.prototype.computeCardStyle=function(W){return W?W.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Jq.Object.defineProperties(je.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var W,O;return this.collections&&((W=this.data)==null?void 0:(O=W.searchRefinementCardRendererStyle)==null?void 0:O.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],je.prototype,"data",void 0);_.t([_.C({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",Number)],je.prototype,"objectFit",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.N("design:type",String)],je.prototype,"cardStyle",void 0);
_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],je.prototype,"roundContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],je.prototype,"collections",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],je.prototype,"isAlbumCard",null);_.t([_.x("data","collections","isAlbumCard"),_.N("design:type",Object),_.N("design:paramtypes",[])],je.prototype,"collectionStack",null);
je=_.t([_.G({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],je);
_.H(je,"ytd-search-refinement-card-renderer",function(){if(D_v!==void 0)return D_v;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return D_v=W},{mode:1});var x_7;var TG=function(){var W=_.n.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.R(TG,_.n);_.t([_.C(),_.N("design:type",Object)],TG.prototype,"data",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],TG.prototype,"componentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],TG.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],TG.prototype,"isRichGrid",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],TG.prototype,"miniMode",void 0);
TG=_.t([_.G({is:"ytd-game-details-renderer",disableElementRegistration:!0})],TG);
_.H(TG,"ytd-game-details-renderer",function(){if(x_7!==void 0)return x_7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return x_7=W},{mode:1});var znH;var CgH;var LA=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return W};
_.R(LA,_.n);_.d=LA.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(W){var O=W||this.data;return O&&O.states&&O.currentStateId!=null?O.states.find(function(b){return b.stateId===O.currentStateId})||null:null};
_.d.currentStateRendererData=function(W){return(W=this.currentStateData(W))&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.d.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())};
_.d.computeButtonIcon=function(W){W=this.currentStateRendererData(W);var O;return(W==null?0:(O=W.icon)==null?0:O.iconType)?W.icon.iconType.toLowerCase():null};
_.d.computeAccessibility=function(W){return(W=this.currentStateRendererData(W))&&W.accessibilityData?W.accessibilityData.accessibilityData||null:null};
_.d.computeButtonClass=function(W){var O=this.currentStateRendererData(W);if(!O)return"";W="";var b=O.style;b&&(W+=b.toLowerCase().replace(/_/g,"-")+" ");(O=O.size)&&(W+=O.toLowerCase().replace(/_/g,"-")+" ");return W.trim()};
_.d.computeServiceEndpoint=function(W){if(!W)return null;var O=W&&W.serviceEndpoint,b=this.get("command.commandMetadata.webCommandMetadata.sendPost",W);return O?O:b&&W.command?W.command:null};
_.d.computeBellMenuItemParams=function(W){var O;W=(O=_.P(W==null?void 0:W.command,_.I5))==null?void 0:O.commands;if(!W||W.length===0)return null;O=_.P(W[0],_.pN);var b,T;return(O==null?0:(b=O.popup)==null?0:(T=b.menuPopupRenderer)==null?0:T.items)?O.popup.menuPopupRenderer.items.map(function(L){return L.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(W){var O=W.trackingParams,b=this.computeBellMenuItemParams(this.data);this.data&&O&&b&&b.includes(O)&&this.ytRenderButtonBehavior._setButtonIcon(W.icon.iconType.toLowerCase())};
_.d.onYtServiceRequestCompleted=function(W,O){(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",O))&&this.set("data",W)};
_.d.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.d.resetState=function(){this.set("data.currentStateId",3)};
_.d.onYtButtonTapHandler=function(){if(this.data){var W=this.currentStateRendererData(this.data);W&&this.ytRendererBehavior.logExplicitClick(W)}};
LA.prototype.onYtServiceRequestError=LA.prototype.onYtServiceRequestError;LA.prototype.onYtServiceRequestCompleted=LA.prototype.onYtServiceRequestCompleted;LA.prototype.stateChanged=LA.prototype.stateChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],LA.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(AW.YtRenderButtonBehavior),_.N("design:type",Object)],LA.prototype,"ytRenderButtonBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],LA.prototype,"data",void 0);_.t([_.Ul("data","data.currentStateId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LA.prototype,"stateChanged",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],LA.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],LA.prototype,"onYtServiceRequestError",null);LA=_.t([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],LA);
_.H(LA,"ytd-subscription-notification-toggle-button-renderer",function(){if(CgH!==void 0)return CgH;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return CgH=W},{mode:1});var q7w;var hD=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};W.tapHandler=function(){if(W.data){var O=W.currentStateRendererData();O&&W.ytRendererBehavior.logExplicitClick(O)}};
return W};
_.R(hD,_.n);_.d=hD.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.currentStateData=function(){var W=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(O){return O.stateId===W.data.currentStateId})||null:null};
_.d.currentStateRendererData=function(){var W=this.currentStateData();return W&&W.state&&W.state.buttonRenderer?W.state.buttonRenderer:null};
_.d.computeAccessibilityLabel=function(){var W,O,b;return(W=this.currentStateRendererData())==null?void 0:(O=W.accessibilityData)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label};
_.d.computeBellMenuItemParams=function(){var W,O,b=(O=_.P((W=this.data)==null?void 0:W.command,_.I5))==null?void 0:O.commands;if(!b||b.length===0)return null;W=_.P(b[0],_.pN);var T,L;return(W==null?0:(T=W.popup)==null?0:(L=T.menuPopupRenderer)==null?0:L.items)?W.popup.menuPopupRenderer.items.map(function(h){return h.menuServiceItemRenderer.trackingParams}):null};
_.d.handleBellMenuOpenSelectedAction=function(W){var O=W.trackingParams,b=this.computeBellMenuItemParams();if(this.data&&O&&b&&b.includes(O)&&(W==null||!W.isDisabled)){var T;((T=_.P(W.serviceEndpoint,_.mM))==null?void 0:T.signal)!=="CLIENT_SIGNAL"&&(this.icon=W.icon.iconType)}};
_.d.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.d.onYtServiceRequestCompleted=function(W,O){if(W=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",O))this.icon=void 0,this.set("data",W)};
_.d.onYtServiceRequestError=function(){this.icon=void 0};
_.Jq.Object.defineProperties(hD.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data,O=this.textLabel,b=this.hostElement,T=this.computeAccessibilityLabel(),L=this.tapHandler,h=this.isOverlay?"overlay":"mono",Z=(W==null?0:W.disableButton)?"disabled":"active";O=O?_.sz(O):void 0;return{style:h,type:"tonal",state:Z,size:"M",focused:!1,formattedButtonText:O,iconPosition:"leading-trailing",onTap:GfQ(W,L,b),accessibilityLabel:T}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var W=this.currentStateRendererData(),O,b,T=(b=this.icon)!=null?b:W==null?void 0:(O=W.icon)==null?void 0:O.iconType;if(T)return _.Z6(T)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.secondaryIcon)==null?void 0:O.iconType;if(b)return _.Z6(b)}}});
hD.prototype.onYtServiceRequestError=hD.prototype.onYtServiceRequestError;hD.prototype.onYtServiceRequestCompleted=hD.prototype.onYtServiceRequestCompleted;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],hD.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hD.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],hD.prototype,"textLabel",void 0);
_.t([_.C(),_.N("design:type",String)],hD.prototype,"icon",void 0);_.t([_.C(),_.N("design:type",Boolean)],hD.prototype,"isOverlay",void 0);_.t([_.x("data.*","textLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],hD.prototype,"computedButtonShape",null);_.t([_.x("data.*","icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],hD.prototype,"computedIcon",null);_.t([_.x("data.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],hD.prototype,"computedSecondaryIcon",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],hD.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hD.prototype,"onYtServiceRequestError",null);hD=_.t([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],hD);
_.H(hD,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(q7w!==void 0)return q7w;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return q7w=W},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var nW$;_.O1(zz9,"yt-animated-action",{props:{backgroundLottieRef:_.te,foregroundLottieRef:_.te,wrapperClass:_.te,disableAnimation:_.te},unsafeExternallySettableAttributes:new Set(["key"])});var Se=function(){var W=_.n.apply(this,arguments)||this;W.animatedActionEnabled=_.e("web_animated_actions");W.foregroundLottieRef={};W.backgroundLottieRef={};W.forceIconOnly=!1;W.showTextWhileAnimating=!1;W.keyboardFocused=!1;W.isAnimating=!1;W.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return W};
_.R(Se,_.n);_.d=Se.prototype;_.d.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.d.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]]"}}}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onYtServiceRequestSent=function(W,O){(this.get("endpoint.subscribeEndpoint",O)||this.get("endpoint.unsubscribeEndpoint",O))&&this.updateSubscriptionState(!this.subscribed)};
_.d.onYtServiceRequestCompleted=function(W,O){(W=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",O.data))&&this.bellButton&&(this.bellButton.data=W)};
_.d.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Sl(this.hostElement)};
_.d.onPlayerSubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.d.onPlayerUnsubscribe=function(W){this.isCompactRed()||W!==this.data.channelId||this.updateSubscriptionState(!1)};
_.d.handleUpdateSubscribeButtonAction=function(W){W=_.P(W,pkU);var O;W&&W.channelId===((O=this.data)==null?void 0:O.channelId)&&this.updateSubscriptionState(!!W.subscribed)};
_.d.computeButtonStyle=function(W){return this.get("style.styleType",W)||null};
_.d.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.d.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.d.updateSubscriptionState=function(W){if(W!==this.subscribed){this.set("data.subscribed",W);var O,b=(O=this.data)==null?void 0:O.subscribedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.AI("subscriptionStateEntity",b,{key:b,subscribed:W}));this.isCompactRed()||_.bX(this.hostElement,"yt-subscription-changed",W);W||(_.jx(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!W),W&&this.hasBellButton&&this.startAnimation())}};
_.d.startAnimation=function(){var W=this;if(!this.isAnimating){var O=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var b;(b=this.backgroundLottieRef.lottieEl)==null||b.goToAndPlay(0);var T;(T=this.foregroundLottieRef.lottieEl)==null||T.goToAndPlay(0);_.sF.addJob(function(){W.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.sF.addJob(function(){W.updateContainerToFitContent(!!W.subscribed,!0)},2,1500);
_.sF.addJob(function(){W.isAnimating=!1},2,O)}};
_.d.maybeAnimateBellIcon=function(){var W=_.T0(this.hostElement).querySelector("yt-animated-icon");if(W){var O;(O=W.animationRef.lottieEl)==null||O.goToAndPlay(0)}};
_.d.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.d.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.d.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var W;this.unsubscribedWidth=(W=this.subscribeButtonShape)==null?void 0:W.getBoundingClientRect().width}var O;this.subscribedWidth=(O=this.bellButton)==null?void 0:O.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.d.updateContainerToFitContent=function(W,O){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(W?(W=this.subscribedWidth,O=this.isAnimating&&!O,this.subscribedIconOnlyWidth===void 0||O||(W=this.subscribedIconOnlyWidth),this.hostElement.style.width=W+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.d.clearContainerSize=function(){this.hostElement.style.width=""};
_.d.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.d.maybeSetSubscribedButtonIconOnlyWidth=function(){var W=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 O;W.subscribedIconOnlyWidth=(O=W.bellButton)==null?void 0:O.getBoundingClientRect().width;requestAnimationFrame(function(){if(W.bellButton){var b;W.bellButton.textLabel=
(b=W.data)==null?void 0:b.subscribedButtonText}})})))};
_.Jq.Object.defineProperties(Se.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 W;return(W=this.data)==null?void 0:W.subscribedButtonText}var O;return this.forceIconOnly?void 0:(O=this.data)==null?void 0:O.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var W,O,b=((W=this.data)==null?void 0:(O=W.timedAnimationData)==null?void 0:O.animationTiming)||[];return{uniqueId:"subscribe",timings:b,enabled:b.length>0&&!this.subscribed,experimentEnabled:b.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!this.subscribed&&((W=this.data)==null?void 0:W.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 W={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var O=W.renderer;var b=W.element;var T=W.subscribed;var L=W.commandController;var h=W.isOverlay;W=W.config;var Z=VFX(O,T);h&&(Z.style="overlay");h=Object;var a=h.assign,m;a:switch((m=O.style)==null?void 0:m.styleType){case "COMPACT_GRAY":case "COMPACT_RED":m={size:"S"};break a;default:m={size:"M"}}var w=$Sq(O,T);var A=
(A=T?O.subscribedButtonText:O.unsubscribedButtonText)?_.sz(A):void 0;return a.call(h,{},Z,m,{focused:!1,toggled:T,accessibilityLabel:w,formattedButtonText:A,onTap:tF1(O,W,T,b,L)})}}}});
Se.prototype.onMouseDown=Se.prototype.onMouseDown;Se.prototype.onDataChanged=Se.prototype.onDataChanged;Se.prototype.observedSubscribed=Se.prototype.observedSubscribed;Se.prototype.onYtServiceRequestCompleted=Se.prototype.onYtServiceRequestCompleted;Se.prototype.onYtServiceRequestSent=Se.prototype.onYtServiceRequestSent;Se.prototype.maybeUpdateBellButtonText=Se.prototype.maybeUpdateBellButtonText;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Se.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Se.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Se.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.subscribedEntityKey"],selector:mMX}),_.N("design:type",Object)],Se.prototype,"subscriptionStateEntity",void 0);_.t([_.C({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"subscribed",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"branded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Se.prototype,"animatedActionEnabled",void 0);
_.t([_.C(),_.N("design:type",Object)],Se.prototype,"foregroundLottieRef",void 0);_.t([_.C(),_.N("design:type",Object)],Se.prototype,"backgroundLottieRef",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"overlayButton",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.N("design:type",Object)],Se.prototype,"buttonStyle",void 0);_.t([_.C(),_.N("design:type",Object)],Se.prototype,"forceIconOnly",void 0);
_.t([_.C(),_.N("design:type",Object)],Se.prototype,"showTextWhileAnimating",void 0);_.t([_.C({value:function(){return!!_.iq().resolve(_.OT(_.bD))&&_.e("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],Se.prototype,"useKeyboardFocused",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Se.prototype,"keyboardFocused",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Se.prototype,"isAnimating",void 0);_.t([_.x("data.notificationPreferenceButton.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"hasBellButton",null);
_.t([_.m5("subscribedButtonText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Se.prototype,"maybeUpdateBellButtonText",null);_.t([_.x("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"subscribedButtonText",null);_.t([_.x("data.timedAnimationData.animationTiming","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"smartimationSettings",null);
_.t([_.C({reflectToAttribute:!0}),_.x("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"subscribeButtonHidden",null);_.t([_.C({reflectToAttribute:!0}),_.x("subscribed","hasBellButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"subscribeButtonInvisible",null);
_.t([_.C({reflectToAttribute:!0}),_.x("subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"unsubscribeButtonHidden",null);_.t([_.El("ytd-subscription-notification-toggle-button-renderer-next"),_.N("design:type",Object)],Se.prototype,"bellButton",void 0);_.t([_.El("#subscribe-button-shape"),_.N("design:type",HTMLElement)],Se.prototype,"subscribeButtonShape",void 0);
_.t([_.x("overlayButton","subscribed","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Se.prototype,"buttonShape",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],Se.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Se.prototype,"onYtServiceRequestCompleted",null);
_.t([_.m5("subscribed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Se.prototype,"observedSubscribed",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Se.prototype,"onDataChanged",null);_.t([_.ai("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Se.prototype,"onMouseDown",null);
Se=_.t([_.G({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],Se);
_.H(Se,"ytd-subscribe-button-renderer",function(){if(nW$!==void 0)return nW$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nW$=W},{mode:1});var ZH=function(){var W=_.n.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.R(ZH,_.n);ZH.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ZH.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ZH.prototype,"isRichGrid",void 0);ZH=_.t([_.G({is:"ytd-game-card-renderer",disableElementRegistration:!0})],ZH);
_.H(ZH,"ytd-game-card-renderer",function(){if(znH!==void 0)return znH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return znH=W},{mode:1});var Ib={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.e("defer_menus")&&!nuS?0:void 0,waitForSignal:"eocs"};var fo9;var GQw;var ab=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return W};
_.R(ab,_.n);_.d=ab.prototype;_.d.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.d.onSeriesReminderStateEntityChange=function(){var W,O,b;((W=this.eventReminderStateEntity)==null?0:W.key)&&((O=this.seriesReminderStateEntity)==null?void 0:O.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.AI("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.d.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.d.onYtServiceRequestError=function(){var W;this.updateReminderStateEntitiesFromButtonState((W=this.data)==null?void 0:W.currentState)};
_.d.handleUpdateUpcomingEventReminderButtonStateCommand=function(W){if(W=_.P(W,fwq)){var O,b=(O=this.data)==null?void 0:O.targetId;b&&W.targetId===b&&_.qe(this.updateReminderStateEntitiesFromButtonState.bind(this,W.state))}};
_.d.getButtonStateFromReminderState=function(){var W;if(((W=this.seriesReminderStateEntity)==null?void 0:W.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var O;if(((O=this.eventReminderStateEntity)==null?void 0:O.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var b,T;if(((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((T=this.eventReminderStateEntity)==
null?void 0:T.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var L;return(L=this.data)==null?void 0:L.currentState};
_.d.updateReminderStateEntitiesFromButtonState=function(W){if(W){switch(W){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":W="UPCOMING_EVENT_REMINDER_STATE_NONE";var O="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":W="UPCOMING_EVENT_REMINDER_STATE_SINGLE";O="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":W="UPCOMING_EVENT_REMINDER_STATE_NONE";O="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var b;
((b=this.eventReminderStateEntity)==null?0:b.key)&&this.ytdReduxBehavior.dispatch(_.AI("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:W})));var T;((T=this.seriesReminderStateEntity)==null?0:T.key)&&this.ytdReduxBehavior.dispatch(_.AI("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:O})))}};
_.Jq.Object.defineProperties(ab.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.getButtonStateFromReminderState(),O,b;if(W&&((O=this.data)==null?0:(b=O.states)==null?0:b.length))for(O=_.S(this.data.states),b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;if(((T=_.P(b,GiL))==null?void 0:T.state)===W)return _.P(b,GiL)}}}});
ab.prototype.onYtServiceRequestError=ab.prototype.onYtServiceRequestError;ab.prototype.onYtServiceRequestCompleted=ab.prototype.onYtServiceRequestCompleted;ab.prototype.onSeriesReminderStateEntityChange=ab.prototype.onSeriesReminderStateEntityChange;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ab.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ab.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Ep8}),_.N("design:type",Object)],ab.prototype,"eventReminderStateEntity",void 0);
_.t([_.C({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(W,O){return _.IJ(W.entities,"sportsSeriesReminderStateEntity",O)}}),
_.N("design:type",Object)],ab.prototype,"seriesReminderStateEntity",void 0);_.t([_.x("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ab.prototype,"currentButtonStateRenderer",null);_.t([_.m5("seriesReminderStateEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ab.prototype,"onSeriesReminderStateEntityChange",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ab.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ab.prototype,"onYtServiceRequestError",null);ab=_.t([_.G({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],ab);
_.H(ab,"ytd-upcoming-event-reminder-button-renderer",function(){if(GQw!==void 0)return GQw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return GQw=W},{mode:1});var HLv;var mh=function(){return _.n.apply(this,arguments)||this};
_.R(mh,_.n);mh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Jq.Object.defineProperties(mh.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(_.e("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mh.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],mh.prototype,"shelfDismissal",void 0);_.t([_.x("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],mh.prototype,"text",null);
_.t([_.x("data.responseText"),_.N("design:type",Object),_.N("design:paramtypes",[])],mh.prototype,"textAriaLabel",null);mh=_.t([_.G({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],mh);
_.H(mh,"ytd-notification-multi-action-renderer",function(){if(HLv!==void 0)return HLv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return HLv=W},{mode:1});var tA7;var Yu=function(){return _.n.apply(this,arguments)||this};
_.R(Yu,_.n);Yu.prototype.ready=function(){var W=this;_.Q(this.hostElement).querySelector("#undo").addEventListener("tap",function(){W.onUndoTap()})};
Yu.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yu.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yu.prototype,"data",void 0);Yu=_.t([_.G({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Yu);
_.H(Yu,"ytd-notification-text-renderer",function(){if(tA7!==void 0)return tA7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tA7=W},{mode:1});var $_L;var ES=function(){var W=_.n.apply(this,arguments)||this;W.mouseOverDelayJobId=0;W.fadeInImageDelayJobId=0;W.startTimeMs=-1;W.loadingStartTimeMs=-1;W.loadingEndTimeMs=-1;W.hasVideoPreview=!1;return W};
_.R(ES,_.n);_.d=ES.prototype;_.d.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.d.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.d.showThumbnail=function(){var W=this;this.csn=_.Bb();_.ra("fmth");_.sF.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.dd(_.sF,function(){W.loadingStartTimeMs=(0,_.WO)();var O=_.Q(W.hostElement).querySelector("#thumbnail");O.complete?W.displayMouseOverImage():O.addEventListener("load",_.Ii(W,W.displayMouseOverImage))},150):_.L2(_.Q(this.hostElement).querySelector("#play"),"show",!0)};
_.d.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.d.onTap=function(){this.removeVideoPreview()};
_.d.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var W=this.videoId,O=this.csn,b=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,T=this.startTimeMs,L=this.hasVideoPreview,h=_.Pi(this.trackingParams),Z={isMovingThumbnail:L};L&&T>0&&(b>0&&(Z.movingThumbnailLoadingDurationMs=Math.round(b)),Z.durationHoveredMs=Math.round((0,_.WO)()-T));W&&(Z.videoId=W);_.Nk(O,h,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:Z});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.d.removeVideoPreview=function(){_.sF.cancelJob(this.mouseOverDelayJobId);_.sF.cancelJob(this.fadeInImageDelayJobId);var W=_.Q(this.hostElement).querySelector("#thumbnail");_.L2(W,"fade-in",!1);W.removeEventListener("load",_.Ii(this,this.displayMouseOverImage));W=_.Q(this.hostElement).querySelector("#play");_.L2(W,"fade-in",!1);_.L2(W,"show",!1)};
_.d.displayMouseOverImage=function(){var W=_.Q(this.hostElement).querySelector("#thumbnail"),O=_.Q(this.hostElement).querySelector("#play");this.isImageAvailable(W)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.WO)(),this.startTimeMs=(0,_.WO)(),this.fadeInImageDelayJobId=_.dd(_.sF,function(){_.L2(W,"fade-in",!0)},50)):_.L2(O,"fade-in",!0)};
_.d.computeThumbnail=function(W,O){var b;W&&W.movingThumbnailDetails&&W.movingThumbnailDetails.thumbnails&&O?b=_.bn(W.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):b=O?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(b)return _.l7(b)};
_.d.isImageAvailable=function(W){return!(!W.src||W.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||W.naturalWidth===120)};
ES.prototype.onTap=ES.prototype.onTap;ES.prototype.dataChanged=ES.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ES.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ES.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ES.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ES.prototype,"csn",void 0);_.t([_.C(),_.N("design:type",Object)],ES.prototype,"trackingParams",void 0);
_.t([_.C(),_.N("design:type",String)],ES.prototype,"videoId",void 0);_.t([_.C(),_.N("design:type",Boolean)],ES.prototype,"isAttachedAndDataSet",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ES.prototype,"dataChanged",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ES.prototype,"onTap",null);ES=_.t([_.G({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],ES);
_.H(ES,"ytd-moving-thumbnail-renderer",function(){if($_L!==void 0)return $_L;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return $_L=W},{mode:1});var VAn;_.ZL=function(W){this.hostElement=W;this.eventSink=null;this.eventList=[]};
_.ZL.prototype.shouldForward=function(){var W,O;return(O=(W=this.eventSink)==null?void 0:W.isConnected)!=null?O:document.body.contains(this.eventSink)};
_.ZL.prototype.start=function(W,O){this.eventSink&&this.stop();for(var b=0;b<W.length;b++)this.hostElement.addEventListener(W[b],_.Ii(this,this.forwardEvent));var T;this.eventSink=(T=O.hostElement)!=null?T:O;this.eventList=W};
_.ZL.prototype.stop=function(){for(var W=0;W<this.eventList.length;W++)this.hostElement.removeEventListener(this.eventList[W],_.Ii(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.ZL.prototype.forwardEvent=function(W,O){this.shouldForward()&&(W.stopPropagation(),this.eventSink instanceof Element?_.bX(this.eventSink,W.type,O):_.z5(new _.pu("eventSink is not an element")))};_.wo={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.ZL(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(W,O){this.forwarder_.start(W,O)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var AD=function(){return _.n.apply(this,arguments)||this};
_.R(AD,_.n);_.d=AD.prototype;_.d.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=_.Cv("HTML_DIR")==="rtl"?"right":"left"};
_.d.dataChanged=function(){this.popupOpen=!1};
_.d.computeAriaLabel=function(W){return _.P(W,ODf).label};
_.d.onTap=function(W){W.stopPropagation();W.preventDefault();this.data.command&&_.iq().resolve(_.bq).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
AD.prototype.onPopupClosed=AD.prototype.onPopupClosed;AD.prototype.onPopupOpened=AD.prototype.onPopupOpened;AD.prototype.onTap=AD.prototype.onTap;AD.prototype.dataChanged=AD.prototype.dataChanged;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],AD.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.QX),_.N("design:type",Object)],AD.prototype,"ironButtonState",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],AD.prototype,"componentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],AD.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:-1}),_.N("design:type",Number)],AD.prototype,"tabindex",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.N("design:type",Object)],AD.prototype,"ariaLabel",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],AD.prototype,"disableTooltips",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],AD.prototype,"popupOpen",void 0);
_.t([_.C(),_.N("design:type",Element)],AD.prototype,"eventSink",void 0);_.t([_.El("#tooltip"),_.N("design:type",Object)],AD.prototype,"tooltip",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AD.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],AD.prototype,"onTap",null);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AD.prototype,"onPopupOpened",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AD.prototype,"onPopupClosed",null);AD=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],AD);
_.H(AD,"ytd-thumbnail-overlay-button-renderer",function(){if(VAn!==void 0)return VAn;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return VAn=W},{mode:1});var Nsw;var Xi=function(){return _.n.apply(this,arguments)||this};
_.R(Xi,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xi.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xi.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xi.prototype,"disableAnimation",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xi.prototype,"rounded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xi.prototype,"transparentBackground",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Xi.prototype,"noPadding",void 0);Xi=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Xi);
_.H(Xi,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Nsw!==void 0)return Nsw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Nsw=W},{mode:1});var MAL;var US=function(){return _.n.apply(this,arguments)||this};
_.R(US,_.n);US.prototype.computeIconPosition=function(W){return this.get("iconPosition",W)||null};
US.prototype.computeIconStyle=function(W){return this.get("iconStyle",W)||null};
US.prototype.computeIsIconStyleFilled=function(W){if(!W)return!1;var O;return W.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((O=W.icon)==null?void 0:O.iconType)==="ERROR_BLACK"};
_.t([_.C(),_.N("design:type",Object)],US.prototype,"data",void 0);_.t([_.C({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.N("design:type",Object)],US.prototype,"iconPosition",void 0);_.t([_.C({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.N("design:type",Object)],US.prototype,"iconStyle",void 0);_.t([_.C({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],US.prototype,"iconStyleFilled",void 0);
US=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],US);
_.H(US,"ytd-thumbnail-overlay-icon-renderer",function(){if(MAL!==void 0)return MAL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MAL=W},{mode:1});var uR1;var lL=function(){return _.n.apply(this,arguments)||this};
_.R(lL,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lL.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lL.prototype,"data",void 0);lL=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],lL);
_.H(lL,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(uR1!==void 0)return uR1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return uR1=W},{mode:1});var Jl7;var ee=function(){var W=_.n.apply(this,arguments)||this;W.isPreviewLoading=!1;return W};
_.R(ee,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ee.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ee.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ee.prototype,"isPreviewLoading",void 0);ee=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],ee);
_.H(ee,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Jl7!==void 0)return Jl7;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Jl7=W},{mode:1});var clq;var Pd=function(){return _.n.apply(this,arguments)||this};
_.R(Pd,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pd.prototype,"data",void 0);Pd=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],Pd);
_.H(Pd,"ytd-thumbnail-overlay-pinking-renderer",function(){if(clq!==void 0)return clq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return clq=W},{mode:1});var Fbw;var pA=function(){var W=_.n.apply(this,arguments)||this;W.disableTooltips=!1;W.isLoading=!1;W.useExpandableTooltip=!1;W.toggled=!1;W.hovered=!1;W.mouseoverDelayJobId=0;W.toggleDelayJobId=0;W.expandAnimationDelayJobId=0;return W};
_.R(pA,_.n);_.d=pA.prototype;_.d.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");_.Q(this.hostElement).querySelector("#tooltip").position=_.Cv("HTML_DIR")==="rtl"?"right":"left"};
_.d.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.sF.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.sF.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.sF.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.d.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.sF.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.sF.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.sF.cancelJob(this.expandAnimationDelayJobId)};
_.d.computeIcon=function(W,O,b){return(W=b?O:W)&&W.iconType?_.Z6(W.iconType):void 0};
_.d.computeAriaLabel=function(W,O,b){return _.P(b?O:W,ODf).label};
_.d.computeTooltip=function(W,O,b){return b?O:W};
_.d.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.d.computeIconOnHover=function(W,O){if((W==null?0:W.iconType)&&!O)return _.Z6(W.iconType)};
_.d.onTap=function(W){var O=this;W.stopPropagation();W.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(W),this.useExpandableTooltip&&(this.toggleDelayJobId=_.dd(_.sF,function(){O.hovered=!1;O.data&&!O.data.toggledServiceEndpoint&&(O.expandAnimationDelayJobId=_.dd(_.sF,function(){O.set("data.isToggled",
!1)},200))},2E3))};
_.d.onMouseenter=function(){var W=this;this.mouseoverDelayJobId=_.dd(_.sF,function(){W.hovered=!0},300)};
_.d.onMouseleave=function(){_.sF.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.d.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.d.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.d.onServiceRequestCompleted=function(W,O){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(O)||this.set("data.isToggled",!this.data.isToggled)};
_.d.serviceRequestWasSuccessful=function(W){return _.P(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.oP)?W.data.status==="STATUS_SUCCEEDED":!0};
pA.prototype.onServiceRequestCompleted=pA.prototype.onServiceRequestCompleted;pA.prototype.onPopupClosed=pA.prototype.onPopupClosed;pA.prototype.onPopupOpened=pA.prototype.onPopupOpened;pA.prototype.onMouseleave=pA.prototype.onMouseleave;pA.prototype.dataChanged=pA.prototype.dataChanged;_.t([_.D(_.QX),_.N("design:type",Object)],pA.prototype,"ironButtonState",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],pA.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],pA.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pA.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.N("design:type",Object)],pA.prototype,"ariaLabel",void 0);_.t([_.C(),_.N("design:type",Object)],pA.prototype,"disableTooltips",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],pA.prototype,"popupOpen",void 0);_.t([_.C(),_.N("design:type",Object)],pA.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Element)],pA.prototype,"eventSink",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],pA.prototype,"useExpandableTooltip",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.N("design:type",Object)],pA.prototype,"toggled",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],pA.prototype,"hovered",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.N("design:type",Object)],pA.prototype,"iconOnHover",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pA.prototype,"dataChanged",null);
_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pA.prototype,"onMouseleave",null);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pA.prototype,"onPopupOpened",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pA.prototype,"onPopupClosed",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],pA.prototype,"onServiceRequestCompleted",null);pA=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],pA);
_.H(pA,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(Fbw!==void 0)return Fbw;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Fbw=W},{mode:_.Lb("kevlar_poly_si_batch_j053")?1:2});var yl9;var Wv1=_.J1(function(W){var O=W.data;var b=function(){return O().enableSegmentView};
return _.E("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.E(_.U,{cond:b,then:function(){return _.E("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.E("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+O().startPercent+"%"}}),_.E("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+O().segmentDurationPercent+"%"}},_.E("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.E("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.E("div",null," ",function(){return O().segmentLabel})),_.E("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.E("div",{class:_.wd("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.E(_.U,{cond:function(){return!b()&&O().startPercent},
then:function(){var T={};return _.E("div",{class:_.wd("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(T.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.e("web_enable_modern_progress_bar_overlay"),T))},_.E("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+O().startPercent+"%"}}))}}))},"M");
Wv1.idomCompat=!0;var OyN=_.J1(function(W){var O=_.I4(),b=_.D3(function(L){var h,Z,a;a:{var m=(h=W.data())==null?void 0:h.animationActivationTargetId;h=((Z=W.data())==null?void 0:Z.animationActivationEntityKey)||"";Z=(a=W.data())==null?void 0:a.animationActivationEntitySelectorType;if(h&&m)switch(Z){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":L=_.IJ(L.entities,"playerStateEntity",h);a=_.iq().resolve(_.OT(_.xq));m=!!(L&&L.videoId===m&&(a==null?0:a.isMiniplayerActive()));m={activated:m,playAnimation:m&&
L.playerState==="PLAYER_STATE_PLAYING"};break a}m=void 0}return m});
_.kb(function(){var L;if((L=b())==null?0:L.activated){var h;if((h=b())==null?0:h.playAnimation){var Z;(Z=O.lottieEl)==null||Z.goToAndPlay(0)}else{var a;(a=O.lottieEl)==null||a.goToAndStop(0)}}});
var T=function(){var L,h=!((L=b())==null||!L.activated);if(W.data()){L=W.data();var Z=void 0;L.icon&&(Z=_.hSi(L.icon),Z=Eth(Z));var a=void 0,m;if((m=L.backgroundColor)==null?0:m.lightTheme){var w;a={backgroundColor:qd((w=L.backgroundColor)==null?void 0:w.lightTheme,"0.8")}}if(L.text||Z||h){if(h&&L.lottieData&&O){w=L.lottieData;var A,X,l;m={animationConfig:{name:w.url,path:w.url,autoplay:(A=w.settings)==null?void 0:A.autoplay,loop:(l=(X=w.settings)==null?void 0:X.loop)!=null?l:!0},animationRef:O}}else m=
void 0;if(h)A=16;else b:switch(L.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":A=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":A=18;break b;default:A=16}h={type:A,text:h&&L.animatedText?L.animatedText:L.text,icon:Z,customColors:a,animation:m}}else h=void 0}else h=void 0;return h};
return _.E("yt-thumbnail-badge-view-model",{class:_.YS("yt-thumbnail-badge-view-model-wiz",W.class)},_.E(_.U,{cond:T,then:function(){return _.E(_.NL,{data:function(){return T()}})}}))},"N");var iyz=_.J1(function(W){var O={};return _.E("yt-thumbnail-bottom-overlay-view-model",{class:_.YS("ytThumbnailBottomOverlayViewModelHost",(O.ytThumbnailBottomOverlayViewModelHostBackground=function(){return W.data().enableGradientBackground},O))},_.E("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.E(_.R4,{data:function(){return W.data().progressBar}},{thumbnailOverlayProgressBarViewModel:Wv1}),_.E(_.R4,{data:function(){return W.data().badge}},{thumbnailBadgeViewModel:function(b){return _.E(OyN,
{data:b.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.E(_.R4,{data:function(){return W.data().badges}},{thumbnailBadgeViewModel:function(b){return _.E(OyN,{data:b.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"O");
iyz.idomCompat=!0;_.O1(iyz,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Ws}});var jcX={calledOnce:!1,state:"visible"},TSe={calledOnce:!1,state:"hidden"};var Rb=_.J1(function(W){var O=W.data;var b=W.className;W=W.alwaysShow;var T=_.uy();_.GJ(T,function(){return O().rendererContext});
var L=_.u_E(),h={};return _.E("thumbnail-hover-overlay-view-model",{el:T,class:_.YS("ytThumbnailHoverOverlayViewModelHost",b,(h.ytThumbnailHoverOverlayViewModelHostForceHover=W,h)),"aria-label":function(){var Z;return(Z=_.P(O().rendererContext,_.A6))==null?void 0:Z.label},
role:function(){return _.np(O().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.np(O().rendererContext)!==void 0?0:void 0},
"on:keypress":L},_.E("div",{class:_.YS("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(O().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var Z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:Z="ytThumbnailHoverOverlayViewModelStyleCover"}return Z})},_.E(_.U,{cond:function(){return O().icon},
then:function(Z){return _.E(_.uj,{data:Z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.E(_.U,{cond:function(){return O().text},
then:function(Z){return _.E(_.uw,{text:Z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"P");
Rb.idomCompat=!0;var byN=_.J1(function(W){var O=W.data;return _.E(_.R4,{data:function(){return O==null?void 0:O().overlays}},{thumbnailHoverOverlayViewModel:Rb})},"Q");
byN.idomCompat=!0;var jgU={};var T21=_.J1(function(W){var O=W.data;var b=W.image;var T=W.state;var L=W.iconType;var h=W.overlays;var Z=W.isOverlay;var a=_.J8();W=_.S(_.wu(!0,void 0,"sUzEZ"));var m=W.next().value,w=W.next().value,A=function(){return!!O().onTap},X=_.Me(L,"LIVE");
_.kb(function(){var p=O();requestAnimationFrame(function(){if(a.value===null)var K=!0;else{var k=a.value;K=p.badgeText;var r=hse(p.size);K in jgU?k=jgU[K]:(k=k.clientWidth,jgU[K]=k);(K=k>r)?a.value.style.display="none":a.value.style.visibility="visible"}w(K)})});
var l=function(){var p={};return p["yt-spec-avatar-shape__image"]=!0,p["yt-spec-avatar-shape__image--ads-app"]=O().type===1,p};
return _.E("yt-avatar-shape",null,_.E("div",{el:_.ci(ZlX(A,{keydown:function(p){if(p.key==="Enter"){var K;(K=p.currentTarget)==null||K.click()}},
click:function(p){var K,k;return void((k=(K=O()).onTap)==null?void 0:k.call(K,p))}})),
class:function(){var p={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},K=O();p=(p[K.clusterLayoutConfig?mWh(K.clusterLayoutConfig):YIi(K.size)]=!0,p["yt-spec-avatar-shape__button--tappable"]=A(),p);(K=O().avatarButtonCustomClassName)&&(p[K]=!0);return _.wd(p)},
"aria-label":function(){return A()?O().accessibilityText:""},
role:function(){return A()?"button":void 0},
tabindex:function(){return A()?0:void 0}},_.E("div",{class:function(){var p,K=O(),k=T==null?void 0:T(),r=Z==null?void 0:Z(),q=!((p=K.decorations)==null||!p.includes(2)||K.size!=="medium"&&K.size!=="large"),f=K.size==="tiny"||K.size==="extra-small",M,V,jQ,y,d8={};
p=(d8["yt-spec-avatar-shape--live-ring"]=!!(((M=K.decorations)==null?0:M.includes(0))&&wrX(K.size)),d8["yt-spec-avatar-shape--stories-watched"]=q&&!(k==null||!k.storiesWatched),d8["yt-spec-avatar-shape--stories-unwatched"]=q&&!(k==null?0:k.storiesWatched),d8["yt-spec-avatar-shape--background-border"]=ArX(K.decorations)&&!f,d8["yt-spec-avatar-shape--background-border-thin"]=ArX(K.decorations)&&f,d8["yt-spec-avatar-shape__on-select-border"]=!((V=K.decorations)==null||!V.includes(4)),d8["yt-spec-avatar-shape__white-border"]=
!((jQ=K.decorations)==null||!jQ.includes(5)),d8["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((y=K.decorations)==null?0:y.includes(5))&&f),d8["yt-spec-avatar-shape--is-overlay"]=!!r,d8);return _.wd(p)},
style:function(){a:{var p=O().clusterLayoutConfig;if(p){b:{var K=p.numAvatarsInCluster;var k=p.avatarIndex;if(k!==K-1){switch(p.clusterSize){case "small":p="32";break;case "medium":p="36";break;case "40":p="40";break;default:K=void 0;break b}K="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+p+"x"+p+"_avatars_"+K+"_index_"+k+".svg"}else K=void 0}if(K){K=_.eE({"-webkit-mask-image":"url("+K+")","mask-image":"url("+K+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}K=void 0}return K}},_.E("div",{class:function(){var p={};
var K=O();p=(p[K.clusterLayoutConfig?IjX(K.clusterLayoutConfig):aj8(K.size)]=!0,p["yt-spec-avatar-shape--no-margin"]=ArX(O().decorations),p);return _.wd(p)}},_.E(_.uj,{data:b,
alt:function(){return!A()&&O().accessibilityText?O().accessibilityText:""},
targetWidth:function(){return EQ8(O().size)},
targetHeight:function(){return EQ8(O().size)},
className:function(){return _.wd(l())}}),_.E(_.U,{cond:function(){var p;
return((p=O().decorations)==null?void 0:p.includes(0))&&wrX(O().size)},
then:function(){return _.E("div",{class:function(){var p={};p=(p["yt-spec-avatar-shape__live-badge"]=!0,p["yt-spec-avatar-shape__live-badge--badge-small"]=O().size==="small",p["yt-spec-avatar-shape__live-badge--badge-medium"]=O().size==="medium"||O().size==="48",p["yt-spec-avatar-shape__live-badge--badge-large"]=O().size==="large",p["yt-spec-avatar-shape__live-badge--badge-extra-large"]=O().size==="extra-large"||O().size==="extra-extra-large"||O().size==="giant",p);return _.wd(p)}},_.E(_.U,{cond:function(){return O().badgeText},
then:function(p){return _.E("div",{class:"yt-spec-avatar-shape__badge-text",el:a},p)}}),_.E(_.U,{cond:m,
then:function(){return _.E("div",{class:"yt-spec-avatar-shape__badge-icon"},_.E(_.Ps,{icon:X,size:function(){a:switch(O().size){case "extra-large":var p=16;break a;default:p=13}return p}}))}}))}}),_.E(_.U,{cond:function(){var p,K;
return((p=O().decorations)==null?void 0:p.includes(1))||((K=O().decorations)==null?void 0:K.includes(0))&&!wrX(O().size)},
then:function(){return _.E("div",{class:function(){var p=O(),K,k,r={};var q=(r["yt-spec-avatar-shape__live-dot"]=!((K=p.decorations)==null||!K.includes(0)||wrX(p.size)),r["yt-spec-avatar-shape__new-content"]=!((k=p.decorations)==null||!k.includes(1)),r);return _.wd(q)}})}}),_.E(_.U,{cond:function(){return!!h},
then:function(){return _.E("div",{class:function(){var p={};p=Object.assign((p["yt-spec-avatar-shape__image-overlays"]=!0,p),l());return _.wd(p)}},h==null?void 0:h())}})))))},"R");
T21.idomCompat={callbacks:{overlays:!0}};_.KF=_.J1(function(W){function O(){b().endpoint&&_.nb(b().endpoint)}
var b=W.data;var T=W.decorations;var L=W.avatarButtonCustomClassName;var h=W.isOverlay;var Z=W.clusterLayoutConfig;return _.E("avatar-view-model",null,_.E(_.U,{cond:function(){return b().image},
then:function(a){return _.E(T21,{data:function(){return UWO({data:b(),onTap:b().endpoint?O:void 0,decorations:T==null?void 0:T(),badgeText:void 0,accessibilityText:b().accessibilityText,avatarButtonCustomClassName:L==null?void 0:L(),clusterLayoutConfig:Z==null?void 0:Z()})},
image:a,iconType:"RADAR_LIVE",overlays:function(){return _.E(byN,{data:b})},
isOverlay:h})}}))},"S");
_.KF.idomCompat=!0;_.KA=_.J1(function(W){var O=W.data;W=W.className;var b=_.J8(),T=function(){return _.P(O().avatar,_.Hm)},L=_.Pj(function(){var h,Z=O(),a=T(),m=_.np(O().rendererContext),w=(h=b.value)!=null?h:void 0,A;
if(a){w={data:Z,avatar:a,onTap:m,element:w};h=w.data;Z=w.avatar;a=w.onTap;m=w.element;w=w.commandController;a=a?prQ(a,m,w):void 0;m=[];h.liveData&&m.push(0);var X;w=(X=h.liveData)==null?void 0:X.liveBadgeText;X=(A=_.P(h.rendererContext,_.A6))==null?void 0:A.label;A=UWO({data:Z,onTap:a,decorations:m,badgeText:w,accessibilityText:X?X:h.a11yLabel})}else A={size:"medium"};return A},void 0,"H8tk9d");
return _.E("yt-decorated-avatar-view-model",{class:_.YS("yt-decorated-avatar-view-model-wiz",W),el:b},_.E(_.U,{cond:function(){var h;return(h=T())==null?void 0:h.image},
then:function(h){return _.E(T21,{data:L,image:h,iconType:"RADAR_LIVE",overlays:function(){return _.E(byN,{data:T})}})}}))},"T");
_.KA.idomCompat=!0;_.vd=_.J1(function(W){var O=function(){var m;return Object.assign({},W.data(),(m=W.overrides)==null?void 0:m.call(W))},b=_.uy(),T=function(){return b&&_.fp(O().rendererContext)};
_.GJ(b,function(){return O().rendererContext});
var L=function(){var m=O().avatars,w,A;return(A=(w=(m==null?0:m[0])?_.P(m[0],_.Hm):void 0)==null?void 0:w.avatarImageSize)!=null?A:"AVATAR_SIZE_UNKNOWN"},h=function(){return PxX(O())},Z=function(){if(O().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var m=void 0;
else if((m=W.decorations)==null?0:m.call(W))m=W.decorations();else{m=O();var w=0;m.avatars&&(w+=m.avatars.length);m.decoratedText&&(w+=1);m=w>1?[3]:[]}return m},a={};
return _.E("yt-avatar-stack-view-model",{el:b,class:_.YS("yt-avatar-stack-view-model-wiz",W.className,(a["yt-avatar-stack-view-model-wiz--tappable"]=T,a["yt-avatar-stack-view-model-wiz--is-overlay"]=W.isOverlay,a["yt-avatar-stack-view-model-wiz--medium-text"]=W.useMediumText,a)),tabindex:function(){return T()?0:void 0},
role:function(){return T()?"link":void 0},
"aria-label":function(){var m,w;return(w=(m=_.P(O().rendererContext,_.A6))==null?void 0:m.label)!=null?w:""}},_.E(_.U,{cond:function(){var m;
return O().avatars&&!((m=W.hideAvatar)==null?0:m.call(W))},
then:function(){return _.E("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.E(_.U,{cond:function(){return O().decoratedText},
then:function(m){var w={};return _.E("div",{class:_.YS("yt-avatar-stack-view-model-wiz__text-container",(w["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return L()==="AVATAR_SIZE_XXS"||L()==="AVATAR_SIZE_XS"},w["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var A;
return((A=W.isOverlay)==null?void 0:A.call(W))&&(L()==="AVATAR_SIZE_XXS"||L()==="AVATAR_SIZE_XS")},w)),
style:_.eE({width:function(){return h().avatarSizeInPx+"px"},
height:function(){return h().avatarSizeInPx+"px"}})},_.E(_.uw,{text:m,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.E("div",{style:function(){return _.eE(h().avatarStackStyle)()},
class:function(){return h().avatarStackClass}},_.E(_.R4,{data:function(){return h().avatars.reverse()}},{avatarViewModel:function(m,w){return _.E("div",{style:function(){var A,X;
return _.eE((X=(A=h()).avatarStyle)==null?void 0:X.call(A,w()))()},
class:function(){return h().avatarClass}},_.E(_.KF,{data:m.data,
decorations:Z,avatarButtonCustomClassName:function(){return h().avatarButtonCustomClassName},
isOverlay:W.isOverlay,clusterLayoutConfig:function(){var A,X;return(X=(A=h()).clusterLayoutConfig)==null?void 0:X.call(A,w())}}))},
decoratedAvatarViewModel:function(m,w){return _.E("div",{style:function(){var A,X;return _.eE((X=(A=h()).avatarStyle)==null?void 0:X.call(A,w()))()},
class:function(){return h().avatarClass}},_.E(_.KA,{data:m.data}))}})))}}),_.E(_.U,{cond:function(){return O().text},
then:function(m){return _.E(_.uw,{text:m,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"U");
_.vd.idomCompat=!0;_.O1(_.J1(function(W){var O=W.data;var b=W.thumbnailSize;return _.E("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.E("div",{class:_.YS("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return Rs1(b==null?void 0:b())})},_.E(_.R4,{data:function(){return O().avatarStack}},{avatarStackViewModel:function(T){return _.E(_.vd,{data:T.data,
decorations:[5]})}})))},"V"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.te,
thumbnailSize:_.te}});var LvL=_.J1(function(W){W=_.um(W,{hidden:!1});var O=W.data;return _.E("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:W.hidden},_.E(_.uw,{text:function(){return O().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.E(_.U,{cond:function(){return O().subtitle},
then:function(){return _.E(_.uw,{text:function(){return O().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"W");
LvL.idomCompat=!0;_.O1(LvL,"yt-thumbnail-overlay-title-view-model",{props:{data:_.te,hidden:_.te}});var dSH=_.J1(function(W){W=_.um(W,{isClip:!1});var O=W.data,b=W.thumbnailSize,T={};return _.E("yt-thumbnail-overlay-badge-view-model",{class:_.YS("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(O().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var L="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:L="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return L},function(){return K$h(b==null?void 0:b())},(T["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
W.isClip,T))},_.E(_.R4,{data:function(){return O().thumbnailBadges}},{thumbnailBadgeViewModel:function(L){return _.E(OyN,{data:L.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"X");
dSH.idomCompat=!0;_.O1(dSH,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.te,thumbnailSize:_.te,isClip:_.te}});_.bO(vQq);_.Z3(vQq,"yt-page-indicator-view-model",{propNames:["data"]});var go=function(){var W=_.n.apply(this,arguments)||this;W.eventSink=function(){return W};
W.disableInteraction=!1;W.noRoundedCorners=!1;W.isPreviewLoading=!1;W.isOriginalAspectRatio=!1;W.computedObjectFit=!1;W.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return W};
_.R(go,_.n);_.d=go.prototype;
_.d.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:_.e("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"}}};
_.d.onImageLoaded=function(){this.loaded=!0};
_.d.onImageUnloaded=function(){this.loaded=!1};
_.d.computeRichThumbnail=function(W,O,b,T){if(W&&O&&!T&&!_.e("disable_moving_thumbs_handling")&&!b)return O};
_.d.computeImageWidth=function(W,O){return O||9999};
_.d.computeIsOriginalAspectRatio=function(W){return W};
_.d.computeIsLive=function(W){if(W==null?0:W.badges)for(var O=0;O<W.badges.length;O++){var b=W.badges[O];if(b.metadataBadgeRenderer&&b.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(W==null?0:W.thumbnailOverlays)for(O=0;O<W.thumbnailOverlays.length;O++)if(b=W.thumbnailOverlays[O],b.thumbnailOverlayTimeStatusRenderer&&b.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.d.computeObjectFit=function(W,O){return O||(W?"CONTAIN":"")};
_.d.computeNavigationEndpoint=function(W,O,b){return W?O:b};
_.d.computeHasClip=function(W){W=_.S(W||[]);for(var O=W.next();!O.done;O=W.next())if(O.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.d.computeOverlayColor=function(W){var O;return(W==null?0:(O=W.darkColorPalette)==null?0:O.section2Color)?W.darkColorPalette.section2Color:W==null?void 0:W.sampledThumbnailColor};
_.Jq.Object.defineProperties(go.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return puh(this.width)}}});
go.prototype.onImageUnloaded=go.prototype.onImageUnloaded;go.prototype.onImageLoaded=go.prototype.onImageLoaded;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],go.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(fDv),_.N("design:type",Object)],go.prototype,"ytdThumbnailBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],go.prototype,"componentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],go.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],go.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],go.prototype,"circular",void 0);
_.t([_.C({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.N("design:type",Object)],go.prototype,"richThumbnail",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.N("design:type",Boolean)],go.prototype,"hasClip",void 0);_.t([_.C(),_.N("design:type",Object)],go.prototype,"eventSink",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],go.prototype,"queued",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],go.prototype,"richGridThumbnail",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],go.prototype,"useExpandableTooltip",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],go.prototype,"useUntranslatedNavigationEndpoint",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],go.prototype,"disableInteraction",void 0);
_.t([_.C({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.N("design:type",Object)],go.prototype,"computedNavigationEndpoint",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],go.prototype,"nowPlayingEqualizerOnly",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],go.prototype,"hidePlaybackStatus",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],go.prototype,"objectFit",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],go.prototype,"noRoundedCorners",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],go.prototype,"watchFeedThumbnail",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],go.prototype,"isPreviewLoading",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.N("design:type",Object)],go.prototype,"isOriginalAspectRatio",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.N("design:type",Object)],go.prototype,"computedObjectFit",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.N("design:type",Boolean)],go.prototype,"isLiveVideo",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],go.prototype,"loaded",void 0);_.t([_.C({computed:"computeOverlayColor(data.thumbnail)"}),_.N("design:type",Object)],go.prototype,"overlayColor",void 0);_.t([_.C({selector:_.Y2X}),_.N("design:type",Boolean)],go.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.C(),_.N("design:type",Number)],go.prototype,"width",void 0);
_.t([_.x("inlinePreviewIsEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],go.prototype,"isPreviewDisabled",null);_.t([_.x("width"),_.N("design:type",String),_.N("design:paramtypes",[])],go.prototype,"thumbnailSize",null);_.t([_.ai("image-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],go.prototype,"onImageLoaded",null);
_.t([_.ai("image-unloaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],go.prototype,"onImageUnloaded",null);go=_.t([_.G({disableElementRegistration:!0,is:"ytd-thumbnail"})],go);
var h1f=_.TH()(go,"ytd-thumbnail",function(){if(yl9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);yl9=W}W=yl9;return W},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var k$X=function(W){var O=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12804_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12804_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(b){SGS(O,b)};
this.onLockupMouseLeaveFn=function(b){b=b.relatedTarget;var T,L;((T=document.getElementsByTagName("ytd-video-preview"))==null?0:(L=T.item(0))==null?0:L.contains(b))||(O.terminateVideoPreview(),ob(O))};
this.onThumbnailMouseDownFn=function(){O.terminateVideoPreview();ob(O)};
this.onTouchStart=function(){O.JSC$12804_touched=!0};
this.mediaRenderer=W.mediaRenderer;this.thumbnailElement=W.thumbnailElement;this.lockupElement=W.lockupElement;this.videoPreviewOptsInput=W.videoPreviewOpts;Zyn(this);Q9(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)):
_.z5(Error("Bh")):_.z5(Error("Ch")):Ilq(this)},b3=function(W){Ilq(W);
var O;(O=W.lockupElement)==null||O.removeEventListener("mouseenter",W.onMouseMoveFn);var b;(b=W.lockupElement)==null||b.removeEventListener("mouseleave",W.onLockupMouseLeaveFn);var T;(T=W.lockupElement)==null||T.removeEventListener("touchstart",W.onTouchStart);var L;(L=W.thumbnailElement)==null||L.removeEventListener("mousedown",W.onThumbnailMouseDownFn);ob(W)},Zyn=function(W){W.inlinePreviewIsEnabledForUser=_.uv().getState().ui.inlinePreviewIsEnabled;
W.unsubscribeFromInlinePreviewIsEnabled=_.mr(_.uv(),_.Y2X,function(O){(W.inlinePreviewIsEnabledForUser=O)||ob(W)});
W.JSC$12804_unsubscribeFromInlinePreviewIsActive=_.mr(_.uv(),_.mN8,function(O){(W.inlinePreviewIsActive=O)||ob(W)})},Ilq=function(W){W.unsubscribeFromInlinePreviewIsEnabled();
W.unsubscribeFromInlinePreviewIsEnabled=function(){};
W.JSC$12804_unsubscribeFromInlinePreviewIsActive();W.JSC$12804_unsubscribeFromInlinePreviewIsActive=function(){}},SGS=function(W,O){O.buttons>0||(O=_.Lu("kevlar_lockup_hover_delay",-1),W.JSC$12804_touched&&O>=0?(_.sF.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.dd(_.sF,function(){alf(W)},O),W.JSC$12804_touched=!1):alf(W))},mSz=function(W){W.videoPreviewJobId=_.dd(_.sF,function(){var O,b,T,L;
return _.I(function(h){if(h.nextAddress==1){if(!Q9(W))return h.return();O=W.getVideoPreviewOpts();if(!O)return h.return();O.isAutoplay=!0;return(T=(b=_.TU(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[O]))&&b[0])?_.Y(h,b[0],3):h.jumpTo(2)}h.nextAddress!=2&&(T=h.yieldResult===1);T&&oQT((L=W.mediaRenderer)==null?void 0:L.data);_.aD(h)})})},alf=function(W){!W.previewTriggered&&Q9(W)&&(W.inlinePreviewIsActive&&W.terminateVideoPreview(),W.previewTriggered=!0,W.mediaRenderer.isInlinePreviewTriggered=
!0,_.sF.cancelJob(W.videoPreviewJobId),W.videoPreviewJobId=_.dd(_.sF,function(){var O,b,T,L;
return _.I(function(h){if(h.nextAddress==1){if(!Q9(W))return h.return();O=W.getVideoPreviewOpts();return O?(T=(b=_.TU(W.mediaRenderer.hostElement,"yt-open-video-preview-action",[O]))&&b[0])?_.Y(h,b[0],3):h.jumpTo(2):h.return()}h.nextAddress!=2&&(T=h.yieldResult===1);T&&oQT((L=W.mediaRenderer)==null?void 0:L.data);_.aD(h)})}))};
k$X.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var W,O;if((O=(W=this.videoPreviewOptsInput)==null?void 0:W.videoPreviewData)!=null)W=O;else if(W=this.mediaRenderer.data)if(gQe(W))W={inlinePlaybackEndpoint:_.xy(W.inlinePlayerData.onVisible),navigationEndpoint:_.xy(W.onTap),thumbnail:"image"in W?W.image:W.thumbnail,thumbnailOverlays:void 0,accessibilityText:QcX(W)};else if("multipleInlinePlaybackEndpoint"in W){var b=_.P(_.P(W.multipleInlinePlaybackEndpoint,b4H),jB9);if(b!=
null&&b.playerDescriptors){O=[];b=_.S(b.playerDescriptors);for(var T=b.next();!T.done;T=b.next())T=T.value,O.push({inlinePlaybackEndpoint:T.inlinePlaybackEndpoint,navigationEndpoint:T.navigationEndpoint,thumbnail:T.thumbnail,thumbnailOverlays:T.thumbnailOverlays,accessibilityText:QcX(W)});W=O}else W=void 0}else W={inlinePlaybackEndpoint:W.inlinePlaybackEndpoint,navigationEndpoint:W.navigationEndpoint,thumbnail:W.thumbnail,thumbnailOverlays:W.thumbnailOverlays,accessibilityText:QcX(W)};else W=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:W,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Q9=function(W){var O;if(O=W.inlinePreviewIsEnabledForUser)O=(W=W.mediaRenderer.data)?"inlinePlaybackEndpoint"in W&&W.inlinePlaybackEndpoint||gQe(W)&&W.inlinePlayerData||"multipleInlinePlaybackEndpoint"in W&&W.multipleInlinePlaybackEndpoint?!0:!1:!1;return O};
k$X.prototype.terminateVideoPreview=function(){_.jx(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var ob=function(W){_.sF.cancelJob(W.videoPreviewJobId);W.inlinePreviewIsActive=!1;W.previewTriggered=!1;W.mediaRenderer.isInlinePreviewTriggered=!1};var YG$=_.ts(["#"]),ku=function(){var W=_.n.apply(this,arguments)||this;W.isDisabled=!1;return W};
_.R(ku,_.n);_.d=ku.prototype;_.d.configureRendererStamper=function(){return{"data.menu":Ib,"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"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.getMetadata=function(W){var O=[];if(W.metadataText&&Object.keys(W.metadataText).length>0){var b=this.ytRendererBehavior.getSimpleString(W.metadataText);W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&(b=_.xz(b,Number(W.upcomingEventData.startTime)));O.push(b)}else W.shortViewCountText&&O.push(this.ytRendererBehavior.getSimpleString(W.shortViewCountText)),W.publishedTimeText&&O.push(this.ytRendererBehavior.getSimpleString(W.publishedTimeText)),W.upcomingEventData&&W.upcomingEventData.upcomingEventText&&
(b=this.ytRendererBehavior.getSimpleString(W.upcomingEventData.upcomingEventText),O.push(_.xz(b,Number(W.upcomingEventData.startTime))));return O};
_.d.calculateBylineText=function(W){return W.shortBylineText?W.shortBylineText:W.bylineText?W.bylineText:null};
_.d.calculateIsDisabled=function(W){return!!W.isDisabled};
_.d.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.RQ(YG$)};
_.d.onDetailsTap=function(W){var O=this.data&&this.data.navigationEndpoint;O&&!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.e("kevlar_grid_video_renderer_killswitch")?_.bX(this.hostElement,"yt-navigate",{endpoint:O}):this.ytComponentBehavior.resolveCommand(O))};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12809_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:_.Q(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Q(this.hostElement).querySelector("ytd-thumbnail")})};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$12809_inlinePreviewHoverListener)==null||b3(W)};
_.d.computeThumbnailWidth=function(W,O){return O&&O>0?O:W?360:210};
_.d.computeShowChannelThumbnail=function(W,O){var b;return O&&!!(W==null?0:(b=W.channelThumbnailSupportedRenderers)==null?0:b.channelThumbnailWithLinkRenderer)};
_.Jq.Object.defineProperties(ku.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$12809_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
ku.prototype.dataChanged=ku.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ku.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ku.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],ku.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.fh),_.N("design:type",Object)],ku.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ku.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ku.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],ku.prototype,"noEndpoints",void 0);_.t([_.C({computed:"calculateBylineText(data)"}),_.N("design:type",Object)],ku.prototype,"bylineText",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ku.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ku.prototype,"isDownloading",void 0);_.t([_.C({reflectToAttribute:!0,value:0}),_.N("design:type",Number)],ku.prototype,"width",void 0);_.t([_.C({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.N("design:type",Object)],ku.prototype,"isDisabled",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ku.prototype,"dataChanged",null);_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ku.prototype,"isHovered",null);ku=_.t([_.G({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],ku);
_.H(ku,"ytd-grid-video-renderer",function(){if(fo9!==void 0)return fo9;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fo9=W},{mode:_.Lb("kevlar_poly_si_batch_j047")?1:2});var ECf;var sS=function(){var W=_.n.apply(this,arguments)||this;W.roundedContainer=!0;W.skipRoundingTop=!1;W.disableTopPadding=!1;W.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return W};
_.R(sS,_.n);sS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
sS.prototype.onClick=function(W){var O,b=(O=this.data)==null?void 0:O.sourceEndpoint;!_.un(_.Nd(W),this.hostElement,["A".toString()])&&b&&_.bX(this.hostElement,"yt-navigate",{endpoint:b})};
_.Jq.Object.defineProperties(sS.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 W;return!((W=this.data)==null||!W.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.data)==null?void 0:W.paragraphMaxLines)!=null?O:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sS.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sS.prototype,"showVerticalDividers",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sS.prototype,"roundedContainer",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sS.prototype,"skipRoundingTop",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sS.prototype,"disableTopPadding",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],sS.prototype,"amsterdamEnabled",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sS.prototype,"showMetadataAtTop",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],sS.prototype,"showMetadataBelowTitle",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],sS.prototype,"hasMenu",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.truncateParagraphs"),_.N("design:type",Object),_.N("design:paramtypes",[])],sS.prototype,"truncateParagraphs",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.paragraphMaxLines"),_.N("design:type",Number),_.N("design:paramtypes",[])],sS.prototype,"paragraphMaxLines",null);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],sS.prototype,"background",null);sS=_.t([_.G({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],sS);
_.H(sS,"ytd-info-panel-content-renderer",function(){if(ECf!==void 0)return ECf;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ECf=W},{mode:_.Lb("kevlar_poly_si_batch_j076")?1:2});var wpS;var Aw5;var XpU;var USU;var Bd=function(){return _.n.apply(this,arguments)||this};
_.R(Bd,_.n);Bd.prototype.computeStyle=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Bd.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Bd.prototype,"style_",void 0);Bd=_.t([_.sl({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Bd);
_.H(Bd,"yt-channel-thumbnail-with-link-renderer",function(){if(USU===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;XpU===void 0&&(XpU=document.createElement("template"));var T=XpU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);USU=W}W=USU;return W},{mode:2});var ro=function(){var W=_.n.apply(this,arguments)||this;W.modernTypography=_.e("web_modern_typography");return W};
_.R(ro,_.n);ro.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"}}}};
ro.prototype.computeTitleStyle=function(W){return W||null};
ro.prototype.computeAvatarStyle=function(W){return W||null};
ro.prototype.computeShowNavigationButton=function(W,O){return!(W==null||!W.navigationButton||O)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ro.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.N("design:type",String)],ro.prototype,"titleStyle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.N("design:type",String)],ro.prototype,"avatarStyle",void 0);_.t([_.C(),_.N("design:type",Boolean)],ro.prototype,"hideNavigationButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ro.prototype,"isModernSd",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ro.prototype,"modernTypography",void 0);
ro=_.t([_.G({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],ro);
_.H(ro,"ytd-rich-list-header-renderer",function(){if(Aw5!==void 0)return Aw5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Aw5=W},{mode:_.Lb("kevlar_poly_si_batch_j058")?1:2});var DH=function(){return _.n.apply(this,arguments)||this};
_.R(DH,_.n);DH.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]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],DH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],DH.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],DH.prototype,"isSearch",void 0);DH=_.t([_.G({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],DH);
_.H(DH,"ytd-preview-card-renderer",function(){if(wpS!==void 0)return wpS;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return wpS=W},{mode:1});var ll1;var xu=function(){return _.n.apply(this,arguments)||this};
_.R(xu,_.n);xu.prototype.configureRendererStamper=function(){return{"data.menu":Ib}};
xu.prototype.dataChanged=function(){var W=this.get("colorExtractionPalette.section1Color",this.data);W=_.zF(W);_.Sl(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":W})};
xu.prototype.computeCardStyle=function(W){return this.get("style.value",W)||null};
xu.prototype.dataChanged=xu.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],xu.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xu.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.N("design:type",String)],xu.prototype,"cardStyle",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xu.prototype,"dataChanged",null);xu=_.t([_.G({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],xu);
_.H(xu,"ytd-compact-channel-recommendation-card-renderer",function(){if(ll1!==void 0)return ll1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ll1=W},{mode:1});var e17;var P0H;var zG=function(){var W=_.n.apply(this,arguments)||this;W.alignAuto=!1;W.collapsed=!0;W.isToggled=!1;W.alwaysCollapsed=!1;W.canToggle=!0;W.collapsedHeight=80;W.disableToggle=!1;W.alwaysToggleable=!1;W.reversed=!1;W.shouldUseNumberOfLines=!1;W.recomputeOnResize=!1;W.canToggleJobId=0;W.lastReversed=!1;return W};
_.R(zG,_.n);_.d=zG.prototype;_.d.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.d.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.d.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var W=_.Q(this.hostElement),O=W.childNodes,b=document.createDocumentFragment(),T=W.childNodes.length-1;T>=0;T--)_.Q(b).appendChild(O[T]);_.e("enable_shadydom_free_scoped_node_methods")?_.T0(this.hostElement).appendChild(b):W.appendChild(b)}};
_.d.ready=function(){var W=this;_.qe(function(){W.initChildrenObserver()},1)};
_.d.detached=function(){this.detachObserver()};
_.d.toggle=function(W,O){this.canToggle&&(this.isToggled=O,_.bX(this.hostElement,"yt-refit"),W&&W.stopPropagation())};
_.d.reset=function(){this.childrenChanged()};
_.d.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.d.computeIsMoreVisible=function(W,O){return W&&!O};
_.d.computeShouldUseNumberOfLines=function(W){try{return!!W&&window.CSS.supports("-webkit-line-clamp","1")}catch(O){}return!1};
_.d.computeIsLessVisible=function(W,O){return W&&O};
_.d.observeCollapsedHeightAndMaxLines=function(){var W=this.collapsedHeight,O=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Sl(this.hostElement,{"--ytd-expander-max-lines":""+O,"--ytd-expander-collapsed-height":""}):_.Sl(this.hostElement,{"--ytd-expander-collapsed-height":W+"px","--ytd-expander-max-lines":""})};
_.d.handleMoreTap=function(W){this.disableToggle||(_.bX(this.hostElement,"yt-expander-more-tapped"),this.toggle(W,!0))};
_.d.handleLessTap=function(W){_.bX(this.hostElement,"yt-expander-less-tapped");this.toggle(W,!1)};
_.d.initChildrenObserver=function(){var W=this;this.observer=new MutationObserver(function(){W.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.d.childrenChanged=function(){var W=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Ld(function(){W.canToggleJobId=0;W.calculateCanCollapse()})}))};
_.d.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};
_.d.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.d.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("collapsed-changed",this.collapsed))};
_.d.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("is-toggled-changed",this.isToggled))};
_.d.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("can-toggle-changed",this.canToggle))};
_.Jq.Object.defineProperties(zG.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
zG.prototype.canToggleChangedForBinding=zG.prototype.canToggleChangedForBinding;zG.prototype.isToggledChangedForBinding=zG.prototype.isToggledChangedForBinding;zG.prototype.collapsedChangedForBinding=zG.prototype.collapsedChangedForBinding;zG.prototype.observeCollapsedHeightAndMaxLines=zG.prototype.observeCollapsedHeightAndMaxLines;zG.prototype.onIronResize=zG.prototype.onIronResize;zG.prototype.reversedChanged=zG.prototype.reversedChanged;zG.prototype.toggledChanged=zG.prototype.toggledChanged;
zG.prototype.alwaysToggleableChanged=zG.prototype.alwaysToggleableChanged;_.t([_.D(_.vL),_.N("design:type",Object)],zG.prototype,"ironResizableBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],zG.prototype,"alignAuto",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],zG.prototype,"collapsed",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"isToggled",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"alwaysCollapsed",void 0);
_.t([_.C(),_.N("design:type",Object)],zG.prototype,"canToggle",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"collapsedHeight",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"disableToggle",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"alwaysToggleable",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"reversed",void 0);_.t([_.C(),_.N("design:type",Number)],zG.prototype,"maxNumberOfLines",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.N("design:type",Object)],zG.prototype,"shouldUseNumberOfLines",void 0);_.t([_.C(),_.N("design:type",Object)],zG.prototype,"recomputeOnResize",void 0);_.t([_.El("#content"),_.N("design:type",HTMLDivElement)],zG.prototype,"content",void 0);_.t([_.Ul("alwaysToggleable"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"alwaysToggleableChanged",null);
_.t([_.Ul("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"toggledChanged",null);_.t([_.x("canToggleJobId"),_.N("design:type",Object),_.N("design:paramtypes",[])],zG.prototype,"isResetting",null);_.t([_.m5("reversed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"reversedChanged",null);
_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"onIronResize",null);_.t([_.m5("maxNumberOfLines","collapsedHeight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"observeCollapsedHeightAndMaxLines",null);_.t([_.m5("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"collapsedChangedForBinding",null);
_.t([_.m5("isToggled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"isToggledChangedForBinding",null);_.t([_.m5("canToggle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zG.prototype,"canToggleChangedForBinding",null);zG=_.t([_.G({disableElementRegistration:!0,is:"ytd-expander"})],zG);
_.H(zG,"ytd-expander",function(){if(P0H!==void 0)return P0H;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return P0H=W},{mode:1});var CA=function(){return _.n.apply(this,arguments)||this};
_.R(CA,_.n);CA.prototype.computeIsCarousel=function(W){return!!W.isCarousel};
CA.prototype.observeLightsourcePalette=function(){var W,O=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;O&&_.kS(this.hostElement,O)};
CA.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
CA.prototype.observeLightsourcePalette=CA.prototype.observeLightsourcePalette;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CA.prototype,"data",void 0);_.t([_.C({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],CA.prototype,"isCarousel",void 0);
_.t([_.m5("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CA.prototype,"observeLightsourcePalette",null);CA=_.t([_.G({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],CA);
_.H(CA,"ytd-media-upsell-renderer",function(){if(e17!==void 0)return e17;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return e17=W},{mode:2});var ppn;var qo=function(){var W=_.n.apply(this,arguments)||this;W.JSC$12837_playerEvents=new Map;W.listeningToPlayer=!1;W.startX=0;W.active=!1;W.shouldShowButtons=_.e("web_buttons_hidden_killswitch");W.isHighlighted=!1;W.useHighlightStyling=_.e("web_enable_deeper_metadata_highlight_styling");W.modern=_.e("kevlar_modern_sd");W.enableProblemWalkthrough=_.e("problem_walkthrough_sd");return W};
_.R(qo,_.n);_.d=qo.prototype;
_.d.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}}}}}};
_.d.created=function(){this.JSC$12837_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.Ii(this,this.onRepeatButtonToggle));_.e("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.Ii(this,this.onActiveUpdate))};
_.d.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.Ii(this,this.onRepeatButtonToggle));_.e("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.Ii(this,this.onActiveUpdate))};
_.d.onDataChanged=function(){this.removePlayerListeners()};
_.d.onColorPaletteChange=function(){var W={},O;if(_.K_()==="USER_INTERFACE_THEME_DARK"&&((O=this.data)==null?0:O.darkColorPalette)){var b=this.data.darkColorPalette;W["--ytd-macro-markers-list-item-background-color"]=_.C_(this.get("section2Color",b))}else{var T;_.K_()==="USER_INTERFACE_THEME_LIGHT"&&((T=this.data)==null?0:T.lightColorPalette)&&(b=this.data.lightColorPalette,W["--ytd-macro-markers-list-item-background-color"]=_.C_(this.get("section3Color",b)))}b?(W["--ytd-macro-markers-list-item-title-color"]=
_.C_(this.get("primaryTitleColor",b)),W["--ytd-macro-markers-list-item-secondary-color"]=_.C_(this.get("secondaryTitleColor",b)),W["--ytd-macro-markers-list-item-timestamp-background-color"]=_.C_(this.get("section1Color",b)),this.customButtonProperties={customColors:{color:_.C_(this.get("primaryTitleColor",b))}},this.useColorSampling=!0):(W["--ytd-macro-markers-list-item-background-color"]="initial",W["--ytd-macro-markers-list-item-title-color"]="initial",W["--ytd-macro-markers-list-item-secondary-color"]=
"initial",W["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Sl(this.hostElement,W)};
_.d.onEndpointMouseDown=function(W){this.startX=W.clientX};
_.d.onEndpointClick=function(W){var O=this,b,T,L;return _.I(function(h){if(h.nextAddress==1){if(O.startX!==W.clientX)return W.preventDefault(),h.return();O.data&&O.ytRendererBehavior.logExplicitClick(O.data);if(!O.seekWithAnimationOnClick)return h.jumpTo(0);if(W.button!==0||W.shiftKey||W.altKey||W.metaKey||W.ctrlKey||_.un(_.Nd(W),O.hostElement,["BUTTON".toString()]))return h.return();W.stopPropagation();W.preventDefault();return O.data?_.Y(h,_.Wm().getPlayerPromise(),3):h.return()}b=h.yieldResult;
L=(T=_.P(O.data.onTap,_.V3))==null?void 0:T.startTimeSeconds;L!==void 0&&b.seekToTimeWithAnimation(L*1E3,_.NX(O.data.title));_.aD(h)})};
_.d.computeLayout=function(W){return W};
_.d.computeIsHighlighted=function(W){return!!W};
_.d.computeCarouselType=function(W){return W};
_.d.hideModernCarousel=function(W){return this.modern&&this.hideThumbnail(W)};
_.d.hideThumbnail=function(W){return this.enableProblemWalkthrough&&W!==null&&W==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.d.onRepeatButtonToggle=function(W){var O=this;W.detail.toggled&&_.Wm().getPlayerPromise().then(function(b){O.ytPlayerListenerBehavior.listenToPlayerEvents(b,O.JSC$12837_playerEvents);O.listeningToPlayer=!0})};
_.d.onLoopRangeChange=function(W){var O=_.Q(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(O){var b=O.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",O.polymerController.data);if(b){var T=Number(b.endTimeMs);if(Number(b.startTimeMs)!==(W==null?void 0:W.startTimeMs)||T!==(W==null?void 0:W.endTimeMs))O.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.d.removePlayerListeners=function(){var W=this;this.listeningToPlayer&&_.Wm().getPlayerPromise().then(function(O){W.ytPlayerListenerBehavior.unlistenFromPlayerEvents(O,W.JSC$12837_playerEvents);W.listeningToPlayer=!1})};
_.d.onActiveUpdate=function(W){this.active=W.detail.active};
qo.prototype.onColorPaletteChange=qo.prototype.onColorPaletteChange;qo.prototype.onDataChanged=qo.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],qo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],qo.prototype,"ytPlayerListenerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],qo.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],qo.prototype,"useCustomColors",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qo.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],qo.prototype,"shouldShowButtons",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.N("design:type",String)],qo.prototype,"layout",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.N("design:type",Object)],qo.prototype,"isHighlighted",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qo.prototype,"useHighlightStyling",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qo.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qo.prototype,"enableProblemWalkthrough",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.N("design:type",String)],qo.prototype,"carouselType",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],qo.prototype,"useColorSampling",void 0);_.t([_.C(),_.N("design:type",Boolean)],qo.prototype,"seekWithAnimationOnClick",void 0);_.t([_.C(),_.N("design:type",Object)],qo.prototype,"customButtonProperties",void 0);
_.t([_.El("#repeat-button"),_.N("design:type",HTMLElement)],qo.prototype,"repeatButton",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qo.prototype,"onDataChanged",null);_.t([_.m5("data.lightColorPalette","data.darkColorPalette"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qo.prototype,"onColorPaletteChange",null);
qo=_.t([_.G({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],qo);
_.H(qo,"ytd-macro-markers-list-item-renderer",function(){if(ppn!==void 0)return ppn;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ppn=W},{mode:1});var R1N;var Kvf;var nA=function(){var W=_.n.apply(this,arguments)||this;W.modernTypography=_.e("web_modern_typography");return W};
_.R(nA,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nA.prototype,"modernTypography",void 0);_.t([_.C(),_.N("design:type",Object)],nA.prototype,"data",void 0);nA=_.t([_.G({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],nA);
_.H(nA,"ytd-title-and-button-list-header-renderer",function(){if(Kvf!==void 0)return Kvf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Kvf=W},{mode:1});var vCn;var gC9=new _.MV("BUTTON_RENDERER_WIZ_TOKEN"),oC$=new _.MV("BUTTON_RENDERER_TOKEN");_.fA=_.J1(function(W){var O=_.iq().resolve(_.OT(gC9));if(O)return _.E(O,Object.assign({},W));var b=_.iq().resolve(oC$);return b?_.E(a3e,null,function(){return _.E(cZ,null,function(){var T,L,h,Z,a,m,w,A,X,l,p,K;return void b(W.data(),{onButtonClickCallback:W.onButtonClickCallback,shouldShowIcons:(T=W.shouldShowIcons)==null?void 0:T.call(W),icon:(L=W.icon)==null?void 0:L.call(W),processAllEndpoints:(h=W.processAllEndpoints)==null?void 0:h.call(W),preventDefault:(Z=W.preventDefault)==null?void 0:Z.call(W),
stopPropagation:(a=W.stopPropagation)==null?void 0:a.call(W),disableButtonRendererClickHandling:(m=W.disableButtonRendererClickHandling)==null?void 0:m.call(W),className:(w=W.className)==null?void 0:w.call(W),buttonOverrides:(A=W.buttonOverrides)==null?void 0:A.call(W),forceModernIconButton:(X=W.forceModernIconButton)==null?void 0:X.call(W),isSubscribe:(l=W.isSubscribe)==null?void 0:l.call(W),alignByText:(p=W.alignByText)==null?void 0:p.call(W),forceDisabled:(K=W.forceDisabled)==null?void 0:K.call(W)})})}):
_.E(_.TT,null)},"Y");
_.fA.idomCompat=!0;var Qgz=_.J1(function(W){var O=W.data,b=_.Me(W.useSquareAspectRatio,!1);return _.E("dismissed-mini-game-card-view-model",null,_.E(_.U,{cond:function(){var T,L;return(T=O().responseText)==null?void 0:(L=T.runs)==null?void 0:L.length},
then:function(){var T={};return _.E("div",{class:_.YS("yt-mini-game-card-view-model__dismissed-card",(T["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!b()},T["yt-mini-game-card-view-model--dismissed-square-card"]=b,T))},_.E("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.E(_.U,{cond:function(){return O().responseText.runs[0].text},
then:function(L){return _.E("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:L},L)}}),_.E(_.R4,{data:function(){return O().buttons}},{buttonRenderer:_.fA,
buttonViewModel:_.DO})))}}))},"Z");var xS5=_.J1(function(W){W=_.um(W,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var O=W.data,b=W.useFullWidth,T=W.isDesktopWeb,L=W.addSearchResultTopMargin,h=function(){return O().layout},Z=function(){return O().title},a=function(){return O().metadataText?O().metadataText:O().genre},m=function(){return O().channelName},w=function(){return O().image},A=function(){return O().colorPalette},X=function(){return O().actionButton},l=function(){return O().overflowButton},
p=function(){return O().avatar},K=function(){var f={};
f=_.YS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(f["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return T()},f));
return _.E("div",{class:f},_.E(kfv,{imageData:w,colorPalette:A}),_.E(sgv,{onTap:function(){return O().onTap},
imageData:w,accessibilityText:function(){return O().accessibilityText},
overlayBadgeText:function(){return O().overlayBadgeText},
iconName:function(){return O().iconName},
unplayableInlinePlaybackIconName:function(){return O().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.E(_.U,{cond:function(){return!T()},
then:function(){return _.E(_.TT,null,_.E(B2q,{layout:h,colorPalette:A,isDesktopWeb:T,overflowButton:l,avatar:p,onTap:function(){return O().onTap},
genre:a,title:Z,channelName:m,entityRedesignExperiments:function(){return O().entityRedesignExperiments}}),_.E(GG,{actionButton:X}))}}))},k=function(){var f={};
f=_.YS((f["yt-mini-game-card-view-model--search-result-desktop"]=function(){return T()},f["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!T()},f["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return L()},f));
return _.E("div",{class:f},K(),_.E(rw7,{description:function(){return O().description},
isDesktopWeb:T,title:Z,genre:a,onTap:function(){return O().onTap},
actionButton:X,overflowButton:l,avatar:p,channelName:m}))},r=function(){var f=function(){var V;
return(V=O().entityRedesignExperiments)==null?void 0:V.changePlayablesLayoutWithCta},M={};
M=_.YS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(M["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return f()},M["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return T()},M["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return T()&&O().width===135},M["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return T()},M["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!f()&&T()&&O().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},M["yt-mini-game-card-view-model--big-metadata-font"]=function(){return O().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},M["yt-mini-game-card-view-model--use-full-width"]=function(){return b()},M["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!X()},M));
return _.E("div",{class:M},_.E(_.U,{cond:function(){return f()},
then:function(){return _.E(_.TT,null,_.E(DSz,{entityRedesignExperiments:function(){return O().entityRedesignExperiments},
colorPalette:A,isDesktopWeb:T,onTap:function(){return O().onTap},
accessibilityText:function(){return O().accessibilityText},
overlayBadgeText:function(){return O().overlayBadgeText},
iconName:function(){return O().iconName},
unplayableInlinePlaybackIconName:function(){return O().unplayableInlinePlaybackIconName},
actionButton:X,imageData:w}),_.E(B2q,{layout:h,colorPalette:A,isDesktopWeb:T,overflowButton:l,avatar:p,onTap:function(){return O().onTap},
genre:a,title:Z,channelName:m,entityRedesignExperiments:function(){return O().entityRedesignExperiments}}),_.E(_.U,{cond:function(){return!!f()===!1&&X()},
then:function(){return _.E(GG,{actionButton:X})}}))},
else:function(){return _.E(_.TT,null,_.E(kfv,{imageData:w,colorPalette:A}),_.E(sgv,{onTap:function(){return O().onTap},
imageData:w,accessibilityText:function(){return O().accessibilityText},
overlayBadgeText:function(){return O().overlayBadgeText},
iconName:function(){return O().iconName},
unplayableInlinePlaybackIconName:function(){return O().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.E(B2q,{layout:h,colorPalette:A,isDesktopWeb:T,overflowButton:l,avatar:p,onTap:function(){return O().onTap},
genre:a,title:Z,channelName:m,entityRedesignExperiments:function(){return O().entityRedesignExperiments}}),_.E(GG,{actionButton:X}))}}))},q=function(){var f={};
f=_.YS("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(f["yt-mini-game-card-view-model--square-card-desktop"]=function(){return T()},f["yt-mini-game-card-view-model--use-full-width"]=function(){return b()},f));
return _.E("div",{class:f},_.E(sgv,{onTap:function(){return O().onTap},
imageData:w,accessibilityText:function(){return O().accessibilityText},
overlayBadgeText:function(){return O().overlayBadgeText},
iconName:function(){return O().iconName},
unplayableInlinePlaybackIconName:function(){return O().unplayableInlinePlaybackIconName},
isDesktopWeb:T}),_.E(B2q,{layout:h,colorPalette:A,isDesktopWeb:T,overflowButton:l,avatar:p,onTap:function(){return O().onTap},
genre:a,title:Z,channelName:m,entityRedesignExperiments:function(){return O().entityRedesignExperiments}}))};
return _.E("mini-game-card-view-model",{class:W.className},_.E(_.vU,null,_.E(_.RW,{when:function(){return h()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return r()}),_.E(_.RW,{when:function(){return h()==="MINI_APP_LAYOUT_SQUARE"}},function(){return q()}),_.E(_.RW,{when:function(){return h()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return k()})))},"$");
xS5.idomCompat=!0;var GG=_.J1(function(W){var O=_.Me(W.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.E(_.R4,{data:W.actionButton},{buttonViewModel:function(b){return _.E("div",{class:O},_.E(_.DO,{data:b.data}))}})},"aa"),sgv=_.J1(function(W){var O=W.onTap;
var b=W.imageData;var T=W.accessibilityText;var L=W.overlayBadgeText;var h=W.iconName;var Z=W.unplayableInlinePlaybackIconName;W=W.isDesktopWeb;return _.E(_.jf,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:O},_.E(_.uj,{data:b,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(T==null?void 0:T())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.E(z1H,{overlayBadgeText:L,iconName:h,unplayableInlinePlaybackIconName:Z,isDesktopWeb:W}))},"ba"),z1H=_.J1(function(W){var O=W.overlayBadgeText;
var b=W.iconName;var T=W.unplayableInlinePlaybackIconName;var L=W.isDesktopWeb;return _.E("div",{class:"yt-mini-game-card-view-model__badge-container"},_.E(_.U,{cond:b,then:function(h){return _.E("div",{class:"yt-mini-game-card-view-model__badge"},_.E("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.E(_.Ps,{icon:h,className:"yt-mini-game-card-view-model__icon"}),_.E("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},O)))}}),_.E(_.U,{cond:function(){return!b()&&
O()},
then:function(){return _.E("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},O)}}),_.E(_.U,{cond:function(){return T()&&L()},
then:function(){return _.E("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.E(_.Ps,{icon:T,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ca"),kfv=_.J1(function(W){var O=W.colorPalette;
var b=W.imageData;var T=function(){return O().vibrantColorPalette?O().vibrantColorPalette.section2Color:O().sectionTwoColor};
return _.E(_.TT,null,_.E("div",{class:"yt-mini-game-card-view-model__background-base",style:_.eE({"background-color":function(){return qd(T(),"1")}})}),_.E("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.eE({"background-image":function(){return"url("+b().sources[0].url+")"}})}),_.E("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.eE({background:function(){return"linear-gradient(180deg,\n    "+qd(T(),".8")+" 0%,\n    "+qd(T(),".4")+" 25%,\n    "+qd(O().vibrantColorPalette?O().vibrantColorPalette.section4Color:O().sectionFourColor,".8")+" 100%)"}})}))},"da"),B2q=_.J1(function(W){var O=W.layout;
var b=W.colorPalette;var T=W.overflowButton;var L=W.avatar;var h=W.onTap;var Z=W.title;var a=W.channelName;var m=W.entityRedesignExperiments;var w=W.genre;var A=function(){var l;return O()!=="MINI_APP_LAYOUT_SQUARE"&&((l=b())==null?0:l.textPrimaryColor)?"color: "+qd(b().textPrimaryColor,".7"):""},X=function(){var l;
return m==null?void 0:(l=m())==null?void 0:l.changePlayablesLayoutWithCta};
return _.E("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.E(_.U,{cond:L,then:function(){return _.E("div",{class:"yt-mini-game-card-view-model__avatar"},_.E(_.R4,{data:L},{avatarViewModel:_.KF}))}}),_.E(_.jf,{command:h,
className:"yt-mini-game-card-view-model__metadata-details"},_.E("h3",{class:"yt-mini-game-card-view-model__title",title:Z},Z),_.E(_.U,{cond:L,then:function(){return _.E("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.E("span",{class:"yt-mini-game-card-view-model__genre",title:a,style:A},a),_.E("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:A},w))},
else:function(){return _.E(_.U,{cond:X,then:function(){return _.E("span",{class:"yt-mini-game-card-view-model__genre",title:w},w)},
else:function(){return _.E("span",{class:"yt-mini-game-card-view-model__genre",title:w,style:A},w)}})}})),_.E("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.E(_.R4,{data:T},{buttonViewModel:function(l){var p=l.data;
return _.E(_.DO,{data:function(){return Object.assign({},p(),{customFontColor:X()?void 0:p().customFontColor})}})}})))},"ea"),DSz=_.J1(function(W){var O=W.entityRedesignExperiments;
var b=W.colorPalette;var T=W.isDesktopWeb;var L=W.onTap;var h=W.accessibilityText;var Z=W.overlayBadgeText;var a=W.iconName;var m=W.unplayableInlinePlaybackIconName;var w=W.actionButton;W=W.imageData;var A=function(){var X;return O==null?void 0:(X=O())==null?void 0:X.changePlayablesLayoutWithCta};
return _.E("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.E(kfv,{imageData:W,colorPalette:b}),_.E(sgv,{onTap:L,imageData:W,accessibilityText:h,overlayBadgeText:Z,iconName:a,unplayableInlinePlaybackIconName:m,isDesktopWeb:T}),_.E(_.U,{cond:function(){return(A==null?void 0:A())&&(w==null?void 0:w())},
then:function(){return _.E(GG,{actionButton:w})}}))},"fa"),rw7=_.J1(function(W){var O=W.description;
var b=W.isDesktopWeb;var T=W.title;var L=W.genre;var h=W.onTap;var Z=W.actionButton;var a=W.overflowButton;var m=W.avatar;W=W.channelName;var w={};w=_.YS("yt-mini-game-card-view-model--search-result-metadata-wrapper",(w["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=b,w["yt-mini-game-card-view-model--show-unplayable-on-hover"]=b,w["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!b()},w));
var A={};A=_.YS("yt-mini-game-card-view-model__search-result-info-row",(A["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!b()},A));
return _.E("div",{class:w},_.E("div",{class:A},_.E(_.jf,{command:h,className:"yt-mini-game-card-view-model__metadata-details"},_.E("h3",{class:"yt-mini-game-card-view-model__title",title:T},T),_.E("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)),_.E(GG,{actionButton:Z,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.E("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.E(_.R4,{data:a},{buttonViewModel:_.DO}))),_.E("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.E("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.E("div",{class:"yt-mini-game-card-view-model__avatar"},_.E(_.R4,{data:m},{avatarViewModel:function(X){var l=X.data;return _.E(_.KF,{data:function(){return Object.assign({},l(),{avatarImageSize:b()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.E(_.jf,{command:h,
className:"yt-mini-game-card-view-model__description"},_.E("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},W)),_.E(_.jf,{command:h,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.E("div",null)))),_.E(_.U,{cond:b,then:function(){return _.E(_.jf,{command:h,className:"yt-mini-game-card-view-model__description"},O)}}))},"ga");_.O1(xS5,"mini-game-card-view-model",{props:{data:_.te,className:_.te,useFullWidth:_.te,isDesktopWeb:_.te,addSearchResultTopMargin:_.te}});_.O1(Qgz,"dismissed-mini-game-card-view-model",{props:{data:_.te,useSquareAspectRatio:_.te}});var Hd=function(){var W=_.n.apply(this,arguments)||this;W.isSearch=!1;W.isRichGrid=!1;return W};
_.R(Hd,_.n);_.d=Hd.prototype;_.d.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.d.dismissibleItemOnYtServiceRequestSent=function(W,O){O.actions&&this.dismissibleItemProcessActions(W,O.actions)};
_.d.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.d.dataChanged=function(){this.dismissibleItemReset()};
_.d.dismissibleItemProcessActions=function(W,O){for(var b=0;b<O.length;b++){var T=O[b];_.P(T,_.XZ)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.P(T,_.XZ)),W.stopPropagation())}};
_.d.dismissibleItemHandleReplaceEnclosingAction=function(W){this.dismissedRenderer=W.item;this.isDismissed=!0};
_.d.experimentalPropertiesChanged=function(){_.e("kevlar_mini_game_card_c3po_to_wiz")||this.ytIdomTemplatingBehavior.debounceRender()};
_.d.renderIdom=function(){if(!_.e("kevlar_mini_game_card_c3po_to_wiz")&&this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var W=!!this.useSquareAspectRatio;Nq(Qgz)({data:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:W===void 0?!1:W})}else Nq(xS5)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0})};
_.Jq.Object.defineProperties(Hd.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){if(!_.e("kevlar_mini_game_card_c3po_to_wiz"))return!1;var W;return!!this.data&&!((W=this.dismissedRenderer)==null?0:W.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){if(!_.e("kevlar_mini_game_card_c3po_to_wiz"))return!1;var W;return!((W=this.dismissedRenderer)==null||!W.notificationMultiActionRenderer)}}});
Hd.prototype.experimentalPropertiesChanged=Hd.prototype.experimentalPropertiesChanged;Hd.prototype.dataChanged=Hd.prototype.dataChanged;Hd.prototype.dismissibleItemOnRequestSent=Hd.prototype.dismissibleItemOnRequestSent;Hd.prototype.dismissibleItemOnYtServiceRequestSent=Hd.prototype.dismissibleItemOnYtServiceRequestSent;_.t([_.D(_.e("kevlar_mini_game_card_c3po_to_wiz")?{}:Kuq),_.N("design:type",Object)],Hd.prototype,"ytIdomTemplatingBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Hd.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Hd.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Hd.prototype,"isDismissed",void 0);_.t([_.C(),_.N("design:type",Object)],Hd.prototype,"dismissedRenderer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Hd.prototype,"isRichGrid",void 0);
_.t([_.x("data.layout"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hd.prototype,"useSquareAspectRatio",null);_.t([_.x("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hd.prototype,"showCard",null);_.t([_.x("data","dismissedRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hd.prototype,"showDismissed",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],Hd.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.t([_.ai("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Hd.prototype,"dismissibleItemOnRequestSent",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hd.prototype,"dataChanged",null);_.t([_.m5("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hd.prototype,"experimentalPropertiesChanged",null);Hd=_.t([_.sl({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Hd);
_.H(Hd,"ytd-mini-game-card-view-model",function(){if(vCn!==void 0)return vCn;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return vCn=W},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var C0f;var qG5;var tD=function(){return _.cB.apply(this,arguments)||this};
_.R(tD,_.cB);tD.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
tD.prototype.getContinuationUrl=function(W){var O={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(O.itct=this.data.clickTrackingParams);return _.uW(W,O)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tD.prototype,"data",void 0);tD=_.t([_.sl({is:"yt-reload-continuation",noInjection:!0})],tD);var nCv;var flq;var $u=function(){var W=_.n.apply(this,arguments)||this;W.notificationData={};return W};
_.R($u,_.n);_.d=$u.prototype;_.d.isMenuExpanded=function(W){return W&&W.length<=1?"undefined":"false"};
_.d.dataChanged_=function(){this.selected=void 0;var W=this.computeSelectedIndex_(this.data);W>=0&&(this.selected=W);W=this.data&&this.data.length>1;_.L2(this.hostElement,"has-items",W);_.Q(this.hostElement).querySelector("#label").tabIndex=W?0:-1};
_.d.onDropdownOpen=function(){var W=_.Bb();if(this.parentTrackingParams&&this.data){var O=_.Pi(this.parentTrackingParams);this.data.forEach(function(b){W&&O&&b.trackingParams&&(b=_.Pi(b.trackingParams),_.fV(W,O,b),_.t3(W,[b]))})}else this.parentTrackingParams||_.z5(new _.pu("No parent tracking params passed in for yt-dropdown-menu."))};
_.d.hasNotification=function(W){var O;if(W.targetId&&((O=this.notificationData)==null?0:O.targetId)){var b;return W.targetId===((b=this.notificationData)==null?void 0:b.targetId)}};
_.d.computeSelectedIndex_=function(W){if(W)for(var O=0,b=W.length;O<b;O++)if(W[O].selected)return O;return-1};
_.d.computeLabel_=function(W){return this.data&&W!=void 0?this.data[W].title:""};
_.d.computeShowIcon_=function(W,O){return!O&&!!W};
_.d.computeVerticalOffset_=function(W){return W?36:0};
_.d.computeEndpoint_=function(W){return W.endpoint||W.navigationEndpoint};
_.d.onLabelClick_=function(W){this.data&&this.data.length<=1?W.stopPropagation():this.menuExpanded="true"};
_.d.onIronActivate_=function(W){W=W.detail.item;var O=_.Q(this.hostElement).querySelector("#repeat").itemForElement(W);if(O&&O.trackingParams){var b=_.Bb(),T=_.Pi(O.trackingParams);b&&_.Vw(b,T)}if(O&&O.serviceEndpoint)_.e("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(O.serviceEndpoint):_.da(this.hostElement,[O.serviceEndpoint]),_.bX(this.hostElement,"yt-playlist-reloading");else a:{if((O=W.querySelector("yt-supported-renderers"))&&(O=
O.rendererElement)&&O.is=="yt-reload-continuation"){O.trigger();break a}(W=W.querySelector("yt-reload-continuation"))&&W.trigger()}};
_.d.onTap_=function(W){W.preventDefault()};
_.d.onItemTap_=function(W){this.ytEndpointBehavior.onEndpointTap_(W)};
_.d.onLinkFocus_=function(W){try{var O=W.target}catch(T){}if(O){var b=O.querySelector("tp-yt-paper-item");b&&_.n2(this,"focus",function(){b.focus()})}};
_.d.onMenuClose_=function(){this.menuExpanded="false"};
_.d.isLabelIconActive_=function(W){return W==="true"};
_.d.computeHasSubtitle_=function(W){return!!W};
_.d.computeHrefForItem_=function(W){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(W))};
_.d.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
_.Jq.Object.defineProperties($u.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
$u.prototype.onMenuClose_=$u.prototype.onMenuClose_;$u.prototype.onTap_=$u.prototype.onTap_;$u.prototype.onIronActivate_=$u.prototype.onIronActivate_;$u.prototype.onDropdownOpen=$u.prototype.onDropdownOpen;$u.prototype.dataChanged_=$u.prototype.dataChanged_;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],$u.prototype,"ytEndpointBehavior",void 0);
_.t([_.C(),_.N("design:type",Array)],$u.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],$u.prototype,"parentTrackingParams",void 0);_.t([_.C(),_.N("design:type",Object)],$u.prototype,"selected",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],$u.prototype,"useLabel",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],$u.prototype,"useComputedAriaLabel",void 0);_.t([_.C(),_.N("design:type",String)],$u.prototype,"icon",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],$u.prototype,"iconLabel",void 0);_.t([_.C(),_.N("design:type",String)],$u.prototype,"ariaLabel",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],$u.prototype,"disabled",void 0);_.t([_.C({computed:"isMenuExpanded(data)"}),_.N("design:type",String)],$u.prototype,"menuExpanded",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],$u.prototype,"closeOnActivate",void 0);
_.t([_.C({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.N("design:type",Boolean)],$u.prototype,"modernButtons",void 0);_.t([_.C(),_.N("design:type",Object)],$u.prototype,"notificationData",void 0);_.t([_.x("ariaLabel, selected"),_.C(),_.N("design:type",String),_.N("design:paramtypes",[])],$u.prototype,"computedAriaLabel",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$u.prototype,"dataChanged_",null);
_.t([_.ai("paper-dropdown-open"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$u.prototype,"onDropdownOpen",null);_.t([_.ai("iron-activate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$u.prototype,"onIronActivate_",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$u.prototype,"onTap_",null);
_.t([_.ai("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$u.prototype,"onMenuClose_",null);$u=_.t([_.sl({is:"yt-dropdown-menu",disableElementRegistration:!0})],$u);
_.H($u,"yt-dropdown-menu",function(){if(flq===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;nCv===void 0&&(nCv=document.createElement("template"));var T=nCv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);flq=W}W=flq;return W},{mode:2});var V9=function(){var W=_.n.apply(this,arguments)||this;W.hasNotification=!1;return W};
_.R(V9,_.n);V9.prototype.computeId=function(W){return W};
V9.prototype.computeHorizontalAlign=function(W){return W?"right":"left"};
V9.prototype.computeAccessibilityLabel=function(W){var O,b;return((O=W.accessibility)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label)||null};
V9.prototype.notificationDataChanged=function(){var W;this.hasNotification=!!this.notificationData&&!((W=this.data)==null?0:W.icon)};
V9.prototype.notificationDataChanged=V9.prototype.notificationDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Dz.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],V9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],V9.prototype,"data",void 0);_.t([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],V9.prototype,"id",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],V9.prototype,"isRightAligned",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],V9.prototype,"disabled",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],V9.prototype,"closeOnActivate",void 0);_.t([_.C(),_.N("design:type",Object)],V9.prototype,"notificationData",void 0);_.t([_.C(),_.N("design:type",Object)],V9.prototype,"hasNotification",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],V9.prototype,"useComputedAriaLabel",void 0);_.t([_.m5("notificationData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V9.prototype,"notificationDataChanged",null);V9=_.t([_.sl({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],V9);
_.H(V9,"yt-sort-filter-sub-menu-renderer",function(){if(qG5===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;C0f===void 0&&(C0f=document.createElement("template"));var T=C0f;b.call(O,T.content.cloneNode(!0),W.content.firstChild);qG5=W}W=qG5;return W},{mode:2});_.bO(BSi);
var Gf5=_.J1(function(W){var O=W.children;var b=W.className;var T=W.style;var L=W.role;var h=W.ariaSelected;var Z=W.ariaLabel;var a=W.ariaHidden;var m=W.ariaLabelledby;var w=W.ariaDescribedby;var A=W.command;var X=W.elementsCommand;var l=W.forceNewState;var p=W.tabIdentifier;var K=W.target;var k=W.tabIndex;var r=W.stopPropagation;W=_.Pj(function(){var q=_.Cb({innertubeCommand:A==null?void 0:A(),elementsCommand:X==null?void 0:X(),forceNewState:l==null?void 0:l(),stopPropagation:(r==null?void 0:r())!==
!1});q||(q={});q["aria-hidden$"]=a==null?void 0:a();var f;q.tabindex$=(f=k==null?void 0:k())!=null?f:q.tabindex$;var M;q["force-new-state$"]=(M=l==null?void 0:l())!=null?M:q["force-new-state$"];var V;q.role$=(V=L==null?void 0:L())!=null?V:q.role$;var jQ;q["aria-hidden$"]=(jQ=a==null?void 0:a())!=null?jQ:q["aria-hidden$"];var y;q.target$=(y=K==null?void 0:K())!=null?y:q.target$;return q},void 0,"SU0Mnc");
return _.E(_.jf,{aTagConfig:W,className:b,style:T,ariaLabel:Z,ariaLabelledby:m,ariaDescribedby:w,ariaSelected:h,tabIdentifier:p},O)},"ha");var Hy5=_.AP(rr2);_.bO(rr2);_.O1(Hy5,"place-data-view-model",{props:{data:_.te}});var tFf=new _.MV("INLINE_PLAYBACK_HOOK_TOKEN");var $S7=function(W){this.setActiveSlideIndex=W;this.jobIds=[];this.isSlideshowPlaying=!1},MFf=function(W,O){W.isSlideshowPlaying||(W.isSlideshowPlaying=!0,VFn(W),N2n(W,O,0))},VFn=function(W){_.dd(_.sF,function(){W.setActiveSlideIndex(0)},1)},N2n=function(W,O,b){W.jobIds.push(_.dd(_.sF,function(){var T=b<O-1?b+1:0;
W.setActiveSlideIndex(T);N2n(W,O,T)},1800))};var u_H=new _.MV("IMAGE_ON_LOAD_HANDLER_TOKEN");var Jwz=_.J1(function(W){return _.E("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.E(_.U,{cond:function(){var O;return(O=W.data())==null?void 0:O.thumbnail},
then:function(O){return _.E(_.uj,{data:O,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ia");_.cwN=_.J1(function(W){var O=W.data;var b=W.lockupExperiments;W={};return _.E("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.E("div",{class:_.YS("ytThumbnailOverlayButtonViewModelButton",(W.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var T;return b&&((T=b())==null?void 0:T.useLegacySizedIconButton)},W))},_.E(_.R4,{data:function(){return O().overlayButton}},{buttonViewModel:function(T){return _.E(_.DO,{data:T.data,
buttonOverrides:function(){var L;return b&&((L=b())==null?0:L.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ja");
_.cwN.idomCompat=!0;var Fvf=_.J1(function(W){var O=_.XL(function(b){b.preventDefault();return!1});
return _.E("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":O},_.E(_.R4,{data:function(){return W.data().buttons}},{toggleButtonViewModel:function(b){return _.E("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.E(_.gt,{data:b.data}))}}))},"ka");
Fvf.idomCompat=!0;var ywn=_.J1(function(W){var O=function(){var b;return((b=_.P(W.data().rendererContext,_.A6))==null?void 0:b.label)||""};
return _.E("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.E(_.U,{cond:function(){return W.data().image},
then:function(){return _.E("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.E(_.uj,{data:function(){return W.data().image},
alt:O}))}}),_.E(_.U,{cond:function(){return W.data().text},
then:function(){return _.E("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return W.data().text})}}))},"la");_.No=_.J1(function(W){var O=[],b=function(){var l,p;return puh((l=W.width)==null?void 0:l.call(W),(p=W.height)==null?void 0:p.call(W))},T=_.iq().resolve(_.OT(u_H)),L=_.uy(function(){O.push("elRef.value set");
var l;(l=W.playbackRef)==null||l.call(W,{thumbnailElRef:L,thumbnail:W.data().image,thumbnailOverlays:W.data().overlays,thumbnailSize:b()})});
_.kX(function(){O.push("onInit");_.so(function(){O.push("onCleanup")})});
var h=_.D3(xWP),Z=function(){var l,p;return(p=(l=W.aspectRatio)==null?void 0:l.call(W))!=null?p:0},a=function(){return(W.data().image?_.d3h(W.data().image):Z())<=1&&Z()===0},m=function(){return a()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},w=function(){L.value||_.z5(new _.pu("Thumbnail elRef.value is null",O.join("\n")));
T&&L.value&&T(L.value)},A=function(){var l,p;
return((l=W.hovered)==null?void 0:l.call(W))&&b()!=="large"&&((p=W.data().overlays)==null?void 0:p.some(function(K){return _.P(K,jP7)}))},X={};
return _.E("yt-thumbnail-view-model",{class:_.YS("yt-thumbnail-view-model",W.className,function(){return qIe(Z())},function(){var l,p;
a:{var K=b(),k=(l=W.disableRounding)==null?void 0:l.call(W);l=(p=W.isClip)==null?void 0:p.call(W);if(!k&&!l)switch(K){case "large":p="yt-thumbnail-view-model--large";break a;case "small":p="yt-thumbnail-view-model--small";break a;default:p="yt-thumbnail-view-model--medium";break a}p=void 0}return p},(X["yt-thumbnail-view-model--cinematic"]=a,X)),
style:_.eE({"background-color":function(){var l,p=a()?(l=W.data().backgroundColor)==null?void 0:l.lightTheme:void 0;return p?qd(p,"1"):void 0}}),
el:L},_.E(_.U,{cond:a,then:function(){return _.E("div",{class:"yt-thumbnail-view-model__blurred-image"},_.E(_.uj,{data:function(){return W.data().image},
alt:"",contentMode:m,targetWidth:W.width,onload:w}))}}),_.E("div",{class:"yt-thumbnail-view-model__image"},_.E(_.uj,{data:function(){return W.data().image},
alt:"",contentMode:m,targetWidth:W.width,onload:w}),null),_.E(_.R4,{data:function(){return A()?void 0:W.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:LvL,thumbnailOverlayBadgeViewModel:function(l){return _.E(dSH,{data:l.data,thumbnailSize:b,isClip:W.isClip})},
thumbnailBottomOverlayViewModel:iyz,thumbnailOverlayFullViewModel:ywn,thumbnailOverlayButtonViewModel:function(l){return _.E(_.cwN,{data:l.data,lockupExperiments:W.lockupExperiments})}}),_.E(_.R4,{data:function(){var l;
return((l=W.hovered)==null?0:l.call(W))?W.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(l){return _.E(Rb,{data:l.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Fvf}),_.E(_.R4,{data:function(){var l;return((l=W.hovered)==null?0:l.call(W))&&h()?W.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:Jwz}),_.E(_.U,{cond:W.isClip,then:function(){return _.E("div",{class:"yt-pinking"},_.E("svg",{class:"yt-pinking__pinking-left"},_.E("defs",null,_.E("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.E("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.E("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.E("svg",{class:"yt-pinking__pinking-right"},_.E("defs",null,_.E("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.E("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.E("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ma");
_.No.idomCompat={callbacks:{playbackRef:!0}};var W$q=_.J1(function(W){var O=_.S(_.wu(-1,void 0,"IOLZ0b")),b=O.next().value,T=O.next().value;_.kX(function(){var L=new $S7(T);MFf(L,W.data().thumbnails.length);_.so(function(){if(L.isSlideshowPlaying){L.isSlideshowPlaying=!1;for(var h=L.jobIds,Z=0,a=h.length;Z<a;Z++)_.sF.cancelJob(h[Z]);L.jobIds.length=0}})});
return _.E("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.E(_.R4,{data:function(){return W.data().thumbnails}},{thumbnailViewModel:function(L,h){return _.E("div",{class:function(){var Z=!W.data().primaryThumbnail,a=h(),m=b(),w=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
Z&&a===0&&w.push("yt-collection-thumbnail-slideshow--first-slide");a<=m&&w.push("yt-collection-thumbnail-slideshow--show-slide");return w.join(" ")}},_.E(_.No,{data:L.data,
disableRounding:W.disableRounding}))}}))},"na");
W$q.idomCompat=!0;var nQe=new _.MV("DWELL_DETECTOR_REGISTRY_TOKEN");var il9=_.J1(function(W){var O=fjO(W.triggeringElement),b=function(){return!!W.data().primaryThumbnail};
return _.E("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.E(OlL,{stackEnabled:b,thumbnailSize:function(){var T,L;return puh((T=W.width)==null?void 0:T.call(W),(L=W.height)==null?void 0:L.call(W))},
doubleStack:W.doubleStack,stackColor:function(){return W.data().stackColor}},_.E("div",null,_.E(_.R4,{data:function(){return W.data().primaryThumbnail}},{thumbnailViewModel:function(T){var L={};
return _.E(_.No,{data:T.data,width:W.width,height:W.height,aspectRatio:W.aspectRatio,disableRounding:W.disableRounding,className:_.YS((L["yt-collection-thumbnail-view-model--has-stacks"]=b,L)),hovered:W.hovered,playbackRef:W.playbackRef})}}),_.E(_.U,{cond:function(){var T;
return O()&&((T=W.data().thumbnails)==null?void 0:T.length)},
then:function(){return _.E("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.E(W$q,{data:W.data,disableRounding:function(){return!b()}}))}}))))},"oa");
il9.idomCompat={callbacks:{playbackRef:!0}};
var OlL=_.J1(function(W){var O=W.children;var b=W.stackEnabled;var T=W.thumbnailSize;var L=W.doubleStack;var h=W.stackColor;var Z,a=(Z=_.iq().resolve(_.OT(_.t4)))==null?void 0:Z();return _.E(_.U,{cond:b,then:function(){return _.E(s01,{data:function(){var m,w;return{experimentEnabled:!0,thumbnailSize:T(),doubleStack:L==null?void 0:L(),color:a?h==null?void 0:(m=h())==null?void 0:m.darkTheme:h==null?void 0:(w=h())==null?void 0:w.lightTheme,enableResponsiveMode:!1}}},O)},
else:function(){return O}})},"pa");var blN=new _.MV("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var uL;_.Mo={calledOnce:!0,state:"visible"};uL={calledOnce:!0,state:"hidden"};_.JD=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;var T=W.className;var L=W.delayedClassName;W=W.animationEntityKey;var h=_.uy(),Z=_.Me(W,""),a=_.wt(pY2,Z),m=function(){var y,d8;return(d8=(y=a())==null?void 0:y.value)!=null?d8:!1},w=function(){_.Ne(_.AI("booleanEntity",Z(),{key:Z(),
value:!0}));q=void 0};
W=_.S(_.ln(m));var A=W.next().value,X=W.next().value;W=_.S(_.ln(m));var l=W.next().value,p=W.next().value;W=_.S(_.ln(function(){var y;return m()?(y=O().styleTransitionConfig)==null?void 0:y.destinationStyle:void 0}));
var K=W.next().value,k=W.next().value,r=function(){var y=Object.assign({},O(),K()&&{style:K()}),d8,pE,Qh=y.label,KE=(d8=y.interaction)==null?void 0:(pE=d8.accessibility)==null?void 0:pE.label;d8=y.iconImage?y.label&&y.label.content?y.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Qh,accessibilityLabel:KE,style:$Wi(y.style),type:VRh(y.style),state:"active",size:tRX(y.size),iconPosition:d8,disabled:!1,aTagConfig:Hlq(y,b)}},q;
_.iO(h,{visibilityCallback:function(y){var d8,pE=(d8=O().interaction)==null?void 0:d8.onFirstVisible;y&&pE&&_.nb(pE)},
showOption:_.Mo});var f=function(){return pd(r(),!!O().iconImage)};
T=_.YS(function(){return"ytwAdButtonViewModelHost"},function(){return O().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var y=!!O().delayedAppearanceConfig,d8=A();
return y?d8?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var y=!!O().delayedAppearanceConfig,d8=l();
return y?d8?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!O().delayedAppearanceConfig||A()?L==null?void 0:L():""},T!=null?T:"");
var M=function(){var y,d8=(y=O().delayedAppearanceConfig)==null?void 0:y.delayedInvisibleSeconds;d8&&(q=_.Xg(_.sF,function(){X(!0);V()},d8*1E3))},V=function(){var y,d8=(y=O().delayedAppearanceConfig)==null?void 0:y.delayedVisibleSeconds;
d8&&(q=_.Xg(_.sF,function(){p(!0);jQ()},d8*1E3))},jQ=function(){var y,d8=(y=O().styleTransitionConfig)==null?void 0:y.styleTransitionSeconds,pE,Qh=(pE=O().styleTransitionConfig)==null?void 0:pE.destinationStyle;
d8&&Qh?q=_.Xg(_.sF,function(){k(Qh);w()},d8*1E3):w()};
_.kX(function(){var y;((y=O().delayedAppearanceConfig)==null?0:y.transitionDurationSeconds)&&h.value.style.setProperty("transition-duration",O().delayedAppearanceConfig.transitionDurationSeconds+"s");M()});
_.so(function(){q&&_.sF.cancelJob(q)});
return _.E("ad-button-view-model",{class:T,el:h},_.E(_.U,{cond:r,then:function(){return _.E(cm,{data:r,icon:function(){return _.E(_.U,{cond:function(){return O().iconImage},
then:function(y){return _.E(_.uj,{data:y,alt:"",targetWidth:f,targetHeight:f,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"qa");var jc9=_.J1(function(W){var O=W.data;W=_.uy();_.iO(W,{visibilityCallback:function(b){var T,L=(T=O().interaction)==null?void 0:T.onFirstVisible;b&&L&&_.nb(L)},
showOption:_.Mo});return _.E("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:W},_.E("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.E(_.R4,{data:function(){return O().secondaryAdButton}},{adButtonViewModel:function(b){return _.E(_.JD,{data:b.data})}})),_.E("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.E(_.R4,{data:function(){return O().primaryAdButton}},{adButtonViewModel:function(b){return _.E(_.JD,{data:b.data})}})))},"ra");var TSv=_.J1(function(W){var O=function(){var b;return((b=W.data())==null?void 0:b.answers)||[]};
return _.E("yt-survey-icons",{class:"ytSurveyIconsHost"},_.E("div",{class:"ytSurveyIconsHeader"},_.E("div",{class:"ytSurveyIconsTitle"},function(){var b;return(b=W.data())==null?void 0:b.text}),_.E("div",null,_.E(cm,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var b;(b=W.onDismiss)==null||b.call(W)}}},
iconName:"DISMISSAL"}))),_.E("div",null,_.E("div",{class:"ytSurveyIconsAnswers"},_.E(_.pv,{each:function(){return O()},
keyBy:"INDEX"},function(b,T){return _.E("div",null,_.E(cm,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var L;(L=W.onSelect)==null||L.call(W,b(),T)}}},
icon:function(){return _.E(_.Ps,{icon:function(){var L,h;return(L=b())==null?void 0:(h=L.icon)==null?void 0:h.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.E("div",{class:"ytSurveyIconsAnswersText"},_.E("div",null,function(){return O().length?O()[0].text:""}),_.E("div",null,function(){return O().length?O()[O().length-1].text:""}))))},"sa");var L$$=_.J1(function(W){var O=_.S(_.wu(!1,void 0,"s8HkOb")),b=O.next().value,T=O.next().value,L=_.wt(R12,function(){var a;return(a=W.data().keys)==null?void 0:a.surveyEntityKey}),h=_.wt(Kv1,function(){var a;
return(a=W.data().keys)==null?void 0:a.surveyStateEntityKey});
_.MJ("ytd-slimline-survey-show-action",function(){T(!1)});
var Z=function(){var a,m;var w=(a=h())==null?void 0:(m=a.questionStack)==null?void 0:m[0];if(w!==void 0){var A,X;return(A=L())==null?void 0:(X=A.questions)==null?void 0:X[w]}};
O={};return _.E("yt-slimline-survey-view-model",{class:_.YS("ytSlimlineSurveyViewModelHost",(O.ytSlimlineSurveyViewModelCollapsed=function(){return b()},O))},_.E("div",{class:"ytSlimlineSurveyViewModelContainer"},_.E(_.U,{cond:function(){var a;
return((a=Z())==null?void 0:a.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.E(TSv,{data:function(){return Z()},
onSelect:function(a,m){var w,A;return _.I(function(X){T(!0);if(A=(w=W.data())==null?void 0:w.onSelectRating)_.nb(A),_.Ne(goU(m));_.aD(X)})},
onDismiss:function(){T(!0)}})}})))},"ta");var dWL=_.J1(function(W){return _.E("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.E(_.R4,{data:function(){var O;return(O=W.data())==null?void 0:O.attachments}},{flexibleActionsViewModel:function(O){return _.E("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.E($Mw,{data:O.data,
layout:function(){var b;return((b=W.lockupStyle())==null?void 0:b.arrangement)===1?0:1},
justifyContentOverride:function(){var b;return((b=W.lockupStyle())==null?void 0:b.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(O){return _.E("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.E(L$$,{data:O.data}))},
expandableMetadataViewModel:function(O){O=O.data;var b;return _.E("div",{class:"ytLockupAttachmentsViewModelAttachment"},(b=_.iq().resolve(_.OT(blN)))==null?void 0:b({data:O}))},
adButtonGroupViewModel:function(O){return _.E("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.E(jc9,{data:O.data}))}}))},"ua");var F$1=_.Lu("rich_grid_min_item_width",310),Jre=_.Lu("rich_grid_max_item_width",500);var Z3X=_.J1(function(W){var O=W.data;return _.E("br-nz-badge-shape",{class:_.YS(function(){return LWT(O().brNzRatingBadgeType)}),
role:function(){return O().accessibilityText?"img":void 0},
"aria-label":function(){return O().accessibilityText}},function(){var b;
return(b=O())==null?void 0:b.text})},"va");_.bO(Iee);var hsv,cmX;hsv=_.J1(function(W){var O=function(){var b=W.data(),T,L;return b?SXe(b,!((T=W.workaroundShortsIsThumbnailBadge)==null||!T.call(W)),(L=W.modern)==null?void 0:L.call(W)):void 0};
return _.E("yt-badge-view-model",{class:_.YS("yt-badge-view-model-wiz",W.class)},_.E(_.vU,null,_.E(_.RW,{when:function(){var b;return!((b=O())==null||!b.brNzRatingBadgeType)}},function(){return _.E(Z3X,{data:function(){return O()}})}),_.E(_.RW,{when:function(){return!!O()&&!O().brNzRatingBadgeType}},function(){return _.E(_.NL,{data:function(){return O()}})})))},"wa");
cmX=_.e("web_enable_sink_yt_badge_view_model")?hsv:Iee;_.cd=_.e("web_enable_sink_yt_badge_view_model")?hsv:_.AP(Iee);hsv.idomCompat=!0;var mUe,aeO;mUe=16/9;aeO=2/3;_.Fi=_.J1(function(W){var O=W.data;var b=W.className;var T=W.imageSizeConfig;var L=W.notifyOnLoaded;W=_.uy();var h=function(){return O().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},Z=function(){var p;
return _.fp((p=O())==null?void 0:p.rendererContext)},a={};
a=(a["yt-content-preview-image-view-model-wiz"]=!0,a["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return h()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},a["yt-content-preview-image-view-model-wiz--tappable"]=function(){return Z()},a);
var m=function(){var p,K;return(K=(p=_.P(O().rendererContext,_.A6))==null?void 0:p.label)!=null?K:""},w=function(){return EeX(O())},A=function(){var p=YX8(h(),O().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",T==null?void 0:T(),wE8(w()),O().layoutWidth,O().layoutHeight),K=Object.assign({},p);
p.width&&(K.width=Math.round(p.width));p.height&&(K.height=Math.round(p.height));p.maxWidth&&(K.maxWidth=Math.round(p.maxWidth));p.maxHeight&&(K.maxHeight=Math.round(p.maxHeight));return K},X=_.Pj(function(){return A().height},void 0,"gbmSDf"),l=_.Pj(function(){return A().width},void 0,"BtfJ3b");
_.GJ(W,function(){var p;return(p=O())==null?void 0:p.rendererContext});
return _.E("yt-content-preview-image-view-model",{el:W,role:function(){return Z()?"link":void 0},
tabindex:function(){return Z()?0:void 0},
class:_.YS(b,a,function(){var p=h();var K=T==null?void 0:T();p=p==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||p==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||p==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||p==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(K==null?void 0:K.size)!=null&&K.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(K==null?void 0:K.size)!=null&&K.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return p}),
style:function(){var p=A(),K=[];p.width&&K.push("width: "+p.width+"px");p.height&&K.push("height: "+p.height+"px");p.maxWidth&&K.push("max-width: "+p.maxWidth+"px");p.maxHeight&&K.push("max-height: "+p.maxHeight+"px");p.fullWidth&&K.push("width: 100%");return K.join(";")}},_.E(_.U,{cond:w,
then:function(p){return _.E(_.uj,{data:p,alt:m,"data-disabled$":function(){return!m()},
notifyOnLoaded:L,targetWidth:l,targetHeight:X,preserveWidth:function(){return!!l()},
preserveHeight:function(){return!!X()}})}}),_.E(_.R4,{data:function(){var p;
return(p=O())==null?void 0:p.overlays}},{thumbnailHoverOverlayViewModel:Rb,
thumbnailOverlayButtonViewModel:_.cwN}))},"xa");
_.Fi.idomCompat=!0;var Zl9=_.J1(function(W){var O=W.data;var b=W.className;var T=W.useSmallLayout;var L=W.useMediumText;W=_.uy();var h={};L=(h["yt-attribution-view-model-wiz"]=!0,h["yt-attribution-view-model-wiz--medium-text"]=L,h);_.GJ(W,function(){var Z;return(Z=O())==null?void 0:Z.rendererContext});
return _.E("yt-attribution-view-model",{el:W,class:_.YS(b,L)},_.E(_.U,{cond:function(){return _.fp(O().rendererContext)},
then:function(){return _.E("button",{class:"yt-attribution-view-model-wiz--tappable"},_.E(SIN,{data:O,useSmallLayout:T}))},
else:function(){return _.E(SIN,{data:O,useSmallLayout:T})}}))},"ya"),SIN=_.J1(function(W){var O=W.data;
var b=W.useSmallLayout;var T=function(){return{size:(b==null?0:b())?16:24}};
return _.E(_.TT,null,_.E(_.R4,{data:function(){return O().contentPreviewImage}},{contentPreviewImageViewModel:function(L){return _.E(_.Fi,{data:L.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:T})}}),_.E(_.R4,{data:function(){return O().badge}},{badgeViewModel:function(L){return _.E(_.cd,{data:L.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.E(_.U,{cond:function(){return O().text},
then:function(){return _.E(_.uw,{text:function(){return O().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.E(_.U,{cond:function(){return O().suffix},
then:function(){return _.E(_.uw,{text:function(){return O().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"za");
Zl9.idomCompat=!0;var pEq=_.lw({avatarStackViewModel:_.vd,badgeViewModel:cmX});_.bO(veP);var Ij9,ajL,mWq,YIS,EQL,wrn;Ij9=_.J1(function(W){var O=W.delimiter;var b=W.max;var T=W.index;var L=W.isStandalone;return _.E(_.U,{cond:function(){return b()-1>T()},
then:function(){var h={};return _.E("span",{class:_.YS("yt-content-metadata-view-model-wiz__delimiter",(h["yt-content-metadata-view-model-wiz__delimiter--standalone"]=L,h)),"aria-hidden":!0},O)}})},"Aa");
ajL=_.J1(function(W){var O=W.metadataPart;var b=W.maxLines;return _.E(_.uw,{text:function(){return O().text},
linkInheritColor:!0,className:function(){return geO(b())},
userInput:!0})},"Ba");
mWq=_.J1(function(W){var O=W.metadataPart;var b=W.maxLines;return _.E(_.U,{cond:function(){return O().tooltip},
then:function(T){return _.E("span",{title:T,role:"tooltip"},_.E(ajL,{metadataPart:O,maxLines:b}))},
else:function(){return _.E(ajL,{metadataPart:O,maxLines:b})}})},"Ca");
YIS=_.J1(function(W){var O=W.metadataPart;var b=W.isOverlay;var T=W.useMediumText;var L=W.hideAvatar;var h=function(){return O().maxLines!==void 0?O().maxLines:1};
return _.E(_.TT,null,_.E(_.R4,{data:function(){return O().avatarStack}},{avatarStackViewModel:function(Z){return _.E(_.vd,{data:Z.data,
isOverlay:b,useMediumText:T,hideAvatar:L})},
badgeViewModel:_.cd}),_.E(_.U,{cond:function(){return O().text},
then:function(){return _.E(mWq,{metadataPart:O,maxLines:h})}}))},"Da");
EQL=_.J1(function(W){var O=W.metadataRow;var b=W.isInline;var T=W.delimiter;var L=W.isOverlay;var h=W.useMediumText;var Z=W.extensions;var a=function(){var w;return XEX(Z==null?void 0:(w=Z())==null?void 0:w.lockupMetadata,O())},m=function(){return O().metadataParts||[]};
W={};return _.E("div",{class:_.YS("yt-content-metadata-view-model-wiz__metadata-row",(W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=b,W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var w;return UUX(Z==null?void 0:(w=Z())==null?void 0:w.lockupMetadata,O())},W["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var w;
return!!(Z==null?0:(w=Z())==null?0:w.lockupMetadata)&&O().badges},W))},_.E(_.R4,{data:function(){return O().badges}},{badgeViewModel:function(w){return _.E("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.E(_.cd,{data:w.data}))}}),_.E(_.pv,{each:m},function(w,A){return _.E(_.TT,null,_.E(YIS,{metadataPart:w,
isOverlay:L,useMediumText:h,hideAvatar:a}),_.E(Ij9,{delimiter:T,max:function(){return m().length},
index:A,isStandalone:!1}))}),_.E(_.U,{cond:function(){return O().isSpacerRow&&!b()},
then:function(){return _.E("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ea");
wrn=_.J1(function(W){var O=_.um(W,{layout:0,isOverlay:!1});W=O.className;var b=O.data,T=O.layout,L=O.isOverlay,h=O.useMediumText,Z=O.extensions;O=_.uy();var a=function(){return T()===0};
_.GJ(O,function(){return b().rendererContext});
var m=function(){return b().metadataRows||[]},w={};
return _.E("yt-content-metadata-view-model",{class:_.YS(W,"yt-content-metadata-view-model-wiz",(w["yt-content-metadata-view-model-wiz--inline"]=a,w["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.fp(b().rendererContext)},w["yt-content-metadata-view-model-wiz--medium-text"]=h,w)),
el:O},_.E(_.pv,{each:m},function(A,X){return _.E(_.TT,null,_.E(EQL,{metadataRow:A,isInline:a,delimiter:function(){return b().delimiter},
isOverlay:L,useMediumText:h,extensions:Z}),_.E(_.U,{cond:function(){return a()&&!A.isSpacerRow},
then:function(){return _.E(Ij9,{delimiter:function(){return b().delimiter},
max:function(){return m().length},
index:X,isStandalone:!0})}}))}))},"Fa");
_.Arw=_.e("web_enable_sink_yt_content_metadata_view_model")?wrn:_.AP(veP);wrn.idomCompat=!0;var Xr7=_.J1(function(W){var O={};return _.E("yt-lockup-metadata-view-model",{class:_.YS("yt-lockup-metadata-view-model-wiz",function(){a:{var b=W.lockupStyle();if(b==null?0:b.isOverlay)b="yt-lockup-metadata-view-model-wiz--overlay";else switch(b==null?void 0:b.arrangement){case 1:b="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:b="yt-lockup-metadata-view-model-wiz--vertical"}}return b},function(){a:{var b=W.lockupStyle();
if(b==null?0:b.isTiny)b="yt-lockup-metadata-view-model-wiz--tiny";else switch(b==null?void 0:b.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":b="yt-lockup-metadata-view-model-wiz--compact";break a;default:b="yt-lockup-metadata-view-model-wiz--standard"}}return b},(O["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.isOverlay},O["yt-lockup-metadata-view-model-wiz--card"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.isCard},O["yt-lockup-metadata-view-model-wiz--centered"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.isCentered},O["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.typographyBump},O["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.useLegacyTypography},O["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var b;
return(b=W.lockupStyle())==null?void 0:b.useRichGridLegacyTypography},O))},_.E(_.R4,{data:function(){return W.data().image}},{avatarStackViewModel:function(b){return _.E("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.E(_.vd,{data:b.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(b){return _.E("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.E(_.KF,{data:b.data}))},
decoratedAvatarViewModel:function(b){return _.E("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.E(_.KA,{data:b.data}))}}),_.E("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.E("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var b;return(b=W.data().title)==null?void 0:b.content}},_.E(_.U,{cond:function(){return W.data().title},
then:function(b){return _.E(_.jf,{command:W.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:W.lockupAccessibilityLabel},_.E(_.uw,{text:b}))}})),_.E("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.E(_.R4,{data:function(){return W.data().metadata}},{contentMetadataViewModel:function(b){return _.E(_.Arw,{data:b.data,
layout:1,useMediumText:function(){var T,L;return((T=W.lockupStyle())==null?void 0:T.typographyBump)||((L=W.lockupStyle())==null?void 0:L.useRichGridLegacyTypography)},
extensions:function(){var T,L;return{lockupMetadata:{byline:{hideAvatar:((T=W.lockupStyle())==null?void 0:T.arrangement)===0,addPadding:((L=W.lockupStyle())==null?void 0:L.arrangement)===1}}}}})}})),_.E(_.R4,{data:function(){return W.data().attribution}},{attributionViewModel:function(b){return _.E("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.E(Zl9,{data:b.data,
useSmallLayout:!0}))}})),_.E("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.E(_.R4,{data:function(){return W.data().menuButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
buttonOverrides:function(){var T;return((T=W.lockupStyle())==null?0:T.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ga");
Xr7.idomCompat=!0;var UWU=_.J1(function(W){var O=_.uy();_.oW(function(){requestAnimationFrame(function(){_.JS(O.value)})});
var b={},T={},L={};return _.E("notification-multi-action-renderer",{class:_.YS("ytNotificationMultiActionRendererHost",(b.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var h;return(h=W.useLegacyShelfStyle)==null?void 0:h.call(W)},b)),
el:O},_.E("span",{"aria-live":"polite",class:_.YS("ytNotificationMultiActionRendererTextContainer",(T.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var h;return(h=W.useLegacyShelfStyle)==null?void 0:h.call(W)},T))},_.E(_.uw,{text:function(){return W.data().responseText}})),_.E("div",{class:_.YS("ytNotificationMultiActionRendererButtonContainer",(L.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var h;
return(h=W.useLegacyShelfStyle)==null?void 0:h.call(W)},L))},_.E(_.R4,{data:function(){var h;
return(h=W.data().buttons)==null?void 0:h.map(function(Z){if(Z=Z.buttonRenderer){var a,m=Object,w=m.assign,A=(a=Z.icon)==null?void 0:a.iconType;a=(a=Z.command||Z.serviceEndpoint||Z.navigationEndpoint)?{innertubeCommand:a}:void 0;Z={buttonViewModel:w.call(m,{},{iconName:A,onTap:a,trackingParams:Z.trackingParams,titleFormatted:Z.text?_.sz(Z.text):void 0},oeE(Z))}}else Z=void 0;return Z}).filter(function(Z){return!!Z})}},{buttonViewModel:function(h,Z){return _.E("div",null,_.E(_.DO,{data:h.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var a;return((a=W.useModernStyles)==null?0:a.call(W))?{type:Z()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ha");var ljU=_.J1(function(W){var O=_.uy();_.oW(function(){requestAnimationFrame(function(){_.JS(O.value)})});
return _.E("notification-text-renderer",{el:O,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.E(_.uw,{text:function(){return W.data().successResponseText}}))},"Ia");_.esq=_.J1(function(W){var O=_.wt(lWE,function(){var T;return QXX((T=W.contentId)==null?void 0:T.call(W))}),b=function(){var T;
return _.P((T=O())==null?void 0:T.command,_.XZ)};
return _.E(_.U,{cond:function(){var T;if(!(T=b())){var L;T=_.P((L=O())==null?void 0:L.command,SQL)}return T},
then:function(){return _.E(_.U,{cond:b,then:function(){var T={};return _.E("div",{class:_.YS("ytDismissibleItemReplacedContent",function(){var L;return kSh((L=W.aspectRatio)==null?void 0:L.call(W))})},_.E("div",{class:_.YS((T.ytDismissibleItemAspectRatioContainer=function(){var L;
return((L=W.aspectRatio)==null?void 0:L.call(W))!==void 0},T))},_.E(_.R4,{data:function(){var L;
return(L=b())==null?void 0:L.item}},{notificationMultiActionRenderer:function(L){return _.E(UWU,{data:L.data,
useModernStyles:W.useModernStyle,useLegacyShelfStyle:W.useLegacyShelfStyle})},
notificationTextRenderer:ljU})))}})},
else:W.children})},"Ja");_.Pxn=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;W=_.J8();var T=function(){var h;return((h=O().interaction)==null?0:h.onTap)?function(Z){var a;G$h(Z,(a=O().interaction)==null?void 0:a.onTap,b)}:void 0},L=function(){var h,Z=O(),a=T(),m=(h=_.P(O().rendererContext,_.A6))==null?void 0:h.label;
a:switch(Z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":h=1;break a;default:h=0}return{size:rQQ(Z.size),type:h,onTap:a,accessibilityText:m}};
_.iO(W,{visibilityCallback:function(h){var Z,a=(Z=O().interaction)==null?void 0:Z.onFirstVisible;h&&a&&_.nb(a)},
showOption:_.Mo});return _.E("ad-avatar-view-model",{class:function(){var h;return((h=O().interaction)==null?0:h.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:W},_.E(_.U,{cond:function(){return O().image},
then:function(h){return _.E(T21,{data:L,image:h})}}))},"Ka");_.y9=_.J1(function(W){W=_.um(W,{hasDot:!1});var O=Object.assign({},W),b=W.data,T=W.hasDot;W=W.customCommandResolver;var L=(delete O.data,delete O.hasDot,delete O.customCommandResolver,O);O=function(){return b().style};
O!==void 0&&O!==null||_.HU(Error("Dh"));O=_.uy();_.$z(O,function(){return b().interaction},W);
return _.E("ad-badge-view-model",{class:_.YS(function(){var h;return((h=b().interaction)==null?0:h.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var h=L.adRenderingContextType();
b();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:O},_.E(_.NL,{data:function(){var h;b();return{type:2,text:(h=b().label)==null?void 0:h.content,adsIncludeDot:T(),isOverlay:b().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"La");var pr5;_.WV=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;var T=W.adRenderingContextType;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(L){var h,Z=(h=O().interaction)==null?void 0:h.onFirstVisible;L&&Z&&_.nb(Z)},
showOption:_.Mo});return _.E("ad-details-line-view-model",{class:function(){var L;return((L=O().interaction)==null?0:L.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:W},_.E(_.U,{cond:function(){return O().style},
then:function(L){return _.E(_.pv,{each:function(){var h;return((h=O())==null?void 0:h.attributes)||[]},
keyBy:"INDEX"},function(h){return _.E(pr5,{attribute:h,style:L,adRenderingContextType:function(){return T()}})})}}))},"Ma");
pr5=_.J1(function(W){var O=W.attribute;var b=W.style;var T=W.adRenderingContextType;return _.E(_.U,{cond:function(){return O().text},
then:function(L){return _.E(_.uw,{text:L,className:function(){var h=T();b();return h==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Na");var Rsf=_.J1(function(W){var O=W.data;var b=W.typographyBump;var T=function(){return O().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
W={};return _.E(_.TT,null,_.E("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.E(_.uw,{text:function(){return O().headline},
className:_.YS("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return T==null?void 0:T()},W.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(b==null?void 0:b())&&!(T==null?0:T())},W)),
linkInheritColor:!0}),_.E(_.U,{cond:function(){return O().description},
then:function(L){var h={};return _.E(_.uw,{text:L,className:_.YS("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return T==null?void 0:T()},h.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(b==null?void 0:b())&&!(T==null?0:T())},h)),
linkInheritColor:!0})}}),_.E(_.U,{cond:function(){return O().secondaryDescription},
then:function(L){var h={};return _.E(_.uw,{text:L,className:_.YS("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(h.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return b==null?void 0:b()},h)),
linkInheritColor:!0})}}),_.E("div",{class:function(){return T()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.E(_.U,{cond:function(){return O().adAvatar},
then:function(){return _.E("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.E(_.R4,{data:function(){return O().adAvatar}},{adAvatarViewModel:_.Pxn}))}}),_.E(_.R4,{data:function(){return O().adBadge}},{adBadgeViewModel:function(L){return _.E(_.y9,{data:L.data,
hasDot:function(){return!!O().adDetailsLine},
adRenderingContextType:function(){return O().adRenderingContextType}})}}),_.E(_.R4,{data:function(){return O().adDetailsLine}},{adDetailsLineViewModel:function(L){return _.E(_.WV,{data:L.data,
adRenderingContextType:function(){return O().adRenderingContextType}})}}))),_.E("div",{class:function(){return T()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
buttonOverrides:function(){a:switch(O().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var h="S";break a;default:h="M"}return{size:h}}})}})))},"Oa"),K$q=_.J1(function(W){var O=W.data;
var b=W.noBottomMargin;var T=W.useVideoLockupTopPadding;var L=W.typographyBump;W={};W=_.YS("ytwFeedAdMetadataViewModelHostMetadata",(W.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return b==null?void 0:b()},W.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return T==null?void 0:T()},W));
var h=function(){return O().adBadge};
h!==void 0&&h!==null||_.HU(Error("Eh"));h={};var Z={};return _.E(_.TT,null,_.E(_.U,{cond:function(){return O().adAvatar},
then:function(){return _.E("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.E(_.R4,{data:function(){return O().adAvatar}},{adAvatarViewModel:function(a){return _.E(_.Pxn,{data:a.data})}}))}}),_.E("div",{class:W},_.E("div",{class:_.YS("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return L==null?void 0:L()},h.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(L==
null?void 0:L())&&_.e("web_enable_typography_bump_v2")},h))},_.E(_.uw,{text:function(){return O().headline},
linkInheritColor:!0})),_.E(_.U,{cond:function(){return O().description},
then:function(a){return _.E(_.uw,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.E("div",{class:function(){return O().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.e("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.E(_.R4,{data:function(){return O().adBadge}},
{adBadgeViewModel:function(a){return _.E(_.y9,{data:a.data,
hasDot:function(){return!!O().adDetailsLine},
adRenderingContextType:function(){return O().adRenderingContextType}})}}),_.E(_.R4,{data:function(){return O().adDetailsLine}},{adDetailsLineViewModel:function(a){return _.E(_.WV,{data:a.data,
adRenderingContextType:function(){return O().adRenderingContextType}})}})),_.E(_.U,{cond:function(){return O().secondaryDescription},
then:function(a){return _.E(_.uw,{text:a,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.E("div",{class:_.YS("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(Z.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return T==null?void 0:T()},Z))},_.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:_.DO})))},"Pa"),vQ7=_.J1(function(W){var O=W.data;
var b=W.noBottomMargin;var T=W.listenToTapEvent;var L=W.setTouchEndHandler;var h=W.useVideoLockupTopPadding;var Z=W.typographyBump;var a=_.uy();_.$z(a,function(){return O().interaction},void 0,function(){return T==null?void 0:T()});
W=_.S(_.wu(!1,void 0,"qjt0Xc"));var m=W.next().value,w=W.next().value;W=_.XL(function(){(L==null?0:L())&&!m()&&(a.value.click(),w(!0),setTimeout(function(){w(!1)},100));
return!1});
_.iO(a,{visibilityCallback:function(A){var X,l=(X=O().interaction)==null?void 0:X.onFirstVisible;A&&l&&_.nb(l)},
showOption:_.Mo});return _.E("feed-ad-metadata-view-model",{class:function(){var A;return((A=O().interaction)==null?0:A.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:a,"on:touchend":W},_.E(_.vU,null,_.E(_.RW,{when:function(){return O().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.E(Rsf,{data:O,
typographyBump:Z})}),_.E(_.RW,{when:function(){return O().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.E(K$q,{data:O,
noBottomMargin:b,useVideoLockupTopPadding:h,typographyBump:Z})})))},"Qa");var gQv;_.Og=_.J1(function(W){return _.E("yt-lockup-view-model",{class:_.YS(W.className)},_.E(_.esq,{contentId:function(){return W.data().contentId},
useModernStyle:!0,aspectRatio:function(){var O,b;return((O=W.containerType)==null?void 0:O.call(W))!==3?jXq(W.data().contentType,(b=W.force16By9ThumbnailAspectRatio)==null?void 0:b.call(W)):void 0}},function(){return _.E(gQv,Object.assign({},W))}))},"Ra");
gQv=_.J1(function(W){W=_.um(W,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var O=W.data,b=W.containerLayoutConfig,T=W.containerType,L=W.sizing,h=W.protectBackground,Z=W.typographyBump,a=W.force16By9ThumbnailAspectRatio,m=W.thumbnailFixedWidth,w=W.thumbnailTargetWidth,A=W.lockupExperiments,X=W.elementsPerRow;
W=_.uy();_.GJ(W,function(){var r8;return(r8=O())==null?void 0:r8.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var l=_.D3(zsi),p=_.iq().resolve(_.OT(tFf)),K=p?{}:void 0,k=function(){var r8,nE,tX;return(tX=(nE=_.P((r8=O())==null?void 0:r8.rendererContext,_.A6))==null?void 0:nE.label)!=null?tX:void 0},r=function(){var r8=b==null?void 0:b(),nE;
if(r8==null?0:r8.containerType){var tX=(nE=O())==null?void 0:nE.contentType;nE=A();var yh=Z(),Gw=w(),KH=h();r8=Object.assign({},TIO(O38(r8),yrO(r8.responsiveSize),yh,tX,r8.force16By9ThumbnailAspectRatio,Gw,KH,nE),{thumbnailFixedWidth:r8.contentPreviewWidth})}else r8=TIO(T(),L(),Z(),(tX=O())==null?void 0:tX.contentType,a(),w(),h(),A());return r8};
p&&K&&p({enabled:function(){return l()},
itemPlaybackModel:function(){return O().itemPlayback},
thumbnailElRef:function(){return K.thumbnailElRef},
containerElRef:W,options:function(){var r8,nE=(r8=_.P(O().metadata,FQw))==null?void 0:r8.endorsement;r8=K.thumbnailOverlays||[];nE&&r8.push(nE);var tX,yh;return{thumbnail:K.thumbnail,thumbnailOverlays:r8,accessibilityText:k(),thumbnailSize:K.thumbnailSize,enableRounding:r().isCollection,containPlayerWithinThumbnail:r().isCollection,trackingParams:(tX=_.P(O().rendererContext,_.XF))==null?void 0:(yh=tX.loggingDirectives)==null?void 0:yh.trackingParams}}});
var q=0;p=_.S(_.wu(!1,void 0,"HzAs3"));var f=p.next().value,M=p.next().value;p=_.S(_.wu(!1,void 0,"ujOXud"));var V=p.next().value,jQ=p.next().value;p=_.XL(function(){var r8=l()&&O().itemPlayback;V()?(_.sF.cancelJob(q),q=_.sF.addJob(function(){M(!r8)},8,32)):M(!r8);
return!0});
var y=_.XL(function(){q&&(_.sF.cancelJob(q),q=0);M(!1)});
_.so(function(){q&&(_.sF.cancelJob(q),q=0)});
var d8=BIh(function(){jQ(!0)}),pE=d8.touchFeedbackEvents,Qh=d8.touchFeedbackOnPointerUp,KE=d8.touchFeedbackOnPointerDown;
d8=d8.touchFeedbackOnPointerLeave;var fE={};return _.E("div",{el:W,class:_.YS("yt-lockup-view-model-wiz",function(){a:{var r8=r();if(r8.isOverlay)r8="yt-lockup-view-model-wiz--overlay";else switch(r8.arrangement){case 1:r8="yt-lockup-view-model-wiz--horizontal";break a;default:r8="yt-lockup-view-model-wiz--vertical"}}return r8},function(){a:{var r8=r();
if(r8.isOverlay)r8="yt-lockup-view-model-wiz--overlay";else{switch(r8.collectionStackNumber){case 1:r8="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:r8="yt-lockup-view-model-wiz--collection-stack-2";break a}r8=void 0}}return r8},(fE["yt-lockup-view-model-wiz--card"]=function(){return r().isCard},fE["yt-lockup-view-model-wiz--compact"]=function(){return r().isTiny||r().sizing!=="STANDARD"},fE["yt-lockup-view-model-wiz--protect-background"]=h,fE["yt-lockup-view-model-wiz--add-margins"]=
function(){return r().addMarginForFullbleed},fE["yt-lockup-view-model-wiz--centered"]=function(){return r().isCentered},fE["yt-lockup-view-model-wiz--fullbleed"]=function(){return r().fullbleed},fE["yt-lockup-view-model-wiz--single-column-grid"]=function(){return X()===1&&T()===2},fE["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var r8;
return(r8=A())==null?void 0:r8.useRichGridLegacyMargin},fE)),
"on:mousedown":KE,"on:mouseleave":y,"on:mouseup":Qh,"on:mouseover":p,"on:touchstart":KE,"on:touchend":Qh,"on:pointerleave":d8},_.E(_.jf,{command:function(){var r8;return _.np((r8=O())==null?void 0:r8.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return m()&&r().arrangement===1?"width: "+m():""}},_.E(_.R4,{data:function(){var r8;
return(r8=O())==null?void 0:r8.contentImage}},{thumbnailViewModel:function(r8){return _.E(_.No,{data:r8.data,
aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:w,hovered:f,isClip:function(){var nE;return((nE=O())==null?void 0:nE.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:DWX(K),lockupExperiments:function(){return A()}})},
collectionThumbnailViewModel:function(r8){return _.E(il9,{data:r8.data,aspectRatio:function(){return r().aspectRatio},
disableRounding:function(){return r().disableRounding},
width:w,doubleStack:function(){return r().collectionStackNumber===2},
hovered:f,playbackRef:DWX(K)})},
decoratedAvatarViewModel:_.KA})),_.E("div",{class:"yt-lockup-view-model-wiz__metadata"},_.E(_.R4,{data:function(){var r8;return(r8=O())==null?void 0:r8.metadata}},{lockupMetadataViewModel:function(r8){return _.E(Xr7,{data:r8.data,
lockupStyle:r,lockupCommand:function(){var nE;return _.np((nE=O())==null?void 0:nE.rendererContext)},
lockupAccessibilityLabel:function(){return k()}})},
feedAdMetadataViewModel:function(r8){return _.E(vQ7,{data:r8.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:Z})}}),_.E(_.R4,{data:function(){var r8;
return(r8=O())==null?void 0:r8.attachmentSlot}},{lockupAttachmentsViewModel:function(r8){return _.E(dWL,{data:r8.data,
lockupStyle:r})}})),_.E(_.Kd,{model:function(){a:{switch(r().collectionStackNumber){case 1:var r8=8;
break a;case 2:r8=12;break a}r8=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:r8}},
pointerDownEvent:pE.pointerDownEvent,pointerUpEvent:pE.pointerUpEvent,pointerLeaveEvent:pE.pointerLeaveEvent}))},"Sa");
_.Og.idomCompat=!0;_.O1(_.Og,"yt-lockup-view-model",{props:{data:_.te,containerLayoutConfig:_.te,containerType:_.te,sizing:_.te,protectBackground:_.te,typographyBump:_.te,thumbnailFixedWidth:_.te,thumbnailTargetWidth:_.te,force16By9ThumbnailAspectRatio:_.te,className:_.te,lockupExperiments:_.te,elementsPerRow:_.te}});_.bO(neX);var oQ$=_.AP(neX,{callbacks:{onExpandClick:!0}});var Vci=_.lw({buttonViewModel:_.DO}),Qcw=_.AP(tcX);_.bO(tcX);_.bO(GSe);_.bO(H3q);_.O1(Qcw,"yt-video-attribute-view-model",{props:{data:_.te,className:_.te}});var iF=function(){var W=_.n.apply(this,arguments)||this;W.useHighlightStyling=_.e("web_enable_deeper_metadata_highlight_styling");W.isSearch=!1;W.JSC$13043_lastScrollContainerWidth=NaN;W.pageLoadingFromNavigation=!1;W.currentIndex=0;W.supportComponentResize=!1;return W};
_.R(iF,_.n);_.d=iF.prototype;
_.d.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}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Ii(this,this.onPageChange))};
_.d.detached=function(){document.removeEventListener("yt-page-type-changed",_.Ii(this,this.onPageChange))};
_.d.getItemsPath=function(){return"data.cards"};
_.d.onIronResize=function(){this.updateListStyles()};
_.d.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var W;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(W=this.data)==null?void 0:W.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.e("problem_walkthrough_sd")&&!!this.centerItems};
_.d.computeCardListStyle=function(W){return W||null};
_.d.computeEmpty=function(W){return!this.get("cards.length",W)};
_.d.computeThumbnailStyle=function(W){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",W)||null};
_.d.computeHasSubtitle=function(W){return!!this.get("header.richListHeaderRenderer.subtitle",W)};
_.d.computeInitialCountNumber=function(W){return this.hasSquareMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.d.computeUseFloorScrolling=function(W){return W==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.d.computeHasGameCard=function(W){return(W=this.get("cards",W))?W.some(function(O){return O.gameCardRenderer}):!1};
_.d.computeCenterHeaderTitle=function(W){return!(W==null||!W.centerHeaderTitle)};
_.d.computeHasPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(O){return O.miniGameCardViewModel&&O.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.d.computeHasSquareMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(O){return O.miniGameCardViewModel&&O.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.d.computeHasSkinnyWidthPortraitMiniApp=function(W){return(W=W==null?void 0:W.cards)?W.some(function(O){return O.miniGameCardViewModel&&O.miniGameCardViewModel.width===135}):!1};
_.d.computeCenterItems=function(W){return!!W};
_.d.computeHasInfoPanel=function(W){var O;return W==null?void 0:(O=W.cards)==null?void 0:O.some(function(b){return b.infoPanelContentRenderer})};
_.d.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.d.getItemByIndex=function(W){var O=this.items.children;return O&&O.length>W?O[W]:void 0};
_.d.onPageChange=function(){var W=this;this.pageLoadingFromNavigation=!0;_.sF.addJob(function(){W.pageLoadingFromNavigation=!1;_.TU(W.hostElement,"yt-terminate-video-preview-action")},8)};
_.d.updateListStyles=function(){if(_.e("problem_walkthrough_sd")&&this.JSC$13043_scrollContainer!==void 0){var W=this.JSC$13043_scrollContainer.clientWidth;W!==this.JSC$13043_lastScrollContainerWidth&&(this.JSC$13043_lastScrollContainerWidth=W,_.Sl(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(W*.8,415)+"px"}),_.bX(this.hostElement,"iron-resize"))}};
_.Jq.Object.defineProperties(iF.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.e("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.cards)==null?0:(b=O[0])==null?0:b.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.cards)==null?0:(b=O[0])==null?0:b.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return _.e("enable_desktop_amsterdam_info_panels")&&!!((W=this.data)==null?0:(O=W.cards)==null?0:(b=O[0])==null?0:b.infoPanelContentRenderer)}}});
iF.prototype.dataChanged=iF.prototype.dataChanged;iF.prototype.onIronResize=iF.prototype.onIronResize;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],iF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],iF.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.D(_.rn),_.N("design:type",Object)],iF.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],iF.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],iF.prototype,"useCustomColors",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iF.prototype,"useHighlightStyling",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.N("design:type",Object)],iF.prototype,"cardListStyle",void 0);_.t([_.C({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.N("design:type",Boolean)],iF.prototype,"empty",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasSubtitle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.N("design:type",Boolean)],iF.prototype,"thumbnailStyle",void 0);_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasGameCard",void 0);_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.N("design:type",Boolean)],iF.prototype,"centerHeaderTitle",void 0);
_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasPortraitMiniApp",void 0);_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasSquareMiniApp",void 0);_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.t([_.C({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.N("design:type",Boolean)],iF.prototype,"hasInfoPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iF.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],iF.prototype,"inlineStructuredDescription",void 0);_.t([_.El("#scroll-container"),_.N("design:type",HTMLDivElement)],iF.prototype,"JSC$13043_scrollContainer",void 0);
_.t([_.C({computed:"computeInitialCountNumber(data.style.type)"}),_.N("design:type",Number)],iF.prototype,"initialCount",void 0);_.t([_.C({computed:"computeUseFloorScrolling(data.style.type)"}),_.N("design:type",Boolean)],iF.prototype,"useFloorScrolling",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.N("design:type",Boolean)],iF.prototype,"centerItems",void 0);_.t([_.C(),_.N("design:type",Object)],iF.prototype,"pageLoadingFromNavigation",void 0);
_.t([_.C(),_.N("design:type",Object)],iF.prototype,"currentIndex",void 0);_.t([_.C(),_.N("design:type",Number)],iF.prototype,"scrollCount",void 0);_.t([_.C(),_.N("design:type",Object)],iF.prototype,"supportComponentResize",void 0);_.t([_.El("#items"),_.N("design:type",HTMLDivElement)],iF.prototype,"items",void 0);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iF.prototype,"onIronResize",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iF.prototype,"dataChanged",null);_.t([_.C({reflectToAttribute:!0}),_.x("inlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iF.prototype,"hideNavigationButton",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iF.prototype,"modernChapters",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iF.prototype,"hasVideoAttributeViewModels",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],iF.prototype,"modernInfoPanels",null);iF=_.t([_.G({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],iF);
_.H(iF,"ytd-horizontal-card-list-renderer",function(){if(R1N!==void 0)return R1N;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return R1N=W},{mode:_.Lb("kevlar_poly_si_batch_j072")?1:2});var k$w=_.J1(function(W){var O=W.data;var b={};return _.E("video-summary-content-view-model",{class:_.YS("video-summary-content-view-model-wiz",W.className,(b["video-summary-content-view-model-wiz--is-search"]=W.isSearch,b))},_.E(_.pv,{each:function(){var T=[],L=O().paragraphs;if(L==null||!L.length)return[];for(var h=0;h<L.length;h++){var Z=_.P(L[h],TN7),a=void 0;h>0&&(a=_.P(L[h-1],TN7));a&&!!a.marker===!!Z.marker?T[T.length-1].paragraphs.push(Z):T.push({isList:!!Z.marker,paragraphs:[Z]})}return T},
keyBy:"INDEX"},function(T){return _.E(_.U,{cond:function(){return T().isList},
then:function(){return _.E("ul",{class:"video-summary-content-view-model-wiz__list"},_.E(_.pv,{each:function(){return T().paragraphs},
keyBy:"INDEX"},function(L){return _.E("li",{class:"video-summary-content-view-model-wiz__list-item"},_.E(_.uw,{text:function(){return L().text}}))}))},
else:function(){return _.E(_.pv,{each:function(){return T().paragraphs},
keyBy:"INDEX"},function(L){return _.E("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.E(_.uw,{text:function(){return L().text}}))})}})}),_.E(_.U,{cond:function(){return!!_.P(O().likeButtonViewModel,_.QU)&&!!_.P(O().dislikeButtonViewModel,_.kz)},
then:function(){return _.E("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.E("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.E(_.QJ,{data:function(){return _.P(O().likeButtonViewModel,_.QU)},
disableIconAnimation:!0})),_.E(_.oC,{data:function(){return _.P(O().dislikeButtonViewModel,_.kz)}}))}}))},"Ta");
k$w.idomCompat=!0;_.O1(k$w,"video-summary-content-view-model",{props:{data:_.te,isSearch:_.te,className:_.te}});var bF=function(){var W=_.n.apply(this,arguments)||this;var O,b;W.isExpanded=(b=(O=W.data)==null?void 0:O.isExpanded)!=null?b:!1;W.disableExpand=!1;W.showProminentLabel=!1;W.showRightSideLabel=!0;W.toggleExpandableContent=function(T){W.disableExpand||(T.stopPropagation(),_.JP(_.Nd(T),W.hostElement,["info","expanded-subtitle"])||(W.isExpanded=!W.isExpanded,W.ytRendererBehavior.logExplicitClick(W.data),W.JSC$13054_cardList&&!_.e("expandable_metadata_a11y_fix_ks")&&_.My(W,function(){_.uP(W.hostElement)})))};
W.useSquareThumbnail=!1;W.startX=0;return W};
_.R(bF,_.n);_.d=bF.prototype;_.d.computeUseSquareThumbnail=function(){var W;return(W=this.data)==null?void 0:W.useSquareThumbnail};
_.d.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"}}}}};
_.d.dataChanged=function(){if(this.data){var W,O;this.isExpanded=(O=(W=this.data)==null?void 0:W.isExpanded)!=null?O:!1;var b,T,L,h;if(W=this.isDarkTheme()?(b=this.data)==null?void 0:(T=b.colorData)==null?void 0:T.darkColorPalette:(L=this.data)==null?void 0:(h=L.colorData)==null?void 0:h.lightColorPalette){var Z,a;if((Z=this.data)==null?0:(a=Z.colorData)==null?0:a.vibrantColorPalette)W.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.kS(this.hostElement,W)}}};
_.d.isExpandedChanged=function(){this.isExpanded&&this.JSC$13054_cardList&&_.bX(this.JSC$13054_cardList,"iron-resize")};
_.d.computeIsExpanded=function(W){return!!W.isExpanded};
_.d.computeShowProminentLabel=function(W,O){var b;return!!(W==null?0:(b=W.header)==null?0:b.showLeadingCollapsedLabel)&&!O};
_.d.computeShowRightSideLabel=function(W,O){var b;return!(W==null?0:(b=W.header)==null?0:b.showLeadingCollapsedLabel)&&!O};
_.d.captureContentClick=function(W){if(!this.disableExpand)if(_.e("expandable_metadata_fix_killswitch")){var O=W.target;_.bH9(O,"ytd-macro-markers-list-item-renderer")||W.stopPropagation();(O==null?void 0:O.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.JP(_.Nd(W),this.hostElement,["items"])||_.un(_.Nd(W),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.d.timestampClick=function(W){W.stopPropagation();var O,b;(W=(O=this.data)==null?void 0:(b=O.header)==null?void 0:b.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(W)};
_.d.onDown=function(W){W.stopPropagation();this.startX=W.detail?W.detail.x:0};
_.d.onUp=function(W){this.skipKeyInteraction(W)&&W.stopPropagation()};
_.d.skipKeyInteraction=function(W){var O=W.target;if((O==null?void 0:O.id)==="scroll-container"||(O==null?void 0:O.id)==="items"||W.detail&&W.detail.x!==this.startX)return!0;W=_.Nd(W);W=_.S(W);for(O=W.next();!O.done;O=W.next()){O=O.value;if(O===this.hostElement)break;if(O.hasAttribute&&O.hasAttribute("skip-key-interaction"))return!0}return!1};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Jq.Object.defineProperties(bF.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.P((W=this.data)==null?void 0:W.expandedContent,jn1)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.P((W=this.data)==null?void 0:W.expandedContent,_.yu9)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.useCustomColors)&&!((O=this.data)==null||!O.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!((W=this.data)==null?0:(O=W.header)==null?0:O.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!((W=this.data)==null?0:(O=W.header)==null?0:O.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!((W=this.data)==null?0:(O=W.header)==null?0:O.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
bF.prototype.onUp=bF.prototype.onUp;bF.prototype.onDown=bF.prototype.onDown;bF.prototype.isExpandedChanged=bF.prototype.isExpandedChanged;bF.prototype.dataChanged=bF.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bF.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],bF.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bF.prototype,"isExpanded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bF.prototype,"disableExpand",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],bF.prototype,"isSearch",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],bF.prototype,"isWatch",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.N("design:type",Object)],bF.prototype,"showProminentLabel",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.N("design:type",Object)],bF.prototype,"showRightSideLabel",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"hasVideoSummary",null);_.t([_.C({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"hasLockupViewModel",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"useCustomColors",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"showInfoButton",null);_.t([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"showTimestamp",null);_.t([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"showExpandedSubtitle",null);
_.t([_.x("data","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],bF.prototype,"showThumbnail",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],bF.prototype,"useVppShoppingDestinationStyle",null);_.t([_.C(),_.N("design:type",Object)],bF.prototype,"toggleExpandableContent",void 0);_.t([_.El("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],bF.prototype,"JSC$13054_cardList",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.N("design:type",Object)],bF.prototype,"useSquareThumbnail",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bF.prototype,"dataChanged",null);_.t([_.m5("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bF.prototype,"isExpandedChanged",null);
_.t([_.ai("down"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bF.prototype,"onDown",null);_.t([_.ai("up"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],bF.prototype,"onUp",null);bF=_.t([_.G({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],bF);
_.H(bF,"ytd-expandable-metadata-renderer",function(){if(rl$!==void 0)return rl$;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rl$=W},{mode:1});var scq,BSS=function(){if(scq!==void 0)return scq;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return scq=W};_.O1(_.vd,"yt-avatar-stack-view-model",{props:{className:_.te,data:_.te,overrides:_.te,isOverlay:_.te,useMediumText:_.te,decorations:_.te,hideAvatar:_.te}});_.Bs("itemSectionRenderer","videoRenderer","ytd-video-renderer");var jC=function(){var W=_.n.apply(this,arguments)||this;W.disableExpand=!1;W.shouldShowChannelInfo=!1;W.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return W};
_.R(jC,_.n);_.d=jC.prototype;_.d.computeUseSearchUi=function(){var W,O;return this.isSearch||((W=this.data)==null?void 0:(O=W.style)==null?void 0:O.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.computeUseThreeLineTitle=function(){var W;return((W=this.data)==null?void 0:W.maxTitleLines)===3};
_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.e("polymer_video_renderer_defer_menu")&&!nuS?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"}}}};
_.d.attached=function(){_.L2(this.hostElement,"blue-links",_.e("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.di(_.Q(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),O;W&&((O=_.P(W.commandMetadata,_.RP))==null?0:O.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W);this.updateInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13059_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.JSC$13059_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13059_inlinePreviewHoverListener)==null||b3(W)};
_.d.onTextWrapperClick=function(W){var O,b,T=this.hideTranslation?(O=this.data)==null?void 0:O.untranslatedNavigationEndpoint:(b=this.data)==null?void 0:b.navigationEndpoint;O=_.JP(_.Nd(W),this.hostElement,["expandable-metadata"]);!T||O&&!_.e("expandable_metadata_fix_killswitch")||_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString()])||_.bX(this.hostElement,"yt-navigate",{endpoint:T})};
_.d.computeThumbnailWidth=function(W,O,b,T,L){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:T?L==="MASSIVE"?600:L==="BIG"?500:L==="MEDIUM"?450:420:b?360:O?128:W?210:246};
_.d.computeUseBiggerThumbs=function(W){return W&&_.e("enable_desktop_search_bigger_thumbs")};
_.d.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.d.computeVideoStyle=function(){if(_.e("enable_video_style")){var W,O;return(W=this.data)==null?void 0:(O=W.style)==null?void 0:O.value}};
_.d.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.d.handleHideItemSectionVideosByIdCommand=function(W){var O;W=(O=_.P(W,vHw))==null?void 0:O.videoId;this.data&&this.data.videoId===W&&(this.isHidden=!0)};
_.d.getMetadataSnippetContainerClass=function(W){return W?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.d.computeTitleText=function(W,O,b){return W?b:O};
_.d.computeDescriptionSnippet=function(W,O,b){return W?b:O};
_.d.computeSnippetText=function(W,O,b){return W?b:O};
_.d.computeNavigationEndpoint=function(W,O){return W?O==null?void 0:O.untranslatedNavigationEndpoint:O==null?void 0:O.navigationEndpoint};
_.d.hideInlineTitleIcon=function(W,O){return W||!O};
_.Jq.Object.defineProperties(jC.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 W;return(W=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?W:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!(this==null?0:(W=this.data)==null?0:(O=W.channelThumbnailSupportedRenderers)==null?0:(b=O.channelThumbnailWithLinkRenderer)==null?0:b.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.P((W=this.data)==null?void 0:W.avatar,WUN)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13059_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Jq.Object.defineProperties(jC,{template:{configurable:!0,enumerable:!0,get:function(){return BSS()}}});
jC.prototype.dataChanged=jC.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],jC.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],jC.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.fh),_.N("design:type",Object)],jC.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],jC.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],jC.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],jC.prototype,"isBackstageVideo",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],jC.prototype,"isPostCompactVideo",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],jC.prototype,"isHistory",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],jC.prototype,"isRichGridVideoPost",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],jC.prototype,"isHidden",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],jC.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.N("design:type",Boolean)],jC.prototype,"useSearchUi",void 0);_.t([_.C({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.N("design:type",Boolean)],jC.prototype,"useThreeLineTitle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.N("design:type",Boolean)],jC.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.N("design:type",Object)],jC.prototype,"videoStyle",void 0);_.t([_.C({computed:"computeDisableExpand(videoStyle)"}),_.N("design:type",Object)],jC.prototype,"disableExpand",void 0);
_.t([_.C({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.N("design:type",Object)],jC.prototype,"shouldShowChannelInfo",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],jC.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.N("design:type",String)],jC.prototype,"inlineTitleIcon",void 0);_.t([_.C({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.N("design:type",Object)],jC.prototype,"computedNavigationEndpoint",void 0);_.t([_.C({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(W,O){return _.IJ(W.entities,"searchVideoResultEntity",O)}}),
_.N("design:type",Object)],jC.prototype,"searchVideoResultEntity",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],jC.prototype,"thumbnail",void 0);_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],jC.prototype,"JSC$13059_dismissibleMedia",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],jC.prototype,"dataChanged",null);
_.t([_.x("searchVideoResultEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jC.prototype,"hideTranslation",null);_.t([_.x("searchVideoResultEntity"),_.N("design:type",Array),_.N("design:paramtypes",[])],jC.prototype,"hiddenBadgeGroups",null);_.t([_.x("data","useAvatar"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jC.prototype,"shouldShowChannelThumbnail",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jC.prototype,"useAvatar",null);
_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],jC.prototype,"isHovered",null);jC=_.t([_.G({is:"ytd-video-renderer",disableElementRegistration:!0})],jC);_.H(jC,"ytd-video-renderer",function(){return BSS()},{mode:_.Lb("kevlar_poly_si_batch_j047")?1:2});var Tj=function(){var W=_.n.apply(this,arguments)||this;W.editDialog=null;W.roundedContainer=!0;W.isLoading=!1;W.isRichGrid=!1;W.isRichGridRepost=!1;W.reduceSidePaddings=_.e("reduce_side_paddings_in_shelf");W.JSC$13066_spinnerEl=null;return W};
_.R(Tj,_.n);_.d=Tj.prototype;
_.d.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"}}}};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){var W=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var O=0,b=this.data.actions&&this.data.actions.length;O<b;O++)this.openEditDialog(_.P(this.data.actions[O],Jsq));if((O=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(O=this.get("buttonRenderer.hint.hintRenderer.hintId",O))&&O.startsWith("share-post-hint")){var T=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(T){_.uh.getInstance();var L=Jp(_.VV(_.EO("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.sF.addLowPriorityJob(function(){_.Sx(W.hostElement,L,T)})}}}};
_.d.updatePoll=function(W){W>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13066_spinnerEl||(this.JSC$13066_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q(this.hostElement).appendChild(this.JSC$13066_spinnerEl));this.JSC$13066_spinnerEl&&(this.JSC$13066_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(W){var O=this.get("updateCommentDialogEndpoint",W.detail.endpoint);O&&(this.openEditDialog(O),W.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(W,O){O&&this.updatePoll(O.selectedChoiceIndex)};
_.d.onYtServiceRequestSent=function(W,O){var b;O.endpoint&&(_.P(O.endpoint,XLn)||_.P(O.endpoint,Aun)&&((b=_.P(O.endpoint,Aun))==null||!b.clientActions))&&(this.isLoading=!0);if(O.actions)for(W=0;W<O.actions.length;W++)b=O.actions[W],_.P(b,PX)&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b==void 0&&(b=-1),this.updatePoll(b))};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.d.computeIsPostHidden=function(W,O){return!!W||O};
_.d.computeSurfaceType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeShowWithoutToolbar=function(W){return!W.actionButtons&&!W.actionMenu};
_.d.computePostAttachment=function(W){if(W.backstageAttachment){if(_.P(W.backstageAttachment,MOz))return"poll";if(_.P(W.backstageAttachment,s$$))return"quiz";if(_.P(W.backstageAttachment,_.r5))return"video";if(_.P(W.backstageAttachment,Bq1))return"uploaded-videos";if(_.P(W.backstageAttachment,R9H))return W.contentText?"image":"image-only";if(_.P(W.backstageAttachment,ggS))return"playlist"}return"none"};
_.d.computePostTabIndex=function(W){return W?0:-1};
_.d.computeButtonTooltipPosition=function(W){return this.computeUsesCompactLockup(W)?"top":"bottom"};
_.d.computeHasText=function(W){return!(W==null||!W.contentText)};
_.d.onTap=function(W){var O,b;if(((O=this.data)==null?0:O.navigationEndpoint)&&((b=this.data)==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var T;((T=this.data)==null?0:T.navigationEndpoint)&&!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Jq.Object.defineProperties(Tj.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.VV("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,MOz))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,Bq1))}}});
Tj.prototype.onYtServiceRequestCompleted=Tj.prototype.onYtServiceRequestCompleted;Tj.prototype.onYtServiceRequestSent=Tj.prototype.onYtServiceRequestSent;Tj.prototype.onYtCommentPollRevert=Tj.prototype.onYtCommentPollRevert;Tj.prototype.onYtCommentboxDismiss=Tj.prototype.onYtCommentboxDismiss;Tj.prototype.onYtNavigate=Tj.prototype.onYtNavigate;Tj.prototype.isLoadingChanged=Tj.prototype.isLoadingChanged;Tj.prototype.dataChanged=Tj.prototype.dataChanged;Tj.prototype.contentTextChanged=Tj.prototype.contentTextChanged;
_.t([_.D(_.rn),_.N("design:type",Object)],Tj.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Tj.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Tj.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],Tj.prototype,"editDialog",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Tj.prototype,"roundedContainer",void 0);_.t([_.C(),_.N("design:type",Object)],Tj.prototype,"isLoading",void 0);_.t([_.C({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.N("design:type",String)],Tj.prototype,"surface",void 0);
_.t([_.C({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Tj.prototype,"usesCompactLockup",void 0);_.t([_.C({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Tj.prototype,"showWithoutToolbar",void 0);_.t([_.C({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.N("design:type",String)],Tj.prototype,"attachment",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Tj.prototype,"isRichGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Tj.prototype,"isRichGridRepost",void 0);_.t([_.C({reflectToAttribute:!0,value:_.e("use_better_post_dismissals")}),_.N("design:type",Boolean)],Tj.prototype,"useBetterPostDismissals",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Tj.prototype,"reduceSidePaddings",void 0);
_.t([_.C({computed:"computeHasText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Tj.prototype,"hasText",void 0);_.t([_.El("#expander"),_.N("design:type",Object)],Tj.prototype,"expander",void 0);_.t([_.El("#action-buttons"),_.N("design:type",Object)],Tj.prototype,"actionButtons",void 0);_.t([_.El("#edit-dialog"),_.N("design:type",HTMLElement)],Tj.prototype,"editDialogEl",void 0);
_.t([_.m5("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tj.prototype,"contentTextChanged",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tj.prototype,"dataChanged",null);_.t([_.m5("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tj.prototype,"isLoadingChanged",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Tj.prototype,"onYtNavigate",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tj.prototype,"onYtCommentboxDismiss",null);_.t([_.ai("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Tj.prototype,"onYtCommentPollRevert",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],Tj.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Tj.prototype,"onYtServiceRequestCompleted",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tj.prototype,"voteCount",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tj.prototype,"commentCount",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tj.prototype,"hasPoll",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tj.prototype,"hasUploadedVideo",null);Tj=_.t([_.G({is:"ytd-post-renderer",disableElementRegistration:!0})],Tj);
_.H(Tj,"ytd-post-renderer",function(){if(iLf!==void 0)return iLf;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return iLf=W},{mode:1});var rrN;var DWw;var LQ=function(){return _.n.apply(this,arguments)||this};
_.R(LQ,_.n);LQ.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],LQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],LQ.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],LQ.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],LQ.prototype,"data",void 0);
_.t([_.C({value:"$.items.children"}),_.N("design:type",String)],LQ.prototype,"itemsPath",void 0);_.t([_.C({value:1}),_.N("design:type",Number)],LQ.prototype,"initialCount",void 0);_.t([_.C(),_.N("design:type",String)],LQ.prototype,"surface",void 0);LQ=_.t([_.G({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],LQ);
_.H(LQ,"ytd-post-multi-image-renderer",function(){if(DWw!==void 0)return DWw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DWw=W},{mode:_.Lb("kevlar_poly_si_batch_j079")?1:2});var xWz={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},dZ=function(){var W=_.n.apply(this,arguments)||this;W.hasInlineCommentSection=!1;W.editDialog=null;W.isLoading=!1;W.shouldHideAuthor=!1;W.shouldShowVideoTime=!1;
W.isInEngagementPanel=!1;W.hideBorder=!1;W.usesFullLockup=!1;W.shouldShowMenuInCompactView=!1;W.JSC$13082_spinnerEl=null;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.R(dZ,_.n);_.d=dZ.prototype;_.d.configureRendererStamper=function(){return xWz};
_.d.computeIsPollHeaderEnabled=function(W){return(W==null?void 0:W.pollMetadataIcon)!=null};
_.d.getPublishTimeStampString=function(W,O){O=new Date((Number(O)-60*((new Date).getTimezoneOffset()-(new Date(Number(O)*1E3)).getTimezoneOffset()))*1E3);O=(new tH(10)).format(O);if(W&&W.runs&&W.runs.length)for(var b=0;b<W.runs.length;b++)W.runs[b].text&&(W.runs[b].text=W.runs[b].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",O));return W};
_.d.created=function(){this.JSC$13082_spinnerEl=null};
_.d.contentTextChanged=function(){this.expander.reset()};
_.d.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var W;if((W=this.data)==null?0:W.actions){W=_.S(this.data.actions);for(var O=W.next();!O.done;O=W.next())this.openEditDialog(_.P(O.value,Jsq))}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){_.Q(this.hostElement).querySelector("#action-buttons").reply()};
_.d.updatePoll=function(W,O){O&&this.set("data.pollMetadataVoteCountText",O);this.hasInlineCommentSection&&(W=W>=0,O=_.Q(this.hostElement).querySelector("#action-buttons"),W?O.reply():O.hideReplyDialog())};
_.d.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13082_spinnerEl||(this.JSC$13082_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q(this.hostElement).appendChild(this.JSC$13082_spinnerEl));this.JSC$13082_spinnerEl&&(this.JSC$13082_spinnerEl.active=this.isLoading)};
_.d.onYtNavigate=function(W){var O=this.get("updateCommentDialogEndpoint",W.detail.endpoint);O&&(this.openEditDialog(O),W.stopPropagation())};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.onYtCommentPollRevert=function(W,O){O&&this.updatePoll(O.selectedChoiceIndex,O.totalVotes)};
_.d.onYtServiceRequestSent=function(W,O){W.stopPropagation();W=_.P(O.endpoint,Aun);if(_.P(O.endpoint,XLn)||W&&!W.clientActions)this.isLoading=!0;if(O.actions)for(W=0;W<O.actions.length;W++){var b=O.actions[W],T=_.P(b,PX);T&&(b=this.get("updateBackstagePollAction.selectedChoiceIndex",b),b===void 0&&(b=-1),this.updatePoll(b,T.totalVotes))}};
_.d.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.d.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.editDialogElement.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.d.computeIsBodyHidden=function(W,O){return!!W||O};
_.Jq.Object.defineProperties(dZ.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var W,O;if((W=this.data)==null?0:(O=W.pollMetadataIcon)==null?0:O.iconType)return _.Z6(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.VV("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,MOz))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,s$$))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.P(this.data.backstageAttachment,Bq1))}}});
dZ.prototype.onYtServiceRequestCompleted=dZ.prototype.onYtServiceRequestCompleted;dZ.prototype.onYtServiceRequestSent=dZ.prototype.onYtServiceRequestSent;dZ.prototype.onYtCommentPollRevert=dZ.prototype.onYtCommentPollRevert;dZ.prototype.onYtCommentboxDismiss=dZ.prototype.onYtCommentboxDismiss;dZ.prototype.onYtNavigate=dZ.prototype.onYtNavigate;dZ.prototype.isLoadingChanged=dZ.prototype.isLoadingChanged;dZ.prototype.dataChanged=dZ.prototype.dataChanged;dZ.prototype.contentTextChanged=dZ.prototype.contentTextChanged;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],dZ.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dZ.prototype,"rendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dZ.prototype,"rendererstamperBehavior",void 0);_.t([_.El("#contentTextExpander"),_.N("design:type",Object)],dZ.prototype,"expander",void 0);
_.t([_.El("#edit-dialog"),_.N("design:type",Element)],dZ.prototype,"editDialogElement",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"hasInlineCommentSection",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"editDialog",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"isLoading",void 0);
_.t([_.C({computed:"computeIsPollHeaderEnabled(data)"}),_.N("design:type",Boolean)],dZ.prototype,"isPollHeaderEnabled",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"shouldHideAuthor",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"shouldShowVideoTime",void 0);_.t([_.C(),_.N("design:type",Object)],dZ.prototype,"isInEngagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dZ.prototype,"hideBorder",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dZ.prototype,"usesFullLockup",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dZ.prototype,"shouldShowMenuInCompactView",void 0);_.t([_.x("isInEngagementPanel"),_.N("design:type",Number),_.N("design:paramtypes",[])],dZ.prototype,"postTextMaxLines",null);_.t([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],dZ.prototype,"pollIcon",null);
_.t([_.m5("data.contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dZ.prototype,"contentTextChanged",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dZ.prototype,"dataChanged",null);_.t([_.m5("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dZ.prototype,"isLoadingChanged",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dZ.prototype,"onYtNavigate",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dZ.prototype,"onYtCommentboxDismiss",null);_.t([_.ai("yt-comment-poll-revert"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],dZ.prototype,"onYtCommentPollRevert",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],dZ.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],dZ.prototype,"onYtServiceRequestCompleted",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dZ.prototype,"voteCount",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dZ.prototype,"commentCount",null);_.t([_.x("data.backstageAttachment"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dZ.prototype,"hasPoll",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dZ.prototype,"hasQuiz",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dZ.prototype,"hasUploadedVideo",null);
dZ=_.t([_.G({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],dZ);
_.H(dZ,"ytd-backstage-post-renderer",function(){if(rrN!==void 0)return rrN;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rrN=W},{mode:1});var zsS;var hj=function(){var W=_.n.apply(this,arguments)||this;W.editDialog=null;W.showExpandButton=!1;W.isRichGrid=!1;W.usesFullLockup=!1;return W};
_.R(hj,_.n);_.d=hj.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.d.computeShowExpandButton=function(W){return this.usesCompactLockup||W&&W.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.d.computeUsesCompactLockup=function(W){return!!W.condensedContent};
_.d.computeShowFullContentText=function(W){return!W};
_.d.onYtNavigate=function(W){W=this.get("updateCommentDialogEndpoint",W.detail.endpoint);this.openEditDialog(W)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null};
_.d.openEditDialog=function(W){W&&W.dialog&&(this.editDialog=W.dialog,W=this.repostEditDialogEl.firstElementChild)&&(W.focus(),W.openDialog&&W.openDialog())};
_.d.onTap=function(W){if(this.data){var O=null;this.usesCompactLockup&&!_.un(_.Nd(W)||[],this.hostElement,["YT-IMG-SHADOW"])?O=this.get("navigationEndpoint",this.data):W.target===this.moreButtonEl&&(O=this.get("navigationEndpoint",W.target.data));O&&_.bX(this.hostElement,"yt-navigate",{endpoint:O})}};
hj.prototype.onYtCommentboxDismiss=hj.prototype.onYtCommentboxDismiss;hj.prototype.onYtNavigate=hj.prototype.onYtNavigate;hj.prototype.dataChanged=hj.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hj.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],hj.prototype,"editDialog",void 0);_.t([_.C({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],hj.prototype,"usesCompactLockup",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hj.prototype,"showExpandButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hj.prototype,"isRichGrid",void 0);
_.t([_.C({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.N("design:type",Boolean)],hj.prototype,"showFullContentText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hj.prototype,"usesFullLockup",void 0);_.t([_.El("#more"),_.N("design:type",Object)],hj.prototype,"moreButtonEl",void 0);_.t([_.El("#repost-content-text"),_.N("design:type",HTMLElement)],hj.prototype,"repostContentTextEl",void 0);
_.t([_.El("#repost-edit-dialog"),_.N("design:type",HTMLElement)],hj.prototype,"repostEditDialogEl",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hj.prototype,"dataChanged",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hj.prototype,"onYtNavigate",null);
_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hj.prototype,"onYtCommentboxDismiss",null);hj=_.t([_.G({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],hj);
_.H(hj,"ytd-shared-post-renderer",function(){if(zsS!==void 0)return zsS;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zsS=W},{mode:1});var CxL;var qIv;var SC=function(){return _.n.apply(this,arguments)||this};
_.R(SC,_.n);SC.prototype.attached=function(){var W=this;this.networkStatusManager||(this.networkStatusManager=new _.Vy,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){W.onlineHandler()}))};
SC.prototype.detached=function(){var W=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){W.onlineHandler()}),delete this.networkStatusManager)};
SC.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],SC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],SC.prototype,"data",void 0);SC=_.t([_.G({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],SC);
_.H(SC,"ytd-reload-page-button-renderer",function(){if(qIv!==void 0)return qIv;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return qIv=W},{mode:1});var nQv={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"},Zy=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(Zy,_.n);_.d=Zy.prototype;_.d.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d.computeHasBodyText=function(W){return!!W.bodyText};
_.d.computeButtons=function(W){var O=[];W.ctaButton&&O.push(W.ctaButton);W.secondaryButton&&O.push(W.secondaryButton);return O};
_.d.computeRendererStyle=function(W){return W.style?W.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():W.icon?"":"no-icon"};
_.d.getIconName=function(W,O){O=O===void 0?!1:O;if(W===void 0)return"";W=this.get("icon.iconType",W);var b;_.e("enable_hlp_client_icon_pick")?b=this.getThemedIcon(W,O):b=W;(O=nQv[b])||(O="yt-icons");return[O,b].join(":")};
_.d.getThemedIcon=function(W,O){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(W)?O?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(W)?O?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":W};
_.d.isThumbnail=function(W){return!!W.thumbnail};
_.d.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Zy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Zy.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Zy.prototype,"data",void 0);
_.t([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],Zy.prototype,"rendererStyle",void 0);_.t([_.C({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.N("design:type",String)],Zy.prototype,"iconName",void 0);_.t([_.C({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Zy.prototype,"thumbnail",void 0);_.t([_.C({computed:"computeButtons(data)"}),_.N("design:type",Array)],Zy.prototype,"buttons",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Zy.prototype,"isDarkTheme",void 0);_.t([_.C({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Zy.prototype,"hasBodyText",void 0);Zy=_.t([_.G({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Zy);
_.H(Zy,"ytd-background-promo-renderer",function(){if(CxL!==void 0)return CxL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return CxL=W},{mode:1});var fjU;var Ir=function(){var W=_.n.apply(this,arguments)||this;W.collections=_.e("web_modern_collections_v2");return W};
_.R(Ir,_.n);_.Jq.Object.defineProperties(Ir.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(O=W.thumbnail)==null?void 0:O.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(T=b.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(h=L.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ir.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ir.prototype,"collections",void 0);_.t([_.x("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ir.prototype,"collectionStack",null);Ir=_.t([_.G({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Ir);
_.H(Ir,"ytd-compact-station-renderer",function(){if(fjU!==void 0)return fjU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return fjU=W},{mode:1});var G$q;var ar=function(){var W=_.n.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.R(ar,_.n);ar.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]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ar.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ar.prototype,"isRichGrid",void 0);ar=_.t([_.G({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ar);
_.H(ar,"ytd-grid-channel-renderer",function(){if(G$q!==void 0)return G$q;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return G$q=W},{mode:1});var Hl7;var mG=function(){return _.n.apply(this,arguments)||this};
_.R(mG,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mG.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mG.prototype,"data",void 0);mG=_.t([_.G({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],mG);
_.H(mG,"ytd-grid-movie-playlist-renderer",function(){if(Hl7!==void 0)return Hl7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Hl7=W},{mode:1});var tRw;var YE=function(){var W=_.n.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.modernButtons=_.e("web_modern_buttons");W.useModernCollectionsV2=_.e("web_modern_collections_v2");return W};
_.R(YE,_.n);YE.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
YE.prototype.configureRendererStamper=function(){return{"data.menu":Ib}};
YE.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
YE.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.e("woffle_playlist_renderer_killswitch")){var W,O=htX(this.entityInfo,this.transferState,this.downloadProgress,(W=this.data)==null?void 0:W.playlistId,this.isOnline);W=O.viewPlaylistText;var b=O.badges;O=O.thumbnailOverlays;this.isDownloads=!!W||!!b;this.set("data.viewPlaylistText",W);b&&b.length>0&&this.set("data.badges",b);O&&O.length>0&&this.set("data.thumbnailOverlays",
O)}};
_.Jq.Object.defineProperties(YE.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 W;return!((W=this.data)==null?0:W.menu)}}});
YE.prototype.transferStateChanged=YE.prototype.transferStateChanged;YE.prototype.dataChanged=YE.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],YE.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],YE.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C({selector:_.pX8,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],YE.prototype,"downloadProgress",void 0);_.t([_.C({selector:_.x9,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],YE.prototype,"transferState",void 0);_.t([_.C({selector:PrX,selectorArgs:["data.playlistId"]}),_.N("design:type",Object)],YE.prototype,"entityInfo",void 0);_.t([_.C({selector:wX8}),_.N("design:type",Boolean)],YE.prototype,"isOnline",void 0);
_.t([_.C(),_.N("design:type",Object)],YE.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],YE.prototype,"downloadRenderData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],YE.prototype,"modernButtons",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],YE.prototype,"isDownloads",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],YE.prototype,"useModernCollectionsV2",void 0);
_.t([_.x("transferState"),_.C({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],YE.prototype,"downloadState",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],YE.prototype,"menuHidden",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YE.prototype,"dataChanged",null);
_.t([_.Ul("transferState","downloadProgress","isOnline"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YE.prototype,"transferStateChanged",null);YE=_.t([_.G({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],YE);
_.H(YE,"ytd-grid-playlist-renderer",function(){if(tRw!==void 0)return tRw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tRw=W},{mode:1});var $WS;var Eg=function(){var W=_.n.apply(this,arguments)||this;W.collections=_.e("web_modern_collections_v2");return W};
_.R(Eg,_.n);Eg.prototype.configureRendererStamper=function(){return{"data.menu":Ib,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Jq.Object.defineProperties(Eg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(O=W.thumbnail)==null?void 0:O.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(T=b.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(h=L.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Eg.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Eg.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],Eg.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Eg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Eg.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Eg.prototype,"collections",void 0);_.t([_.x("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],Eg.prototype,"collectionStack",null);Eg=_.t([_.G({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Eg);
_.H(Eg,"ytd-grid-radio-renderer",function(){if($WS!==void 0)return $WS;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $WS=W},{mode:1});var VRq;var wZ=function(){var W=_.n.apply(this,arguments)||this;W.useModernCollectionsV2=_.e("web_modern_collections_v2");return W};
_.R(wZ,_.n);wZ.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
wZ.prototype.computeNavigationEndpoint=function(W){return fRT(W==null?void 0:W.navigationEndpoint)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],wZ.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wZ.prototype,"data",void 0);_.t([_.C({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],wZ.prototype,"computedNavigationEndpoint",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wZ.prototype,"useModernCollectionsV2",void 0);wZ=_.t([_.G({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],wZ);
_.H(wZ,"ytd-grid-show-renderer",function(){if(VRq!==void 0)return VRq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return VRq=W},{mode:1});var NSL;_.Aj=function(W){this.playerClient=W};
_.MRH=function(W,O,b){b=b===void 0?{}:b;return W.playerClient.setOption("ad",O,b)};
_.Aj.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Aj.prototype.executeCommand=function(W,O){this.getOptions().includes("executeCommand")?_.MRH(this,"executeCommand",{command:W,layoutId:O}):_.Fg("Calling executeCommand when adModule is not loaded")};var XM=function(){return _.n.apply(this,arguments)||this};
_.R(XM,_.n);XM.prototype.getLayoutId=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
XM.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var W=_.ya(),O=this.getLayoutId(),b=this.data.clickthroughEndpoint;W&&O&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(T){(new _.Aj(T)).executeCommand(b,O)}):_.bX(this.hostElement,"yt-navigate",{endpoint:b})}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],XM.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],XM.prototype,"data",void 0);XM=_.t([_.G({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],XM);
_.H(XM,"ytd-shopping-companion-item-renderer",function(){if(NSL!==void 0)return NSL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return NSL=W},{mode:1});var uQU;var lF=function(){var W=_.n.apply(this,arguments)||this;W.isExpandableContent=!1;return W};
_.R(lF,_.n);_.Jq.Object.defineProperties(lF.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?void 0:W.price)||((O=this.data)==null?void 0:(b=O.dealsData)==null?void 0:b.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var W,O;if((W=this.data)!=null&&W.dealsData&&((O=this.data)==null||!O.priceReplacementText)){W=this.data.dealsData;var b,T,L;return((b=W.salesData)==null?void 0:b.originalPrice)||((T=W.priceDropData)==null?void 0:T.referencePrice)||((L=W.promotionData)==null?void 0:L.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var W,O;return(W=this.data)==null?void 0:(O=W.dealsData)==null?void 0:O.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],lF.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lF.prototype,"isExpandableContent",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"showCta",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"ctaText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"hasPriceTopPosition",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"hasPriceBottomPosition",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"useNewStyle",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"showPriceReplacementText",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"priceValue",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"showDeal",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"showAffiliateDisclaimer",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"useSaleStyle",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"useFromBrandCtaStyle",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"useFromVendorCtaStyle",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],lF.prototype,"useShoppingCollectionCtaStyle",null);lF=_.t([_.G({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],lF);
_.H(lF,"ytd-vertical-product-card-renderer",function(){if(uQU!==void 0)return uQU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return uQU=W},{mode:1});var Jrv;var eC=function(){return _.n.apply(this,arguments)||this};
_.R(eC,_.n);eC.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],eC.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],eC.prototype,"data",void 0);eC=_.t([_.G({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],eC);
_.H(eC,"ytd-grid-movie-renderer",function(){if(Jrv!==void 0)return Jrv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Jrv=W},{mode:1});var crU;var PV=function(){var W=_.n.apply(this,arguments)||this;W.rounded=!0;W.itemStyle="small-item";return W};
_.R(PV,_.n);PV.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,O,b,T,L=(O=_.P((W=this.data)==null?void 0:W.buttonCommand,_.h9$))==null?void 0:(b=O.item)==null?void 0:(T=b.notificationTextRenderer)==null?void 0:T.successResponseText;L&&_.NIh(this.hostElement,L)}};
_.Jq.Object.defineProperties(PV.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.isProductPlaceholder)!==void 0&&((O=this.data)==null?void 0:O.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],PV.prototype,"rounded",void 0);_.t([_.C(),_.N("design:type",Object)],PV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],PV.prototype,"itemStyle",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"hasPrice",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"hasPriceReplacementText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"hasAdditionalFeesText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"hasAffiliateDisclaimer",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"isProductPlaceholder",null);
_.t([_.C(),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"hideOpenInNewIcon",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],PV.prototype,"ariaLabel",null);PV=_.t([_.G({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],PV);
_.H(PV,"ytd-merch-shelf-item-renderer",function(){if(crU!==void 0)return crU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return crU=W},{mode:1});var F$f=_.J1(function(W){var O=_.uy();_.GJ(O,function(){return W.data().rendererContext});
return _.E("button-card-view-model",{el:O,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return W.data().title},
role:"button"},_.E(_.Kd,{model:{}}),_.E("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.E("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.E(_.U,{cond:function(){return W.data().image},
then:function(b){return _.E(_.uj,{data:b,alt:function(){var T;return(T=W.data().title)!=null?T:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.E("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return W.data().title})))},"Ua");_.e("web_button_view_model_wcw_registration_killswitch")||_.O1(F$f,"button-card-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){W=_.um(W,{className:void 0});var O=W.data;W=W.className;var b=_.Pj(function(){return O().onTapCommand},void 0,"NprDr");
return _.E("ytd-shopping-item-card",{class:_.YS("ytdShoppingItemCardHost",W)},_.E(_.jf,{command:b,className:"ytdShoppingItemCardHostLink"},_.E("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.E(_.R4,{data:function(){return O().thumbnailViewModel}},{thumbnailViewModel:function(T){return _.E(_.No,{data:T.data,
aspectRatio:3})}})),_.E("div",null,_.E("p",{class:"ytdShoppingItemCardHostItemTitle"},_.E(_.uw,{text:function(){return O().itemTitle}})),_.E("p",{class:"ytdShoppingItemCardHostPrice"},_.E(_.uw,{text:function(){return O().priceOrStatus}})))))},"Va"),"ytd-shopping-item-card",{props:{data:_.te,
className:_.te}});var yrU={isAdsVideo:!0},WW1={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},O3L={showPlayerControls:!1,videoPreviewDurationMs:15E3},iR2={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.e("web_shorts_imp_fullwidth_killswitch")};var Wt=null,Mcq={};var cQO="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(" "),pQ={},FW2=(pQ.FEwhat_to_watch="home",pQ.FEhashtag="hashtag",pQ.FEtrending="trending",pQ.FEhistory="history",pQ.SPunlimited="premium",pQ.FEmemberships_and_purchases="paid_memberships",pQ.SPredeem_code="redeem",pQ.SPverify_location="locate",pQ.SPminor_moment="minor_moment",
pQ.FEmini_app_container="mini_app",pQ.FEnews_destination="news",pQ.SPopen_in_app="open_in_app",pQ.FEexplore="explore",pQ.FEsubscriptions="subscriptions",pQ.FEsfv_audio_pivot="sfv_audio_pivot",pQ.FEplaylist_aggregation="playlist_aggregation",pQ);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");_.ZM("init");var i3N=function(){},LW$=_.J1(function(W){var O=W.data;
var b=W.inlineMetadata;var T=W.aspectRatio;var L=W.scrimStyle;var h=W.className;var Z=W.useDefaultStyle;var a=new i3N,m=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",w=_.Pj(function(){return(Z==null?0:Z())?m==="SHORTS_LOCKUP_STYLE_SLIM":O().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),A=_.Pj(function(){return _.ru(b)||w()||!1},void 0,"pcPnBf"),X=function(){return(L==null?void 0:L())!==void 0?L==null?void 0:L():1};
W=_.uy(function(M){a&&(a.hostElement=M,k())});
_.iO(W,{visibilityCallback:function(M){var V=O().onFirstVisible;M&&V&&_.nb(V)},
showOption:{calledOnce:!0,state:"visible"}});h=_.YS("shortsLockupViewModelHost",h);var l=_.uy(),p={};p=_.YS(function(){return w(),"shortsLockupViewModelHostThumbnailContainer"},(p.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.ru(T)===1},p.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.ru(T)===2},p.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!w()},p.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.e("web_shorts_2_by_3_lockups_study")&&!_.e("desktop_search_enable_two_by_three_shorts_aspect_ratio")},p));
var K,k=function(){if(a){var M;(M=K)==null||b3(M);var V;a.hostElement&&((V=a.data)==null?0:V.inlinePlayerData)&&(K=tI({mediaRenderer:a,lockupElement:a.hostElement,thumbnailElement:l.value,videoPreviewOpts:iR2}))}};
_.kb(function(){a&&(a.data=O(),k())});
var r=_.Pj(function(){return O().thumbnail},void 0,"FXJKOd"),q=_.Pj(function(){return O().badge},void 0,"RHSDwe"),f=_.Pj(function(){return O().onTap},void 0,"twXQme");
return _.E("ytm-shorts-lockup-view-model",{el:W,class:h},_.E(_.TT,null,_.E(_.jf,{command:f,className:_.YS("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!A()},
tabIndex:function(){return A()?0:-1}},_.E("div",{el:l,
class:p},_.E(_.U,{cond:r,then:function(){return _.E(_.uj,{data:function(){return r()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.E(_.U,{cond:A,
then:function(){return _.E(b3L,{data:O,scrimStyle:X,useDefaultStyle:Z})}}),_.E(_.R4,{data:q},{badgeViewModel:function(M){return _.E(_.cd,{data:M.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.E(_.U,{cond:function(){return A()&&O().menuOnTap},
then:function(){return _.E(jX7,{data:O,inlineMetadata:!0})}}),_.E(_.U,{cond:function(){return!A()},
then:function(){return _.E(TIU,{data:O,useDefaultStyle:Z})}})))},"Wa"),b3L=_.J1(function(W){var O=W.data;
var b=W.scrimStyle;var T=W.useDefaultStyle;var L=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",h=T&&_.e("web_hide_primary_text_for_pivot_panel"),Z=_.Pj(function(){return(T==null?0:T())?L==="SHORTS_LOCKUP_STYLE_SLIM":O().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
W={};W=_.YS("shortsLockupViewModelHostInlineMetadata",(W.shortsLockupViewModelHostMetadataRounded=function(){return!Z()},W.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(b==null?void 0:b())===3&&!_.e("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(b==null?void 0:b())===3&&_.e("enable_shorts_lockup_new_scrim")},W.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(b==null?void 0:b())===2||(b==null?void 0:
b())===4},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
var a={};return _.E("div",{class:W},_.E("h3",{class:_.YS("shortsLockupViewModelHostMetadataTitle",(a.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(b==null?void 0:b())===4},a)),
"aria-label":function(){return O().accessibilityText}},_.E(_.U,{cond:function(){var m;
return!((m=O().overlayMetadata)==null||!m.primaryText)&&!h},
then:function(){return _.E(_.uw,{text:function(){var m;return(m=O().overlayMetadata)==null?void 0:m.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.E(_.U,{cond:function(){var m;
return(m=O().overlayMetadata)==null?void 0:m.secondaryText},
then:function(){return _.E(dU1,{data:O,scrimStyle:b,className:void 0})}}))},"Xa"),TIU=_.J1(function(W){var O=W.data;
var b=W.useDefaultStyle;var T=_.e("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",L=_.Pj(function(){return(b==null?0:b())?T==="SHORTS_LOCKUP_STYLE_SLIM":O().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
W=_.YS(function(){return L()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var h,Z=_.XL(function(){var m;(m=h)==null||m.click();return!1}),a={};
return _.E("div",{class:W,"on:click":Z},_.E("h3",{class:_.YS("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(a.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var m,w;return!((m=O().overlayMetadata)==null?0:(w=m.primaryText)==null?0:w.content)},a)),
"aria-label":function(){return O().accessibilityText}},_.E(_.jf,{ref:function(m){return void(h=m)},
command:function(){return O().onTap},
className:_.YS("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var m,w;return(m=O().overlayMetadata)==null?void 0:(w=m.primaryText)==null?void 0:w.content}},_.E(_.U,{cond:function(){return!!O().overlayMetadata},
then:function(){return _.E(_.uw,{text:function(){var m;return(m=O().overlayMetadata)==null?void 0:m.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.E(_.U,{cond:function(){var m;
return(m=O().overlayMetadata)==null?void 0:m.secondaryText},
then:function(){return _.E(dU1,{data:O,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.E(_.U,{cond:function(){return O().menuOnTap},
then:function(){return _.E(jX7,{data:O,inlineMetadata:!1})}}))},"Ya"),dU1=_.J1(function(W){var O=W.data;
var b=W.scrimStyle;W=W.className;var T={};return _.E("div",{class:_.YS((T.shortsLockupViewModelHostMetadataSubhead=function(){return(b==null?void 0:b())!==4},T.shortsLockupViewModelHostMetadataSubheadNew=_.e("enable_shorts_lockup_new_scrim"),T.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(b==null?void 0:b())===4},T),W),
"aria-hidden":"true"},_.E(_.uw,{text:function(){var L;return(L=O().overlayMetadata)==null?void 0:L.secondaryText},
noStyleRuns:!0}))},"Za"),jX7=_.J1(function(W){var O=W.data;
var b=W.inlineMetadata;W={};W=_.YS((W.shortsLockupViewModelHostInlineMetadataMenu=function(){return b()},W.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!b()},W.shortsLockupViewModelHostShowOverPlayer=function(){return!0},W),"image-overlay-text");
return _.E("div",{class:W},_.E(cm,{data:function(){return{style:b()?"overlay":"mono",accessibilityLabel:O().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(T){T.preventDefault();T.stopPropagation();var L=_.Cb({elementsCommand:O().menuOnTap,forceNewState:!0});if(L==null?0:L.onclick)L.onclick(T)}}},
iconName:"MORE_VERT"}))},"$a");var jZh=_.lw({badgeViewModel:cmX}),ORQ=function(){},hmn=_.AP(dwE),SXv=_.J1(function(W){var O=W.data;
var b=W.inlineMetadata;var T=W.aspectRatio;var L=W.scrimStyle;var h=W.className;var Z=W.useDefaultStyle;W=_.Pj(function(){var m=O().entityId;return m?m.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var a=_.e("web_shorts_lockup_view_model_sink")?LW$:hmn;return _.E("ytm-shorts-lockup-view-model-v2",{class:_.YS("shortsLockupViewModelHost",h)},_.E(_.esq,{contentId:W,aspectRatio:function(){return(T==null?void 0:T())===1?1:(T==null?void 0:T())===2?2:4}},function(){return _.E(a,{data:O,
inlineMetadata:b,aspectRatio:T,scrimStyle:L,className:h,useDefaultStyle:Z})}))},"ab");
_.bO(dwE);_.bO(bRe);_.bO(LeQ);_.bO(h2X);_.bO(TX8);_.O1(SXv,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Ws,inlineMetadata:_.Ws,aspectRatio:_.Ws,scrimStyle:_.Ws,className:_.Ws,useDefaultStyle:_.Ws}});var Z39=16/9*210,Rr=function(){var W=_.n.apply(this,arguments)||this;W.isExpandableContent=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.buttonClasses=["arrow"];W.isSearch=!1;W.disableScrollEventListener=!1;W.containsLockup=!1;W.overrideArrowPositionForProductCard=!1;W.overrideArrowPositionForShoppingItemCard=!1;W.overrideArrowPositionForReelItems=!1;W.overrideArrowPositionForGridMovie=!1;W.overrideArrowPositionToCenter=!1;W.isSearchPostShelf=!1;W.overrideArrowPositionForMixedShelf=!1;W.overrideArrowPositionForMixedShelfShortsOnly=
!1;W.hasBigThumbsReelItems=!1;W.shouldUseMixedListHeight=!1;W.shouldUseShortsListHeight=!1;W.gridVideoWidth=0;W.isSearchVodShelf=!1;W.disableWheelScroll=!1;W.sizing="COMPACT";W.shortsLockupAspectRatio=0;return W};
_.R(Rr,_.n);_.d=Rr.prototype;
_.d.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]]"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.e("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.d.computeInitialCountNumber=function(W){if(!W)return 6;var O=W.items.some(function(h){return!!h.topicRecommendationsChipRenderer}),b=W.items.some(function(h){return!!h.displayAdRenderer}),T=this.computeShouldListItemsHaveEqualHeight(W),L=W.items.some(function(h){return!!h.gridPlaylistRenderer});
W=W.items.some(function(h){return!!h.shoppingItemCardViewModel});
return O?9:b?8:L||T?10:W?7:6};
_.d.computeContainsPost=function(W){return!!W&&!!W.items&&W.items.some(function(O){return!!O.postRenderer})};
_.d.computeContainsLockup=function(){if(_.e("web_horizontal_list_lockup_arrow_killswitch"))return!1;var W,O;return(W=this.data)==null?void 0:(O=W.items)==null?void 0:O.some(function(b){return!!b.lockupViewModel})};
_.d.maybeUpdateLockupAspectRatio=function(){var W,O;if(this.computeContainsLockup()&&((W=this.data)==null?0:(O=W.items)==null?0:O.length)){var b;W=jXq((b=this.data.items[0].lockupViewModel)==null?void 0:b.contentType,this.data.force16By9ThumbnailAspectRatio);b=R7Q(W);b=this.computeLockupWidth()/b;_.Sl(this.hostElement,{"--yt-horizontal-list-content-height":b+"px"})}};
_.d.computeOverrideArrowPositionForProductCard=function(W){if(this.isExpandableContent)return!1;var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){return!!b.verticalProductCardRenderer}))};
_.d.computeOverrideArrowPositionForShoppingItemCard=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){return!!b.shoppingItemCardViewModel}))};
_.d.computeOverrideArrowPositionForReelItemRenderer=function(W){return this.containsReelItemRenderer(W)};
_.d.computeHasBigThumbsReelItems=function(W,O){return W&&this.containsReelItemRenderer(O)};
_.d.computeShouldListItemsHaveEqualHeight=function(W){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(W==null?void 0:W.itemSizeConstraint)};
_.d.computeShouldListItemsHaveShortsHeight=function(W){return this.computeShouldListItemsHaveEqualHeight(W)&&!this.containsGridVideoRenderer(W)};
_.d.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.d.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.d.containsReelItemRenderer=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){return!(!b.reelItemRenderer&&!b.shortsLockupViewModel)}))};
_.d.containsGridVideoRenderer=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){return!!b.gridVideoRenderer||!!b.lockupViewModel}))};
_.d.computeContainsGridMovieRenderer=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){return!!b.gridMovieRenderer}))};
_.d.computeOverrideArrowPositionToCenter=function(W){return this.computeIsSearchPostShelf(W)};
_.d.computeIsSearchPostShelf=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){var T,L;return((L=(T=b.postRenderer)==null?void 0:T.surface)!=null?L:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.d.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(W){var O;return!!(W==null?0:(O=W.items)==null?0:O.some(function(b){var T,L,h;return((h=(T=b.backgroundPromoRenderer)==null?void 0:(L=T.style)==null?void 0:L.value)!=null?h:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.d.computeIsSearchVodShelf=function(W,O){return W&&this.containsGridVideoRenderer(O)};
_.d.computeDisableWheelScroll=function(W,O){return this.computeIsSearchVodShelf(W,O)};
_.d.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.d.computeShortsLockupAspectRatio=function(W){return W&&_.e("web_shorts_2_by_3_lockups_no_search")&&!_.e("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.d.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Sl(this.hostElement,{"--ytd-reel-item-thumbnail-height":Z39+"px"})};
Rr.prototype.dataChanged=Rr.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],Rr.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rr.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],Rr.prototype,"isExpandableContent",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"hideShelfHeader",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"engagementPanel",void 0);_.t([_.C(),_.N("design:type",Array)],Rr.prototype,"buttonClasses",void 0);_.t([_.C(),_.N("design:type",Object)],Rr.prototype,"isSearch",void 0);
_.t([_.C(),_.N("design:type",Object)],Rr.prototype,"disableScrollEventListener",void 0);_.t([_.C({computed:"computeInitialCountNumber(data)"}),_.N("design:type",Number)],Rr.prototype,"initialCount",void 0);_.t([_.C({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],Rr.prototype,"supportComponentResize",void 0);_.t([_.C({computed:"computeContainsPost(data)"}),_.N("design:type",Boolean)],Rr.prototype,"containsPost",void 0);
_.t([_.C({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"containsLockup",void 0);_.t([_.C({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Rr.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.t([_.C({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForProductCard",void 0);_.t([_.C({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.t([_.C({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForReelItems",void 0);_.t([_.C({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForGridMovie",void 0);
_.t([_.C({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionToCenter",void 0);_.t([_.C({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"isSearchPostShelf",void 0);_.t([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.t([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.t([_.C({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"hasBigThumbsReelItems",void 0);
_.t([_.C({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"shouldUseMixedListHeight",void 0);_.t([_.C({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"shouldUseShortsListHeight",void 0);_.t([_.C({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"gridVideoWidth",void 0);
_.t([_.C({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"isSearchVodShelf",void 0);_.t([_.C({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.N("design:type",Object)],Rr.prototype,"disableWheelScroll",void 0);_.t([_.C({computed:"computeSizing(isSearch)"}),_.N("design:type",Object)],Rr.prototype,"sizing",void 0);
_.t([_.C({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.N("design:type",Object)],Rr.prototype,"shortsLockupAspectRatio",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rr.prototype,"dataChanged",null);
_.H(Rr,"yt-horizontal-list-renderer",function(){if(YsL===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);YsL=W}W=YsL;return W},{mode:1});var Iev;var aeU=[10,12,14,16,18,20,24,28,32,36],mUv=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],KQ=function(){var W=_.n.apply(this,arguments)||this;W.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";W.hideOverflow=!1;W.useRoboto=!1;W.fontClass="";W.overflown=!1;W.actionMap={"yt-window-resized":"resize"};return W};
_.R(KQ,_.n);_.d=KQ.prototype;
_.d.attached=function(){var W=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();_.My(this,function(){W.resize()});
if(!_.jb){var O,b,T;(O=document)==null||(b=O.fonts)==null||(T=b.ready)==null||T.then(function(){W.resize()})}};
_.d.dataChanged=function(){this.resize()};
_.d.guideIsExpandedChanged=function(){this.resize()};
_.d.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 W=this.getMaxNumLines(),O=this.getMinFont(),b=this.getMaxFont(),T=this.useRoboto?aeU:mUv;for(T=T.filter(function(h){return h<=b&&h>=O});T.length>1;){var L=Math.floor(T.length/2);
this.updateFontSize(T[L]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=W)T=T.slice(L,T.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>W)T=T.slice(0,L);else break}this.updateFontSize(T[T.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(W)}};
_.d.handleOverflow=function(W){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>W&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",W.toString()))};
_.d.updateFontSize=function(W){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+W;this.textNode.classList.add(this.fontClass)};
_.d.getMaxFont=function(){var W=this.useRoboto?aeU:mUv;W=W[W.length-1];return this.maxFontSize&&this.maxFontSize<=W?this.maxFontSize:W};
_.d.getMinFont=function(){var W=(this.useRoboto?aeU:mUv)[0];return this.minFontSize&&this.minFontSize>=W?this.minFontSize:W};
_.d.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.d.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.d.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.NX(this.text).split("\n").length-1:Infinity};
_.d.setParentConstraints=function(){this.maxWidth&&(this.containerNode.style.maxWidth=this.maxWidth+"px");this.maxHeight&&(this.containerNode.style.maxHeight=this.maxHeight+"px");if(this.fontWeight){if(this.useRoboto&&this.fontWeight!==400&&this.fontWeight!==500)throw Error("Fh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
KQ.prototype.guideIsExpandedChanged=KQ.prototype.guideIsExpandedChanged;KQ.prototype.dataChanged=KQ.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],KQ.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],KQ.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KQ.prototype,"text",void 0);
_.t([_.C(),_.N("design:type",String)],KQ.prototype,"fontFamily",void 0);_.t([_.C(),_.N("design:type",Number)],KQ.prototype,"maxWidth",void 0);_.t([_.C(),_.N("design:type",Number)],KQ.prototype,"maxHeight",void 0);_.t([_.C(),_.N("design:type",Number)],KQ.prototype,"maxFontSize",void 0);_.t([_.C(),_.N("design:type",Number)],KQ.prototype,"minFontSize",void 0);_.t([_.C(),_.N("design:type",Number)],KQ.prototype,"maxLines",void 0);_.t([_.C(),_.N("design:type",Object)],KQ.prototype,"hideOverflow",void 0);
_.t([_.C({selector:_.ZNQ}),_.N("design:type",Boolean)],KQ.prototype,"guideIsExpanded",void 0);_.t([_.El("#container"),_.N("design:type",HTMLElement)],KQ.prototype,"containerNode",void 0);_.t([_.El("#text"),_.N("design:type",HTMLElement)],KQ.prototype,"textNode",void 0);_.t([_.Ul("text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"dataChanged",null);
_.t([_.Ul("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KQ.prototype,"guideIsExpandedChanged",null);KQ=_.t([_.G({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],KQ);
_.H(KQ,"yt-dynamic-sizing-formatted-string",function(){if(Iev!==void 0)return Iev;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Iev=W},{mode:1});var YXL;_.Ee9=function(W){_.W2.call(this,W)};
_.R(_.Ee9,_.W2);var wEL=function(W){_.W2.call(this,W)};
_.R(wEL,_.Ee9);var vV=function(){return _.n.apply(this,arguments)||this};
_.R(vV,_.n);vV.prototype.onTapSuspendedChannel=function(){var W;if((W=this.data)!=null&&W.serviceEndpoint){var O,b;(W=(b=_.P((O=this.data)==null?void 0:O.serviceEndpoint,_.t8))==null?void 0:b.url)?_.GF(W,void 0,void 0,window.top):(O=new wEL("Did not handle suspended account tap. No appealUrl."),_.Dt(O))}else O=new wEL("Did not handle suspended account tap. No serviceEndpoint."),_.Dt(O)};
vV.prototype.onTap=function(){var W=this,O=_.A4(),b,T=(b=_.wG(O,{veType:7116}))!=null?b:void 0;_.fd(O,{visualElement:T});_.n_();this.saveRoleText();var L;if((L=this.data)==null?0:L.youtubeSuspended)this.onTapSuspendedChannel();else{var h=!1,Z,a;(O=(a=_.P((Z=this.data)==null?void 0:Z.serviceEndpoint,_.RFL))==null?void 0:a.supportedTokens)&&O.forEach(function(m){if(m.accountSigninToken)if(h=!0,W.onAccountItemTap)W.onAccountItemTap(m.accountSigninToken.signinUrl);else _.GF(m.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!h){if(Z=this.get("serviceEndpoint",this.data))h=!0,this.ytComponentBehavior.resolveCommand(Z);h||_.xG(new wEL("Did not handle account switch tap. No token."))}}};
vV.prototype.saveRoleText=function(){if(this.data){var W=this.data,O=W.channelDelegationRole;if(O){var b,T=(b=_.P(W==null?void 0:W.serviceEndpoint,_.RFL))==null?void 0:b.supportedTokens;if(!T){var L,h,Z,a;T=(L=_.P(W==null?void 0:W.serviceEndpoint,_.pN))==null?void 0:(h=L.popup)==null?void 0:(Z=h.confirmDialogRenderer)==null?void 0:(a=Z.confirmButton)==null?void 0:a.buttonRenderer;var m;T=(m=_.P(T==null?void 0:T.command,_.I5))==null?void 0:m.commands;if(!T)return;var w;T=(w=_.P(T[1],_.RFL))==null?
void 0:w.supportedTokens}if(T){m=void 0;w=_.S(T);for(T=w.next();!T.done;T=w.next())if(T=T.value,T.datasyncIdToken){m=T.datasyncIdToken.datasyncIdToken;break}if(m){var A;a:{if(_.WfX()&&(w=_.mph(m+"::pom"))){w=new UZ(w);break a}w=void 0}(A=w)==null||A.set("role_text",O);if((m5h?m5h:window.location).href.indexOf("studio")!==-1&&(A=Oh8())){w=A.src?(new URL(A.src)).origin:"*";var X;(X=A.contentWindow)==null||X.postMessage({action:"save_pom_role",datasyncId:m,roleText:O},w)}}}}}};
_.Jq.Object.defineProperties(vV.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.accountPhoto)==null?void 0:O.thumbnails;return b&&b.length>0&&(b[0].height===36||b[0].height===48)?b[0].height:40}}});
vV.prototype.onTap=vV.prototype.onTap;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],vV.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Function)],vV.prototype,"onAccountItemTap",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vV.prototype,"enableRingForActiveAccount",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],vV.prototype,"thumbnailSize",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vV.prototype,"onTap",null);vV=_.t([_.G({is:"ytd-account-item-renderer",disableElementRegistration:!0})],vV);
_.H(vV,"ytd-account-item-renderer",function(){if(YXL!==void 0)return YXL;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return YXL=W},{mode:1});var AQ9;var gZ=function(){return _.n.apply(this,arguments)||this};
_.R(gZ,_.n);gZ.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.iq().resolve(_.bq).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gZ.prototype,"data",void 0);gZ=_.t([_.G({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],gZ);
_.H(gZ,"ytd-identity-chip-renderer",function(){if(AQ9!==void 0)return AQ9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return AQ9=W},{mode:1});var XEw;var UUw;var len;var emn;var or=function(){var W=_.n.apply(this,arguments)||this;W.richItemMinWidth=_.Lu("wn_grid_min_item_width",310);W.isShorts=!1;W.isWatchNext=!1;W.isExploreHub=!1;return W};
_.R(or,_.n);_.Jq.Object.defineProperties(or.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var W=[],O=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Sl(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var b;if(((b=this.data)==null?0:b.rows)&&O)for(O*=this.data.rows,b=0;b<O;b++)W.push({});return W}}});
_.t([_.D(_.sh),_.N("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],or.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.sr,value:3}),_.N("design:type",Number)],or.prototype,"itemsPerRow",void 0);_.t([_.C({selector:_.S2X,value:6}),_.N("design:type",Number)],or.prototype,"slimItemsPerRow",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Number)],or.prototype,"richItemMinWidth",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],or.prototype,"miniMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"isShorts",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"isWatchNext",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],or.prototype,"isExploreHub",void 0);
_.t([_.x("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.N("design:type",Array),_.N("design:paramtypes",[])],or.prototype,"cardItems",null);or=_.t([_.G({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],or);
_.Plw=_.TH()(or,"ytd-ghost-grid-renderer",function(){if(emn===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);emn=W}W=emn;return W},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.O1(_.J1(function(W){var O=_.um(W,{numberOfComments:3}).numberOfComments,b=_.um(W,{isInitialLoad:!1}).isInitialLoad,T=_.um(W,{engagementPanel:!1}).engagementPanel,L=function(){return Math.min(Number(O==null?void 0:O())||20,20)};
return _.E("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.E(_.U,{cond:function(){return!(T==null?0:T())&&(b==null?void 0:b())},
then:function(){return _.E("div",{class:"ytGhostCommentsComments"},_.E("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.E("div",{class:_.YS("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.E("div",{class:_.YS("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.E("div",{class:"ytGhostCommentsGhostCard"},_.E("div",{class:"ytGhostCommentsAvatar"},_.E("div",{class:"ytGhostCommentsCircle"})),_.E("div",{class:"ytGhostCommentsComments"},_.E("div",{class:"ytGhostCommentsMeta"},
_.E("div",{class:_.YS("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.E("div",{class:_.YS("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.E("div",{class:"ytGhostCommentsComments"},_.E(_.pv,{each:function(){return Array((L==null?void 0:L())||3)}},function(){return _.E("div",{class:"ytGhostCommentsGhostCard"},_.E("div",{class:"ytGhostCommentsAvatar"},_.E("div",{class:"ytGhostCommentsCircle"})),_.E("div",{class:"ytGhostCommentsHost"},_.E("div",{class:"ytGhostCommentsMeta"},
_.E("div",{class:_.YS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.E("div",{class:_.YS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.E("div",{class:_.YS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.E("div",{class:"ytGhostCommentsGhostLikeDislike"},_.E("div",{class:_.YS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.E("div",{class:_.YS("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"bb"),"yt-ghost-comments",{props:{numberOfComments:_.te,
isInitialLoad:_.te,engagementPanel:_.te}});_.Bs("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Qt=function(){var W=_.n.apply(this,arguments)||this;W.isOverridable=!1;W.spinnerActive=!1;W.showButton=!1;W.isCommentsSection=!1;W.engagementPanel=!0;W.isShortsGrid=!1;W.isShortsPage=!1;W.isWatchPage=!1;W.ghostCardExperimentEnabled=_.e("show_ghost_comments_shorts_watch")||_.e("show_ghost_comments_desktop_watch");W.originalShowButton=!1;W.endOfList=!1;return W};
_.R(Qt,_.n);_.d=Qt.prototype;_.d.resetIntersectionObserver=function(){var W;(W=this.observer)==null||W.disconnect();this.observer=void 0};
_.d.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var W,O;((W=this.data)==null?void 0:W.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((O=this.data)==null?0:O.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.d.initializeIntersectionObserver=function(){var W=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(O){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b.value.isIntersecting&&(W.triggerContinuation(),W.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.d.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.d.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var W;((W=this.data)==null?0:W.continuationEndpoint)&&(W=_.P(this.data.continuationEndpoint,_.Cd))&&this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:W}}))};
_.d.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.d.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.d.onServiceRequestCompleted=function(W,O){if(!_.e("kevlar_hide_spinner_on_empty_continuation_killswitch")){var b;(b=O.actions)!=null&&b.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.d.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.d.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.d.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.d.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var W=3;if(this.engagementPanel){var O,b,T;W=Math.floor(((((O=this.hostElement)==null?void 0:(b=O.parentElement)==null?void 0:(T=b.parentElement)==null?void 0:T.scrollHeight)||108)-108)/108);W=this.isInitialLoad?Math.max(W,3):3}O=[].concat(_.PG(this.hostElement.querySelectorAll("yt-ghost-comments")));O=_.S(O);for(b=O.next();!b.done;b=O.next())b=b.value,b.numberOfComments=W,b.isInitialLoad=this.isInitialLoad,b.engagementPanel=
this.engagementPanel}};
_.d.detached=function(){this.resetIntersectionObserver()};
_.Jq.Object.defineProperties(Qt.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.e("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.e("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
Qt.prototype.numberOfGhostCommentsChanged=Qt.prototype.numberOfGhostCommentsChanged;Qt.prototype.continuationTriggerOffsetChanged=Qt.prototype.continuationTriggerOffsetChanged;Qt.prototype.showButtonChanged=Qt.prototype.showButtonChanged;Qt.prototype.onYtServiceRequestCompletedForButtonRenderer=Qt.prototype.onYtServiceRequestCompletedForButtonRenderer;Qt.prototype.onServiceRequestCompleted=Qt.prototype.onServiceRequestCompleted;Qt.prototype.onYtServiceRequestSentForButtonRenderer=Qt.prototype.onYtServiceRequestSentForButtonRenderer;
Qt.prototype.observeData=Qt.prototype.observeData;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],Qt.prototype,"ytVisibilityBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Qt.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],Qt.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"isOverridable",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"spinnerActive",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"showButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Qt.prototype,"isCommentsSection",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Qt.prototype,"engagementPanel",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"isShortsGrid",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.am8}),_.N("design:type",Object)],Qt.prototype,"isShortsPage",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.rm}),_.N("design:type",Object)],Qt.prototype,"isWatchPage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Qt.prototype,"ghostCardExperimentEnabled",void 0);
_.t([_.C(),_.N("design:type",Number)],Qt.prototype,"continuationTriggerOffset",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"endOfList",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Qt.prototype,"isInitialLoad",void 0);_.t([_.El("ytd-button-renderer"),_.N("design:type",_.V8)],Qt.prototype,"buttonRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],Qt.prototype,"buttonOverrides",void 0);
_.t([_.C(),_.x("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qt.prototype,"isShortsCommentsSection",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"observeData",null);
_.t([_.ai("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Qt.prototype,"onServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-completed-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.t([_.Ul("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"showButtonChanged",null);
_.t([_.Ul("continuationTriggerOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"continuationTriggerOffsetChanged",null);_.t([_.m5("isInitialLoad","engagementPanel"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qt.prototype,"numberOfGhostCommentsChanged",null);Qt=_.t([_.G({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Qt);
_.H(Qt,"ytd-continuation-item-renderer",function(){if(len!==void 0)return len;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return len=W},{mode:1});var pE7;var kE=function(){var W=_.n.apply(this,arguments)||this;W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;W.downloadedVideoPlaybackPosition=0;return W};
_.R(kE,_.n);kE.prototype.dataChanged=function(){var W;this.videoData=_.P((W=this.data)==null?void 0:W.renderer,brL);this.transferStateChanged()};
kE.prototype.downloadProgressChanged=function(){if(this.entityInfo){var W=Object.assign({},this.videoData),O=SLh(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),b=O.publishedTimeText,T=O.badges;W.shortViewCountText=O.shortViewCountText;W.publishedTimeText=b;W.badges=T;this.set("videoData",W)}};
kE.prototype.transferStateChanged=function(){if(this.entityInfo){var W=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",O=_.lv(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ur(this.entityInfo.policyEntity),b=Object.assign({},this.videoData),T=SLh(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),L=T.publishedTimeText,h=T.badges;b.shortViewCountText=
T.shortViewCountText;b.publishedTimeText=L;b.badges=h;b.isDisabled=O;b.isWatched=this.downloadedVideoPlaybackPosition>0;b.navigationEndpoint=O?void 0:qYX(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var Z;W&&((Z=this.videoData)==null?0:Z.videoId)&&!_.e("dl_resume_click_killswitch")&&(b.isDisabled=!1,b.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});b.thumbnailOverlays=dge(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",b)}};
kE.prototype.transferStateChanged=kE.prototype.transferStateChanged;kE.prototype.downloadProgressChanged=kE.prototype.downloadProgressChanged;kE.prototype.dataChanged=kE.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kE.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],kE.prototype,"videoData",void 0);_.t([_.C({selector:zc,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"downloadProgress",void 0);_.t([_.C(),_.N("design:type",Number)],kE.prototype,"relativeDateReference",void 0);_.t([_.C({selector:_.D5,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"transferState",void 0);
_.t([_.C({selector:B5X,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"downloadState",void 0);_.t([_.C({selector:XXO,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"offlinePolicyAction",void 0);_.t([_.C({selector:UNO,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.t([_.C({selector:Ce,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"downloadedVideoPlaybackPosition",void 0);_.t([_.C({selector:eUQ,selectorArgs:["videoData.videoId"]}),_.N("design:type",Object)],kE.prototype,"entityInfo",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],kE.prototype,"isDownloading",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"dataChanged",null);
_.t([_.Ul("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"downloadProgressChanged",null);_.t([_.Ul("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kE.prototype,"transferStateChanged",null);
kE=_.t([_.G({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],kE);
_.H(kE,"ytd-downloaded-video-grid-video-renderer",function(){if(pE7!==void 0)return pE7;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return pE7=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var Rmq;var sg=function(){};
sg.prototype.resolve=function(W,O){var b=this;return _.I(function(T){return _.Y(T,b.resolveCommand(W,O),0)})};var KW5,BV;KW5=foX(function(W){return W.targetId},{shouldPersist:!1});
BV=KW5.updateData;_.vez=KW5.useUpdatableData;var geU,oeH;geU=foX(function(W){return W.targetId});
oeH=geU.updateData;_.QXn=geU.useUpdatableData;var kSq=Sfh.bind(null,BV),sXv=Sfh.bind(null,oeH);(function(W,O,b){var T=_.P(b==null?void 0:b.updatedRenderer,_.og$);return T?W({targetId:O},function(){return T}):!1}).bind(null,BV);var rZ=function(){};
_.R(rZ,sg);rZ.prototype.resolveCommand=function(W){var O;return _.I(function(b){O=_.P(W,_.Yj2);if(!O)return b.return();kSq(O.targetId,O);_.aD(b)})};var Dy=function(){var W=_.A1.apply(this,arguments)||this;W.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return W};
_.R(Dy,_.A1);_.d=Dy.prototype;_.d.configureContinuationPathMap=function(){return{}};
_.d.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.d.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.d.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.d.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.d.handleAppendContinuationItemsAction=function(W){var O=_.P(W,_.LDN);if(this.data&&this.data.targetId&&O&&this.continuationPathMap&&O.targetId===this.data.targetId){var b=sx8(W);if((W=b&&this.continuationPathMap[b])&&b){b=this.get(W,this.data);var T;a:{for(T=0;T<b.length;T++){var L=b[T],h=void 0,Z=!!_.P((h=_.P(L,tbN))==null?void 0:h.content,_.u8w);if(_.P(L,_.bU)||Z)break a}T=b.length}W="data."+W;O.continuationItems?T===b.length-1?(this.pop(W),this.push.apply(this,[W].concat(_.PG(O.continuationItems)))):
T===b.length?this.push.apply(this,[W].concat(_.PG(O.continuationItems))):this.splice.apply(this,[W,T,1].concat(_.PG(O.continuationItems))):this.splice(W,T,1);(_.e("web_enable_voting_animation")||_.e("enable_music_web_cairo_voting_animation"))&&_.bX(this.hostElement,"yt-append-continuation-items-action-finished");_.bX(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.z5(new _.pu("append continuation path does not exist",b))}};
_.d.handleReloadContinuationItemsCommand=function(W){var O=_.P(W,_.Yj2);if(this.data&&O){if(_.e("web_explore_hub")||_.e("web_client_explore_hub")||_.e("web_explore_hub_on_hover")||_.e("web_client_explore_hub_on_hover"))try{_.iq().resolve(rZ).resolveCommand(W)}catch(h){}if(this.data.targetId&&this.continuationPathMap&&O.targetId===this.data.targetId&&(!_.e("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||O.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var b,T=
(b=O.slot)==null?void 0:b.replace("RELOAD_CONTINUATION_SLOT_","");b=(W=sx8(W)+"-"+(T==null?void 0:T.toLowerCase()))&&this.continuationPathMap[W];if(!b||!W||!T)_.z5(new _.pu("reload continuation path does not exist",W));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(O)){if(O.replaceWithFirstItem){var L;this.set("data."+b,((L=O.continuationItems)==null?0:L.length)?O.continuationItems[0]:{})}else this.set("data."+b,O.continuationItems?O.continuationItems:
[]);this.continuationIsReloading=!1;_.bX(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.d.handleShowReloadUiCommand=function(W){W=_.P(W,lbn);var O;((O=this.data)==null?0:O.targetId)&&(W==null?0:W.targetId)&&W.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
Dy.prototype.observeData=Dy.prototype.observeData;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Dy.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Dy.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Dy.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],Dy.prototype,"continuationIsReloading",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Dy.prototype,"observeData",null);Dy=_.t([_.XT()],Dy);_.xE=[_.x_.YtComponentBehavior,_.WP.YtActionHandlerBehavior,Dy.prototype];_.zj={};_.zj.YtNextContinuationBehavior=[_.uH.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",_.Ii(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.Ii(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(W,O){W.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,O,{}):(W={locationRetrieved:function(b){this.makeNextContinuationRequest_(b,O,{})}.bind(this)},_.bX(this.hostElement,"yt-retrieve-location",W))},
makeNextContinuationRequest_:function(W,O,b){_.ra("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();W=O(W);var T;this.canUseContextualNetworkManager_()&&(T=this.getNetworkManager());T||(T=_.iq().resolve(_.k1));O=_.GB.instance;if(_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&O){T=_.JH([W.startsWith("/")?W.substr(1):W]);var L,h;b=_.QR(O,{},T,b==null?void 0:(L=b.context)==null?void 0:(h=L.clickTracking)==null?void 0:h.clickTrackingParams).then(function(Z){return{response:Z}})}else b=
this.nextContinuation.usePost?T.postData(W,b):T.fetchData(W);
b.then(this.updateNextContinuationData_.bind(this,W));this.pendingContinuationRequest_=b;this.startListeningForNavigate_()},
updateNextContinuationData_:function(W,O){var b=this;_.ra("ncl");this.pendingContinuationRequest_=void 0;if(O){var T={};this.nextContinuation&&(T=this.nextContinuation);if(O.response&&O.response.continuationContents&&O.response.continuationContents[T.continuationType]){W=O.response.continuationContents[T.continuationType];var L=T.header||"data.header",h=W[T.responseHeaderKey||"header"];h&&this.set(L,h);L=T.contentsArray||"data.contents";h=this.getContents_(W,T.responseContentsKey||"contents")||[];
this.pathExists_(L)?(h.unshift(L),this.push.apply(this,h)):this.set(L,h);h&&(ZR1(_.A4(),O.response,this.hostElement,function(Z){_.jx(b.hostElement,"yt-store-grafted-ve-action",[Z])}),_.bX(this.hostElement,"yt-next-continuation-data-updated",{continuationData:O,
page:this,contentsArray:L}));this.set(T.continuationsArray||"data.continuations",W[T.responseContinuationsKey||"continuations"]||[])}else O.reload?_.z5(new _.pu("Reloading from continuation is unsupported")):O.responseContext&&O.responseContext.errors||(delete O.xsrf_token,delete O.timing,delete O.endpoint,delete O.csn,O.responseContext&&delete O.responseContext.serviceTrackingParams,L={request:_.MC(W,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(O).sort()},O.response&&(L.responseContentKeys=
Object.keys(O.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(L.continuationType=this.nextContinuation.continuationType.substr(0,256)),O=new _.pu("Malformed continuation",L),W.indexOf("/comment_service_ajax")==0?_.z5(O):_.Dt(O)),this.set(T.continuationsArray||"data.continuations",[])}else _.xG(new _.pu("Missing continuation response",W))},
getContents_:function(W,O){O=O.split(".");return _.PQ.getValueByKeys(W,O)},
pathExists_:function(W){var O=this;W=W.toString().split(".");for(var b=0;b<W.length;b++)if(O=O[W[b]],O===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var BIq;var rQ5;var CQ=function(){var W=_.n.apply(this,arguments)||this;W.triggered_=!1;return W};
_.R(CQ,_.n);_.d=CQ.prototype;_.d.attached=function(){this.maybeTriggerAutoload()};
_.d.detached=function(){this.hasBeenTriggered_=!1};
_.d.onPrescanVisible=function(){this.onShow()};
_.d.onShow=function(){this.showButton||this.trigger()};
_.d.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.bX(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.d.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.d.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.d.computeLabel_=function(W,O){return W===void 0?null:W.label||!O?W.label:this.showMoreText_};
_.d.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.d.getContinuationUrl=function(W){var O={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(O.itct=this.data.clickTrackingParams);return _.uW(W,O)};
_.d.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
CQ.prototype.showButtonChanged_=CQ.prototype.showButtonChanged_;CQ.prototype.observeData_=CQ.prototype.observeData_;_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],CQ.prototype,"ytVisibilityBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],CQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CQ.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],CQ.prototype,"showButton",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],CQ.prototype,"showIcon",void 0);_.t([_.C({computed:"computeLabel_(data, showButton)"}),_.N("design:type",Object)],CQ.prototype,"label",void 0);_.t([_.C({value:_.VV(_.EO("SHOW_MORE",void 0,"Show More"))}),_.N("design:type",Object)],CQ.prototype,"showMoreText_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],CQ.prototype,"spinnerActive_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],CQ.prototype,"hasBeenTriggered_",void 0);
_.t([_.C({value:void 0}),_.N("design:type",String)],CQ.prototype,"observeVisibleOption",void 0);_.t([_.C({value:void 0}),_.N("design:type",String)],CQ.prototype,"observeHiddenOption",void 0);_.t([_.C({value:"observe_once"}),_.N("design:type",Object)],CQ.prototype,"observePrescanOption",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"observeData_",null);
_.t([_.m5("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CQ.prototype,"showButtonChanged_",null);CQ=_.t([_.sl({is:"yt-next-continuation",disableElementRegistration:!0})],CQ);
_.H(CQ,"yt-next-continuation",function(){if(rQ5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;BIq===void 0&&(BIq=document.createElement("template"));var T=BIq;b.call(O,T.content.cloneNode(!0),W.content.firstChild);rQ5=W}W=rQ5;return W},{mode:2});var DU9;var xUq;var qi=function(){return _.n.apply(this,arguments)||this};
_.R(qi,_.n);qi.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qi.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qi.prototype,"data",void 0);qi=_.t([_.sl({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],qi);
_.H(qi,"yt-music-pass-small-feature-info-renderer",function(){if(xUq===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;DU9===void 0&&(DU9=document.createElement("template"));var T=DU9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);xUq=W}W=xUq;return W},{mode:2});_.Bs("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var nQ=function(){var W=_.n.apply(this,arguments)||this;W.isCollapsible=!1;W.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return W};
_.R(nQ,_.n);_.d=nQ.prototype;_.d.computeIsCollapsible=function(W){return!!(((W==null?0:W.showMoreText)||(W==null?0:W.visibleRowCount))&&(W==null?0:W.isCollapsible))};
_.d.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"}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.d.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.d.onIronResize=function(){var W=this;_.n2(this,"updateGridInitItems",function(){W.maybeUpdateInitialItemsDisplayed()})};
_.d.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var W=this.getVisibleWidth();W!==0&&(W=Math.floor(W/214)*(this.data.visibleRowCount||2),W!==this.initialCount&&(this.initialCount=W,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.d.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.d.computeExpandVisible=function(W,O,b,T){return W&&O&&b&&!!T&&!!T.showMoreText};
_.d.computeShowMoreButton=function(W){return{text:W,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.d.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.d.initCollapsed=function(){var W=this;this.ytLazyListBehavior.canShowMore=!1;var O;(this.collapsed=!((O=this.data)==null||!O.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.My(this,function(){_.TU(W.hostElement,"yt-refit-popups-action")})};
_.d.fillRestIfNotCollapsible=function(){var W=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!W||this.ytLazyListBehavior.fillRemainingListItems()};
_.d.computeViewAllHidden=function(W,O){return W||!O.viewAllEndpoint};
nQ.prototype.fillRestIfNotCollapsible=nQ.prototype.fillRestIfNotCollapsible;nQ.prototype.initCollapsed=nQ.prototype.initCollapsed;nQ.prototype.onIronResize=nQ.prototype.onIronResize;nQ.prototype.persistentGuideChanged=nQ.prototype.persistentGuideChanged;_.t([_.D(_.vL),_.N("design:type",Object)],nQ.prototype,"ironResizableBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],nQ.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],nQ.prototype,"ytNextContinuationBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],nQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.D(_.xE),_.N("design:type",Object)],nQ.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],nQ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],nQ.prototype,"collapsed",void 0);_.t([_.C(),_.N("design:type",Number)],nQ.prototype,"initialCount",void 0);_.t([_.C({computed:"computeShowMoreButton(data.showMoreText)"}),_.N("design:type",Object)],nQ.prototype,"showMoreButton",void 0);
_.t([_.C({computed:"computeIsCollapsible(data)"}),_.N("design:type",Object)],nQ.prototype,"isCollapsible",void 0);_.t([_.El("#items"),_.N("design:type",HTMLElement)],nQ.prototype,"items",void 0);_.t([_.Ul("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"persistentGuideChanged",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"onIronResize",null);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"initCollapsed",null);_.t([_.Ul("canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nQ.prototype,"fillRestIfNotCollapsible",null);nQ=_.t([_.G({is:"ytd-grid-renderer",disableElementRegistration:!0})],nQ);
_.H(nQ,"ytd-grid-renderer",function(){if(Rmq!==void 0)return Rmq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Rmq=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var fQ=function(){return _.n.apply(this,arguments)||this};
_.R(fQ,_.n);
fQ.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"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fQ.prototype,"data",void 0);fQ=_.t([_.G({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],fQ);
_.H(fQ,"ytd-carousel-ad-renderer",function(){if(UUw!==void 0)return UUw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UUw=W},{mode:1});var zm1;var Gj=function(){return _.n.apply(this,arguments)||this};
_.R(Gj,_.n);_.d=Gj.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Gj.JSC$13264_CLICK_LOCATION_ID_MAP))};
_.d.onSitelinkTap=function(W){W.stopPropagation();var O,b,T=W==null?void 0:(O=W.model)==null?void 0:(b=O.item)==null?void 0:b.onTap;T&&this.ytSparklesClickLocationBehavior.handleClick(T,W,!1)};
_.d.onTap=function(W){var O=this.data&&this.data.content&&this.data.content.navigationEndpoint;O&&this.ytSparklesClickLocationBehavior.handleClick(O,W,!1)};
_.d.sendImpression=function(){if(this.data&&this.data.content)for(var W=_.S(this.data.content.impressionEndpoints||[]),O=W.next();!O.done;O=W.next()){O=_.S(O.value.loggingUrls||[]);for(var b=O.next();!b.done;b=O.next())b=b.value,b.baseUrl&&HO(b.baseUrl,b.attributionSrcMode)}};
Gj.prototype.onTap=Gj.prototype.onTap;Gj.prototype.dataChanged=Gj.prototype.dataChanged;Gj.JSC$13264_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"]]);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Gj.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Gj.prototype,"data",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Gj.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Gj.prototype,"onTap",null);Gj=_.t([_.G({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Gj);
_.H(Gj,"ytd-promoted-sparkles-text-search-renderer",function(){if(zm1!==void 0)return zm1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return zm1=W},{mode:1});var ClS;var HV=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.R(HV,_.n);_.d=HV.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.e("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]]"}}}}}};
_.d.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.d.computeHasAdBadge=function(W){return!(W==null||!W.adBadge)};
_.d.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",HV.JSC$13273_DEFAULT_AD_BADGE_RENDERER),_.L2(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,HV.JSC$13273_CLICK_LOCATION_ID_MAP))};
_.d.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var W;(((W=this.data)==null?void 0:W.impressionCommands)||[]).forEach(function(O){O=_.S(O.loggingUrls||[]);for(var b=O.next();!b.done;b=O.next())b=b.value,b.baseUrl&&HO(b.baseUrl,b.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.d.onTap=function(W){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint,T;(O=(T=this.data)==null?void 0:T.thumbnailNavigationEndpoint)&&_.JP(_.Nd(W),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(O,W,!1):b&&this.ytSparklesClickLocationBehavior.handleClick(b,W,!1)};
_.d.handleMuteAd=function(){this.collapsed=!0};
_.d.attached=function(){var W=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jq.Object.defineProperties(HV.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var W;return!(((W=this.data)==null?void 0:W.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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}}});
HV.prototype.dataChanged=HV.prototype.dataChanged;
HV.JSC$13273_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"]]);
HV.JSC$13273_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.EO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],HV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],HV.prototype,"ytdActiveViewBehavior",void 0);
_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],HV.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],HV.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],HV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HV.prototype,"collapsed",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],HV.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],HV.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.N("design:type",Boolean)],HV.prototype,"fixAlignmentSmallScreens",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs_square")}}),
_.N("design:type",Boolean)],HV.prototype,"useBiggerThumbsSquare",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.mediaHoverOverlay"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"hideHoverOverlay",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"webSearchLayout",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"webSearchLayoutLandscape",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"webSearchLayoutSquare",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"sparklesCtaNoBackground",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.actionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"hideActionButton",null);_.t([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],HV.prototype,"buttonOverride",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.N("design:type",Boolean)],HV.prototype,"hasNewAdBadge",void 0);_.t([_.x("data.promotedSparklesWebStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HV.prototype,"useRoundedBadge",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HV.prototype,"dataChanged",null);HV=_.t([_.G({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],HV);
_.H(HV,"ytd-promoted-sparkles-web-renderer",function(){if(ClS!==void 0)return ClS;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ClS=W},{mode:1});var qXn;var tj=function(){return _.n.apply(this,arguments)||this};
_.R(tj,_.n);_.d=tj.prototype;_.d.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]]"}}}}}};
_.d.computeShowCta=function(W){return!(W==null||!W.ctaRenderer)};
_.d.onCtaClick=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.ctaRenderer)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.command;T&&this.ytComponentBehavior.resolveCommand(T)};
_.d.onWatchButtonClick=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.watchButtonRenderer)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.command;T&&this.ytComponentBehavior.resolveCommand(T)};
_.d.onTap=function(){};
_.d.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",tj.JSC$13276_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",tj.JSC$13276_DEFAULT_CLICK_LOCATION_BEHAVIOR,tj.JSC$13276_CLICK_LOCATION_ID_MAP),this.thumbnail)){var W=this.thumbnail.getElementsByTagName("a");W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href")}};
_.d.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var W=_.S(this.data.impressionUrls),O=W.next();!O.done;O=W.next())O=O.value,E1h(O,AoE(O));this.data.impressionsFired=!0}};
_.d.maybeComputeHref=function(){return null};
_.d.computeIsShortDR=function(W){return!(W==null||!W.watchButtonRenderer)&&!(W==null||!W.ctaRenderer)&&!!this.enableShortDR};
_.d.computeIsNewUiOrShortDr=function(W){return!!this.enableUiUpdate||this.computeIsShortDR(W)};
_.d.computeIsNewUiAndNotShortDr=function(W){return!!this.enableUiUpdate&&!this.computeIsShortDR(W)};
_.d.computeHideAvatar=function(W){return!((W==null?0:W.channelThumbnail)&&this.computeIsNewUiOrShortDr(W))};
_.d.onClick=function(W){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint;if(this.enableShortDR&&b&&(_.P(b,_.V3)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(b,W,!!_.P(b,_.V3)),W.stopPropagation();else if(b&&_.P(b,_.V3))this.ytSparklesClickLocationBehavior.handleClick(b,W,!0),W.stopPropagation();else if(b){var T,L;((T=this.data)==null?0:T.navigationEndpoint)&&((L=this.data)==null?0:L.adPlaybackContextParams)&&bW2(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(b)}};
_.d.computeButtonOverride=function(W){if(this.computeIsNewUiOrShortDr(W))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.d.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.d.onThumbnailContainerClick=function(W){this.onClick(W)};
_.d.computeThumbnailWidth=function(W,O){return W?O==="MASSIVE"?600:O==="BIG"?500:O==="MEDIUM"?450:420:360};
_.d.attached=function(){var W=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
tj.prototype.dataChanged=tj.prototype.dataChanged;tj.prototype.onTap=tj.prototype.onTap;tj.JSC$13276_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.EO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};tj.JSC$13276_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
tj.JSC$13276_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"}];_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tj.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],tj.prototype,"ytdActiveViewBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],tj.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],tj.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tj.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],tj.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_video_display_compact_button_group_for_desktop_search")}}),
_.N("design:type",Boolean)],tj.prototype,"enableShortDR",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_vac_ui_update_for_desktop_search")}}),
_.N("design:type",Boolean)],tj.prototype,"enableUiUpdate",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],tj.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.N("design:type",Boolean)],tj.prototype,"showCta",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.N("design:type",Boolean)],tj.prototype,"isShortDr",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.N("design:type",Boolean)],tj.prototype,"isShortDrOrNewUi",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.N("design:type",Boolean)],tj.prototype,"isNewUiAndNotShortDr",void 0);_.t([_.C({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],tj.prototype,"buttonOverride",void 0);_.t([_.C({computed:"computeSecondaryButtonOverride(data)"}),_.N("design:type",Object)],tj.prototype,"secondaryButtonOverride",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],tj.prototype,"thumbnail",void 0);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tj.prototype,"onTap",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tj.prototype,"dataChanged",null);tj=_.t([_.G({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],tj);
_.H(tj,"ytd-promoted-video-renderer",function(){if(qXn!==void 0)return qXn;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qXn=W},{mode:1});var nen;var $E=function(){var W=_.n.apply(this,arguments)||this;W.useRoundedBadge=!0;W.sitelinkIds=[];return W};
_.R($E,_.n);_.d=$E.prototype;
_.d.configureRendererStamper=function(){return{"data.menu":{id:_.e("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]]"}}}}}};
_.d.dataChanged=function(){var W;(W=this.data)!=null&&W.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,$E.JSC$13283_CLICK_LOCATION_ID_MAP)};
_.d.onTap=function(W){var O,b=(O=this.data)==null?void 0:O.navigationCommand;b&&!_.JP(_.Nd(W),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(b,W,!1)};
_.d.onSitelinkTap=function(W){var O,b,T=W==null?void 0:(O=W.model)==null?void 0:(b=O.item)==null?void 0:b.onTap;T&&this.ytSparklesClickLocationBehavior.handleClick(T,W,!1)};
_.d.configureSitelinkClickTargets=function(){var W=this,O,b,T=(O=this.data)==null?void 0:(b=O.clickLocationTargets)==null?void 0:b.find(function(L){return L.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
T&&_.Q(this.hostElement).querySelectorAll(".sitelink").forEach(function(L){_.L2(L,"yt-simple-endpoint",!0);W.sitelinkIds.push(L.id);var h,Z;(h=W.ytSparklesClickLocationBehavior)==null||(Z=h.clickTargetMap)==null||Z.set(L.id,T)})};
_.d.sendImpression=function(){var W,O,b=((W=this.data)==null?void 0:(O=W.impressionCommand)==null?void 0:O.loggingUrls)||[];W=_.S(b);for(O=W.next();!O.done;O=W.next())O=O.value,O.baseUrl&&HO(O.baseUrl,O.attributionSrcMode)};
_.d.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Jq.Object.defineProperties($E.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
$E.prototype.onTap=$E.prototype.onTap;$E.prototype.dataChanged=$E.prototype.dataChanged;$E.JSC$13283_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"]]);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$E.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],$E.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$E.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$E.prototype,"showFavicon",null);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],$E.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],$E.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.N("design:type",Boolean)],$E.prototype,"enableThumbnailScalingFix",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$E.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],$E.prototype,"onTap",null);$E=_.t([_.G({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],$E);
_.H($E,"ytd-text-image-no-button-layout-renderer",function(){if(nen!==void 0)return nen;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return nen=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var few;var Vt=function(){var W=_.n.apply(this,arguments)||this;W.isInlinePlaybackState=!1;W.uiUpdate=_.e("web_modern_buttons");W.hideCta=_.e("hide_cta_for_home_web_video_ads");W.noBottomMargin=!1;W.animateInTimeStamp=_.Lu("hide_cta_for_home_web_video_ads_animate_in_time");W.animateInCta=!1;W.isHovered=!1;W.player=null;W.JSC$13290_playerEvents=new Map;W.JSC$13290_preventProgressSaveTimer=null;W.delayedCtaJobId=null;return W};
_.R(Vt,_.n);_.d=Vt.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){this.JSC$13290_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13290_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.e("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.d.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13290_playerEvents)};
_.d.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Vt.JSC$13289_DEFAULT_CLICK_LOCATION_BEHAVIOR,Vt.JSC$13289_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.d.hoverChanged=function(){var W=this;this.delayedCtaJobId&&(_.sF.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.e("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Xg(_.sF,function(){W.buttonContainer.classList.add("show-delayed-buttons")},_.Lu("delayed_cta_on_web_delay_milliseconds")))};
_.d.setPlayer=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return(O=_.TU(W.hostElement,"yt-get-inline-preview-player-action"))&&O[0]?_.Y(b,O[0].getPlayerPromise(),3):b.jumpTo(0);W.player=b.yieldResult;W.ytPlayerListenerBehavior.listenToPlayerEvents(W.player,W.JSC$13290_playerEvents);_.aD(b)})};
_.d.onPlaybackStart=function(){var W=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13290_preventProgressSaveTimer=_.dd(_.sF,function(){W.JSC$13290_preventProgressSaveTimer=null},1E4))};
_.d.onVideoProgress=function(W){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&W>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.d.resetPreventProgressSaveTimer=function(){_.sF.cancelJob(this.JSC$13290_preventProgressSaveTimer);this.JSC$13290_preventProgressSaveTimer=null};
_.d.getSimpleString=function(W){return _.NX(W)};
_.d.onClick=function(W){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint,T;O=(T=this.data)==null?void 0:T.channelEndpoint;var L,h;(T=(h=_.P((L=this.data)==null?void 0:L.adCtaButton,_.s2))==null?void 0:h.command)&&_.JP(_.Nd(W),this.hostElement,["call-to-action"])?_.e("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(T,W,!1):O&&_.JP(_.Nd(W),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(O,W,!1):!_.JP(_.Nd(W),this.hostElement,["secondary-button"])&&b&&(_.e("enable_short_dr_for_desktop_launchable")?(L=!!_.P(b,_.V3),this.isInlinePlaybackState&&L&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,W,L)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(b,W,!0)))}};
_.d.updateWatchEndpointStartTime=function(){var W,O;this.player&&((W=this.data)==null?0:W.inlinePlaybackEndpoint)&&((O=this.data)==null?0:O.navigationEndpoint)&&!this.JSC$13290_preventProgressSaveTimer&&(W=Math.floor(this.player.getCurrentTime()),_.P(this.data.navigationEndpoint,_.V3).startTimeSeconds=W,_.P(this.data.inlinePlaybackEndpoint,_.V3).startTimeSeconds=W)};
_.d.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.d.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Jq.Object.defineProperties(Vt.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.e("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.watchButton)&&!((O=this.data)==null||!O.adCtaButton)}}});
Vt.prototype.hoverChanged=Vt.prototype.hoverChanged;Vt.prototype.dataChanged=Vt.prototype.dataChanged;
Vt.JSC$13289_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"]]);
Vt.JSC$13289_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"}];
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Vt.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Vt.prototype,"ytSparklesClickLocationBehavior",void 0);
_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],Vt.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vt.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"isInlinePlaybackState",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Vt.prototype,"miniMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"uiUpdate",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"hideCta",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"noBottomMargin",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"animateInCta",void 0);_.t([_.C({computed:"computeButtonOverride(uiUpdate)"}),_.N("design:type",Object)],Vt.prototype,"buttonOverride",void 0);
_.t([_.C({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.N("design:type",Object)],Vt.prototype,"secondaryButtonOverride",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vt.prototype,"isHovered",void 0);_.t([_.El("#button-container"),_.N("design:type",HTMLElement)],Vt.prototype,"buttonContainer",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Vt.prototype,"typographyBump",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vt.prototype,"typographyBumpV2",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vt.prototype,"dataChanged",null);_.t([_.m5("isHovered"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vt.prototype,"hoverChanged",null);
_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vt.prototype,"isButtonGroup",null);Vt=_.t([_.G({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Vt);
_.H(Vt,"ytd-ad-inline-playback-meta-block",function(){if(few!==void 0)return few;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return few=W},{mode:_.Lb("kevlar_poly_si_batch_j065")?1:2});var GSv;var Ni=function(){var W=_.n.apply(this,arguments)||this;W.noBottomMargin=!1;W.isInlinePreviewTriggered=!1;W.JSC$13295_activeViewMeasurementDataResolver=_.$S();return W};
_.R(Ni,_.n);_.d=Ni.prototype;_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13295_activeViewMeasurementDataResolver.promise.then(function(O){W.ytdActiveViewBehavior.enableActiveViewMeasurement(O,15)});
_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners();_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13295_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.JSC$13295_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yrU})};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13295_inlinePreviewHoverListener)==null||b3(W)};
_.d.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13295_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Ni.JSC$13294_DEFAULT_CLICK_LOCATION_BEHAVIOR,Ni.JSC$13294_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"));var O,b;if(((O=this.data)==
null?0:O.hasAutoplay)||((b=this.data)==null?0:b.forceImpAutoplay)){var T;(T=this.JSC$13295_inlinePreviewHoverListener)==null||mSz(T)}};
_.d.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.d.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,W,!!_.P(b,_.V3));W.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var O,b,T=(b=_.P((O=this.data)==null?void 0:O.onImpression,_.I5))==null?void 0:b.commands;T&&(T.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;W.ytComponentBehavior.resolveCommand(L)}),this.data.impressionsFired=!0)}};
_.Jq.Object.defineProperties(Ni.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13295_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ni.prototype.onTypographyBumpChanged=Ni.prototype.onTypographyBumpChanged;Ni.prototype.onDataChanged=Ni.prototype.onDataChanged;Ni.JSC$13294_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Ni.JSC$13294_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"}];
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Ni.prototype,"ytComponentBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],Ni.prototype,"ytdActiveViewBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Ni.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.fh),_.N("design:type",Object)],Ni.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Ni.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Ni.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ni.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Ni.prototype,"noBottomMargin",void 0);
_.t([_.C(),_.N("design:type",Object)],Ni.prototype,"isInlinePreviewTriggered",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],Ni.prototype,"miniMode",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Ni.prototype,"typographyBump",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],Ni.prototype,"thumbnail",void 0);_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],Ni.prototype,"JSC$13295_dismissibleMedia",void 0);
_.t([_.El("ytd-ad-inline-playback-meta-block"),_.N("design:type",HTMLElement)],Ni.prototype,"adInlinePlaybackMetaBlock",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ni.prototype,"onDataChanged",null);_.t([_.Ul("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ni.prototype,"onTypographyBumpChanged",null);
_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ni.prototype,"isHovered",null);Ni=_.t([_.G({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],Ni);
_.H(Ni,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(GSv!==void 0)return GSv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GSv=W},{mode:1});var H37;var Mi=function(){var W=_.n.apply(this,arguments)||this;W.isInlinePreviewTriggered=!1;W.JSC$13298_activeViewMeasurementDataResolver=_.$S();return W};
_.R(Mi,_.n);_.d=Mi.prototype;_.d.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.attached=function(){var W=this;this.updateInlinePreviewHoverListeners();this.JSC$13298_activeViewMeasurementDataResolver.promise.then(function(O){W.ytdActiveViewBehavior.enableActiveViewMeasurement(O,15)})};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13298_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.JSC$13298_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:yrU})};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13298_inlinePreviewHoverListener)==null||b3(W)};
_.d.onDataChanged=function(){var W;((W=this.data)==null?0:W.activeView)&&this.JSC$13298_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Mi.JSC$13297_DEFAULT_CLICK_LOCATION_BEHAVIOR,Mi.JSC$13297_CLICK_LOCATION_ID_MAP);this.thumbnail&&(W=this.thumbnail.getElementsByTagName("a"),W.length>0&&(W=W.namedItem("thumbnail"))&&W.removeAttribute("href"))};
_.d.onThumbnailContainerClick=function(W){if(this.data&&this.data.navigationEndpoint){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(b,W,!0);W.stopPropagation()}};
_.d.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.d.impressionLog=function(){var W=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var O,b,T=(b=_.P((O=this.data)==null?void 0:O.onImpression,_.I5))==null?void 0:b.commands;T&&(T.forEach(function(L){L.clickTrackingParams&&delete L.clickTrackingParams;_.iq().resolve(_.bq).resolveCommand(L,{form:{element:W.hostElement}})}),this.data.impressionsFired=!0)}};
_.Jq.Object.defineProperties(Mi.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13298_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Mi.prototype.onDataChanged=Mi.prototype.onDataChanged;Mi.JSC$13297_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Mi.JSC$13297_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"}];_.t([_.D(Qc),_.N("design:type",Object)],Mi.prototype,"ytdActiveViewBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Mi.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],Mi.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Mi.prototype,"ytdReduxBehavior",void 0);
_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],Mi.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Mi.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Mi.prototype,"isInlinePreviewTriggered",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],Mi.prototype,"miniMode",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],Mi.prototype,"thumbnail",void 0);
_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],Mi.prototype,"JSC$13298_dismissibleMedia",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mi.prototype,"onDataChanged",null);_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Mi.prototype,"isHovered",null);Mi=_.t([_.G({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Mi);
_.H(Mi,"ytd-video-display-full-buttoned-renderer",function(){if(H37!==void 0)return H37;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return H37=W},{mode:1});var hT=function(W,O,b,T){T=T===void 0?!1:T;_.W2.call(this,W);this.adsClientErrorMessage=b;this.aggressivelySample=T;this.args=[];O&&this.args.push(O)};
_.R(hT,_.W2);var LF=function(W,O,b,T){T=T===void 0?!1:T;_.W2.call(this,W);this.adsClientErrorMessage=b;this.aggressivelySample=T;this.args=[];O&&this.args.push(O)};
_.R(LF,_.W2);var tc9=function(W){_.R8.call(this);var O=this;this.initializationFunction=W;this.instance=null;this.addOnDisposeCallback(function(){_.JU(O.instance);O.instance=null})};
_.R(tc9,_.R8);tc9.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Fg("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var XA8=function(){var W=new Map;[].forEach(function(O){W.set(O.JSC$26866_getType(),O)})};new Promise(function(){});var mw8=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"]]),ITE=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"}]]),$UL=function(W){this.experimentApiProvider=W;W=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=W<.1};var uF=function(W,O,b,T){_.R8.call(this);this.adsControlFlowEventListeners=O;this.adEventLogger=b;this.experimentApiProvider=T;this.adsControlFlowManagerHelper=W(this,this,this,this,this);_.a8(this,this.adsControlFlowManagerHelper);W=_.S(O);for(O=W.next();!O.done;O=W.next())_.a8(this,O.value)};
_.R(uF,_.R8);var VcS=function(W,O,b,T){Jj(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",O,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T);W=_.S(W.adsControlFlowEventListeners);for(T=W.next();!T.done;T=W.next())VcS(T.value,O,b)};
_.d=uF.prototype;_.d.onOpportunityProcessedExternallyManaged=function(W,O,b,T){Jj(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",W,b,O,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T)};
_.d.onSlotReceivedExternallyManaged=function(W,O){cV(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",W,O)};
_.d.onSlotEntered=function(W){if(FM(this.adsControlFlowManagerHelper,W)!=null){cV(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",W);this.adsControlFlowManagerHelper.onSlotEntered(W);for(var O=_.S(this.adsControlFlowEventListeners),b=O.next();!b.done;b=O.next())b.value.onSlotEntered(W);if(FM(this.adsControlFlowManagerHelper,W)!=null&&FM(this.adsControlFlowManagerHelper,W).isOccupyingSlotType()&&W7(this.adsControlFlowManagerHelper,W)&&!NIq(this.adsControlFlowManagerHelper,W)){var T;Op(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",W,(T=W7(this.adsControlFlowManagerHelper,W))!=null?T:void 0);W=FM(this.adsControlFlowManagerHelper,W);W.slotLifecycleStage!=="entered"&&iV(W.slot,W.slotLifecycleStage,"enterLayoutForSlot");W.slotLifecycleStage="rendering";W.registeredLayoutRenderingAdapter.startRendering(W.layout)}}};
_.d.onSlotExited=function(W){if(FM(this.adsControlFlowManagerHelper,W)!=null){cV(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",W);this.adsControlFlowManagerHelper.onSlotExited(W);for(var O=_.S(this.adsControlFlowEventListeners),b=O.next();!b.done;b=O.next())b.value.onSlotExited(W);FM(this.adsControlFlowManagerHelper,W)!=null&&FM(this.adsControlFlowManagerHelper,W).markedForUnscheduleAfterOutboundAdapterRequests&&Mc7(this,W)}};
_.d.onLayoutReceivedExternallyManaged=function(W,O,b){W.managerLayer!=="core"&&Op(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",W,O,b)};
var uP1=function(W,O,b){if(FM(W.adsControlFlowManagerHelper,O)!=null){Op(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",O,b);W=_.S(W.adsControlFlowEventListeners);for(var T=W.next();!T.done;T=W.next())uP1(T.value,O,b)}};
uF.prototype.onLayoutExited=function(W,O,b){if(FM(this.adsControlFlowManagerHelper,W)!=null){Op(this.adEventLogger,aTT(b),W,O);this.adsControlFlowManagerHelper.onLayoutExited(W,O);for(var T=_.S(this.adsControlFlowEventListeners),L=T.next();!L.done;L=T.next())L.value.onLayoutExited(W,O,b);(b=W7(this.adsControlFlowManagerHelper,W))&&O.layoutId===b.layoutId&&JQS(this,W)}};
uF.prototype.disposeInternal=function(){var W=cQU(this.adsControlFlowManagerHelper);W=_.S(W);for(var O=W.next();!O.done;O=W.next())Mc7(this,O.value);_.R8.prototype.disposeInternal.call(this)};
var Mc7=function(W,O){if(FM(W.adsControlFlowManagerHelper,O)!=null)if(FM(W.adsControlFlowManagerHelper,O).JSC$26897_isSlotExitRequested()||FM(W.adsControlFlowManagerHelper,O).JSC$26897_isLayoutExitRequested())FM(W.adsControlFlowManagerHelper,O).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(FM(W.adsControlFlowManagerHelper,O).isOccupyingSlotType())FM(W.adsControlFlowManagerHelper,O).markedForUnscheduleAfterOutboundAdapterRequests=!0,JQS(W,O);else if(FM(W.adsControlFlowManagerHelper,O).JSC$26897_isSlotFillRequested())FM(W.adsControlFlowManagerHelper,
O).markedForUnscheduleAfterOutboundAdapterRequests=!0,FM(W.adsControlFlowManagerHelper,O)!=null&&(cV(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",O),O=FM(W.adsControlFlowManagerHelper,O),O.fulfillmentLifecycleStage="fill_cancel_requested",O.registeredFulfillmentAdapter.cancelSlotFilling());else{var b=W7(W.adsControlFlowManagerHelper,O),T;W.experimentApiProvider.get();(T=_.e("h5_enable_layout_unscheduling_events"))&&(b?FWN(W,O,b):_.Fg(Error("Hh"),O,b,void 0,!1));cV(W.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",O);var L=FM(W.adsControlFlowManagerHelper,O),h=O.slotEntryTrigger,Z=L.registeredSlotEntryTriggerAdapters.get(h.triggerId);Z&&(Z.unregisterTrigger(h),L.registeredSlotEntryTriggerAdapters.delete(h.triggerId));h=_.S(O.slotFulfillmentTriggers);for(Z=h.next();!Z.done;Z=h.next()){Z=Z.value;var a=L.registeredFulfillmentTriggerAdapters.get(Z.triggerId);a&&(a.unregisterTrigger(Z),L.registeredFulfillmentTriggerAdapters.delete(Z.triggerId))}h=_.S(O.slotExpirationTriggers);
for(Z=h.next();!Z.done;Z=h.next())if(Z=Z.value,a=L.registeredExpirationTriggerAdapters.get(Z.triggerId))a.unregisterTrigger(Z),L.registeredExpirationTriggerAdapters.delete(Z.triggerId);L.hasLayout()&&(h=L.layout,bV(L,h.layoutExitNormalTriggers),bV(L,h.layoutExitSkipTriggers),bV(L,h.layoutExitMuteTriggers),bV(L,h.layoutExitUserInputSubmittedTriggers),bV(L,h.layoutExitUserCancelledTriggers));L.registeredFulfillmentAdapter=void 0;L.registeredSlotAdapter!=null&&(L.registeredSlotAdapter.release(),L.registeredSlotAdapter=
void 0);L.registeredLayoutRenderingAdapter!=null&&(L.registeredLayoutRenderingAdapter.release(),L.registeredLayoutRenderingAdapter=void 0);L=W.adsControlFlowManagerHelper;FM(L,O)&&(L=yQS(L,O.slotType+"_"+O.slotPhysicalPosition))&&L.delete(O.slotId);cV(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",O);W=_.S(W.adsControlFlowEventListeners);for(L=W.next();!L.done;L=W.next())L=L.value,L.onSlotUnscheduled(O),b&&!T&&FWN(L,O,b)}},FWN=function(W,O,b){Op(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
O,b);
Op(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",O,b);W=_.S(W.adsControlFlowEventListeners);for(var T=W.next();!T.done;T=W.next())T=T.value,b&&FWN(T,O,b)},JQS=function(W,O){if(FM(W.adsControlFlowManagerHelper,O)!=null&&FM(W.adsControlFlowManagerHelper,O).isOccupyingSlotType()){var b=W7(W.adsControlFlowManagerHelper,O);
if(b&&NIq(W.adsControlFlowManagerHelper,O)){if(FM(W.adsControlFlowManagerHelper,O)!=null){var T=W.adEventLogger,L;var h=((L=ITE.get("abandoned"))==null?void 0:L.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Op(T,h,O,b);W=FM(W.adsControlFlowManagerHelper,O);W.slotLifecycleStage!=="rendering"&&iV(W.slot,W.slotLifecycleStage,"exitLayout");W.slotLifecycleStage="rendering_stop_requested";W.registeredLayoutRenderingAdapter.stopRendering(b,"abandoned")}}else{cV(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
O);try{T=FM(W.adsControlFlowManagerHelper,O);if(!T)throw new LF("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");T.slotLifecycleStage!=="enter_requested"&&T.slotLifecycleStage!=="entered"&&T.slotLifecycleStage!=="rendering"&&iV(T.slot,T.slotLifecycleStage,"exitSlot");T.slotLifecycleStage="exit_requested";if(T.registeredSlotAdapter===void 0)throw T.slotLifecycleStage="scheduled",new LF("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
T.registeredSlotAdapter.exit()}catch(Z){Z instanceof LF&&Z.adsClientErrorMessage?(WeS(W.adEventLogger,Z.adsClientErrorMessage,O),_.Fg(Z,O,void 0,void 0,Z.aggressivelySample)):(WeS(W.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",O),_.Fg(Z,O))}}}};var jS=function(W,O,b,T,L,h){_.R8.call(this);this.registry=W;this.experimentApiProvider=h;this.slotMap=new Map};
_.R(jS,_.R8);var yQS=function(W,O){return(W=W.slotMap.get(O))?W:new Map},FM=function(W,O){return yQS(W,O.slotType+"_"+O.slotPhysicalPosition).get(O.slotId)},cQU=function(W){var O=[];
W.slotMap.forEach(function(b){b=_.S(b.values());for(var T=b.next();!T.done;T=b.next())O.push(T.value.slot)});
return O};
jS.prototype.onSlotEntered=function(W){W=FM(this,W);W.slotLifecycleStage!=="enter_requested"&&iV(W.slot,W.slotLifecycleStage,"onSlotEntered");W.slotLifecycleStage="entered"};
var NIq=function(W,O){W=FM(W,O);return W.hasLayout()&&W.isRendering()},W7=function(W,O){(W=FM(W,O))?W.hasLayout()&&!W.layout&&_.Fg("Unexpected empty layout",O):_.Fg("Unexpected undefined slotState",O);
return(W==null?void 0:W.layout)||null};
jS.prototype.onSlotExited=function(W){W=FM(this,W);W.slotLifecycleStage!=="exit_requested"&&iV(W.slot,W.slotLifecycleStage,"onSlotExited");W.slotLifecycleStage="scheduled"};
jS.prototype.onLayoutExited=function(W,O){W=FM(this,W);W.isPrimaryLayout(O)&&(W.slotLifecycleStage!=="rendering_stop_requested"&&iV(W.slot,W.slotLifecycleStage,"onLayoutExited"),W.slotLifecycleStage="entered")};
var bV=function(W,O){O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=W.registeredLayoutExitTriggerAdapters.get(b.triggerId);T&&(T.unregisterTrigger(b),W.registeredLayoutExitTriggerAdapters.delete(b.triggerId))}},iV=function(W,O,b){_.Fg("Slot stage was "+O+" when calling method "+b,W)};var iRN=function(W){_.R8.call(this);this.deps=W;this.JSC$13347_adsControlFlowManager=OR5(this)};
_.R(iRN,_.R8);var OR5=function(W){var O=new uF(function(b,T,L,h){return new jS(W.deps.registry,b,T,L,h,W.deps.experimentApiProvider)},new Set(AbX(W.deps.registry).concat(W.deps.listeners)),W.deps.adEventLogger,W.deps.experimentApiProvider);
_.a8(W,O);return O};var bRv=function(W,O){_.R8.call(this);this.experimentApiProvider=W;this.eventLoggingSettingsProvider=O;this.eventCount=0};
_.R(bRv,_.R8);bRv.prototype.logEvent=function(W){Jj(this,W)};
var cV=function(W,O,b,T){Jj(W,O,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,T)},Op=function(W,O,b,T,L){Jj(W,O,void 0,void 0,void 0,b,T?T:void 0,void 0,void 0,b.adSlotLoggingData,T?T.adLayoutLoggingData:void 0,void 0,L)},WeS=function(W,O,b){Jj(W,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:O})},Jj=function(W,O,b,T,L,h,Z,a,m,w,A,X,l){l=l===void 0?0:l;
jZq(W.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+O,"slot:",h,"layout:",Z,"ping:",a,"Opportunity:",{opportunityType:b,associatedSlotId:T,slotsFromOpportunity:L,triggerBundle:m,adSlotLoggingData:w,adLayoutLoggingData:A});try{var p=function(){W.experimentApiProvider.get();if(O!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){O||_.Fg("Empty PACF event type",h,Z);var K=W.eventLoggingSettingsProvider.get();var k;(k=K.alwaysIncludeDebugData)||(K.experimentApiProvider.get(),k=
!1);K=k;k={eventType:O,eventOrder:++W.eventCount};var r={};h&&(r.slotData=ExX(K,h));if(Z){var q={type:Z.layoutType,controlFlowManagerLayer:mw8.get(Z.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};K&&(q.debugData={layoutId:Z.layoutId});r.layoutData=q}a&&(r.pingData={pingDispatchStatus:a.dispatchStatus,serializedAdPingMetadata:a.ping.serializedAdPingMetadata,pingIndex:a.index});m&&(r.triggerData=YfX(m.trigger,m.category));b&&(r.opportunityData=wAP(K,b,T,L));k.adClientData=r;w&&(k.serializedSlotAdServingData=
w.serializedSlotAdServingDataEntry);A&&(k.serializedAdServingData=A.serializedAdServingDataEntry);X&&(k.errorInfo=X);_.BZ("adsClientStateChange",{adsClientEvent:k})}};
l&&l>0?_.KB(_.KD(),function(){return p()},l):p()}catch(K){jZq(W.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.KB(_.KD(),function(){_.Fg(K instanceof Error?K:String(K),h,Z,{pacf_message:"exception during pacf logging"})})}};var TXL=function(W,O){bRv.call(this,W,O)};
_.R(TXL,bRv);var Le5=function(){},jZq=function(W,O){return _.e(O)};var h2n=function(){var W=new dwH;this.JSC$13366_adsControlFlowManager=(new iRN(W)).JSC$13347_adsControlFlowManager},dwH=function(){_.R8.call(this);
var W=this;this.experimentApiProvider=new tc9(function(){return new Le5});
var O=new tc9(function(){return new $UL(W.experimentApiProvider)});
this.adEventLogger=new TXL(this.experimentApiProvider,O);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.R(dwH,_.R8);var Sfq=function(){},ZRf,TE=function(){ZRf||(ZRf=new Sfq);
return ZRf},LZ=function(W){if(!W.JSC$13377_externallyManagedSlotAdapterCallback){var O=(new h2n).JSC$13366_adsControlFlowManager;
W.JSC$13377_externallyManagedSlotAdapterCallback=O}return W.JSC$13377_externallyManagedSlotAdapterCallback},ITH=function(W,O,b){var T=O.opportunityType,L=Error("Ih");
if(T!==void 0){var h=LZ(W);VcS(h,T,void 0,b)}else _.Fg(L,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});h=[];if(O.adSlotAndLayoutMetadata!==void 0){O=_.S(O.adSlotAndLayoutMetadata);for(var Z=O.next();!Z.done;Z=O.next()){var a=Z.value;if(Z=a.adSlotMetadata)if(h.push(Z),W.onSlotReceivedExternallyManaged(Z,b),a.adLayoutMetadata){a=_.S(a.adLayoutMetadata);for(var m=a.next();!m.done;m=a.next())W.onLayoutReceivedExternallyManaged(Z,m.value,b)}else b>0&&_.Fg("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else b>0&&_.Fg("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else b>0&&_.Fg("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+T,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(T!==void 0)W.onOpportunityProcessedExternallyManaged(T,h,void 0,b);else _.Fg(L,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Sfq.prototype.onSlotReceivedExternallyManaged=function(W,O){W=d6(W);if(W instanceof LF)_.Fg(W,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else LZ(this).onSlotReceivedExternallyManaged(W,O)};
Sfq.prototype.onLayoutReceivedExternallyManaged=function(W,O,b){W=d6(W);O=UwX(O);if(W instanceof LF)_.Fg(W,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(O instanceof hT)_.Fg(O,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else LZ(this).onLayoutReceivedExternallyManaged(W,O,b)};
Sfq.prototype.onOpportunityProcessedExternallyManaged=function(W,O,b,T){var L=[];O=_.S(O);for(var h=O.next();!h.done;h=O.next())h=d6(h.value),h instanceof LF?_.Fg(h,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):L.push(h);LZ(this).onOpportunityProcessedExternallyManaged(W,L,b,T)};
var aT$=function(W,O){O=d6(O);if(O instanceof LF)_.Fg(O,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var b=LZ(W);cV(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",O);b=_.S(b.adsControlFlowEventListeners);for(var T=b.next();!T.done;T=b.next())T=FM(T.value,O),T.slotLifecycleStage!=="not_scheduled"&&iV(T.slot,T.slotLifecycleStage,"onSlotScheduled"),T.slotLifecycleStage="scheduled";W=LZ(W);cV(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",O);W=_.S(W.adsControlFlowEventListeners);
for(b=W.next();!b.done;b=W.next())b.value.onSlotEntered(O)}},mw1=function(W,O){O=d6(O);
if(O instanceof LF)_.Fg(O,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var b=LZ(W);cV(b.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",O);b=_.S(b.adsControlFlowEventListeners);for(var T=b.next();!T.done;T=b.next())T.value.onSlotExited(O);W=LZ(W);cV(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",O);W=_.S(W.adsControlFlowEventListeners);for(b=W.next();!b.done;b=W.next())b.value.onSlotUnscheduled(O)}},Yf9=function(W,O,b){O=d6(O);
b=UwX(b);if(O instanceof LF)_.Fg(O,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(b instanceof hT)_.Fg(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var T=LZ(W);Op(T.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",O,b);T=_.S(T.adsControlFlowEventListeners);for(var L=T.next();!L.done;L=T.next())L.value.onLayoutScheduled(O,b);W=LZ(W);Op(W.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",O,b);W=_.S(W.adsControlFlowEventListeners);
for(T=W.next();!T.done;T=W.next())uP1(T.value,O,b)}},dW=function(W,O,b){O=d6(O);
b=UwX(b);if(O instanceof LF)_.Fg(O,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(b instanceof hT)_.Fg(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var T=LZ(W);Op(T.adEventLogger,aTT("normal"),O,b);T=_.S(T.adsControlFlowEventListeners);for(var L=T.next();!L.done;L=T.next())L.value.onLayoutExited(O,b,"normal");W=LZ(W);W=_.S(W.adsControlFlowEventListeners);for(T=W.next();!T.done;T=W.next())FWN(T.value,O,b)}};_.hd=_.J1(function(W){var O=_.um(W,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});W=Object.assign({},O);var b=O.data;O=O.customCommandResolver;var T=(delete W.data,delete W.customCommandResolver,W),L=_.uy();_.$z(L,function(){return b().interaction},O,function(){var a;
return(a=T.listenToTapEvent)==null?void 0:a.call(T)});
_.iO(L,{visibilityCallback:function(a){var m,w=(m=b().interaction)==null?void 0:m.onFirstVisible;a&&(w&&_.nb(w),T.setOnErrorHandler()&&lTh(L))},
showOption:_.Mo});W=_.S(_.wu(!1,void 0,"eiYvIe"));var h=W.next().value,Z=W.next().value;W=_.XL(function(){var a;((a=T.setTouchEndHandler)==null?0:a.call(T))&&!h()&&(L.value.click(),Z(!0),setTimeout(function(){Z(!1)},100));
return!1});
return _.E("ad-image-view-model",{class:function(){var a,m=[((a=b().interaction)==null?0:a.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],w;((w=T.isGridViewEnabled)==null?0:w.call(T))&&m.push("ytwAdImageViewModelHostInGridView");return m.join(" ")},
el:L,"on:touchend":W},_.E("div",{class:"ytwAdImageViewModelHostImageContainer"},_.E(_.uj,{data:function(){var a;return{sources:b().imageSources,contentMode:(a=b().imageProperties)==null?void 0:a.contentMode}},
alt:function(){var a,m;return((a=b().interaction)==null?void 0:(m=a.accessibility)==null?void 0:m.label)||""},
targetHeight:T.targetHeight,targetWidth:T.targetWidth,preserveHeight:T.preserveHeight,preserveWidth:T.preserveWidth,useWidth:T.useWidth,style:function(){var a,m;return"vertical-align: bottom;"+(((a=b().background)==null?0:a.color)?"background-color:"+_.zF((m=b().background)==null?void 0:m.color)+";":"")},
className:function(){return T.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var a,m;return(m=(a=T.setDraggable)==null?void 0:a.call(T))!=null?m:void 0}})))},"cb");var Ex9=_.J1(function(W){var O=W.data,b=W.listenToTapEvent,T=_.uy();_.e("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.$z(T,function(){return O().interaction},void 0,function(){return b==null?void 0:b()});
_.iO(T,{visibilityCallback:function(h){var Z,a=(Z=O().interaction)==null?void 0:Z.onFirstVisible;h&&a&&_.nb(a)},
showOption:_.Mo});W=_.XL(function(){if(_.e("enable_web_home_top_landscape_image_layout_legacy_click_command")){var h,Z=(h=O().interaction)==null?void 0:h.onTap;Z&&_.bX(T.value,"yt-navigate",{endpoint:_.xy(Z)})}});
var L=function(){};
return _.E("ad-button-hover-overlay-view-model",{"on:click":W,class:function(){var h;return((h=O().interaction)==null?0:h.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:T},function(){return _.e("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.E(_.R4,{data:function(){return O().button}},{adButtonViewModel:function(h){return _.E(_.JD,{data:h.data,
customCommandResolver:L})}}):_.E(_.R4,{data:function(){return O().button}},{adButtonViewModel:_.JD})}())},"db");var S7;_.O1(_.J1(function(W){var O=W.data;var b=_.uy();_.e("stop_av_measurement_on_detach")&&_.so(function(){Iy(b)});
_.$z(b,function(){return O().interaction},void 0,function(){return!0});
_.iO(b,{visibilityCallback:function(Z){if(Z){var a;(Z=(a=O().interaction)==null?void 0:a.onFirstVisible)&&_.nb(Z);var m;if(a=(m=O().adLayoutData)==null?void 0:m.activeViewData)Zv(b,a),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Iy(b)})}else _.e("stop_av_measurement_on_detach")&&Iy(b)},
showOption:_.Mo,hideOption:uL});W=_.S(_.wu(!1,void 0,"yzu6qe"));var T=W.next().value,L=W.next().value;W=_.XL(function(){L(!0)});
var h=_.XL(function(){L(!1)});
return _.E("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:b,"on:mouseenter":W,"on:mouseleave":h},_.E("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.eE({"max-width":function(){return _.e("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.E("div",{class:function(){var Z;
a:{var a;switch((Z=_.P(O().thumbnailImage,U2))==null?void 0:(a=Z.imageProperties)==null?void 0:a.renderingAspect){case "RENDERING_ASPECT_SQUARE":Z="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":Z="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}Z=void 0}return Z}},_.E(_.R4,{data:function(){return O().thumbnailImage}},{adImageViewModel:function(Z){return _.E(_.hd,
{data:Z.data,
listenToTapEvent:!0,setTouchEndHandler:_.e("enable_top_landscape_image_experiment_dom_id_web")})}})),_.E("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.E(_.U,{cond:function(){var Z,a,m;
return(Z=_.P(O().thumbnailImage,U2))==null?void 0:(a=Z.imageProperties)==null?void 0:(m=a.overlayIcon)==null?void 0:m.iconImage},
then:function(Z){return _.E(_.uj,{data:Z,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.E("div",{class:function(){return T()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.E(_.R4,{data:function(){return O().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(Z){return _.E(Ex9,
{data:Z.data,
listenToTapEvent:!0})}}))),_.E("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.E(_.R4,{data:function(){return O().feedAdMetadata}},{feedAdMetadataViewModel:function(Z){return _.E(vQ7,{data:Z.data,
listenToTapEvent:!0,setTouchEndHandler:_.e("enable_top_landscape_image_experiment_dom_id_web")})}})))},"eb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=_.uy();_.e("stop_av_measurement_on_detach")&&_.so(function(){Iy(b)});
var T=_.D3(_.zJ);_.$z(b,function(){return O().interaction});
_.iO(b,{visibilityCallback:function(w){if(w){var A;(w=(A=O().interaction)==null?void 0:A.onFirstVisible)&&_.nb(w);var X;if(A=(X=O().adLayoutData)==null?void 0:X.activeViewData)Zv(b,A),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Iy(b)})}else _.e("stop_av_measurement_on_detach")&&Iy(b)},
showOption:_.Mo,hideOption:uL});var L=_.XL(function(w){var A,X,l=(A=_.P(O().adImage,U2))==null?void 0:(X=A.interaction)==null?void 0:X.onTap;l&&(_.e("enable_square_image_components_ui_web_with_custom_event")?_.bX(b.value,"yt-navigate",{endpoint:_.xy(l)}):G$h(w,l))}),h=_.XL(function(){var w,A,X=(w=_.P(O().adButton,lLU))==null?void 0:(A=w.interaction)==null?void 0:A.onTap;
X&&_.bX(b.value,"yt-navigate",{endpoint:_.xy(X)})}),Z=function(){};
W={};var a={},m={};return _.E("square-image-layout-view-model",{class:_.YS("ytwSquareImageLayoutViewModelHost",(W.ytwSquareImageLayoutViewModelHostColumn=T,W)),el:b},_.E("div",{class:_.YS("ytwSquareImageLayoutViewModelHostImage",(a.ytwSquareImageLayoutViewModelHostColumnImage=T,a))},function(){return _.e("enable_square_image_components_ui_web_with_native_img")?_.E("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var w,A,X;return((w=_.P(O().adImage,U2))==null?void 0:(A=w.imageSources)==
null?void 0:(X=A[0])==null?void 0:X.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:"false","on:click":L}):_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(w){return _.E(_.hd,{data:w.data,
isGridViewEnabled:T,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.E("div",{class:_.YS("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(m.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=T,m))},_.E(_.R4,{data:function(){return O().feedAdMetadata}},{feedAdMetadataViewModel:vQ7}),function(){return _.e("enable_square_image_components_ui_web_with_float_button")?_.E("div",{"on:click":h},_.E(_.R4,{data:function(){return O().adButton}},
{adButtonViewModel:function(w){var A={};
return _.E(_.JD,{data:w.data,customCommandResolver:Z,className:_.YS((A.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,A.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=T,A))})}})):_.E(_.R4,{data:function(){return O().adButton}},{adButtonViewModel:function(w){var A={};
return _.E(_.JD,{data:w.data,className:_.YS((A.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,A.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=T,A))})}})}()))},"fb"),"square-image-layout-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=W.noBottomMargin;var T=W.typographyBump;var L=_.uy();_.e("stop_av_measurement_on_detach")&&_.so(function(){Iy(L)});
_.e("enable_web_home_top_landscape_image_layout_level_click")&&_.$z(L,function(){return O().interaction},void 0,function(){return!0});
W=function(){return O().interaction};
W!==void 0&&W!==null||_.HU(Error("Jh"));_.iO(L,{visibilityCallback:function(A){if(A){var X;(A=(X=O().interaction)==null?void 0:X.onFirstVisible)&&_.nb(A);var l;if(X=(l=O().adLayoutData)==null?void 0:l.activeViewData)Zv(L,X),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Iy(L)})}else _.e("stop_av_measurement_on_detach")&&Iy(L)},
showOption:_.Mo,hideOption:uL});var h=function(){var A,X,l;return(A=_.P(O().thumbnailImage,U2))==null?void 0:(X=A.background)==null?void 0:(l=X.backgroundImageSource)==null?void 0:l.imageSources};
W=_.S(_.wu(!1,void 0,"GIwTMc"));var Z=W.next().value,a=W.next().value;W=_.XL(function(){a(!0)});
var m=_.XL(function(){a(!1)}),w=function(){return Z()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.E("top-landscape-image-layout-view-model",{class:function(){var A;return((A=O().interaction)==null?0:A.onTap)&&_.e("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:L,"on:mouseenter":W,"on:mouseleave":m},_.E("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.E(_.U,{cond:function(){return h()&&h().length>0},
then:function(){return _.E("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.eE({top:"0","background-image":function(){return"url("+String(h()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.E(_.U,{cond:function(){return!!O().adButtonHoverOverlay},
then:function(){return _.E("div",{class:w},_.E(_.R4,{data:function(){return O().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Ex9}))}}),_.E("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.E(_.R4,{data:function(){return O().thumbnailImage}},{adImageViewModel:function(A){return _.E(_.hd,{data:A.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.e("enable_web_home_top_landscape_image_layout_level_click")})}})),_.E("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.E(_.uj,{data:{sources:[{clientResource:{imageName:_.e("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.E("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.E(_.R4,{data:function(){return O().feedAdMetadata}},{feedAdMetadataViewModel:function(A){return _.E(vQ7,{data:A.data,
noBottomMargin:function(){return b==null?void 0:b()},
listenToTapEvent:function(){return _.e("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return T==null?void 0:T()}})}})))},"gb"),"top-landscape-image-layout-view-model",{props:{data:_.te,
noBottomMargin:_.te,typographyBump:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=W.typographyBump;var T=_.uy();_.e("stop_av_measurement_on_detach")&&_.so(function(){Iy(T)});
_.iO(T,{visibilityCallback:function(L){if(L){var h;(L=(h=O().interaction)==null?void 0:h.onFirstVisible)&&_.nb(L);var Z;if(h=(Z=O().adLayoutData)==null?void 0:Z.activeViewData)Zv(T,h),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Iy(T)})}else _.e("stop_av_measurement_on_detach")&&Iy(T)},
showOption:_.Mo,hideOption:uL});return _.E("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:T},_.E("div",null,_.E(_.R4,{data:function(){return O().videoLockup}},{lockupViewModel:function(L){return _.E(_.Og,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"hb"),"video-display-button-group-layout-view-model",{props:{data:_.te,
noBottomMargin:_.te,typographyBump:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=W.typographyBump;var T=_.uy();_.e("stop_av_measurement_on_detach")&&_.so(function(){Iy(T)});
_.iO(T,{visibilityCallback:function(L){if(L){var h;(L=(h=O().interaction)==null?void 0:h.onFirstVisible)&&_.nb(L);var Z;if(h=(Z=O().adLayoutData)==null?void 0:Z.activeViewData)Zv(T,h),_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Iy(T)})}else _.e("stop_av_measurement_on_detach")&&Iy(T)},
showOption:_.Mo,hideOption:uL});return _.E("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:T},_.E("div",null,_.E(_.R4,{data:function(){return O().videoLockup}},{lockupViewModel:function(L){return _.E(_.Og,{data:L.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:b})}})))},"ib"),"video-display-full-layout-view-model",{props:{data:_.te,
noBottomMargin:_.te,typographyBump:_.te}});_.wAz=_.J1(function(W){var O=W.data;W=_.uy();return _.E("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:W},_.E(_.U,{cond:function(){return O().imageBadge},
then:function(b){return _.E(_.uj,{data:b,alt:""})}}))},"jb");var Abn=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});return _.E("carousel-ad-card-image-view-model",{class:function(){var T;return((T=O().interaction)==null?0:T.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:W,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(T){return _.E(_.hd,{data:T.data,
customCommandResolver:b})}}),_.E("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.E(_.R4,{data:function(){return O().badge}},{adCardBadgeViewModel:_.wAz})),_.E(_.Kd,{model:{color:4}}))},"kb");var XAL=_.J1(function(W){var O=_.S(_.wu(0,void 0,"o9Bzd")),b=O.next().value;O.next();var T=O.next().value,L=_.S(_.wu(!1,void 0,"KLdzYe"));O=L.next().value;var h=L.next().value,Z;_.so(function(){clearTimeout(Z)});
L=_.XL(function(){var w;((w=W.animate)==null?0:w.call(W))?(h(!0),Z=setTimeout(function(){h(!1);a()},200)):a();
return!1});
var a=function(){T(function(w){return(w+W.numShownItems())%W.data().length})},m={};
return _.E("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.E("div",{class:_.YS("ytwHorizontalCarouselCarouselWrapper")},_.E("div",{class:_.YS("ytwHorizontalCarouselCarouselInnerWrapper",(m.ytwHorizontalCarouselAnimating=O,m))},_.E(_.pv,{each:W.data,keyBy:"INDEX"},function(w,A){return _.E("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.eE({"flex-basis":function(){return"calc((100% - (8px * "+(W.numShownItems()-1)+")) / "+W.numShownItems()+")"},
order:function(){var X=A-b();X<0&&(X+=W.data().length);return X}})},W.children(w,A))}))),_.E("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":L},W.nextButton()))},"lb");var Uww=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;var T=W.expansive;W=_.uy();_.iO(W,{visibilityCallback:function(L){var h,Z=(h=O().interaction)==null?void 0:h.onFirstVisible;L&&Z&&_.nb(Z)},
showOption:_.Mo});return _.E("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:W},_.E(XAL,{data:function(){var L;return((L=O())==null?void 0:L.carouselAdCards)||[]},
nextButton:function(){return _.E(_.R4,{data:function(){return O().nextButton}},{buttonViewModel:function(L){var h=L.data;
return _.E(_.DO,{data:function(){return(T==null?0:T())?Object.assign({},h(),{style:"mono"}):h()},
className:_.e("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(L){return _.E(_.R4,{data:L},{carouselAdCardImageViewModel:function(h){return _.E(Abn,{data:h.data,customCommandResolver:b})}})}))},"mb");var lTq=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;var T=W.className;var L=W.buttonClassName;var h=W.animationEntityKey;var Z=W.expansive;return _.E("carousel-button-view-model",{class:_.YS("ytwCarouselButtonViewModelHost",T)},_.E(_.R4,{data:function(){return O().carousel}},{carouselAdCardCollectionViewModel:function(a){return _.E(Uww,{data:a.data,
customCommandResolver:b,expansive:Z})}}),_.E(_.R4,{data:function(){return O().button}},{adButtonViewModel:function(a){var m=a.data;
return _.E(_.JD,{data:function(){return(Z==null?0:Z())?Object.assign({},m(),{style:"AD_BUTTON_STYLE_TONAL"}):m()},
className:L,customCommandResolver:b,animationEntityKey:h})}}))},"nb");_.e2f=_.J1(function(W){var O=W.data;W=W.className;var b=_.uy();_.kX(function(){var T;((T=O())==null?0:T.backgroundColor)&&b.value.setAttribute("data-background-color",String(O().backgroundColor))});
return _.E("pivot-button-view-model",{el:b,class:_.YS("ytwPivotButtonViewModelHost",W)},_.E(_.jf,{command:function(){var T=O();T=T.onClickCommand?_.xy(T.onClickCommand):T.contentDescription?_.FW(T.contentDescription):void 0;return T},
ariaLabel:function(){return O().contentDescription}},_.E(_.U,{cond:function(){return O().thumbnail},
then:function(T){return _.E(_.uj,{data:T,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.E(_.U,{cond:function(){return O().icon},
then:function(T){return _.E(_.Ps,{icon:function(){return T().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"ob");_.PC$=_.J1(function(W){var O=W.data;var b=W.buttonShapeOverrideables;return _.E("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.E(_.R4,{data:function(){return O().buttonViewModels}},{buttonViewModel:function(T){return _.E(_.DO,{data:T.data,
buttonOverrides:b})},
likeButtonViewModel:function(T){return _.E(_.QJ,{data:T.data,buttonShapeOverrideables:b})},
dislikeButtonViewModel:function(T){return _.E(_.oC,{data:T.data,buttonShapeOverrideables:b})}}))},"pb");var pAH=_.J1(function(W){var O=W.avatar;var b=W.headline;var T=W.badge;var L=W.description;var h=W.expansive;W={};return _.E("yt-ad-metadata-shape",{class:_.YS("ytAdMetadataShapeHost",(W.ytAdMetadataShapeHostLarge=h,W))},_.E("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.E(_.U,{cond:O,then:function(Z){return _.E(_.Pxn,{data:function(){return(h==null?0:h())?Object.assign({},Z(),{size:"AD_AVATAR_SIZE_MPLUS"}):Z()}})}}),_.E("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.E(_.uw,{text:b,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.E(_.U,{cond:T,then:function(Z){return _.E(_.y9,{data:function(){return(h==null?0:h())?Object.assign({},Z(),{style:"AD_BADGE_STYLE_STARK"}):Z()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.E("h2",{class:"ytAdMetadataShapeHostDescription"},_.E(_.uw,{text:L,
linkInheritColor:!0})))},"qb");var R2v=_.J1(function(W){var O=W.data;var b=W.onShow;var T=W.expansive;W=_.uy();_.$z(W,function(){return O().interaction});
_.kX(function(){var h,Z=(h=O().animatedRenderingConfig)==null?void 0:h.delayedSecondsToVisible;if(Z){var a=setTimeout(b,Z*1E3);_.so(function(){clearTimeout(a)})}});
var L={};return _.E("reels-ad-card-buttoned-view-model",{class:_.YS(function(){var h;return((h=O().interaction)==null?0:h.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(L.ytwReelsAdCardButtonedViewModelHostExpansive=T,L)),
el:W},_.E(pAH,{avatar:function(){return _.P(O().avatar,XRn)},
headline:function(){return O().headline},
badge:function(){return _.P(O().adBadge,Uc9)},
description:function(){return O().description},
expansive:T}),_.E(_.R4,{data:function(){return O().ctaButton}},{adButtonViewModel:function(h){var Z=h.data;
return _.E(_.JD,{data:function(){return(T==null?0:T())?Object.assign({},Z(),{style:"AD_BUTTON_STYLE_FILLED"}):Z()}})}}))},"rb");var Ke7=_.J1(function(W){var O=W.data;W=W.expansive;var b=_.uy();_.e("web_ad_metadata_clickable")&&_.$z(b,function(){return O().interaction});
var T={};T=_.wd("ytwReelsAdMetadataViewModelHost",(T.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.e("web_ad_metadata_clickable"),T));return _.E("reels-ad-metadata-view-model",{class:T,el:b},_.E(pAH,{avatar:function(){return _.P(O().avatar,XRn)},
headline:function(){return O().headline},
badge:function(){return _.P(O().adBadge,Uc9)},
description:function(){return O().description},
expansive:W}))},"sb");var vxf={iconPosition:"icon-with-label",size:"L"},gxH=_.J1(function(W){var O=W.data;W=W.overlayDensity;var b=_.uy(),T=_.Me(W,0);_.kb(function(){b.value.setAttribute("overlay-density",String(T()))});
var L=function(){var X;return(X=O().reelsAdCardButtonedEntityKey)!=null?X:""},h=function(){return L()+"/ad_button"},Z=_.wt(pY2,L),a=function(){var X,l;
return(l=(X=Z())==null?void 0:X.value)!=null?l:!1},m=_.D3(gxE),w=function(){return Object.assign({},vxf,(m()||T()===2)&&{style:"overlay-dark"})};
W={};var A={};return _.E("reels-player-overlay-layout-view-model",{class:_.YS("ytwReelsPlayerOverlayLayoutViewModelHost",(W.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!O().extension},W.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},W)),
el:b},_.E("div",{class:_.YS("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(A.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},A))},_.E("div",{"aria-hidden":function(){return a()},
class:_.YS("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return a()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.eE({"transition-duration":function(){return k_X(O())}})},_.E(_.R4,{data:function(){return O().adMetadata}},{reelsAdMetadataViewModel:function(X){return _.E(Ke7,{data:X.data,
expansive:function(){return T()===1}})}}),_.E(_.U,{cond:function(){return O().extension},
then:function(X){return _.E("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.E(_.R4,{data:X},{adButtonViewModel:function(l){return _.E(_.JD,{data:l.data,animationEntityKey:h,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(l){return _.E(lTq,{data:l.data,animationEntityKey:h,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return T()===1}})}}))}})),_.E("div",{"aria-hidden":function(){return!a()},
class:_.YS("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return a()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.eE({"transition-duration":function(){return k_X(O())}})},_.E(_.R4,{data:function(){return O().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(X){return _.E(R2v,{data:X.data,
onShow:function(){_.Ne(_.AI("booleanEntity",L(),{key:L(),value:!0}))},
expansive:function(){return T()===1}})}}))),_.E("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.E(_.R4,{data:function(){return O().actions}},{reelActionBarViewModel:function(X){return _.E(_.PC$,{data:X.data,
buttonShapeOverrideables:w})}}),_.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:function(X){return _.E(_.DO,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},w(),{type:"tonal"})}})}}),_.E(_.R4,{data:function(){return O().pivotButton}},{pivotButtonViewModel:function(X){return _.E(_.e2f,{data:X.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"tb");_.O1(gxH,"reels-player-overlay-layout-view-model",{props:{data:_.te,overlayDensity:_.te}});var SS=function(){var W=_.n.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;return W};
_.R(SS,_.n);_.d=SS.prototype;
_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.e("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]]"}}}}}};
_.d.ready=function(){var W=this;$RX(function(){W.isAttached&&j7(W.JSC$13420_storedAdSlotMetadata,W.JSC$13420_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&dW(TE(),W.JSC$13420_storedAdSlotMetadata,W.JSC$13420_storedAdLayoutMetadata)})};
_.d.attached=function(){j7(this.JSC$13420_storedAdSlotMetadata,this.JSC$13420_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Yf9(TE(),this.JSC$13420_storedAdSlotMetadata,this.JSC$13420_storedAdLayoutMetadata)};
_.d.detached=function(){j7(this.JSC$13420_storedAdSlotMetadata,this.JSC$13420_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dW(TE(),this.JSC$13420_storedAdSlotMetadata,this.JSC$13420_storedAdLayoutMetadata)};
_.d.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13420_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13420_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13420_storedAdLayoutMetadata!==void 0&&this.JSC$13420_storedAdSlotMetadata!==void 0&&dW(TE(),this.JSC$13420_storedAdSlotMetadata,this.JSC$13420_storedAdLayoutMetadata),Yf9(TE(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13420_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13420_storedAdSlotMetadata=this.adSlotMetadata)};
_.Jq.Object.defineProperties(SS.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
SS.prototype.onAdMetadataChanged=SS.prototype.onAdMetadataChanged;SS.prototype.onTypographyBumpChanged=SS.prototype.onTypographyBumpChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],SS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],SS.prototype,"rendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],SS.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],SS.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],SS.prototype,"noBottomMargin",void 0);_.t([_.C(),_.N("design:type",Object)],SS.prototype,"overlayDensity",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],SS.prototype,"typographyBump",void 0);_.t([_.x("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],SS.prototype,"adLayoutMetadata",null);_.t([_.C(),_.N("design:type",Object)],SS.prototype,"adSlotMetadata",void 0);
_.t([_.El("ytd-video-display-full-buttoned-and-button-group-renderer"),_.N("design:type",HTMLElement)],SS.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.t([_.m5("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SS.prototype,"onTypographyBumpChanged",null);_.t([_.m5("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SS.prototype,"onAdMetadataChanged",null);
SS=_.t([_.G({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],SS);
_.H(SS,"ytd-in-feed-ad-layout-renderer",function(){if(XEw!==void 0)return XEw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return XEw=W},
{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var oxU;var QZU;var Z7=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return W};
_.R(Z7,_.n);_.d=Z7.prototype;_.d.computeHasLiveDescription=function(W){return!(W==null||!W.liveDescription)};
_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.d.onYtToggleButton=function(W){var O,b=(O=this.data)==null?void 0:O.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.AI("upcomingEventReminderStateEntity",b,{key:b,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.d.attached=function(){this.updateChannelBanner()};
_.d.dataChanged=function(){this.updateChannelBanner()};
_.d.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.P((W=this.data)==null?void 0:W.cta,_.BX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.d.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var W=_.bn(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);W&&(W.startsWith("//")&&(W="https:"+W),this.hostElement.classList.add("channel-banner"),_.Sl(this.hostElement,{"--ytvmh-channel-banner":"url("+W+")"}))}else _.e("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.d.onPlayerReady=function(){this.onIronResize()};
_.d.maybeFlushDebouncer=function(){_.e("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(W){var O;W=(O=W.getElementsByTagName("yt-attributed-string"))==null?void 0:O[0];ePP(W==null?void 0:W.polymerController)})};
_.d.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var W=_.Q(this.hostElement).querySelector("#live-description"),O;W&&((O=this.data)==null?0:O.shortLiveDescription)&&W.clientWidth<W.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Z7.prototype.onIronResize=Z7.prototype.onIronResize;Z7.prototype.videoReminderStateChanged=Z7.prototype.videoReminderStateChanged;Z7.prototype.dataChanged=Z7.prototype.dataChanged;Z7.prototype.onYtToggleButton=Z7.prototype.onYtToggleButton;_.t([_.D(_.vL),_.N("design:type",Object)],Z7.prototype,"ironResizableBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Z7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Z7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Z7.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Z7.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:Ep8}),_.N("design:type",Object)],Z7.prototype,"videoReminderState",void 0);
_.t([_.C({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.N("design:type",Boolean)],Z7.prototype,"rounded",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.N("design:type",Boolean)],Z7.prototype,"hasLiveDescription",void 0);_.t([_.C({reflectToAttribute:!0,value:_.e("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.N("design:type",Boolean)],Z7.prototype,"resizableAdBannerSafariFix",void 0);
_.t([_.C({reflectToAttribute:!0,value:_.e("align_three_dot_menu_with_title_description")}),_.N("design:type",Boolean)],Z7.prototype,"menuFix",void 0);_.t([_.wi("yt-formatted-string"),_.N("design:type",Array)],Z7.prototype,"formattedStrings",void 0);_.t([_.El("#cta-button"),_.N("design:type",HTMLElement)],Z7.prototype,"ctaButton",void 0);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z7.prototype,"onYtToggleButton",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z7.prototype,"dataChanged",null);_.t([_.m5("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z7.prototype,"videoReminderStateChanged",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z7.prototype,"onIronResize",null);
Z7=_.t([_.G({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Z7);
_.H(Z7,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(QZU!==void 0)return QZU;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return QZU=W},{mode:1});var k_9;var IH=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.isLocked=!1;return W};
_.R(IH,_.n);_.d=IH.prototype;_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded&&_.TU(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(W){W!==this&&(this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(W){this.isLocked=!0;W!==this&&(this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
IH.prototype.onTap=IH.prototype.onTap;IH.prototype.onMouseOver=IH.prototype.onMouseOver;IH.prototype.onExpandedChanged=IH.prototype.onExpandedChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],IH.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],IH.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],IH.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],IH.prototype,"expanded",void 0);_.t([_.Ul("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IH.prototype,"onExpandedChanged",null);_.t([_.ai("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IH.prototype,"onMouseOver",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IH.prototype,"onTap",null);
IH=_.t([_.G({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],IH);
_.H(IH,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(k_9!==void 0)return k_9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return k_9=W},{mode:1});var sZf;var aH=function(){var W=_.n.apply(this,arguments)||this;W.buttonOverrides={style:"overlay"};W.useYtdPlayer=_.e("use_ytd_player_for_desktop_masthead");W.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};W.playbackFinished=!1;W.JSC$13432_playerManager=null;W.JSC$13432_mastheadCounter=new PN5;return W};
_.R(aH,_.n);_.d=aH.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$13432_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13432_playerManager=new lH)};
_.d.ready=function(){var W=this;this.JSC$13432_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var O=_.Q(this.hostElement).querySelector("#player");this.useYtdPlayer?O.style.display="none":(this.ytdPlayer.style.display="none",yDH(this.JSC$13432_playerManager,O,function(){W.onPlaybackEnded()}),_.Q(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var b;
((b=W.data)==null?0:b.navigationEndpoint)&&_.bX(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})}))};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13432_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.d.attached=function(){var W=this;_.qe(function(){W.maybePlayVideo()})};
_.d.maybePlayVideo=function(){var W=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$13432_playerManager.playVideo(),this.getPlayerPromise().then(function(){W.JSC$13432_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.d.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13432_playerManager.stopVideo()};
_.d.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var W,O={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((W=this.data.playbackStartMs)!=null?W:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(O);this.setupYtdPlayer()}else OQ7(this.JSC$13432_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(WG9(this.JSC$13432_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.d.getPlayerPromise=function(){return this.JSC$13432_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13432_playerManager.mute():this.JSC$13432_playerManager.unMute()};
_.d.onYtNavigate=function(W){var O=EoP(W.detail.endpoint),b=wwX(this.data.clickthroughReportingData);O&&b&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=b:_.JC(O,b,30))};
_.d.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.d.onExpandedChanged=function(){this.expanded?(_.TU(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.d.onMouseOver=function(){this.maybeExpand()};
_.d.onTap=function(){this.maybeExpand()};
_.d.onExpandableTileExpanding=function(W){W!==this&&(this.stopVideo(),this.expanded=!1)};
_.d.onExpandableTileLockAndCollapse=function(W){W!==this&&(this.isLocked=!0,this.expanded=!1)};
_.d.onExpandableTileUnlock=function(){this.isLocked=!1};
_.d.lockAndCollapseExpandableTiles=function(){_.jx(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.d.unlockExpandableTiles=function(){_.jx(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.d.setupYtdPlayer=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.ytdPlayer.getPlayerPromise(),2);O=b.yieldResult;O.addEventListener("onStateChange",function(T){W.onPlayerStateChange(T)});
O.addEventListener("onCueRangeExit",function(T){W.onCueRangeExit(T)});
_.aD(b)})};
_.d.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var O=W.getCurrentTime(),b,T,L=O+((T=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?T:0)/1E3;W.addCueRange("playback",O,L);this.JSC$13432_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.d.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.ytdPlayer.getPlayerPromise(),2);b=T.yieldResult;W?b.mute():b.unMute();_.aD(T)})};
aH.prototype.onTap=aH.prototype.onTap;aH.prototype.onMouseOver=aH.prototype.onMouseOver;aH.prototype.onExpandedChanged=aH.prototype.onExpandedChanged;aH.prototype.onYtNavigate=aH.prototype.onYtNavigate;aH.prototype.onYtToggleButton=aH.prototype.onYtToggleButton;aH.prototype.dataChanged=aH.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],aH.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],aH.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aH.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aH.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],aH.prototype,"expanded",void 0);_.t([_.C(),_.N("design:type",Object)],aH.prototype,"buttonOverrides",void 0);
_.t([_.C(),_.N("design:type",Object)],aH.prototype,"useYtdPlayer",void 0);_.t([_.El("#ytd-player"),_.N("design:type",Object)],aH.prototype,"ytdPlayer",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aH.prototype,"dataChanged",null);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aH.prototype,"onYtToggleButton",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],aH.prototype,"onYtNavigate",null);_.t([_.Ul("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aH.prototype,"onExpandedChanged",null);_.t([_.ai("mouseover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aH.prototype,"onMouseOver",null);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aH.prototype,"onTap",null);aH=_.t([_.G({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],aH);
_.H(aH,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(sZf!==void 0)return sZf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return sZf=W},{mode:1});var BXH;var mu=function(){return _.n.apply(this,arguments)||this};
_.R(mu,_.n);mu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
mu.prototype.onShow=function(){var W=_.Q(this.hostElement).querySelector("#live-description"),O;W&&((O=this.data)==null?0:O.shortLiveDescription)&&W.clientWidth<W.scrollWidth&&this.hostElement.classList.add("short-live-description")};
mu.prototype.onYtToggleButton=function(W){var O,b=(O=this.data)==null?void 0:O.videoReminderEntityKey;b&&this.ytdReduxBehavior.dispatch(_.AI("upcomingEventReminderStateEntity",b,{key:b,state:W.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
mu.prototype.videoReminderStateChanged=function(){var W;this.videoReminderState&&_.P((W=this.data)==null?void 0:W.cta,_.BX)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
mu.prototype.videoReminderStateChanged=mu.prototype.videoReminderStateChanged;mu.prototype.onYtToggleButton=mu.prototype.onYtToggleButton;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mu.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],mu.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mu.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.videoReminderEntityKey"],selector:Ep8}),_.N("design:type",Object)],mu.prototype,"videoReminderState",void 0);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],mu.prototype,"onYtToggleButton",null);_.t([_.m5("videoReminderState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mu.prototype,"videoReminderStateChanged",null);
mu=_.t([_.G({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],mu);
_.H(mu,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(BXH!==void 0)return BXH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BXH=W},{mode:_.Lb("kevlar_poly_si_batch_j065")?1:2});var rbz;var YR=function(){var W=_.n.apply(this,arguments)||this;W.useYtdPlayer=_.e("use_ytd_player_for_desktop_masthead");W.buttonOverrides={style:"overlay"};W.JSC$13440_playerManager=null;W.JSC$13440_mastheadCounter=new PN5;W.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return W};
_.R(YR,_.n);_.d=YR.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$13440_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13440_playerManager=new lH)};
_.d.ready=function(){var W=this;this.JSC$13440_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var O;(O=this.embeddedPlayer)==null||O.remove()}else{var b;(b=this.ytdPlayer)==null||b.remove();yDH(this.JSC$13440_playerManager,this.embeddedPlayer,function(){W.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){W.data&&W.data.navigationEndpoint&&_.bX(W.hostElement,"yt-navigate",{endpoint:W.data.navigationEndpoint})})}};
_.d.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13440_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.d.dataChanged=function(){var W=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var O=!this.data.disableAutoPlayback,b,T={autoplay:O,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((b=this.data.playbackStartMs)!=null?b:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(O?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(T);this.setupYtdPlayer()}else OQ7(this.JSC$13440_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(WG9(this.JSC$13440_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13440_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.jx(W.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");W.JSC$13440_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.d.getPlayerPromise=function(){return this.JSC$13440_playerManager.getPlayerPromise()};
_.d.onYtToggleButton=function(W){this.useYtdPlayer?this.toggleMute(W.detail.toggled):W.detail.toggled?this.JSC$13440_playerManager.mute():this.JSC$13440_playerManager.unMute()};
_.d.onYtNavigate=function(W){var O=EoP(W.detail.endpoint),b=wwX(this.data.clickthroughReportingData);O&&b&&(W.detail.endpoint.watchEndpoint?W.detail.tempData=b:_.JC(O,b,30))};
_.d.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13440_playerManager.stopVideo()};
_.d.setupYtdPlayer=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.ytdPlayer.getPlayerPromise(),2);O=b.yieldResult;O.addEventListener("onStateChange",function(T){W.onPlayerStateChange(T)});
O.addEventListener("onCueRangeExit",function(T){W.onCueRangeExit(T)});
_.aD(b)})};
_.d.onPlayerStateChange=function(W){if(W===1&&(W=this.ytdPlayer.getPlayer())){var O=W.getCurrentTime(),b,T,L=O+((T=(b=this.data)==null?void 0:b.playbackDurationMs)!=null?T:0)/1E3;W.addCueRange("playback",O,L);_.jx(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13440_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.d.onCueRangeExit=function(W){W==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.d.toggleMute=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.ytdPlayer.getPlayerPromise(),2);b=T.yieldResult;W?b.mute():b.unMute();_.aD(T)})};
_.Jq.Object.defineProperties(YR.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W,O;if(!((W=this.data)==null?0:(O=W.accessibilityData)==null?0:O.label))return"Ad primary link";var b,T;return _.EO("AD_TITLE",{title:(b=this.data)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label})}}});
YR.prototype.onYtMastheadHidden=YR.prototype.onYtMastheadHidden;YR.prototype.onYtNavigate=YR.prototype.onYtNavigate;YR.prototype.onYtToggleButton=YR.prototype.onYtToggleButton;YR.prototype.dataChanged=YR.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],YR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],YR.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],YR.prototype,"useYtdPlayer",void 0);_.t([_.El("ytd-toggle-button-renderer"),_.N("design:type",Object)],YR.prototype,"muteButton",void 0);_.t([_.C(),_.N("design:type",Object)],YR.prototype,"buttonOverrides",void 0);
_.t([_.x("data.accessibilityData.label"),_.N("design:type",String),_.N("design:paramtypes",[])],YR.prototype,"titleAriaLabel",null);_.t([_.El("#replay-button"),_.N("design:type",Object)],YR.prototype,"replayButton",void 0);_.t([_.El("#player-container"),_.N("design:type",Object)],YR.prototype,"playerContainer",void 0);_.t([_.El("#player"),_.N("design:type",Object)],YR.prototype,"embeddedPlayer",void 0);_.t([_.El("#ytd-player"),_.N("design:type",Object)],YR.prototype,"ytdPlayer",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YR.prototype,"dataChanged",null);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YR.prototype,"onYtToggleButton",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],YR.prototype,"onYtNavigate",null);
_.t([_.ai("yt-masthead-hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YR.prototype,"onYtMastheadHidden",null);YR=_.t([_.G({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],YR);
_.H(YR,"ytd-video-masthead-ad-primary-video-renderer",function(){if(rbz!==void 0)return rbz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rbz=W},{mode:2});var Dw5;var Ep=function(){var W=_.n.apply(this,arguments)||this;W.collapsed=!1;W.impressionResolver=_.$S();W.JSC$13444_activeViewMeasurementDataResolver=_.$S();W.actionMap={"yt-mute-ad-action":"handleMuteAd"};return W};
_.R(Ep,_.n);_.d=Ep.prototype;_.d.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"}}}};
_.d.ready=function(){var W=this;_.Q(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){W.expandAd()});
this.hostElement.addEventListener("yt-action",function(O){if(O.detail.actionName==="yt-service-request"){var b=O.detail.args[1];b.videoMastheadAdMuteCommand&&(W.collapseAd(b.videoMastheadAdMuteCommand.encryptedMastheadId),O.stopPropagation())}})};
_.d.attached=function(){var W=this;_.qe(function(){W.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(O){if(!W.collapsed){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,HO(b.baseUrl,b.attributionSrcMode);W.data.impressionCommand=void 0}});
this.JSC$13444_activeViewMeasurementDataResolver.promise.then(function(O){W.ytdActiveViewBehavior.enableActiveViewMeasurement(O,15)});
_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.dataChanged=function(){var W;((W=this.data.impressionCommand)==null?0:W.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var O;((O=this.data)==null?0:O.activeView)&&this.JSC$13444_activeViewMeasurementDataResolver.resolve(this.data.activeView);(W=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(W.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.d.computeWidescreen=function(W){var O;return!!(W&&((O=_.P(W,mc1))==null?0:O.isWidescreen))};
_.d.computeExpandable=function(W){return!!(W&&W.length>0)};
_.d.onIronResize=function(){if(this.expandable){var W=_.Q(this.hostElement).querySelector("#expandable-tile-container :first-child");W&&!W.expanded&&(W.expanded=!0)}};
_.d.handleMuteAd=function(){this.collapseAd(null)};
_.d.restoreCollapsedState=function(W){this.collapsed=_.Xt().get("HIDDEN_MASTHEAD_ID")===W};
_.d.collapseAd=function(W){if(W){var O=_.Xt();O.set("HIDDEN_MASTHEAD_ID",W);O.save()}(W=_.Q(this.hostElement).querySelector("#video"))&&_.bX(W,"yt-masthead-hidden");this.collapsed=!0};
_.d.expandAd=function(){var W=_.Xt();W.set("HIDDEN_MASTHEAD_ID",!1);W.save();location.reload()};
_.d.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
Ep.prototype.onIronResize=Ep.prototype.onIronResize;Ep.prototype.dataChanged=Ep.prototype.dataChanged;_.t([_.D(_.vL),_.N("design:type",Object)],Ep.prototype,"ironResizableBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],Ep.prototype,"ytdActiveViewBehavior",void 0);_.t([_.D(_.xo),_.N("design:type",Object)],Ep.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Ep.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ep.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ep.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ep.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.N("design:type",Boolean)],Ep.prototype,"widescreen",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.N("design:type",Boolean)],Ep.prototype,"expandable",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ep.prototype,"collapsed",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ep.prototype,"dataChanged",null);
_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ep.prototype,"onIronResize",null);Ep=_.t([_.G({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],Ep);
_.H(Ep,"ytd-video-masthead-ad-v3-renderer",function(){if(Dw5!==void 0)return Dw5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Dw5=W},{mode:2});var wW=function(){return _.n.apply(this,arguments)||this};
_.R(wW,_.n);_.d=wW.prototype;_.d.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.d.ready=function(){var W=this;$RX(function(){W.isAttached&&j7(W.JSC$13449_storedAdSlotMetadata,W.JSC$13449_storedAdLayoutMetadata,W.adSlotMetadata,W.adLayoutMetadata)&&dW(TE(),W.JSC$13449_storedAdSlotMetadata,W.JSC$13449_storedAdLayoutMetadata)})};
_.d.attached=function(){j7(this.JSC$13449_storedAdSlotMetadata,this.JSC$13449_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Yf9(TE(),this.JSC$13449_storedAdSlotMetadata,this.JSC$13449_storedAdLayoutMetadata)};
_.d.detached=function(){j7(this.JSC$13449_storedAdSlotMetadata,this.JSC$13449_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dW(TE(),this.JSC$13449_storedAdSlotMetadata,this.JSC$13449_storedAdLayoutMetadata)};
_.d.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13449_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13449_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13449_storedAdLayoutMetadata!==void 0&&this.JSC$13449_storedAdSlotMetadata!==void 0&&dW(TE(),this.JSC$13449_storedAdSlotMetadata,this.JSC$13449_storedAdLayoutMetadata),Yf9(TE(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13449_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13449_storedAdSlotMetadata=this.adSlotMetadata)};
_.Jq.Object.defineProperties(wW.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.adLayoutMetadata}}});
wW.prototype.onAdMetadataChanged=wW.prototype.onAdMetadataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],wW.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wW.prototype,"data",void 0);_.t([_.x("data.adLayoutMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],wW.prototype,"adLayoutMetadata",null);
_.t([_.C(),_.N("design:type",Object)],wW.prototype,"adSlotMetadata",void 0);_.t([_.m5("adLayoutMetadata","adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wW.prototype,"onAdMetadataChanged",null);wW=_.t([_.G({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],wW);
_.H(wW,"ytd-page-top-ad-layout-renderer",function(){if(oxU!==void 0)return oxU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return oxU=
W},{mode:_.Lb("kevlar_poly_si_batch_j070")?1:2});var xw$;var Ad=function(){var W=_.n.apply(this,arguments)||this;W.noBottomMargin=!1;W.overlayDensity=0;W.typographyBump=!1;return W};
_.R(Ad,_.n);_.d=Ad.prototype;
_.d.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.d.ready=function(){var W=this;$RX(function(){W.isAttached&&W.adSlotMetadata&&mw1(TE(),W.adSlotMetadata)})};
_.d.attached=function(){if(this.adSlotMetadata){var W;if(this.adSlotMetadata===((W=this.data)==null?void 0:W.adSlotMetadata))aT$(TE(),this.adSlotMetadata);else{var O;_.z5(Error("Kh`"+this.adSlotMetadata+"`"+((O=this.data)==null?void 0:O.adSlotMetadata)))}}};
_.d.detached=function(){this.adSlotMetadata&&mw1(TE(),this.adSlotMetadata)};
_.d.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.d.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&mw1(TE(),this.adSlotMetadata),aT$(TE(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Jq.Object.defineProperties(Ad.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.fulfillmentContent)==null?void 0:O.fulfilledLayout,_.EqU),T;return(W=(T=_.P(b==null?void 0:b.renderingContent,YQq))==null?void 0:T.layout)?W.toLowerCase().replace(/_/g,"-"):""}}});
Ad.prototype.onAdSlotMetadataChanged=Ad.prototype.onAdSlotMetadataChanged;Ad.prototype.onTypographyBumpChanged=Ad.prototype.onTypographyBumpChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ad.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Ad.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ad.prototype,"rendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Ad.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Ad.prototype,"noBottomMargin",void 0);_.t([_.C(),_.N("design:type",Object)],Ad.prototype,"overlayDensity",void 0);_.t([_.C(),_.N("design:type",Object)],Ad.prototype,"typographyBump",void 0);_.t([_.El("ytd-in-feed-ad-layout-renderer"),_.N("design:type",HTMLElement)],Ad.prototype,"inFeedAdLayoutRenderer",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Ad.prototype,"layout",null);_.t([_.m5("typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"onTypographyBumpChanged",null);_.t([_.m5("data.adSlotMetadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ad.prototype,"onAdSlotMetadataChanged",null);
Ad=_.t([_.G({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Ad);
_.H(Ad,"ytd-ad-slot-renderer",function(){if(xw$!==void 0)return xw$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return xw$=W},{mode:_.Lb("kevlar_poly_si_batch_j077")?
1:2});var z2L;var Xn=function(){return _.n.apply(this,arguments)||this};
_.R(Xn,_.n);_.d=Xn.prototype;_.d.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"}}}};
_.d.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&bW2(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.d.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var W=_.S(this.data.impressionUrls),O=W.next();!O.done;O=W.next())O=O.value,E1h(O,AoE(O));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.d.attached=function(){var W=this;_.e("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&W.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.d.detached=function(){_.e("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Jq.Object.defineProperties(Xn.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Xn.prototype.dataChanged=Xn.prototype.dataChanged;Xn.prototype.onTap=Xn.prototype.onTap;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.t([_.D(Qc),_.N("design:type",Object)],Xn.prototype,"ytdActiveViewBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Xn.prototype,"ytdReduxBehavior",void 0);
_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],Xn.prototype,"isGridViewEnabled",void 0);_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Xn.prototype,"watchFeedBigThumbs",null);_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Xn.prototype,"thumbnailWidth",null);_.t([_.C(),_.N("design:type",Object)],Xn.prototype,"data",void 0);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xn.prototype,"onTap",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xn.prototype,"dataChanged",null);Xn=_.t([_.G({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Xn);
_.H(Xn,"ytd-compact-promoted-video-renderer",function(){if(z2L!==void 0)return z2L;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return z2L=W},{mode:1});var CCL;_.Bs("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Up=function(){return _.n.apply(this,arguments)||this};
_.R(Up,_.n);Up.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Up.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Up.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Up.prototype,"data",void 0);Up=_.t([_.G({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Up);
_.H(Up,"ytd-search-pyv-renderer",function(){if(CCL!==void 0)return CCL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return CCL=W},{mode:1});var qfn;_.Bs("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var lV=function(){var W=_.n.apply(this,arguments)||this;W.roundedContainer=!0;W.JSC$13465_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.R(lV,_.n);_.d=lV.prototype;
_.d.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}}};
_.d.onStampFinished=function(){this.JSC$13465_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.Q(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");W?W.openDialog():this.JSC$13465_handleOpenPostCommentDialogActionAfterStamp=!0};
_.d.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.d.computeHideBorder=function(){return this.isInEngagementPanel};
_.d.computeIsCompact=function(){return this.isInEngagementPanel};
_.d.computeUsesCompactLockup=function(W){return W==="BACKSTAGE_SURFACE_TYPE_HOME"||W==="BACKSTAGE_SURFACE_TYPE_SEARCH"||W==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||W==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||W==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||W==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.d.computeUsesFullLockup=function(){var W,O=(W=this.data)==null?void 0:W.post,b;W=(b=_.P(O,KNH))==null?void 0:b.surface;var T;b=(T=_.P(O,gqN))==null?void 0:T.originalPost;var L;if(T=W||((L=_.P(b,KNH))==null?void 0:L.surface))return!this.computeUsesCompactLockup(T)&&this.useUpdatedRepostUi;var h;return((h=_.P(O,gqN))==null?void 0:h.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Jq.Object.defineProperties(lV.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var W,O;return((O=_.P((W=this.data)==null?void 0:W.post,KNH))==null?void 0:O.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.useUpdatedRepostUi}}});
lV.prototype.onYtCommentModerationPanelEmpty=lV.prototype.onYtCommentModerationPanelEmpty;lV.prototype.onStampFinished=lV.prototype.onStampFinished;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],lV.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lV.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],lV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lV.prototype,"roundedContainer",void 0);_.t([_.C({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],lV.prototype,"hideBorder",void 0);_.t([_.C({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.N("design:type",Boolean)],lV.prototype,"isCompact",void 0);
_.t([_.C({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.N("design:type",Boolean)],lV.prototype,"usesFullLockup",void 0);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lV.prototype,"onStampFinished",null);
_.t([_.ai("ytd-comment-moderation-panel-empty"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lV.prototype,"onYtCommentModerationPanelEmpty",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lV.prototype,"isInEngagementPanel",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lV.prototype,"useUpdatedRepostUi",null);
lV=_.t([_.G({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],lV);
_.H(lV,"ytd-backstage-post-thread-renderer",function(){if(qfn!==void 0)return qfn;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qfn=W},{mode:1});var nxz;var eS=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(eS,_.n);eS.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
eS.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var W=this.data.thumbnail.thumbnails;this.isDarkTheme&&(W=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(W=_.bn(W,24,void 0,"height"))?W:void 0}};
eS.prototype.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
eS.prototype.computeHasText=function(){var W;return!((W=this.data)==null||!W.text)};
_.Jq.Object.defineProperties(eS.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.l7(this.bannerImageUrl))+'");'}}});
eS.prototype.computeHasText=eS.prototype.computeHasText;eS.prototype.computeBannerImageUrl=eS.prototype.computeBannerImageUrl;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],eS.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],eS.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],eS.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",String)],eS.prototype,"bannerImageUrl",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.N("design:type",Boolean)],eS.prototype,"hasText",void 0);_.t([_.m5("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eS.prototype,"computeBannerImageUrl",null);
_.t([_.m5("data.text"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eS.prototype,"computeHasText",null);_.t([_.x("bannerImageUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],eS.prototype,"bannerStyle",null);eS=_.t([_.G({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],eS);
_.H(eS,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(nxz!==void 0)return nxz;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return nxz=W},{mode:1});var fTH;var P7=function(){return _.n.apply(this,arguments)||this};
_.R(P7,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],P7.prototype,"data",void 0);P7=_.t([_.G({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],P7);
_.H(P7,"ytd-backstage-zero-state-renderer",function(){if(fTH!==void 0)return fTH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fTH=W},{mode:1});var G_1;var pZ=function(){return _.n.apply(this,arguments)||this};
_.R(pZ,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pZ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pZ.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],pZ.prototype,"icon",void 0);pZ=_.t([_.G({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],pZ);
_.H(pZ,"ytd-post-filter-zero-state-renderer",function(){if(G_1!==void 0)return G_1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return G_1=W},{mode:1});var HR1;var t8U={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},RH=function(){return _.n.apply(this,arguments)||this};
_.R(RH,_.n);RH.prototype.configureRendererStamper=function(){return t8U};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RH.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],RH.prototype,"rendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],RH.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],RH.prototype,"icon",void 0);RH=_.t([_.G({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],RH);
_.H(RH,"ytd-post-scheduling-zero-state-renderer",function(){if(HR1!==void 0)return HR1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return HR1=W},{mode:1});var $wq;var KZ=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return W};
_.R(KZ,_.n);KZ.prototype.onTabsActivate=function(W){this.data&&this.data.tabs&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[W.detail.selected].navigationEndpoint})};
KZ.prototype.shouldShowTotalCount=function(W){return W&&W.totalCount!==void 0};
KZ.prototype.handleUpdatePostsTotalCountAction=function(W){var O=this.get(["data.tabs",1,"totalCount"]),b=this.get("updatePostsTotalCountAction.updateType",W);W=this.get("updatePostsTotalCountAction.number",W);O!==void 0&&b!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&W&&(b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(O)+W):b==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(O)-W))};
_.Jq.Object.defineProperties(KZ.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var W=0,O=this.data.tabs.length;W<O;W++)if(this.data.tabs[W].selected)return W;return 0}}});
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],KZ.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KZ.prototype,"rendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KZ.prototype,"data",void 0);_.t([_.x("data.tabs"),_.N("design:type",Number),_.N("design:paramtypes",[])],KZ.prototype,"selected",null);KZ=_.t([_.G({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],KZ);
_.H(KZ,"ytd-post-stream-filter-renderer",function(){if($wq!==void 0)return $wq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return $wq=W},{mode:1});var V8n;var v7=function(){return _.n.apply(this,arguments)||this};
_.R(v7,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],v7.prototype,"kevlarBehaviors",void 0);_.t([_.C(),_.N("design:type",Object)],v7.prototype,"data",void 0);v7=_.t([_.G({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],v7);
_.H(v7,"ytd-channel-age-gate-renderer",function(){if(V8n!==void 0)return V8n;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return V8n=W},{mode:1});var NXU;_.Bs("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var gW=function(){var W=_.n.apply(this,arguments)||this;W.data=null;return W};
_.R(gW,_.n);gW.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jq.Object.defineProperties(gW.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?0:(O=W.title)==null?0:(b=O.runs)==null?0:b.length)?147:160}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gW.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],gW.prototype,"imageSizePx",null);gW=_.t([_.G({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],gW);
_.H(gW,"ytd-channel-owner-empty-state-renderer",function(){if(NXU!==void 0)return NXU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return NXU=W},{mode:1});var M8v;var ufL;var oH=function(){var W=_.n.apply(this,arguments)||this;W.boundSubmitSearch=function(){W.submitSearch()};
W.boundClearSearch=function(){W.clearSearch()};
return W};
_.R(oH,_.n);_.d=oH.prototype;_.d.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]]"}}}}}};
_.d.toggleClearButton=function(){this.hideClearButton=Uxh||!this.input.value};
_.d.submitOnEnterKeyUp=function(W){W.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.d.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.d.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.d.submit=function(){_.bX(this.hostElement,"search-query-changed",this.input.value)};
oH.prototype.toggleClearButton=oH.prototype.toggleClearButton;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],oH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oH.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],oH.prototype,"hideClearButton",void 0);_.t([_.C(),_.N("design:type",Object)],oH.prototype,"boundSubmitSearch",void 0);_.t([_.C(),_.N("design:type",Object)],oH.prototype,"boundClearSearch",void 0);_.t([_.El("#input"),_.N("design:type",Object)],oH.prototype,"input",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oH.prototype,"toggleClearButton",null);
oH=_.t([_.G({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],oH);
_.H(oH,"ytd-channel-switcher-search-box-renderer",function(){if(ufL!==void 0)return ufL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ufL=W},{mode:1});var Jbf;var Qe=function(){var W=_.n.apply(this,arguments)||this;W.boundSubmit=function(){W.submit()};
return W};
_.R(Qe,_.n);_.d=Qe.prototype;_.d.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"}}}}};
_.d.ready=function(){var W=this;this.form.addEventListener("submit",function(O){return W.onSubmit(O)})};
_.d.onSubmit=function(W){W.preventDefault();return!1};
_.d.toggleClearButton=function(){this.hideClearButton=Uxh||!this.input.value};
_.d.submitOnEnterKeyUp=function(W){W.keyCode===13&&this.submit()};
_.d.submit=function(){var W=this.data.endpoint,O=(0,_.PQ.unsafeClone)(W);_.P(O,_.wE)?_.P(O,_.wE).query=this.input.value:_.P(O,_.Ao)&&(_.P(O,_.Ao).query=this.input.value);var b=_.P(O.commandMetadata,_.F9);(b==null?0:b.url)?(b.url=_.nB(b.url,"query",this.input.value),_.bX(this.hostElement,"yt-navigate",{endpoint:O})):_.P(O,dcH)?(_.P(O,dcH).channelSwitcherQuery=this.input.value,_.iq().resolve(_.bq).resolveCommand(O,{form:{element:this.hostElement}})):(W=Error("Lh`"+JSON.stringify(W)),_.Dt(W))};
_.d.getUrl=function(W){return this.get("commandMetadata.webCommandMetadata.url",W)};
Qe.prototype.toggleClearButton=Qe.prototype.toggleClearButton;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Qe.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Qe.prototype,"hideClearButton",void 0);
_.t([_.C(),_.N("design:type",Object)],Qe.prototype,"boundSubmit",void 0);_.t([_.El("#form"),_.N("design:type",HTMLFormElement)],Qe.prototype,"form",void 0);_.t([_.El("#input"),_.N("design:type",Object)],Qe.prototype,"input",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qe.prototype,"toggleClearButton",null);Qe=_.t([_.G({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Qe);
_.H(Qe,"ytd-search-box-renderer",function(){if(Jbf!==void 0)return Jbf;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Jbf=W},{mode:2});var kR=function(){var W=_.n.apply(this,arguments)||this;W.showSearchBox=!0;return W};
_.R(kR,_.n);kR.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kR.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kR.prototype,"showSearchBox",void 0);kR=_.t([_.G({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],kR);
_.H(kR,"ytd-channel-switcher-header-renderer",function(){if(M8v!==void 0)return M8v;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return M8v=W},{mode:1});var cbN;var Fef;var sp=function(){var W=_.n.apply(this,arguments)||this;W.isDisplayed=!0;return W};
_.R(sp,_.n);_.d=sp.prototype;_.d.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.isDisplayed=!0};
_.d.computeType=function(W){return W||"UNKNOWN"};
_.d.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isDisplayed=!1};
_.d.onClose=function(){this.isDisplayed=!1};
sp.prototype.onYtServiceRequestCompleted=sp.prototype.onYtServiceRequestCompleted;sp.prototype.dataChanged=sp.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sp.prototype,"data",void 0);
_.t([_.C({computed:"computeType(data.type)",reflectToAttribute:!0}),_.N("design:type",String)],sp.prototype,"type",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],sp.prototype,"isDisplayed",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sp.prototype,"dataChanged",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],sp.prototype,"onYtServiceRequestCompleted",null);sp=_.t([_.G({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],sp);
_.H(sp,"ytd-alert-with-button-renderer",function(){if(Fef!==void 0)return Fef;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Fef=W},{mode:1});var B7=function(){var W=_.n.apply(this,arguments)||this;W.noResult=!1;W.enableAlertBanner=!1;W.dismissedAlertBanner=!1;W.hideCreateChannelButton=!1;W.boundDismissAlertBanner=function(){W.dismissAlertBanner()};
W.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return W};
_.R(B7,_.n);_.d=B7.prototype;_.d.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.d.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.d.updateChannelSwitcherAction=function(W){var O;W=(O=_.P(W,Hff))==null?void 0:O.page;_.P(W,GR7)!==void 0&&(this.data=_.P(W,GR7))};
_.d.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]]"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.searchQueryChanged=function(W,O){if(this.data&&this.data.contents&&this.data.contents.length){W=[];var b=[];this.hideCreateChannelButton=this.noResult=!1;for(var T=document.querySelectorAll("ytd-account-item-renderer"),L=_.S(T),h=L.next();!h.done;h=L.next())h=h.value,b.push(h),h.style.display="block";this.resetRightBorder(b);if(O){this.hideCreateChannelButton=!0;for(b=1;b<this.data.contents.length;b++)if(h=this.data.contents[b],_.P(h,jdf)){var Z=void 0,a=void 0;L=(Z=_.P(h,jdf))==null?void 0:(a=
Z.accountName)==null?void 0:a.simpleText;a=Z=void 0;h=(Z=_.P(h,jdf))==null?void 0:(a=Z.channelHandle)==null?void 0:a.simpleText;(Z=T[b-1])&&L&&_.mX(L,O)?W.push(Z):_.e("enable_handle_search_on_channel_switcher")&&Z&&h&&_.mX(h.toString(),O.toString())?W.push(Z):Z.style.display="none"}W.length===0&&(this.noResult=!0);this.resetRightBorder(W)}}};
_.d.resetRightBorder=function(W){for(var O=0;O<W.length;O++)W[O].style.borderRight=!this.hideCreateChannelButton&&(O+2)%3===0||this.hideCreateChannelButton&&(O+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.d.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.d.setShowSearchBox=function(W){if(W&&W.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var O=0;O<W.contents.length;O++)_.P(W.contents[O],_.bU)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.d.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Jq.Object.defineProperties(B7.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.contents)}}});
B7.prototype.onContinuationItemsUpdated=B7.prototype.onContinuationItemsUpdated;B7.prototype.searchQueryChanged=B7.prototype.searchQueryChanged;B7.prototype.onDataChanged=B7.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],B7.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],B7.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],B7.prototype,"data",void 0);_.t([_.El("ytd-channel-switcher-header-renderer"),_.N("design:type",Object)],B7.prototype,"channelSwitcherHeaderRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],B7.prototype,"noResult",void 0);
_.t([_.C(),_.N("design:type",Object)],B7.prototype,"enableAlertBanner",void 0);_.t([_.C(),_.N("design:type",Object)],B7.prototype,"dismissedAlertBanner",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],B7.prototype,"hideCreateChannelButton",void 0);_.t([_.x("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],B7.prototype,"isLoading",null);_.t([_.C(),_.N("design:type",Object)],B7.prototype,"boundDismissAlertBanner",void 0);
_.t([_.C({computed:"computeButtonOverride()"}),_.N("design:type",Object)],B7.prototype,"buttonOverride",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],B7.prototype,"onDataChanged",null);_.t([_.ai("search-query-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],B7.prototype,"searchQueryChanged",null);
_.t([_.ai("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],B7.prototype,"onContinuationItemsUpdated",null);B7=_.t([_.G({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],B7);
_.H(B7,"ytd-channel-switcher-page-renderer",function(){if(cbN!==void 0)return cbN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return cbN=W},{mode:1});var ybv;var W2v;var rW=function(){var W=_.n.apply(this,arguments)||this;W.images=[];W.selectedImageIndex=0;return W};
_.R(rW,_.n);_.d=rW.prototype;
_.d.ready=function(){_.Rx(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Rx(this.JSC$13510_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Rx(this.JSC$13510_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Rx(this.JSC$13510_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.d.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.d.updateImageThumbnails=function(W){W=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:W.event_.detail});this.images.splice(this.selectedImageIndex,1,W);this.images=[].concat(_.PG(this.images))};
_.d.cancelImageRepositions=function(){this.selectedImageIndex=0;_.bX(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.d.saveImageRepositions=function(){this.selectedImageIndex=0;_.bX(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Jq.Object.defineProperties(rW.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var W=this;return(this.images||[]).map(function(O,b){return{image:O,selected:b===W.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("ytd-backstage-image-preview-renderer"),_.N("design:type",Object)],rW.prototype,"JSC$13510_imagePreviewContainer",void 0);_.t([_.El(".thumbnail-images-container"),_.N("design:type",HTMLElement)],rW.prototype,"thumbnailImagesContainer",void 0);_.t([_.C(),_.N("design:type",Array)],rW.prototype,"images",void 0);
_.t([_.C(),_.N("design:type",Object)],rW.prototype,"repositionInstructions",void 0);_.t([_.C(),_.N("design:type",Object)],rW.prototype,"selectedImageIndex",void 0);_.t([_.x("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],rW.prototype,"thumbnailRendererDatas",null);_.t([_.x("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],rW.prototype,"selectedImageData",null);
rW=_.t([_.G({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],rW);
_.H(rW,"ytd-backstage-multi-image-reposition-renderer",function(){if(W2v!==void 0)return W2v;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return W2v=W},{mode:1});var D7=function(W,O){_.ER.call(this);this.uploadUrl=W;this.channelId=O;this.imagesUploadData=[]};
_.R(D7,_.ER);D7.prototype.getAllUploadStatuses=function(){var W=this,O,b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,Ok5(W),2);O=L.yieldResult;b=O.get("succeed");T=O.get("failed");return L.return(b.concat(T))})};
var bk9=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,Ok5(W),2);O=T.yieldResult;b=O.get("failed");b.length>0&&ikN(W,b);return T.return(W.getAllUploadStatuses())})},Ok5=function(W){var O,b,T,L,h,Z,a;
return _.I(function(m){if(m.nextAddress==1)return O=new Map,_.Y(m,Promise.allSettled(W.imagesUploadData.map(function(w){return w.uploadPromise})),2);
b=m.yieldResult;T=[];L=_.S(b);for(h=L.next();!h.done;h=L.next())Z=h.value,Z.status==="fulfilled"&&T.push(Z.value);a=W.imagesUploadData.map(function(w){return w.image}).filter(function(w){return T.every(function(A){return A.id!==w.id})});
O.set("succeed",T);O.set("failed",a);return m.return(O)})},ikN=function(W,O){O=_.S(O);
for(var b=O.next();!b.done;b=O.next()){var T=W;b=b.value;jp9(T,b.id)>=0&&T.cancel(b.id);var L=new TJw(b),h=_.V7n(T.uploadUrl,{"X-YouTube-ChannelId":T.channelId},b.imageBlob);L.transfer=h;L.uploadPromise=L2L(h,b);T.imagesUploadData.push(L);h.run()}};
D7.prototype.cancel=function(W){var O=jp9(this,W);O!==-1&&((O=this.imagesUploadData[O].transfer)&&O.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(b){return b.image.id!==W}))};
var jp9=function(W,O){return W.imagesUploadData.findIndex(function(b){return b.image.id===O})},L2L=function(W,O){return new Promise(function(b,T){W.listen("l",function(){var L=W.getResponseText();
L?(L=JSON.parse(L).encryptedBlobId,O.encryptedBlobId=L,b(O)):T("upload failed")});
W.listen("n",function(){T("upload failed")})})},TJw=function(W){this.image=W};var sZ1=function(W,O,b,T,L){this.id=W;this.imageBlob=O;this.localImageSrc=b;this.naturalWidth=T;this.naturalHeight=L;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 dBU=[".jpeg",".jpg",".png"],xR=function(){var W=_.n.apply(this,arguments)||this;W.showImagesPreview=!1;W.pollOptions=[];W.errorMessage="";W.optionPlaceholderText="";W.optionDefaultText="";W.JSC$13521_imageId=0;W.maxFileSizeMb=0;W.maxAspectRatio=0;W.invalidFileSizeError="";W.invalidAspectRatioError="";W.invalidFileTypeError="";W.imageSelector=new SX(null,"single_file",dBU);return W};
_.R(xR,_.n);_.d=xR.prototype;_.d.ready=function(){_.Rx(this.imageSelector,"j",this.onImageSelect,!1,this);_.Rx(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Rx(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.d.dataChanged=function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.cellTemplate)==null?void 0:O.onEmptyCellTap,Ghz);if(b&&b.uploadUrl&&b.channelId){var T;this.maxFileSizeMb=((T=b.imageValidationInfo)==null?void 0:T.maxFileSizeMb)||0;var L;this.maxAspectRatio=((L=b.imageValidationInfo)==null?void 0:L.allowedMaxAspectRatio)||0;var h;this.invalidFileSizeError=this.getSimpleString((h=this.data)==null?void 0:h.invalidFileSizeError);var Z;this.invalidAspectRatioError=this.getSimpleString((Z=this.data)==
null?void 0:Z.invalidAspectRatioError);var a;this.invalidFileTypeError=this.getSimpleString((a=this.data)==null?void 0:a.invalidFileTypeError);this.uploadManager=new D7(b.uploadUrl,b.channelId)}};
_.d.onEditorInfoChange=function(){this.optionPlaceholderText=_.NX(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.NX(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.d.observeAddImageError=function(){this.errorMessage!==""&&_.bX(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.d.onPollOptionsChange=function(){for(var W=!1,O=[],b=0;b<this.pollOptions.length;b++){var T=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(b+1);this.pollOptions[b].placeholderText!==T?(W=!0,O.push(Object.assign({},this.pollOptions[b],{placeholderText:T}))):O.push(this.pollOptions[b])}W&&(this.pollOptions=O);this.isValid()?_.bX(this.hostElement,"yt-commentbox-post-enable"):_.bX(this.hostElement,"yt-commentbox-post-disable")};
_.d.createPollOptions=function(W){var O=[],b;W=(b=W==null?void 0:W.minPollOptions)!=null?b:0;for(b=0;b<W;b++)O.push(this.createPollOption());return O};
_.d.onImageSelect=function(W){var O=this,b,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1){if(O.selectedImageIndex===void 0)return m.jumpTo(0);b=W.files[0];O.errorMessage="";T=O.validateImage(b);if(T!=="")return O.errorMessage=T,m.return();L=new G3(O.maxAspectRatio,!1,!0);return _.Y(m,L.transform(b),3)}if(m.nextAddress!=4)return h=m.yieldResult,h.transformedData?h.invalidAspectRatio?(O.errorMessage=O.invalidAspectRatioError,m.return()):_.Y(m,BXE(O.JSC$13521_imageId,W.files[0],h.transformedData),
4):(O.errorMessage=O.invalidFileTypeError,m.return());Z=m.yieldResult;O.JSC$13521_imageId++;ikN(O.uploadManager,[Z]);a=Object.assign({},O.pollOptions[O.selectedImageIndex],{image:Z});O.pollOptions.splice(O.selectedImageIndex,1,a);O.refreshPollOptions();_.bX(O.hostElement,"yt-backstage-poll-image-select");_.aD(m)})};
_.d.validateImage=function(W){return W.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.d.refreshPollOptions=function(){this.pollOptions=[].concat(_.PG(this.pollOptions))};
_.d.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.PG(this.pollOptions),[this.createPollOption()]))};
_.d.onRemovePollOption=function(W){var O=this.pollOptions[W.model.index];O&&O.image&&this.uploadManager.cancel(O.image.id);this.pollOptions.splice(W.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.bX(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.d.onTextInput=function(){this.refreshPollOptions()};
_.d.onImageButtonClick=function(W){this.selectedImageIndex=W.model.index;this.imageSelector.click()};
_.d.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.d.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.d.saveImageRepositions=function(W){W=W.event_.detail;for(var O=0,b=[],T=_.S(this.pollOptions),L=T.next();!L.done;L=T.next())L=L.value,L.image!==void 0?(L=Object.assign({},L,{image:W[O]}),b.push(L),O++):b.push(L);this.showImagesPreview=!1;this.pollOptions=[].concat(_.PG(b))};
_.d.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 W=0,O=_.S(this.pollOptions),b=O.next();!b.done;b=O.next())if(b=b.value,b.optionText.trim()!==""||b.image!==void 0){if(!b.image||this.hasCustomOptionText&&b.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;W++}return W>=Number(this.editorInfo.minPollOptions)};
_.d.getAllUploadStatuses=function(){var W=this,O,b,T,L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.uploadManager.getAllUploadStatuses(),2);O=h.yieldResult;b=_.S(O);for(T=b.next();!T.done;T=b.next())if(L=T.value,L.encryptedBlobId===void 0)return h.return(bk9(W.uploadManager));return h.return(O)})};
_.d.getPostCreateOptions=function(){for(var W=[],O=_.S(this.pollOptions),b=O.next();!b.done;b=O.next())b=b.value,b.image!==void 0&&W.push({text:this.hasCustomOptionText?b.optionText:b.placeholderText,image:b.image});return W};
_.d.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.d.createButtonRenderer=function(W,O){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:W,accessibilityData:{accessibilityData:{label:this.getSimpleString(W)}},isDisabled:O}};
_.d.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.d.computeThumbnailRendererData=function(W){return W?{image:W,selected:!1}:void 0};
_.d.getSimpleString=function(W){return _.NX(W)};
_.d.updateOptionTextFromBinding=function(W){if(W.target){var O=Array.from(_.Q(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(W.target);if(O>=0){var b;this.pollOptions[O].optionText=(b=W.detail.value)!=null?b:""}}};
_.Jq.Object.defineProperties(xR.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,O;return this.pollOptions.length<((O=(W=this.editorInfo)==null?void 0:W.maxPollOptions)!=null?O:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(W){return W.image}).map(function(W){return W.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(W){return W.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.data)==null?void 0:W.addOptionButtonText;return O?this.createButtonRenderer(O,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.data)==null?void 0:W.repositionImagesButtonLabel;return O?this.createButtonRenderer(O,!this.hasImages):void 0}}});
xR.prototype.onPollOptionsChange=xR.prototype.onPollOptionsChange;xR.prototype.observeAddImageError=xR.prototype.observeAddImageError;xR.prototype.onEditorInfoChange=xR.prototype.onEditorInfoChange;xR.prototype.dataChanged=xR.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("ytd-backstage-multi-image-reposition-renderer"),_.N("design:type",Object)],xR.prototype,"imageRepositionContainer",void 0);
_.t([_.C(),_.N("design:type",Object)],xR.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],xR.prototype,"editorInfo",void 0);_.t([_.C(),_.N("design:type",D7)],xR.prototype,"uploadManager",void 0);_.t([_.C(),_.N("design:type",Object)],xR.prototype,"showImagesPreview",void 0);_.t([_.C(),_.N("design:type",Array)],xR.prototype,"pollOptions",void 0);_.t([_.C(),_.N("design:type",Object)],xR.prototype,"errorMessage",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xR.prototype,"dataChanged",null);_.t([_.Ul("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xR.prototype,"onEditorInfoChange",null);_.t([_.m5("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xR.prototype,"observeAddImageError",null);
_.t([_.Ul("pollOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xR.prototype,"onPollOptionsChange",null);_.t([_.x("pollOptions","editorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"isAllowedToAddOption",null);_.t([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"hasImages",null);
_.t([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"imagesToReposition",null);_.t([_.x("pollOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"hasCustomOptionText",null);_.t([_.x("data","isAllowedToAddOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"addOptionButton",null);_.t([_.x("data","hasImages"),_.N("design:type",Object),_.N("design:paramtypes",[])],xR.prototype,"repositionImagesButton",null);
xR=_.t([_.G({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],xR);
_.H(xR,"ytd-backstage-image-poll-editor-renderer",function(){if(ybv!==void 0)return ybv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ybv=W},{mode:2});var hdS={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 SaL;var zE=function(){var W=_.n.apply(this,arguments)||this;W.a11yConfig=hdS;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.showPreviewContainer=!0;W.startPicker=!1;W.repositionOptional=!1;W.editOnlyMode=!1;W.savedImageDisplayOffsetTop=0;W.savedImageDisplayOffsetLeft=0;return W};
_.R(zE,_.n);_.d=zE.prototype;_.d.created=function(){_.zi.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(W){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var O=0,b=0,T="";switch(W.detail.keyboardEvent.key){case "ArrowUp":rbP(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?T=this.a11yConfig.reachBottomOfImage:O=this.imageHeight*.05*-1;break;case "ArrowDown":rbP(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?T=this.a11yConfig.reachTopOfImage:
O=this.imageHeight*.05;break;case "ArrowLeft":rbP(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?T=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":rbP(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?T=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}T&&_.EO(T)&&_.bX(this.hostElement,"iron-announce",{text:_.EO(T)});if(b||O)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+O)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.EO(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.EO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.bX(this.hostElement,"iron-announce",{text:W})}};
_.d.getPreviewPosition=function(W,O,b,T){return Math.round(100*(W+O*.5-b)/T)};
_.d.calculateDisplayPosition=function(){var W=this.imageData.naturalWidth,O=this.imageData.naturalHeight;this.displayScale=Math.max(200/W,200/O);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var b=W*this.displayScale*this.imageData.previewCoordinates.left,T=O*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=O>W?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-b;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=W>O?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-T;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=W*this.displayScale;this.imageHeight=O*this.displayScale};
_.d.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.d.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.d.getSignedPosition=function(W,O,b){return O==="X"&&_.Cv("HTML_DIR")==="rtl"?b==="-"?W+"px":W*-1+"px":b==="-"?W*-1+"px":W+"px"};
_.d.pickerMove=function(W){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var O=this.pickerOffsetX-W.clientX,b=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-O))}};
_.d.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var W=this.generateCropPreview();W&&_.bX(this.hostElement,"ytd-backstage-image-preview-coordinates-update",W)};
_.d.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.bX(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.d.deleteImage=function(){_.bX(this.hostElement,"ytd-backstage-image-preview-delete")};
_.d.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.d.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var W=this.generateCropPreview();W&&_.bX(this.hostElement,"ytd-backstage-image-preview-coordinates-save",W)};
_.d.getPreviewOffset=function(W,O,b){return O&&W?(b==="X"&&_.Cv("HTML_DIR")==="rtl"?300/O*W:300/O*W*-1)+"px":"0px"};
_.d.getSimpleText=function(W){return W?_.NX(W):""};
_.d.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}};
_.Jq.Object.defineProperties(zE.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.EO(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.EO(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.EO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.EO(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 W,O,b=(W=this.instruction)==null?void 0:(O=W.previewInstruction)==null?void 0:O.editButtonLabel;return b?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L=this.editOnlyMode?(W=this.instruction)==null?void 0:(O=W.editInstruction)==null?void 0:O.saveImagesButtonLabel:(b=this.instruction)==null?void 0:(T=b.editInstruction)==null?void 0:T.saveButtonLabel;return L?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:L,accessibilityData:{accessibilityData:{label:this.getSimpleText(L)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.instruction)==null?void 0:(O=W.previewInstruction)==null?void 0:O.deleteButtonLabel;return b?{size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.instruction)==null?void 0:(O=W.editInstruction)==null?void 0:O.cancelButtonLabel;W=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return b?{style:W,size:"SIZE_SMALL",text:b,accessibilityData:{accessibilityData:{label:this.getSimpleText(b)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
zE.prototype.onEditOnlyModeUpdate=zE.prototype.onEditOnlyModeUpdate;zE.prototype.onImageChange=zE.prototype.onImageChange;_.t([_.C(),_.N("design:type",sZ1)],zE.prototype,"imageData",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"instruction",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"a11yConfig",void 0);_.t([_.C(),_.N("design:type",Number)],zE.prototype,"imageWidth",void 0);_.t([_.C(),_.N("design:type",Number)],zE.prototype,"imageHeight",void 0);
_.t([_.C(),_.N("design:type",Number)],zE.prototype,"displayScale",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"imageDisplayOffsetTop",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"showPreviewContainer",void 0);
_.t([_.C(),_.N("design:type",Object)],zE.prototype,"startPicker",void 0);_.t([_.C(),_.N("design:type",Number)],zE.prototype,"pickerOffsetX",void 0);_.t([_.C(),_.N("design:type",Number)],zE.prototype,"pickerOffsetY",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"repositionOptional",void 0);_.t([_.C(),_.N("design:type",Object)],zE.prototype,"editOnlyMode",void 0);_.t([_.El("#picker-container"),_.N("design:type",HTMLElement)],zE.prototype,"JSC$13534_pickerContainer",void 0);
_.t([_.El("#picker"),_.N("design:type",HTMLElement)],zE.prototype,"picker",void 0);_.t([_.El("#preview-clipper"),_.N("design:type",HTMLElement)],zE.prototype,"previewClipper",void 0);_.t([_.El("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],zE.prototype,"JSC$13534_imageInBackground",void 0);_.t([_.El("#image-in-picker"),_.N("design:type",HTMLImageElement)],zE.prototype,"JSC$13534_imageInPicker",void 0);
_.t([_.El("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],zE.prototype,"JSC$13534_imageInPreviewClipper",void 0);_.t([_.x("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"altLabelForImage",null);_.t([_.x("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],zE.prototype,"pickerSize",null);
_.t([_.x("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],zE.prototype,"imageOrientationStyle",null);_.t([_.x("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],zE.prototype,"editButton",null);_.t([_.x("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],zE.prototype,"saveButton",null);_.t([_.x("instruction"),_.N("design:type",Object),_.N("design:paramtypes",[])],zE.prototype,"deleteButton",null);
_.t([_.x("instruction","editOnlyMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],zE.prototype,"cancelButton",null);_.t([_.x("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],zE.prototype,"cropOffsetTop",null);_.t([_.x("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],zE.prototype,"cropOffsetLeft",null);
_.t([_.x("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"pickerBackgroundStyle",null);_.t([_.x("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"pickerDisplayStyle",null);_.t([_.x("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"imageInPickerStyle",null);
_.t([_.x("cropOffsetLeft","cropOffsetTop","pickerSize"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"previewClipperStyle",null);_.t([_.Ul("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zE.prototype,"onImageChange",null);_.t([_.Ul("editOnlyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zE.prototype,"onEditOnlyModeUpdate",null);
_.t([_.x("showPreviewContainer"),_.N("design:type",String),_.N("design:paramtypes",[])],zE.prototype,"pickerModeStyle",null);zE=_.t([_.G({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],zE);
_.H(zE,"ytd-backstage-image-preview-renderer",function(){if(SaL!==void 0)return SaL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return SaL=W},{mode:1});var Zkw;var I9$={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 a91;var mBw;var CZ=function(){var W=_.n.apply(this,arguments)||this;W.a11yConfig=I9$;W.imageDisplayOffsetTop=0;W.imageDisplayOffsetLeft=0;W.pickerDisplayOffsetTop=0;W.pickerDisplayOffsetLeft=0;W.cropCoordinatesSaved=!1;W.previewSize=0;W.startPicker=!1;W.repositionOptional=!1;return W};
_.R(CZ,_.n);_.d=CZ.prototype;_.d.created=function(){_.zi.requestAvailability()};
_.d.ready=function(){};
_.d.onArrowKeysDown=function(W){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){W.detail.keyboardEvent.preventDefault();var O=0,b=0,T="";switch(W.detail.keyboardEvent.key){case "ArrowUp":DwQ(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?T=this.a11yConfig.reachBottomOfImage:O=this.imageHeight*.05*-1;break;case "ArrowDown":DwQ(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?T=this.a11yConfig.reachTopOfImage:
O=this.imageHeight*.05;break;case "ArrowLeft":DwQ(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?T=this.a11yConfig.reachRightOfImage:b=this.imageWidth*.05*-1;break;case "ArrowRight":DwQ(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?T=this.a11yConfig.reachLeftOfImage:b=this.imageWidth*.05}T&&_.EO(T)&&_.bX(this.hostElement,"iron-announce",{text:_.EO(T)});if(b||O)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+O)),W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),W=_.EO(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+b)),W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),W=_.EO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})),W&&_.bX(this.hostElement,"iron-announce",{text:W})}};
_.d.getPreviewPosition=function(W,O,b,T){return Math.round(100*(W+O*.5-b)/T)};
_.d.displayImage=function(){var W=this.JSC$13545_pickerContainer.getBoundingClientRect().width,O=this.JSC$13545_pickerContainer.getBoundingClientRect().height,b=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),T=this.JSC$13545_imageInBackground.naturalWidth,L=this.JSC$13545_imageInBackground.naturalHeight;this.displayScale=Math.max(b/T,b/L);this.imageWidth=T*this.displayScale;this.imageHeight=L*this.displayScale;this.pickerDisplayOffsetLeft=(W-b)/2;this.pickerDisplayOffsetTop=
(O-b)/2;this.imageDisplayOffsetLeft=L>T?this.pickerDisplayOffsetLeft:(W-this.imageWidth)/2;this.imageDisplayOffsetTop=T>L?this.pickerDisplayOffsetTop:(O-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.d.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13545_imageInBackground.src=this.imageData.toString(),this.JSC$13545_imageInPicker.src=this.imageData.toString(),this.JSC$13545_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.d.getSignedPosition=function(W,O,b){return O==="X"&&_.Cv("HTML_DIR")==="rtl"?b==="-"?W+"px":W*-1+"px":b==="-"?W*-1+"px":W+"px"};
_.d.pickerMove=function(W){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var O=this.pickerOffsetX-W.clientX,b=this.pickerOffsetY-W.clientY;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
b)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-O))}};
_.d.pickerMoveStart=function(W){this.startPicker=!0;this.pickerOffsetX=W.clientX;this.pickerOffsetY=W.clientY};
_.d.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.d.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.bX(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.d.getPreviewOffset=function(W,O,b,T){return O&&W&&b?(T==="X"&&_.Cv("HTML_DIR")==="rtl"?b/O*W:b/O*W*-1)+"px":"0px"};
_.d.getSimpleText=function(W){return W?_.NX(W):""};
_.d.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var W=this.cropOffsetTop/this.imageHeight,O=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,b=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,T=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Q(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.bX(this.hostElement,"yt-img-crop-coordinates-update",{top:W,right:O,bottom:b,left:T})}};
_.Jq.Object.defineProperties(CZ.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var W=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.EO(this.a11yConfig.imageVerticalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.EO(this.a11yConfig.verticalRepositionInstruction)}W=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.EO(this.a11yConfig.imageHorizontalPosition,{x_percent:""+W,y_percent:""+(100-W)})+"\n"+_.EO(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 W,O=(W=this.learnMore.runs[0])==null?void 0:W.navigationEndpoint,b;return((b=_.P(O,_.t8))==null?void 0:b.url)||void 0}}}});
CZ.prototype.onImageDataChange=CZ.prototype.onImageDataChange;_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"imageData",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"instruction",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"a11yConfig",void 0);_.t([_.C(),_.N("design:type",Number)],CZ.prototype,"imageWidth",void 0);_.t([_.C(),_.N("design:type",Number)],CZ.prototype,"imageHeight",void 0);_.t([_.C(),_.N("design:type",Number)],CZ.prototype,"displayScale",void 0);
_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"imageDisplayOffsetTop",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"imageDisplayOffsetLeft",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"pickerDisplayOffsetTop",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"pickerDisplayOffsetLeft",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"cropCoordinatesSaved",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"previewSize",void 0);
_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"startPicker",void 0);_.t([_.C(),_.N("design:type",Number)],CZ.prototype,"pickerOffsetX",void 0);_.t([_.C(),_.N("design:type",Number)],CZ.prototype,"pickerOffsetY",void 0);_.t([_.C(),_.N("design:type",Object)],CZ.prototype,"repositionOptional",void 0);_.t([_.El("#picker-container"),_.N("design:type",HTMLElement)],CZ.prototype,"JSC$13545_pickerContainer",void 0);_.t([_.El("#picker"),_.N("design:type",HTMLElement)],CZ.prototype,"picker",void 0);
_.t([_.El("#image-in-picker-background"),_.N("design:type",HTMLImageElement)],CZ.prototype,"JSC$13545_imageInBackground",void 0);_.t([_.El("#image-in-picker"),_.N("design:type",HTMLImageElement)],CZ.prototype,"JSC$13545_imageInPicker",void 0);_.t([_.El("#image-in-preview-clipper"),_.N("design:type",HTMLImageElement)],CZ.prototype,"JSC$13545_imageInPreviewClipper",void 0);_.t([_.El("#full-image-as-preview"),_.N("design:type",HTMLImageElement)],CZ.prototype,"imageAsPreview",void 0);
_.t([_.x("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"altLabelForImage",null);_.t([_.x("imageHeight","imageWidth"),_.N("design:type",Number),_.N("design:paramtypes",[])],CZ.prototype,"pickerSize",null);_.t([_.x("imageHeight","imageWidth"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"imageOrientationStyle",null);
_.t([_.x("instruction.previewInstruction.editButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"editButton",null);_.t([_.x("instruction.editInstruction.saveButtonLabel"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"saveButton",null);_.t([_.x("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.N("design:type",Number),_.N("design:paramtypes",[])],CZ.prototype,"cropOffsetTop",null);
_.t([_.x("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.N("design:type",Number),_.N("design:paramtypes",[])],CZ.prototype,"cropOffsetLeft",null);_.t([_.x("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"pickerBackgroundStyle",null);_.t([_.x("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"pickerDisplayStyle",null);
_.t([_.x("cropOffsetLeft","cropOffsetTop"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"imageInPickerStyle",null);_.t([_.x("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"previewClipperStyle",null);_.t([_.m5("imageData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],CZ.prototype,"onImageDataChange",null);
_.t([_.x("cropCoordinatesSaved"),_.N("design:type",String),_.N("design:paramtypes",[])],CZ.prototype,"pickerModeStyle",null);_.t([_.x("instruction.editInstruction.learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"learnMore",null);_.t([_.x("learnMore"),_.N("design:type",Object),_.N("design:paramtypes",[])],CZ.prototype,"learnMoreUrl",null);CZ=_.t([_.sl({is:"yt-img-crop-picker",disableElementRegistration:!0})],CZ);
_.H(CZ,"yt-img-crop-picker",function(){if(mBw===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;a91===void 0&&(a91=document.createElement("template"));var T=a91;b.call(O,T.content.cloneNode(!0),W.content.firstChild);mBw=W}W=mBw;return W},{mode:2});var td=function(){var W=_.n.apply(this,arguments)||this;W.errorMessage="";W.hasPreview=!1;W.isBackstagePost=!1;W.dismissButtonOverrides={size:"XS"};return W};
_.R(td,_.n);_.d=td.prototype;_.d.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"}}}};
_.d.detached=function(){this.removeOverlay()};
_.d.setPreview=function(W){_.Q(this.hostElement).querySelector("#preview-picker").imageData=W;this.hasPreview=!0;_.bX(this.hostElement,"yt-backstage-image-select-preview")};
_.d.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var W=_.Q(this.hostElement).querySelector("#dropzone");W.classList.remove("dragover");W.classList.remove("error");_.bX(this.hostElement,"yt-backstage-image-select-cancel")};
_.d.setupOverlay=function(){var W=this.imageUploadEndpoint;this.removeOverlay();if(W&&W.imageValidationInfo){var O=_.Q(this.hostElement).querySelector("#dropzone"),b=_.Q(this.hostElement).querySelector("#select");this.overlay=new t6(W.uploadUrl,W.channelId,W.imageValidationInfo.maxFileSizeMb,W.imageValidationInfo.allowedMaxAspectRatio,O,b,!0);_.Rx(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Rx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Rx(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Rx(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Rx(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.d.removeOverlay=function(){this.overlay&&(_.YH(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.YH(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.YH(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.YH(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.YH(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.d.onDragOver=function(W){var O=_.Q(this.hostElement).querySelector("#dropzone");_.L2(O,"dragover",W.value)};
_.d.onPreview=function(W){this.setPreview(W.value)};
_.d.onImageError=function(W){if(W.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var O;W=(O=this.data)==null?void 0:O.fileSizeError}else if(W.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var b;W=(b=this.data)==null?void 0:b.invalidError}else if(W.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var T;W=(T=this.data)==null?void 0:T.invalidAspectRatioError}else return;this.errorMessage=_.NX(W);_.Q(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.d.onImageAlert=function(W){this.onImageError(W)};
_.d.uploadPromise=function(){var W=this,O=this.overlay&&this.overlay.uploadPromise();if(O)return O.catch(function(){throw Error(W.data?_.NX(W.data.uploadFailureError):"");})};
_.Jq.Object.defineProperties(td.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var W,O;if((W=this.data)==null?0:(O=W.icon)==null?0:O.iconType)return _.Z6(this.data.icon.iconType)}}});
td.prototype.setupOverlay=td.prototype.setupOverlay;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],td.prototype,"rendererStamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],td.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],td.prototype,"imageUploadEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],td.prototype,"errorMessage",void 0);
_.t([_.C(),_.N("design:type",t6)],td.prototype,"overlay",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],td.prototype,"hasPreview",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],td.prototype,"isBackstagePost",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],td.prototype,"selectionCancel",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],td.prototype,"previewCancel",null);
_.t([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],td.prototype,"icon",null);_.t([_.C(),_.N("design:type",Object)],td.prototype,"dismissButtonOverrides",void 0);_.t([_.m5("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],td.prototype,"setupOverlay",null);td=_.t([_.G({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],td);
_.H(td,"ytd-backstage-image-select-renderer",function(){if(Zkw!==void 0)return Zkw;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Zkw=W},{mode:1});var Ya5;var EcL;var $R=function(){var W=_.n.apply(this,arguments)||this;W.selected=!1;return W};
_.R($R,_.n);_.d=$R.prototype;_.d.computeSelected=function(W){return W==null?void 0:W.selected};
_.d.computeTransform=function(W,O,b){var T,L,h=(L=(T=this.imageContainer)==null?void 0:T.getBoundingClientRect())!=null?L:{width:0,height:0};T=Math.max(h.width/O,h.height/b);b=b*T*W.top;return"translateX("+this.getSignedPosition(O*T*W.left,"X","-")+") translateY("+this.getSignedPosition(b,"Y","-")+")"};
_.d.getSignedPosition=function(W,O,b){return O==="X"&&_.Cv("HTML_DIR")==="rtl"?b==="-"?W+"px":W*-1+"px":b==="-"?W*-1+"px":W+"px"};
_.d.onClick=function(){var W;_.bX(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(W=this.data)==null?void 0:W.image)};
_.d.onKeyPress=function(W){if(W.keyCode===13)this.onClick()};
_.Jq.Object.defineProperties($R.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.image)==null?void 0:O.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.image){var O;W=(O=this.data)==null?void 0:O.image;return W.previewCoordinates.top!==0||W.previewCoordinates.left!==0?(O=this.computeTransform(W.previewCoordinates,W.naturalWidth,W.naturalHeight),W.naturalHeight>=W.naturalWidth?"width:inherit;transform:"+O+";":"height:inherit;transform:"+O+";"):W.naturalHeight>=W.naturalWidth?"width:inherit;":"height:inherit;"}}}});
$R.prototype.onKeyPress=$R.prototype.onKeyPress;_.t([_.El(".image-container"),_.N("design:type",HTMLElement)],$R.prototype,"imageContainer",void 0);_.t([_.C(),_.N("design:type",Object)],$R.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.N("design:type",Object)],$R.prototype,"selected",void 0);_.t([_.x("data.image"),_.N("design:type",Object),_.N("design:paramtypes",[])],$R.prototype,"thumbnailUrl",null);
_.t([_.x("data.image","data.image.previewCoordinates"),_.N("design:type",Object),_.N("design:paramtypes",[])],$R.prototype,"thumbnailStyle",null);_.t([_.ai("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$R.prototype,"onKeyPress",null);$R=_.t([_.G({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],$R);
_.H($R,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(EcL!==void 0)return EcL;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return EcL=W},{mode:2});var Ve=function(W,O,b){b=b===void 0?!1:b;_.ER.call(this);var T=this;this.dropZoneOverlay=new h6(W);this.selectOverlay=b?new SX(O,"multiple_file",["image/*"]):new SX(O,"single_file",["image/*"]);this.handler=new _.be(this);_.a8(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(O,"click",function(){T.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.R(Ve,_.ER);Ve.prototype.onChange=function(W){var O;(O=W.files)!=null&&O.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:W.files}))};var N6=function(){var W=_.n.apply(this,arguments)||this;W.addImageErrorMessage="";W.errorMessage="";W.images=[];W.selectedImageIndex=0;W.modern=_.e("web_modern_buttons");W.maxNumImagesPerPost=_.Lu("max_num_images_per_post_web_ui");W.JSC$13560_imageId=0;return W};
_.R(N6,_.n);_.d=N6.prototype;_.d.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.bX(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.d.observeDragToReorder=function(){var W=this;if(this.showImagesPreview){var O,b=H17(_.uh.getInstance(),(O=this.data)==null?void 0:O.dragToReorderTooltip);_.sF.addLowPriorityJob(function(){_.Sx(W.hostElement,b,W.thumbnailDragDropArea)})}};
_.d.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}}};
_.d.computeThumbnail=function(W){return(W==null?void 0:W.localImageSrc)||void 0};
_.d.onRendererstamperFinished=function(){_.Xuq(this.ytReorderableBehavior,_.Q(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Q(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.d.handleDrop=function(W){var O=W.currDragItem;if(O!=null&&O.data){W=this.images[this.selectedImageIndex];var b=O.data.image,T=this.images.indexOf(b)||0;O=_.$T(O.parentNode.children,O);this.images.splice(T,1);this.images.splice(O,0,b);this.images=[].concat(_.PG(this.images));this.selectedImageIndex=this.images.indexOf(W)}};
_.d.setUpImagePicker=function(){var W=this.imageUploadEndpoint;W&&W.imageValidationInfo&&(this.uploadManager=new D7(W.uploadUrl,W.channelId),this.initialPicker||(this.initialPicker=new Ve(this.dropzone,this.selectLink,!0),_.Rx(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Ve(this.addImageButtonContainer,this.addImageSelectButton),_.Rx(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Rx(this.JSC$13560_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Rx(this.JSC$13560_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Rx(_.Q(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.d.detached=function(){this.initialPicker&&(_.YH(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.YH(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.d.onInitialSelectImages=function(W){var O=this;return _.I(function(b){return _.Y(b,O.onSelectImages(W,!1),0)})};
_.d.onAddImage=function(W){var O=this;return _.I(function(b){return _.Y(b,O.onSelectImages(W,!0),0)})};
_.d.onSelectImages=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y;return _.I(function(d8){switch(d8.nextAddress){case 1:O?b.addImageErrorMessage="":(b.images=[],b.errorMessage="");T=W.detail;L=b.validateImages([].concat(_.PG(T)));if(L!=="")return O?b.addImageErrorMessage=L:b.errorMessage=L,d8.return();h=[].concat(_.PG(T)).map(function(pE){return(new G3(b.maxAspectRatio,!1,!0)).transform(pE)});
return _.Y(d8,Promise.allSettled(h),2);case 2:Z=d8.yieldResult,a=_.S(Z.entries()),m=a.next();case 3:if(m.done){d8.jumpTo(5);break}w=m.value;A=_.S(w);X=A.next().value;l=A.next().value;p=X;K=l;if(K.status!=="fulfilled"){q=r=k=void 0;O?b.addImageErrorMessage=_.NX((k=b.data)==null?void 0:k.invalidError):b.errorMessage=b.errorMessage===""?_.NX((r=b.data)==null?void 0:r.invalidError):_.NX((q=b.data)==null?void 0:q.multiFileError);d8.jumpTo(4);break}f=K.value;f.cropped&&_.bX(b.hostElement,"yt-backstage-multi-image-cropped");
if(f.invalidAspectRatio){jQ=V=M=void 0;O?b.addImageErrorMessage=_.NX((M=b.data)==null?void 0:M.invalidAspectRatioError):b.errorMessage=b.errorMessage===""?_.NX((V=b.data)==null?void 0:V.invalidAspectRatioError):_.NX((jQ=b.data)==null?void 0:jQ.multiFileError);d8.jumpTo(4);break}return _.Y(d8,BXE(b.JSC$13560_imageId,W.detail[p],f.transformedData),8);case 8:y=d8.yieldResult,b.images.push(y),b.JSC$13560_imageId++;case 4:m=a.next();d8.jumpTo(3);break;case 5:if(b.errorMessage!==""||b.addImageErrorMessage!==
"")return d8.return();O?ikN(b.uploadManager,[b.images[b.images.length-1]]):ikN(b.uploadManager,b.images);b.images=[].concat(_.PG(b.images));b.selectedImageIndex=O?Math.max(b.images.length-1,0):0;_.bX(b.hostElement,"yt-backstage-multi-image-select");_.aD(d8)}})};
_.d.onThumbnailClick=function(W){if(W=W.event_.detail)this.selectedImageIndex=this.images.indexOf(W)};
_.d.validateImages=function(W){if(W.length>this.maxNumImagesPerPost){var O;return _.NX((O=this.data)==null?void 0:O.multiImageExceedMaxImageCountError)}var b=1048576*this.maxFileSizeMb;W=W.filter(function(h){return h.size>b}).length;
if(W===0)return"";var T,L;W=W>1?(T=this.data)==null?void 0:T.multiFileError:(L=this.data)==null?void 0:L.fileSizeError;return _.NX(W)};
_.d.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.PG(this.images));this.selectedImageIndex=0};
_.d.repositionImage=function(W){this.images[this.selectedImageIndex].previewCoordinates=W.event_.detail;this.images=[].concat(_.PG(this.images))};
_.d.getAllUploadStatuses=function(){var W=this,O,b,T,L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.uploadManager.getAllUploadStatuses(),2);O=h.yieldResult;b=_.S(O);for(T=b.next();!T.done;T=b.next())if(L=T.value,L.encryptedBlobId===void 0)return h.return(bk9(W.uploadManager));return h.return(O)})};
_.d.hasImages=function(){return this.images.length>0};
_.d.cancel=function(){for(var W=this.uploadManager,O=_.S(W.imagesUploadData),b=O.next();!b.done;b=O.next())W.cancel(b.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.bX(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Jq.Object.defineProperties(N6.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.imageUploadEndpoint)==null?void 0:(O=W.imageValidationInfo)==null?void 0:O.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.imageUploadEndpoint)==null?void 0:(O=W.imageValidationInfo)==null?void 0:O.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var W,O;if((W=this.data)==null?0:(O=W.icon)==null?0:O.iconType)return _.Z6(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.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 W=this;return(this.images||[]).map(function(O,b){return{renderer:{image:O,selected:b===W.selectedImageIndex}}})}}});
N6.prototype.setUpImagePicker=N6.prototype.setUpImagePicker;N6.prototype.onRendererstamperFinished=N6.prototype.onRendererstamperFinished;N6.prototype.observeDragToReorder=N6.prototype.observeDragToReorder;N6.prototype.observeAddImageError=N6.prototype.observeAddImageError;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],N6.prototype,"rendererStamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],N6.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.URN),_.N("design:type",Object)],N6.prototype,"ytReorderableBehavior",void 0);_.t([_.El("#dropzone"),_.N("design:type",HTMLElement)],N6.prototype,"dropzone",void 0);_.t([_.El("#select-link"),_.N("design:type",HTMLElement)],N6.prototype,"selectLink",void 0);_.t([_.El("#thumbnail-drag-drop-area"),_.N("design:type",HTMLElement)],N6.prototype,"thumbnailDragDropArea",void 0);_.t([_.El("#add-image-button-container"),_.N("design:type",HTMLElement)],N6.prototype,"addImageButtonContainer",void 0);
_.t([_.El("#add-image-button"),_.N("design:type",HTMLElement)],N6.prototype,"addImageSelectButton",void 0);_.t([_.El("#image-preview-container"),_.N("design:type",Object)],N6.prototype,"JSC$13560_imagePreviewContainer",void 0);_.t([_.C(),_.N("design:type",Object)],N6.prototype,"addImageErrorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],N6.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],N6.prototype,"errorMessage",void 0);
_.t([_.C(),_.N("design:type",Object)],N6.prototype,"imageUploadEndpoint",void 0);_.t([_.C(),_.N("design:type",Array)],N6.prototype,"images",void 0);_.t([_.C(),_.N("design:type",Ve)],N6.prototype,"initialPicker",void 0);_.t([_.C(),_.N("design:type",Ve)],N6.prototype,"addImagePicker",void 0);_.t([_.C(),_.N("design:type",D7)],N6.prototype,"uploadManager",void 0);_.t([_.C(),_.N("design:type",Object)],N6.prototype,"selectedImageIndex",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N6.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N6.prototype,"maxNumImagesPerPost",void 0);_.t([_.x("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],N6.prototype,"maxAspectRatio",null);_.t([_.x("imageUploadEndpoint"),_.N("design:type",Number),_.N("design:paramtypes",[])],N6.prototype,"maxFileSizeMb",null);
_.t([_.x("data.icon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"dropIcon",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"selectionCancel",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"previewCancel",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"dataForAddImageButton",null);
_.t([_.x("errorMessage"),_.N("design:type",String),_.N("design:paramtypes",[])],N6.prototype,"dropzoneClass",null);_.t([_.x("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],N6.prototype,"showImagesPreview",null);_.t([_.x("images"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],N6.prototype,"containMaxImages",null);_.t([_.m5("addImageErrorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N6.prototype,"observeAddImageError",null);
_.t([_.m5("showImagesPreview"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N6.prototype,"observeDragToReorder",null);_.t([_.x("images","selectedImageIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],N6.prototype,"selectedImageData",null);_.t([_.x("images","selectedImageIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],N6.prototype,"thumbnailRenderers",null);
_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N6.prototype,"onRendererstamperFinished",null);_.t([_.m5("imageUploadEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N6.prototype,"setUpImagePicker",null);N6=_.t([_.G({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],N6);
_.H(N6,"ytd-backstage-multi-image-select-renderer",function(){if(Ya5!==void 0)return Ya5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ya5=W},{mode:1});var wFN;var AmH;var XFH;var M6=function(){var W=_.n.apply(this,arguments)||this;W.boundCaptureFocus=function(O){W.onCaptureFocus(O)};
return W};
_.R(M6,_.n);_.d=M6.prototype;_.d.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.d.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.d.onCaptureFocus=function(W){_.Nd(W).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.d.getIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.d.onSelect=function(){var W;if((W=this.data)==null?0:W.onSelectCommand)if(_.e("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var O;((O=_.P(this.data.onSelectCommand.commandMetadata,_.F9))==null?0:O.url)?_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.iq().resolve(_.bq).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Jq.Object.defineProperties(M6.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.NX(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}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],M6.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],M6.prototype,"data",void 0);_.t([_.El("#item"),_.N("design:type",HTMLElement)],M6.prototype,"item",void 0);_.t([_.x("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],M6.prototype,"label",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],M6.prototype,"value",null);M6=_.t([_.G({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],M6);
_.H(M6,"ytd-privacy-dropdown-item-renderer",function(){if(XFH!==void 0)return XFH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return XFH=W},{mode:1});var uV=function(){var W=_.n.apply(this,arguments)||this;W.value="";W.label="";W.disabled=!1;return W};
_.R(uV,_.n);_.d=uV.prototype;_.d.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"}}}};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.d.dataChanged=function(){this.reset()};
_.d.valueChanged=function(){var W;if(this.value&&(W=this.data)!=null&&W.entries){W=_.S(this.data.entries);for(var O=W.next();!O.done;O=W.next())if((O=this.getRendererForEntry(O.value))&&this.getItemRendererValue(O)===this.value){this.label=this.ytComponentBehavior.getSimpleString(O.label);break}}};
_.d.setInitialLabel=function(){if(this.data&&this.data.entries)for(var W=_.S(this.data.entries),O=W.next();!O.done;O=W.next())if(O=this.getRendererForEntry(O.value)){if(O.isSelected){this.label=this.ytComponentBehavior.getSimpleString(O.label);break}this.data.label&&(this.label=this.data.label)}};
_.d.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var W=_.S(this.data.entries),O=W.next();!O.done;O=W.next()){O=this.getRendererForEntry(O.value);var b=void 0;if((b=O)==null?0:b.isSelected)return this.getItemRendererValue(O)||-1}return-1};
_.d.getItemRendererValue=function(W){return"stringValue"in W||"int32Value"in W?W.stringValue||W.int32Value||null:null};
_.d.getRendererForEntry=function(W){return W.dropdownItemRenderer||W.privacyDropdownItemRenderer||W.navigationDropdownItemRenderer||null};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("value-changed",this.value))};
_.d.updateValueFromBinding=function(W){this.value=W.detail.value};
uV.prototype.valueChangedForBinding=uV.prototype.valueChangedForBinding;uV.prototype.valueChanged=uV.prototype.valueChanged;uV.prototype.dataChanged=uV.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],uV.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],uV.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],uV.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],uV.prototype,"value",void 0);_.t([_.C(),_.N("design:type",Object)],uV.prototype,"label",void 0);_.t([_.El("#entries"),_.N("design:type",Object)],uV.prototype,"entries",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],uV.prototype,"disabled",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uV.prototype,"dataChanged",null);
_.t([_.Ul("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uV.prototype,"valueChanged",null);_.t([_.m5("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uV.prototype,"valueChangedForBinding",null);uV=_.t([_.G({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],uV);
_.H(uV,"ytd-flat-dropdown-renderer",function(){if(AmH!==void 0)return AmH;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return AmH=W},{mode:1});var UBw;var Jd=function(){var W=_.n.apply(this,arguments)||this;W.quizOptions=[];W.explanationPlaceholderText="";W.optionPlaceholderText="";W.correctAnswerIndex=-1;W.isMarkAnswerTooltipShown=!1;W.timer=0;return W};
_.R(Jd,_.n);_.d=Jd.prototype;_.d.dataChanged=function(){this.optionPlaceholderText=_.NX(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.NX(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.d.onMarkCorrectAnswer=function(W){var O,b=((O=this.quizOptions[this.correctAnswerIndex])==null?void 0:O.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[W.model.index]=Object.assign({},this.quizOptions[W.model.index],{explanationText:b,isCorrect:!0});this.correctAnswerIndex=W.model.index;this.quizOptions=[].concat(_.PG(this.quizOptions))};
_.d.updatePlaceholderTexts=function(){for(var W=!1,O=[],b=0;b<this.quizOptions.length;b++){var T=this.optionPlaceholderText+" "+(b+1),L=void 0;((L=this.quizOptions[b])==null?void 0:L.placeholderText)!==T?(W=!0,O.push(Object.assign({},this.quizOptions[b],{placeholderText:T}))):O.push(this.quizOptions[b])}W&&(this.quizOptions=O);this.isValid()?_.bX(this.hostElement,"yt-commentbox-post-enable"):_.bX(this.hostElement,"yt-commentbox-post-disable")};
_.d.getSimpleString=function(W){return _.NX(W)};
_.d.createQuizOptions=function(W){var O=[],b;W=(b=W==null?void 0:W.minQuizOptions)!=null?b:0;for(b=0;b<W;b++)O.push(this.createQuizOption());return O};
_.d.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.PG(this.quizOptions),[this.createQuizOption()]))};
_.d.onInput=function(){this.quizOptions=[].concat(_.PG(this.quizOptions))};
_.d.onExplanationInput=function(){_.bX(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.d.onRemoveQuizOption=function(W){this.quizOptions.splice(W.model.index,1);W.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:W.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.PG(this.quizOptions));this.quizOptions.length===0&&_.bX(this.hostElement,"yt-quiz-attachment-dismiss")};
_.d.updateHintRenderer=function(){var W=this;clearTimeout(this.timer);this.timer=setTimeout(function(){W.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.d.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var W=0,O=0,b=_.S(this.quizOptions),T=b.next();!T.done;T=b.next()){T=T.value;var L=void 0;if(((L=T.optionText)==null?void 0:L.trim())!==""||T.isCorrect){T.isCorrect&&O++;L=void 0;if(this.hasCustomOptionText&&((L=T.optionText)==null?void 0:L.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;W++}}return W>=
Number(this.editorInfo.minQuizOptions)&&O===1};
_.d.getPostCreateOptions=function(){for(var W=[],O=_.S(this.quizOptions),b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;((T=b.optionText)==null?void 0:T.trim())!==""&&W.push({pollOption:{text:b.optionText,explanation:b.explanationText},isCorrect:b.isCorrect})}return W};
_.d.getExplanationText=function(){var W;return((W=this.quizOptions[this.correctAnswerIndex])==null?void 0:W.explanationText)||""};
_.d.maybeDisplayMarkAnswerEduToolTip=function(){var W,O,b,T,L,h,Z;this.shouldShowMarkAnswerTooltip()&&((W=this.editorInfo)==null?0:(O=W.markAnswerButton)==null?0:(b=O.buttonRenderer)==null?0:(T=b.hint)==null?0:(L=T.hintRenderer)==null?0:(h=L.content)==null?0:(Z=h.bubbleHintRenderer)==null?0:Z.text)&&(_.uh.getInstance(),W=Jp(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,(W==null?void 0:W.length)>0&&this.optionSelectors&&_.mw(W[0],this.optionSelectors[0]))};
_.d.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var W=0,O=_.S(this.quizOptions),b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;((T=b.optionText)==null?void 0:T.trim())!==""&&W++;if(b.isCorrect)return!1}return W<2?!1:!0};
_.d.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.d.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.d.updateOptionTextFromBinding=function(W){if(W.target){var O=Array.from(_.Q(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(W.target);if(O>=0){var b;this.quizOptions[O].optionText=(b=W.detail.value)!=null?b:""}}};
_.Jq.Object.defineProperties(Jd.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.editorInfo)==null?void 0:(O=W.addOptionButton)==null?void 0:O.buttonRenderer;b&&(b.style="STYLE_SUGGESTIVE",b.size="SIZE_SMALL",b.isDisabled=!this.isAllowedToAddOption);return(b==null?0:b.text)?b:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var W,O;return this.quizOptions.length<((O=(W=this.editorInfo)==null?void 0:W.maxQuizOptions)!=null?O:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(W){var O;return(O=W.optionText)==null?void 0:O.trim()})}}});
Jd.prototype.updatePlaceholderTexts=Jd.prototype.updatePlaceholderTexts;Jd.prototype.dataChanged=Jd.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],Jd.prototype,"editorInfo",void 0);_.t([_.C(),_.N("design:type",Array)],Jd.prototype,"quizOptions",void 0);_.t([_.C(),_.N("design:type",Object)],Jd.prototype,"explanationPlaceholderText",void 0);_.t([_.wi(".option-selector-button"),_.N("design:type",Array)],Jd.prototype,"optionSelectors",void 0);
_.t([_.Ul("editorInfo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jd.prototype,"dataChanged",null);_.t([_.x("editorInfo","isAllowedToAddOption","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jd.prototype,"addAnswerButton",null);_.t([_.x("editorInfo","quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jd.prototype,"isAllowedToAddOption",null);
_.t([_.Ul("quizOptions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jd.prototype,"updatePlaceholderTexts",null);_.t([_.x("quizOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jd.prototype,"hasCustomOptionText",null);Jd=_.t([_.G({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Jd);
_.H(Jd,"ytd-backstage-quiz-editor-renderer",function(){if(UBw!==void 0)return UBw;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UBw=W},{mode:2});var l9z;var edn=(Pt.FIRSTDAYOFWEEK+1)%7;var P2H;var pF9=[],Rdw=0,K25=0;Rdw=0;K25=24;if(.25*(K25-Rdw)<0)P2H=[];else{for(var vcn=Rdw;vcn<K25;vcn+=.25)pF9.push(vcn);P2H=pF9}var gcH=P2H.map(function(W){W=W*60*60;return{secondsSinceMidnight:W,text:(new tH(7)).format(new Date(0,0,0,0,0,W))}});var oc5;var c7=function(){var W=_.n.apply(this,arguments)||this;W.skipNextOpenDialog=!1;W.errorMessage="";return W};
_.R(c7,_.n);_.d=c7.prototype;_.d.attached=function(){var W=this,O=new MutationObserver(function(){W.JSC$13603_calendarMain.scrollHeight>0&&(O.disconnect(),W.calendarConfig&&W.calendarConfig.selectedDate&&W.scrollToDate())});
O.observe(this.JSC$13603_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){O.disconnect()},1E3)};
_.d.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.d.onDateTextChange=function(){if(this.calendarConfig){var W=this.validateDateText();W.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(W.details)):this.textbox.setAttribute("invalid","")}};
_.d.handleDayClick=function(W){W.model.day.date&&(this.commitDate(W.model.day.date),this.dialog.close())};
_.d.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var W=t8O(this.calendarConfig.selectedDate,this.renderData);W!==void 0&&this.JSC$13603_calendarMain.scrollToIndex(W)}};
_.d.scrollToNextMonth=function(){this.JSC$13603_calendarMain.scrollToIndex(this.JSC$13603_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$13603_calendarMain.firstVisibleIndex===0&&this.JSC$13603_calendarMain.scrollTo(0,0);this.JSC$13603_calendarMain.scrollToIndex(this.JSC$13603_calendarMain.firstVisibleIndex-1)};
_.d.onFormSubmit=function(W){W.preventDefault();this.calendarConfig&&(W=this.validateDateText(),W.isValid&&(this.commitDate(W.details),this.dialog.close()))};
_.d.onEscOrClickingOutside=function(W){W=W.detail.path&&!!W.detail.path.length&&W.detail.path[0];if(W.classList.contains("ytd-calendar-date-picker")){W===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var O=0;O<this.dropdownButton.children.length;O++)this.dropdownButton.children[O]===W&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}W=this.textbox.value!==this.dateText;O=this.validateDateText();W&&O.isValid&&this.commitDate(O.details);this.dialog.close();this.textbox.value=
this.dateText};
_.d.commitDate=function(W){this.calendarConfig&&(this.set("calendarConfig.selectedDate",W),_.bX(this.hostElement,"ytd-calendar-date-selected",W))};
_.d.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var W=this.textbox.value;var O=new Date;W=(new Sa8(2)).parse(W,O,{validate:!0})===W.length?G_8(O):void 0;if(!W)return this.errorMessage=_.EO("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};O=this.calendarConfig.start;var b=this.calendarConfig.end;if(z28(W,O))return this.errorMessage=_.EO("ENTER_DATE_OR_LATER",{allowed_date:fTE(O)}),{isValid:!1,details:void 0};if(z28(b,W))return this.errorMessage=
_.EO("ENTER_DATE_OR_EARLIER",{allowed_date:fTE(b)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:W}};
_.Jq.Object.defineProperties(c7.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?fTE(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var W=this.calendarConfig,O=[],b=0;b<7;b++)O.push(Pt.NARROWWEEKDAYS[(b+edn)%7]);b=[];for(var T=new Date(W.start.year,W.start.month);T.getFullYear()<W.end.year||T.getFullYear()===W.end.year&&T.getMonth()<=W.end.month;){var L=b,h=L.push,Z=T.getFullYear(),a=T.getMonth(),m=W,w=void 0,A=[],X=Object.freeze({extraCssClass:"invisible",debugClass:""}),l=new Date(Z,a),p=G_8(l);l=l.getDay();for(var K=G_8(new Date);p.month===
a;){l!==edn&&w||(w=Array.from({length:7}).fill(X),A.push(w));var k={date:{year:Z,month:a,day:p.day},extraCssClass:"",debugClass:""};m.selectedDate&&k.date&&xwT(k.date,m.selectedDate)&&(k.extraCssClass+=" selected");if(z28(p,m.start)||z28(m.end,p))k.extraCssClass+=" disabled";xwT(p,K)&&(k.extraCssClass+=" today");k.extraCssClass=k.extraCssClass.trim();w[(l-edn+7)%7]=k;p=qfX(p);l=(l+1)%7}h.call(L,{weeks:A,monthLabel:Pt.SHORTMONTHS[a]+" "+Z,year:Z,month:a,monthLabelExtraCssClass:A[0][2]===X?"shift-down-label":
""});T.setMonth(T.getMonth()+1)}return{months:b,daysOfWeekLabel:O}}}}});
c7.prototype.onEscOrClickingOutside=c7.prototype.onEscOrClickingOutside;c7.prototype.scrollToDate=c7.prototype.scrollToDate;_.t([_.C(),_.N("design:type",Object)],c7.prototype,"calendarConfig",void 0);_.t([_.C(),_.N("design:type",Object)],c7.prototype,"skipNextOpenDialog",void 0);_.t([_.C(),_.N("design:type",Object)],c7.prototype,"errorMessage",void 0);_.t([_.El("#textbox"),_.N("design:type",HTMLInputElement)],c7.prototype,"textbox",void 0);
_.t([_.El("#calendar-dialog"),_.N("design:type",Object)],c7.prototype,"dialog",void 0);_.t([_.El("#calendar-main"),_.N("design:type",Object)],c7.prototype,"JSC$13603_calendarMain",void 0);_.t([_.El("#date-picker"),_.N("design:type",HTMLElement)],c7.prototype,"dropdownButton",void 0);_.t([_.x("calendarConfig.selectedDate"),_.N("design:type",String),_.N("design:paramtypes",[])],c7.prototype,"dateText",null);
_.t([_.x("calendarConfig","calendarConfig.selectedDate"),_.N("design:type",Object),_.N("design:paramtypes",[])],c7.prototype,"renderData",null);_.t([_.m5("renderData","calendarConfig.selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c7.prototype,"scrollToDate",null);_.t([_.ai("iron-overlay-canceled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],c7.prototype,"onEscOrClickingOutside",null);
c7=_.t([_.sl({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],c7);
_.H(c7,"ytd-calendar-date-picker",function(){if(oc5!==void 0)return oc5;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return oc5=W},{mode:2});var Qp5=_.EO("UTC_OFFSET_FORMAT",{utc_offset:(new tH("Z")).format(new Date)}),kuf=(new Date).getTimezoneOffset()*-60,sp5=new Date,BJH,rmL=HS(sp5.getTimezoneOffset());BJH=y31(Oez(rmL,sp5));var DBz=_.EO("LOCAL_TIME_GMT_LABEL",{gmt_text:BJH.replace("+0","+").replace("-0","-").replace(":00","")}),Fn=function(){var W=_.n.apply(this,arguments)||this;W.selectedTimeIndex=0;W.selectedTimezoneIndex=0;W.timeOfDayOptions=gcH;return W};
_.R(Fn,_.n);_.d=Fn.prototype;_.d.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var W=nxP();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=W,this.selectedTimeIndex=0;else{var O=HR8(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},W,{selectedDate:O.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(b){return b.secondsSinceMidnight===O.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.d.onDatePicked=function(W){this.selectedDate=W.detail};
_.d.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.bX(this.hostElement,"ytd-date-time-selection-cancelled")};
_.d.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var W=this.selectedDate;W=new Date(W.year,W.month,W.day);_.bX(this.hostElement,"ytd-date-time-selection-update",Math.floor(W.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+W.getTimezoneOffset()*60))}};
_.d.getTimezoneFormat=function(W){return W.localizedDisplayText?W.localizedDisplayText:_.EO("TIMEZONE_FORMAT",{utc_offset_text:""+W.localizedUtcOffset,city_name:""+W.localizedName})};
_.d.updateSelectedTimeIndexFromBinding=function(W){this.selectedTimeIndex=W.detail.value};
_.d.updateSelectedTimezoneIndexFromBinding=function(W){this.selectedTimezoneIndex=W.detail.value};
_.Jq.Object.defineProperties(Fn.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var W=this.data.timezoneOptions;var O={name:"Etc/Unknown",localizedName:_.EO("LOCAL_TIME_LABEL"),localizedUtcOffset:Qp5,utcOffsetSec:""+kuf,localizedDisplayText:DBz};W?W.length&&W[0].name!==O.name&&(W[0].localizedDisplayText||(O.localizedDisplayText=""),W.unshift(O)):W=[O];return W}}},
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]}}});
Fn.prototype.onDateTimeTimezoneChange=Fn.prototype.onDateTimeTimezoneChange;Fn.prototype.onDatePicked=Fn.prototype.onDatePicked;Fn.prototype.updateDefaultSelectedValue=Fn.prototype.updateDefaultSelectedValue;_.t([_.C(),_.N("design:type",Object)],Fn.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Fn.prototype,"calendarConfig",void 0);_.t([_.C(),_.N("design:type",Object)],Fn.prototype,"selectedDate",void 0);_.t([_.C(),_.N("design:type",Object)],Fn.prototype,"selectedTimeIndex",void 0);
_.t([_.C(),_.N("design:type",Object)],Fn.prototype,"selectedTimezoneIndex",void 0);_.t([_.El("#time-listbox"),_.N("design:type",Object)],Fn.prototype,"timeListBox",void 0);_.t([_.El("#timezone-listbox"),_.N("design:type",Object)],Fn.prototype,"timezoneListBox",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Fn.prototype,"rendererStamperBehavior",void 0);_.t([_.x("data.timezoneOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fn.prototype,"timeZones",null);
_.t([_.Ul("data","timeZones"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"updateDefaultSelectedValue",null);_.t([_.x("selectedTimezoneIndex","timeZones"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fn.prototype,"selectedTimezone",null);_.t([_.x("selectedTimeIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fn.prototype,"selectedTime",null);
_.t([_.ai("ytd-calendar-date-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Fn.prototype,"onDatePicked",null);_.t([_.m5("selectedTimezone","selectedTime","selectedDate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fn.prototype,"onDateTimeTimezoneChange",null);Fn=_.t([_.G({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Fn);
_.H(Fn,"ytd-date-time-picker-renderer",function(){if(l9z!==void 0)return l9z;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return l9z=W},{mode:1});var xBU;var ye=function(){var W=_.n.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.dismissTapHandler()};
W.dismissButtonOverrides={size:"XS"};return W};
_.R(ye,_.n);ye.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}}}}}};
ye.prototype.dismissTapHandler=function(){_.bX(this.hostElement,"yt-backstage-attachment-dismissed")};
ye.prototype.computeAttachmentType=function(W){return W?W.backstageImageRenderer?"image":W.videoRenderer?"video":"none":"none"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ye.prototype,"attachmentPreview",void 0);_.t([_.C(),_.N("design:type",Object)],ye.prototype,"dismissButton",void 0);_.t([_.C(),_.N("design:type",Object)],ye.prototype,"boundOnTapDismissButton",void 0);
_.t([_.C(),_.N("design:type",Object)],ye.prototype,"dismissButtonOverrides",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.N("design:type",String)],ye.prototype,"attachmentType",void 0);ye=_.t([_.G({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],ye);
_.H(ye,"ytd-backstage-dismissable-attachment",function(){if(xBU!==void 0)return xBU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return xBU=W},{mode:1});var zd5;var WW=function(){var W=_.n.apply(this,arguments)||this;W.selectedVideoId=void 0;W.picker=void 0;W.dismissButtonOverrides={size:"XS"};W.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return W};
_.R(WW,_.n);_.d=WW.prototype;_.d.onServiceRequestCompleted=function(W){W.stopPropagation()};
_.d.handleAddVideoPreviewAction=function(W){W=this.get("addVideoPreviewAction",W);this.onGetVideoPreviewSuccess(W)};
_.d.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}}}}}};
_.d.onLaunchVideoPicker=function(W){var O=this,b=_.NX(this.get("addVideoLinkAction.title",W)),T=this.get("addVideoLinkAction.onePickHostId",W);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",W);T&&(this.picker||(b=_.Flf(_.Ulq(T).setTitle(b).addView(Mrz()).addView(NDn()),function(L){O.onPickVideo(L)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",W)||b.addView("youtube"),this.picker=b.build()),this.picker.setVisible(!0))};
_.d.onPickVideo=function(W){if(W)if(W.action==="cancel")_.bX(this.hostElement,"yt-video-link-button-cancel");else if(W.action==="picked"){W=W.docs;if(!W||W.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(W=(W==null?0:W.length)?W[0]:void 0)?W.id:void 0;this.setVideoPreview()}};
_.d.setVideoPreview=function(){var W=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){W.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.d.onGetVideoPreviewSuccess=function(W){if(W&&W.videoPreview&&W.cancelButton)this.videoPreview=W.videoPreview,this.cancelButton=W.cancelButton,_.bX(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.d.onGetVideoPreviewError=function(){this.cancel()};
_.d.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.bX(this.hostElement,"yt-video-link-cancel")};
_.d.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
WW.prototype.onServiceRequestCompleted=WW.prototype.onServiceRequestCompleted;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],WW.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],WW.prototype,"videoPreview",void 0);_.t([_.C(),_.N("design:type",Object)],WW.prototype,"cancelButton",void 0);_.t([_.C(),_.N("design:type",Object)],WW.prototype,"getVideoPreviewCommand",void 0);_.t([_.C(),_.N("design:type",Object)],WW.prototype,"dismissButtonOverrides",void 0);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WW.prototype,"onServiceRequestCompleted",null);WW=_.t([_.G({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],WW);
_.H(WW,"ytd-backstage-video-link-attachment",function(){if(zd5!==void 0)return zd5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zd5=W},{mode:1});var C2S;var qa5;var ncq;var Oq=function(){return _.n.apply(this,arguments)||this};
_.R(Oq,_.n);Oq.prototype.dataChanged=function(){this.active=!1};
Oq.prototype.onTap=function(){_.bX(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Oq.prototype.identity=function(W){return W};
_.Jq.Object.defineProperties(Oq.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;if((W=this.data)==null?0:(O=W.image)==null?0:(b=O.thumbnails)==null?0:(T=b[0])==null?0:T.url)return W=this.data.image.thumbnails[0].url,W.startsWith("data:image/svg+xml")?mj(W):_.l7(W)}}});
Oq.prototype.dataChanged=Oq.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],Oq.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Oq.prototype,"active",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Oq.prototype,"dataChanged",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Oq.prototype,"imageSrc",null);
Oq=_.t([_.G({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Oq);
_.H(Oq,"ytd-emoji-suggestion",function(){if(ncq!==void 0)return ncq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ncq=W},{mode:1});var f99=/.*([:@#].*?)$/,iG=function(){var W=_.n.apply(this,arguments)||this;W.suggestions=[];W.suggestionIndex=-1;W.JSC$13631_lastSuggestionRange=null;return W};
_.R(iG,_.n);_.d=iG.prototype;_.d.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.d.getSuggestions=function(W){var O=[],b=RS7(this.emojiManager,W.substr(0,3));if(b)for(var T in b)if(T.toLocaleLowerCase().indexOf(W)===0){var L=b[T];if(L&&L.emojiId){L=BP(this.emojiManager,L.emojiId);var h=void 0,Z=void 0,a=void 0,m=void 0,w=((h=L)==null?0:h.isCustomEmoji)?(Z=L)==null?void 0:(a=Z.shortcuts)==null?void 0:a[0]:(m=L)==null?void 0:m.emojiId;h=void 0;O.push({suggestion:{image:(h=L)==null?void 0:h.image,alt:w,text:T}});if(O.length>=64)break}}return O?O.sort(function(A,X){return X.suggestion.text<
A.suggestion.text?-1:X.suggestion.text===A.suggestion.text?0:1}):null};
_.d.insertSuggestion=function(W){_.bX(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13631_lastSuggestionRange,text:W.alt});this.dropdown.opened=!1};
_.d.updateSuggestionsAtCaret=function(W){this.updateSuggestions(W,this.retrieveTextBeforeRange(W))};
_.d.offsetStartOfRangeBy=function(W,O){W.startOffset>=O&&W.setStart(W.startContainer,W.startOffset-O)};
_.d.updateSuggestions=function(W,O){var b=this;this.JSC$13631_lastSuggestionRange&&(this.JSC$13631_lastSuggestionRange.detach(),this.JSC$13631_lastSuggestionRange=null);if((O=f99.exec(O))&&O.length&&(O=O[O.length-1].toLocaleLowerCase(),O.length>2||O===":_")&&(this.offsetStartOfRangeBy(W,O.length),this.JSC$13631_lastSuggestionRange=W,(W=this.getSuggestions(O))&&W.length)){this.suggestions=W;_.My(this,function(){b.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(W.length-1);return}this.dropdown.opened=!1};
_.d.onKeyDown=function(W){if(this.dropdown.opened)switch(W.key){case "Escape":this.dropdown.opened=!1;W.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);W.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);W.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),W.preventDefault()}};
_.d.onKeyUp=function(W,O){switch(W.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(O);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(O)}};
_.d.onKeyPress=function(W){W.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),W.preventDefault())};
_.d.changeSuggestionIndex=function(W){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(W+this.suggestions.length)%this.suggestions.length,W=this.dropdownContent.children[this.suggestionIndex],W.active=!0,this.dropdownContent.scrollTop=W.offsetTop)};
_.d.retrieveTextBeforeRange=function(W){var O=W.startContainer;return O&&O.nodeType===Node.TEXT_NODE?O.textContent.substr(0,W.startOffset):""};
iG.prototype.onKeyPress=iG.prototype.onKeyPress;iG.prototype.onKeyUp=iG.prototype.onKeyUp;iG.prototype.onKeyDown=iG.prototype.onKeyDown;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],iG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Array)],iG.prototype,"suggestions",void 0);_.t([_.C(),_.N("design:type",_.kd)],iG.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Number)],iG.prototype,"verticalSuggestionsOffset",void 0);
_.t([_.El("#dropdown"),_.N("design:type",Object)],iG.prototype,"dropdown",void 0);_.t([_.El("#dropdown-content"),_.N("design:type",HTMLDivElement)],iG.prototype,"dropdownContent",void 0);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],iG.prototype,"onKeyDown",null);_.t([_.ai("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent,Range]),_.N("design:returntype")],iG.prototype,"onKeyUp",null);
_.t([_.ai("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],iG.prototype,"onKeyPress",null);iG=_.t([_.G({disableElementRegistration:!0,is:"ytd-emoji-input"})],iG);
_.H(iG,"ytd-emoji-input",function(){if(qa5!==void 0)return qa5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qa5=W},{mode:2});var GuN;var bG=function(){var W=_.n.apply(this,arguments)||this;W.hasMaxOptions=!1;return W};
_.R(bG,_.n);_.d=bG.prototype;_.d.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.d.setPrefilledChoices=function(W){var O=this;this.set("pollOptions",[]);var b;for(b=0;b<Math.min(W.length,this.data.maxPollOptions);b++)this.push("pollOptions",W[b].substring(0,this.data.maxPollOptionChars));for(;b<this.data.minPollOptions;b++)this.push("pollOptions","");this.hasMaxOptions=b>=this.data.maxPollOptions;_.My(this,function(){for(var T=O.pollOptions,L=_.Q(O.hostElement).querySelectorAll(".poll-option-input"),h=0;h<L.length;h++)L[h].value=T[h]})};
_.d.focusChanged=function(){_.Sl(this.hostElement)};
_.d.onInput=function(){var W=this;_.n2(this,"onInput",function(){W.isValid()?_.bX(W.hostElement,"yt-commentbox-post-enable"):_.bX(W.hostElement,"yt-commentbox-post-disable")},300)};
_.d.setPollOptions=function(){var W=[],O,b=((O=this.data)==null?0:O.minPollOptions)?this.data.minPollOptions:0;for(O=0;O<b;O++)W.push("");return W};
_.d.addPollOption=function(){var W=this;_.bX(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.sF.addLowPriorityJob(function(){var O;(O=_.Q(W.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||O.focus()})};
_.d.onRemovePollOption=function(W){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.bX(this.hostElement,"yt-poll-attachment-dismiss")):(W=this.repeat.indexForElement(W.target.parentNode),W!==null&&(this.splice("pollOptions",W,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.bX(this.hostElement,"yt-commentbox-post-enable"))))};
_.d.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.d.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var W=0,O=this.pollOptions.length;W<O;W++)if(this.pollOptions[W].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.d.getPollOptions=function(){return this.pollOptions};
_.d.setPollOptionsFromInputs=function(){for(var W=_.Q(this.hostElement).querySelectorAll(".poll-option-input"),O=0;O<W.length;O++)this.pollOptions[O]=W[O].value.trim()};
_.d.clearPollOptions=function(){var W=_.Q(this.hostElement).querySelectorAll(".poll-option-input");W=_.S(W);for(var O=W.next();!O.done;O=W.next())O.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.d.getSimpleString=function(W){return _.NX(W)};
_.d.updateValueFromBinding=function(W){if(W.target&&this.pollOptions){var O=Array.from(_.Q(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(W.target);if(O>=0){var b;this.pollOptions[O]=(b=W.detail.value)!=null?b:"";this.notifyPath("pollOptions."+O)}}};
bG.prototype.dataChanged=bG.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bG.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],bG.prototype,"pollOptions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bG.prototype,"hasMaxOptions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],bG.prototype,"enableCreationBox",void 0);
_.t([_.El("#repeat"),_.N("design:type",gi)],bG.prototype,"repeat",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bG.prototype,"dataChanged",null);bG=_.t([_.G({disableElementRegistration:!0,is:"ytd-poll-attachment"})],bG);
_.H(bG,"ytd-poll-attachment",function(){if(GuN!==void 0)return GuN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GuN=W},{mode:2});var Hk7;var tv9;var $B9;var VvH;var jZ=function(){return _.n.apply(this,arguments)||this};
_.R(jZ,_.n);_.Jq.Object.defineProperties(jZ.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],jZ.prototype,"rendererBehaviors",void 0);_.t([_.C(),_.N("design:type",Object)],jZ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],jZ.prototype,"focused",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("focused"),_.N("design:type",Object),_.N("design:paramtypes",[])],jZ.prototype,"ariaSelected",null);jZ=_.t([_.sl({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],jZ);
_.H(jZ,"yt-user-mention-suggestion-renderer",function(){if(VvH===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;$B9===void 0&&($B9=document.createElement("template"));var T=$B9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);VvH=W}W=VvH;return W},{mode:2});var NJ9;var Mvn;var TY=function(){var W=_.n.apply(this,arguments)||this;W.focusedSuggestionIndex=-1;return W};
_.R(TY,_.n);_.d=TY.prototype;_.d.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.d.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.d.setFocusedSuggestionIndex=function(W){!this.data||!this.data.suggestions||W<0||W>=this.data.suggestions.length||(this.focusedSuggestionIndex=W,W=this.getSuggestionId(W),this._setFocusedSuggestionId(W))};
_.d.advanceSuggestion=function(W){this.focusedSuggestionIndex===-1||W!==-1&&W!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+W),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.d.ensureSuggestionVisible=function(W){W=this.getSuggestionId(W);W=_.Q(this.hostElement).querySelector("[id="+W+"]");W!=null&&(W.offsetTop<this.hostElement.scrollTop?W.scrollIntoView(!0):W.offsetTop+W.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&W.scrollIntoView(!1))};
_.d.getSuggestionId=function(W){return"user-mention-suggestion-"+W};
_.d.onSuggestionTap=function(W){var O=_.P(W.model.item,zF9);this.ytRendererBehavior.logExplicitClick(O);_.bX(this.hostElement,"yt-user-mention-suggestion-selected",{data:O,index:W.model.index})};
_.d.onSuggestionMouseMove=function(W){W.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(W.model.index)};
_.d.isSuggestionFocused=function(W,O){return W===O};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("focused-suggestion-id-changed",this.focusedSuggestionId))};
TY.prototype.focusedSuggestionIdChangedForBinding=TY.prototype.focusedSuggestionIdChangedForBinding;TY.prototype.onDomChange=TY.prototype.onDomChange;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],TY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],TY.prototype,"focusedSuggestionIndex",void 0);_.t([_.C({readOnly:!0}),_.N("design:type",String)],TY.prototype,"focusedSuggestionId",void 0);
_.t([_.ai("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],TY.prototype,"onDomChange",null);_.t([_.m5("focusedSuggestionId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TY.prototype,"focusedSuggestionIdChangedForBinding",null);TY=_.t([_.sl({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],TY);
_.H(TY,"yt-user-mention-suggestions-dropdown",function(){if(Mvn===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;NJ9===void 0&&(NJ9=document.createElement("template"));var T=NJ9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Mvn=W}W=Mvn;return W},{mode:2});var L7=function(){var W=_.n.apply(this,arguments)||this;W.suggestionsResponse=null;W.activeMention=null;W.selectionChangeListener=W.onSelectionChange.bind(W);W.handlesEnabled=_.e("enable_handles_in_mention_suggest_posts");W.handlesInMentionSuggestionsEnabled=_.e("handles_in_mention_suggest_posts");W.zeroPrefixMentionSuggestionEnabled=_.e("enable_zero_prefix_mention_suggestion_web");W.pendingQuery=null;W.flowNonce=null;return W};
_.R(L7,_.n);_.d=L7.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.d.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.d.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.d.hasSuggestions=function(W){return!!(W&&W.suggestions&&W.suggestions.length>0)};
_.d.onInput=function(){var W=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var O=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),b=this.activeMention.JSC$9251_getText().slice(-1)===" ",T=this.activeMention.JSC$9251_getText().slice(-2,-1)===" ",L="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9251_getText().slice(-2,-1))>=
0;L=this.zeroPrefixMentionSuggestionEnabled&&L;if(this.activeMention.isCollapsed()||(O||T||L)&&b)this.cancelActiveMention();else{var h=this.activeMention.JSC$9251_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.n2(this,"requestSuggestions",function(){W.requestSuggestions(h)},100)}}}};
_.d.onServiceRequestSent=function(W){W.stopPropagation()};
_.d.onServiceRequestCompleted=function(W){W.stopPropagation();W=W.detail.data;W.query&&(!this.pendingQuery||this.pendingQuery!==W.query)||!this.zeroPrefixMentionSuggestionEnabled&&W.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=W,this.hasSuggestions(W)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.d.onServiceRequestError=function(W){W.stopPropagation()};
_.d.onUserMentionSuggestionSelected=function(W){this.selectSuggestion(W.detail.data,W.detail.index)};
_.d.onSelectionChange=function(){if(this.activeMention){var W=_.AT(),O=this.activeMention.JSC$9251_containsRange(W);W=W&&this.containsHelper(this.dropdown,W.getContainer());O||W||this.cancelActiveMention()}};
_.d.containsHelper=function(W,O){var b;if(((b=window.ShadyDOM)==null?void 0:b.noPatch)===!0)return W.contains(O);for(;O;){if(O===W)return!0;O=O instanceof ShadowRoot?O.host:O.parentNode}return!1};
_.d.maybeStartSuggest=function(){var W=_.AT();if(W&&W.isCollapsed()){var O=W.JSC$9251_getStartNode(),b=W.JSC$9251_getStartOffset();if(O instanceof Text&&!(b<1)){var T=O.textContent;!(T=T&&T.charAt(b-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(T)<0||(this.activeMention=_.k8(O,b-1,W.JSC$9251_getEndNode(),W.JSC$9251_getEndOffset()),this.flowNonce=Q3(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.d.updateActiveMention=function(){if(this.activeMention){var W=_.AT();W&&W.isCollapsed()&&(this.activeMention=_.k8(this.activeMention.JSC$9251_getStartNode(),this.activeMention.JSC$9251_getStartOffset(),W.JSC$9251_getEndNode(),W.JSC$9251_getEndOffset()))}};
_.d.requestSuggestions=function(W){if(this.activeMention){var O={suggestions_query:W};this.pendingQuery=W;_.da(this.hostElement,[this.suggestionsEndpoint,O])}};
_.d.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()};
_.d.focusPreviousSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),W.preventDefault())};
_.d.focusNextSuggestion=function(W){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),W.preventDefault())};
_.d.selectFocusedSuggestion=function(W){if(this.hasSuggestions(this.suggestionsResponse)){var O=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.P(O,zF9)&&(this.selectSuggestion(_.P(O,zF9),this.dropdown.focusedSuggestionIndex),W.preventDefault())}};
_.d.selectSuggestion=function(W,O){if(W){var b=this.activeMention;if(b){var T=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&W.handle?_.oB(T,"\u00a0\u2068@"+W.handle+"\u2069\u00a0"):this.handlesEnabled?_.oB(T,"\u00a0"+W.displayName+"\u00a0"):_.oB(T,"\u00a0@"+W.displayName+"\u00a0");vD(T,"/channel/"+W.channelId);T.classList.add("yt-formatted-string","yt-simple-endpoint");T.setAttribute("spellcheck","false");b.isCollapsed()||b.JSC$9251_removeContents();b.insertNode(T,!0);W=document.createTextNode(" ");
T.parentNode.insertBefore(W,T.nextSibling);window.getSelection().collapse(W,1);O={suggestionSelected:{suggestionIndex:O}};if(this.zeroPrefixMentionSuggestionEnabled){var L;O.suggestionSelected.isZeroPrefix=((L=this.suggestionsResponse)==null?void 0:L.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",O);this.cancelActiveMention();_.bX(this.hostElement,"yt-mention-inserted")}}};
_.d.getPositionTarget=function(W){return W&&W.getBrowserRangeObject()};
_.d.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.d.onFocusedSuggestionIdChanged=function(W){var O=_.eoi(this.hostElement)[0];O&&(W.detail.value?O.setAttribute("aria-activedescendant",W.detail.value):O.removeAttribute("aria-activedescendant"))};
_.d.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.d.logGELEvent=function(W,O){W={eventType:W,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};O&&(W=Object.assign(W,O));_.BZ("userMentionAutoCompleteBoxEvent",W)};
L7.prototype.onDomChange=L7.prototype.onDomChange;L7.prototype.onUserMentionSuggestionSelected=L7.prototype.onUserMentionSuggestionSelected;L7.prototype.onServiceRequestError=L7.prototype.onServiceRequestError;L7.prototype.onServiceRequestCompleted=L7.prototype.onServiceRequestCompleted;L7.prototype.onServiceRequestSent=L7.prototype.onServiceRequestSent;L7.prototype.onInput=L7.prototype.onInput;_.t([_.D(_.wc),_.N("design:type",Object)],L7.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],L7.prototype,"suggestionsEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],L7.prototype,"suggestionsResponse",void 0);_.t([_.C(),_.N("design:type",Object)],L7.prototype,"activeMention",void 0);_.t([_.El("#dropdown"),_.N("design:type",Object)],L7.prototype,"dropdown",void 0);_.t([_.El("#iron-dropdown"),_.N("design:type",Object)],L7.prototype,"ironDropdown",void 0);
_.t([_.ai("input"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],L7.prototype,"onInput",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L7.prototype,"onServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L7.prototype,"onServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L7.prototype,"onServiceRequestError",null);_.t([_.ai("yt-user-mention-suggestion-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L7.prototype,"onUserMentionSuggestionSelected",null);
_.t([_.ai("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],L7.prototype,"onDomChange",null);L7=_.t([_.sl({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],L7);
_.H(L7,"yt-user-mention-autosuggest-input",function(){if(tv9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Hk7===void 0&&(Hk7=document.createElement("template"));var T=Hk7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);tv9=W}W=tv9;return W},{mode:2});var dP=null;
_.v_({is:"ytd-commentbox",_template:function(){if(C2S!==void 0)return C2S;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return C2S=W},
behaviors:[_.yzX.YtHostElementBehavior,_.wc,_.WP.YtActionHandlerBehavior,_.x_.YtComponentBehavior,_.y4.YtRendererstamperBehavior,_.nZU.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(W,O){return _.IJ(W.entities,"aadcGuidelinesStateEntityPayload",O)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(W,O){return _.IJ(W.entities,"commentboxStateEntity",O)},
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 _.rw}},
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:_.e("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.e("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",_.Ii(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(W){this.fire(W?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(W){this.set("submitButtonDisabled",void 0);this.clear();W&&this.computeIsEmojiButtonDisplayed_(W)&&(W=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&W.updateEmojiCategories()},
observePrefilledImage_:function(W,O,b){this.isValidPrefilledImage_(W,O,b)&&(this.prefilledAttachment_="image",this.prefilledImageData_=O,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(W,O){this.isValidPrefilledVideo_(W,O)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(W){W&&W.pollData&&W.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(W.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Lg();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ii(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(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var O=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(O,W);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var W=_.AT();if(W){W=W.getBrowserRangeObject();for(var O=W.commonAncestorContainer;O;){if(O===this.getEditableTextArea_())return W;O=O.parentNode}}W=this.getEditableTextArea_();W=_.QF(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,O,b){(O=this.emojiManager.createDocumentFragment(O,!0,!1,b===void 0?!0:b))&&O.childNodes.length!==0&&(W.collapsed||W.deleteContents(),b=O.lastChild,W.insertNode(O),_.lM5(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var W=_.AT();if(W){var O=W.JSC$9251_getStartNode(),b=W.JSC$9251_getEndNode();if($wh(O)&&$wh(b)){var T=W.JSC$9251_getStartOffset(),L;if(_.h$&&O.nodeType===Node.ELEMENT_NODE&&(L=_.rX7(O)))_.QF(L,0).select();else{L=YN(O)?O:_.sM(O,YN);var h=YN(b)?b:_.sM(b,YN);if(L||h)if(W.isCollapsed()){if(O.nodeType===Node.TEXT_NODE){W=!0;T===O.length&&(W=!1);if(dP==="end"||dP==="right")W=!1;O=O.parentNode;W=[].concat(_.PG(O.parentNode.childNodes)).indexOf(O)+(W?0:1);_.QF(O.parentNode,W).select()}}else L?
L.previousSibling&&L.previousSibling.length>0?_.k8(b,W.JSC$9251_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(O=document.createTextNode("\u200b"),L.parentNode.insertBefore(O,L),_.k8(b,W.JSC$9251_getEndOffset(),O,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.k8(O,W.JSC$9251_getStartOffset(),h.nextSibling,1).select():(b=document.createTextNode("\u200b"),h.parentNode.insertBefore(b,h.nextSibling),_.k8(O,W.JSC$9251_getStartOffset(),b,b.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 W=cb2(!0);if(W){var O=_.AT(),b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();_.R3(b,O,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=cb2(!1);if(W){var O=_.AT(),b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();_.R3(b,O,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var O=_.AT();if(O.isCollapsed()){var b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();var T=Fe1(b,O,!0);T&&(_.R3(b,O,T,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var O=_.AT();if(O.isCollapsed()){var b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();var T=Fe1(b,O,!1);T&&(_.R3(b,O,T,T.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onTap_:function(W){if(!W.defaultPrevented&&(W.currentTarget.tagName==="YTD-COMMENTBOX"&&YN(W.target)&&W.preventDefault(),this.isEmojiPickerDisplayed)){var O=this.$$("#emojis"),b=this.$$("#emoji-button"),T=this.getEditableTextArea_();if((W=W.path?W.path:W.composedPath&&W.composedPath())&&!W.includes(O)&&!W.includes(T)&&!W.includes(b))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(W,O,b){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&O!==void 0&&O.encryptedBlobId!==null&&O.sourceExternalVideoId!==null&&b!==void 0&&b.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(W,O){return W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!O&&!!O.videoRenderer&&!!O.videoRenderer.videoId},
isValidPrefilledAttachment_:function(W,O,b){return this.isValidPrefilledImage_(W,O,b)||this.isValidPrefilledVideo_(W,b)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.e("enable_multi_image_post_creation")){var W=this.$$("ytd-backstage-multi-image-select-renderer");W&&W.hasImages()&&W.cancel()}else(W=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&W.cancel();(W=this.$["poll-attachment"])&&this.hasPoll_&&W.clearPollOptions();(W=this.$["image-poll-attachment"])&&this.hasImagePoll_&&W.resetPollOptions();(W=this.$["quiz-attachment"])&&this.hasQuiz_&&W.resetQuizOptions();
(W=this.$["video-link-attachment"])&&this.hasVideo_&&W.cancel();(W=this.$["access-restrictions-selector"].firstElementChild)&&W.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 _.Q(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Q(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(W,O){W=NXO(W,this.emojiManager,O).cloneNode(!0);for(O=W.firstChild;O;)if(O.nodeType!==1)O=O.nextSibling;else switch(O.tagName){case "BR":var b=_.P1();_.GX5(b,O);O=b.nextSibling;break;case "DIV":(b=O.lastChild)&&O.nextSibling&&_.v1(_.P1(),b);O.previousSibling&&(O.previousSibling.nodeType===1||O.previousSibling.nodeType===3&&!O.previousSibling.textContent.endsWith("\n"))&&_.K4(_.P1(),O);b&&b.nodeName==="BR"&&_.Xu(b);b=O;O.hasChildNodes()?(O=O.firstChild,
_.HEq(b)):(O=O.nextSibling,_.Xu(b));break;default:O=O.nextSibling}return ybe(W)},
onAddImageError_:function(W){W.stopPropagation();this.errorMessage_=_.VV(W.detail)},
setTextAreaValue_:function(W){W||(W="");var O=this.getEditableFormattedString_();O.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});O.text=W},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();dP=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.QF(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Cv("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),O=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",O)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var W;return T9e((W=this.$["quiz-attachment"])==null?void 0:W.getExplanationText())||T9e(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var O=this.getInputRange_();O&&(W=this.emojiInput.retrieveTextBeforeRange(O))}this.insertText_(W,!0);this.updateCharCount_();this.setSubmitButton_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(W)},
onPasteEmoji_:function(W){W.preventDefault();W.stopImmediatePropagation();W=W.clipboardData.getData("text/plain");this.insertText_(W,!1,!1)},
insertText_:function(W,O,b){O=O===void 0?!1:O;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var T=this.getInputRange_().cloneRange();this.emojiManager&&T&&(O&&this.emojiInput.offsetStartOfRangeBy(T,W.length),this.insertTextWithEmojis_(T,W,b),V8X(this.getEditableTextArea_().lastChild)||(T=this.getInputRange_().cloneRange()),T&&(this.emojiInput.updateSuggestions(T,W),this.updateSuggestionOffset_(T)))}},
setSubmitButton_:function(){if(this.data){var W=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",O=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(W||O){var b=this.getTextAreaValue().trim();O=b===this.previousText_;b=!b||this.aboveCharLimit_;W&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(b=this.aboveCharLimit_);this.submitButtonDisabled=
O||b||!this.getTextLength();W&&_.e("enable_post_scheduling")&&(this.submitButtonDisabled=O&&!this.scheduledPublishTimeSec_||b)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.NX,computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computeFooterMessageClass_:function(W,O){return O?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(W,O){return O?O:W},
computeFooterMessageHidden_:function(W,O){return!O&&!W},
computePlaceholderText_:function(W,O,b){return(b==="video"||b==="image")&&(W==null?0:W.prefilledPlaceholderText)?W==null?void 0:W.prefilledPlaceholderText:O==="poll"||O==="image-poll"?W==null?void 0:W.pollPostPlaceholderText:O==="quiz"?W==null?void 0:W.quizPostPlaceholderText:O==="image"?W==null?void 0:W.imagePostPlaceholderText:W==null?void 0:W.placeholderText},
computeHideAttachmentButtons_:function(W,O,b,T){return W===void 0?!1:T&&this.getSimpleString(T)===this.getSimpleString(W.rateLimitErrorMessage)?!0:O!=="none"||b!=="none"||!W.videoLinkButton&&!W.pollButton&&!W.imagePollButton&&!W.quizButton&&!W.imageButton},
computeHideDismissableAttachment_:function(W){return W!=="image"&&W!=="video"},
computeHasVideo_:function(W){return W==="video"},
computeHasImage_:function(W){return W==="image"},
computeHasPoll_:function(W){return W==="poll"},
computeHasImagePoll_:function(W){return W==="image-poll"},
computeHasQuiz_:function(W){return W==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(W){return W&&W.backstageAttachment?W.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!W.backstageAttachment.quizRenderer&&!W.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(W){if(this.isValidPrefilledAttachment_(W.purpose,W.prefilledImageData,W.backstageAttachment))return W.backstageAttachment},
computeEditAttachment_:function(W){if(this.computePrefilledContent_(W)===void 0)return W.backstageAttachment},
computeAuthorThumbnailDimension_:function(W,O){return W&&!O?24:40},
computeImageUploadEndpoint_:function(W){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",W)},
computeRateLimitErrorCommands_:function(W){var O,b;return W==null?void 0:(O=W.advancedTierFeatures)==null?void 0:(b=O.rateLimit)==null?void 0:b.rateLimitCommands},
computeIsBackstageComment_:function(W){return!(!W||W!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)||this.get("replyButton.buttonRenderer.serviceEndpoint",W)||this.get("postButton.buttonRenderer.serviceEndpoint",W)},
computeSubmitButtonOverride:function(){if(_.e("web_modern_buttons")){var W,O;return{segmentedPosition:this.dropdownSchedulePanel_||!((W=this.data)==null?0:(O=W.postOptionsMenu)==null?0:O.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.e("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(W,O){W=this.get("submitButton.buttonRenderer",W)||this.get("replyButton.buttonRenderer",W)||this.get("postButton.buttonRenderer",W);O&&(W=O);W&&(W=Object.assign({},W),W.serviceEndpoint=void 0,W.isDisabled=this.submitButtonDisabled);return W},
computeHasExternalLinksAccess_:function(W){if(_.e("enable_rfa_external_links")){var O,b,T;return(T=W==null?void 0:(O=W.advancedTierFeatures)==null?void 0:(b=O.externalLinks)==null?void 0:b.allowExternalLinks)!=null?T:!0}return!0},
computeIsEmojiButtonDisplayed_:function(W){return W.emojiButton&&W.emojiPicker&&W.emojiPicker.emojiPickerRenderer&&W.emojiPicker.emojiPickerRenderer.categories?W.emojiPicker.emojiPickerRenderer.categories.find(function(O){return O.emojiPickerCategoryRenderer?O.emojiPickerCategoryRenderer.emojiIds&&O.emojiPickerCategoryRenderer.emojiIds.length>0:O.emojiPickerUpsellCategoryRenderer?O.emojiPickerUpsellCategoryRenderer.emojis&&O.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(W){return W.charLimit?W.charLimit:null},
computeDropdownSchedulingPanel_:function(W,O){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&O)return O},
computeInlineSchedulingPanel_:function(W,O){if(W==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&O)return O},
computeHideAuthorThumbnail_:function(W,O){return W||this.computeUseIdentityChip_(O)},
computeHideIdentityChipRenderer_:function(W,O){return W||!this.computeUseIdentityChip_(O)},
computeUseIdentityChip_:function(W){return!!W&&!!W.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(W){var O,b,T,L;(W==null?0:(O=W.detail)==null?0:(b=O.endpoint)==null?0:b.ypcGetOffersEndpoint)||(W==null?0:(T=W.detail)==null?0:(L=T.endpoint)==null?0:L.ypcOffersEndpoint)?(W.stopPropagation(),_.da(this,[W.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(W.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(W){this.addedAttachment="video";this.selectedVideoId_=W.detail.videoId},
commentboxStateEntityChanged_:function(W){var O=this;(W==null?void 0:W.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(W==null?void 0:W.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){O.focus()})},
onYtServiceRequestSent_:function(W,O){if(O.actions)for(W=_.S(O.actions),O=W.next();!O.done;O=W.next())O.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(W){this.isLoading=!1;var O=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",W),b,T,L,h=W==null?void 0:(b=W.detail)==null?void 0:(T=b.data)==null?void 0:(L=T.actionResult)==null?void 0:L.commentboxStateEntityKey;if(O)this.errorMessage_=O;else if(h){var Z;this.dismissData_=W==null?void 0:(Z=W.detail)==null?void 0:Z.data;this.commentboxStateKey_=h}else{this.clear();var a;this.fire("yt-commentbox-dismiss",W==null?void 0:(a=W.detail)==
null?void 0:a.data)}},
onYtServiceRequestError_:function(W){W.stopPropagation();this.isLoading=!1;var O,b;if(((O=this.data)==null?void 0:O.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(O=this.get("detail.error.args",W)||[],O.length>1&&O[1].message){this.handlePostsServiceRequestError_(O[1].message);return}(W=this.get("detail.error.message",W))?this.errorMessage_=this.data.errorMessage||_.VV(W):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(W){if(_.e("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var O=_.S(this.rateLimitErrorCommands),b=O.next();!b.done;b=O.next())if(b=b.value,b.errorLabel===W){_.mw(b.command,this.hostElement);return}this.errorMessage_=_.VV(W)},
submitIfNotBackstagePost_:function(W){if(!this.isBackstagePost)this.onSubmit_(W)},
onSubmit_:function(W){var O=this,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r;return _.I(function(q){switch(q.nextAddress){case 1:W.stopPropagation();if(!O.serviceEndpoint||!O.isValidInput_())return q.return();if(O.shouldShowPostAadcNotice_())return O.showPostAadcNotice_(),q.return();if(O.shouldShowCommentAadcNotice_())return O.showCommentAadcNotice_(),q.return();if(!(O.$$("ytd-backstage-multi-image-select-renderer")&&O.hasImage_&&_.e("enable_multi_image_post_creation"))){q.jumpTo(2);break}b=O.$$("ytd-backstage-multi-image-select-renderer");
return _.Y(q,b.getAllUploadStatuses(),3);case 3:T=q.yieldResult;if(!T)return q.return();L=_.S(T);for(h=L.next();!h.done;h=L.next())if(Z=h.value,Z.encryptedBlobId===void 0)return O.isLoading=!1,m=a=void 0,O.errorMessage_=(m=(a=O.imageUploadEndpoint_)==null?void 0:a.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?m:null,q.return();return q.return(O.submitForm_(void 0,void 0,void 0,void 0,b.images,O.taggedVideoId_));case 2:if(!O.hasImagePoll_||!O.$["image-poll-attachment"]){q.jumpTo(4);
break}return _.Y(q,O.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:w=q.yieldResult;if(!w)return q.return();A=_.S(w);for(X=A.next();!X.done;X=A.next())if(l=X.value,!l.encryptedBlobId)return O.isLoading=!1,p=void 0,O.errorMessage_=(p=O.data.errorMessage)!=null?p:null,q.return();case 4:k=(K=O.$$("ytd-backstage-image-select-renderer"))&&K.uploadPromise(),r=O.getSharedPostId_(),k?k.then(function(){O.submitForm_.apply(O,_.PG(_.PD.apply(0,arguments)))}).catch(function(f){O.isLoading=!1;
O.errorMessage_=_.VV(f.message)}):O.selectedVideoId_?O.submitForm_(void 0,O.selectedVideoId_):O.prefilledAttachment_==="image"?O.submitForm_(O.prefilledImageData_.encryptedBlobId,void 0,void 0,O.prefilledImageData_.sourceExternalVideoId,void 0,O.taggedVideoId_):O.prefilledAttachment_==="video"?O.submitForm_(void 0,O.data.backstageAttachment.videoRenderer.videoId):r?O.submitForm_(void 0,void 0,r):O.taggedVideoId_!==void 0?O.submitForm_(void 0,void 0,void 0,void 0,void 0,O.taggedVideoId_):O.submitForm_(),
_.aD(q)}})},
openSchedulingPanel:function(W){W&&W.scheduleButton&&W.scheduleButton.buttonRenderer&&(this.scheduleButton_=W.scheduleButton.buttonRenderer);W&&W.dateTimePicker&&this.set("data.schedulingDateTimePicker",W.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(W){W.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(W){W.stopPropagation();W.detail.alertMessage&&(this.alertMessage_=W.detail.alertMessage)},
onImageSelected_:function(W){W.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(W){W.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(W.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(W){W.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(W){var O=this.$["video-link-attachment"];O&&O.onLaunchVideoPicker(W)},
onAttachmentDismiss_:function(W){W.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"&&_.e("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.e("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 W;if(this.addedAttachment==="image-poll"&&((W=this.$["image-poll-attachment"])==null||!W.isValid()))return!1;var O;if(this.addedAttachment==="quiz"&&((O=this.$["quiz-attachment"])==null||!O.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;W=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(W=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")W=!0;return W||!!this.getTextAreaValue().trim()},
submitForm_:function(W,O,b,T,L,h){var Z=this.getTextAreaValue().trim(),a={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&Z===this.previousText_&&(Z=void 0);Z!==void 0&&(a.comment_text=Z);this.isLoading=!0;h!=void 0&&(a.tagged_video_id=h);W?(a.image_blob_id=W,this.imagePreviewCoordinates_&&(a.image_preview_coordinates=this.imagePreviewCoordinates_)):O?a.attached_video_id=O:b?a.shared_post_id=b:L&&L.length>0&&(a.images_data=L.map(function(m){return{encryptedBlobId:m.encryptedBlobId,
previewCoordinates:m.previewCoordinates}}));
T&&(a.source_video_id=T);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(a.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(a.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(a.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.e("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(a.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.e("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(a.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.da(this,[this.serviceEndpoint,a])},
onIsInputFocusChanged_:function(W,O){W?this.fire("yt-autonav-pause-focus"):O!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var O=this.getEditableTextArea_();[].concat(_.PG(W.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(T){O.appendChild(document.createTextNode(T))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
computeSubmitButtonClass_:function(W,O){return!O||W?"":"with-options"},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.Q(this.emojiInput).querySelector("#dropdown")){var O=this.getEditableTextArea_().getBoundingClientRect().bottom,b=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(O-b)+5;O=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-O;_.Q(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(W){if(_.e("enable_post_scheduling")&&this.data&&this.data.purpose){W=W.detail;if(Math.floor(Date.now()/1E3)>=W)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var O=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(O)||O!==W?this.scheduledPublishTimeSec_=W:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=W;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var W=["image-button","image-poll-button","poll-button"];_.e("enable_quiz_creation")&&W.push("quiz-button");_.e("auto_convert_posts_video_tag")||W.push("video-link-button");return W},
getButtonRenderer:function(W,O){if(W)switch(O){case "video-link-button":var b;return((b=W.videoLinkButton)==null?void 0:b.buttonRenderer)||void 0;case "image-button":var T;return((T=W.imageButton)==null?void 0:T.buttonRenderer)||void 0;case "poll-button":var L;return((L=W.pollButton)==null?void 0:L.buttonRenderer)||void 0;case "image-poll-button":var h;return((h=W.imagePollButton)==null?void 0:h.buttonRenderer)||void 0;case "quiz-button":var Z;return((Z=W.quizButton)==null?void 0:Z.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var W;return(W=this.data)==null||!W.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var W,O;return!((W=this.data)==null||!W.openAadcDialog)&&!((O=this.aadcGuidelinesState_)==null||!O.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Cv("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var W;((W=this.data)==null?0:W.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.z7("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(W){W.clickTrackingParams&&_.A4().clickCommand(W);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.jx(this,"yt-close-popup-action")},
onHideIdentityChip:function(W){var O;this.set("data.placeholderText",(O=W.hideIdentityChipAction)==null?void 0:O.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var h0=function(){var W=_.n.apply(this,arguments)||this;W.isOpen=!1;W.modern=_.e("web_modern_buttons");W.roundedContainer=!0;W.dropdownButtonOverride=_.e("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;W.inPopupContainer=!1;W.isCommentboxLoading=!1;var O=["image-button","image-poll-button","poll-button"];_.e("enable_quiz_creation")&&O.push("quiz-button");_.e("auto_convert_posts_video_tag")||O.push("video-link-button");W.attachmentButtonIds=O;W.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 W};
_.R(h0,_.n);_.d=h0.prototype;_.d.computeButtonOverride=function(){var W;return((W=this.data)==null?0:W.postOptionsMenu)&&_.e("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.d.configureRendererStamper=function(){var W={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.e("auto_convert_posts_video_tag")||(W["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return W};
_.d.ready=function(){var W=this,O=_.Q(this.hostElement).querySelector("#placeholder-area"),b=function(T){W.onOpen(T)};
O.addEventListener("tap",b);O.addEventListener("keypress",b)};
_.d.showButtonEduTooltip=function(){var W,O,b,T,L,h,Z;if(_.e("enable_quiz_creation")&&((W=this.data)==null?0:(O=W.quizButton)==null?0:(b=O.buttonRenderer)==null?0:(T=b.hint)==null?0:(L=T.hintRenderer)==null?0:(h=L.content)==null?0:(Z=h.bubbleHintRenderer)==null?0:Z.text)&&(_.uh.getInstance(),W=Jp(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(W==null?void 0:
W.length)>0)){this.ytComponentBehavior.resolveCommand(W[0],{form:{element:this.quizButton}});return}var a;if((a=this.data)==null?0:a.imagePollButtonTooltip)if(_.uh.getInstance(),a=Jp(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(a==null?void 0:a.length)>0){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.imagePollButton}});return}var m;_.e("enable_multi_image_post_creation")&&
((m=this.data)==null?0:m.multiImageButtonTooltip)&&(_.uh.getInstance(),m=Jp(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0&&this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imageButton}}))};
_.d.onCreatePollAction=function(W){_.P(W,M65)&&(this.JSC$13686_commentbox.addedAttachment="poll",this.openDialog())};
_.d.onAddVideoLinkAction=function(W){if(_.P(W,NY$))this.JSC$13686_commentbox.onAddVideoLink(W)};
_.d.onShowSchedulingPanelCommand=function(W){(W=_.P(W,PU9))&&this.openSchedulingPanel(W)};
_.d.onCreateImagePollCommand=function(W){_.P(W,Q$$)&&(this.JSC$13686_commentbox.openImagePollComponent(),this.openDialog())};
_.d.onCreateQuizCommand=function(W){_.P(W,kML)&&(this.JSC$13686_commentbox.openQuizComponent(),this.openDialog())};
_.d.openSchedulingPanel=function(W){_.e("enable_post_scheduling")&&(this.openDialog(),this.JSC$13686_commentbox.openSchedulingPanel(W))};
_.d.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.JSC$13686_commentbox.clear(),this.closeDialog())};
_.d.onOpen=function(W){W instanceof KeyboardEvent&&W.type==="keypress"&&W.keyCode!==13&&W.keyCode!==32||(this.data.prepareAccountEndpoint?_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.closeDialog()};
_.d.onYtCommentboxLoadingStart=function(W){W.stopPropagation();this.isCommentboxLoading=!0};
_.d.onYtCommentboxLoadingEnd=function(W){W.stopPropagation();this.isCommentboxLoading=!1};
_.d.onYtVideoLinkButtonCancel=function(W){W.stopPropagation();this.onOpen(W)};
_.d.onYtVideoLinkSelected=function(W){W.stopPropagation();this.onOpen(W)};
_.d.onIronSelect=function(W){W.stopPropagation();W.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=W.detail.item.value&&(this.accessRestriction?(this.accessRestriction=W.detail.item.value,this.onOpen(W)):this.accessRestriction=W.detail.item.value)};
_.d.onYtNavigate=function(W){this.get("detail.endpoint.backstageImageUploadEndpoint",W)&&(this.JSC$13686_commentbox.addedAttachment="image",this.JSC$13686_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.d.onRequestSent=function(W){if(_.e("web_button_rework"))for(var O=_.S(W.detail),b=O.next();!b.done;b=O.next())_.P(b.value,Ghz)&&(this.JSC$13686_commentbox.addedAttachment="image",this.JSC$13686_commentbox.submitButtonDisabled=!0,this.onOpen(W))};
_.d.openDialog=function(){this.JSC$13686_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13686_commentbox.focus()};
_.d.onPopupClosed=function(){_.uh.getInstance()};
_.d.computeCreationDisabled=function(W){return!!W};
_.d.computeIsCreationDialog=function(W){return!!W&&W==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.d.computeDisabledPostButton=function(W){if(!W)return null;W.isDisabled=!0;return W};
_.d.computeIsCreationDialogWithHeader=function(W){return!this.inPopupContainer&&!!W&&!!W.authorText&&W.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.d.computeIsHeaderHidden=function(W,O){return!W||O};
_.d.computeDropdownRendererClasses=function(W){return W?["text-secondary-style"]:[]};
_.d.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var W=_.Q(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;W&&W.reset()};
h0.prototype.onPopupClosed=h0.prototype.onPopupClosed;h0.prototype.onRequestSent=h0.prototype.onRequestSent;h0.prototype.onYtNavigate=h0.prototype.onYtNavigate;h0.prototype.onIronSelect=h0.prototype.onIronSelect;h0.prototype.onYtVideoLinkSelected=h0.prototype.onYtVideoLinkSelected;h0.prototype.onYtVideoLinkButtonCancel=h0.prototype.onYtVideoLinkButtonCancel;h0.prototype.onYtCommentboxLoadingEnd=h0.prototype.onYtCommentboxLoadingEnd;h0.prototype.onYtCommentboxLoadingStart=h0.prototype.onYtCommentboxLoadingStart;
h0.prototype.onYtCommentboxDismiss=h0.prototype.onYtCommentboxDismiss;h0.prototype.showButtonEduTooltip=h0.prototype.showButtonEduTooltip;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],h0.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],h0.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],h0.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],h0.prototype,"isOpen",void 0);_.t([_.C({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],h0.prototype,"buttonOverride",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],h0.prototype,"modern",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],h0.prototype,"roundedContainer",void 0);_.t([_.C(),_.N("design:type",Object)],h0.prototype,"dropdownButtonOverride",void 0);_.t([_.C({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.N("design:type",Boolean)],h0.prototype,"creationDisabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],h0.prototype,"enableCreationBox",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.N("design:type",Boolean)],h0.prototype,"isCreationDialog",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],h0.prototype,"inPopupContainer",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.N("design:type",Boolean)],h0.prototype,"isCreationDialogWithHeader",void 0);_.t([_.C(),_.N("design:type",Object)],h0.prototype,"accessRestriction",void 0);
_.t([_.C({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.N("design:type",Array)],h0.prototype,"dropdownRendererClasses",void 0);_.t([_.C(),_.N("design:type",Object)],h0.prototype,"isCommentboxLoading",void 0);_.t([_.C(),_.N("design:type",Array)],h0.prototype,"attachmentButtonIds",void 0);_.t([_.El("#image-button"),_.N("design:type",HTMLElement)],h0.prototype,"imageButton",void 0);
_.t([_.El("#image-poll-button"),_.N("design:type",HTMLElement)],h0.prototype,"imagePollButton",void 0);_.t([_.El("#quiz-button"),_.N("design:type",HTMLElement)],h0.prototype,"quizButton",void 0);_.t([_.El("#commentbox"),_.N("design:type",Object)],h0.prototype,"JSC$13686_commentbox",void 0);_.t([_.m5("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h0.prototype,"showButtonEduTooltip",null);
_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtCommentboxDismiss",null);_.t([_.ai("yt-commentbox-loading-start"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtCommentboxLoadingStart",null);
_.t([_.ai("yt-commentbox-loading-end"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtCommentboxLoadingEnd",null);_.t([_.ai("yt-video-link-button-cancel"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtVideoLinkButtonCancel",null);
_.t([_.ai("yt-video-link-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtVideoLinkSelected",null);_.t([_.ai("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onIronSelect",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onYtNavigate",null);
_.t([_.ai("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],h0.prototype,"onRequestSent",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],h0.prototype,"onPopupClosed",null);h0=_.t([_.G({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],h0);
_.H(h0,"ytd-backstage-post-dialog-renderer",function(){if(wFN!==void 0)return wFN;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return wFN=W},{mode:1});var uwL;var Jmf;var SZ=function(){return _.n.apply(this,arguments)||this};
_.R(SZ,_.n);_.d=SZ.prototype;_.d.computeHeartButtonStyle=function(W){return(W==null?0:W.styleType)?W.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onYtButtonTap=function(){if(this.data.isEnabled){var W=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(W=this.getEndpoint(W))&&_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})}else(W=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(W)};
_.d.toggle=function(W){this.set("data.isHearted",W!==void 0?W:!this.data.isHearted)};
_.d.getEndpoint=function(W){var O,b=(O=this.data)==null?void 0:O.heartEndpoint,T;O=(T=this.data)==null?void 0:T.unheartEndpoint;if(b&&O)return W?O:b};
_.d.computeButtonAccessibility=function(W,O){var b,T,L=W==null?void 0:(b=W.heartedAccessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label,h,Z;W=W==null?void 0:(h=W.unheartedAccessibility)==null?void 0:(Z=h.accessibilityData)==null?void 0:Z.label;return O?L:W};
_.Jq.Object.defineProperties(SZ.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 W;return _.e("kevlar_system_icons")&&!((W=this.data)==null||!W.isHearted)}}});
SZ.prototype.onYtButtonTap=SZ.prototype.onYtButtonTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],SZ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],SZ.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],SZ.prototype,"data",void 0);_.t([_.x("data.isHearted"),_.N("design:type",Object),_.N("design:paramtypes",[])],SZ.prototype,"heartTooltip",null);
_.t([_.x("data.isHearted"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SZ.prototype,"iconFilled",null);_.t([_.C({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.N("design:type",String)],SZ.prototype,"buttonAccessibility",void 0);_.t([_.C({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],SZ.prototype,"heartButtonStyle",void 0);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SZ.prototype,"onYtButtonTap",null);SZ=_.t([_.G({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],SZ);
_.H(SZ,"ytd-creator-heart-renderer",function(){if(Jmf!==void 0)return Jmf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Jmf=W},{mode:1});var Z1=function(){var W=_.n.apply(this,arguments)||this;W.hasCreatorReply=!1;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};W.forceIconButton=!_.e("web_modern_buttons");W.modern=_.e("web_modern_buttons");W.buttonTooltipPosition="bottom";W.systemIcons=_.e("kevlar_system_icons");W.replyDialog=null;return W};
_.R(Z1,_.n);_.d=Z1.prototype;
_.d.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]]"}}}}}};
_.d.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.d.dataChange=function(){this.replyDialog&&_.Q(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var W,O,b;this.isLiked=this.systemIcons&&!!((W=this.data)==null?0:(O=W.likeButton)==null?0:(b=O.toggleButtonRenderer)==null?0:b.isToggled)};
_.d.computeShowVoteCountBeginning=function(W,O){return W===void 0||O===void 0?!0:W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!O&&this.ytRendererBehavior.getSimpleString(O)!=="0"};
_.d.computeShowVoteCountEnd=function(W,O){return W===void 0||O===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!O&&this.ytRendererBehavior.getSimpleString(O)!=="0"};
_.d.computeShowCommentCount=function(W,O){return W===void 0||O===void 0?!0:W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!O&&this.ytRendererBehavior.getSimpleString(O)!=="0"};
_.d.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.d.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.d.showReplyDialog=function(W){W&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Q(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=W,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.d.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.d.onRequestSent=function(W){if(_.e("web_button_rework")){W=_.S(W.detail);for(var O=W.next();!O.done;O=W.next())(O=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",O.value))&&this.showReplyDialog(O)}};
_.d.onYtNavigate=function(W){var O,b;(W=(O=_.P(W.detail.endpoint,_.tY9))==null?void 0:(b=O.dialog)==null?void 0:b.commentReplyDialogRenderer)&&this.showReplyDialog(W)};
_.d.onYtServiceRequestSent=function(W,O){W.stopPropagation();if(O.actions)for(W=0;W<O.actions.length;W++){var b=_.P(O.actions[W],cs1);b&&this.handleUpdateCommentVoteAction(b)}};
_.d.handleUpdateCommentVoteAction=function(W){this.voteCount=W.voteCount||_.VV("0");W.voteStatus==="LIKE"?this.JSC$13697_ytdDislikeToggleButtonRenderer.toggle(!1):W.voteStatus==="DISLIKE"?this.JSC$13697_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13697_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13697_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.d.computeReplyButtonHidden=function(W){return W};
_.d.computeReplyButtonBeginning=function(W){return(W==null?0:W.replyButton)&&W.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.d.computeReplyButtonEnd=function(W){return(W==null?0:W.replyButton)&&W.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?W.replyButton:void 0};
_.d.computeActionButtonStyle=function(W){return(W==null?0:W.style)?W.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.d.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.d.onYtToggleButton=function(W){var O,b;this.isLiked=this.systemIcons&&!!((O=W.detail)==null?0:(b=O.actions)==null?0:b.like)};
Z1.prototype.onYtToggleButton=Z1.prototype.onYtToggleButton;Z1.prototype.onButtonTooltipPositionChanged=Z1.prototype.onButtonTooltipPositionChanged;Z1.prototype.onYtServiceRequestSent=Z1.prototype.onYtServiceRequestSent;Z1.prototype.onYtNavigate=Z1.prototype.onYtNavigate;Z1.prototype.onRequestSent=Z1.prototype.onRequestSent;Z1.prototype.onYtCommentboxDismiss=Z1.prototype.onYtCommentboxDismiss;Z1.prototype.dataChange=Z1.prototype.dataChange;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"voteCount",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"commentCount",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"replyThumbnail",void 0);
_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"hasCreatorReply",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z1.prototype,"enableCreationBox",void 0);_.t([_.C({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],Z1.prototype,"actionButtonsStyle",void 0);_.t([_.C({computed:"computeReplyButtonBeginning(data)"}),_.N("design:type",Object)],Z1.prototype,"replyButtonBeginning",void 0);
_.t([_.C({computed:"computeReplyButtonEnd(data)"}),_.N("design:type",Object)],Z1.prototype,"replyButtonEnd",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"buttonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"replyButtonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"forceIconButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z1.prototype,"useCommentIcon",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z1.prototype,"modern",void 0);_.t([_.C(),_.N("design:type",Object)],Z1.prototype,"buttonTooltipPosition",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z1.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z1.prototype,"isLiked",void 0);_.t([_.El("ytd-button-renderer"),_.N("design:type",Object)],Z1.prototype,"ytdReplyButtonRenderer",void 0);
_.t([_.El("#like-button"),_.N("design:type",Object)],Z1.prototype,"JSC$13697_ytdLikeToggleButtonRenderer",void 0);_.t([_.El("#dislike-button"),_.N("design:type",Object)],Z1.prototype,"JSC$13697_ytdDislikeToggleButtonRenderer",void 0);_.t([_.El("#reply-dialog"),_.N("design:type",HTMLElement)],Z1.prototype,"replyDialogElement",void 0);_.t([_.El("#reply-button"),_.N("design:type",HTMLElement)],Z1.prototype,"replyButtonElement",void 0);
_.t([_.El("#reply-button-end"),_.N("design:type",HTMLElement)],Z1.prototype,"replyButtonEndElement",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z1.prototype,"dataChange",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z1.prototype,"onYtCommentboxDismiss",null);
_.t([_.ai("yt-service-request-sent-button-renderer"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z1.prototype,"onRequestSent",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z1.prototype,"onYtNavigate",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],Z1.prototype,"onYtServiceRequestSent",null);_.t([_.m5("buttonTooltipPosition"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z1.prototype,"onButtonTooltipPositionChanged",null);
_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Z1.prototype,"onYtToggleButton",null);Z1=_.t([_.G({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],Z1);
_.H(Z1,"ytd-comment-action-buttons-renderer",function(){if(uwL!==void 0)return uwL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return uwL=W},{mode:1});var cmw;var I_=function(){return _.n.apply(this,arguments)||this};
_.R(I_,_.n);I_.prototype.focus=function(){_.Q(this.hostElement).querySelector("#commentbox").focus()};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],I_.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],I_.prototype,"zeroStepChannelCreationRenderer",void 0);I_=_.t([_.G({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],I_);
_.H(I_,"ytd-comment-dialog-renderer",function(){if(cmw!==void 0)return cmw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return cmw=W},{mode:1});var F2N;var a_=function(){var W=_.n.apply(this,arguments)||this;W.buttonOverrides={size:"S",iconPosition:"icon-only"};W.replyButtonOverrides={size:"S",type:"text"};return W};
_.R(a_,_.n);_.d=a_.prototype;_.d.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.d.detached=function(){this.replyBox&&this.replyBox.remove()};
_.d.showReplyDialog=function(W){if(W){var O=this.replyBox;O||(O=document.createElement("ytd-comment-reply-dialog-renderer"),O.id="replybox",_.Q(this.replyDialogDiv).appendChild(O));O.data=W;this.replyDialogDiv.hidden=!1;O.openDialog()}};
_.d.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.d.onYtServiceRequestSent=function(W,O){W.stopPropagation();if(O.actions)for(var b=0;b<O.actions.length;b++){var T=_.P(O.actions[b],cs1);T?this.handleUpdateCommentVoteAction(T):W.target===this.heartButton&&this.toggleHeartState()}};
_.d.handleUpdateCommentVoteAction=function(W){var O;(O=this.toolbarState)!=null&&O.key&&this.ytdReduxBehavior.dispatch(_.o4("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:W.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":W.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.d.toggleHeartState=function(){var W;(W=this.toolbarState)!=null&&W.key&&this.ytdReduxBehavior.dispatch(_.o4("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Jq.Object.defineProperties(a_.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return(((W=this.toolbarState)==null?void 0:W.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(O=this.toolbarData)==null?void 0:O.likeCountLiked:(b=this.toolbarData)==null?void 0:b.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand)!==void 0&&!_.e("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O=_.P((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.D6),b,T,L,h,Z,a,m,w,A;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((T=this.toolbarState)==null?void 0:T.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:O!=null?O:_.P((L=this.toolbarSurface)==null?void 0:L.likeCommand,_.D6),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:O!=null?O:_.P((h=this.toolbarSurface)==null?void 0:h.unlikeCommand,_.D6),defaultCommand:this.isVisiblyDisabled?_.P((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.D6):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.likeInactiveTooltip,toggledTooltip:(m=this.toolbarData)==null?void 0:m.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(w=this.toolbarData)==null?void 0:w.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O=_.P((W=this.toolbarSurface)==null?void 0:W.prepareAccountCommand,_.D6),b,T,L,h,Z,a,m,w,A,X;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((b=this.toolbarSharedData)==null||!b.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((T=this.toolbarState)==null?void 0:T.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:O!=null?O:_.P((L=this.toolbarSurface)==null?void 0:L.dislikeCommand,_.D6),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:O!=null?O:_.P((h=this.toolbarSurface)==null?void 0:h.undislikeCommand,_.D6),defaultCommand:this.isVisiblyDisabled?_.P((Z=this.toolbarSurface)==null?void 0:Z.commentDisabledActionCommand,_.D6):void 0,defaultTooltip:(a=this.toolbarData)==null?void 0:a.dislikeInactiveTooltip,toggledTooltip:(m=this.toolbarData)==null?void 0:
m.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(w=this.toolbarSharedData)==null?void 0:w.dislikeReplyButtonA11y:(A=this.toolbarSharedData)==null?void 0:A.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(X=this.toolbarSharedData)==null?void 0:X.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O,b;if(((W=this.toolbarState)==null?void 0:W.heartState)!==void 0&&((O=this.toolbarState)==null?void 0:O.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var T,L,h,Z,a,m,w,A,X,l,p,K,k,r;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(T=this.toolbarData)==null?void 0:T.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((L=this.toolbarState)==null?void 0:L.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((h=this.toolbarState)==null?void 0:h.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((Z=this.toolbarState)==null?void 0:Z.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.P((m=this.toolbarSurface)==null?void 0:m.heartCommand,
_.D6),unheartEndpoint:this.isVisiblyDisabled?void 0:_.P((w=this.toolbarSurface)==null?void 0:w.unheartCommand,_.D6),disabledEndpoint:this.isVisiblyDisabled?_.P((A=this.toolbarSurface)==null?void 0:A.commentDisabledActionCommand,_.D6):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(X=this.toolbarData)==null?void 0:X.heartActiveTooltip,unheartedTooltip:(l=this.toolbarData)==null?void 0:l.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((p=
this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(K=this.toolbarSharedData)==null?void 0:K.unheartButtonA11y:(k=this.toolbarSharedData)==null?void 0:k.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(r=this.toolbarSharedData)==null?void 0:r.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.toolbarSurface)==null||!W.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(W=this.commentStrings)==null?void 0:W.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.P((O=this.toolbarSurface)==null?void 0:O.replyCommand,_.D6),command:this.isVisiblyDisabled?_.P((b=this.toolbarSurface)==null?void 0:b.commentDisabledActionCommand,
_.D6):this.isSubscribersOnlyComments?_.P((T=this.toolbarSurface)==null?void 0:T.subscribersOnlySnackbarCommand,_.D6):void 0}}}});
a_.prototype.onYtServiceRequestSent=a_.prototype.onYtServiceRequestSent;a_.prototype.hideReplyDialogDiv=a_.prototype.hideReplyDialogDiv;_.t([_.C(),_.N("design:type",Object)],a_.prototype,"commentStrings",void 0);_.t([_.C(),_.N("design:type",Boolean)],a_.prototype,"isReply",void 0);_.t([_.C(),_.N("design:type",Object)],a_.prototype,"toolbarData",void 0);_.t([_.C(),_.N("design:type",Object)],a_.prototype,"toolbarSharedData",void 0);
_.t([_.C(),_.N("design:type",String)],a_.prototype,"toolbarStateKey",void 0);_.t([_.C(),_.N("design:type",String)],a_.prototype,"toolbarSurfaceKey",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],a_.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],a_.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],a_.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.El("#reply-dialog"),_.N("design:type",HTMLElement)],a_.prototype,"replyDialogDiv",void 0);_.t([_.El("#replybox"),_.N("design:type",Object)],a_.prototype,"replyBox",void 0);_.t([_.El("ytd-creator-heart-renderer"),_.N("design:type",Object)],a_.prototype,"heartButton",void 0);_.t([_.C({selector:function(W,O){return _.IJ(W.entities,"engagementToolbarStateEntityPayload",O)},
selectorArgs:["toolbarStateKey"]}),_.N("design:type",Object)],a_.prototype,"toolbarState",void 0);_.t([_.C({selector:waX,selectorArgs:["toolbarSurfaceKey"]}),_.N("design:type",Object)],a_.prototype,"toolbarSurface",void 0);_.t([_.C(),_.N("design:type",Object)],a_.prototype,"buttonOverrides",void 0);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a_.prototype,"hideReplyDialogDiv",null);
_.t([_.x("toolbarData","toolbarState"),_.N("design:type",String),_.N("design:paramtypes",[])],a_.prototype,"likeCount",null);_.t([_.x("likeCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a_.prototype,"showLikeCount",null);_.t([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a_.prototype,"isVisiblyDisabled",null);_.t([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a_.prototype,"isSubscribersOnlyComments",null);
_.t([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a_.prototype,"hasPrepareAccountCommand",null);_.t([_.x("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],a_.prototype,"likeToggleButtonRenderer",null);_.t([_.x("isReply","toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],a_.prototype,"dislikeToggleButtonRenderer",null);
_.t([_.x("toolbarData","toolbarState","toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],a_.prototype,"creatorHeartSupportedRenderer",null);_.t([_.x("toolbarSurface"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],a_.prototype,"hasReplyCommand",null);_.t([_.x("toolbarSurface","commentStrings","isVisiblyDisabled"),_.N("design:type",Object),_.N("design:paramtypes",[])],a_.prototype,"replyButtonRenderer",null);
_.t([_.C(),_.N("design:type",Object)],a_.prototype,"replyButtonOverrides",void 0);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],a_.prototype,"onYtServiceRequestSent",null);a_=_.t([_.G({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],a_);
_.H(a_,"ytd-comment-engagement-bar",function(){if(F2N!==void 0)return F2N;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return F2N=W},{mode:1});var ymz;var mZ=function(){return _.n.apply(this,arguments)||this};
_.R(mZ,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mZ.prototype,"data",void 0);mZ=_.t([_.G({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],mZ);
_.H(mZ,"ytd-comment-inline-thumbnail-renderer",function(){if(ymz!==void 0)return ymz;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ymz=W},{mode:1});var WL1;var YA=function(){return _.n.apply(this,arguments)||this};
_.R(YA,_.n);_.t([_.C(),_.N("design:type",Object)],YA.prototype,"data",void 0);YA=_.t([_.G({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],YA);
_.H(YA,"ytd-comment-pause-composer-renderer",function(){if(WL1!==void 0)return WL1;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return WL1=W},{mode:1});var Otz;var itf;var Eq=function(){var W=_.n.apply(this,arguments)||this;W.isOpen=!1;return W};
_.R(Eq,_.n);_.d=Eq.prototype;_.d.dataChanged=function(){this.isOpen=!1};
_.d.onTap=function(){this.data&&(this.data.navigationEndpoint?_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.d.focus=function(){this.JSC$13723_commentbox.focus()};
_.d.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.d.openDialog=function(){this.isOpen=!0;this.JSC$13723_commentbox.focus();this.JSC$13723_commentbox.maybeHeightChanged()};
Eq.prototype.onYtCommentboxDismiss=Eq.prototype.onYtCommentboxDismiss;Eq.prototype.dataChanged=Eq.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Eq.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Eq.prototype,"isOpen",void 0);_.t([_.El("#commentbox"),_.N("design:type",Object)],Eq.prototype,"JSC$13723_commentbox",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eq.prototype,"dataChanged",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Eq.prototype,"onYtCommentboxDismiss",null);Eq=_.t([_.G({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],Eq);
_.H(Eq,"ytd-comment-reply-dialog-renderer",function(){if(itf!==void 0)return itf;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return itf=W},{mode:1});var btn;var wP=function(){return _.n.apply(this,arguments)||this};
_.R(wP,_.n);_.Jq.Object.defineProperties(wP.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.icon)==null?void 0:O.iconType;return b?"yt-icons:"+b.toLowerCase():null}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wP.prototype,"data",void 0);_.t([_.C(),_.x("data.icon"),_.N("design:type",Object),_.N("design:paramtypes",[])],wP.prototype,"icon",null);wP=_.t([_.G({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],wP);
_.H(wP,"ytd-pinned-comment-badge-renderer",function(){if(btn!==void 0)return btn;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return btn=W},{mode:1});var jIq;var TKv={},LL$={input:!0,meta:!0,br:!0,link:!0,img:!0},A0=null;TKv.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(){A0==null&&(A0=document.createElement("tp-yt-paper-tooltip"),A0.offset=8,A0.fitToVisibleBounds=!0)},
onMouseOver_:function(W){if(W=_.sM(W.target,function(L){return L==this||L.getAttribute&&L.getAttribute("shared-tooltip-text")}.bind(this),!0)){var O=W.getAttribute("shared-tooltip-text");
if(O){var b=this,T=null;W!=this&&(W.tagName.toLowerCase()in LL$?b=W.parentElement:b=W,W.id&&(T=W.id));this.polymerController.createTooltipIfRequired_();if(A0.parentElement!=b||A0.for!=T)(0,_.h1)(A0).textContent=O,_.Q(b).appendChild(A0),A0.for=T,A0.animationDelay=this.polymerController.sharedTooltipAnimationDelay,A0.position=this.polymerController.sharedTooltipPosition}}}};var Xj=function(){return _.n.apply(this,arguments)||this};
_.R(Xj,_.n);Xj.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]]"}}}}}};
Xj.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
Xj.prototype.colorChanged=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.color)==null?void 0:(b=O.basicColorPaletteData)==null?void 0:b.foregroundBodyColor;T&&(this.rgbBadgeColor=_.zF(T));_.Q(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Xj.prototype.tooltipChanged=function(){var W;((W=this.data)==null?0:W.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Xj.prototype.tooltipChanged=Xj.prototype.tooltipChanged;Xj.prototype.colorChanged=Xj.prototype.colorChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(TKv.YtSharedTooltipBehavior),_.N("design:type",Object)],Xj.prototype,"ytSharedTooltipBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xj.prototype,"data",void 0);
_.t([_.C({value:"#4285F4"}),_.N("design:type",String)],Xj.prototype,"rgbBadgeColor",void 0);_.t([_.m5("data.color"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xj.prototype,"colorChanged",null);_.t([_.m5("data.tooltip"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xj.prototype,"tooltipChanged",null);Xj=_.t([_.G({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Xj);
_.H(Xj,"ytd-sponsor-comment-badge-renderer",function(){if(jIq!==void 0)return jIq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return jIq=W},{mode:1});var d0w;var he7;var Uq=function(){return _.n.apply(this,arguments)||this};
_.R(Uq,_.n);Uq.prototype.computeState=function(W){switch(W==null?void 0:W.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"}};
Uq.prototype.updateStateIdentifier=function(W){if(this.viewModel.triStateKey){var O=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.o4("triStateButtonStateEntityPayload",O,{key:O,stateIdentifier:W}))}};
Uq.prototype.onClick=function(){var W=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(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){W.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Jq.Object.defineProperties(Uq.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 W;return((W=this.data)==null?void 0:W.buttonText)||""}}});
_.t([_.C(),_.N("design:type",Object)],Uq.prototype,"viewModel",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Uq.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Uq.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.t([_.C({selector:AK8,selectorArgs:["viewModel.triStateKey"]}),_.N("design:type",Object)],Uq.prototype,"triStateButtonStateEntity",void 0);
_.t([_.C({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.N("design:type",String)],Uq.prototype,"state",void 0);_.t([_.x("viewModel","state"),_.N("design:type",Object),_.N("design:paramtypes",[])],Uq.prototype,"data",null);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Uq.prototype,"buttonText",null);Uq=_.t([_.G({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],Uq);
_.H(Uq,"ytd-tri-state-button-view-model",function(){if(he7!==void 0)return he7;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return he7=W},{mode:1});var SbS;var ZtN;var lG=function(){var W=_.n.apply(this,arguments)||this;W.defaultIconToFilled=!_.e("kevlar_fill_comment_chip_icon_killswitch");return W};
_.R(lG,_.n);lG.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
lG.prototype.dataChanged=function(){if(this.data){var W,O;((W=this.data.chipColorPalette)==null?0:W.backgroundColor)&&((O=this.data.chipColorPalette)==null?0:O.foregroundTitleColor)&&_.Sl(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.C_(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.C_(this.data.chipColorPalette.foregroundTitleColor)});var b;((b=this.data)==null?0:b.command)?(_.Sl(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Sl(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}};
lG.prototype.onTap=function(){var W;if(this.data&&(W=this.data)!=null&&W.command){var O;this.ytComponentBehavior.resolveCommand((O=this.data)==null?void 0:O.command)}};
lG.prototype.getIconSize=function(){return _.e("kevlar_fill_comment_chip_icon_killswitch")?24:12};
lG.prototype.onTap=lG.prototype.onTap;lG.prototype.dataChanged=lG.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lG.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],lG.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.wc),_.N("design:type",Object)],lG.prototype,"ironA11yKeysBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lG.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],lG.prototype,"basePriceText",void 0);_.t([_.C(),_.N("design:type",Object)],lG.prototype,"chipIcon",void 0);_.t([_.C(),_.N("design:type",Object)],lG.prototype,"defaultIconToFilled",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lG.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lG.prototype,"onTap",null);
lG=_.t([_.sl({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],lG);
_.H(lG,"yt-pdg-comment-chip-renderer",function(){if(ZtN===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;SbS===void 0&&(SbS=document.createElement("template"));var T=SbS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ZtN=W}W=ZtN;return W},{mode:2});var eZ=function(){var W=_.n.apply(this,arguments)||this;W.useSmallAvatars=_.e("small_avatars_for_comments");W.webWatchCompactComments=_.e("web_watch_compact_comments");W.editDialog=null;return W};
_.R(eZ,_.n);_.d=eZ.prototype;_.d.onShow=function(){_.ra("cmv",void 0,"wn_comments")};
_.d.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"}}}};
_.d.detached=function(){this.editDialog=null;this.expander.reset()};
_.d.updateBackgroundColor=function(){if(this.backgroundColor){var W={"--ytd-comment-paid-background-color":_.C_(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Sl(this.hostElement,W)}else _.Sl(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.d.resetExpander=function(){var W;(W=this.expander)==null||W.reset()};
_.d.openEditDialog=function(W){W.dialog&&(this.editDialog=W.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.d.onYtNavigate=function(W){var O=W.detail.endpoint;if(O=_.P(O,_.$VL)||_.P(O,_.VYf))W.stopPropagation(),this.openEditDialog(O)};
_.d.onYtCommentboxDismiss=function(){this.editDialog=null;_.Sl(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.d.onAuthorThumbnailClicked=function(){var W=this;_.e("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(O,b){W.onAuthorThumbnailEndpointSuccess(b)},
onServerError:function(O,b){_.z5(new _.pu("Failed to resolve the command",b))}}})};
_.d.onAuthorThumbnailEndpointSuccess=function(W){if((W=W==null?void 0:W.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(W,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();W=W==null?void 0:W.clickTrackingParams;var O=_.sk();W&&O&&_.A4().graftServerVe(W,O)}};
_.d.logScreenVe=function(){_.bh(_.A4(),66557)};
_.d.onYtCommentboxResize=function(W){var O;(W==null?0:(O=W.detail)==null?0:O.height)&&_.Sl(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":W.detail.height+"px"})};
_.Jq.Object.defineProperties(eZ.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 W,O=(W=this.commentEntity)==null?void 0:W.author;return O&&(O.isCreator||O.isVerified||O.isArtist)?{renderer:{authorEndpoint:O.channelPageEndpoint?_.P(O.channelPageEndpoint,_.D6):_.P(O.channelCommand,_.D6),authorText:{runs:[{text:O.displayName}]},color:O.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:O.isArtist?{iconType:"AUDIO_BADGE"}:
O.isVerified?{iconType:O.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:O.isArtist||O.isVerified?O.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.commentEntity)==null?void 0:W.author;return O!=null&&O.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:O.sponsorBadgeUrl}]},tooltip:O.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return _.P((W=this.commentSurfaceEntity)==null?void 0:W.pdgCommentChip,_.lR7)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&((W=this.voiceReplyContainerViewModel)==null?void 0:W.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return _.P((W=this.commentSurfaceEntity)==null?void 0:W.voiceReplyContainerViewModel,j6f)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var W;return this.voiceReplyContainerViewModel&&(W=this.voiceReplyContainerViewModel)!=null&&W.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.commentSurfaceEntity)==null?void 0:W.commentBackgroundColor)!=null?O:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.e("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var W,O;return(((W=this.commentEntity)==null?void 0:(O=W.properties)==null?void 0:O.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,O;if(_.e("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(O=W.author)==null?0:O.profileCardEndpoint)&&this.viewModel.allowProfileCard){var b,T;return _.P((b=this.commentEntity)==null?void 0:(T=b.author)==null?void 0:T.profileCardEndpoint,_.D6)}var L,h;return _.P((L=this.commentEntity)==null?void 0:(h=L.avatar)==null?void 0:h.endpoint,_.D6)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var W,O;if(_.e("enable_profile_cards_on_comments")&&((W=this.commentEntity)==null?0:(O=W.author)==null?0:O.channelPageEndpoint)){var b,T;return _.P((b=this.commentEntity)==null?void 0:(T=b.author)==null?void 0:T.channelPageEndpoint,_.D6)}var L,h;return _.P((L=this.commentEntity)==null?void 0:(h=L.avatar)==null?void 0:h.endpoint,_.D6)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L=(W=this.commentEntity)==null?void 0:(O=W.avatar)==null?void 0:(b=O.image)==null?void 0:(T=b.sources)==null?void 0:T[0];return L?{thumbnails:[{url:L.url,width:L.width,height:L.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.commentEntity)==null?0:(O=W.author)==null?0:O.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.commentEntity)==null?void 0:(O=W.author)==null?void 0:O.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.commentEntity)==null?void 0:(O=W.properties)==null?void 0:O.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.P((W=this.commentSurfaceEntity)==null?void 0:W.publishedTimeCommand,_.D6)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var W,O;if(((W=this.commentEntity)==null?0:W.translatedContent)&&((O=this.translateButtonState)==null?void 0:O.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var b;if((b=this.voiceReplyContainerViewModel)==null?0:b.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var T,L;return((T=this.commentEntity)==null?void 0:(L=T.properties)==null?void 0:L.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.commentSharedEntity)==null?void 0:(O=W.strings)==null?void 0:O.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.commentSharedEntity)==null?void 0:(O=W.strings)==null?void 0:O.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentEntity)==null||!W.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var W,O,b=(O=_.P((W=this.viewModel)==null?void 0:W.translateButton,bff))!=null?O:{},T,L,h,Z,a,m,w,A,X,l,p;return Object.assign({},b,{untoggledStateData:Object.assign({},b.untoggledStateData,{buttonText:(T=this.commentEntity)==null?void 0:(L=T.translateData)==null?void 0:L.text}),togglingStateData:Object.assign({},b.togglingStateData,{buttonText:(h=this.commentSharedEntity)==null?
void 0:(Z=h.strings)==null?void 0:Z.translatingText}),toggledStateData:Object.assign({},b.toggledStateData,{buttonText:(a=this.commentSharedEntity)==null?void 0:(m=a.strings)==null?void 0:m.seeOriginalText}),transitionCommand:((w=this.commentEntity)==null?0:w.translatedContent)?void 0:_.P((A=this.commentEntity)==null?void 0:(X=A.translateData)==null?void 0:X.translateComment,_.D6),triStateKey:(l=this.commentEntity)==null?void 0:(p=l.properties)==null?void 0:p.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((O=_.P(_.P((W=this.toolbarSurface)==null?void 0:W.menuCommand,_.D6),NNv))==null?void 0:(b=O.menu)==null?void 0:b.menuRenderer)||null}}});
eZ.prototype.onYtCommentboxResize=eZ.prototype.onYtCommentboxResize;eZ.prototype.onYtCommentboxDismiss=eZ.prototype.onYtCommentboxDismiss;eZ.prototype.onYtNavigate=eZ.prototype.onYtNavigate;eZ.prototype.resetExpander=eZ.prototype.resetExpander;eZ.prototype.updateBackgroundColor=eZ.prototype.updateBackgroundColor;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],eZ.prototype,"ytdReduxBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],eZ.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],eZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#author-thumbnail > button"),_.N("design:type",HTMLElement)],eZ.prototype,"authorThumbnailAnchor",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"linked",null);
_.t([_.x("viewModel","linked"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"linkedCommentBadge",null);_.t([_.C({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"pinned",null);_.t([_.x("viewModel","pinned"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"pinnedCommentBadge",null);
_.t([_.x("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"authorCommentBadge",null);_.t([_.C({reflectToAttribute:!0}),_.x("authorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"hasAuthorBadge",null);_.t([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"sponsorCommentBadge",null);
_.t([_.C({reflectToAttribute:!0}),_.x("sponsorCommentBadge"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"hasSponsorBadge",null);_.t([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"pdgCommentChipRenderer",null);_.t([_.C({reflectToAttribute:!0}),_.x("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"hasVoiceReply",null);
_.t([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"voiceReplyContainerViewModel",null);_.t([_.x("voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"voiceReplyUnavailableText",null);_.t([_.C(),_.N("design:type",Object)],eZ.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"viewModel",null);
_.t([_.C({selector:function(W,O){return _.IJ(W.entities,"commentSharedEntityPayload",O)},
selectorArgs:["viewModel.sharedKey"]}),_.N("design:type",Object)],eZ.prototype,"commentSharedEntity",void 0);_.t([_.C({selector:function(W,O){return _.IJ(W.entities,"commentEntityPayload",O)},
selectorArgs:["viewModel.commentKey"]}),_.N("design:type",Object)],eZ.prototype,"commentEntity",void 0);_.t([_.C({selector:function(W,O){return _.IJ(W.entities,"commentSurfaceEntityPayload",O)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.N("design:type",Object)],eZ.prototype,"commentSurfaceEntity",void 0);_.t([_.C({selector:waX,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.N("design:type",Object)],eZ.prototype,"toolbarSurface",void 0);_.t([_.C({selector:AK8,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.N("design:type",Object)],eZ.prototype,"translateButtonState",void 0);
_.t([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"backgroundColor",null);_.t([_.C({reflectToAttribute:!0}),_.x("viewModel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"optimalReadingWidthComments",null);_.t([_.El("ytd-expander"),_.N("design:type",Object)],eZ.prototype,"expander",void 0);
_.t([_.m5("backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eZ.prototype,"updateBackgroundColor",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],eZ.prototype,"useSmallAvatars",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],eZ.prototype,"webWatchCompactComments",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"isReply",null);
_.t([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"authorThumbnailEndpoint",null);_.t([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"authorNameEndpoint",null);_.t([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"authorThumbnail",null);_.t([_.x("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],eZ.prototype,"authorTextClass",null);
_.t([_.x("commentEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],eZ.prototype,"authorChannelName",null);_.t([_.x("commentEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"publishedTime",null);_.t([_.x("commentSurfaceEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"publishedTimeCommand",null);
_.t([_.x("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"contentText",null);_.t([_.m5("contentText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eZ.prototype,"resetExpander",null);_.t([_.x("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"shouldShowReadMoreInitially",null);
_.t([_.x("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],eZ.prototype,"expandText",null);_.t([_.x("commentSharedEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],eZ.prototype,"collapseText",null);_.t([_.x("commentEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],eZ.prototype,"shouldShowTranslateButton",null);
_.t([_.x("commentEntity","commentSharedEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"translateButton",null);_.t([_.x("toolbarSurface"),_.N("design:type",Object),_.N("design:paramtypes",[])],eZ.prototype,"overflowMenuRenderer",null);_.t([_.C(),_.N("design:type",Object)],eZ.prototype,"editDialog",void 0);_.t([_.El("ytd-comment-dialog-renderer"),_.N("design:type",Object)],eZ.prototype,"editCommentDialogContainer",void 0);
_.t([_.El("ytd-comment-reply-dialog-renderer"),_.N("design:type",Object)],eZ.prototype,"editReplyDialogContainer",void 0);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eZ.prototype,"onYtNavigate",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eZ.prototype,"onYtCommentboxDismiss",null);
_.t([_.ai("yt-commentbox-resize"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],eZ.prototype,"onYtCommentboxResize",null);eZ=_.t([_.G({disableElementRegistration:!0,is:"ytd-comment-view-model"})],eZ);
_.H(eZ,"ytd-comment-view-model",function(){if(d0w!==void 0)return d0w;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return d0w=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var PW=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_modern_buttons");W.isWatchGrid=_.e("kevlar_watch_grid");W.buttonOverrides={style:"call-to-action"};W.JSC$13769_spinnerEl=null;return W};
_.R(PW,_.n);_.d=PW.prototype;_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.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]]"}}}}}};
_.d.attached=function(){this.isShowRepliesVisible=!0};
_.d.dataChanged=function(){var W=this.expanderContents;W&&(W.hidden=!0);this.isLoading=!1};
_.d.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.d.isLoadingChanged=function(){this.isLoading&&!this.JSC$13769_spinnerEl&&(this.JSC$13769_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Q(this.expanderContents).appendChild(this.JSC$13769_spinnerEl));this.JSC$13769_spinnerEl&&(this.JSC$13769_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var W;(W=this.contents)==null||W.classList.remove("reloading")}};
_.d.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var W=_.P(this.data.viewReplies,_.s2);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.d.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var W=_.P(this.data.hideReplies,_.s2);W&&this.ytRendererBehavior.logExplicitClick(W)};
_.d.isShowMoreChanged=function(){var W=_.Q(this.hostElement).querySelector("#expander-contents");W&&(W.hidden=this.isShowRepliesVisible)};
_.d.computeAlign=function(){if(this.modern){var W;return!((W=this.data)==null?0:W.viewRepliesCreatorThumbnail)}};
_.Jq.Object.defineProperties(PW.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.data)==null?void 0:W.contents;return!!O&&O.length>0&&!!O[O.length-1].continuationItemRenderer}}});
PW.prototype.isShowMoreChanged=PW.prototype.isShowMoreChanged;PW.prototype.isLoadingChanged=PW.prototype.isLoadingChanged;PW.prototype.triggerFirstContinuation=PW.prototype.triggerFirstContinuation;PW.prototype.dataChanged=PW.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.xE),_.N("design:type",Object)],PW.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PW.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],PW.prototype,"modern",void 0);_.t([_.C(),_.N("design:type",Boolean)],PW.prototype,"isLoading",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],PW.prototype,"isShowRepliesVisible",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],PW.prototype,"useNewFormatting",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],PW.prototype,"isWatchGrid",void 0);_.t([_.C(),_.N("design:type",Object)],PW.prototype,"buttonOverrides",void 0);_.t([_.El("#expander-contents"),_.N("design:type",HTMLElement)],PW.prototype,"expanderContents",void 0);_.t([_.El("ytd-continuation-item-renderer"),_.N("design:type",Object)],PW.prototype,"continuationItemRenderer",void 0);_.t([_.El("#contents"),_.N("design:type",HTMLElement)],PW.prototype,"contents",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PW.prototype,"dataChanged",null);_.t([_.x("data.contents"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PW.prototype,"hasContinuation",null);_.t([_.ai("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PW.prototype,"triggerFirstContinuation",null);
_.t([_.m5("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PW.prototype,"isLoadingChanged",null);_.t([_.m5("isShowRepliesVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PW.prototype,"isShowMoreChanged",null);PW=_.t([_.G({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],PW);
_.H(PW,"ytd-comment-replies-renderer",function(){if(Otz!==void 0)return Otz;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Otz=W},{mode:1});var IEL;var p7=function(){var W=_.n.apply(this,arguments)||this;W.isOpen=!1;W.commentDialog=null;W.useSmallAvatars=_.e("small_avatars_for_comments");W.useSmallAvatarsEngagementPanelOnly=_.e("small_avatars_for_comments_ep");W.placeholderFocusListener=null;W.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return W};
_.R(p7,_.n);_.d=p7.prototype;_.d.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]]"}}}}}};
_.d.ready=function(){var W=this,O=_.Q(this.hostElement).querySelector("#placeholder-area"),b=_.Q(this.hostElement).querySelector("#simplebox-placeholder"),T=function(L){L.stopPropagation();L instanceof KeyboardEvent&&L.type==="keypress"&&L.keyCode!==13&&L.keyCode!==32||W.openDialog()};
this.placeholderFocusListener=T;b.addEventListener("focus",this.placeholderFocusListener);O.addEventListener("tap",T);O.addEventListener("keypress",T)};
_.d.maybeRemoveFocusEventListener=function(){var W;(W=this.data)!=null&&W.prepareAccountEndpoint&&!_.e("web_comments_simplebox_modal_focus_on_tap_ks")&&(W=_.Q(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(W.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.d.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.d.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.e("web_comment_simplebox_resolve_polymer_command_ks")?_.ax.instance.resolveCommand(this.data.prepareAccountEndpoint):_.mw(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.Q(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.d.onYtCommentboxDismiss=function(W){W.stopPropagation();this.isOpen=!1};
_.d.onCreateCommentAction=function(W){this.get("createCommentAction.contents",W)&&(this.isOpen=!1)};
_.d.computeCommentDialog=function(W){return{placeholderText:W.placeholderText,authorThumbnail:W.authorThumbnail,submitButton:W.submitButton,imageButton:W.imageButton,cancelButton:W.cancelButton,emojiButton:W.emojiButton,emojis:W.emojis,emojiPicker:W.emojiPicker,aadcGuidelinesStateEntityKey:W.aadcGuidelinesStateEntityKey,openAadcDialog:W.openAadcDialog,unicodeEmojisUrl:W.unicodeEmojisUrl}};
_.d.onHideIdentityChip=function(W){_.P(W,uvL)&&this.set("data.placeholderText",_.P(W,uvL).placeholderText)};
p7.prototype.onYtCommentboxDismiss=p7.prototype.onYtCommentboxDismiss;p7.prototype.dataChanged=p7.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],p7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],p7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],p7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],p7.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],p7.prototype,"isOpen",void 0);_.t([_.C(),_.N("design:type",Object)],p7.prototype,"commentDialog",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],p7.prototype,"engagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],p7.prototype,"useSmallAvatars",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],p7.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],p7.prototype,"enableCreationBox",void 0);_.t([_.C(),_.N("design:type",Boolean)],p7.prototype,"showCreateDialog",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p7.prototype,"dataChanged",null);
_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],p7.prototype,"onYtCommentboxDismiss",null);p7=_.t([_.G({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],p7);
_.H(p7,"ytd-comment-simplebox-renderer",function(){if(IEL!==void 0)return IEL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return IEL=W},{mode:1});var aEv;_.Bs("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var R_=function(){var W=_.n.apply(this,arguments)||this;W.addHoverEffect=_.e("swatcheroo_comments_hover_effect");return W};
_.R(R_,_.n);R_.prototype.onTap=function(W){if(this.addHoverEffect&&!this.engagementPanel&&!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var O;((O=window.getSelection())==null?0:O.toString().length)||_.mw({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
R_.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Jq.Object.defineProperties(R_.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.commentViewModel)return _.P(this.data.commentViewModel,if7)}}});
R_.prototype.onTap=R_.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],R_.prototype,"addHoverEffect",void 0);_.t([_.C(),_.N("design:type",Object)],R_.prototype,"data",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],R_.prototype,"commentViewModel",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],R_.prototype,"engagementPanel",void 0);_.t([_.ai("tap"),_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],R_.prototype,"onTap",null);R_=_.t([_.G({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],R_);
_.H(R_,"ytd-comment-thread-renderer",function(){if(aEv!==void 0)return aEv;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return aEv=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var m0L;var K7=function(){var W=_.n.apply(this,arguments)||this;W.modernTypography=_.e("web_modern_typography");W.compactHeader=_.e("web_watch_compact_comments_header");W.hidePanelButton=!1;W.isPostSchedulingEnabled=_.e("enable_post_scheduling");W.hasFinishedStamping=!1;W.JSC$13787_handleOpenPostCommentDialogActionAfterStamp=!1;W.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return W};
_.R(K7,_.n);_.d=K7.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.d.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13787_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.d.onYtServiceRequestSent=function(W,O){if(!_.e("kevlar_command_handler")&&O.actions)for(W=0;W<O.actions.length;W++){var b=O.actions[W];_.P(b,PU9)&&_.Q(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.P(b,PU9))}};
_.d.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var W;if(this.getPrefilledBackstagePostDialog((W=this.data)==null?void 0:W.actions)){_.Q(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var O=_.Q(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;O&&_.My(this,function(){O.focus();O.openDialog&&O.openDialog()})}}else this.hasActionsChange=!0};
_.d.computeIsBackstage=function(W){return W};
_.d.onYtCommentboxDismiss=function(){_.Q(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.d.removePrefilledDialog=function(W){if(W==null?0:W.actions){for(var O=W.actions.length-1;O>=0;O--){var b=void 0;((b=_.P(W.actions[O],HWH))==null?0:b.dialog)&&delete W.actions[O]}this.set("data",void 0);this.set("data",W)}};
_.d.getPrefilledBackstagePostDialog=function(W){if(W)for(var O=0;O<W.length;O++){var b=W[O],T=void 0;if((T=_.P(b,HWH))==null?0:T.dialog)return _.P(b,HWH).dialog}return null};
_.d.computeBackstagePostDialog=function(W){return W&&(this.getPrefilledBackstagePostDialog(W.actions)||W.createRenderer)};
_.d.dataChanged=function(){if(this.data){var W=this.data.customEmojis,O=this.data.unicodeEmojisUrl;_.rw.clear();O&&_.U3H(_.rw,O);W&&_.rw.load(W)}};
_.d.handleSignalActionOpenPostCommentDialogAction=function(){var W=_.Q(this.hostElement).querySelector("ytd-comment-simplebox-renderer");W?W.openDialog():this.JSC$13787_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Jq.Object.defineProperties(K7.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.e("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h,Z;return!this.hidePanelButton&&_.e("kevlar_watch_comments_panel_button")&&((Z=_.P((W=this.data)==null?void 0:(O=W.sortMenu)==null?void 0:(b=O.sortFilterSubMenuRenderer)==null?void 0:(T=b.subMenuItems)==null?void 0:(L=T[0])==null?void 0:(h=L.serviceEndpoint)==null?void 0:h.commandMetadata,_.F9))==null?void 0:Z.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.EO("MINIPLAYER_EXPAND_LABEL"),text:_.VV(_.EO("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
K7.prototype.dataChanged=K7.prototype.dataChanged;K7.prototype.onYtCommentboxDismiss=K7.prototype.onYtCommentboxDismiss;K7.prototype.observePrefilledBackstagePostDialog=K7.prototype.observePrefilledBackstagePostDialog;K7.prototype.onYtServiceRequestSent=K7.prototype.onYtServiceRequestSent;K7.prototype.onStampFinished=K7.prototype.onStampFinished;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],K7.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],K7.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],K7.prototype,"modernTypography",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],K7.prototype,"compactHeader",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],K7.prototype,"engagementPanel",void 0);_.t([_.C(),_.N("design:type",Object)],K7.prototype,"hidePanelButton",void 0);_.t([_.C({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.N("design:type",Boolean)],K7.prototype,"isBackstage",void 0);_.t([_.C({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.N("design:type",Object)],K7.prototype,"backstagePostDialog",void 0);
_.t([_.C(),_.N("design:type",Object)],K7.prototype,"isPostSchedulingEnabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],K7.prototype,"useSpaceBetween",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","hidePanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],K7.prototype,"showCommentsPanelButton",null);
_.t([_.x("data","showCommentsPanelButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],K7.prototype,"commentsPanelButtonData",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K7.prototype,"onStampFinished",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],K7.prototype,"onYtServiceRequestSent",null);
_.t([_.m5("data.actions"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K7.prototype,"observePrefilledBackstagePostDialog",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],K7.prototype,"onYtCommentboxDismiss",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K7.prototype,"dataChanged",null);
K7=_.t([_.G({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],K7);
_.H(K7,"ytd-comments-header-renderer",function(){if(m0L!==void 0)return m0L;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return m0L=W},{mode:1});var Yb$;var vW=function(){return _.n.apply(this,arguments)||this};
_.R(vW,_.n);_.t([_.C(),_.N("design:type",Object)],vW.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);vW=_.t([_.G({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],vW);
_.H(vW,"ytd-destination-button-renderer",function(){if(Yb$!==void 0)return Yb$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Yb$=W},{mode:1});var EK7;var gP=function(){var W=_.n.apply(this,arguments)||this;W.isRichGrid=!1;W.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};W.modernTypography=_.e("web_modern_typography");return W};
_.R(gP,_.n);_.d=gP.prototype;_.d.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.d.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.d.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.d.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var W;if((W=this.data)==null||!W.isExpanded){W=this.hostElement.clientWidth;var O;if(W&&(O=this.data)!=null&&O.destinationButtons){O=Math.floor((W+4)/214);W=this.data.destinationButtons.length;var b=Math.ceil(W/O);this.fullyVisibleRows=W%O===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}}}};
_.d.updateRichGridDestinationButtonsVisibility=function(){var W,O;if(this.isRichGrid&&((W=this.data)==null||!W.isExpanded)&&(O=this.data)!=null&&O.destinationButtons){W=this.richGridItemsPerRow+1;O=this.data.destinationButtons.length;var b=Math.ceil(O/W);this.fullyVisibleRows=O%W===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
_.d.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
gP.prototype.updateRichGridDestinationButtonsVisibility=gP.prototype.updateRichGridDestinationButtonsVisibility;_.t([_.C(),_.N("design:type",Object)],gP.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Number)],gP.prototype,"fullyVisibleRows",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gP.prototype,"isShowMoreVisible",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gP.prototype,"isRichGrid",void 0);
_.t([_.C({selector:_.sr,value:0}),_.N("design:type",Number)],gP.prototype,"richGridItemsPerRow",void 0);_.t([_.C(),_.N("design:type",Object)],gP.prototype,"gridStateActionMap",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],gP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],gP.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gP.prototype,"modernTypography",void 0);_.t([_.m5("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gP.prototype,"updateRichGridDestinationButtonsVisibility",null);
gP=_.t([_.G({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],gP);
_.H(gP,"ytd-destination-shelf-renderer",function(){if(EK7!==void 0)return EK7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return EK7=W},{mode:1});var w41;var o_=function(){return _.n.apply(this,arguments)||this};
_.R(o_,_.n);o_.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],o_.prototype,"data",void 0);o_=_.t([_.G({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],o_);
_.H(o_,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(w41!==void 0)return w41;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return w41=W},{mode:1});var AJ9;var QS=function(){var W=_.n.apply(this,arguments)||this;W.disableAnimation=!1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;return W};
_.R(QS,_.n);QS.prototype.onTap=function(W){W.preventDefault();this.data&&_.bX(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Jq.Object.defineProperties(QS.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 W,O,b,T,L;return((W=this.data)==null?0:W.checked)?(O=this.data)==null?void 0:(b=O.onStateIcon)==null?void 0:b.iconType:(T=this.data)==null?void 0:(L=T.defaultStateIcon)==null?void 0:L.iconType}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],QS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],QS.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],QS.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],QS.prototype,"disableAnimation",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],QS.prototype,"isSlimlineSurvey",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],QS.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],QS.prototype,"isShortsStyle",void 0);_.t([_.x("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QS.prototype,"isAnimatedIcon",null);
_.t([_.x("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Number),_.N("design:paramtypes",[])],QS.prototype,"iconSize",null);_.t([_.x("isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],QS.prototype,"isDarkTheme",null);_.t([_.x("data.checked"),_.N("design:type",Object),_.N("design:paramtypes",[])],QS.prototype,"icon",null);QS=_.t([_.G({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],QS);
_.H(QS,"ytd-rating-survey-option-renderer",function(){if(AJ9!==void 0)return AJ9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return AJ9=W},{mode:2});var X4N;var kA=function(){var W=_.n.apply(this,arguments)||this;W.firstResponseText=null;W.lastResponseText=null;W.selectedNonStarOption=null;W.hideOptions=!1;W.hideUndoButton=!0;W.disableAnimation=!1;W.showResponseRangeText=!1;W.selectedRatingIndex=-1;W.isSlimlineSurvey=!1;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.slimlineSurveyRatingSelectedIndex=-1;return W};
_.R(kA,_.n);_.d=kA.prototype;_.d.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.d.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.d.onOptionChange=function(W,O){var b=this;W=O.onStateIcon&&O.defaultStateIcon&&O.onStateIcon.iconType===O.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(Z,a){Z.responseText===O.responseText?b.isSlimlineSurvey?(b.selectedRatingIndex=a,b.ytdReduxBehavior.dispatch(goU(a))):(b.setSurveyOptionValue(a,!0,"checked"),b.setSurveyOptionValue(a,!0,"selected")):(b.setSurveyOptionValue(a,!1,"checked"),b.setSurveyOptionValue(a,
!1,"selected"))});
else if(W)this.selectedNonStarOption=O,this.hideOptions=!0;else{var T=this.ytRendererBehavior.getSimpleString(O.responseText),L=!0;this.getOptionRenderers().forEach(function(Z,a){b.setSurveyOptionValue(a,L,"checked");b.setSurveyOptionValue(a,!1,"selected");b.ytRendererBehavior.getSimpleString(Z.responseText)===T&&(L=!1,b.setSurveyOptionValue(a,!0,"selected"))})}W=O.responseEndpoint;
var h;O.followUpCommand&&(h=_.P(O.followUpCommand,w1n));this.isSlimlineSurvey?(this.resetComponent(),_.jx(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.jx(this.hostElement,"ytd-inline-survey-rating-select-action",[W,h])};
_.d.showSelectedOption=function(){var W=this;_.sF.addJob(function(){var O=W.getOptionRenderers()[W.slimlineSurveyRatingSelectedIndex];W.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),O)},8,100)};
_.d.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(W){var O;return(O=_.P(W,X1z))!=null?O:{}}):[]};
_.d.onUndoClick=function(){this.resetComponent();_.jx(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.d.setSurveyOptionValue=function(W,O,b){this.notifyPath("data.ratings."+W+".ratingSurveyOptionRenderer."+b);this.set("data.ratings."+W+".ratingSurveyOptionRenderer."+b,O)};
_.d.resetComponent=function(){var W=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var O=this.getOptionRenderers(),b,T;this.firstResponseText=(T=(b=O[0])==null?void 0:b.responseText)!=null?T:null;var L,h;this.lastResponseText=(h=(L=O[O.length-1])==null?void 0:L.responseText)!=null?h:null;O.forEach(function(Z,a){W.setSurveyOptionValue(a,!1,"checked");W.setSurveyOptionValue(a,!1,"selected")})};
_.Jq.Object.defineProperties(kA.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
kA.prototype.onOptionChange=kA.prototype.onOptionChange;kA.prototype.dataChanged=kA.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],kA.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],kA.prototype,"firstResponseText",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"lastResponseText",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"selectedNonStarOption",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"hideOptions",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"hideUndoButton",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"disableAnimation",void 0);
_.t([_.C(),_.N("design:type",Object)],kA.prototype,"showResponseRangeText",void 0);_.t([_.C(),_.N("design:type",Object)],kA.prototype,"selectedRatingIndex",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kA.prototype,"isSlimlineSurvey",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kA.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kA.prototype,"isShortsStyle",void 0);_.t([_.C({selector:function(W){return W.ui.slimlineSurveyRatingSelectedIndex}}),
_.N("design:type",Object)],kA.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.t([_.x("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kA.prototype,"isSingleSelect",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kA.prototype,"dataChanged",null);
_.t([_.ai("ytd-rating-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],kA.prototype,"onOptionChange",null);kA=_.t([_.G({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],kA);
_.H(kA,"ytd-rating-survey-renderer",function(){if(X4N!==void 0)return X4N;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return X4N=W},{mode:1});var U0N;var lEw;var ee7;var L28=(Pt.FIRSTDAYOFWEEK+1)%7,Pb5=function(W,O,b,T){var L="";if(T.selection&&ik2(T.selection))U8(W,T.selection)&&(L+=" selected");else if(T.selection&&bkX(T.selection)){var h=T.selection.selectionState||"START_DATE";U8(W,T.selection.start)&&(L+=" period-start ",h==="START_DATE"&&(L+="selected"));U8(W,T.selection.end)&&(L+=" period-end ",h==="END_DATE"&&(L+="selected"));l3(W,T.selection.start)||l3(T.selection.end,W)||(L+=" highlighted")}if(l3(O,T.start)||l3(T.end,O))L+=" disabled";T.circleToday&&
U8(O,b)&&(L+=" today");return L};var sq=function(){return _.n.apply(this,arguments)||this};
_.R(sq,_.n);_.d=sq.prototype;_.d.attached=function(){var W=this;_.My(this,function(){W.JSC$13821_calendarMain.scrollHeight>0&&(W.calendarConfig.selection?W.scrollToDate(jpX(W.calendarConfig.selection)):W.scrollToDate(W.calendarConfig.end))})};
_.d.updateSelection=function(W){W=dBO(Object.assign({},this.calendarConfig,{selection:W}),Pb5);this.splice.apply(this,["renderData.months",0,W.length].concat(_.PG(W)))};
_.d.scrollToDate=function(W){this.renderData&&(W=hdi(W,this.renderData),W!==void 0&&this.JSC$13821_calendarMain.scrollToIndex(W))};
_.d.scrollToNextMonth=function(){this.JSC$13821_calendarMain.scrollToIndex(this.JSC$13821_calendarMain.firstVisibleIndex+1)};
_.d.scrollToPrevMonth=function(){this.JSC$13821_calendarMain.firstVisibleIndex===0&&this.JSC$13821_calendarMain.scrollTo(0,0);this.JSC$13821_calendarMain.scrollToIndex(this.JSC$13821_calendarMain.firstVisibleIndex-1)};
_.d.handleDayClick=function(W){_.jx(this.hostElement,"ytd-calendar-date-clicked",[W.model.day.date])};
_.d.handleDayMouseDown=function(W){W.preventDefault();_.jx(this.hostElement,"ytd-calendar-date-mousedown",[W.model.day.date])};
_.d.handleDayMouseUp=function(W){_.jx(this.hostElement,"ytd-calendar-date-mouseup",[W.model.day.date])};
_.d.handleDayMouseEnter=function(W){W.preventDefault();_.jx(this.hostElement,"ytd-calendar-date-mouseenter",[W.model.day.date])};
_.d.handleDayMouseLeave=function(W){_.jx(this.hostElement,"ytd-calendar-date-mouseleave",[W.model.day.date])};
_.Jq.Object.defineProperties(sq.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var W=this.calendarConfig,O=Pb5;O=O===void 0?Pb5:O;for(var b=[],T=0;T<7;T++)b.push(Pt.NARROWWEEKDAYS[(T+L28)%7]);return{months:dBO(W,O),daysOfWeekLabel:b}}}});
_.t([_.C(),_.N("design:type",Object)],sq.prototype,"calendarConfig",void 0);_.t([_.El("#calendar-main"),_.N("design:type",Object)],sq.prototype,"JSC$13821_calendarMain",void 0);_.t([_.x("calendarConfig"),_.N("design:type",Object),_.N("design:paramtypes",[])],sq.prototype,"renderData",null);sq=_.t([_.G({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],sq);
_.H(sq,"ytd-scrollable-calendar",function(){if(ee7!==void 0)return ee7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ee7=W},{mode:2});var p49;var ReU;var BW=function(){var W=_.n.apply(this,arguments)||this;W.hideCharCounter=!1;W.hideLabel=!1;W.noLabelFloat=!1;W.autoValidate=!0;W.invalid=!1;W.disabled=!1;W.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return W};
_.R(BW,_.n);_.d=BW.prototype;_.d.reset=function(W){this.value=W&&this.data?this.data.value=W:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.d.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.d.focusTextInput=function(){this.input.focus()};
_.d.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()};
_.d.valueChanged=function(){var W,O;if(((W=this.data)==null?0:W.value)||((O=this.data)==null?void 0:O.value)==="")this.value=this.data.value;else{var b;((b=this.data)==null?void 0:b.value)!==void 0||this.value||(this.value="")}};
_.d.computeLabel=function(W,O){return O?"":_.NX(W)};
_.d.computeAriaLabel=function(W,O){return O?_.NX(W):""};
_.d.computeErrorMessage=function(W,O,b,T){!W&&O?W=b||this.strings.REQUIRED_LABEL:(W=_.NX(T),W=_.aq(W,"&")?"document"in _.i1?Kih(W):vmX(W):W);return W};
_.d.computeType=function(W){return W==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.d.onTextValueChanged=function(W){this.value=W.detail.value;var O;(O=this.onValueChanged)==null||O.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.d.handleUpdateTextInputFormFieldRendererCommand=function(W){(W=_.P(W,CMf))&&this.data&&this.data.id===W.id&&(W.invalid!==void 0&&(this.invalid=W.invalid),W.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",W.invalidValueErrorMessage))};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("value-changed",this.value))};
_.d.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.Jq.Object.defineProperties(BW.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var W;return!((W=this.data)==null||!W.isMultiline)}}});
BW.prototype.valueChangedForBinding=BW.prototype.valueChangedForBinding;BW.prototype.valueChanged=BW.prototype.valueChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],BW.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],BW.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],BW.prototype,"value",void 0);_.t([_.C(),_.N("design:type",String)],BW.prototype,"pattern",void 0);_.t([_.C(),_.N("design:type",String)],BW.prototype,"errorMessage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],BW.prototype,"componentStyle",void 0);_.t([_.C(),_.N("design:type",Object)],BW.prototype,"hideCharCounter",void 0);
_.t([_.C(),_.N("design:type",Object)],BW.prototype,"hideLabel",void 0);_.t([_.C(),_.N("design:type",Object)],BW.prototype,"noLabelFloat",void 0);_.t([_.C(),_.N("design:type",Function)],BW.prototype,"onValueChanged",void 0);_.t([_.C(),_.N("design:type",Boolean)],BW.prototype,"isMultilineOverride",void 0);_.t([_.C(),_.N("design:type",Object)],BW.prototype,"autoValidate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],BW.prototype,"invalid",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],BW.prototype,"disabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],BW.prototype,"enableOverlayTheme",void 0);_.t([_.C({value:{REQUIRED_LABEL:_.EO("REQUIRED_LABEL",void 0,"Required")}}),_.N("design:type",Object)],BW.prototype,"strings",void 0);_.t([_.El("#input"),_.N("design:type",Object)],BW.prototype,"input",void 0);
_.t([_.x("data","isMultilineOverride"),_.N("design:type",Object),_.N("design:paramtypes",[])],BW.prototype,"isMultiline",null);_.t([_.Ul("data.value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BW.prototype,"valueChanged",null);_.t([_.m5("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BW.prototype,"valueChangedForBinding",null);BW=_.t([_.sl({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],BW);
_.H(BW,"yt-text-input-form-field-renderer",function(){if(ReU===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;p49===void 0&&(p49=document.createElement("template"));var T=p49;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ReU=W}W=ReU;return W},{mode:2});var rP=function(){var W=_.n.apply(this,arguments)||this;W.data=void 0;W.selectionState="START_DATE";W.isStartDateInvalid=!1;W.isEndDateInvalid=!1;W.autoapply=!1;W.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 W};
_.R(rP,_.n);_.d=rP.prototype;_.d.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"}}}}};
_.d.focus=function(){this.startDateInput.focus()};
_.d.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:e7(this.data.selection.start),end:e7(this.data.selection.end)})};
_.d.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.SB(this.selectionState)}};
_.d.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.d.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.d.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.d.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,O=W.end;W=ZkX({start:W.start,end:this.endDate||O},this.startDateInput.value||"");this.isStartDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection=this.endDate?{start:W,end:this.endDate}:W,this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.d.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var W=this.calendar.calendarConfig,O=W.start;W=ZkX({start:this.startDate||O,end:W.end},this.endDateInput.value||"");this.isEndDateInvalid=!W.isValid;W.isValid&&(W=W.value,this.selection={start:this.startDate,end:W},this.calendar.scrollToDate(W));this.updateInvalidState()}};
_.d.handleCalendarDateClicked=function(W){var O=this.selection&&jpX(this.selection),b=this.selection&&TJX(this.selection);O&&!l3(W,O)&&this.selectionState==="END_DATE"?(this.selection={start:O,end:W},this.selectionState="START_DATE"):(b&&!l3(b,W)?this.selection={start:W,end:b}:this.selection=W,this.selectionState="END_DATE")};
_.d.handleCalendarDateMouseDown=function(W){this.selection&&!ik2(this.selection)&&(this.dragPivot=U8(W,this.selection.start)?this.selection.end:U8(W,this.selection.end)?this.selection.start:W)};
_.d.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.d.handleCalendarDateMouseEnter=function(W){this.dragPivot&&(this.selection={start:function(O,b){return l3(O,b)?O:b}(this.dragPivot,W),
end:function(O,b){return l3(O,b)?b:O}(this.dragPivot,W)},this.dragPivot||(this.selectionState="START_DATE"))};
_.d.handleCalendarDateMouseLeave=function(){};
_.d.handleCalendarSubmitDateRange=function(){this.selection&&!ik2(this.selection)&&_.jx(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.d.updateInvalidState=function(){var W=function(O,b){b?O.setAttribute("invalid",""):O.removeAttribute("invalid")};
W(this.startDateInput,this.isStartDateInvalid);W(this.endDateInput,this.isEndDateInvalid)};
_.d.updateDateStrings=function(){this.selection&&(ik2(this.selection)?OkQ(this.selection):(OkQ(this.selection.start),OkQ(this.selection.end)))};
_.d.updateCalendarSelection=function(W){this.calendar.updateSelection(Object.assign({},W,{selectionState:this.selectionState}))};
_.d.updateIsStartDateInvalidFromBinding=function(W){this.isStartDateInvalid=W.detail.value};
_.d.updateIsEndDateInvalidFromBinding=function(W){this.isEndDateInvalid=W.detail.value};
_.d.updateStartDateStringFromBinding=function(){};
_.d.updateEndDateStringFromBinding=function(){};
_.Jq.Object.defineProperties(rP.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:e7(this.data.dateRangeStart),end:e7(this.data.dateRangeEnd),selection:{start:e7(this.data.selection.start),end:e7(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&jpX(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&TJX(this.selection)}}});
rP.prototype.resetTextboxes=rP.prototype.resetTextboxes;rP.prototype.observeSelection=rP.prototype.observeSelection;rP.prototype.dataChanged=rP.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],rP.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#calendar"),_.N("design:type",Object)],rP.prototype,"calendar",void 0);
_.t([_.El("#start-date"),_.N("design:type",Object)],rP.prototype,"startDateInput",void 0);_.t([_.El("#end-date"),_.N("design:type",Object)],rP.prototype,"endDateInput",void 0);_.t([_.C(),_.N("design:type",Object)],rP.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],rP.prototype,"selection",void 0);_.t([_.C(),_.N("design:type",String)],rP.prototype,"selectionState",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rP.prototype,"calendarConfig",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rP.prototype,"errorMessage",null);_.t([_.x("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],rP.prototype,"startDate",null);_.t([_.x("selection"),_.N("design:type",Object),_.N("design:paramtypes",[])],rP.prototype,"endDate",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rP.prototype,"dataChanged",null);
_.t([_.m5("selection","selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rP.prototype,"observeSelection",null);_.t([_.m5("selectionState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rP.prototype,"resetTextboxes",null);rP=_.t([_.G({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],rP);
_.H(rP,"ytd-date-period-picker-renderer",function(){if(lEw!==void 0)return lEw;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return lEw=W},{mode:1});var D1=function(){var W=_.n.apply(this,arguments)||this;var O={};W.actionMap=(O["ytd-date-period-picker-apply"]="handleDateRangeUpdated",O);return W};
_.R(D1,_.n);D1.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
D1.prototype.handleDateRangeUpdated=function(){};
_.t([_.C(),_.N("design:type",Object)],D1.prototype,"data",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],D1.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],D1.prototype,"rendererstamperBehavior",void 0);D1=_.t([_.G({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],D1);
_.H(D1,"ytd-report-history-section-header-renderer",function(){if(U0N!==void 0)return U0N;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return U0N=W},{mode:1});var KLN;var vKw;var gKH;var xA=function(){return _.n.apply(this,arguments)||this};
_.R(xA,_.n);_.Jq.Object.defineProperties(xA.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?0:(O=W.icon)==null?0:O.iconType)?_.Z6(this.data.icon.iconType):""}}});
_.t([_.C(),_.N("design:type",Object)],xA.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],xA.prototype,"icon",null);xA=_.t([_.G({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],xA);
_.H(xA,"ytd-report-history-table-text-cell-renderer",function(){if(gKH!==void 0)return gKH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gKH=W},{mode:1});var zY=function(){return _.n.apply(this,arguments)||this};
_.R(zY,_.n);zY.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zY.prototype,"data",void 0);zY=_.t([_.G({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],zY);
_.H(zY,"ytd-report-history-table-reason-cell-renderer",function(){if(vKw!==void 0)return vKw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return vKw=W},{mode:1});var C7=function(){return _.n.apply(this,arguments)||this};
_.R(C7,_.n);C7.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"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],C7.prototype,"rendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],C7.prototype,"data",void 0);C7=_.t([_.G({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],C7);
_.H(C7,"ytd-report-history-table-cell-renderer",function(){if(KLN!==void 0)return KLN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return KLN=W},{mode:1});var oKz;var qQ=function(){var W=_.n.apply(this,arguments)||this;W.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 W};
_.R(qQ,_.n);qQ.prototype.onDataChanged=function(){var W;if((W=this.data)==null?0:W.style)this.componentStyle=this.getStyleName(this.data.style)};
qQ.prototype.getCellForColumn=function(W){return this.cells.find(function(O){var b;return((b=_.P(O==null?void 0:O.cell,eu$)||_.P(O==null?void 0:O.cell,lAH))==null?void 0:b.columnId)===W.type})};
qQ.prototype.getClassForColumn=function(W){switch(W){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
qQ.prototype.getStyleName=function(W){switch(W){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Jq.Object.defineProperties(qQ.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.cells)||[]).map(function(O){return _.P(O,UaU)})}}});
qQ.prototype.onDataChanged=qQ.prototype.onDataChanged;_.t([_.C(),_.N("design:type",Object)],qQ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],qQ.prototype,"columnRenderData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],qQ.prototype,"componentStyle",void 0);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],qQ.prototype,"cells",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qQ.prototype,"onDataChanged",null);qQ=_.t([_.G({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],qQ);
_.H(qQ,"ytd-report-history-table-row-renderer",function(){if(oKz!==void 0)return oKz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return oKz=W},{mode:1});var QIn;var kd5;var I9T={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},a98={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var n7=function(){return _.n.apply(this,arguments)||this};
_.R(n7,_.n);n7.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"}}}}}};
n7.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Jq.Object.defineProperties(n7.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.columns)?AmE(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ec8(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var W=this.tableSpec,O=I9T;O=O===void 0?a98:O;O=wF2(W.columnDimensions,W.columnsToShow||[],O);W=0;O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,W+=b.minWidth+b.paddingLeft+b.paddingRight;return W}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.t([_.D(_.xE),_.N("design:type",Object)],n7.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],n7.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],n7.prototype,"tableSpec",null);_.t([_.x("tableSpec"),_.N("design:type",Array),_.N("design:paramtypes",[])],n7.prototype,"columnRenderData",null);
_.t([_.x("tableSpec"),_.N("design:type",Number),_.N("design:paramtypes",[])],n7.prototype,"totalMinWidth",null);_.t([_.x("totalMinWidth"),_.N("design:type",String),_.N("design:paramtypes",[])],n7.prototype,"tableWidthStyle",null);n7=_.t([_.G({is:"ytd-table-renderer",disableElementRegistration:!0})],n7);
_.H(n7,"ytd-table-renderer",function(){if(kd5!==void 0)return kd5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kd5=W},{mode:1});var f7=function(){return _.n.apply(this,arguments)||this};
_.R(f7,_.n);f7.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}}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],f7.prototype,"data",void 0);f7=_.t([_.G({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],f7);
_.H(f7,"ytd-report-reason-history-modal-renderer",function(){if(QIn!==void 0)return QIn;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return QIn=W},{mode:1});var sIL;var BK7;var rJw;var GY=function(){return _.n.apply(this,arguments)||this};
_.R(GY,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GY.prototype,"data",void 0);GY=_.t([_.G({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],GY);
_.H(GY,"ytd-profile-column-stats-entry-renderer",function(){if(rJw!==void 0)return rJw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rJw=W},{mode:1});var D01;var HW=function(){return _.n.apply(this,arguments)||this};
_.R(HW,_.n);HW.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],HW.prototype,"data",void 0);HW=_.t([_.G({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],HW);
_.H(HW,"ytd-profile-column-stats-renderer",function(){if(D01!==void 0)return D01;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return D01=W},{mode:1});var x07;var t0=function(){return _.n.apply(this,arguments)||this};
_.R(t0,_.n);_.Jq.Object.defineProperties(t0.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var O,b;W=(O=this.data)==null?void 0:(b=O.thumbnail)==null?void 0:b.thumbnails;var T;return W&&((T=W[0])==null?void 0:T.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.useThumbnailSize)return 80;var O,b;W=(O=this.data)==null?void 0:(b=O.thumbnail)==null?void 0:b.thumbnails;var T;return W&&((T=W[0])==null?void 0:T.height)||80}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],t0.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],t0.prototype,"componentStyle",void 0);_.t([_.x("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],t0.prototype,"thumbnailWidth",null);
_.t([_.x("data.useThumbnailSize"),_.N("design:type",Object),_.N("design:paramtypes",[])],t0.prototype,"thumbnailHeight",null);t0=_.t([_.G({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],t0);
_.H(t0,"ytd-profile-column-user-info-renderer",function(){if(x07!==void 0)return x07;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return x07=W},{mode:1});var $A=function(){return _.n.apply(this,arguments)||this};
_.R($A,_.n);$A.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]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$A.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$A.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],$A.prototype,"componentStyle",void 0);$A=_.t([_.G({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],$A);
_.H($A,"ytd-profile-column-renderer",function(){if(BK7!==void 0)return BK7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return BK7=W},{mode:1});var VS=function(){var W=_.n.apply(this,arguments)||this;W.componentStyle="NON_CENTERED_PROFILE";return W};
_.R(VS,_.n);VS.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
VS.prototype.getIcon=function(W){return W?"settings:"+W.toLowerCase():null};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VS.prototype,"data",void 0);VS=_.t([_.G({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],VS);
_.H(VS,"ytd-page-introduction-renderer",function(){if(sIL!==void 0)return sIL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return sIL=W},{mode:1});var zef;var NQ=function(){return _.n.apply(this,arguments)||this};
_.R(NQ,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],NQ.prototype,"data",void 0);NQ=_.t([_.G({is:"ytd-report-description-renderer",disableElementRegistration:!0})],NQ);
_.H(NQ,"ytd-report-description-renderer",function(){if(zef!==void 0)return zef;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zef=W},{mode:1});var CbH;var qb7;var MQ=function(){return _.n.apply(this,arguments)||this};
_.R(MQ,_.n);MQ.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MQ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.t([_.G({is:"ytd-video-report-renderer",disableElementRegistration:!0})],MQ);
_.H(MQ,"ytd-video-report-renderer",function(){if(qb7!==void 0)return qb7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qb7=W},{mode:1});var nKz;_.Bs("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.Bs("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var uG=function(){return _.n.apply(this,arguments)||this};
_.R(uG,_.n);uG.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]]"}}}}}};
uG.prototype.computeMessageStyle=function(W){return W};
uG.prototype.computeButtonOverride=function(W){var O;if((W==null?0:(O=W.style)==null?0:O.value)&&W.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uG.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],uG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uG.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],uG.prototype,"shelf",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],uG.prototype,"panel",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.N("design:type",Boolean)],uG.prototype,"componentStyle",void 0);_.t([_.C({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],uG.prototype,"buttonOverride",void 0);uG=_.t([_.G({is:"ytd-message-renderer",disableElementRegistration:!0})],uG);
_.H(uG,"ytd-message-renderer",function(){if(nKz!==void 0)return nKz;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nKz=W},{mode:1});var J0=function(){return _.n.apply(this,arguments)||this};
_.R(J0,_.n);J0.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"}}}};
J0.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
J0.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Jq.Object.defineProperties(J0.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!(((W=this.data)==null?0:W.header)&&((O=this.data)==null?0:O.table))}}});
J0.prototype.onRequestError=J0.prototype.onRequestError;_.t([_.D(_.xE),_.N("design:type",Object)],J0.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],J0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],J0.prototype,"data",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],J0.prototype,"isUnifiedReportHistory",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],J0.prototype,"onRequestError",null);J0=_.t([_.G({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],J0);
_.H(J0,"ytd-report-history-section-renderer",function(){if(CbH!==void 0)return CbH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return CbH=W},{mode:1});var fEn;var cW=function(){var W=_.n.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.R(cW,_.n);cW.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cW.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cW.prototype,"answerExpanded",void 0);cW=_.t([_.G({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],cW);
_.H(cW,"ytd-handles-claiming-faq-renderer",function(){if(fEn!==void 0)return fEn;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return fEn=W},{mode:1});var GdN;var Fj=function(){return _.n.apply(this,arguments)||this};
_.R(Fj,_.n);_.t([_.C(),_.N("design:type",Object)],Fj.prototype,"data",void 0);Fj=_.t([_.G({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Fj);
_.H(Fj,"ytd-handles-claiming-faq-section-renderer",function(){if(GdN!==void 0)return GdN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GdN=W},{mode:1});var Ht5;var yS=function(){var W=_.n.apply(this,arguments)||this;W.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";W.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";W.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";W.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";W.leftSquiggly=W.leftSquigglyLight;W.rightSquiggly=W.rightSquigglyLight;
W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return W};
_.R(yS,_.n);_.d=yS.prototype;_.d.updateLeftSquigglyStyle=function(){_.Sl(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.d.updateRightSquigglyStyle=function(){_.Sl(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.d.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),W?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
yS.prototype.updateRightSquigglyStyle=yS.prototype.updateRightSquigglyStyle;yS.prototype.updateLeftSquigglyStyle=yS.prototype.updateLeftSquigglyStyle;_.t([_.C(),_.N("design:type",Object)],yS.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],yS.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",String)],yS.prototype,"leftSquiggly",void 0);_.t([_.C(),_.N("design:type",String)],yS.prototype,"rightSquiggly",void 0);
_.t([_.m5("leftSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yS.prototype,"updateLeftSquigglyStyle",null);_.t([_.m5("rightSquiggly"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yS.prototype,"updateRightSquigglyStyle",null);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yS.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],yS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yS.prototype,"actionButtonOverride",void 0);yS=_.t([_.G({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],yS);
_.H(yS,"ytd-handles-claiming-header-renderer",function(){if(Ht5!==void 0)return Ht5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ht5=W},{mode:1});var tGH;var Wl=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";W.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";W.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";W.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
W.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";W.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";W.image0SquigglyBackground=W.image0LightSquigglyBackground;W.image1SquigglyBackground=W.image1LightSquigglyBackground;W.image3SquigglyBackground=W.image3LightSquigglyBackground;return W};
_.R(Wl,_.n);_.d=Wl.prototype;_.d.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.d.onDataChanged=function(){this.updateTitleAndImages()};
_.d.onThemeChanged=function(){this.updateTitleAndImages()};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.d.updateImage0SquigglyBackground=function(){_.Sl(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.d.updateImage1SquigglyBackground=function(){_.Sl(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.d.updateImage3SquigglyBackground=function(){_.Sl(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.d.updateTitleAndImages=function(){var W,O;((W=this.data)==null?void 0:(O=W.titleImages)==null?void 0:O.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))};
Wl.prototype.updateImage3SquigglyBackground=Wl.prototype.updateImage3SquigglyBackground;Wl.prototype.updateImage1SquigglyBackground=Wl.prototype.updateImage1SquigglyBackground;Wl.prototype.updateImage0SquigglyBackground=Wl.prototype.updateImage0SquigglyBackground;Wl.prototype.onThemeChanged=Wl.prototype.onThemeChanged;Wl.prototype.onDataChanged=Wl.prototype.onDataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Wl.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"title0",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"title1",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"title2",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"title3",void 0);
_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"title4",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"image0",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"image1",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"image2",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"image3",void 0);_.t([_.C(),_.N("design:type",Object)],Wl.prototype,"image4",void 0);_.t([_.C(),_.N("design:type",String)],Wl.prototype,"image0SquigglyBackground",void 0);
_.t([_.C(),_.N("design:type",String)],Wl.prototype,"image1SquigglyBackground",void 0);_.t([_.C(),_.N("design:type",String)],Wl.prototype,"image3SquigglyBackground",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wl.prototype,"onDataChanged",null);_.t([_.m5("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wl.prototype,"onThemeChanged",null);
_.t([_.m5("image0SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wl.prototype,"updateImage0SquigglyBackground",null);_.t([_.m5("image1SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wl.prototype,"updateImage1SquigglyBackground",null);
_.t([_.m5("image3SquigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wl.prototype,"updateImage3SquigglyBackground",null);Wl=_.t([_.G({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],Wl);
_.H(Wl,"ytd-handles-claiming-title-images-section-renderer",function(){if(tGH!==void 0)return tGH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tGH=W},{mode:1});var $0w;var On=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(On,_.n);On.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
On.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
On.prototype.onCopyButtonClick=function(){var W=this,O,b,T;return _.I(function(L){return(O=W.data)!=null&&O.primaryChannelUrl?_.Y(L,navigator.clipboard.writeText(((b=W.data)==null?0:b.encodedChannelUrl)?W.data.encodedChannelUrl:"https://"+_.NX((T=W.data)==null?void 0:T.primaryChannelUrl)),0):L.jumpTo(0)})};
_.t([_.C(),_.N("design:type",Object)],On.prototype,"data",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],On.prototype,"isDarkTheme",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],On.prototype,"ytActionHandlerBehavior",void 0);On=_.t([_.G({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],On);
_.H(On,"ytd-handles-claiming-update-social-renderer",function(){if($0w!==void 0)return $0w;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return $0w=W},{mode:1});var VGU;var ip=function(){var W=_.n.apply(this,arguments)||this;W.JSC$13916_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";W.JSC$13916_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};W.squigglyBackground=W.JSC$13916_squigglyBackgroundLight;return W};
_.R(ip,_.n);ip.prototype.updateSquigglyBackgroundStyle=function(){_.Sl(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
ip.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.squigglyBackground=W?this.JSC$13916_squigglyBackgroundDark:this.JSC$13916_squigglyBackgroundLight};
ip.prototype.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13916_squigglyBackgroundDark:this.JSC$13916_squigglyBackgroundLight)};
ip.prototype.updateSquigglyBackgroundStyle=ip.prototype.updateSquigglyBackgroundStyle;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ip.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ip.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ip.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",String)],ip.prototype,"squigglyBackground",void 0);_.t([_.m5("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ip.prototype,"updateSquigglyBackgroundStyle",null);ip=_.t([_.G({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],ip);
_.H(ip,"ytd-handles-claiming-vanity-info-renderer",function(){if(VGU!==void 0)return VGU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return VGU=W},{mode:1});var NKf;var bp=function(){var W=_.n.apply(this,arguments)||this;W.JSC$13919_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";W.JSC$13919_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";W.squigglyBackground=W.JSC$13919_squigglyBackgroundLight;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(bp,_.n);_.d=bp.prototype;_.d.ready=function(){var W=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(W)};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.set("isDarkTheme",W),this.squigglyBackground=W?this.JSC$13919_squigglyBackgroundDark:this.JSC$13919_squigglyBackgroundLight)};
_.d.updateSquigglyBackgroundStyle=function(){_.Sl(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.d.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.d.detached=function(){this.stop()};
_.d.stop=function(){this.playerElement.stop()};
_.d.setupVideoPlayer=function(){var W=this,O,b;return _.I(function(T){O=W.data.videoId;b="http://i1.ytimg.com/vi/"+O+"/maxresdefault.jpg";W.playerElement.loadVideoWithPlayerVars({video_id:O,iurlhq:b});_.aD(T)})};
bp.prototype.onDataChanged=bp.prototype.onDataChanged;bp.prototype.updateSquigglyBackgroundStyle=bp.prototype.updateSquigglyBackgroundStyle;_.t([_.C({value:!1}),_.N("design:type",Boolean)],bp.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",String)],bp.prototype,"squigglyBackground",void 0);_.t([_.El("#player"),_.N("design:type",Object)],bp.prototype,"playerElement",void 0);_.t([_.C(),_.N("design:type",Object)],bp.prototype,"data",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],bp.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m5("squigglyBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bp.prototype,"updateSquigglyBackgroundStyle",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bp.prototype,"onDataChanged",null);
bp=_.t([_.G({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],bp);
_.H(bp,"ytd-handles-claiming-video-item-renderer",function(){if(NKf!==void 0)return NKf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return NKf=W},{mode:1});var MGn;var T2=function(){var W=_.A1.apply(this,arguments)||this;W.dragging=!1;W.dragMouseStart=0;W.dragOffsetStart=0;W.containerWidthDiff=0;W.boundPrevClick=function(){W.set("offset",jV(W,W.offset-(W.scrollDistance||320)))};
W.boundNextClick=function(){W.set("offset",jV(W,W.offset+(W.scrollDistance||320)))};
W.boundScrollContainerMouseDown=function(O){W.dragMouseStart=O.clientX;W.dragOffsetStart=W.offset;W.dragging=!0};
W.boundScrollContainerDrag=function(O){W.dragging&&W.set("offset",jV(W,W.dragOffsetStart-(O.clientX-W.dragMouseStart)))};
W.boundMouseUp=function(){W.onMouseUp()};
W.boundWheelScroll=function(O){var b=0;Math.abs(O.deltaX)>=Math.abs(O.deltaY)?b=O.deltaX:O.shiftKey&&(b=O.deltaY);b!==0&&(W.offset+=b,O.stopPropagation(),O.preventDefault())};
W.boundChipCloudChipScrollIntoView=function(O){(O=O.detail)&&W.scrollChipIntoView(O)};
return W};
_.R(T2,_.A1);T2.prototype.attached=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container");W.addEventListener("wheel",this.boundWheelScroll);W.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.style.touchAction="pan-y";W.addEventListener("pointerdown",this.boundScrollContainerMouseDown);W.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
T2.prototype.detached=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container");W.removeEventListener("wheel",this.boundWheelScroll);W.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);W.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);W.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
T2.prototype.reset=function(){this.set("offset",0);_.My(this,this.setContainerWidthDiff);LY(this)};
var jV=function(W,O){return Math.min(Math.max(O,0),W.containerWidthDiff)};
T2.prototype.onMouseUp=function(){this.dragging=!1};
T2.prototype.transformContainer=function(){this.offset=jV(this,this.offset);var W=_.Cv("HTML_DIR")==="rtl"?"":"-";_.Q(this.hostElement).querySelector("#chips").style.transform="translateX("+W+this.offset+"px)";LY(this)};
var LY=function(W){_.My(W,W.setButtonsState)};
T2.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=jV(this,this.offset));this.atStart=this.offset<=0};
T2.prototype.setContainerWidthDiff=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container"),O=_.Q(this.hostElement).querySelector("#chips");W&&O&&(this.containerWidthDiff=O.clientWidth-W.clientWidth)};
T2.prototype.scrollChipIntoView=function(W){var O=_.Q(this.hostElement).querySelector("#scroll-container");if(O){var b=this.atStart?0:106,T=this.atEnd?0:106;W.offsetLeft<this.offset+b?this.offset=jV(this,W.offsetLeft-b):W.offsetLeft+W.clientWidth>this.offset+O.clientWidth-T&&(this.offset=jV(this,W.offsetLeft+W.clientWidth+T-O.clientWidth))}};
T2.prototype.transformContainer=T2.prototype.transformContainer;_.t([_.C({value:0}),_.N("design:type",Number)],T2.prototype,"offset",void 0);_.t([_.C({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],T2.prototype,"atStart",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],T2.prototype,"atEnd",void 0);_.t([_.C(),_.N("design:type",Number)],T2.prototype,"scrollDistance",void 0);
_.t([_.m5("offset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T2.prototype,"transformContainer",null);T2=_.t([_.XT()],T2);var ux7;var JJS;var yJn=_.J1(function(W){var O=W.data;W=_.S(_.wu(!1,void 0,"icHmSe"));var b=W.next().value,T=W.next().value;W={};W=_.YS("ytChipShapeChip",function(){a:switch(O==null?void 0:O().state){case 0:var a="ytChipShapeActive";break a;case 1:a="ytChipShapeDisabled";break a;default:a="ytChipShapeInactive"}return a},function(){var a=O().type===1||O().type===2,m=O();
return a||m!=null&&m.startIcon?m==null||!m.startIcon||m!=null&&m.text?a?"ytChipShapeEndIconPadding":(m==null?0:m.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(W.ytChipShapeFocused=function(){var a;
return b()&&((a=O())==null?void 0:a.state)!==1},W));
var L=function(a){if((O==null?void 0:O().state)!==1){var m,w;(w=(m=O()).onTap)==null||w.call(m,a)}},h=_.XL(function(){var a=_.iq().resolve(_.OT(_.bD));
if(a){T(a.isKeyBoardInUse());var m,w;(w=(m=O()).onFocusIn)==null||w.call(m)}return!1}),Z=_.XL(function(){T(!1);
return!1});
return _.E("chip-shape",{class:"ytChipShapeHost","on:focusin":h,"on:focusout":Z},_.E(cJN,{shouldWrapInButton:function(){return O().type!==2},
selected:function(){return O().state===0},
onClick:L,isDropdown:function(){return O().type===1},
accessibilityLabel:function(){return O().accessibilityLabel}},_.E("div",{class:W},_.E(_.U,{cond:function(){return O().startIcon},
then:function(){return _.E(_.Ps,{icon:function(){var a;return(a=O())==null?void 0:a.startIcon},
className:function(){return O().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return O().text},_.E(FL5,{shape:O,
onClick:L}))))},"ub");
yJn.idomCompat=!0;var cJN=_.J1(function(W){var O=_.XL(function(b){W.onClick(b);return!1});
return _.E(_.U,{cond:W.shouldWrapInButton,then:function(){return _.E("button",{class:"ytChipShapeButtonReset","on:click":O,role:function(){return W.isDropdown()?"combobox":"tab"},
"aria-label":W.accessibilityLabel,"aria-selected":W.selected},W.children)},
else:function(){return W.children}})},"vb"),FL5=_.J1(function(W){var O=W.shape;
var b=W.onClick;var T=_.XL(function(L){b(L);return!1});
return _.E(_.vU,null,_.E(_.RW,{when:function(){return O().type===1}},function(){return _.E(_.Ps,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.E(_.RW,{when:function(){return O().type===2}},function(){return _.E("button",{class:"ytChipShapeButtonReset",
"on:click":T},_.E(_.Ps,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.E(_.RW,{when:function(){return O().type===0}},function(){return _.E(_.TT,null)}))},"wb");_.O1(yJn,"chip-shape",{props:{data:_.te}});var dM=function(){var W=_.n.apply(this,arguments)||this;W.disableDeselectEvent=!1;W.modern=_.e("web_modern_typography");W.useChipShape=_.e("web_chip_shape_defrag");W.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return W};
_.R(dM,_.n);_.d=dM.prototype;_.d.beforeRegister=function(){_.e("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.d.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.d.onSelectChipCommand=function(W){if(!this.selected&&this.data&&(W=_.P(W,os9),W.targetId&&W.targetId===this.data.targetId))this.onTap()};
_.d.onFilterChipTransformCommand=function(W){if(!this.selected&&this.data){var O;(W=(O=_.P(W,sd9))==null?void 0:O.chipUniqueId)&&W===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.d.dataChanged=function(){var W=this;_.My(this,function(){W.data&&W.data.isSelected&&!W.selected&&(W.scrollChipIntoView(),W.onTap())})};
_.d.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.d.computeChipStyle=function(W){return W!=null?W:"STYLE_DEFAULT"};
_.d.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.jx(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.jx(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.d.onFocus=function(){var W=_.iq().resolve(_.OT(_.bD));W&&W.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.d.scrollChipIntoView=function(){_.bX(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Jq.Object.defineProperties(dM.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return pFX({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
dM.prototype.onFocus=dM.prototype.onFocus;dM.prototype.onTap=dM.prototype.onTap;dM.prototype.selectionChanged=dM.prototype.selectionChanged;dM.prototype.dataChanged=dM.prototype.dataChanged;_.t([_.D(_.U_),_.N("design:type",Object)],dM.prototype,"ironButtonState",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],dM.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.wc),_.N("design:type",Object)],dM.prototype,"ironA11yKeysBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dM.prototype,"disableDeselectEvent",void 0);_.t([_.C(),_.N("design:type",Object)],dM.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.icon"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dM.prototype,"hasIcon",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.uniqueId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dM.prototype,"isGnomeChip",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dM.prototype,"modern",void 0);_.t([_.C({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.N("design:type",String)],dM.prototype,"chipStyle",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],dM.prototype,"selected",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dM.prototype,"useChipShape",void 0);_.t([_.x("data","selected"),_.N("design:type",Object),_.N("design:paramtypes",[])],dM.prototype,"chipShapeData",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dM.prototype,"dataChanged",null);_.t([_.m5("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dM.prototype,"selectionChanged",null);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dM.prototype,"onTap",null);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dM.prototype,"onFocus",null);dM=_.t([_.sl({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],dM);
_.H(dM,"yt-chip-cloud-chip-renderer",function(){if(JJS===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ux7===void 0&&(ux7=document.createElement("template"));var T=ux7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);JJS=W}W=JJS;return W},{mode:2});var hn=function(){var W=_.n.apply(this,arguments)||this;W.isDarkTheme=!1;W.notSticky=!1;W.transparentBackground=!1;W.shouldHide=!1;W.disableSticky=!1;W.fluidWidth=!1;W.isClipList=!1;W.defaultChipIndex=0;W.isPlaylist=!1;W.playlistVotingAnimationEnabled=_.e("web_enable_voting_animation");W.toolbarHeight=0;W.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return W};
_.R(hn,_.n);_.d=hn.prototype;
_.d.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.d.attached=function(){var W=this;document.addEventListener("scroll",_.Ii(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var O;this.toolbarHeight=((O=document.querySelector("ytd-masthead"))==null?void 0:O.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(b){W.handleIntersect(b)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){W.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.d.detached=function(){var W;(W=this.intersectionObserver)==null||W.disconnect();var O;(O=this.resizeObserver)==null||O.disconnect();document.removeEventListener("scroll",_.Ii(this,this.updateChipBarWidthAndTop))};
_.d.dataChanged=function(){var W=this,O,b,T;((T=_.P((O=this.data)==null?void 0:(b=O.contents)==null?void 0:b[0],cRw))==null?void 0:T.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var L=this.findSelectedChipIndex();this.selectedIndex!==L&&(this.selectedIndex=-1);_.My(this,function(){W.selectedIndex=L;W.updating=!1;W.ytScrollableChipCloudBehavior.reset()})};
_.d.findSelectedChipIndex=function(){var W;if((W=this.data)==null||!W.contents)return 0;W=this.data.contents;for(var O=0;O<W.length;O++){var b=void 0;if((b=_.P(W[O],cRw))==null?0:b.isSelected)return O}return 0};
_.d.computeStyle=function(W){return W};
_.d.handleChipCloudChipSelectAction=function(W){W=this.JSC$13938_chipsSelector.indexOf(W);W>-1&&this.JSC$13938_chipsSelector.selectIndex(W)};
_.d.handleChipCloudChipDeselectAction=function(){if(_.e("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],cRw))==null?void 0:b.navigationEndpoint;T&&_.jx(this.hostElement,"yt-browse-section-list-reload-endpoint",[T]);this.JSC$13938_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.d.onGuideIsExpandedChanged=function(){var W=this.ytScrollableChipCloudBehavior;_.My(W,W.setContainerWidthDiff);LY(this.ytScrollableChipCloudBehavior)};
_.d.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.My(W,W.setContainerWidthDiff);LY(this.ytScrollableChipCloudBehavior)};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.d.handleIntersect=function(W){_.e("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||W[0].intersectionRatio===1)};
_.d.updateDimensions=function(){var W=this.ytRendererBehavior.parentComponent;if(W){var O,b=(O=W.headerElement)!=null?O:W;_.Sl(this.hostElement,{"--ytd-rich-grid-chips-bar-width":b.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.d.updateSelectedIndexFromBinding=function(W){this.selectedIndex=W.detail.value};
_.d.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var W;(W=this.sortFilterHeaderRendererElement)==null||W.setAttribute("is-playlist-page-with-filters","")}};
_.d.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Jq.Object.defineProperties(hn.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 W,O,b=(W=this.data)==null?void 0:(O=W.contents)==null?void 0:O.find(function(T){return _.P(T,LQ$)});
return{sortFilterHeaderRenderer:_.P(b,LQ$)}}}});
hn.prototype.dispatchChipBarIsSticky=hn.prototype.dispatchChipBarIsSticky;hn.prototype.isPlaylistPageChanged=hn.prototype.isPlaylistPageChanged;hn.prototype.updateChipBarWidthAndTop=hn.prototype.updateChipBarWidthAndTop;hn.prototype.onResize=hn.prototype.onResize;hn.prototype.onGuideIsExpandedChanged=hn.prototype.onGuideIsExpandedChanged;hn.prototype.dataChanged=hn.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],hn.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],hn.prototype,"ironResizableBehavior",void 0);_.t([_.D(),_.N("design:type",T2)],hn.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],hn.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],hn.prototype,"data",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],hn.prototype,"selectedIndex",void 0);_.t([_.C({value:320}),_.N("design:type",Number)],hn.prototype,"scrollDistance",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"notSticky",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"transparentBackground",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.N("design:type",String)],hn.prototype,"componentStyle",void 0);_.t([_.C({selector:_.ZNQ}),_.N("design:type",Boolean)],hn.prototype,"guideIsExpanded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"shouldHide",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"disableSticky",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"fluidWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"isClipList",void 0);_.t([_.C(),_.N("design:type",Object)],hn.prototype,"defaultChipIndex",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hn.prototype,"isPlaylist",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hn.prototype,"playlistVotingAnimationEnabled",void 0);_.t([_.El("#chips"),_.N("design:type",Object)],hn.prototype,"JSC$13938_chipsSelector",void 0);_.t([_.El("ytd-sort-filter-header-renderer"),_.N("design:type",HTMLElement)],hn.prototype,"sortFilterHeaderRendererElement",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],hn.prototype,"updating",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"dataChanged",null);_.t([_.m5("guideIsExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"onGuideIsExpandedChanged",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"onResize",null);
_.t([_.Ul("isChannelPageGrid","disableSticky","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"updateChipBarWidthAndTop",null);_.t([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hn.prototype,"isChannelPageGrid",null);_.t([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hn.prototype,"isHashtagLandingPage",null);
_.t([_.m5("isPlaylistPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"isPlaylistPageChanged",null);_.t([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hn.prototype,"isPlaylistPage",null);_.t([_.x("componentStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hn.prototype,"isDisableDeselectEvent",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],hn.prototype,"sortFilterHeaderRendererData",null);_.t([_.C({reflectToAttribute:!0,selector:_.A6h}),_.N("design:type",String)],hn.prototype,"frostedGlassMode",void 0);_.t([_.m5("notSticky"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hn.prototype,"dispatchChipBarIsSticky",null);hn=_.t([_.G({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],hn);
_.H(hn,"ytd-feed-filter-chip-bar-renderer",function(){if(MGn!==void 0)return MGn;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return MGn=W},{mode:1});var WkH;var Oxw=_.J1(function(W){var O=W.data;var b=W.buttonIndex;var T=W.selectedIndex;var L=W.onSelect;var h=function(){return b()===T()},Z=function(){var m,w;
return(w=(m=O().text)==null?void 0:m.content)!=null?w:""};
_.XL(function(){});
W=_.MF1();var a=_.XL(function(){L(O().onSubmitCommand);return!1});
return _.E("yt-toggleable-image-button-view-model",{class:function(){var m={};m=(m["toggleable-image-button-view-model-wiz"]=!0,m[""]=!0,m["toggleable-image-button-view-model-wiz__semi-transparent"]=T()!==-1&&!h(),m);return _.wd(m)},
tabindex:0,"aria-label":Z,"aria-pressed":h,role:"button","on:keydown":W,"on:click":a},_.E(_.U,{cond:function(){return O().logo},
then:function(m){return _.E(_.uj,{data:m,className:function(){var w={};w=(w["toggleable-image-button-view-model-wiz__image"]=!0,w["toggleable-image-button-view-model-wiz__circular-radius"]=!(!O().backgroundColor||!O().backgroundColorDarkMode),w["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(h()&&O().backgroundColor&&O().backgroundColorDarkMode),w);return _.wd(w)},
alt:Z,useWidth:!1,style:function(){if(h()&&O().backgroundColor&&O().backgroundColorDarkMode){var w=qd(Number(O().backgroundColorDarkMode),"1");var A=qd(Number(O().backgroundColor),"1");w="background: linear-gradient(180deg,"+w+","+A+") border-box;"}else w="";return w}})}}),_.E(_.Kd,{model:{borderRadius:"16px"}}),_.E("p",{class:function(){var m={};
m=(m["toggleable-image-button-view-model-wiz__label"]=!0,m["toggleable-image-button-view-model-wiz__bold-text"]=h(),m);return _.wd(m)}},_.E(_.uw,{text:function(){return O().text}})))},"xb");
Oxw.idomCompat=!0;var bxn=_.J1(function(W){var O=W.data;W=_.S(_.wu({index:-1,command:{}},void 0,"Zcqtsb"));var b=W.next().value,T=W.next().value;return _.E("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.E("div",{class:"nudge-form-view-model-wiz__form-options"},_.E(_.R4,{data:function(){return O().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(L,h){return _.E(Oxw,{data:L.data,buttonIndex:h,selectedIndex:function(){return b().index},
onSelect:function(Z){T({index:h(),command:Z})}})}})),_.E(_.uw,{text:function(){return O().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.E("div",{class:"nudge-form-view-model-wiz__submit"},_.E(_.R4,{data:function(){return O().submitButton}},{buttonViewModel:function(L){return _.E(ix1,{data:L.data,
isDisabled:function(){return b().index===-1},
onClick:function(){_.nb(b().command)}})}})))},"yb");
bxn.idomCompat=!0;var ix1=_.J1(function(W){var O=_.Pj(function(){return Object.assign({},W.data(),{state:W.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.E(_.DO,{data:O,onClick:W.onClick})},"zb");_.O1(bxn,"yt-nudge-form-view-model",{props:{data:_.te}});var SV=function(){var W=_.n.apply(this,arguments)||this;W.roundedContainer=!0;W.buttonUpdate=_.e("web_modern_buttons");W.isDarkMode=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.R(SV,_.n);_.d=SV.prototype;_.d.computeNudgeStyle=function(W){return W?"modernized-nudge":""};
_.d.handleDarkModeToggledAction=function(W){this.isDarkMode=W};
_.d.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.d.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"}}}};
_.d.computeIsHorizontalButtons=function(W){return W?!!W.applyModernizedStyle&&!!W.enableHorizontalButtons&&!!W.secondaryButton:!1};
_.Jq.Object.defineProperties(SV.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.data)==null?void 0:W.backgroundStyle)!=null?O:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.data)==null?void 0:W.contentsLocation)!=null?O:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null?0:W.lightIconImage)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],SV.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],SV.prototype,"actionHandlerBehavior",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("isHideEnclosingAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SV.prototype,"isHidden",null);_.t([_.C(),_.N("design:type",Object)],SV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SV.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SV.prototype,"buttonUpdate",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.N("design:type",String)],SV.prototype,"nudgeStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.trimStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],SV.prototype,"trimStyle",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.backgroundStyle"),_.N("design:type",String),_.N("design:paramtypes",[])],SV.prototype,"backgroundStyle",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.contentsLocation"),_.N("design:type",String),_.N("design:paramtypes",[])],SV.prototype,"contentsLocation",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.disableDropShadow"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SV.prototype,"noShadow",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.lightIconImage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],SV.prototype,"noIcon",null);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.N("design:type",Boolean)],SV.prototype,"isHorizontalButtons",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],SV.prototype,"isDarkMode",void 0);SV=_.t([_.G({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],SV);
_.H(SV,"ytd-feed-nudge-renderer",function(){if(WkH!==void 0)return WkH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return WkH=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var jtz;var TRH;var ZU=function(){var W=_.n.apply(this,arguments)||this;W.collapsed=!1;W.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return W};
_.R(ZU,_.n);ZU.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"}}}};
ZU.prototype.handleRatingSelect=function(){var W;((W=this.data)==null?0:W.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
ZU.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ZU.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ZU.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.rn),_.N("design:type",Object)],ZU.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ZU.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ZU.prototype,"collapsed",void 0);ZU=_.t([_.G({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],ZU);
_.H(ZU,"ytd-slimline-survey-renderer",function(){if(TRH!==void 0)return TRH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return TRH=W},{mode:1});var Lk7;var Im=function(){return _.n.apply(this,arguments)||this};
_.R(Im,_.n);Im.prototype.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
Im.prototype.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W&&(W==null?0:W.secondaryTitleColor)&&this.maybeGetBackgroundColor(W)?(this.hostElement.style.backgroundColor=_.zF(this.maybeGetBackgroundColor(W)),this.hostElement.style.color=_.zF(W.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
Im.prototype.colorPaletteChanged=Im.prototype.colorPaletteChanged;_.t([_.D(_.sh),_.N("design:type",Object)],Im.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Im.prototype,"data",void 0);_.t([_.C({selector:function(W){return W.ui.darkModeIsEnabled}}),
_.N("design:type",Boolean)],Im.prototype,"isDarkMode",void 0);_.t([_.C(),_.N("design:type",Object)],Im.prototype,"lightColorPalette",void 0);_.t([_.C(),_.N("design:type",Object)],Im.prototype,"darkColorPalette",void 0);_.t([_.m5("darkColorPalette","lightColorPalette","data","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Im.prototype,"colorPaletteChanged",null);Im=_.t([_.G({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],Im);
_.H(Im,"ytd-endorsement-header-renderer",function(){if(Lk7!==void 0)return Lk7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Lk7=W},{mode:1});_.O1(_.KA,"yt-decorated-avatar-view-model",{props:{data:_.te,className:_.te}});var am=function(){var W=_.n.apply(this,arguments)||this;W.fullHeight=_.e("web_rich_grid_media_full_height");W.showChannelAvatar=!0;W.hasPlaylistThumbnail=!1;W.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};W.prepareThumbnailForPageTransition=function(){_.e("web_thumbnail_to_watch_transition")&&(W.thumbnail.style.viewTransitionName="thumbnail-to-watch",W.cleanupThumbnailAfterPageTransition(W.thumbnail))};
return W};
_.R(am,_.n);_.d=am.prototype;
_.d.configureRendererStamper=function(){return{lazyLoadMenu:Ib,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"}}}};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.shouldLazyLoadMenu=function(){var W=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.e("kevlar_modern_downloads_page")||!W};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13964_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.JSC$13964_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.d.getVideoPreviewOpts=function(){var W={},O;if((O=this.data)==null?0:O.multipleInlinePlaybackEndpoint)W=O3L;this.isRadio&&(W=WW1);return _.e("web_thumbnail_to_watch_transition")?Object.assign({},W,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):W};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13964_inlinePreviewHoverListener)==null||b3(W)};
_.d.getOwner=function(){var W,O,b;return((W=this.data)==null?void 0:(O=W.channelThumbnailSupportedRenderers)==null?void 0:O.channelThumbnailWithLinkRenderer)||_.P((b=this.data)==null?void 0:b.showProviderChannelThumbnail,HDU)};
_.d.updateLockupSize=function(){var W;((W=this.getOwner())==null?0:W.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.d.getFeedbackEndpoint=function(W){if(_.P(W,_.QG))return W;var O,b;W=(b=(O=_.P(W,_.I5))==null?void 0:O.commands)!=null?b:[];O=_.S(W);for(b=O.next();!b.done;b=O.next())if(b=this.getFeedbackEndpoint(b.value))return b;return null};
_.d.computeNavigationEndpoint=function(W){return fRT(W==null?void 0:W.navigationEndpoint)};
_.d.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var W=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(W)!==JSON.stringify(this.data)&&this.set("data",W)}};
_.d.onDataChanged=function(){var W=this,O=this.getOwner();if(O){this.set("data.owner",O);var b,T,L,h,Z,a=((b=this.data)==null?void 0:(T=b.shortBylineText)==null?void 0:(L=T.runs)==null?void 0:(h=L[0])==null?void 0:h.text)||((Z=O.name)==null?void 0:Z.simpleText);this.set("data.owner.title",a)}var m,w,A,X,l,p;O=((m=this.data)==null?void 0:(w=m.thumbnailRenderer)==null?void 0:w.playlistVideoThumbnailRenderer)||((A=this.data)==null?void 0:(X=A.thumbnailRenderer)==null?void 0:X.playlistCustomThumbnailRenderer)||
((l=this.data)==null?void 0:(p=l.thumbnailRenderer)==null?void 0:p.showCustomThumbnailRenderer);var K;((K=this.data)==null?0:K.thumbnail)||!O||this.set("data.thumbnail",O.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){W.updateLockupSize()});
var k;if(m=((k=this.data)==null?void 0:k.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(m);var r;((r=this.dismissActionToReplayEntity)==null?0:r.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.d.onHiddenChanged=function(){this.updateLockupSize()};
_.d.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.jx(this.hostElement,"yt-terminate-video-preview-action");else{var W;(W=this.videoTitleLink)==null||W.focus()}};
_.d.metadataColorChanged=function(){var W;if(this.metadataColor&&((W=this.videoTitle)==null?0:W.style))this.videoTitle.style.color=_.zF(this.metadataColor);else{var O,b;!this.metadataColor&&((O=this.videoTitle)==null?0:(b=O.style)==null?0:b.color)&&(this.videoTitle.style.color="")}};
_.d.onDetailsClick=function(W){var O=this.computedNavigationEndpoint;O&&(_.un(_.Nd(W),this.hostElement,["A","BUTTON"])||_.bX(this.hostElement,"yt-navigate",{endpoint:O}))};
_.d.cleanupThumbnailAfterPageTransition=function(W){_.frq(document,"yt-page-type-changed",function(){W.style.viewTransitionName=""})};
_.d.onRendererTap=function(){this.prepareThumbnailForPageTransition();var W,O,b=((W=this.data)==null?void 0:W.serviceEndpoint)||this.getFeedbackEndpoint((O=this.data)==null?void 0:O.navigationEndpoint);b&&_.P(b,_.QG)&&this.ytComponentBehavior.resolveCommand(b)};
_.d.onMouseDown=function(W){var O=W.target,b=this.computedNavigationEndpoint,T;W=O.href||((T=_.P(b==null?void 0:b.commandMetadata,_.F9))==null?void 0:T.url);T=O.data||b;W&&T&&rMi(W,T)};
_.d.computeVideoTitleText=function(){var W;if((W=this.data)==null?0:W.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.d.computeHasPlaylistThumbnail=function(W){var O,b,T,L,h;if((((O=W.thumbnailRenderer)==null?0:O.playlistVideoThumbnailRenderer)||((b=W.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer)||((T=W.thumbnailRenderer)==null?0:T.showCustomThumbnailRenderer)||((L=W.thumbnailRenderer)==null?0:L.playlistVideoThumbnailRenderer)||((h=W.thumbnailRenderer)==null?0:h.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(O=0;O<W.thumbnailOverlays.length;O++)if(b=void 0,(b=W.thumbnailOverlays[O])==
null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Jq.Object.defineProperties(am.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.e("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var W;return(W=this.data)==null?void 0:W.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13964_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Y1(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.videoId)||((O=this.data)==null?void 0:O.playlistId)||""}}});
am.prototype.onMouseDown=am.prototype.onMouseDown;am.prototype.metadataColorChanged=am.prototype.metadataColorChanged;am.prototype.onIsDismissedChanged=am.prototype.onIsDismissedChanged;am.prototype.onHiddenChanged=am.prototype.onHiddenChanged;am.prototype.onDataChanged=am.prototype.onDataChanged;am.prototype.handleReloadDownloadsInfo=am.prototype.handleReloadDownloadsInfo;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],am.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],am.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],am.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],am.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],am.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],am.prototype,"entitySelectorType",void 0);_.t([_.C(),_.N("design:type",Boolean)],am.prototype,"noEndpoints",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],am.prototype,"isRadio",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],am.prototype,"miniMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],am.prototype,"fullHeight",void 0);
_.t([_.C(),_.N("design:type",Boolean)],am.prototype,"showDarkVideoMetadata",void 0);_.t([_.C(),_.N("design:type",Boolean)],am.prototype,"showLightVideoMetadata",void 0);_.t([_.C(),_.N("design:type",Number)],am.prototype,"metadataColor",void 0);_.t([_.C(),_.N("design:type",Object)],am.prototype,"showChannelAvatar",void 0);_.t([_.C(),_.N("design:type",Boolean)],am.prototype,"hidden",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],am.prototype,"showYtInteraction",void 0);
_.t([_.C(),_.N("design:type",String)],am.prototype,"dismissedContentId",void 0);_.t([_.C({selectorArgs:["dismissedContentId"],selector:lWE}),_.N("design:type",Object)],am.prototype,"dismissActionToReplayEntity",void 0);
_.t([_.C({selectorArgs:["entitySelectorType","mediaId"],selector:function(W,O,b){if(_.e("kevlar_modern_downloads_page")&&b&&O&&O!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(O){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var T=eUQ(W,b);if(T){O=_.D5(W,b);var L=zc(W,b),h=B5X(W,b);W=Ce(W,b);var Z=SLh(T,O,L,h);L=Z.shortViewCountText;var a=Z.publishedTimeText;Z=Z.badges;var m=W>0;h=dge(T,O,h,W);T=_.lv(O)||O==="TRANSFER_STATE_FAILED"||O==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Ur(T.policyEntity)?
void 0:qYX(b,W,T.videoEntity.lengthSeconds);O==="TRANSFER_STATE_PAUSED_BY_USER"&&b&&!_.e("dl_resume_click_killswitch")&&(T={offlineVideoEndpoint:{videoId:b,action:"ACTION_RESUME"}});b={shortViewCountText:L,publishedTimeText:a,badges:Z,isWatched:m,navigationEndpoint:T,thumbnailOverlays:h}}else b=void 0;return b;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(O=PrX(W,b))if(T=_.x9(W,b),h=_.pX8(W,b),T!=="TRANSFER_STATE_UNKNOWN"){b=htX(O,T,h,b,wX8(W));break a}b=void 0}return b;default:_.z5(new _.pu("Error: entitySelectorType defined but not matched in selector.",
W,O))}}}),
_.N("design:type",Object)],am.prototype,"entityDrivenState",void 0);_.t([_.C({computed:"computeVideoTitleText(data)"}),_.N("design:type",Object)],am.prototype,"videoTitleText",void 0);_.t([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],am.prototype,"hasPlaylistThumbnail",void 0);_.t([_.C({computed:"computeNavigationEndpoint(data)"}),_.N("design:type",Object)],am.prototype,"computedNavigationEndpoint",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],am.prototype,"typographyBump",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("typographyBump"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],am.prototype,"typographyBumpV2",null);_.t([_.El("#video-title"),_.N("design:type",HTMLElement)],am.prototype,"videoTitle",void 0);_.t([_.El("#video-title-link"),_.N("design:type",HTMLElement)],am.prototype,"videoTitleLink",void 0);
_.t([_.El("#thumbnail"),_.N("design:type",HTMLElement)],am.prototype,"thumbnail",void 0);_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],am.prototype,"JSC$13964_dismissibleMedia",void 0);_.t([_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],am.prototype,"lazyLoadMenu",null);_.t([_.x("data.menu"),_.N("design:type",Object),_.N("design:paramtypes",[])],am.prototype,"immediateLoadMenu",null);
_.t([_.Ul("entityDrivenState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"handleReloadDownloadsInfo",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"onDataChanged",null);_.t([_.Ul("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"onHiddenChanged",null);
_.t([_.m5("isDismissed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"onIsDismissedChanged",null);_.t([_.m5("metadataColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],am.prototype,"metadataColorChanged",null);_.t([_.ai("mousedown"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],am.prototype,"onMouseDown",null);
_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],am.prototype,"isHovered",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],am.prototype,"useAvatar",null);_.t([_.x("data","entitySelectorType"),_.N("design:type",String),_.N("design:paramtypes",[])],am.prototype,"mediaId",null);am=_.t([_.G({is:"ytd-rich-grid-media",disableElementRegistration:!0})],am);
var dOq=_.TH()(am,"ytd-rich-grid-media",function(){if(jtz!==void 0)return jtz;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return jtz=W},{mode:_.Lb("kevlar_poly_si_batch_j072")?1:2});var hJH;var mz=function(){var W=_.n.apply(this,arguments)||this;W.removeMaxWidth=!0;W.insetMetadata=!1;return W};
_.R(mz,_.n);_.d=mz.prototype;_.d.configureRendererStamper=function(){return{innerMenu:Ib,outerMenu:Object.assign({},Ib,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onDataChanged=function(){var W,O=((W=this.data)==null?void 0:W.trackingParams)||"";O&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(O));var b;((b=this.dismissActionToReplayEntity)==null?0:b.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13969_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.JSC$13969_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:iR2})};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13969_inlinePreviewHoverListener)==null||b3(W)};
_.d.onRendererTap=function(){var W,O,b=(W=this.data)==null?void 0:(O=W.serviceEndpoints)==null?void 0:O[0];_.P(b,_.QG)&&this.componentBehavior.resolveCommand(b)};
_.d.onDetailsClick=function(W){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint;b&&(_.un(_.Nd(W),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(b))};
_.d.onShow=function(){var W=this.data;W.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(W.onFirstVisibleCommand),delete W.onFirstVisibleCommand)};
_.Jq.Object.defineProperties(mz.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?void 0:(W=this.data)==null?void 0:W.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var W;return this.insetMetadata?(W=this.data)==null?void 0:W.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var W=this.data;if(W!=null&&W.badge&&(W=_.P(W.badge,tON))){var O,b,T;return[{metadataBadgeRenderer:{label:((O=W.label)==null?void 0:(b=O.runs)==null?void 0:b[0].text)||((T=W.label)==null?void 0:T.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var W=this.data;return Object.assign({},W.headline,{accessibility:W.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return this.isSlimShort?(W=this.computedTitle)==null?void 0:(O=W.accessibility)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13969_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mz.prototype.onDataChanged=mz.prototype.onDataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],mz.prototype,"componentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],mz.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.rn),_.N("design:type",Object)],mz.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],mz.prototype,"thumbnail",void 0);_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],mz.prototype,"JSC$13969_dismissibleMedia",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mz.prototype,"removeMaxWidth",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mz.prototype,"insetMetadata",void 0);_.t([_.C(),_.N("design:type",String)],mz.prototype,"dismissedContentId",void 0);_.t([_.C({selectorArgs:["dismissedContentId"],selector:lWE}),_.N("design:type",Object)],mz.prototype,"dismissActionToReplayEntity",void 0);_.t([_.x("insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"thumbnailObjectFit",null);
_.t([_.x("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"innerMenu",null);_.t([_.x("data","insetMetadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"outerMenu",null);_.t([_.C(),_.N("design:type",Object)],mz.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],mz.prototype,"miniMode",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mz.prototype,"onDataChanged",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"shortsBadges",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mz.prototype,"isShort",null);
_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mz.prototype,"isSlimShort",null);_.t([_.x("data","isShort"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"computedTitle",null);_.t([_.x("isSlimShort","computedTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],mz.prototype,"computedAccessibilityLabel",null);
_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mz.prototype,"isHovered",null);mz=_.t([_.G({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],mz);
_.H(mz,"ytd-rich-grid-slim-media",function(){if(hJH!==void 0)return hJH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hJH=W},{mode:_.Lb("kevlar_poly_si_batch_j063")?1:2});var Sd1;var Zxq;var YU=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(YU,_.n);YU.prototype.computeIcon=function(W){return W&&W.iconType?"yt-sys-icons:"+W.iconType.toLowerCase():""};
YU.prototype.onMouseEnter=function(){this.isHovered=!0};
YU.prototype.onMouseLeave=function(){this.isHovered=!1};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],YU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],YU.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],YU.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],YU.prototype,"isHovered",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],YU.prototype,"darkerDarkTheme",void 0);YU=_.t([_.G({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],YU);
_.H(YU,"ytd-expand-on-hover-card-renderer",function(){if(Zxq!==void 0)return Zxq;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Zxq=W},{mode:1});var IVv,aVL=function(){if(IVv!==void 0)return IVv;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return IVv=W};_.Bs("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var En=function(){var W=_.n.apply(this,arguments)||this;W.compactStyle=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(En,_.n);_.d=En.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.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"}}}};
_.d.computeHideDot=function(W){return!(W&&W.subscriberCountText&&W.videoCountText)||this.compactStyle};
_.d.hasDualButtons=function(W){return W&&W.purchaseButton&&W.subscribeButton};
_.d.backgroundColorChanged=function(){if(this.data!==void 0){var W=this.data.backgroundColor;this.isDarkTheme&&(W=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=W!=null?_.zF(W):"transparent"}};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.onTap=function(W){var O,b,T=((O=this.data)==null?void 0:O.navigationEndpoint)||((b=this.data)==null?void 0:b.serviceEndpoint);_.P(T,_.i3)&&(T&&_.iq().resolve(_.bq).resolveCommand(T,{form:{element:this.hostElement}}),W.preventDefault())};
_.d.computeChannelEndpoint=function(W){return _.P(W,_.i3)?null:W};
_.d.computeHrefEndpoint=function(W){return _.P(W,_.i3)?null:this.componentBehavior.computeHref_(W)};
_.d.computeChannelRendererStyle=function(W){return W};
_.d.computeIconSize=function(W){return W?108:136};
_.Jq.Object.defineProperties(En,{template:{configurable:!0,enumerable:!0,get:function(){return aVL()}}});
En.prototype.backgroundColorChanged=En.prototype.backgroundColorChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],En.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],En.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],En.prototype,"componentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],En.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],En.prototype,"isDarkTheme",void 0);_.t([_.C({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.N("design:type",String)],En.prototype,"channelRendererStyle",void 0);_.t([_.C({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],En.prototype,"dualButtons",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],En.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],En.prototype,"biggerThumbStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],En.prototype,"compactStyle",void 0);_.t([_.m5("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],En.prototype,"backgroundColorChanged",null);En=_.t([_.G({is:"ytd-channel-renderer",disableElementRegistration:!0})],En);_.H(En,"ytd-channel-renderer",function(){return aVL()},{mode:1});var mOH;var Ydv;_.Bs("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var wM=function(){var W=_.n.apply(this,arguments)||this;W.displayItemCount=2;W.collections=_.e("web_modern_collections_v2");W.hasPlaylistThumbnail=!1;W.stackThumbnailSize="large";return W};
_.R(wM,_.n);_.d=wM.prototype;_.d.attached=function(){this.updateInlinePreviewHoverListeners()};
_.d.detached=function(){this.clearInlinePreviewHoverListeners()};
_.d.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.d.computeFirstVideos=function(W,O){return W&&O?W.slice(0,O):[]};
_.d.computeThumbnailWidth=function(W,O){return W?O==="BIG"?500:O==="MASSIVE"?600:O==="MEDIUM"?450:420:360};
_.d.computeThumbnailHeight=function(W,O){return W?O==="BIG"?280:O==="MASSIVE"?337:234:202};
_.d.clearInlinePreviewHoverListeners=function(){var W;(W=this.JSC$13982_inlinePreviewHoverListener)==null||b3(W)};
_.d.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13982_inlinePreviewHoverListener=tI({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:O3L,thumbnailElement:this.thumbnail})};
_.d.computeHasPlaylistThumbnail=function(W){var O,b;if((((O=W.thumbnailRenderer)==null?0:O.playlistVideoThumbnailRenderer)||((b=W.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&W.thumbnailOverlays)for(O=0;O<W.thumbnailOverlays.length;O++)if(b=void 0,(b=W.thumbnailOverlays[O])==null?0:b.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Jq.Object.defineProperties(wM.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.JSC$13982_inlinePreviewHoverListener)==null?0:Q9(W))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
wM.prototype.dataChanged=wM.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],wM.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wM.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],wM.prototype,"displayItemCount",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],wM.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],wM.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],wM.prototype,"collections",void 0);_.t([_.C({computed:"computeHasPlaylistThumbnail(data)"}),_.N("design:type",Object)],wM.prototype,"hasPlaylistThumbnail",void 0);_.t([_.C(),_.N("design:type",String)],wM.prototype,"stackThumbnailSize",void 0);_.t([_.El("ytd-thumbnail"),_.N("design:type",HTMLElement)],wM.prototype,"thumbnail",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wM.prototype,"dataChanged",null);_.t([_.x("lockupIsHovered"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wM.prototype,"isHovered",null);wM=_.t([_.G({is:"ytd-radio-renderer",disableElementRegistration:!0})],wM);
_.H(wM,"ytd-radio-renderer",function(){if(Ydv!==void 0)return Ydv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ydv=W},{mode:_.Lb("kevlar_poly_si_batch_j058")?1:2});var Efv;_.Bs("itemSectionRenderer","showRenderer","ytd-show-renderer");var An=function(){return _.n.apply(this,arguments)||this};
_.R(An,_.n);An.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
An.prototype.computeThumbnailWidth=function(W){return W?360:246};
An.prototype.computeUseProminentThumbs=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],An.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],An.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],An.prototype,"isSearch",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.N("design:type",Boolean)],An.prototype,"useProminentThumbs",void 0);An=_.t([_.G({is:"ytd-show-renderer",disableElementRegistration:!0})],An);
_.H(An,"ytd-show-renderer",function(){if(Efv!==void 0)return Efv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Efv=W},{mode:1});_.Bs("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var Xa=function(){var W=_.n.apply(this,arguments)||this;W.isRichGrid=!1;return W};
_.R(Xa,_.n);Xa.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"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xa.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xa.prototype,"isRichGrid",void 0);Xa=_.t([_.G({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],Xa);
_.H(Xa,"ytd-feed-entry-renderer",function(){if(mOH!==void 0)return mOH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return mOH=W},{mode:1});var w6H;var Un=function(){return _.n.apply(this,arguments)||this};
_.R(Un,_.n);Un.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.t([_.D(_.sh),_.N("design:type",Object)],Un.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Un.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Un.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.sr,value:3}),_.N("design:type",Number)],Un.prototype,"itemsPerRow",void 0);
Un=_.t([_.G({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Un);
_.H(Un,"ytd-link-card-renderer",function(){if(w6H!==void 0)return w6H;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return w6H=W},{mode:1});var AOL;var lp=function(){return _.n.apply(this,arguments)||this};
_.R(lp,_.n);_.d=lp.prototype;_.d.configureRendererStamper=function(){return{"data.menu":Ib,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.d.onRendererTap=function(W){if(!this.ytdDismissibleItemBehavior.isDismissed){var O,b=(O=this.data)==null?void 0:O.navigationEndpoint;b&&!_.un(_.Nd(W),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(b)?_.un(_.Nd(W),this.hostElement,["A"])||_.bX(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b,{}))}};
_.d.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.d.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
_.d.isNavigationCommand=function(W){return W?_.P(W,_.wE)||_.P(W,_.V3)||_.P(W,_.t8)?!0:!1:!1};
lp.prototype.onRendererTap=lp.prototype.onRendererTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],lp.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],lp.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],lp.prototype,"data",void 0);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lp.prototype,"onRendererTap",null);lp=_.t([_.G({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],lp);
_.H(lp,"ytd-lumiere-promo-item-image-renderer",function(){if(AOL!==void 0)return AOL;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return AOL=W},{mode:1});var X6L;var eV=function(){return _.n.apply(this,arguments)||this};
_.R(eV,_.n);eV.prototype.computeLandscapeThumbnail=function(){var W;return((W=this.data)==null?void 0:W.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],eV.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],eV.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],eV.prototype,"miniMode",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.sr}),_.N("design:type",Number)],eV.prototype,"itemsPerRow",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.N("design:type",Boolean)],eV.prototype,"landscapeThumbnail",void 0);eV=_.t([_.G({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],eV);
_.H(eV,"ytd-lumiere-shelf-details-renderer",function(){if(X6L!==void 0)return X6L;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return X6L=W},{mode:_.Lb("kevlar_poly_si_batch_j076")?1:2});var UO9;var Pl=function(){return _.n.apply(this,arguments)||this};
_.R(Pl,_.n);Pl.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pl.prototype,"data",void 0);Pl=_.t([_.G({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Pl);
_.H(Pl,"ytd-primetime-promo-details-renderer",function(){if(UO9!==void 0)return UO9;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return UO9=W},{mode:1});var lVv;var pY=function(){return _.n.apply(this,arguments)||this};
_.R(pY,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pY.prototype,"data",void 0);pY=_.t([_.G({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],pY);
_.H(pY,"ytd-panel-show-style-metadata-renderer",function(){if(lVv!==void 0)return lVv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lVv=W},{mode:1});var eJU;var Rm=function(){return _.n.apply(this,arguments)||this};
_.R(Rm,_.n);_.d=Rm.prototype;_.d.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.d.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.d.computeThumbnail=function(W){if(W)return W.smallFormFactorBackgroundThumbnail||W.largeFormFactorBackgroundThumbnail};
_.d.maybeComputeHref=function(W){return this.ytComponentBehavior.computeHref_(W,!0)};
_.d.isNavigationCommand=function(W){return W?_.P(W,_.wE)||_.P(W,_.V3)||_.P(W,_.t8)?!0:!1:!1};
_.d.getNavigationCommand=function(W){return this.isNavigationCommand(W)?W:null};
Rm.prototype.onPanelTap=Rm.prototype.onPanelTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Rm.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rm.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Rm.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0,value:_.e("web_modern_buttons")}),_.N("design:type",Boolean)],Rm.prototype,"modernButtons",void 0);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rm.prototype,"onPanelTap",null);Rm=_.t([_.G({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Rm);
_.H(Rm,"ytd-primetime-promo-panel-renderer",function(){if(eJU!==void 0)return eJU;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return eJU=W},{mode:1});_.O1(_.J1(function(W){W=_.um(W,{data:{},useFullWidth:!1});var O=W.data,b=W.useFullWidth,T=function(){return O().caption},L=function(){return O().image},h=function(){return _.xy(O().onTap)};
W={};W=_.YS("ytTeaserCardViewModelHost",(W.ytTeaserCardViewModelUseFullWidth=function(){return b()},W));
return _.E("teaser-card-view-model",{class:W},_.E(_.U,{cond:function(){return h()},
then:function(){return _.E(Gf5,{className:"ytTeaserCardViewModelLink",command:h,forceNewState:!0,useATagConfig:!0},_.E("div",{class:"ytTeaserCardViewModelImageContainer"},_.E(_.U,{cond:L,then:function(Z){return _.E(_.uj,{data:Z,className:"ytTeaserCardViewModelImage",alt:""})}})),_.E("p",{class:"ytTeaserCardViewModelCaption"},T))}}))},"Ab"),"teaser-card-view-model",{props:{data:_.te,
useFullWidth:_.te}});var P4L=new _.MV("RICH_GRID_VIDEO_RENDERER_TOKEN");_.O1(_.J1(function(W){var O=W.data;var b=W.showYtInteractionInContent;var T=function(){return!!O().selectableFeedback};
W=_.S(_.wu(!1,void 0,"nblDw"));var L=W.next().value,h=W.next().value;_.kX(function(){var l=_.P(O().primaryButton,_.vm);(l==null?0:l.isToggled)&&h(l.isToggled)});
W=_.XL(function(l){if(!T())return!1;if(L()){var p;var K=(p=O().selectableFeedback)==null?void 0:p.onDeselect}else{var k;K=(k=O().selectableFeedback)==null?void 0:k.onSelect}K&&_.nb(K,{form:{element:l.target}});h(!L());if(l=_.P(O().primaryButton,_.vm))l.isToggled=L();return!1});
var Z=function(){if(!T()){var l,p=(l=O().loggingDirectives)==null?void 0:l.trackingParams;p&&_.dk(_.iq().resolve(_.ef),p)}},a=_.u_E(),m=function(){var l;
return T()?(l=O().selectableFeedback)==null?void 0:l.a11yLabel:void 0},w=function(){return T()?{toggled:L()}:{}},A=_.iq().resolve(_.OT(P4L)),X={};
return _.E("yt-feedback-item-renderer",{class:_.YS("ytFeedbackItemRendererHost",(X.ytFeedbackItemRendererSelectableFeedback=T,X)),"on:click":W,"on:keydown":a,title:m,"aria-label":m,"aria-pressed":function(){return T()?L():void 0},
tabindex:function(){return T()?0:void 0},
role:function(){return T()?"button":void 0}},_.E("div",{class:"ytFeedbackItemRendererContentContainer"},_.E(_.R4,{data:function(){return O().content}},{videoRenderer:function(l){return _.E(A,{data:l.data,
showYtInteraction:b})},
lockupViewModel:function(l){return _.E(_.Og,{data:l.data,containerType:2})}})),_.E("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.E(_.R4,{data:function(){return O().primaryButton}},{toggleButtonViewModel:function(l){return _.E(_.gt,{data:l.data,
buttonShapeOverrides:w,disableExplicitClickLogging:!0,onToggle:Z})}})))},"Bb"),"yt-feedback-item-renderer",{props:{data:_.te,
showYtInteractionInContent:_.te}});var KY=function(){var W=_.n.apply(this,arguments)||this;W.isShortsGrid=!1;W.isCompactGrid=!1;W.isShortsPanelGrid=!1;W.renderedFromRichGrid=!1;W.isInFirstColumn=!1;W.noGutterMargins=!1;W.isInlineGroupItem=!1;W.insetMetadata=!1;W.noBottomMarginInAds=_.e("web_no_bottom_margin_for_home_ad_buttons");W.force16By9ThumbnailAspectRatio=!1;W.useCompactList=!1;W.containerType=2;W.thumbnailTargetWidth=9999;W.isResponsiveGrid=!1;W.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};W.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};W.hoverListener=W.hover.bind(W);W.leaveListener=W.leave.bind(W);W.highlighted=!1;W.JSC$14017_unsubscribeFromInlinePreviewIsActive=function(){};
return W};
_.R(KY,_.n);_.d=KY.prototype;_.d.computeContainerType=function(){return this.useCompactList?3:2};
_.d.computeThumbnailTargetWidth=function(){var W;return(W=this.itemWidth)!=null?W:9999};
_.d.updateIsInFirstColumn=function(){var W;this.isInFirstColumn=((W=this.data)==null?void 0:W.colIndex)===0};
_.d.observerContainerType=function(){if(this.lockup){var W=this.lockup;W.containerType=this.containerType;W.sizing=this.sizing;W.typographyBump=this.typographyBump;W.itemWidth=this.itemWidth}this.richGridMedia&&_.e("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.e("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.d.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.d.leave=function(W){W=W.relatedTarget;var O=document.querySelector("ytd-video-preview");W&&O&&_.T0(O).contains(W)||this.removeAndCleanupHighlight()};
_.d.hover=function(){var W;if(!this.highlighted&&(!_.e("web_enable_rich_item_on_focus_effect")||(W=this.data)!=null&&W.onFocusEffect)){var O,b;((O=this.data)==null?void 0:(b=O.onFocusEffect)==null?void 0:b.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(W=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:W,boxShadow:"0 0 0 10px "+W}));var T,L;((T=this.data)==null?void 0:(L=T.onFocusEffect)==null?void 0:
L.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.d.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};
_.d.registerHoverHighlightListeners=function(){var W=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14017_unsubscribeFromInlinePreviewIsActive=_.mr(_.uv(),_.mN8,function(O){W.highlighted&&!O&&W.removeAndCleanupHighlight()})};
_.d.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14017_unsubscribeFromInlinePreviewIsActive()};
_.d.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.d.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.d.getBackgroundColor=function(){var W,O,b=(W=this.data)==null?void 0:(O=W.onFocusEffect)==null?void 0:O.onFocusColor;if(b){if(document.documentElement.hasAttribute("dark")&&(b==null?0:b.darkTheme))return _.zF(b==null?void 0:b.darkTheme);if(b==null?0:b.lightTheme)return _.zF(b==null?void 0:b.lightTheme)}};
_.d.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var W=_.Bb(),O,b,T;W&&((O=this.data)==null?0:O.trackingParams)&&((b=this.data)==null?void 0:b.colIndex)!=null&&((T=this.data)==null?void 0:T.rowIndex)!=null&&_.Mk(W,_.Pi(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.d.isSlimMediaRenderer=function(W){return!!_.P(W==null?void 0:W.content,_.l8H)||!!_.P(W==null?void 0:W.content,UV7)||!!_.P(W==null?void 0:W.content,_.kV)||!!_.P(W==null?void 0:W.content,fR$)};
_.d.isPostRenderer=function(){var W,O;return!!_.P((W=this.data)==null?void 0:W.content,vqH)||!!_.P((O=this.data)==null?void 0:O.content,gqN)};
_.d.computeIsGameCardShelf=function(){var W;return!!_.P((W=this.data)==null?void 0:W.content,glU)};
_.d.computeIsMiniGameCardShelf=function(){var W,O;return!!_.P((W=this.data)==null?void 0:W.content,tmL)||!!_.P((O=this.data)==null?void 0:O.content,$a1)};
_.d.computeIsTeaserCard=function(){var W;return!!_.P((W=this.data)==null?void 0:W.content,$a1)};
_.d.computeIsSelectableFeedbackItem=function(){var W,O;return!((O=_.P((W=this.data)==null?void 0:W.content,_.N7n))==null||!O.selectableFeedback)};
_.d.computeContainsLumierePosters=function(){var W,O;return((O=_.P((W=this.data)==null?void 0:W.content,CU$))==null?void 0:O.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.computeIsExpandOnHoverCardShelf=function(){var W;return!!_.P((W=this.data)==null?void 0:W.content,z9U)};
_.d.computeIsLinkCardShelf=function(){var W;return!!_.P((W=this.data)==null?void 0:W.content,VX$)};
_.d.computeIsReelItemStyleAvatarCircle=function(W){var O;return((O=_.P(W==null?void 0:W.content,_.kV))==null?void 0:O.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.d.computeIsLinkCardFullWidth=function(W,O){var b;return((b=_.P(W==null?void 0:W.content,VX$))==null?void 0:b.useFullWidth)||O<=2};
_.Jq.Object.defineProperties(KY.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.e("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.e("web_enable_rich_item_on_focus_effect")||_.e("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.e("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.e("web_shorts_2_by_3_lockups_study")||_.e("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
KY.prototype.richGridHoverHighlightChanged=KY.prototype.richGridHoverHighlightChanged;KY.prototype.observerContainerType=KY.prototype.observerContainerType;KY.prototype.updateIsInFirstColumn=KY.prototype.updateIsInFirstColumn;_.t([_.D(_.sh),_.N("design:type",Object)],KY.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],KY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],KY.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.N("design:type",Boolean)],KY.prototype,"isPost",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.N("design:type",Boolean)],KY.prototype,"containsLumierePosters",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.N("design:type",Boolean)],KY.prototype,"isSlimMedia",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.N("design:type",Boolean)],KY.prototype,"isGameCardShelf",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.N("design:type",Boolean)],KY.prototype,"isMiniGameCardShelf",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.N("design:type",Boolean)],KY.prototype,"isTeaserCard",void 0);_.t([_.C({computed:"computeIsSelectableFeedbackItem(data)"}),_.N("design:type",Boolean)],KY.prototype,"isSelectableFeedbackItem",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isShortsGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],KY.prototype,"isSlimGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isCompactGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isShortsPanelGrid",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.N("design:type",Boolean)],KY.prototype,"isExpandOnHoverCardShelf",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.N("design:type",Boolean)],KY.prototype,"isLinkCardShelf",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.sr,value:3}),_.N("design:type",Number)],KY.prototype,"itemsPerRow",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"renderedFromRichGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isInFirstColumn",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"noGutterMargins",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isInlineGroupItem",void 0);_.t([_.C(),_.N("design:type",Object)],KY.prototype,"insetMetadata",void 0);
_.t([_.C(),_.N("design:type",Object)],KY.prototype,"noBottomMarginInAds",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],KY.prototype,"isShelfItem",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.N("design:type",Boolean)],KY.prototype,"isReelItemStyleAvatarCircle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.N("design:type",Boolean)],KY.prototype,"isLinkCardFullWidth",void 0);
_.t([_.C(),_.N("design:type",Object)],KY.prototype,"force16By9ThumbnailAspectRatio",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"useCompactList",void 0);_.t([_.C(),_.N("design:type",String)],KY.prototype,"sizing",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],KY.prototype,"typographyBump",void 0);_.t([_.C(),_.N("design:type",Number)],KY.prototype,"itemWidth",void 0);_.t([_.C(),_.N("design:type",Boolean)],KY.prototype,"isHomeShelf",void 0);
_.t([_.C(),_.N("design:type",Boolean)],KY.prototype,"isHomeGrid",void 0);_.t([_.El("yt-lockup-view-model"),_.N("design:type",HTMLElement)],KY.prototype,"lockup",void 0);_.t([_.El("ytd-rich-grid-media"),_.N("design:type",HTMLElement)],KY.prototype,"richGridMedia",void 0);_.t([_.El("ytd-ad-slot-renderer"),_.N("design:type",HTMLElement)],KY.prototype,"adSlotRenderer",void 0);_.t([_.C({computed:"computeContainerType(useCompactList)"}),_.N("design:type",Object)],KY.prototype,"containerType",void 0);
_.t([_.C({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.N("design:type",Object)],KY.prototype,"thumbnailTargetWidth",void 0);_.t([_.x("showYtInteractionOnRichItem"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KY.prototype,"showYtInteractionOnRichGridMedia",null);_.t([_.x("isSelectableFeedbackItem","richGridHoverHighlight"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KY.prototype,"showYtInteractionOnRichItem",null);
_.t([_.x("typographyBump","isHomeGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KY.prototype,"richTypographyBump",null);_.t([_.C({reflectToAttribute:!0}),_.x("isShortsGrid","isCompactGrid"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KY.prototype,"richGridHoverHighlight",null);_.t([_.x("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],KY.prototype,"shortsLockupViewModelAspectRatio",null);
_.t([_.x("isInlineGroupItem"),_.N("design:type",Number),_.N("design:paramtypes",[])],KY.prototype,"shortsLockupViewModelScrimStyle",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KY.prototype,"updateIsInFirstColumn",null);_.t([_.m5("containerType","sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KY.prototype,"observerContainerType",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KY.prototype,"isResponsiveGrid",void 0);_.t([_.C(),_.N("design:type",Object)],KY.prototype,"lockupExperiments",void 0);_.t([_.m5("richGridHoverHighlight"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KY.prototype,"richGridHoverHighlightChanged",null);KY=_.t([_.G({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],KY);
_.p6L=_.TH()(KY,"ytd-rich-item-renderer",function(){if(Sd1===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);Sd1=W}W=Sd1;return W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var BJE={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var f9X=_.VV(_.EO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var RJ7;var vl=function(){var W=_.n.apply(this,arguments)||this;W.useResponsiveGrid=!1;W.hidden=!1;W.standardShelfMargins=_.e("web_rich_grid_standard_shelf_margins");W.isShowMoreHidden=!1;W.isExpanded=!1;W.isInnerShelf=!1;W.allVideosCount=0;W.allPlaylistCount=0;W.haveSmartDownloadsCompleted=!1;W.isShowLessHidden=!0;W.restrictContentsOverflow=!1;W.firstShownIndex=0;W.horizontalOffset=0;W.atEnd=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};W.nextClick=function(){var O;(O=W.data)!=null&&O.contents&&(W.firstShownIndex+=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
W.previousClick=function(){var O;(O=W.data)!=null&&O.contents&&(W.firstShownIndex-=W.currentElementsPerRow,W.updateHorizontalOffset(),W.updateHorizontalItemVisibility())};
return W};
_.R(vl,_.n);_.d=vl.prototype;
_.d.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Cv("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.d.attached=function(){this.requestElementsPerRow()};
_.d.refreshGridLayoutNew=function(){var W;if((W=this.data)!=null&&W.contents&&this.containerWidth){var O;((O=this.data.responsiveContainerConfiguration)==null?0:O.responsiveSize)?(W=_.tvX(this.data.responsiveContainerConfiguration,this.containerWidth),W=_.VU(Object.assign({},W,{standardUnitMinWidth:this.standardUnitMinWidth}))):W=_.VU({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=W.typographyBump;if(this.elementsPerRow!==
W.numItems||this.gutter!==W.gutter)this.elementsPerRow=W.numItems,this.gutter=W.gutter,this.itemWidth=W.itemWidth,_.Sl(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":W.gutter+"px"})}};
_.d.computeSizing=function(){if(!this.isLumiere){var W=_.WW8(this.data);if(W)return W;if(_.e("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.d.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.d.computeButton=function(W){var O=_.P(W,_.s2);W=Object.assign({},_.P(W,_.s2));return O?(W.text||(W.text={simpleText:W.tooltip}),W.style="STYLE_MONO_OUTLINE",W.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",W):O};
_.d.onRowIndexChange=function(){var W=_.Bb(),O,b;((O=this.data)==null?0:O.trackingParams)&&((b=this.data)==null?void 0:b.rowIndex)!=null&&W&&_.Mk(W,_.Pi(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.d.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var W,O=((W=this.getRichItemRenderers()[0])==null?void 0:W.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*O;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
_.d.onUpdateElementsPerRowAction=function(W,O,b,T,L,h){if(this.containerWidth!==h&&(this.containerWidth=h,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&W&&O&&b&&T&&L&&(this.elementsPerRow!==W||this.postsPerRow!==O||this.slimItemsPerRow!==b||this.gameCardsPerRow!==T||this.miniGameCardsPerRow!==L)&&(this.elementsPerRow=W,this.postsPerRow=O,this.slimItemsPerRow=b,this.gameCardsPerRow=T,this.miniGameCardsPerRow=L,this.updateItemVisibility())};
_.d.getRichItemRenderers=function(){return _.Q(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.d.updateItemVisibility=function(){var W=this;if(this.data&&this.data.contents){var O=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(T,L){var h;((h=W.data)==null?0:h.isExpanded)?(T.hidden=L>O-1,T.ytRendererBehavior.markDirty()):T.hidden=L>W.currentElementsPerRow-1||L>O-1});
var b=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||b||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||b||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.d.setHeightToSingleRow=function(){var W=this.getRichItemRenderers(),O=Number.parseInt(getComputedStyle(W[0]).marginBottom,10)||0;W=W.slice(0,this.currentElementsPerRow).reduce(function(b,T){return Math.max(b,T.getBoundingClientRect().height+O)},0);
this.contents.style.height=W+"px"};
_.d.focusNextExpandedItem=function(){var W;((W=this.data)==null?0:W.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.d.focusItem=function(W,O){var b=this.getRichItemRenderers();if(b[W]&&(W=b[W].querySelector(".focus-on-expand"))){if(O){var T;(T=b[this.currentElementsPerRow])==null||T.scrollIntoView({behavior:"smooth",block:"center"})}W.focus({preventScroll:!0})}};
_.d.onDataChange=function(){var W=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.My(this,function(){W.updateItemVisibility()});
var O;if((O=this.data)==null?0:O.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Sl(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),O=0;O<this.data.contents.length;O++){var b=_.P(this.data.contents[O],_.KN)||{};b.colIndex=O;b.rowIndex=this.data.rowIndex}};
_.d.handleRerenderDownloadsData=function(){_.e("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())};
_.d.blockInlinePreview=function(W){var O=this,b;return _.I(function(T){(b=O.inlinePreviewIsEnabled)&&O.ytdReduxBehavior.dispatch(_.Qlv(!1));return T.return(new Promise(function(L){W(function(){b&&O.ytdReduxBehavior.dispatch(_.Qlv(!0));L()})}))})};
_.d.expandShelf=function(){var W=this;if(this.data){var O,b=(O=_.P(this.data.showMoreButton,_.s2))==null?void 0:O.trackingParams;b&&_.dk(_.A4(),b);this.data.isExpanded=!0;this.blockInlinePreview(function(T){W.setHeightToSingleRow();W.updateItemVisibility();W.contents.style.height=W.contents.scrollHeight+"px";_.sF.addJob(function(){W.contents.style.height="auto";W.focusNextExpandedItem();T()},2,200)})}};
_.d.collapseShelf=function(){var W=this;return _.I(function(O){if(O.nextAddress==1){if(!W.data)return O.return();W.data.isExpanded=!1;return _.Y(O,W.blockInlinePreview(function(b){W.contents.style.height=W.contents.scrollHeight+"px";W.setHeightToSingleRow();_.sF.addJob(function(){W.updateItemVisibility();W.contents.style.height="auto";b()},2,200)}),2)}_.bX(W.hostElement,"yt-rich-shelf-renderer-collapse",W.data.trackingParams);
W.focusItem(0,!1);_.aD(O)})};
_.d.updateArrowButtonStatus=function(){var W=this.getRichItemRenderers().length;if(!_.e("web_rich_shelf_renderer_use_data_contents_killswitch")){var O,b;W=((O=this.data)==null?void 0:(b=O.contents)==null?void 0:b.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=W};
_.d.onChildElementFocus=function(W){this.hasChevronButtons&&(W=W.target.closest("#contents > *"),this.contents.contains(W)&&(W.offsetLeft<this.horizontalOffset?this.previousClick():W.offsetLeft+W.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.d.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Cv("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.d.updateHorizontalOffset=function(){var W=this.getRichItemRenderers(),O=W.length;if(!_.e("web_rich_shelf_renderer_use_data_contents_killswitch")){var b,T;O=((b=this.data)==null?void 0:(T=b.contents)==null?void 0:T.length)||0}var L;W=((L=W[0])==null?void 0:L.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>O?this.firstShownIndex=O-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*W};
_.d.isSlimMediaShelfRenderer=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!(_.P(T,_.l8H)||_.P(T,UV7)||_.P(T,_.kV)||_.P(T,fR$))};
_.d.isGameCardShelf=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!_.P(T,glU)};
_.d.isGnomeShelf=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!_.P(T,_.N7n)};
_.d.isMiniGameCardShelf=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!_.P(T,tmL)||!!_.P(T,$a1)};
_.d.hasGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.d.hasRoundedGameBoxArtAvatarStyle=function(){var W;return((W=this.data)==null?void 0:W.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.d.isShortsShelf=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!_.P(T,_.kV)||!!_.P(T,fR$)};
_.d.isPostShelfRenderer=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!(!_.P(T,vqH)&&!_.P(T,gqN))};
_.d.isLumiereShelf=function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN);return!!_.P(b==null?void 0:b.content,CU$)};
_.d.isLumiereShelfWithPosters=function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN),T;return((T=_.P(b==null?void 0:b.content,CU$))==null?void 0:T.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.d.isExpandOnHoverCardShelf=function(){var W,O,b,T=(b=_.P((W=this.data)==null?void 0:(O=W.contents)==null?void 0:O[0],_.KN))==null?void 0:b.content;return!!_.P(T,z9U)};
_.d.computeHasFeaturedBadge=function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.badges)==null?void 0:O[0],_.VbU);return b?b.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHasPaygatedFeaturedBadge=function(){var W,O,b=_.P((W=this.data)==null?void 0:(O=W.badges)==null?void 0:O[0],_.VbU);return b?(b==null?void 0:b.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.d.computeHeaderHidden=function(){var W,O,b,T,L,h;return!((W=this.data)==null?0:W.icon)&&!((O=this.data)==null?0:O.title)&&!((b=this.data)==null?0:b.subtitle)&&!((T=this.data)==null?0:T.thumbnail)&&!((L=this.data)==null?0:L.badges)&&!((h=this.data)==null?0:h.menu)};
_.d.showCtaButton=function(){var W;return!((W=this.data)==null||!W.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.d.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.d.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.d.computeForce16By9ThumbnailAspectRatio=function(){var W,O;return((W=this.data)==null?void 0:(O=W.responsiveContainerConfiguration)==null?void 0:O.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.d.onSectionReactiveDismissal=function(W,O,b){var T,L;var h=(T=this.data)==null?void 0:(L=T.targetingContext)==null?void 0:L.targetGroupId;this&&h&&O.targetGroupId&&h.includes(O.targetGroupId)?(T=this.rowIndex,W=T===void 0?!1:!(O.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&T<=W)):W=!1;W&&(this.hidden=b)};
_.Jq.Object.defineProperties(vl.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var W=this.elementsPerRow;this.isPostShelfRenderer()?W=this.postsPerRow:this.isSlimMediaShelfRenderer()?W=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?W=this.slimItemsPerRow-1:this.isGameCardShelf()?W=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(W=this.miniGameCardsPerRow);return W}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.e("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.previousButton)&&!((O=this.data)==null||!O.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 W;return((W=_.iq().resolve(_.cs).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return!((W=this.data)==null?0:(O=W.thumbnail)==null?0:(b=O.accessibility)==null?0:(T=b.accessibilityData)==null?0:T.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
vl.prototype.onChildElementFocus=vl.prototype.onChildElementFocus;vl.prototype.handleRerenderDownloadsData=vl.prototype.handleRerenderDownloadsData;vl.prototype.onDataChange=vl.prototype.onDataChange;vl.prototype.onRowIndexChange=vl.prototype.onRowIndexChange;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vl.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.rn),_.N("design:type",Object)],vl.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],vl.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],vl.prototype,"ytdReduxBehavior",void 0);_.t([_.C({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.N("design:type",Object)],vl.prototype,"useResponsiveGrid",void 0);_.t([_.C(),_.N("design:type",Object)],vl.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Number)],vl.prototype,"standardUnitMinWidth",void 0);_.t([_.C({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],vl.prototype,"elementsPerRow",void 0);_.t([_.C({value:3}),_.N("design:type",Number)],vl.prototype,"postsPerRow",void 0);_.t([_.C({value:6}),_.N("design:type",Number)],vl.prototype,"slimItemsPerRow",void 0);_.t([_.C({value:6}),_.N("design:type",Number)],vl.prototype,"gameCardsPerRow",void 0);
_.t([_.C({value:6}),_.N("design:type",Number)],vl.prototype,"miniGameCardsPerRow",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"standardShelfMargins",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"isShowMoreHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"isExpanded",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"isInnerShelf",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.N("design:type",Boolean)],vl.prototype,"isShorts",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.N("design:type",Boolean)],vl.prototype,"isLumiere",void 0);_.t([_.C({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],vl.prototype,"hasBoxArtThumbnailStyle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.N("design:type",Boolean)],vl.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.N("design:type",Boolean)],vl.prototype,"hasFeaturedBadge",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.N("design:type",Boolean)],vl.prototype,"hasPaygatedFeaturedBadge",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.N("design:type",Boolean)],vl.prototype,"isHeaderHidden",void 0);_.t([_.C({selector:_.lmQ}),_.N("design:type",Object)],vl.prototype,"allVideosCount",void 0);_.t([_.C({selector:Hkq}),_.N("design:type",Object)],vl.prototype,"allPlaylistCount",void 0);_.t([_.C({selector:k38}),_.N("design:type",Object)],vl.prototype,"haveSmartDownloadsCompleted",void 0);
_.t([_.C({selectorArgs:["entitySelectorType"],selector:function(W,O){if(_.e("kevlar_modern_downloads_page")&&O&&O!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var b=W.entities;switch(O){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":O=_.vS(b);W=Ry(O);var T=_.eK(O);b=_.oJ(b);b=_.iv(DBP(T,b,O.length));return{contents:W,subtitle:b};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return b=_.vS(b),{contents:Ry(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return b=
_.gm(b),{contents:Ry(b)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return b=_.FQX(b),{contents:Ry(b)};default:_.z5(new _.pu("Error: entitySelectorType defined but not matched in selector.",W,O))}}}}),
_.N("design:type",Object)],vl.prototype,"entityDrivenRichShelfData",void 0);_.t([_.C({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],vl.prototype,"hasTopCtaButton",void 0);_.t([_.C({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.N("design:type",Boolean)],vl.prototype,"hasBottomCtaButton",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.N("design:type",Boolean)],vl.prototype,"force16By9ThumbnailAspectRatio",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"isShowLessHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vl.prototype,"restrictContentsOverflow",void 0);_.t([_.C({selector:_.Y2X}),_.N("design:type",Boolean)],vl.prototype,"inlinePreviewIsEnabled",void 0);
_.t([_.C({computed:"computeSizing(data)"}),_.N("design:type",String)],vl.prototype,"sizing",void 0);_.t([_.C(),_.N("design:type",Boolean)],vl.prototype,"typographyBump",void 0);_.t([_.C(),_.N("design:type",Number)],vl.prototype,"itemWidth",void 0);_.t([_.C(),_.N("design:type",Object)],vl.prototype,"firstShownIndex",void 0);_.t([_.C(),_.N("design:type",Object)],vl.prototype,"horizontalOffset",void 0);_.t([_.C(),_.N("design:type",Object)],vl.prototype,"atEnd",void 0);
_.t([_.El("#contents"),_.N("design:type",HTMLElement)],vl.prototype,"contents",void 0);_.t([_.m5("data.rowIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vl.prototype,"onRowIndexChange",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vl.prototype,"onDataChange",null);
_.t([_.m5("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vl.prototype,"handleRerenderDownloadsData",null);_.t([_.ai("focusin"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],vl.prototype,"onChildElementFocus",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","isHomePage"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vl.prototype,"isTruncated",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vl.prototype,"hideBottomDivider",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vl.prototype,"hasChevronButtons",null);_.t([_.x("firstShownIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],vl.prototype,"previousButtonOverride",null);
_.t([_.x("atEnd"),_.N("design:type",Object),_.N("design:paramtypes",[])],vl.prototype,"nextButtonOverride",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vl.prototype,"isHomePage",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vl.prototype,"thumbnailAriaHidden",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],vl.prototype,"initiallyIsExpanded",null);
_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],vl.prototype,"entitySelectorType",null);vl=_.t([_.G({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],vl);
_.Kk9=_.TH()(vl,"ytd-rich-shelf-renderer",function(){if(RJ7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);RJ7=W}W=RJ7;return W},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var vfH;_.O1(L$$,"yt-slimline-survey-view-model",{props:{data:_.te}});var gM=function(){var W=_.n.apply(this,arguments)||this;W.tileLottieAnimationRef={};W.backgroundLottieAnimationRef={};W.isOnHoverBehaviorForLottieEnabled=!0;W.useBiggerShowcaseImage=_.e("enable_desktop_search_bigger_thumbs");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return W};
_.R(gM,_.n);_.d=gM.prototype;_.d.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.d.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.d.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var W=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);W!==this.hasTile&&this.set("hasTile",W);W=this.hasLogo(this.data)||!!this.data.badgeText;W!==this.hasMetadata&&this.set("hasMetadata",W);W=this.data.overflowButton?!1:W;W!==this.showLogoImage&&this.set("showLogoImage",W);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.d.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.d.currentColorChanged=function(){this.updateButtonPalette()};
_.d.computeBackgroundStyle=function(W){if(W&&this.data){var O=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.jE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&O.push('background-image: url("'+b+'");')}var T;((T=W.basicColorData)==null?void 0:T.backgroundColor)!==void 0&&O.push("background-color: "+_.C_(W.basicColorData.backgroundColor)+";");return O.join("")}};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W)};
_.d.getCurrentLogo=function(W,O){if(W)return O?W.darkLogoImage:W.lightLogoImage};
_.d.getCurrentStaticTileImage=function(W,O){if(this.hasStaticTile(W))return W.darkTileImage?O?W.darkTileImage:W.tileImage:W.tileImage};
_.d.computeTitleStyle=function(W){if(this.data&&this.data.title&&W&&W.basicColorData&&W.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.zF(W.basicColorData.foregroundTitleColor)+";"};
_.d.computeSubtitleStyle=function(W){if(this.data&&this.data.subtitle&&W&&W.basicColorData&&W.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.zF(W.basicColorData.foregroundBodyColor)+";"};
_.d.computeSupplementalStyle=function(W){if(this.data&&this.data.supplementalText&&W&&W.supplementalTextColor!==void 0)return W=_.zF(W.supplementalTextColor),"color:"+W+";--yt-endpoint-color:"+W+";--yt-endpoint-hover-color:"+W+";--yt-endpoint-visited-color:"+W+";--yt-formatted-string-bold-font-weight:700;"};
_.d.computeBadgeStyle=function(W){if(this.data&&this.data.badgeText&&W&&W.basicColorData&&W.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.zF(W.basicColorData.foregroundActivatedColor)+";"};
_.d.computeDismissIconStyle=function(W){var O,b;if((W==null?0:(O=W.dismissButtonColorData)==null?0:O.foregroundTitleColor)&&(W==null?0:(b=W.dismissButtonColorData)==null?0:b.backgroundColor))return"--yt-button-color:"+_.C_(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.C_(W.dismissButtonColorData.backgroundColor)+";"};
_.d.computeOverflowIconStyle=function(W){var O,b;if((W==null?0:(O=W.dismissButtonColorData)==null?0:O.foregroundTitleColor)&&(W==null?0:(b=W.dismissButtonColorData)==null?0:b.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.C_(W.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.C_(W.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.C_(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.d.computeBannerStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeLocation=function(W){switch(W==null?void 0:W.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.d.shouldShowTileSection=function(W,O,b){return!this.shouldExpandLogo(W,O,b)&&O};
_.d.shouldShowExpandedLogoSection=function(W,O,b){return this.shouldExpandLogo(W,O,b)&&W!==void 0&&this.hasLogo(W)};
_.d.shouldExpandLogo=function(W,O,b){return W&&O?!1:b>=2};
_.d.hasStaticTile=function(W){return!(W==null||!W.tileImage)};
_.d.hasTileLottie=function(W){var O;return!!(W==null?0:(O=W.tileLottie)==null?0:O.url)};
_.d.hasLogo=function(W){return this.getCurrentLogo(W,this.isDarkTheme)!==void 0};
_.d.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.d.getExpandedLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.d.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.d.hasBackgroundLottie=function(W){var O;return!!(W==null?0:(O=W.backgroundLottie)==null?0:O.url)};
_.d.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,O;(W=this.tileLottieAnimationRef)==null||(O=W.lottieEl)==null||O.play();var b,T;(b=this.backgroundLottieAnimationRef)==null||(T=b.lottieEl)==null||T.play()}};
_.d.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var W,O;(W=this.tileLottieAnimationRef)==null||(O=W.lottieEl)==null||O.pause();var b,T;(b=this.backgroundLottieAnimationRef)==null||(T=b.lottieEl)==null||T.pause()}};
_.d.pauseLottie=function(){var W,O;(W=this.tileLottieAnimationRef)==null||(O=W.lottieEl)==null||O.pause();var b,T;(b=this.backgroundLottieAnimationRef)==null||(T=b.lottieEl)==null||T.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.d.performPrimaryButtonAction=function(){var W,O,b;((W=this.data)==null?0:(O=W.primaryButton)==null?0:(b=O.buttonRenderer)==null?0:b.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
_.d.updateButtonPalette=function(){if(this.data&&this.currentColorData){var W;((W=this.data.dismissButton)==null?0:W.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 O;if((O=this.data.primaryButton)==null?0:O.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var b;if((b=this.data.secondaryButton)==
null?0:b.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var T;((T=this.data.primaryButton)==null?0:T.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var L;((L=this.data.secondaryButton)==null?0:L.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.d.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var W=this.getTileLottieDataBasedOnTheme(),O,b;if(W.url!==((O=this.tileLottiePlayerProps)==null?void 0:(b=O.animationConfig)==null?void 0:b.path)){var T,L;(T=this.tileLottieAnimationRef)==null||(L=T.lottieEl)==null||L.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=W.settings)==null?0:h.autoplay);var Z,a;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(a=(Z=W.settings)==null?void 0:Z.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.tileLottiePlayerProps.animationConfig.path=W.url:this.tileLottiePlayerProps.animationConfig.animationData=W.url}}};
_.d.getOverflowButton=function(W){return _.P(W.overflowButton,VO1)};
_.d.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var W=this.getBackgroundLottieDataBasedOnTheme(),O,b;if(W.url!==((O=this.backgroundLottiePlayerProps)==null?void 0:(b=O.animationConfig)==null?void 0:b.path)){var T,L;(T=this.backgroundLottieAnimationRef)==null||(L=T.lottieEl)==null||L.destroy();var h;this.isOnHoverBehaviorForLottieEnabled=!((h=W.settings)==null?0:h.autoplay);var Z,a;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(a=(Z=W.settings)==null?void 0:Z.autoplay)!=null?a:!1,loop:this.getLottieLoopValue(W.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof W.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=W.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
W.url}}};
_.d.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var W;((W=this.tileLottieAnimationRef)==null?void 0:W.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var O;((O=this.backgroundLottieAnimationRef)==null?void 0:O.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.d.getTileLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeTileLottie))return this.data.darkThemeTileLottie;var O;return((O=this.data)==null?0:O.tileLottie)?this.data.tileLottie:{}};
_.d.getBackgroundLottieDataBasedOnTheme=function(){var W;if(this.isDarkTheme&&((W=this.data)==null?0:W.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var O;return((O=this.data)==null?0:O.backgroundLottie)?this.data.backgroundLottie:{}};
_.d.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.d.getLottieLoopValue=function(W){return W?W.loop!==void 0?W.loop:W.loopCount?W.loopCount-1:!0:!0};
_.d.logoWithPadding=function(W){var O,b,T;return(W=(O=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(b=O.thumbnails)==null?void 0:(T=b[0])==null?void 0:T.height)&&W%31===0?!0:!1};
gM.prototype.currentColorChanged=gM.prototype.currentColorChanged;gM.prototype.themeChanged=gM.prototype.themeChanged;gM.prototype.dataChanged=gM.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],gM.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],gM.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],gM.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"primaryButton",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"secondaryButton",void 0);
_.t([_.C({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],gM.prototype,"elementsPerRow",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gM.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gM.prototype,"hasTile",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gM.prototype,"hasMetadata",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],gM.prototype,"showLogoImage",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"currentColorData",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.N("design:type",String)],gM.prototype,"bannerStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.N("design:type",String)],gM.prototype,"location",void 0);
_.t([_.C(),_.N("design:type",Object)],gM.prototype,"tileLottiePlayerProps",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"tileLottieAnimationRef",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"backgroundLottiePlayerProps",void 0);_.t([_.C(),_.N("design:type",Object)],gM.prototype,"backgroundLottieAnimationRef",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gM.prototype,"useBiggerShowcaseImage",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],gM.prototype,"isHideEnclosingAction",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gM.prototype,"dataChanged",null);_.t([_.Ul("isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gM.prototype,"themeChanged",null);
_.t([_.Ul("currentColorData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gM.prototype,"currentColorChanged",null);gM=_.t([_.G({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],gM);
_.H(gM,"ytd-statement-banner-renderer",function(){if(vfH!==void 0)return vfH;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-img-shadow>\n            <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return vfH=W},{mode:1});var gfN;var om=function(){var W=_.n.apply(this,arguments)||this;W.isSearch=!1;W.hideShelfHeader=!1;W.engagementPanel=!1;W.disableMouseScroll=!0;W.useFloorScrolling=!0;W.modernTypography=_.e("web_modern_typography");return W};
_.R(om,_.n);om.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.EO("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.EO("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
om.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
om.prototype.onDataChanged=om.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],om.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],om.prototype,"hideShelfHeader",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],om.prototype,"engagementPanel",void 0);_.t([_.C(),_.N("design:type",Object)],om.prototype,"disableMouseScroll",void 0);_.t([_.C(),_.N("design:type",Object)],om.prototype,"useFloorScrolling",void 0);_.t([_.C(),_.N("design:type",Object)],om.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],om.prototype,"modernTypography",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],om.prototype,"onDataChanged",null);om=_.t([_.G({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],om);
_.H(om,"ytd-reel-shelf-renderer",function(){if(gfN!==void 0)return gfN;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gfN=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var ofn;var Qtw=_.J1(function(W){var O=W.data;W=W.useSmallFont;var b={},T={};return _.E("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.E(_.U,{cond:function(){return O().favicon},
then:function(L){return _.E(_.uj,{data:L,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.E("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.E(_.uw,{text:function(){return O().title},
className:_.YS("yt-channel-external-link-view-model-wiz__title",(b["yt-channel-external-link-view-model-wiz__title--title-small-font"]=W,b)),ellipsisTruncate:!0,userInput:!0}),_.E(_.uw,{text:function(){return O().link},
className:_.YS("yt-channel-external-link-view-model-wiz__link",(T["yt-channel-external-link-view-model-wiz__link--link-small-font"]=W,T)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Cb");
Qtw.idomCompat=!0;_.O1(Qtw,"yt-channel-external-link-view-model",{props:{data:_.te,useSmallFont:_.te}});_.Bs("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Qu=function(){var W=_.n.apply(this,arguments)||this;W.revealButtonClass="button";W.businessEmailDisplayState="HIDE_SECTION";return W};
_.R(Qu,_.n);_.d=Qu.prototype;_.d.refit=function(){var W=this;_.qe(function(){_.TU(W.hostElement,"yt-refit-popups-action")});
_.My(this,function(){_.TU(W.hostElement,"yt-refit-popups-action")})};
_.d.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.qp("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.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"}}}};
_.d.computeEmailHref=function(W){return"mailto:"+W};
_.d.computeSafeUrl=function(W){if(W)return _.l7(W)};
_.d.linkEndpoint=function(W){return _.P(W.onTap,_.D6)};
_.d.linkEndpointToHref=function(W){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(W))};
_.d.onYtServiceRequestCompleted=function(W){var O;if((O=W.detail.data)==null?0:O.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=W.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var W=this.JSC$14120_captchaTextarea.value;if(W){W={recaptcha_response_token:W,channel_id:this.metadata.channelId};var O=_.P(this.metadata.onBusinessEmailRevealClickCommand,_.D6);O&&this.ytComponentBehavior.resolveCommand(O,{form:W})}}};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Jq.Object.defineProperties(Qu.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var W;return _.P((W=this.data)==null?void 0:W.metadata,GNU)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.P(this.metadata.businessEmailRevealButton,_.Kp)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var W=new URL(this.metadata.canonicalChannelUrl);return W.host+W.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 _.P(this.metadata.learnMoreOnTap,_.D6)}}});
Qu.prototype.onYtServiceRequestCompleted=Qu.prototype.onYtServiceRequestCompleted;Qu.prototype.businessEmailMetadataChanged=Qu.prototype.businessEmailMetadataChanged;Qu.prototype.refit=Qu.prototype.refit;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Qu.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],Qu.prototype,"JSC$14120_captchaTextarea",void 0);_.t([_.C(),_.N("design:type",Object)],Qu.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Qu.prototype,"revealButtonClass",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qu.prototype,"metadata",null);
_.t([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qu.prototype,"revealButton",null);_.t([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qu.prototype,"channelDisplayUrl",null);_.t([_.Ul("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"refit",null);_.t([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qu.prototype,"formattedDescription",null);
_.t([_.x("metadata","learnMoreCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Qu.prototype,"shouldRendereVerifiedPhoneStatus",null);_.t([_.x("metadata"),_.N("design:type",Object),_.N("design:paramtypes",[])],Qu.prototype,"learnMoreCommand",null);_.t([_.C(),_.N("design:type",String)],Qu.prototype,"businessEmailDisplayState",void 0);_.t([_.C(),_.N("design:type",String)],Qu.prototype,"businessEmail",void 0);
_.t([_.C(),_.N("design:type",String)],Qu.prototype,"businessEmailErrorMessage",void 0);_.t([_.Ul("metadata"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qu.prototype,"businessEmailMetadataChanged",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Qu.prototype,"onYtServiceRequestCompleted",null);
Qu=_.t([_.G({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Qu);
_.H(Qu,"ytd-about-channel-renderer",function(){if(ofn!==void 0)return ofn;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ofn=W},{mode:1});var kWS;var kU=function(){return _.n.apply(this,arguments)||this};
_.R(kU,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kU.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kU.prototype,"data",void 0);kU=_.t([_.G({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],kU);
_.H(kU,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(kWS!==void 0)return kWS;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kWS=W},{mode:1});var stf;var sn=function(){return _.n.apply(this,arguments)||this};
_.R(sn,_.n);sn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sn.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],sn.prototype,"aligment",void 0);sn=_.t([_.G({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],sn);
_.H(sn,"ytd-channel-list-sub-menu-renderer",function(){if(stf!==void 0)return stf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return stf=
W},{mode:1});var BRz;var Bl=function(){return _.n.apply(this,arguments)||this};
_.R(Bl,_.n);Bl.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Bl.prototype,"data",void 0);Bl=_.t([_.G({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Bl);
_.H(Bl,"ytd-channel-sub-menu-renderer",function(){if(BRz!==void 0)return BRz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BRz=W},{mode:1});var rOU;var DOz;var rM=function(){var W=_.n.apply(this,arguments)||this;W.isCompact=!1;return W};
_.R(rM,_.n);_.Jq.Object.defineProperties(rM.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var W,O;return((O=_.P((W=this.data)==null?void 0:W.endpoint,_.t8))==null?void 0:O.target)==="TARGET_NEW_WINDOW"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],rM.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rM.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rM.prototype,"isCompact",void 0);_.t([_.x("isCompact"),_.N("design:type",Number),_.N("design:paramtypes",[])],rM.prototype,"thumbnailWidth",null);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],rM.prototype,"openNewWindow",null);rM=_.t([_.G({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],rM);
_.H(rM,"ytd-media-lockup-renderer",function(){if(DOz!==void 0)return DOz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DOz=W},{mode:1});var xO9;var DU=function(){return _.n.apply(this,arguments)||this};
_.R(DU,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],DU.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],DU.prototype,"data",void 0);DU=_.t([_.G({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],DU);
_.H(DU,"ytd-structured-description-channel-lockup-renderer",function(){if(xO9!==void 0)return xO9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return xO9=W},{mode:1});var zJw;var xU=function(){var W=_.n.apply(this,arguments)||this;W.isCompact=!1;W.collections=_.e("web_modern_collections_v2");W.collectionsStackColor=_.e("modernize_structured_description_playlist_lockups_v2");return W};
_.R(xU,_.n);xU.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:_.e("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Jq.Object.defineProperties(xU.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(W=this.data)==null?void 0:(O=W.thumbnail)==null?void 0:O.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(b=this.data)==null?void 0:(T=b.thumbnail)==null?void 0:T.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(L=this.data)==null?void 0:(h=L.thumbnail)==
null?void 0:h.vibrantColorPalette:void 0}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],xU.prototype,"componentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xU.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],xU.prototype,"showSidePanelThumbnailOverlay",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],xU.prototype,"isCompact",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],xU.prototype,"collections",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],xU.prototype,"collectionsStackColor",void 0);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],xU.prototype,"twoLineTitle",null);
_.t([_.x("data","collections","collectionsStackColor"),_.N("design:type",Object),_.N("design:paramtypes",[])],xU.prototype,"collectionStack",null);xU=_.t([_.G({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],xU);
_.H(xU,"ytd-structured-description-playlist-lockup-renderer",function(){if(zJw!==void 0)return zJw;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zJw=W},{mode:1});var C4v;var z2=function(){return _.n.apply(this,arguments)||this};
_.R(z2,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],z2.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],z2.prototype,"data",void 0);z2=_.t([_.G({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],z2);
_.H(z2,"ytd-structured-description-video-lockup-renderer",function(){if(C4v!==void 0)return C4v;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return C4v=W},{mode:2});var CY=function(){return _.n.apply(this,arguments)||this};
_.R(CY,_.n);
CY.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],CY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CY.prototype,"data",void 0);CY=_.t([_.G({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],CY);
_.H(CY,"ytd-compact-infocard-renderer",function(){if(rOU!==void 0)return rOU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return rOU=W},{mode:1});var qd7;var q1=function(){var W=_.n.apply(this,arguments)||this;W.useModernCollectionsV2=_.e("web_modern_collections_v2");return W};
_.R(q1,_.n);q1.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Jq.Object.defineProperties(q1.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],q1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],q1.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],q1.prototype,"ytdReduxBehavior",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],q1.prototype,"isGridViewEnabled",void 0);
_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],q1.prototype,"watchFeedBigThumbs",null);_.t([_.x("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"168"}),_.N("design:type",String),_.N("design:paramtypes",[])],q1.prototype,"thumbnailWidth",null);_.t([_.x("isGridViewEnabled","data"),_.C({reflectToAttribute:!0,value:"94"}),_.N("design:type",String),_.N("design:paramtypes",[])],q1.prototype,"customThumbnailSize",null);
_.t([_.C(),_.N("design:type",Object)],q1.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],q1.prototype,"useModernCollectionsV2",void 0);q1=_.t([_.G({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],q1);
_.H(q1,"ytd-compact-playlist-renderer",function(){if(qd7!==void 0)return qd7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qd7=W},{mode:1});var nff;var nY=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.roundedContainer=!0;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.R(nY,_.n);_.d=nY.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.d.computeViewStyle=function(W){return W.style?W.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.d.onUpdateElementsPerRowAction=function(W){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&W===1};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
nY.prototype.dataChanged=nY.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],nY.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],nY.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],nY.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],nY.prototype,"hideThumbnail",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.N("design:type",String)],nY.prototype,"viewStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nY.prototype,"darkerDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nY.prototype,"roundedContainer",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nY.prototype,"dataChanged",null);nY=_.t([_.G({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],nY);
_.H(nY,"ytd-compact-promoted-item-renderer",function(){if(nff!==void 0)return nff;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nff=W},{mode:1});var fVL;var fY=function(){var W=_.n.apply(this,arguments)||this;W.collections=_.e("web_modern_collections_v2");return W};
_.R(fY,_.n);fY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
fY.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
fY.prototype.onYtNavigate=function(W,O){var b=this;if(O.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",O)){var T=this.get("watchEndpoint.videoId",O.endpoint),L=_.TU(this.hostElement,"yt-get-current-video-id-action")[0];_.e("kevlar_mix_handle_first_endpoint_different")&&T&&L&&T!==L||(W.stopPropagation(),_.Wm().getPlayerPromise().then(function(h){if(h.getPlayerState()===0&&b.data.secondaryNavigationEndpoint)var Z=b.data.secondaryNavigationEndpoint;else{Z=
Object.assign({},O.endpoint);var a=_.P(Z.commandMetadata,_.F9);a&&(h=Math.floor(h.getCurrentTime()),a.url=_.uW(a.url,{t:h}),!_.e("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(a=_.P(Z,_.V3)))&&(a.startTimeSeconds=h)}_.bX(b.hostElement,"yt-navigate",{endpoint:Z})}))}};
_.Jq.Object.defineProperties(fY.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(W=this.data)==null?void 0:(O=W.thumbnail)==null?void 0:O.sampledThumbnailColor,vibrantColorPalette:(b=this.data)==null?void 0:(T=b.thumbnail)==null?void 0:T.vibrantColorPalette,darkColorPalette:(L=this.data)==null?void 0:(h=L.thumbnail)==null?void 0:h.darkColorPalette,experimentEnabled:this.collections}}}});
fY.prototype.onYtNavigate=fY.prototype.onYtNavigate;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],fY.prototype,"ytEndpointBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],fY.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.fh),_.N("design:type",Object)],fY.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],fY.prototype,"ytdReduxBehavior",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],fY.prototype,"isGridViewEnabled",void 0);_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fY.prototype,"watchFeedBigThumbs",null);
_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],fY.prototype,"thumbnailWidth",null);_.t([_.C(),_.N("design:type",Object)],fY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],fY.prototype,"collections",void 0);_.t([_.x("data","collections"),_.N("design:type",Object),_.N("design:paramtypes",[])],fY.prototype,"collectionStack",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],fY.prototype,"onYtNavigate",null);fY=_.t([_.G({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],fY);
_.H(fY,"ytd-compact-radio-renderer",function(){if(fVL!==void 0)return fVL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fVL=W},{mode:1});var GWw;var G2=function(){return _.n.apply(this,arguments)||this};
_.R(G2,_.n);G2.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
G2.prototype.computeRendererStyle=function(W){return W.style?W.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.t([_.C(),_.N("design:type",Object)],G2.prototype,"data",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],G2.prototype,"rendererBehavior",void 0);_.t([_.C({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.N("design:type",String)],G2.prototype,"rendererStyle",void 0);
G2=_.t([_.G({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],G2);
_.H(G2,"ytd-compact-text-promo-renderer",function(){if(GWw!==void 0)return GWw;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GWw=W},{mode:1});var Hx1;var Hl=function(){var W=_.n.apply(this,arguments)||this;W.isShortsStyle=!1;return W};
_.R(Hl,_.n);_.d=Hl.prototype;_.d.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"}}}};
_.d.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.bX(this.hostElement,"yt-disable-lockup-interaction"):_.bX(this.hostElement,"yt-enable-lockup-interaction"))};
_.d.isMetaBlockEmpty=function(W){return!W||!W.longBylineText&&!W.shortBylineText&&!W.shortViewCountText&&!W.viewCountText};
_.d.computeHasOneLineTitle=function(W){return this.forceOneLineTitle||!(W==null||!W.buttons)};
_.d.computeDisableInteraction=function(){var W;return!((W=this.data)==null?0:W.navigationEndpoint)};
_.d.hasSingularTopStandaloneBadge=function(){var W;return!((W=this.data)==null||!W.topStandaloneBadge)};
_.Jq.Object.defineProperties(Hl.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("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 W;return this.hasSingularTopStandaloneBadge()?[(W=this.data)==null?void 0:W.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var W;return this.shouldShowTopBadges?((W=this.data)==null?void 0:W.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Hl.prototype.disableInteractionChanged=Hl.prototype.disableInteractionChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Hl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Hl.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],Hl.prototype,"ytdLockupBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],Hl.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.N("design:type",Boolean)],Hl.prototype,"metaBlockEmpty",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],Hl.prototype,"isGridViewEnabled",void 0);_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hl.prototype,"watchFeedBigThumbs",null);
_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],Hl.prototype,"thumbnailWidth",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Hl.prototype,"isShortsStyle",void 0);_.t([_.C(),_.N("design:type",Object)],Hl.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.N("design:type",Boolean)],Hl.prototype,"hasOneLineTitle",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Hl.prototype,"hideThumbnail",void 0);_.t([_.C(),_.N("design:type",Boolean)],Hl.prototype,"forceOneLineTitle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.N("design:type",Boolean)],Hl.prototype,"disableInteraction",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Hl.prototype,"musicMetadataVideoLockup",void 0);
_.t([_.m5("disableInteraction"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hl.prototype,"disableInteractionChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hl.prototype,"shouldShowTopBadges",null);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Hl.prototype,"topBadges",null);
_.t([_.x("shouldShowTopBadges","data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Hl.prototype,"inlineMetadataBadges",null);_.t([_.x("shouldShowTopBadges"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Hl.prototype,"shouldShowBadgesBelowMetadata",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Hl.prototype,"compactTitleClass",null);Hl=_.t([_.G({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Hl);
_.H(Hl,"ytd-compact-video-renderer",function(){if(Hx1!==void 0)return Hx1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Hx1=W},{mode:_.Lb("kevlar_poly_si_batch_j067")?1:2});var t2U;_.Bs("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var tn=function(){return _.n.apply(this,arguments)||this};
_.R(tn,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tn.prototype,"data",void 0);tn=_.t([_.G({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],tn);
_.H(tn,"ytd-counterfactual-renderer",function(){if(t2U!==void 0)return t2U;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return t2U=W},{mode:1});var $ON;var $U=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;return W};
_.R($U,_.n);$U.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.iq().resolve(_.bq).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
$U.prototype.computeHidden=function(W){return!!W};
_.Jq.Object.defineProperties($U.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}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$U.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$U.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.N("design:type",Object)],$U.prototype,"hidden",void 0);_.t([_.x("data.label"),_.N("design:type",String),_.N("design:paramtypes",[])],$U.prototype,"label",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$U.prototype,"value",null);
$U=_.t([_.G({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],$U);
_.H($U,"ytd-dropdown-item-renderer",function(){if($ON!==void 0)return $ON;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $ON=W},{mode:1});var V2f;var NRS;var Vu=function(){return _.n.apply(this,arguments)||this};
_.R(Vu,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vu.prototype,"data",void 0);_.t([_.C({computed:"getSimpleString(data.label)"}),_.N("design:type",String)],Vu.prototype,"label",void 0);Vu=_.t([_.G({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Vu);
_.H(Vu,"ytd-navigation-dropdown-item-renderer",function(){if(NRS!==void 0)return NRS;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return NRS=W},{mode:1});var N1=function(){var W=_.n.apply(this,arguments)||this;W.disabled=!1;W.value="";W.noLabelFloat=!1;W.noUnderline=!1;W.usePrimaryColor=!1;W.hasBackground=!1;W.verticalAlign="top";W.autosize=!1;W.minAutosizeWidth=100;W.autosizeFont="14px Roboto";return W};
_.R(N1,_.n);_.d=N1.prototype;_.d.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"}}}};
_.d.open=function(){this.inputEl.open()};
_.d.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.d.dataChanged=function(){this.reset()};
_.d.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("value-changed",this.value))};
_.d.stopPropagation=function(W){W.stopPropagation()};
_.d.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var W=this.canvas.getContext("2d");W&&(W.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(W.measureText(this.inputEl.value).width)+24)+"px")}};
_.d.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var W=0,O=this.data.entries.length;W<O;W++){var b=this.data.entries[W],T;for(T in b)if(b.hasOwnProperty(T)){var L=b[T];if("isSelected"in L&&L.isSelected)return"stringValue"in L?L.stringValue||"":"int32Value"in L?L.int32Value||0:0}}return null};
_.d.updateValueFromBinding=function(W){this.value=W.detail.value};
_.Jq.Object.defineProperties(N1.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 W=0,O=this.data.entries.length;W<O;W++){var b=this.data.entries[W],T;for(T in b)if(b.hasOwnProperty(T)){var L=b[T];if("isSelected"in L&&L.isSelected&&"label"in L)return this.ytRendererBehavior.getSimpleString(L.label)}}return null}}});
N1.prototype.autoSizeLabel=N1.prototype.autoSizeLabel;N1.prototype.stopPropagation=N1.prototype.stopPropagation;N1.prototype.valueChangedForBinding=N1.prototype.valueChangedForBinding;N1.prototype.dataChanged=N1.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],N1.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],N1.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N1.prototype,"disabled",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"value",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"noLabelFloat",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N1.prototype,"noUnderline",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],N1.prototype,"theme",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N1.prototype,"usePrimaryColor",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N1.prototype,"hasBackground",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"verticalAlign",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"autosize",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"minAutosizeWidth",void 0);_.t([_.C(),_.N("design:type",Object)],N1.prototype,"autosizeFont",void 0);
_.t([_.El("#entries"),_.N("design:type",Object)],N1.prototype,"entries",void 0);_.t([_.El("#input"),_.N("design:type",Object)],N1.prototype,"inputEl",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"dataChanged",null);_.t([_.Ul("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"valueChangedForBinding",null);
_.t([_.ai("iron-overlay-opened"),_.ai("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],N1.prototype,"stopPropagation",null);_.t([_.ai("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N1.prototype,"autoSizeLabel",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],N1.prototype,"label",null);
N1=_.t([_.G({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],N1);
_.H(N1,"ytd-dropdown-renderer",function(){if(V2f!==void 0)return V2f;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return V2f=W},{mode:1});var M2n;var M1=function(){var W=_.n.apply(this,arguments)||this;W.isConstrainedList=!1;return W};
_.R(M1,_.n);M1.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"}}}};
M1.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
M1.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
M1.prototype.computeViewAllHidden=function(W,O){return W||!O.viewAllEndpoint};
M1.prototype.fillRestIfNoShowMore=M1.prototype.fillRestIfNoShowMore;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],M1.prototype,"ytLazyListBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],M1.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],M1.prototype,"isConstrainedList",void 0);_.t([_.Ul("data","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M1.prototype,"fillRestIfNoShowMore",null);M1=_.t([_.G({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],M1);
_.H(M1,"ytd-expanded-shelf-contents-renderer",function(){if(M2n!==void 0)return M2n;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return M2n=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var umH;var up=function(){return _.n.apply(this,arguments)||this};
_.R(up,_.n);up.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],up.prototype,"data",void 0);up=_.t([_.G({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],up);
_.H(up,"ytd-feed-channel-filter-header-renderer",function(){if(umH!==void 0)return umH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return umH=W},{mode:1});var JOv;var cOv;var Fkq;var Jn=function(){return _.n.apply(this,arguments)||this};
_.R(Jn,_.n);_.d=Jn.prototype;_.d.onClick=function(W){var O,b=(O=this.data)==null?void 0:O.sectionEndpoint;!_.un(_.Nd(W),this.hostElement,["A".toString()])&&b&&_.bX(this.hostElement,"yt-navigate",{endpoint:b})};
_.d.computeHasSectionEndpoint=function(W){return(W==null?void 0:W.sectionEndpoint)!==void 0};
_.d.computeShowHeaderAsLink=function(W){return(W==null?void 0:W.header)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0};
_.d.computeShowSubheaderAsLink=function(W){return(W==null?void 0:W.subheader)!==void 0&&(W==null?void 0:W.sectionEndpoint)!==void 0&&(W==null?void 0:W.header)===void 0};
_.d.getHeaderAsLinkClass=function(W){var O=[],b;(W==null?0:(b=W.headerIcon)==null?0:b.iconType)&&O.push("header-link-active");return O.join(" ")};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Jn.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Jn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Jn.prototype,"data",void 0);
_.t([_.C({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Jn.prototype,"hasSectionEndpoint",void 0);_.t([_.C({computed:"computeShowHeaderAsLink(data)"}),_.N("design:type",Boolean)],Jn.prototype,"showHeaderAsLink",void 0);_.t([_.C({computed:"computeShowSubheaderAsLink(data)"}),_.N("design:type",Boolean)],Jn.prototype,"showSubheaderAsLink",void 0);Jn=_.t([_.G({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Jn);
_.H(Jn,"ytd-medical-panel-section-renderer",function(){if(Fkq!==void 0)return Fkq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Fkq=W},{mode:1});var cl=function(){var W=_.n.apply(this,arguments)||this;W.isExpanded=!1;W.roundedContainer=!0;W.skipRoundingTop=!1;W.toggleExpandableSection=function(){W.isExpanded=!W.isExpanded};
return W};
_.R(cl,_.n);
cl.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]]"}}}}}};
cl.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
cl.prototype.dataChanged=cl.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cl.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],cl.prototype,"isExpanded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cl.prototype,"roundedContainer",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cl.prototype,"skipRoundingTop",void 0);_.t([_.C(),_.N("design:type",Object)],cl.prototype,"toggleExpandableSection",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cl.prototype,"dataChanged",null);cl=_.t([_.G({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],cl);
_.H(cl,"ytd-medical-panel-content-renderer",function(){if(cOv!==void 0)return cOv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return cOv=W},{mode:1});_.Bs("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Fa=function(){var W=_.n.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");W.hasTitle=!1;W.linkIcon="OPEN_IN_NEW";W.isDismissed=!1;return W};
_.R(Fa,_.n);
Fa.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
Fa.prototype.computeHasTitle=function(W){return!(W==null||!W.title)};
Fa.prototype.onClick=function(W){var O,b=(O=this.data)==null?void 0:O.headerEndpoint;!_.un(_.Nd(W),this.hostElement,["BUTTON".toString()])&&b&&this.ytComponentBehavior.resolveCommand(b)};
_.Jq.Object.defineProperties(Fa.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 W;return((W=this.data)==null?void 0:W.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.disableBottomDivider)||!((O=this.data)==null?0:O.title)}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Fa.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Fa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Fa.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fa.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fa.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Fa.prototype,"amsterdamEnabled",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Object)],Fa.prototype,"hasTitle",void 0);
_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.background"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fa.prototype,"background",null);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fa.prototype,"titleStyle",null);
_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.x("data.titleStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fa.prototype,"showLinkIcon",null);_.t([_.C(),_.N("design:type",String)],Fa.prototype,"linkIcon",void 0);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fa.prototype,"hideDivider",null);
_.t([_.C({selectorArgs:["data.dismissStateEntityKey"],selector:function(W,O){W=_.IJ(W.entities,"dismissState",O);return(W==null?void 0:W.isDismissed)||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(W==null?void 0:W.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.N("design:type",Object)],Fa.prototype,"isDismissed",void 0);Fa=_.t([_.G({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Fa);
_.H(Fa,"ytd-info-panel-container-renderer",function(){if(JOv!==void 0)return JOv;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return JOv=W},{mode:1});var yON;_.Bs("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var yu=function(){var W=_.n.apply(this,arguments)||this;W.modernTypography=_.e("web_modern_typography");return W};
_.R(yu,_.n);yu.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
yu.prototype.computeStyle=function(W){return W?W:""};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yu.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.N("design:type",String)],yu.prototype,"titleStyle",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yu.prototype,"modernTypography",void 0);yu=_.t([_.G({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],yu);
_.H(yu,"ytd-item-section-header-renderer",function(){if(yON!==void 0)return yON;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return yON=W},{mode:1});var Wd9;var Oj9,ij7=function(){return Oj9!==void 0?Oj9:Oj9=document.createElement("template")};
document.head.appendChild(ij7().content);var bj1;_.We=new _.MV("VOTING_ANIMATION_CONTROLLER_TOKEN");var TF1=_.J1(function(W){var O=W.data;var b=_.uy(),T=_.uy();W=_.S(_.wu("VOTE_STATUS_NONE",void 0,"FVF7mc"));var L=W.next().value,h=W.next().value,Z=_.wt($BX,function(){var l;return(l=O())==null?void 0:l.entityKey}),a=_.e("web_enable_voting_animation")||_.e("enable_music_web_cairo_voting_animation");
_.kX(function(){var l;((l=O().initialState)==null?0:l.status)&&h(O().initialState.status)});
var m=function(){var l,p,K=(p=(l=O().initialState)==null?void 0:l.votes)!=null?p:0,k;l=(k=O().initialState)==null?void 0:k.status;return l==="VOTE_STATUS_UPVOTED"?K-1:l==="VOTE_STATUS_DOWNVOTED"?K+1:K},w=function(){return L()==="VOTE_STATUS_UPVOTED"?m()+1:L()==="VOTE_STATUS_DOWNVOTED"?m()-1:m()},A=function(l){var p=l?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
h(p);var K=w(),k=_.iq().resolve(_.OT(_.We)),r=Z();r&&(l&&(r==null?0:r.upvoteDefaultButtonOnTap)?_.nb(r.upvoteDefaultButtonOnTap,{form:{element:b.value},disableClickTracking:!0}):(r==null?0:r.upvoteToggledButtonOnTap)&&_.nb(r.upvoteToggledButtonOnTap,{form:{element:b.value},disableClickTracking:!0}));var q;l=(q=r==null?void 0:r.enableOptimisticReordering)!=null?q:O().enableOptimisticReordering;a&&k&&O().itemId&&l&&jEH(k,O().itemId,K,p)},X=function(l){var p=l?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
h(p);var K=w(),k=_.iq().resolve(_.OT(_.We)),r=Z();r&&(l&&(r==null?0:r.downvoteDefaultButtonOnTap)?_.nb(r.downvoteDefaultButtonOnTap,{form:{element:T.value},disableClickTracking:!0}):(r==null?0:r.downvoteToggledButtonOnTap)&&_.nb(r.downvoteToggledButtonOnTap,{form:{element:T.value},disableClickTracking:!0}));var q;l=(q=r==null?void 0:r.enableOptimisticReordering)!=null?q:O().enableOptimisticReordering;a&&k&&O().itemId&&l&&jEH(k,O().itemId,K,p)};
W={};W=_.YS("ytVotingViewModelVoteCount",(W.ytVotingViewModelVoteCountDisabled=function(){return O().isDisabled},W));
return _.E("voting-view-model",{class:"ytVotingViewModelHost"},_.E("div",{el:b},_.E(_.R4,{data:function(){var l=_.P(O().upvoteButton,_.vm);return{toggleButtonViewModel:Object.assign({},l,{isToggled:L()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(l){return _.E(_.gt,{data:l.data,
onToggle:A})}})),_.E("div",{class:W},function(){var l,p,K;
return L()==="VOTE_STATUS_UPVOTED"?(l=O().initialState)==null?void 0:l.compactVotesUpvoted:L()==="VOTE_STATUS_DOWNVOTED"?(p=O().initialState)==null?void 0:p.compactVotesDownvoted:(K=O().initialState)==null?void 0:K.compactVotes}),_.E("div",{el:T},_.E(_.R4,{data:function(){var l=_.P(O().downvoteButton,_.vm);
return{toggleButtonViewModel:Object.assign({},l,{isToggled:L()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(l){return _.E(_.gt,{data:l.data,
onToggle:X})}})))},"Db");_.O1(_.J1(function(W){var O=W.data;return _.E("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.E("div",{class:_.YS("ytEngagementBarViewModelEngagementBarWrapper",W.className)},_.E(_.R4,{data:function(){return O().actions}},{votingViewModel:TF1})))},"Eb"),"engagement-bar-view-model",{props:{data:_.te,
className:_.te}});var OW=function(){var W=_.n.apply(this,arguments)||this;W.amsterdamPostMvp=_.e("web_amsterdam_post_mvp_playlists");W.cairoCollabPlaylistPostMvp=_.e("web_collab_playlist_thumbnail_size");W.playlistVotingAnimationEnabled=_.e("web_enable_voting_animation");W.downloadProgress=0;W.transferState="TRANSFER_STATE_UNKNOWN";W.downloadState="DOWNLOAD_STATE_UNKNOWN";W.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";W.offlineVideoPolicyExpirationTimestamp=0;return W};
_.R(OW,_.n);_.d=OW.prototype;_.d.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"}}}};
_.d.canReorderChanged=function(){this.persistentDragHandle=_.e("kevlar_playlist_drag_handles")&&this.canReorder};
_.d.onDrag=function(){if(this.thumbnail){var W=_.Q(this.thumbnail).querySelector("yt-image");W&&(W.shouldRenderLazy=!1)}};
_.d.onMenuOverlayChanged=function(W,O){this.menuOpened=O};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.d.onContentsTap=function(W){var O,b=(O=this.data)==null?void 0:O.serviceEndpoints;if(b&&b.length===1&&_.P(b[0],yQi)&&!_.un(_.Nd(W),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(b[0]);else{var T;(O=(T=this.data)==null?void 0:T.navigationEndpoint)&&_.e("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Ldf(_.iq().resolve(_.xq),O):(_.IT().playlistSuggestionsShelfActivation=
!0,_.dKw(_.iq().resolve(_.xq),O)):O&&!_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.e("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.bX(this.hostElement,"yt-navigate",{endpoint:O}):this.ytComponentBehavior.resolveCommand(O))}};
_.d.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(W){return W==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.d.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=SLh(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))}};
_.d.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.d.dataChanged=function(){if(this.data){var W,O,b,T=((W=this.downloadRenderData)==null?void 0:W.badges)&&((O=this.downloadRenderData)==null?void 0:O.badges)!==((b=this.data)==null?void 0:b.badges),L,h,Z;W=((L=this.downloadRenderData)==null?void 0:L.thumbnailOverlays)&&((h=this.downloadRenderData)==null?void 0:h.thumbnailOverlays)!==((Z=this.data)==null?void 0:Z.thumbnailOverlays);(!this.downloadRenderData||T||W)&&this.downloadStateChanged()}};
_.d.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var W,O,b=(W=this.data.menu)==null?void 0:(O=W.menuRenderer)==null?void 0:O.items;if(b)for(W=_.S(b),O=W.next();!O.done;O=W.next())if(O=O.value,b=void 0,_.P((b=O.menuServiceItemRenderer)==null?void 0:b.serviceEndpoint,_.oP)){var T=b=void 0,L=void 0;O=(b=O)==null?void 0:(T=b.menuServiceItemRenderer)==null?void 0:(L=T.serviceEndpoint)==null?void 0:L.playlistEditEndpoint;L=T=void 0;if(b=(T=O)==null?void 0:(L=T.actions)==null?void 0:
L[0])T=void 0,b.setVideoId=(T=this.data)==null?void 0:T.setVideoId;L=T=b=void 0;if(O=(b=O)==null?void 0:(T=b.clientActions)==null?void 0:(L=T[0])==null?void 0:L.playlistRemoveVideosAction)b=void 0,O.setVideoIds=[(b=this.data)==null?void 0:b.setVideoId]}}};
_.Jq.Object.defineProperties(OW.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
OW.prototype.setVideoIdChanged=OW.prototype.setVideoIdChanged;OW.prototype.dataChanged=OW.prototype.dataChanged;OW.prototype.downloadStateChanged=OW.prototype.downloadStateChanged;OW.prototype.onMenuOverlayChanged=OW.prototype.onMenuOverlayChanged;OW.prototype.canReorderChanged=OW.prototype.canReorderChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],OW.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],OW.prototype,"ytdReduxBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],OW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],OW.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],OW.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],OW.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],OW.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],OW.prototype,"amsterdamPostMvp",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"canReorder",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"menuOpened",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"handleIsHovered",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"persistentDragHandle",void 0);
_.t([_.C(),_.N("design:type",Object)],OW.prototype,"downloadRenderData",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],OW.prototype,"styleType",void 0);_.t([_.C({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],OW.prototype,"thumbnailWidth",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"isDownloads",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],OW.prototype,"cairoCollabPlaylistPostMvp",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OW.prototype,"playlistVotingAnimationEnabled",void 0);_.t([_.C({selector:zc,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"downloadProgress",void 0);_.t([_.C(),_.N("design:type",Number)],OW.prototype,"relativeDateReference",void 0);
_.t([_.C({selector:_.D5,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"transferState",void 0);_.t([_.C({selector:B5X,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"downloadState",void 0);_.t([_.C({selector:XXO,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"offlinePolicyAction",void 0);_.t([_.C({selector:UNO,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.t([_.C({selector:eUQ,selectorArgs:["data.videoId"]}),_.N("design:type",Object)],OW.prototype,"entityInfo",void 0);_.t([_.C({selector:_.BS}),_.N("design:type",Boolean)],OW.prototype,"miniplayerIsActive",void 0);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],OW.prototype,"playlistVideoId",null);_.t([_.El("#thumbnail"),_.N("design:type",Object)],OW.prototype,"thumbnail",void 0);
_.t([_.Ul("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OW.prototype,"canReorderChanged",null);_.t([_.ai("yt-menu-overlay-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Boolean]),_.N("design:returntype")],OW.prototype,"onMenuOverlayChanged",null);
_.t([_.Ul("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OW.prototype,"downloadStateChanged",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OW.prototype,"dataChanged",null);
_.t([_.Ul("data.setVideoId"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OW.prototype,"setVideoIdChanged",null);OW=_.t([_.G({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],OW);
_.H(OW,"ytd-playlist-video-renderer",function(){if(bj1!==void 0)return bj1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);W.content.insertBefore(ij7().content.cloneNode(!0),W.content.firstChild);return bj1=W},{mode:1});var hCf;var i$=function(){return _.n.apply(this,arguments)||this};
_.R(i$,_.n);_.t([_.C(),_.N("design:type",Object)],i$.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],i$.prototype,"rendererBehavior",void 0);i$=_.t([_.G({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],i$);
_.H(i$,"ytd-premium-browse-footer-renderer",function(){if(hCf!==void 0)return hCf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hCf=W},{mode:1});var SJN;var b$=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return W};
_.R(b$,_.n);_.d=b$.prototype;_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.handleDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.computeHeaderLogoThumbnail=function(W,O){if(W)return O?W.darkLogo:W.lightLogo};
_.d.computeHeaderLogoHeight=function(W,O){var b,T,L;return(W=(b=this.computeHeaderLogoThumbnail(W,O))==null?void 0:(T=b.thumbnails)==null?void 0:(L=T[0])==null?void 0:L.height)&&W%31===0?"31":"24"};
_.d.computeHeaderLogoMarginBottom=function(W,O){return this.computeHeaderLogoHeight(W,O)==="24"?"0":"-7"};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],b$.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],b$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],b$.prototype,"isDarkTheme",void 0);_.t([_.C({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.N("design:type",Object)],b$.prototype,"themeLogo",void 0);
_.t([_.C({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.N("design:type",String)],b$.prototype,"logoHeight",void 0);_.t([_.C({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.N("design:type",String)],b$.prototype,"logoMarginBottom",void 0);b$=_.t([_.G({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],b$);
_.H(b$,"ytd-primetime-promo-header-renderer",function(){if(SJN!==void 0)return SJN;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return SJN=W},{mode:1});var ZjU;_.bO(MvX);var IY9=_.J1(function(W){var O=W.text;var b=W.className;var T=W.tagLevel;return _.E(_.vU,null,_.E(_.RW,{when:function(){return(T==null?void 0:T())===0}},function(){return _.E("h2",{class:b},O())}),_.E(_.RW,{when:function(){return(T==null?void 0:T())===1}},function(){return _.E("h3",{class:b},O())}),_.E(_.RW,{when:function(){return(T==null?void 0:T())===2}},function(){return _.E("h4",{class:b},O())}),_.E(_.Kv,null,function(){return _.E("h2",{class:b},O())}))},"Fb"),aYf=_.J1(function(W){var O=_.XL(function(L){var h;
(h=W.onClick)==null||h.call(W,L)}),b={},T={};
return _.E("yt-shelf-header-layout",{class:_.YS("shelf-header-layout-wiz",(b["shelf-header-layout-wiz--disable-horizontal-padding"]=W.disableHorizontalPadding,b["shelf-header-layout-wiz--disable-vertical-padding"]=W.disableVerticalPadding,b["shelf-header-layout-wiz--responsive"]=W.useResponsiveLayout,b["shelf-header-layout-wiz--narrow"]=function(){var L,h;return((L=W.useResponsiveLayout)==null?void 0:L.call(W))&&((h=W.forceSmallLayout)==null?void 0:h.call(W))},b["shelf-header-layout-wiz--is-overlay"]=
W.isOverlay,b["shelf-header-layout-wiz--tappable"]=!!W.onClick,b)),
"on:click":O,tabindex:W.onClick?0:void 0},_.E(_.U,{cond:W.leadingIcon,then:function(L){return _.E("div",{class:"shelf-header-layout-wiz__leading-icon"},_.E(_.Ps,{icon:L}))},
else:function(){return _.E(_.U,{cond:W.hasLeadingImage,then:function(){var L,h={};return _.E("div",{class:_.YS("shelf-header-layout-wiz__leading-image",(h["shelf-header-layout-wiz__leading-image--circular-image"]=W.circularImage,h))},(L=W.leadingImage)==null?void 0:L.call(W))}})}}),_.E("div",{class:"shelf-header-layout-wiz__label-container"},_.E(_.U,{cond:W.hasSuperlabel,
then:function(){var L;return _.E("div",{class:"shelf-header-layout-wiz__superlabel"},(L=W.superlabel)==null?void 0:L.call(W))}}),_.E("div",{class:"shelf-header-layout-wiz__title-row"},_.E(IY9,{text:W.title,
className:_.YS("shelf-header-layout-wiz__title",(T["shelf-header-layout-wiz__title--small-title"]=W.forceSmallLayout,T)),tagLevel:W.tagLevel}),_.E(_.U,{cond:W.hasDetail,then:function(){var L;return _.E("div",{class:"shelf-header-layout-wiz__detail"},(L=W.detail)==null?void 0:L.call(W))}})),_.E(_.U,{cond:W.hasSublabel,
then:function(){var L;return _.E("div",{class:"shelf-header-layout-wiz__sublabel"},(L=W.sublabel)==null?void 0:L.call(W))}})),_.E(_.U,{cond:W.hasTrailingActions,
then:function(){var L;return _.E("div",{class:"shelf-header-layout-wiz__trailing-actions"},(L=W.trailingActions)==null?void 0:L.call(W))}}))},"Gb"),OtP=_.e("web_enable_sink_section_header")?aYf:MvX,mKL=_.e("web_enable_sink_section_header")?aYf:_.AP(MvX,{callbacks:{title:!0,
detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}});aYf.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};var WL8=_.lw({flexibleActionsViewModel:Vtz});_.bO(it1);var AFN;AFN=_.J1(function(W){var O=W.data;return _.E("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.eE({"background-color":function(){return VvE(O().backgroundColor)?_.C_(VvE(O().backgroundColor)):void 0}})},_.E(mKL,{hasDetail:!1,
title:function(){return _.E(_.uw,{text:function(){return O().headline}})},
hasTitle:!0,sublabel:function(){return _.E(YJw,{data:O})},
hasSublabel:function(){return!!O().sublabel||!!O().bottomBadge},
superlabel:function(){return _.E(Er9,{data:O})},
hasSuperlabel:function(){return!!O().superlabel||!!O().topBadge},
leadingImage:function(){return _.E(wo1,{leadingAccessory:function(){return O().leadingAccessory}})},
hasLeadingImage:function(){return!!O().leadingAccessory},
trailingActions:function(){return _.E(_.R4,{data:function(){return O().trailingActions}},{flexibleActionsViewModel:gT})},
hasTrailingActions:function(){return!!O().trailingActions},
disableHorizontalPadding:W.disableHorizontalPadding,disableVerticalPadding:W.disableVerticalPadding,forceSmallLayout:W.forceSmallLayout,useResponsiveLayout:W.useResponsiveLayout,isOverlay:W.isOverlay,onClick:function(b){if(_.fp(O().rendererContext)){var T=_.np(O().rendererContext);T&&_.zH(T,{form:{element:b.target,event:b}})}}}))},"Hb");
_.j9=_.e("web_enable_sink_section_header")?AFN:_.AP(it1);AFN.idomCompat=!0;var wo1=_.J1(function(W){var O=W.leadingAccessory;return _.E(_.TT,null,_.E(_.U,{cond:function(){var b;return(b=O().image)!=null?b:_.ML(O().themedImage)},
then:function(b){return _.E(_.uj,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.E(_.U,{cond:function(){return _.P(O().avatar,_.Hm)},
then:function(b){return _.E(_.KF,{data:b})}}))},"Ib"),YJw=_.J1(function(W){var O=W.data;
return _.E(_.TT,null,_.E(_.U,{cond:function(){return _.P(O().bottomBadge,Jm1)},
then:function(b){var T={};return _.E(_.cd,{data:b,class:_.YS((T.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!O().sublabel},T))})}}),_.E(_.U,{cond:function(){return O().sublabel},
then:function(b){return _.E(_.uw,{text:b})}}))},"Jb"),Er9=_.J1(function(W){var O=W.data;
return _.E(_.TT,null,_.E(_.U,{cond:function(){return _.P(O().topBadge,Jm1)},
then:function(b){var T={};return _.E(_.cd,{data:b,class:_.YS((T.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!b()&&!!O().superlabel},T))})}}),_.E(_.U,{cond:function(){return O().superlabel},
then:function(b){return _.E(_.uw,{text:b})}}))},"Kb");_.O1(_.j9,"yt-section-header-view-model",{props:{data:_.te,className:_.te,disableHorizontalPadding:_.te,disableVerticalPadding:_.te,forceSmallLayout:_.te,useResponsiveLayout:_.te,isOverlay:_.te}});_.Bs("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var TI=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return W};
_.R(TI,_.n);_.d=TI.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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"}}}};
_.d.onDataChange=function(){var W=this;_.My(this,function(){W.updateItemVisibility()})};
_.d.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W,this.updateItemVisibility())};
_.d.updateItemVisibility=function(){var W=this;this.data&&this.data.panels&&_.Q(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(O,b){O.hidden=b>W.elementsPerRow-1})};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
TI.prototype.onDataChange=TI.prototype.onDataChange;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],TI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],TI.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],TI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],TI.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],TI.prototype,"data",void 0);_.t([_.C({value:3}),_.N("design:type",Number)],TI.prototype,"elementsPerRow",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TI.prototype,"onDataChange",null);TI=_.t([_.G({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],TI);
_.H(TI,"ytd-primetime-promo-renderer",function(){if(ZjU!==void 0)return ZjU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ZjU=W},{mode:1});var Xow;var L8=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return W};
_.R(L8,_.n);L8.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
L8.prototype.handleButtonRefreshAction=function(W){if(W=_.P(W,ZDL))this.set("data.button",W.membershipButton),this.notifyPath("data.button")};
_.Jq.Object.defineProperties(L8.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.avatars)==null?void 0:O.slice(0,8))||[]}}});
_.t([_.C(),_.N("design:type",Object)],L8.prototype,"data",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],L8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],L8.prototype,"rendererBehavior",void 0);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],L8.prototype,"avatars",null);
L8=_.t([_.G({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],L8);
_.H(L8,"ytd-recognition-shelf-renderer",function(){if(Xow!==void 0)return Xow;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Xow=W},{mode:1});var UKf;var lYU;var dV=function(){var W=_.n.apply(this,arguments)||this;W.modernButtons=_.e("web_modern_buttons");return W};
_.R(dV,_.n);_.d=dV.prototype;
_.d.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.d.dataChanged=function(){this.collapsed=!0};
_.d.computeVisibleItems=function(W,O){return W!==void 0&&W.items?O?W.items.slice(0,this.data.collapsedItemCount):W.items:[]};
_.d.computeHideShowMore=function(W,O,b){return W>=O||!b};
_.d.computeHideShowAll=function(W,O,b){return!(W&&O)||b};
_.d.onMoreClick=function(){this.collapsed=!1};
_.Jq.Object.defineProperties(dV.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.e("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
dV.prototype.dataChanged=dV.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dV.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dV.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],dV.prototype,"isSearch",void 0);
_.t([_.C({computed:"computeVisibleItems(data,collapsed)"}),_.N("design:type",Array)],dV.prototype,"visibleItems",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],dV.prototype,"collapsed",void 0);_.t([_.C({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.N("design:type",Boolean)],dV.prototype,"hideShowMore",void 0);
_.t([_.C({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.N("design:type",Boolean)],dV.prototype,"hideShowAll",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],dV.prototype,"modernButtons",void 0);_.t([_.x("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dV.prototype,"typographyBump",null);
_.t([_.x("isSearch"),_.N("design:type",String),_.N("design:paramtypes",[])],dV.prototype,"thumbnailWidth",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dV.prototype,"dataChanged",null);dV=_.t([_.G({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],dV);
_.H(dV,"ytd-vertical-list-renderer",function(){if(lYU!==void 0)return lYU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lYU=W},{mode:1});var eC5=_.ts(["#"]);_.Bs("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var hy=function(){var W=_.n.apply(this,arguments)||this;W.isConstrainedList=!1;W.modernTypography=_.e("web_modern_typography");return W};
_.R(hy,_.n);_.d=hy.prototype;
_.d.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"}}}};
_.d.computeThumbnailStyle=function(W){return W||""};
_.d.computePlaceAnnotationUnderTitle=function(){var W;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((W=this.data)==null?void 0:W.thumbnailStyle)||"")};
_.d.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W)||_.RQ(eC5)};
_.d.computeIsPromoShelf=function(W){var O;return(W=W==null?void 0:(O=W[0])==null?void 0:O.metadataBadgeRenderer)?W.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.d.computePlaceBadgeBesideTitle=function(W){var O;return(W==null?0:(O=W[0])==null?0:O.metadataBadgeRenderer)?!this.computeIsPromoShelf(W):!1};
_.d.computeMenuIcon=function(W){return this.computeIsPromoShelf(W)?"yt-icons:more_vert":"yt-icons:more"};
_.d.onDataChange=function(){var W,O;((W=this.data)==null?0:(O=W.content)==null?0:O.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.d.onLockupRequested=function(W){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&W.detail&&W.detail.videoIds){for(var O=this.data.content.gridRenderer.items,b=new Set,T=_.S(W.detail.videoIds),L=T.next();!L.done;L=T.next())b.add(L.value);W.detail.returnValue=O.filter(function(h){return h.gridVideoRenderer&&h.gridVideoRenderer.videoId&&b.has(h.gridVideoRenderer.videoId)}).map(function(h){return h.gridVideoRenderer})}};
_.d.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
hy.prototype.onLockupRequested=hy.prototype.onLockupRequested;hy.prototype.onDataChange=hy.prototype.onDataChange;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],hy.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hy.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],hy.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],hy.prototype,"ironResizableBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hy.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],hy.prototype,"isSearch",void 0);_.t([_.C(),_.N("design:type",Object)],hy.prototype,"isConstrainedList",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("kevlar_fluid_dismiss")}}),
_.N("design:type",Boolean)],hy.prototype,"enableFluidDismiss",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.N("design:type",String)],hy.prototype,"thumbnailStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hy.prototype,"modernTypography",void 0);_.t([_.C({computed:"computeMenuIcon(data.badges)"}),_.N("design:type",String)],hy.prototype,"menuIcon",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hy.prototype,"onDataChange",null);_.t([_.ai("yt-lockup-requested"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],hy.prototype,"onLockupRequested",null);hy=_.t([_.G({is:"ytd-shelf-renderer",disableElementRegistration:!0})],hy);
_.H(hy,"ytd-shelf-renderer",function(){if(UKf!==void 0)return UKf;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UKf=W},{mode:1});var Pu7;var S9=function(){return _.n.apply(this,arguments)||this};
_.R(S9,_.n);S9.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Jq.Object.defineProperties(S9.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],S9.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],S9.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],S9.prototype,"isPlaylist",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],S9.prototype,"isClipList",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],S9.prototype,"isPlaylistPageWithFilters",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],S9.prototype,"hasTitle",null);_.t([_.C(),_.x("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.N("design:type",Object),_.N("design:paramtypes",[])],S9.prototype,"isRightAligned",null);
S9=_.t([_.G({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],S9);
_.H(S9,"ytd-sort-filter-header-renderer",function(){if(Pu7!==void 0)return Pu7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Pu7=W},{mode:1});var poz;var ZK=function(){return _.n.apply(this,arguments)||this};
_.R(ZK,_.n);
ZK.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]]"}}}}}};
ZK.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Jq.Object.defineProperties(ZK.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.e("enable_creator_details_shelf_m2")){var W=[],O;((O=this.data)==null?0:O.creatorVideosButton)&&W.push(this.data.creatorVideosButton);var b;((b=this.data)==null?0:b.creatorAboutButton)&&W.push(this.data.creatorAboutButton);O=_.S(this.data.creatorCustomUrlButtons||[]);for(b=O.next();!b.done;b=O.next())W.push(b.value);return W}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.e("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],ZK.prototype,"ytdHorizontalListBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ZK.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ZK.prototype,"engagementPanel",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ZK.prototype,"creatorCustomUrlButtons",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","creatorCustomUrlButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ZK.prototype,"showCreatorCustomUrlButtons",null);_.t([_.x("showCreatorCustomUrlButtons"),_.N("design:type",Number),_.N("design:paramtypes",[])],ZK.prototype,"channelAvatarSize",null);
ZK=_.t([_.G({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],ZK);
_.H(ZK,"ytd-video-description-infocards-section-renderer",function(){if(poz!==void 0)return poz;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return poz=W},{mode:_.Lb("kevlar_poly_si_batch_j067")?1:2});var RC5;var IF=function(){return _.n.apply(this,arguments)||this};
_.R(IF,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],IF.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],IF.prototype,"infoIcon",void 0);IF=_.t([_.G({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],IF);
_.H(IF,"ytd-eom-settings-disclaimer-renderer",function(){if(RC5!==void 0)return RC5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return RC5=W},{mode:1});var Kd$;var aF=function(){return _.n.apply(this,arguments)||this};
_.R(aF,_.n);_.Jq.Object.defineProperties(aF.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.suppressPaddingDisclaimer)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],aF.prototype,"componentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],aF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aF.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aF.prototype,"suppressPaddingDisclaimer",null);aF=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],aF);
_.H(aF,"ytd-product-list-header-renderer",function(){if(Kd$!==void 0)return Kd$;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Kd$=W},{mode:1});var vrn;var mV=function(){return _.n.apply(this,arguments)||this};
_.R(mV,_.n);mV.prototype.computeThumbnailStyle=function(W){if(W&&(W=_.zF(W)))return"background-color:"+W+";"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mV.prototype,"rendererBehaviors",void 0);_.t([_.C(),_.N("design:type",Object)],mV.prototype,"data",void 0);mV=_.t([_.G({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],mV);
_.H(mV,"ytd-hashtag-tile-renderer",function(){if(vrn!==void 0)return vrn;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return vrn=W},{mode:1});var gr7;var Yt=function(){return _.n.apply(this,arguments)||this};
_.R(Yt,_.n);Yt.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yt.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yt.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yt.prototype,"data",void 0);Yt=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Yt);
_.H(Yt,"ytd-sponsorships-alert-renderer",function(){if(gr7!==void 0)return gr7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gr7=W},{mode:1});var or1;var EW=function(){return _.n.apply(this,arguments)||this};
_.R(EW,_.n);EW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Jq.Object.defineProperties(EW.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.e("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.e("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.t([_.D(_.rn),_.N("design:type",Object)],EW.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],EW.prototype,"ytdLockupBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],EW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],EW.prototype,"ytRendererBehavior",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],EW.prototype,"isGridViewEnabled",void 0);
_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],EW.prototype,"watchFeedBigThumbs",null);_.t([_.x("isGridViewEnabled"),_.C({reflectToAttribute:!0}),_.N("design:type",String),_.N("design:paramtypes",[])],EW.prototype,"thumbnailWidth",null);_.t([_.C(),_.N("design:type",Object)],EW.prototype,"data",void 0);EW=_.t([_.G({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],EW);
_.H(EW,"ytd-compact-movie-renderer",function(){if(or1!==void 0)return or1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return or1=W},{mode:1});var QEv;var ka9;var sEN=_.Cv("HTML_DIR")==="rtl",wV=function(){var W=_.n.apply(this,arguments)||this;W.engagementPanel=!1;W.maxLines=2;W.expandButtonOffset=0;W.showExpandButton=!1;W.isTruncated=!1;W.isExpanded=!1;W.currentSnippetType=2;W.alwaysShowExpandButton=!1;W.JSC$14271_lastWidth=NaN;W.observer=null;W.left=0;W.right=0;W.mid=0;W.longestSnippetLength=0;W.isFinalSnippet=!1;W.isFirstMutation=!1;W.isResetMutation=!1;W.OVERFLOW_THRESHOLD=5;return W};
_.R(wV,_.n);_.d=wV.prototype;_.d.onClick=function(W){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var O;if((O=window.getSelection())==null||!O.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.d.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.d.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.d.updateTextOnSnippetTypeChange=function(){_.e("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.d.setUpBinarySearch=function(W){W=W*this.maxLines/8;this.left=0;var O,b;this.right=Math.min(W*2,(b=(O=this.simpleText)==null?void 0:O.length)!=null?b:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.d.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.d.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.z5(new _.pu("AttributedSnippet is empty when the description is not empty",this.text))};
_.d.mutationCallback=function(){if(this.observer!=null){var W=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var O=Math.floor(W*this.maxLines/8);this.setSnippetText(this.text,O);O!==0||this.attributedTextIsEmpty()||_.z5(new _.pu("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;W=W*this.maxLines/8;this.left=0;var b;this.right=Math.min(W*2,(b=(O=this.simpleText)==null?void 0:O.length)!=null?b:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.d.mutationObserve=function(W){var O=this;this.observer||(this.observer=new MutationObserver(function(){O.mutationCallback()}));
this.observer.observe(W,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.d.attached=function(){var W=this;_.My(this,function(){W.resize()})};
_.d.isExpandedChanged=function(){_.bX(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.d.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)};
_.d.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var W="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((sEN?"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",W);this.snippetContainer.style.setProperty("mask-image",
W)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(sEN?"right":"left",this.expandButtonOffset+"px")};
_.d.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.d.setSnippetText=function(W,O){W||(W={});if(_.$y(W)){var b=Cp8(W,O);b.attachmentRuns||b.commandRuns||b.decorationRuns||b.styleRuns||b.alignment||b.lineBreakMode?this.attributedSnippetTextEl?(_.e("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=Cp8(W,O),this.attributedSnippetTextEl.headerRuns=zw8(O,this.headerRuns)):this.attributedSnippetText={data:Cp8(W,O),headerRuns:zw8(O,this.headerRuns)},this.currentSnippetType=0):_.z5(new _.pu("Tried to set snippet text when HTML element was null",
W)):(this.plainSnippetText.textContent=GH(W.content||"",O),this.currentSnippetType=2)}else{a:{b=btX(W,O);if(b.runs){b=_.S(b.runs);for(var T=b.next();!T.done;T=b.next())if(T=T.value,T.bold||T.deemphasize||T.italics||T.strikethrough||T.textColor||T.navigationEndpoint||_.P(T,Bi)){b=!0;break a}}b=!1}b?this.formattedSnippetText?(this.formattedSnippetText.text=btX(W,O),this.currentSnippetType=1):_.z5(new _.pu("Tried to set snippet text when HTML element was null",W)):(this.plainSnippetText.textContent=
GH(_.NX(W),O),this.currentSnippetType=2)}};
_.d.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.d.attributedTextIsEmpty=function(){var W=this.text;if(!_.$y(W))return!0;var O;return((O=W.content)==null?void 0:O.length)===0?!0:!1};
_.d.resize=function(W){if(this.snippetText){if(W===void 0?0:W)this.JSC$14271_lastWidth=NaN;var O=this.hostElement.offsetWidth;if(O!==this.JSC$14271_lastWidth&&!this.isExpanded)if(this.JSC$14271_lastWidth=O,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;W=0;var b,T;O=Math.min(O*this.maxLines/8*2,(T=(b=this.simpleText)==null?void 0:b.length)!=null?T:0)-1;for(b=0;W<=O;)T=Math.floor(W+(O-W)/2),this.setSnippetText(this.text,T),this.isOverflowing()?O=T-1:(W=T+1,b=T);this.setSnippetText(this.text,b);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.d.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.d.onExpandClick=function(){var W=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.e("inline_expander_reset_focus_killswitch")||_.My(this,function(){var O;((O=_.iq().resolve(_.OT(_.bD)))==null?0:O.isKeyBoardInUse())&&_.uP(W.hostElement)});
_.bX(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.d.onCollapseClick=function(){this.collapse();_.bX(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.d.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.d.computeExpandButtonOffset=function(){var W=this.expandSizer;return W?sEN?W.offsetParent?W.offsetParent.offsetWidth-W.offsetWidth-W.offsetLeft:0:W.offsetLeft:0};
_.Jq.Object.defineProperties(wV.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.$y(this.text)?this.text.content||"":_.NX(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 _.$y(this.text)?!0:this.text&&_.e("web_replace_formatted_with_attributed_string")&&TMq(this.text)?(this.text=_.sz(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}}});
wV.prototype.onTextChanged=wV.prototype.onTextChanged;wV.prototype.updateMaskAndExpandButtonOffset=wV.prototype.updateMaskAndExpandButtonOffset;wV.prototype.updateSnippetContainerMaxHeight=wV.prototype.updateSnippetContainerMaxHeight;wV.prototype.isExpandedChanged=wV.prototype.isExpandedChanged;wV.prototype.updateTextOnSnippetTypeChange=wV.prototype.updateTextOnSnippetTypeChange;wV.prototype.updateIsFormattedExpanded=wV.prototype.updateIsFormattedExpanded;wV.prototype.updateIsAttributedExpanded=wV.prototype.updateIsAttributedExpanded;
wV.prototype.onClick=wV.prototype.onClick;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],wV.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"text",void 0);_.t([_.C(),_.N("design:type",Array)],wV.prototype,"headerRuns",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wV.prototype,"engagementPanel",void 0);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"maxLines",void 0);
_.t([_.C(),_.N("design:type",String)],wV.prototype,"expandLabel",void 0);_.t([_.C(),_.N("design:type",String)],wV.prototype,"collapseLabel",void 0);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"expandCommand",void 0);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"expandButtonOffset",void 0);_.t([_.x("text"),_.N("design:type",String),_.N("design:paramtypes",[])],wV.prototype,"simpleText",null);
_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],wV.prototype,"onClick",null);_.t([_.x("text","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"expandedText",null);_.t([_.x("headerRuns","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"expandedHeaderRuns",null);
_.t([_.x("text"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],wV.prototype,"hasAttributedStringText",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wV.prototype,"showExpandButton",void 0);_.t([_.x("collapseLabel","isExpanded"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"showCollapseButton",null);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"isTruncated",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wV.prototype,"isExpanded",void 0);_.t([_.C(),_.N("design:type",Boolean)],wV.prototype,"isAttributedExpanded",void 0);_.t([_.m5("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"updateIsAttributedExpanded",null);_.t([_.C(),_.N("design:type",Boolean)],wV.prototype,"isFormattedExpanded",void 0);
_.t([_.m5("isExpanded","hasAttributedStringText"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"updateIsFormattedExpanded",null);_.t([_.C(),_.N("design:type",Number)],wV.prototype,"currentSnippetType",void 0);_.t([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"useAttributedSnippet",null);
_.t([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"useFormattedSnippet",null);_.t([_.x("currentSnippetType"),_.N("design:type",Object),_.N("design:paramtypes",[])],wV.prototype,"usePlainSnippet",null);_.t([_.C(),_.N("design:type",Object)],wV.prototype,"alwaysShowExpandButton",void 0);_.t([_.m5("currentSnippetType"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"updateTextOnSnippetTypeChange",null);
_.t([_.C(),_.N("design:type",Object)],wV.prototype,"attributedSnippetText",void 0);_.t([_.El("#snippet"),_.N("design:type",HTMLElement)],wV.prototype,"snippetContainer",void 0);_.t([_.El("#snippet-text"),_.N("design:type",HTMLElement)],wV.prototype,"snippetText",void 0);_.t([_.El("#plain-snippet-text"),_.N("design:type",HTMLElement)],wV.prototype,"plainSnippetText",void 0);_.t([_.El("#formatted-snippet-text"),_.N("design:type",Object)],wV.prototype,"formattedSnippetText",void 0);
_.t([_.El("#attributed-snippet-text"),_.N("design:type",Object)],wV.prototype,"attributedSnippetTextEl",void 0);_.t([_.El("#expand"),_.N("design:type",HTMLElement)],wV.prototype,"expandButton",void 0);_.t([_.El("#expand-sizer"),_.N("design:type",HTMLElement)],wV.prototype,"expandSizer",void 0);_.t([_.Ul("isExpanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"isExpandedChanged",null);
_.t([_.m5("isExpanded","maxLines"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"updateSnippetContainerMaxHeight",null);_.t([_.m5("isTruncated","showExpandButton","expandButtonOffset"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"updateMaskAndExpandButtonOffset",null);
_.t([_.Ul("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wV.prototype,"onTextChanged",null);wV=_.t([_.G({is:"ytd-text-inline-expander",disableElementRegistration:!0})],wV);
_.H(wV,"ytd-text-inline-expander",function(){if(ka9===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);ka9=W}W=ka9;return W},{mode:2});var Ay=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return W};
_.R(Ay,_.n);Ay.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Ay.prototype.handleUpdateDescriptionAction=function(W){if(W=_.P(W,_.A6q))if(W.attributedDescription)this.set("data.attributedDescriptionBodyText",W.attributedDescription);else if(W.description){var O;((O=this.data)==null?0:O.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.sz(W.description)):this.set("data.descriptionBodyText",W.description)}};
_.Jq.Object.defineProperties(Ay.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.attributedDescriptionBodyText)||!((O=this.data)==null||!O.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.collapsedLineCount){var O;return(O=this.data)==null?void 0:O.collapsedLineCount}W=_.Lu("web_watch_description_collapsed_default_lines",12);if(_.e("ww_desc_line_page_size_ks"))return W;O=Math.round(_.UP().height*_.Lu("web_watch_description_screen_height_percentage",.5)/20);return Math.max(O,W)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return(b=(W=this.data)==null?void 0:W.descriptionBodyText)!=null?b:(O=this.data)==null?void 0:O.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.sourceAttributions}}});
Ay.prototype.panelContentVisibleChanged=Ay.prototype.panelContentVisibleChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Ay.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Ay.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ay.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Ay.prototype,"panelContentVisible",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ay.prototype,"engagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ay.prototype,"shortsPanel",void 0);_.t([_.El("#inline-expander"),_.N("design:type",Object)],Ay.prototype,"inlineExpander",void 0);
_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ay.prototype,"panelContentVisibleChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Ay.prototype,"hasDescriptionText",null);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],Ay.prototype,"collapsedLines",null);
_.t([_.x("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ay.prototype,"descriptionText",null);_.t([_.x("data","data.headerRuns"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ay.prototype,"headerRuns",null);_.t([_.x("data","data.sourceAttributions"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ay.prototype,"sourceAttributions",null);
Ay=_.t([_.G({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Ay);
_.H(Ay,"ytd-expandable-video-description-body-renderer",function(){if(QEv!==void 0)return QEv;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return QEv=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var BFH;var rFH=_.J1(function(W){var O=W.data;return _.E("factoid-renderer",{class:"ytwFactoidRendererHost"},_.E("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return O().accessibilityText}},_.E("span",{class:"ytwFactoidRendererValue"},_.E(_.uw,{text:function(){return O().value}})),_.E("span",{class:"ytwFactoidRendererLabel"},_.E(_.uw,{text:function(){return O().label}}))))},"Lb");_.O1(rFH,"factoid-renderer",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;return _.E("upload-time-factoid-renderer",null,_.E(_.R4,{data:function(){return O().factoid}},{factoidRenderer:rFH}))},"Mb"),"upload-time-factoid-renderer",{props:{data:_.Ws}});_.O1(_.J1(function(W){var O=W.data;return _.E("view-count-factoid-renderer",null,_.E(_.R4,{data:function(){return O().factoid}},{factoidRenderer:rFH}))},"Nb"),"view-count-factoid-renderer",{props:{data:_.Ws}});var Xl=function(){var W=_.n.apply(this,arguments)||this;W.shortsPanel=!1;W.engagementPanel=!1;W.watchWhileSdp=_.e("shorts_desktop_watch_while_sdp");return W};
_.R(Xl,_.n);Xl.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"}}}}};
_.Jq.Object.defineProperties(Xl.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var W;return(W=this.data)==null?void 0:W.channel}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Xl.prototype,"componentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Xl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xl.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xl.prototype,"shortsPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xl.prototype,"engagementPanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xl.prototype,"watchWhileSdp",void 0);_.t([_.x("shortsPanel","engagementPanel","data.channel"),_.N("design:type",Object),_.N("design:paramtypes",[])],Xl.prototype,"showChannelInfo",null);Xl=_.t([_.G({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Xl);
_.H(Xl,"ytd-video-description-header-renderer",function(){if(BFH!==void 0)return BFH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BFH=W},{mode:1});var DKq;var UW=function(){return _.n.apply(this,arguments)||this};
_.R(UW,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],UW.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],UW.prototype,"noPadding",void 0);_.t([_.C(),_.N("design:type",Object)],UW.prototype,"data",void 0);UW=_.t([_.G({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],UW);
_.H(UW,"ytd-list-item-view-model",function(){if(DKq!==void 0)return DKq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return DKq=W},{mode:1});var xKS;var zCv;var Cuv;var qJ$;var l$=function(){var W=_.n.apply(this,arguments)||this;W.adaptiveFullWidth=!1;W.modernButtons=_.e("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return W};
_.R(l$,_.n);l$.prototype.handleSetTimestamp_=function(W){this.data&&this.data.shortUrl&&(_.Q(this.hostElement).querySelector("#share-url").value=W.isSet?_.zp(this.data.shortUrl,"t",W.timestamp):this.data.shortUrl)};
l$.prototype.handleSignalActionCopyShareUrl_=function(W,O){(_.e("killswitch_copy_link_target_check")||_.Q(this.hostElement).querySelector("#copy-button")===O)&&this.copyUrlToClipboard()};
l$.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Q(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
l$.prototype.computeStyle_=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],l$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],l$.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.N("design:type",String)],l$.prototype,"rendererStyle",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],l$.prototype,"adaptiveFullWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],l$.prototype,"modernButtons",void 0);_.t([_.C(),_.N("design:type",Object)],l$.prototype,"buttonOverrides",void 0);l$=_.t([_.sl({is:"yt-copy-link-renderer",disableElementRegistration:!0})],l$);
_.H(l$,"yt-copy-link-renderer",function(){if(qJ$===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Cuv===void 0&&(Cuv=document.createElement("template"));var T=Cuv;b.call(O,T.content.cloneNode(!0),W.content.firstChild);qJ$=W}W=qJ$;return W},{mode:2});_.Bs("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var e9=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return W};
_.R(e9,_.n);_.d=e9.prototype;_.d.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.d.attached=function(){this.keyboardFocused=!1};
_.d.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var W=_.iq().resolve(_.OT(_.bD));W&&(this.keyboardFocused=W.isKeyBoardInUse())}};
_.d.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.d.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}};
_.d.onChange_=function(){if(this.data){var W=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;W&&this.ytComponentBehavior.resolveCommand(W);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.d.handleUpdateToggleAction_=function(W){(W=_.P(W,R6f))&&this.data&&W.targetId==this.data.targetId&&this.set("data.toggled",W.toggled)};
_.d.toBoolean_=function(W){return!!W};
_.d.reset=function(){};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("data-changed",this.data))};
_.d.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
e9.prototype.dataChangedForBinding=e9.prototype.dataChangedForBinding;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],e9.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],e9.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],e9.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],e9.prototype,"data",void 0);_.t([_.C({computed:"computeDescription_(data.*)"}),_.N("design:type",Object)],e9.prototype,"description_",void 0);_.t([_.C({value:function(){return!!_.iq().resolve(_.OT(_.bD))&&_.e("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.N("design:type",Boolean)],e9.prototype,"useKeyboardFocused",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],e9.prototype,"keyboardFocused",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e9.prototype,"dataChangedForBinding",null);e9=_.t([_.sl({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],e9);
_.H(e9,"yt-toggle-form-field-renderer",function(){if(zCv===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;xKS===void 0&&(xKS=document.createElement("template"));var T=xKS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zCv=W}W=zCv;return W},{mode:2});var nr7;var fYU;var Pe=function(){var W=_.n.apply(this,arguments)||this;W.isDarkTheme=!1;W.isSearch=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.noTopMargin=_.e("kevlar_watch_no_top_margin");W.maskFade=_.e("web_watch_chips_mask_fade");W.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 W};
_.R(Pe,_.n);_.d=Pe.prototype;_.d.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}}}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.d.dataChanged=function(){var W=this.getSelectedIndex();if(W>0)this.selected=W;else{this.selected=0;var O,b;(O=this.ytScrollableChipCloudBehavior)==null||(b=O.reset)==null||b.call(O)}};
_.d.getSelectedIndex=function(){var W;if((W=this.data)==null||!W.chips)return-1;W=-1;for(var O,b=0;b<((O=this.data)==null?void 0:O.chips.length);b++){var T=void 0,L=void 0;if((T=this.data)==null?0:(L=T.chips[b].chipCloudChipRenderer)==null?0:L.isSelected){W=b;break}}return W};
_.d.onResize=function(){var W=this.ytScrollableChipCloudBehavior;_.My(W,W.setContainerWidthDiff);LY(this.ytScrollableChipCloudBehavior)};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.handleRelatedChipCommand=function(W,O){W=this.JSC$14298_chipsSelector.indexOf(O);W!==-1&&this.JSC$14298_chipsSelector.selectIndex(W)};
_.d.handleChipCloudChipSelectAction=function(W){W=this.JSC$14298_chipsSelector.indexOf(W);W>-1&&this.JSC$14298_chipsSelector.selectIndex(W)};
_.d.handleChipCloudChipDeselectAction=function(){var W=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14298_chipsSelector&&((W==null?0:W.continuationCommand)?_.da(this.hostElement,[W]):(W==null?0:W.searchEndpoint)?this.ytComponentBehavior.resolveCommand(W):W&&_.Sx(this.hostElement,[W],this.hostElement),this.JSC$14298_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.d.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
Pe.prototype.onResize=Pe.prototype.onResize;Pe.prototype.dataChanged=Pe.prototype.dataChanged;Pe.prototype.isSearchChanged=Pe.prototype.isSearchChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Pe.prototype,"actionHandlerBehavior",void 0);
_.t([_.D(_.vL),_.N("design:type",Object)],Pe.prototype,"ironResizableBehavior",void 0);_.t([_.D(),_.N("design:type",T2)],Pe.prototype,"ytScrollableChipCloudBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Pe.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pe.prototype,"data",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],Pe.prototype,"selected",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pe.prototype,"isDarkTheme",void 0);_.t([_.C({value:160}),_.N("design:type",Number)],Pe.prototype,"scrollDistance",void 0);_.t([_.C(),_.N("design:type",Object)],Pe.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pe.prototype,"darkerDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pe.prototype,"noTopMargin",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pe.prototype,"maskFade",void 0);_.t([_.El("#chips"),_.N("design:type",Object)],Pe.prototype,"JSC$14298_chipsSelector",void 0);_.t([_.m5("isSearch"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"isSearchChanged",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"dataChanged",null);
_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pe.prototype,"onResize",null);Pe=_.t([_.sl({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],Pe);
_.H(Pe,"yt-chip-cloud-renderer",function(){if(fYU===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;nr7===void 0&&(nr7=document.createElement("template"));var T=nr7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);fYU=W}W=fYU;return W},{mode:2});var Ga5,Hj9=function(){return Ga5!==void 0?Ga5:Ga5=document.createElement("template")};
document.head.appendChild(Hj9().content);var t$w;var $K$=document.head,V$q=$K$.appendChild,NF5;if(t$w===void 0){var M$N=document.createElement("template");_.v(M$N,"");M$N.content.insertBefore(Hj9().content.cloneNode(!0),M$N.content.firstChild);t$w=M$N}NF5=t$w;V$q.call($K$,NF5.content);var uzf=_.J1(function(W){var O=W.data;return _.E("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.E("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.E("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.E(_.U,{cond:function(){return _.ML(O().image)},
then:function(b){return _.E("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.E(_.uj,{data:b,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.E("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.E(_.uw,{text:function(){return O().subtitle}})))),_.E(_.U,{cond:function(){var b;
return(b=O())==null?void 0:b.hasBottomDivider},
then:function(){return _.E("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Ob");var JFN=_.J1(function(W){var O=W.data;return _.E("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.E("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.E(_.R4,{data:function(){var b;return(b=O().offerPlanDetailsItem)!=null?b:[]}},{offerPlanDetailsItemViewModel:function(b){return _.E("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.E(uzf,{data:b.data}))}})),_.E("div",null,_.E(_.U,{cond:function(){return O().hasBottomDivider},
then:function(){return _.E("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.E("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.E("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.E("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.E("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Pb");var cFN=_.J1(function(W){var O=W.data;W=_.S(_.wu(!1,void 0,"SpEGQd"));var b=W.next().value,T=W.next().value,L=_.XL(function(){T(!b());return!1}),h=function(){var Z;
return(Z=O().offerPlanDetailsContainer)!=null?Z:[]};
return _.E("lp-complex-offer-card-details-view-model",null,_.E("div",null,_.E(_.U,{cond:function(){return b()},
then:function(){return _.E("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.E("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":L,"aria-expanded":b},_.E(_.uw,{text:function(){return O().expandedTitle}})),_.E("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.E(_.R4,{data:h},{offerPlanDetailsContainerViewModel:function(Z){return _.E("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.E(JFN,{data:Z.data}))}})),_.E("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.E(_.uw,{text:function(){return O().legalText}})))},
else:function(){return _.E("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":L,"aria-expanded":b},_.E(_.uw,{text:function(){return O().collapsedTitle}}),_.E("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.E(_.Ps,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Qb");var FdN=_.J1(function(W){var O=W.data;return _.E("lp-complex-offer-card-option-view-model",null,_.E("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.E(_.U,{cond:function(){return O().topDividerText},
then:function(){return _.E("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.E("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.E("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.E("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.E(_.uw,{text:function(){return O().topDividerText}}))))}}),_.E(_.U,{cond:function(){return O().planPricingPrimary},
then:function(){return _.E("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.E(_.uw,{text:function(){return O().planPricingPrimary}}))}}),_.E(_.U,{cond:function(){return O().planPricingSecondary},
then:function(){return _.E("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.E(_.uw,{text:function(){return O().planPricingSecondary}}))}}),_.E(_.U,{cond:function(){return O().primaryButton},
then:function(){return _.E("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.E(_.R4,{data:function(){return O().primaryButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Rb");var yFN=_.J1(function(W){var O=W.data;var b=function(){var h;return((h=O())==null?void 0:h.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var T={},L={};return _.E("ytm-lp-complex-offer-card-view-model",null,_.E("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.E("div",{class:_.YS((W.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=b,W),"ytmLpComplexOfferCardViewModelCardContainer")},_.E(_.U,{cond:function(){var h;return(h=O())==null?void 0:h.bannerText},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.E("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.E(_.uw,{text:function(){return O().bannerText}})))}}),_.E(_.U,{cond:function(){return _.ML(O().logo)},
then:function(h){var Z={};return _.E("div",{class:_.YS((Z.ytmLpComplexOfferCardViewModelLogoAlignLeft=b,Z),"ytmLpComplexOfferCardViewModelLogo")},_.E(_.uj,{data:h,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.E("div",{class:_.YS((T.ytmLpComplexOfferCardViewModelTitleAlignLeft=b,T),"ytmLpComplexOfferCardViewModelTitle")},_.E(_.uw,{text:function(){return O().title}})),_.E(_.U,{cond:function(){var h;
return(h=O())==null?void 0:h.subtitle},
then:function(){var h={};return _.E("div",{class:_.YS((h.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=b,h),"ytmLpComplexOfferCardViewModelSubtitle")},_.E(_.uw,{text:function(){return O().subtitle}}))}}),_.E(_.U,{cond:function(){return O().planPricingPrimary},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.E(_.uw,{text:function(){return O().planPricingPrimary}}))}}),_.E(_.U,{cond:function(){return O().planPricingSecondary},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.E(_.uw,{text:function(){return O().planPricingSecondary}}))}}),_.E(_.U,{cond:function(){return O().purchaseButton},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.E(_.R4,{data:function(){return O().purchaseButton}},{buttonViewModel:function(h){return _.E(_.DO,{data:h.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.E(_.U,{cond:function(){var h;
return(h=O())==null?void 0:h.offerOptions},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.E(_.R4,{data:function(){return O().offerOptions}},{lpComplexOfferCardOptionViewModel:FdN}))}}),_.E("div",{class:_.YS((L.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=b,L),"ytmLpComplexOfferCardViewModelLegalText")},_.E(_.uw,{text:function(){return O().legalText}})),_.E(_.U,{cond:function(){var h;
return(h=O())==null?void 0:h.offerCardDetails},
then:function(){return _.E("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.E(_.R4,{data:function(){return O().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:cFN}))}}))))},"Sb");var W0S=_.J1(function(W){var O=W.data;var b=function(){var Z;return((Z=O())==null?void 0:Z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
W={};var T={},L={},h={};return _.E("ytm-lp-complex-offer-card-section-view-model",null,_.E("div",{class:_.YS("ytmLpComplexOfferCardSectionViewModelHost")},_.E("div",{class:_.YS((W.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=b,W),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.E("div",{class:_.YS((T.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=b,T),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.E("h2",{class:_.YS((L.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
b,L),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.E(_.uw,{text:function(){return O().title}}))),_.E(_.U,{cond:function(){var Z;
return(Z=O())==null?void 0:Z.subtitle},
then:function(){var Z={},a={};return _.E("div",{class:_.YS((Z.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=b,Z),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.E("div",{class:_.YS((a.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=b,a),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.E(_.uw,{text:function(){return O().subtitle}})))}}),_.E("div",{class:_.YS((h.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=b,h),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.E(_.R4,{data:function(){var Z;
return(Z=O().offerPlans)!=null?Z:[]}},{lpComplexOfferCardViewModel:function(Z){return _.E("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.E(yFN,{data:Z.data}))}})))))},"Tb");_.p8=nbf.getInstance();var OTw=_.J1(function(W){return _.E("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":W.shouldAriaHideContent},_.E("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:W.questionId},_.E(_.uw,{text:W.question})))},"Ub"),iTf=_.J1(function(W){var O=W.data;
var b=W.themeOverride;W=_.S(_.wu(!1,void 0,"ljTVPd"));var T=W.next().value,L=W.next().value;W=_.XL(function(){L(!T());return!1});
var h=function(){return T()?"EXPAND_LESS":"EXPAND_MORE"},Z=("faq-container"+_.gN(_.p8)).toString(),a="faq-question-and-answers-section-question"+_.gN(_.p8),m={},w={};
return _.E("faq-entry-view-model-c3",null,_.E("div",{class:_.YS("yt-lp-faq-entry-view-model",(m["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return b==null?void 0:b().useDarkTheme},m))},_.E("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":W,role:"button","aria-expanded":T,"aria-labelledby":a.toString(),"tab-index":"0"},_.E(OTw,{question:function(){return O().question},
questionId:a,shouldAriaHideContent:!0}),_.E(_.U,{cond:function(){return T()!==void 0},
then:function(){return _.E("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.E(_.Ps,{icon:h,ariaHidden:!0}),_.E("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.E("div",{class:_.YS("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(w["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!T()},w))},_.E("div",{id:Z},_.E(_.pv,{each:function(){return O().answers||[]}},function(A){return _.E("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.E(_.uw,{text:A}))})))))},"Vb");
iTf.idomCompat=!0;var bTv=_.J1(function(W){var O=W.data;var b=W.themeOverride;W={};return _.E("lp-faq-section-view-model-c3",null,_.E("div",{class:_.YS("yt-lp-faq-section-view-model",(W["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return O().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},W))},_.E("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.E(_.U,{cond:function(){return O().header},
then:function(T){return _.E("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.E(_.uw,{text:T}))}}),_.E("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.E(_.R4,{data:function(){return O().faqs}},{faqEntryViewModel:function(T){return _.E(iTf,{data:T.data,
themeOverride:b})}})),_.E("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.E(_.pv,{each:function(){return O().footers||[]}},function(T){return _.E(_.uw,{text:T})})),_.E(_.U,{cond:function(){return O().legal},
then:function(T){return _.E("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.E(_.uw,{text:T}))}}))))},"Wb");
bTv.idomCompat=!0;var jkU=_.J1(function(W){var O=W.data;var b=W.themeOverride;_.kX(function(){var Z=O().gtmId;Z&&_.eu(Z,_.Cv("GL",""))});
var T={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,a,m;return(m=(Z=O().logo)==null?void 0:(a=Z.accessibilityData)==null?void 0:a.label)!=null?m:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},L=_.iq().resolve(_.OT(_.t4)),h=function(){return L&&L()||(b==null?void 0:b().useDarkTheme)};
return _.E("lp-header-section-view-model",null,_.E("div",{class:function(){var Z=O().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",a=O().marginType==="LP_SECTION_MARGIN_TYPE_TOP",m=b==null?void 0:b().useDarkTheme,w=["lp-header-section-view-model"];Z&&w.push("lp-header-section-view-model--ptc-layout-type");a&&w.push("lp-header-section-view-model__lp-header-section-margin");m&&w.push("lp-header-section-view-model--premium-force-dark-mode");return w.join(" ")}},_.E(_.U,{cond:function(){return O().logo},
then:function(){return _.E("div",null,_.E(_.U,{cond:h,then:function(){return _.E(_.U,{cond:function(){var Z;return(Z=O().logo)==null?void 0:Z.imageDark},
then:function(Z){return _.E(_.uj,Object.assign({},{data:Z},T))}})},
else:function(){return _.E(_.U,{cond:function(){var Z;return(Z=O().logo)==null?void 0:Z.imageLight},
then:function(Z){return _.E(_.uj,Object.assign({},{data:Z},T))}})}}))}}),_.E(_.U,{cond:function(){return O().title},
then:function(Z){return _.E("div",{class:"lp-header-section-view-model__lp-header-title"},_.E(_.uw,{text:Z}))}}),_.E("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.E(_.U,{cond:function(){return O().subtitles},
then:function(Z){return _.E(_.pv,{each:Z},function(a){return _.E("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.E(_.uw,{text:a}))})}})),_.E(_.U,{cond:function(){return O().additionalInfo},
then:function(Z){return _.E("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.E(_.uw,{text:Z}))}}),_.E("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.E(_.U,{cond:function(){return O().primaryButton},
then:function(Z){return _.E("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.E(_.R4,{data:Z},{buttonViewModel:_.DO}))}}),_.E(_.U,{cond:function(){return O().secondaryButton},
then:function(Z){return _.E("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.E(_.R4,{data:Z},{buttonViewModel:_.DO}))}})),_.E(_.U,{cond:function(){return O().otherOffersInfo},
then:function(Z){return _.E("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.E(_.uw,{text:Z}))}}),_.E("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.E(_.U,{cond:function(){return O().billingInfo},
then:function(Z){return _.E(_.pv,{each:Z},function(a){return _.E("div",null,_.E(_.uw,{text:a}))})}}))))},"Xb");
jkU.idomCompat=!0;var T$w=_.J1(function(W){var O=W.data;var b=_.Me(W.themeOverride,{useDarkTheme:!1});W={};W=_.YS("ytm-lp-headline-section-view-model",(W["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return b().useDarkTheme},W));
return _.E("lp-headline-section-view-model",null,_.E("div",{class:W},_.E("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.E(_.uw,{text:function(){return O().title}})),_.E(_.U,{cond:function(){return O().subtitle},
then:function(T){return _.E("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.E(_.uw,{text:T}))}})))},"Yb");var L09=_.J1(function(W){var O=W.data;var b=W.themeOverride;var T=_.iq().resolve(_.OT(_.t4)),L=function(){return T&&T()||(b==null?void 0:b().useDarkTheme)},h=function(){var w,A;
var X=L()?(w=O().textBackgroundImage)==null?void 0:w.imageDark:(A=O().textBackgroundImage)==null?void 0:A.imageLight;return LVO((X==null?void 0:X.sources)||[])},Z=function(){var w,A;
return L()?(w=O().featureImage)==null?void 0:w.imageDark:(A=O().featureImage)==null?void 0:A.imageLight},a=function(){return O().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},m=function(){var w,A;
return L()?(w=O().logo)==null?void 0:w.imageDark:(A=O().logo)==null?void 0:A.imageLight};
return _.E("ytm-lp-large-feature-section-view-model",null,_.E("div",{class:function(){var w=O().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",A=O().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",X=(O().index||0)%2===1,l=b==null?void 0:b().useDarkTheme,p=["yt-lp-large-feature-section-view-model"];w?p.push("yt-lp-large-feature-section-view-model--music-feature-type"):A?p.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):X||p.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
l&&p.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return p.join(" ")}},_.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.E(_.U,{cond:Z,
then:function(){return _.E(_.uj,{data:function(){return Z()},
alt:function(){var w,A,X;return(X=(w=O().featureImage)==null?void 0:(A=w.accessibilityData)==null?void 0:A.label)!=null?X:""},
contentMode:a})}})),_.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var w;return((w=h())==null?0:w.url)?"background-image: url("+_.l7(h().url)+");":""}},_.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.E(_.U,{cond:m,
then:function(){return _.E(_.uj,{data:function(){return m()},
alt:function(){var w,A,X;return(X=(w=O().logo)==null?void 0:(A=w.accessibilityData)==null?void 0:A.label)!=null?X:""},
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"})}}),_.E(_.U,{cond:function(){return O().eyebrowText},
then:function(){return _.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.E(_.uw,{text:function(){return O().eyebrowText}}))}}),_.E(_.U,{cond:function(){return O().title},
then:function(){return _.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.E(_.uw,{text:function(){return O().title}}))}}),_.E(_.U,{cond:function(){return O().subtitles},
then:function(){return _.E("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.E(_.pv,{each:function(){return O().subtitles||[]}},function(w){return _.E(_.uw,{text:w})}))}})))))},"Zb");
L09.idomCompat=!0;var dHq=_.J1(function(W){return _.E("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.E("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.E(_.Ps,{icon:function(){var O;return(O=W.data())==null?void 0:O.iconType},
className:function(){var O;return((O=W.data())==null?void 0:O.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.E("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.E(_.uw,{text:function(){var O;
return(O=W.data())==null?void 0:O.text}}))))},"$b");var hZ1=_.J1(function(W){W=_.um(W,{config:void 0,themeOverride:void 0});var O=W.data,b=W.config,T=W.themeOverride;W={};W=_.YS("ytm-lp-offer-card-option-view-model",(W["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var m;return(m=T())==null?void 0:m.useDarkTheme},W));
var L=_.XL(function(){var m,w;(m=b())==null||(w=m.handleRadioButtonClick)==null||w.call(m,O());return!1}),h=function(){var m;
return(m=b())==null?void 0:m.shouldDisplayRadioButton},Z=_.XL(function(){if(h()){var m,w;
(m=b())==null||(w=m.handleRadioButtonClick)==null||w.call(m,O())}return!1}),a=function(){var m;
return(m=O().featureListItems)!=null?m:[]};
return _.E("ytm-lp-offer-card-option-view-model",null,_.E("div",{class:W,"on:click":Z},_.E(_.U,{cond:h,then:function(){return _.E("div",null,_.E("input",{type:"radio","on:click":L,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var m;return!((m=b())==null||!m.isOptionSelected)}}))}}),_.E("div",null,_.E("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.E(_.uw,{text:function(){return O().eyebrowText}})),_.E("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.E(_.uw,{text:function(){return O().subtitle}})),_.E(_.U,{cond:function(){return a().length>0},
then:function(){return _.E("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.E(_.R4,{data:a},{lpFeatureListItemViewModel:dHq}))}}),_.E("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.E(_.uw,{text:function(){return O().description}})))))},"ac");
hZ1.idomCompat=!0;var Suf=_.J1(function(W){var O=W.data;var b=W.themeOverride;W=_.S(_.ln(function(){var h,Z=(h=O().offerOptions)==null?void 0:h[0];return _.P(Z,D2N)||{}}));
var T=W.next().value,L=W.next().value;W={};return _.E("ytm-lp-offer-card-view-model",null,_.E("div",{class:_.YS("ytm-lp-offer-card-view-model",(W["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},W))},_.E("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.E(_.U,{cond:function(){return O().titleIconType},
then:function(){return _.E("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.E(_.Ps,{icon:function(){var h;return((h=O().titleIconType)==null?void 0:h.toString())||""}}))}}),_.E("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.E(_.uw,{text:function(){return O().title}})),_.E(_.R4,{data:function(){return O().titleBadge}},{badgeViewModel:function(h){return _.E("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.E(_.cd,{data:h.data}))}})),_.E("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.E(_.R4,{data:function(){return O().offerOptions}},{lpOfferCardOptionViewModel:function(h){var Z=h.data;
return _.E(_.TT,null,_.E("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.E(hZ1,{data:Z,config:function(){var a;return{shouldDisplayRadioButton:(O().offerOptions||[]).length>1,isOptionSelected:Z().id===((a=T())==null?void 0:a.id),handleRadioButtonClick:function(m){return void L(m)}}},
themeOverride:b}))}})),_.E("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.E(_.R4,{data:function(){var h;
return(h=T())==null?void 0:h.purchaseButtonOverride}},{buttonViewModel:_.DO}))))},"bc");
Suf.idomCompat=!0;var ZT5=_.J1(function(W){var O=W.data;var b=W.themeOverride;W={};W=_.YS("ytm-lp-offer-card-section-view-model",(W["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var T;return b==null?void 0:(T=b())==null?void 0:T.useDarkTheme},W));
return _.E("ytm-lp-offer-card-section-view-model",null,_.E("div",{class:W},_.E(_.U,{cond:function(){return O().title!==void 0},
then:function(){return _.E("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.E("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.E(_.uw,{text:function(){return O().title}})),_.E(_.U,{cond:function(){return O().subtitle},
then:function(){return _.E("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.E(_.uw,{text:function(){return O().subtitle}}))}}))}}),_.E("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.E(_.R4,{data:function(){return O().offerCards}},{lpOfferCardViewModel:function(T){return _.E("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.E(Suf,{data:T.data,
themeOverride:b}))}})),_.E(_.U,{cond:function(){return O().footer},
then:function(){return _.E("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.E(_.uw,{text:function(){return O().footer}}))}})))},"cc");var I4n=_.J1(function(W){var O=W.data;return _.E("lp-offer-table-cell-content-view-model",null,_.E("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.E(_.vU,null,_.E(_.RW,{when:function(){return O().title}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return O().title}})}),_.E(_.RW,{when:function(){return O().subTitle}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return O().subTitle}})}),_.E(_.RW,{when:function(){return O().featureDescription}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return O().featureDescription}})}),_.E(_.RW,{when:function(){return O().description}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return O().description}})}),_.E(_.RW,{when:function(){return O().iconType}},function(){return _.E("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.E(_.Ps,{icon:function(){return O().iconType.toString()}}))}),_.E(_.RW,{when:function(){return O().purchaseButton}},function(){return _.E(_.R4,{data:function(){return O().purchaseButton}},{buttonViewModel:function(b){return _.E("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.E(_.DO,{data:b.data}))}})}),_.E(_.RW,{when:function(){return O().note}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return O().note}})}),_.E(_.RW,{when:function(){return O().featureDetail}},function(){return _.E(_.uw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return O().featureDetail}})}),_.E(_.RW,{when:function(){return O().badge}},function(){return _.E(_.R4,{data:function(){return O().badge}},{badgeViewModel:_.cd})}))))},"dc");
I4n.idomCompat=!0;var a4q=_.J1(function(W){var O=W.data;return _.E("lp-offer-table-cell-view-model",null,_.E("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(O().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;"}}},_.E(_.R4,{data:function(){return O().contents}},{lpOfferTableCellContentViewModel:I4n})))},
"ec");
a4q.idomCompat=!0;var mHS=_.J1(function(W){var O=W.data;var b=W.lpTableIsFirstRow;var T=W.lpTableIsLastRow;var L=function(){return(b==null?0:b())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},h=function(){return(b==null?0:b())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(T==null?0:T())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.E("ytm-lp-offer-table-row-view-model",null,_.E("div",{class:"yt-lp-offer-table-row-view-model"},_.E(_.R4,{data:function(){return O().rowHeaderCell}},{lpOfferTableCellViewModel:function(Z){return _.E("div",{class:L},_.E(a4q,{data:Z.data}))}}),_.E(_.R4,{data:function(){return O().contentCells}},{lpOfferTableCellViewModel:function(Z){return _.E("div",{class:h},_.E(a4q,{data:Z.data}))}})))},"fc");
mHS.idomCompat=!0;var YuU=_.J1(function(W){var O=W.data;var b=W.themeOverride;var T=_.iq().resolve(_.OT(_.t4)),L=function(){return _.P(O().logo,MXn)||{}};
W={};return _.E("ytm-lp-offer-table-section-view-model",null,_.E("div",{class:"yt-lp-offer-table-view-model"},_.E(_.U,{cond:function(){var h,Z;return T&&T()||(b==null?0:b().useDarkTheme)?(h=L())==null?void 0:h.imageDark:(Z=L())==null?void 0:Z.imageLight},
then:function(h){return _.E(_.uj,{data:h,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var Z,a,m;return(m=(Z=L())==null?void 0:(a=Z.accessibilityData)==null?void 0:a.label)!=null?m:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.E(_.uw,{text:function(){return O().subtitle}})),_.E(_.U,{cond:function(){return O().disclaimers},
then:function(h){return _.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.E(_.pv,{each:h},function(Z){return _.E("div",null,_.E(_.uw,{text:Z}))}))}}),_.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.E(_.R4,{data:function(){return O().rows}},{lpOfferTableRowViewModel:function(h,Z){return _.E(mHS,{data:h.data,
lpTableIsFirstRow:function(){return Z()===0},
lpTableIsLastRow:function(){return Z()===O().rows.length-1}})}})),_.E("div",{class:_.YS((W["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return O().hasFooterBackground},W))},_.E(_.U,{cond:function(){return O().footer},
then:function(){return _.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.E(_.uw,{text:function(){return O().footer}}))}}),_.E(_.U,{cond:function(){return O().footerTitle},
then:function(){return _.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.E(_.uw,{text:function(){return O().footerTitle}}))}}),_.E(_.U,{cond:function(){return O().footerDescription},
then:function(){return _.E("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.E(_.uw,{text:function(){return O().footerDescription}}))}}))))},"gc");
YuU.idomCompat=!0;var EjN=_.J1(function(W){var O=W.data;var b=W.themeOverride;var T=_.iq().resolve(_.OT(_.t4)),L=function(){var a;return b==null?void 0:(a=b())==null?void 0:a.useDarkTheme},h=function(){var a,m;
return T&&T()||L()?(a=O().image)==null?void 0:a.imageDark:(m=O().image)==null?void 0:m.imageLight};
W={};W=_.YS("ytm-lp-small-feature-section-view-model",(W["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=L,W));var Z=function(){var a,m,w;return(w=(a=O().image)==null?void 0:(m=a.accessibilityData)==null?void 0:m.label)!=null?w:""};
return _.E("ytm-lp-small-feature-section-view-model",{class:W},_.E(_.U,{cond:function(){return h()&&!RdX},
then:function(){return _.E("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.E(_.uj,{data:function(){return h()},
alt:Z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.E("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.E("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.E(_.U,{cond:function(){return O().title},
then:function(a){return _.E(_.uw,{text:a})}})),_.E("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.E(_.uw,{text:function(){return O().description}}))))},"hc");
EjN.idomCompat=!0;var wn$=_.J1(function(W){var O=W.data;var b=W.themeOverride;W={};return _.E("ytm-lp-small-feature-section-group-view-model",null,_.E("div",{class:_.YS("ytm-lp-small-feature-section-group-view-model",(W["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(b==null||!b().useDarkTheme)},W))},_.E("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.E(_.R4,{data:function(){return O().smallFeatures}},{lpSmallFeatureSectionViewModel:function(T){return _.E("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.E(EjN,{data:T.data,
themeOverride:b}))}}))))},"ic");
wn$.idomCompat=!0;_.O1(_.J1(function(W){var O=W.data;var b=function(){return O().forcedTheme==="USER_INTERFACE_THEME_DARK"},T=function(){return O().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},L=function(){var Z="",a,m;
var w=_.iq().resolve(_.OT(_.t4));w=b()||(w==null?0:w())?(a=O().themedImageViewModel)==null?void 0:a.imageDark:(m=O().themedImageViewModel)==null?void 0:m.imageLight;(a=LVO((w==null?void 0:w.sources)||[]))&&a.url&&(Z=T()?"background-image: linear-gradient(to bottom, transparent, "+(O().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.l7(a.url)+");":"background-image: url("+_.l7(a.url)+");");return Z},h=function(){return{useDarkTheme:b()}};
W={};return _.E("yt-section-group-view-model",null,_.E("div",{class:_.YS("yt-lp-section-group-view-model",(W["yt-lp-section-group-view-model--premium-force-dark-mode"]=b,W["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return O().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},W))},_.E(_.U,{cond:function(){return L().length},
then:function(){var Z={};return _.E("div",{class:_.YS("yt-lp-section-group-view-model__bg-image",(Z["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=T,Z)),style:L})}}),_.E("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.E(_.R4,{data:function(){return O().sections}},{lpFaqSectionViewModel:function(Z){return _.E(bTv,{data:Z.data,
themeOverride:h})},
lpHeaderSectionViewModel:function(Z){return _.E(jkU,{data:Z.data,themeOverride:h})},
lpHeadlineSectionViewModel:function(Z){return _.E(T$w,{data:Z.data,themeOverride:h})},
lpLargeFeatureSectionViewModel:function(Z){return _.E(L09,{data:Z.data,themeOverride:h})},
lpOfferCardSectionViewModel:function(Z){return _.E(ZT5,{data:Z.data,themeOverride:h})},
lpComplexOfferCardSectionViewModel:function(Z){return _.E(W0S,{data:Z.data})},
lpOfferTableSectionViewModel:function(Z){return _.E(YuU,{data:Z.data,themeOverride:h})},
lpSmallFeatureSectionGroupViewModel:function(Z){return _.E(wn$,{data:Z.data,themeOverride:h})}}))))},"jc"),"yt-section-group-view-model",{props:{data:_.te}});var LLT=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Aa$=_.J1(function(W){function O(){if(LLT.has(W.data().displayType)){var w=!T(),A;if((A=W.disableDeselection)==null||!A.call(W)||w){W.data().selected=w;A=Object.assign({},Z(),{selected:w});a(A);var X;(X=W.callback)==null||X.call(W,A,w)}}}
var b=_.uy(),T=function(){var w,A;return!!(((w=W.selected)==null?void 0:w.call(W))!==void 0?(A=W.selected)==null?0:A.call(W):Z().selected)},L=_.S(_.ln(W.data)),h=L.next().value;
L=L.next().value;var Z=h,a=L,m=_.wt(TKe,function(){return W.data().chipEntityKey||""});
return _.E("chip-view-model",{class:"ytChipViewModelHost",el:b},_.E(yJn,{data:function(){var w,A=Object.assign({},Z(),{selected:T()}),X=m(),l=(w=W.disableDeselection)==null?void 0:w.call(W);a:switch(A.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":w=1;break a;default:w=0}return{text:(X==null?void 0:X.text)||A.text,state:A.disabled?1:A.selected?0:2,type:w,onTap:d0X(A,b,O,l),accessibilityLabel:A.accessibilityLabel||A.text}}}))},"kc");
_.Aa$.idomCompat={callbacks:{callback:!0}};_.Xn7=_.J1(function(W){var O=_.wt(jIh,function(){var Z;return(Z=W.data())==null?void 0:Z.chipBarStateEntityKey}),b=function(){return W.data().disableDeselection},T=_.S(_.ln(function(){var Z;
if(((Z=O())==null?void 0:Z.selectedIndex)!=void 0)return O().selectedIndex;var a,m;Z=_.S(((a=W.data())==null?void 0:(m=a.chips)==null?void 0:m.entries())||[]);for(a=Z.next();!a.done;a=Z.next()){a=_.S(a.value);m=a.next().value;a=a.next().value;var w=void 0;if((w=_.P(a,_.xV))==null?0:w.selected)return m}return-1})),L=T.next().value,h=T.next().value;
return _.E("chip-bar-view-model",{class:_.YS("ytChipBarViewModelHost",W.className),role:"tablist"},_.E(_.R4,{data:function(){return W.data().chips}},{chipViewModel:function(Z,a){return _.E("div",{class:"ytChipBarViewModelChipWrapper"},_.E(_.Aa$,{data:Z.data,
selected:function(){return a()===L()},
callback:function(m,w){m=!!w;w=a();h(m?w:-1);var A,X=(A=W.data())==null?void 0:A.chipBarStateEntityKey;X&&m&&_.Ne(_.AI("chipBarStateEntity",X,{key:X,selectedIndex:w}))},
disableDeselection:W.disableDeselection||b}))}}))},"lc");_.O1(_.Xn7,"chip-bar-view-model",{props:{data:_.Ws,className:_.Ws,disableDeselection:_.Ws}});_.UHL=_.J1(function(W){var O=W.data;W={};return _.E("divider-view-model",{class:_.YS("divider-view-model-wiz",(W["divider-view-model-wiz__inset-thin-padding"]=function(){return O().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},W))},_.E("div",{class:_.YS("divider-view-model-wiz__base-divider",function(){return heq(O().dividerStyle)}),
style:_.eE({"background-color":function(){return O().backgroundColor?_.zF(O().backgroundColor):void 0}})}))},"mc");
_.UHL.idomCompat=!0;_.O1(_.UHL,"divider-view-model",{props:{data:_.te}});var g6=new Map,vt=new Map,IE8=0,oy;var X42=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],eeq={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var l4q,eZH;l4q=function(W){return function(O){return function(){return String(O())+W}}};
_.RF=l4q("px");eZH=l4q("s");var pnf=_.J1(function(W){function O(V){return function(){var jQ=p().numItemsPerGridRow,y=V()*jQ;jQ=y+jQ;var d8,pE;return(pE=(d8=T().contents)==null?void 0:d8.slice(y,jQ))!=null?pE:[]}}
var b=_.um(W,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),T=b.data,L=b.layoutContainerWidth,h=b.shouldUseOwnContainerSize,Z=b.marginSettings;b=_.S(_.wu(!0,void 0,"qgr2Je"));var a=b.next().value,m=b.next().value,w=function(){var V,jQ=(V=_.P(T().showMoreButton,_.Kp))==null?void 0:V.trackingParams;jQ&&_.dk(_.A4(),jQ);m(!1)},A=function(){var V,jQ=(V=_.P(T().showLessButton,_.Kp))==null?void 0:V.trackingParams;
jQ&&_.dk(_.A4(),jQ);m(!0)};
b=_.uy();var X=_.p4X(b,{canHaveZeroSize:!1}),l=function(){var V;return(V=T().contentAspectRatio)!=null?V:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},p=_.Pj(function(){var V=_.VU({containerWidth:h()&&X.width()>0?X.width()||L():L(),
sizing:"EXTRA_COMPACT",marginSettings:Z(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:V.maxContainerWidth,numItemsPerGridRow:V.numItems,contentPadding:h()?V.margin:V.contentMargin,itemWidth:V.itemWidth,itemMargin:V.gutter/2}},void 0,"pqVdjc"),K=function(){if(T().enableVerticalExpansion){if(a())return 1;
var V,jQ,y=(jQ=(V=T().contents)==null?void 0:V.length)!=null?jQ:0;return Math.ceil(y/p().numItemsPerGridRow)}return p().numItemsPerGridRow<=2?2:1},k=function(){return T().enableVerticalExpansion&&T().showLessButton&&!a()&&K()>1},r=function(){var V,jQ;
return T().enableVerticalExpansion&&T().showMoreButton&&a()&&((jQ=(V=T().contents)==null?void 0:V.length)!=null?jQ:0)>p().numItemsPerGridRow},q=function(){return!k()},f=function(){return!r()},M={};
return _.E("grid-shelf-view-model",{class:_.YS("ytGridShelfViewModelHost",W.className,(M.ytGridShelfViewModelHostHasBottomButton=function(){return k()||r()},M)),
el:b,style:_.eE({"margin-left":(0,_.RF)(function(){return p().contentPadding}),
"margin-right":(0,_.RF)(function(){return p().contentPadding})})},_.E(_.U,{cond:function(){return _.P(T().header,LU1)},
then:function(V){return _.E(_.j9,{data:V,disableHorizontalPadding:!0})}}),_.E("div",null,_.E(_.pv,{each:function(){return Array(K())}},function(V,jQ){return _.E(Pzn,{className:W.className,
items:O(jQ),responsiveGridShelfLayout:p,contentAspectRatio:l})})),_.E("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.E(_.R4,{data:function(){return T().showMoreButton}},{buttonViewModel:function(V){return _.E("div",{hidden:f},_.E(_.DO,{data:V.data,
onClick:w}))}}),_.E(_.R4,{data:function(){return T().showLessButton}},{buttonViewModel:function(V){return _.E("div",{hidden:q},_.E(_.DO,{data:V.data,
onClick:A}))}})))},"nc");
pnf.idomCompat=!0;var Pzn=_.J1(function(W){var O=W.items;var b=W.responsiveGridShelfLayout;var T=W.contentAspectRatio;W=W.className;var L=_.uy();Zt2(L,function(){a:{var Z=L.value;for(var a=O(),m=[],w=0;w<a.length;w++){var A=_.P(a[w],fR$);if(!A||A==null||!A.inlinePlayerData){Z=null;break a}var X=Z.children.item(w);if(!X){Z=null;break a}m.push({thumbnailElement:X,videoData:A})}Z={gridVideoPreviewData:{gridItems:m}}}return Z});
var h=(0,_.RF)(function(){return-b().itemMargin});
return _.E("div",{el:L,class:_.YS("ytGridShelfViewModelGridShelfRow",W),style:_.eE({"margin-left":h,"margin-right":h})},_.E(_.R4,{data:O,replacementWrapper:function(Z){return _.E(RZU,{responsiveGridShelfLayout:b},Z)}},{shortsLockupViewModel:function(Z){return _.E(RZU,{responsiveGridShelfLayout:b},_.E(SXv,{data:Z.data,
aspectRatio:function(){return T()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"oc"),RZU=_.J1(function(W){return _.E("div",{style:_.eE({width:(0,_.RF)(function(){return W.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+W.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},W.children)},"pc");
pnf.idomCompat=!0;_.O1(pnf,"grid-shelf-view-model",{props:{data:_.te,layoutContainerWidth:_.te,shouldUseOwnContainerSize:_.te,marginSettings:_.te,className:_.te}});_.K01=_.J1(function(W){var O=_.S(_.wu(!1,void 0,"YYtxR")),b=O.next().value,T=O.next().value;O={};return _.E("yt-alert-banner-view-model",{class:_.YS("ytAlertBannerViewModelHost",W.className,function(){var L;a:switch((L=W.data())==null?void 0:L.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":L="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":L="ytAlertBannerViewModelWarning";break a;default:L="ytAlertBannerViewModelInformational"}return L},(O.ytAlertBannerViewModelDismissed=
b,O.ytAlertBannerViewModelFullbleed=W.fullbleed,O.ytAlertBannerViewModelNarrow=W.narrow,O.ytAlertBannerViewModelIsInRichGrid=W.isInRichGrid,O))},_.E(_.U,{cond:function(){var L;
return!((L=W.data())==null?0:L.hideIcon)},
then:function(){return _.E("div",{class:"ytAlertBannerViewModelIcon"},_.E(_.Ps,{icon:function(){return"info_circle"}}))}}),_.E("div",{class:"ytAlertBannerViewModelOuterContainer"},_.E("div",{class:"ytAlertBannerViewModelContainer"},_.E("div",{class:"ytAlertBannerViewModelContent"},_.E("div",{class:"ytAlertBannerViewModelHeading"},_.E(_.uw,{text:function(){var L;
return(L=W.data())==null?void 0:L.heading}})),_.E("div",{class:"ytAlertBannerViewModelBody"},_.E(_.uw,{text:function(){var L;
return(L=W.data())==null?void 0:L.body}})))),_.E(_.R4,{data:function(){var L;
return(L=W.data())==null?void 0:L.actionButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.E(_.R4,{data:function(){var L;
return(L=W.data())==null?void 0:L.dismissButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var h;((h=W.data())==null?0:h.disableLocalDismissBehavior)||T(!0)}})}}))},"qc");_.O1(_.K01,"yt-alert-banner-view-model",{props:{data:_.te,fullbleed:_.te,narrow:_.te,isInRichGrid:_.te,className:_.te}});var ReO;ReO=_.lw({chipViewModel:_.Aa$,buttonViewModel:_.DO});_.vjv=_.AP(KL2,{callbacks:{callback:!0}});_.bO(KL2);_.O1(_.vjv,"chips-shelf-view-model",{props:{data:_.te,callback:_.Ws,enableSingleChipSelection:_.te,disableChipsScrollAnimation:_.te}});var gjS=_.J1(function(W){W=_.um(W,{disabled:!1});var O=W.active,b=W.disabled;W={};W=_.YS("ytSwitchShapeTrack",(W.ytSwitchShapeTrackActive=function(){return O()},W.ytSwitchShapeTrackDisabled=function(){return b()},W));
var T={};T=_.YS("ytSwitchShapeKnob",(T.ytSwitchShapeKnobActive=function(){return O()},T));
return _.E("switch-shape",{class:"ytSwitchShapeHost"},_.E("div",{class:W}),_.E("div",{class:T}))},"rc");var ojv=_.J1(function(W){var O=_.um(W,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),b=O.data;W=O.className;var T=O.handleOnTapEventInParent,L=O.parentActive;O=_.S(_.ln(function(){var X;return(X=L())!=null?X:b().switchedOnByDefault||!1}));
var h=O.next().value,Z=O.next().value,a=function(){return b().isDisabled},m=_.uy();
O=_.XL(function(X){return X.key==="Enter"?(X.preventDefault(),m.value.click(),!1):!0});
var w=_.XL(function(X){if(b().handleOnTapEventInParent||T())return!0;if(a())return!1;gKE(b(),h(),X);Z(!h());return!1}),A={};
A=_.YS("ytSwitchButtonViewModelButton",(A.ytSwitchButtonViewModelTappable=function(){return!a()},A));
return _.E("switch-button-view-model",{class:_.YS("ytSwitchButtonViewModelHost",W)},_.E("button",{el:m,class:A,"on:click":w,"on:keydown":O,"aria-label":function(){return h()?b().a11yLabelSwitchedOn:b().a11yLabelSwitchedOff},
"aria-checked":h,"aria-disabled":a,role:"switch"},_.E(gjS,{active:h,disabled:a})))},"sc");var kA1=_.J1(function(W){var O=_.um(W,{checked:!1});W=O.name;var b=O.onChange,T=O.onClick,L=O.checked,h=O.labelRenderable,Z=O.hasLeadingLabel,a=O.labelClass,m=O.isCompact,w=O.selectElementClass;O=O.disableHorizontalPadding;var A="checkbox"+_.gN(_.p8),X=_.XL(function(K){T==null||T(K);return!1}),l=_.XL(function(K){b==null||b(K);
return!1}),p={};
return _.E("checkbox-shape",null,_.E("label",{class:_.YS("checkbox-shape-wiz",a,(p["checkbox-shape-wiz--compact"]=m,p["checkbox-shape-wiz--disable-horizontal-padding"]=O,p))},_.E("input",{class:"checkbox-shape-wiz__input",id:A,checked:L,name:W,type:"checkbox","prop:checked":L,"on:change":l,"on:click":X}),_.E(_.U,{cond:function(){return!(Z==null?0:Z())},
then:function(){return _.E(Qkw,{isLeading:!0,selectElementClass:w})}}),_.E(_.U,{cond:function(){return!!h},
then:function(){return _.E("div",{class:"checkbox-shape-wiz__label"},h==null?void 0:h())}}),_.E(_.U,{cond:Z,
then:function(){return _.E(Qkw,{isLeading:!1,selectElementClass:w})}})))},"tc");
kA1.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Qkw=_.J1(function(W){var O=W.selectElementClass;W={};return _.E("div",{class:_.YS("checkbox-shape-wiz__checkbox",O,(W["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(O==null?0:O())},W)),
"aria-hidden":"true"},_.E(_.Ps,{icon:_.e("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.E(_.Ps,{icon:_.e("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"uc");_.K8=_.J1(function(W){var O=W.name;var b=W.onChange;var T=W.onClick;var L=W.checked;var h=W.labelRenderable;var Z=W.useCheckIcon;var a=W.hasLeadingLabel;var m=W.labelClass;var w=W.isCompact;var A=W.selectElementClass;var X=W.ariaLabel;W=W.className;var l="radio"+_.gN(_.p8),p=_.XL(function(V){b==null||b(V);return!1}),K=_.XL(function(V){T==null||T(V);
return!1}),k=_.S(_.wu(!1,void 0,"DEwP5e")),r=k.next().value,q=k.next().value;
k=_.XL(function(){var V;((V=_.iq().resolve(_.OT(_.bD)))==null?0:V.isKeyBoardInUse())&&q(!0)});
var f=_.XL(function(){q(!1)}),M={};
return _.E("radio-shape",{class:_.YS("radio-shape-wiz",W)},_.E("input",{class:"radio-shape-wiz__input",id:l,"prop:checked":L,name:O,type:"radio","on:change":p,"on:click":K,"aria-label":X,"on:focusin":k,"on:focusout":f}),_.E("label",{class:_.YS("radio-shape-wiz__label-container",m,(M["radio-shape-wiz--compact"]=w,M["radio-shape-wiz__label-container--keyboard-focused"]=r,M)),for:l},_.E(_.U,{cond:function(){return!(a==null?0:a())},
then:function(){return _.E(skv,{checked:L,useCheckIcon:Z,isLeading:!0,selectElementClass:A})}}),_.E(_.U,{cond:function(){return!!h},
then:function(){return _.E("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(X==null?0:X())?"true":"false"}},h==null?void 0:h())}}),_.E(_.U,{cond:a,
then:function(){return _.E(skv,{checked:L,useCheckIcon:Z,isLeading:!1,selectElementClass:A})}})))},"vc");
_.K8.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var skv=_.J1(function(W){var O=W.useCheckIcon;var b=W.selectElementClass;W=function(){return(O==null?0:O())?"CHECK":_.e("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var T={};return _.E("div",{class:_.YS("radio-shape-wiz__radio",b,(T["radio-shape-wiz__radio--check-icon"]=O,T["radio-shape-wiz__radio--radio-default-style"]=function(){return!(b==null?0:b())},T)),
"aria-hidden":"true"},_.E(_.Ps,{icon:W}),_.E(_.Ps,{icon:W,active:function(){return!(O==null?0:O())}}))},"wc");_.ve=_.J1(function(W){function O(){var yh;((yh=_.iq().resolve(_.OT(_.bD)))==null?0:yh.isKeyBoardInUse())&&tX(!0)}
function b(){tX(!1)}
var T=W.data;var L=W.isMenuItem;var h=W.isCompact;var Z=W.onTap;var a=W.trailingAccessory;var m=W.hideSelectionTextChevron;var w=W.disabled;var A=W.inPopup;var X=W.disableHorizontalPadding;W=W.isOverlay;var l=_.e("apply_button_role_to_list_item"),p=_.D3(function(yh){a:{var Gw=T();if((Gw==null?0:Gw.entitySelectorType)&&(Gw==null?0:Gw.entityKey))switch(Gw.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":yh=_.V_T(yh,Gw.entityKey);yh=yh==null?void 0:
yh.value;Gw=!1;yh==="CAPTIONS_UNAVAILABLE"&&(Gw=!0,yh="");yh=Object.assign({},!!yh&&{selectionText:{content:yh}},{isSelected:!!yh},!!yh&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:Gw});break a;default:yh={}}else yh={}}return yh}),K=function(){return _.e("enable_web_shorts_captions_language_command")?Object.assign({},T(),p()):T()},k=function(){return!(K().isSelected===void 0||!K().selectionStyle||K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
r=function(){return(_.fp(K().rendererContext)||Z)&&!k()},q=function(){return _.fp(K().rendererContext)||k()},f={};
W=_.YS("yt-list-item-view-model-wiz",(f["yt-list-item-view-model-wiz--is-overlay"]=W,f["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!l&&nE()},f));
f={};var M=_.YS("yt-list-item-view-model-wiz__label",(f["yt-list-item-view-model-wiz__container"]=function(){return!k()},f["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!K().isDisabled||!(w==null||!w())},f["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!K().subtitle},f["yt-list-item-view-model-wiz__container--compact"]=h,f["yt-list-item-view-model-wiz__container--tappable"]=r,f["yt-list-item-view-model-wiz__container--in-popup"]=A,f["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return l&&nE()},f["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(X==null?void 0:X())&&!k()},f));
f={};var V=_.YS("yt-list-item-view-model-wiz__container",(f["yt-list-item-view-model-wiz__container--tappable"]=q,f["yt-list-item-view-model-wiz__container--compact"]=h,f["yt-list-item-view-model-wiz__container--in-popup"]=A,f["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(X==null?void 0:X())&&k()},f)),jQ=function(){return K().leadingImage||K().leadingAccessory},y=_.YS("yt-list-item-view-model-wiz__image-container",function(){return jQ()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
A=_.uy();var d8=_.uy(),pE=l?d8:A,Qh=_.J1(function(){return _.E(_.U,{cond:function(){return l},
then:function(){return _.E("div",{class:M,el:d8,role:function(){return q()||r()?"button":void 0},
tabindex:function(){return Z||r()?0:void 0},
"on:keydown":fE,"on:click":KE},_.E(B$f,{data:K,hideSelectionTextChevron:m,trailingAccessory:a}))},
else:function(){return _.E("div",{class:M,el:d8},_.E(B$f,{data:K,hideSelectionTextChevron:m,trailingAccessory:a}))}})},"xc");
Qh.idomCompat=!0;_.GJ(A,function(){return K().rendererContext});
var KE=_.XL(function(yh){return void(Z==null?void 0:Z(yh))}),fE=_.MF1(),r8=_.S(_.wu(!1,void 0,"inP9Dc"));
f=r8.next().value;r8=r8.next().value;var nE=f,tX=r8;_.kX(function(){r()&&(pE.value.addEventListener("focusin",O),pE.value.addEventListener("focusout",b));_.so(function(){pE.value&&r()&&(pE.value.removeEventListener("focusin",O),pE.value.removeEventListener("focusout",b))})});
f=_.XL(function(){return!1});
return _.E("yt-list-item-view-model",{el:A,class:W,role:function(){return(L==null?0:L())?"menuitem":"listitem"},
tabindex:function(){var yh=r();yh=l?void 0:Z||yh?0:void 0;return yh},
"on:keydown":l?f:fE,"on:click":l?f:KE},_.E(_.U,{cond:k,then:function(){return _.E(_.vU,null,_.E(_.RW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.E(kA1,{labelRenderable:function(){return _.E(Qh,null)},
isCompact:h,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!jQ()},
labelClass:V,selectElementClass:y,disableHorizontalPadding:X})}),_.E(_.RW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.E(_.K8,{labelRenderable:function(){return _.E(Qh,null)},
isCompact:h,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!jQ()},
labelClass:V,selectElementClass:y})}),_.E(_.RW,{when:function(){return K().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.E(_.K8,{labelRenderable:function(){return _.E(Qh,null)},
isCompact:h,checked:function(){return K().isSelected},
hasLeadingLabel:function(){return!!jQ()},
labelClass:V,selectElementClass:y,useCheckIcon:!0})}),_.E(_.Kv,null,function(){return _.E(Qh,null)}))},
else:function(){return _.E(Qh,null)}}))},"yc");
_.ve.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var B$f=_.J1(function(W){var O=W.data;var b=W.hideSelectionTextChevron;var T=W.trailingAccessory;return _.E(_.TT,null,_.E(ra5,{data:O,isLeading:!0,hideSelectionTextChevron:function(){return!(b==null||!b())}}),_.E(DHH,{data:O}),_.E(_.U,{cond:function(){return!!T},
then:function(){return _.E("div",{class:"yt-list-item-view-model-wiz__trailing"},T==null?void 0:T())},
else:function(){return _.E(ra5,{data:O,isLeading:!1,hideSelectionTextChevron:function(){return!(b==null||!b())}})}}))},"zc"),ra5=_.J1(function(W){var O=W.data;
var b=W.isLeading;var T=W.hideSelectionTextChevron;var L=_.YS("yt-list-item-view-model-wiz__button-container");W={};var h=_.YS("yt-list-item-view-model-wiz__image-container",(W["yt-list-item-view-model-wiz__leading"]=b,W["yt-list-item-view-model-wiz__trailing"]=function(){return!b()},W)),Z=function(){return b()?O().leadingImage:O().trailingImage},a=_.YS("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
W={};var m=_.YS("yt-list-item-view-model-wiz__accessory",(W["yt-list-item-view-model-wiz__leading"]=b,W["yt-list-item-view-model-wiz__trailing"]=function(){return!b()},W)),w=function(){a:switch(O().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var A="expand_more";
break a;default:A="chevron_right"}return A};
return _.E(_.U,{cond:function(){var A=O(),X=b();return!!(X&&(A.leadingImage||A.leadingAccessory)||!X&&(A.trailingImage||A.trailingButton||A.trailingButtons||A.selectionText))},
then:function(){return _.E(_.TT,null,_.E(_.U,{cond:Z,then:function(A){return _.E("div",{class:h,"aria-hidden":"true"},_.E(_.uj,{data:A,alt:"",preserveWidth:!0,preserveHeight:!0,className:a}))}}),_.E(_.U,{cond:function(){return b()&&O().leadingAccessory},
then:function(){return _.E("div",{class:h},_.E(_.R4,{data:function(){return O().leadingAccessory}},{avatarViewModel:function(A){return _.E(_.KF,{data:A.data,
avatarButtonCustomClassName:a})},
collectionThumbnailViewModel:il9}))}}),_.E(_.U,{cond:function(){return!b()&&O().trailingButton},
then:function(){return _.E("div",{class:L},_.E(_.R4,{data:function(){return O().trailingButton}},{buttonViewModel:function(A){return _.E(_.DO,{data:A.data,
className:m})}}))}}),_.E(_.U,{cond:function(){var A;
return!b()&&((A=O().trailingButtons)==null?void 0:A.buttons)},
then:function(){return _.E("div",{class:L},_.E(_.R4,{data:function(){var A;return(A=O().trailingButtons)==null?void 0:A.buttons}},{buttonViewModel:function(A){return _.E(_.DO,{data:A.data,
className:m})},
accountLinkButtonViewModel:function(A){return _.E(sge,{data:A.data,className:function(){return m()||""}})},
switchButtonViewModel:function(A){return _.E(ojv,{data:A.data,className:m})},
subscribeButtonViewModel:function(A){return _.E(_.K1,{data:A.data,isOverlay:!1,animateWidth:!1,className:m})},
toggleButtonViewModel:function(A){return _.E(_.gt,{data:A.data,className:m})}}))}}),_.E(_.U,{cond:function(){return!b()&&!!O().selectionText},
then:function(){return _.E(_.TT,null,_.E(_.uw,{text:function(){return O().selectionText},
className:_.YS("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.E(_.U,{cond:function(){return!T()},
then:function(){return _.E(_.Ps,{icon:w,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Ac"),DHH=_.J1(function(W){var O=W.data;
return _.E(_.U,{cond:function(){return O().title||O().subtitle},
then:function(){return _.E("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.E("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.E(_.U,{cond:function(){return O().title},
then:function(b){return _.E(_.uw,{text:b,className:"yt-list-item-view-model-wiz__title"})}})),_.E(_.U,{cond:function(){return O().subtitle},
then:function(b){return _.E(_.uw,{text:b,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Bc");_.xHL=_.J1(function(W){var O=W.data;var b=W.onTap;var T=W.onSwitch;var L=W.overrideDisabled;W=W.disableHorizontalPadding;var h=_.S(_.ln(function(){var X;return((X=QIX(A()))==null?void 0:X.switchedOnByDefault)||!1})),Z=h.next().value,a=h.next().value;
h=_.S(_.wu(!1,void 0,"ZHBkbb"));var m=h.next().value,w=h.next().value,A=function(){var X;if(!(X=O().switchButton)){var l=O();X=L==null?void 0:L();l={switchOnCommand:l.switchOnCommand,switchOffCommand:l.switchOffCommand,switchedOnByDefault:l.switchedOnByDefault,isDisabled:l.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:l.a11yLabelSwitchedOn,a11yLabelSwitchedOff:l.a11yLabelSwitchedOff};X!==void 0&&(l.isDisabled=X);X={switchButtonViewModel:l}}return X};
return _.E("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.E(_.ve,{data:function(){return{title:O().title,subtitle:O().attributedSubtitle,leadingImage:O().leadingImage,leadingAccessory:O().leadingAccessory,isDisabled:O().isDisabled}},
onTap:function(X){var l=QIX(A());!l||l.isDisabled||O().ignoreTapUntilCommandCompletes&&m()||(b==null||b(X),gKE(l,Z(),X,O().ignoreTapUntilCommandCompletes,w),a(!Z()),T==null||T(Z()))},
trailingAccessory:function(){return _.E(_.R4,{data:A},{switchButtonViewModel:function(X){return _.E(ojv,{data:X.data,parentActive:Z,handleOnTapEventInParent:!!b})}})},
disableHorizontalPadding:W}))},"Cc");var zZq=_.EO("DOWNLOAD",{},"Download"),CzN=_.EO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),quq=_.EO("RETRY",{},"Retry"),njS=_.EO("PAUSE_DOWNLOADING",{},"Pause downloading"),f4$=_.EO("RESUME_DOWNLOAD",{},"Resume download"),kdQ={text:zZq,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},QI={text:CzN,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},rJX={text:quq,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
sI8={text:njS,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},BKq={text:f4$,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var GAn=_.J1(function(W){var O=function(){var a=W.data();a=_.np(a.rendererContext);var m;return(m=_.P(a,_.mo))==null?void 0:m.videoId},b=_.D3(function(a){var m=O(),w=ze1(W.data());
return m?_.D5(a,m):w?_.x9(a,w):"TRANSFER_STATE_UNKNOWN"}),T=_.wt(_.sPT,O),L=_.D3(function(a){return _.KUq(a,O(),ze1(W.data()))}),h=function(){return x0q(b(),T(),_.np(W.data().rendererContext),!!ze1(W.data()))},Z=function(){return L()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.E("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:Z},_.E(_.U,{cond:function(){return!Z()},
then:function(){return _.E(_.U,{cond:h,then:function(a){return _.E(_.pv,{each:a},function(m){return _.E(_.ve,{data:m,isCompact:W.isCompact,isMenuItem:W.isMenuItem,inPopup:W.inPopup,disableHorizontalPadding:W.disableHorizontalPadding})})}})}}))},"Dc");
GAn.idomCompat=!0;_.HTN=_.J1(function(W){var O=W.data;var b=W.isCompact;var T=W.hideSelectionTextChevron;var L=W.inPopup;var h=W.isOverlay;var Z=W.disableHorizontalPadding;var a=function(){return CbE(O())&&(L==null?void 0:L())};
W={};return _.E("yt-list-view-model",{class:_.YS("yt-list-view-model-wiz",(W["yt-list-view-model-wiz--kaios-spat-nav"]=RdX&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",W)),role:function(){return a()?"menu":"list"}},_.E(_.R4,{data:function(){return O().listItems}},{listItemViewModel:function(m){return _.E(_.ve,{data:m.data,
isMenuItem:a,isCompact:b,hideSelectionTextChevron:T,inPopup:L,isOverlay:h,disableHorizontalPadding:Z})},
downloadListItemViewModel:function(m){return _.E(GAn,{data:m.data,isMenuItem:a,isCompact:b,inPopup:L,disableHorizontalPadding:Z})},
switchListItemViewModel:function(m){return _.E(_.xHL,{data:m.data,disableHorizontalPadding:Z})}}))},"Ec");
_.HTN.idomCompat=!0;var tin=_.J1(function(W){var O=W.data;var b=W.isOverlay;W={};return _.E("yt-course-perks-view-model",{class:_.YS("ytwCoursePerksViewModelHost",(W.ytwCoursePerksViewModelHostOverlay=b,W))},_.E("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",null,_.E(_.U,{cond:function(){return O().perks},
then:function(T){return _.E(_.HTN,{data:function(){return{listItems:T()}},
isCompact:!0,isOverlay:b})}})))},"Fc");_.O1(tin,"yt-course-perks-view-model",{props:{data:_.Ws,isOverlay:_.Ws}});_.O1(_.J1(function(W){var O=W.data;return _.E("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.E("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.E(_.uw,{text:function(){return O().progressSummary}})),_.E("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.E("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.eE({width:function(){return O().progressPercentage*100+"%"}})})))},"Gc"),"yt-course-progress-view-model",{props:{data:_.te}});var $HH=_.J1(function(W){var O={};return _.E("yt-progress-view-model",{class:_.YS("ytwProgressViewModelHost",(O.ytwProgressViewModelHostOverlay=_.Me(W.isOverlay,!1),O))},_.E(_.U,{cond:function(){return W.data().progressSummary},
then:function(b){return _.E("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.E(_.uw,{text:b}))}}),_.E("div",{class:"ytwProgressViewModelHostProgressContainer"},_.E(_.U,{cond:function(){return W.data().leadingLabel},
then:function(b){return _.E("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.E(_.uw,{text:b}))}}),_.E("div",{class:"ytwProgressViewModelHostProgressBar"},_.E("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(W.data().progressPercentage||0)*100+"%"}}))))},"Hc");var gV=_.J1(function(W){var O=W.starNumber;var b=W.data;var T=function(){var L;return((L=b())==null?void 0:L.rating)||0};
return _.E(_.U,{cond:function(){return O()},
then:function(L){return _.E(_.vU,null,_.E(_.RW,{when:function(){return T()>=L()-.25}},function(){return _.E("div",{class:"ytStarRatingViewModelHostStar"},_.E(_.Ps,{icon:"STAR_FILLED"}))}),_.E(_.RW,{when:function(){return T()>=L()-.75}},function(){return _.E("div",{class:"ytStarRatingViewModelHostStar"},_.E(_.Ps,{icon:"STAR_HALF"}))}),_.E(_.Kv,null,function(){return _.E("div",{class:"ytStarRatingViewModelHostStar"},_.E(_.Ps,{icon:"STAR_BORDER"}))}))}})},"Ic"),Viw=_.J1(function(W){W=W.data;
return _.E("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.E(gV,{starNumber:1,data:W}),_.E(gV,{starNumber:2,data:W}),_.E(gV,{starNumber:3,data:W}),_.E(gV,{starNumber:4,data:W}),_.E(gV,{starNumber:5,data:W}))},"Jc");_.O1(_.J1(function(W){var O=_.um(W,{}).data;return _.E("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.E("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.E(_.uw,{text:function(){var b;return(b=O())==null?void 0:b.title}})),_.E("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.E(_.U,{cond:function(){return O().starProgressViewModels},
then:function(b){return _.E("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.E(_.R4,{data:b},{progressViewModel:$HH}))}}),_.E("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.E("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.E(_.uw,{text:function(){var b;
return(b=O())==null?void 0:b.averageRatingLabel}})),_.E(_.U,{cond:function(){return O().zeroStateText},
then:function(b){return _.E("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.E(_.uw,{text:b}))}}),_.E(_.U,{cond:function(){return O().starRatingViewModel},
then:function(b){return _.E("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.E(_.R4,{data:b},{starRatingViewModel:Viw}))}}),_.E("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.E(_.uw,{text:function(){var b;
return(b=O())==null?void 0:b.totalRatingsCountLabel}})))))},"Kc"),"yt-course-ratings-view-model",{props:{data:_.Ws}});var N$v;N$v={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.Miz=_.J1(function(W){var O=_.uy(),b=_.I4();_.oW(function(){requestAnimationFrame(function(){var L;(L=b.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var h;(h=W.onLottieLoaded)==null||h.call(W)})});
var T=W.data().browseEndpoint;T&&_.nb(T)});
return _.E("yt-learning-journey-loader-view-model",{class:_.YS("learningJourneyLoaderViewModelHost",W.className),"data-target-id":function(){var T;return((T=W.data)==null?void 0:T.call(W).targetId)||""},
el:O},_.E(_.E1,{className:_.YS("learningJourneyLoaderViewModelLoader",W.className),animationName:function(){return N$v.animationConfig.name},
data:N$v,animationRef:b}))},"Lc");_.O1(_.Miz,"yt-learning-journey-loader-view-model",{props:{data:_.te,className:_.Ws,onLottieLoaded:_.Ws}});var ub9=_.J1(function(W){var O=function(){return W.data()},b=_.S(_.wu(-1,void 0,"GvxRR")),T=b.next().value,L=b.next().value,h=function(w){return T()===w},Z=function(w){return O().correctAnswerIndex===w},a=function(){return T()!==-1},m=_.XL(function(){L(-1);
return!1});
return _.E("learning-journey-quiz-view-model",{class:_.YS("learningJourneyQuizViewModelHost",W.className),style:_.eE({background:function(){return Bt(kN(O())).backgroundColor}})},_.E(_.U,{cond:function(){return!!O().video},
then:function(){return _.E("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.eE({background:function(){return Bt(kN(O())).videoBackgroundColor}})},_.E(_.R4,{data:function(){return O().video}},{lockupViewModel:function(w){return _.E(_.Og,{data:w.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.E("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.E("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.E("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.E("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.E("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.eE({color:function(){return Bt(kN(O())).primaryTextColor}})},_.E(_.uw,{text:function(){var w=O(),A=a(),X=T()===O().correctAnswerIndex;
return A?X?w.successTitle:w.failureTitle:w.questionHeaderText}})),_.E("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.E(_.U,{cond:a,
then:function(){return _.E("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":m,role:"button","aria-label":"Reset","tab-index":"0"},_.E("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.eE({fill:function(){return Bt(kN(O())).primaryTextColor}})},_.E("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"})))}}),
_.E(_.R4,{data:function(){return O().overflowMenu}},{buttonViewModel:function(w){return _.E(_.DO,{data:w.data})}}))),_.E("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.eE({color:function(){return Bt(kN(O())).secondaryTextColor}})},_.E(_.uw,{text:function(){var w=O();
return a()?w.explanationText:w.questionSubheaderText}}))),_.E("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.E(_.pv,{each:function(){return O().optionsData||[]}},function(w,A){var X={};
return _.E("div",{class:_.YS("learningJourneyQuizViewModelHostQuizOptions",(X.learningJourneyQuizViewModelHostQuizHover=function(){return!a()},X.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return T()===O().correctAnswerIndex&&h(A())},X.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return T()!==O().correctAnswerIndex&&h(A())},X.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return a()&&!h(A())},X)),
"on:click":_.XL(function(){if(a())return!1;L(A());return!1}),
style:_.eE({background:function(){return a()&&h(A())?"":Bt(kN(O())).optionColor}}),
role:"button","aria-disabled":a,"tab-index":"0"},_.E(_.U,{cond:a,then:function(){return _.E("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var l=A();return Z(l)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.eE({fill:function(){return Bt(kN(O())).primaryTextColor}})},_.E("path",{d:function(){var l=A();
return Z(l)?"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"}}))}}),_.E(_.uw,{text:w.optionText}))})))))},"Mc");
ub9.idomCompat=!0;_.O1(ub9,"learning-journey-quiz-view-model",{props:{data:_.te,className:_.te}});var Ja9=_.J1(function(W){var O=_.uy();_.GJ(O,function(){return W.data().rendererContext});
var b=_.um(W,{palette:void 0,isLastItem:!1}),T=b.palette,L=b.isLastItem,h=function(){return W.data().isHighlighted},Z=function(){var w;
return qbq((w=T())==null?void 0:w.iconDisabledColor)},a=function(){var w;
return qbq((w=T())==null?void 0:w.primaryTitleColor)},m=function(){var w;
return qbq((w=T())==null?void 0:w.secondaryTitleColor)};
b={};return _.E("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:O},_.E(_.R4,{data:function(){return W.data().thumbnail}},{thumbnailViewModel:_.No}),_.E("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.E("div",{class:_.YS("ytMacroMarkerListItemViewModelTimeDescription",(b.ytMacroMarkerListItemViewModelHighlighted=h,b)),
style:_.eE({"background-color":function(){return h()?a():Z()},
color:function(){return h()?"":m()}})},_.E(_.uw,{text:function(){return W.data().timestamp}})),_.E("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.eE({"background-color":function(){return L()?"transparent":Z()}})}),_.E("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(h()?a():m())}},_.E(_.uw,{text:function(){return W.data().title}}))))},"Nc");_.oF=_.J1(function(W){function O(I7){q("transform:translateX("+(_.Cv("HTML_DIR")==="rtl"?"":"-")+I7+"px)")}
function b(I7){return Math.min(Math.max(I7,0),r()-y())}
function T(){var I7=V()+KE();return L()?(Math.round(y()/I7)||1)*I7:0}
var L=function(){return W.data().items||[]},h=function(){return W.data().previousButton},Z=function(){return W.data().nextButton},a=function(){var I7,T1;
return(T1=(I7=W.disableArrows)==null?void 0:I7.call(W))!=null?T1:!1},m=function(){var I7;
return!((I7=W.forceNarrowLayout)==null||!I7.call(W))},w=_.uy(),A=_.uy(),X=_.S(_.wu(0,void 0,"Tceerd")),l=X.next().value,p=X.next().value;
X=_.S(_.wu(0,void 0,"x6hsgd"));var K=X.next().value,k=X.next().value,r=K;K=_.S(_.wu("",void 0,"YAz2xb"));X=K.next().value;var q=K.next().value;K=_.S(_.wu(0,void 0,"GKFlK"));var f=K.next().value,M=K.next().value,V=f;K=_.S(_.wu(0,void 0,"ATcv8b"));f=K.next().value;var jQ=K.next().value,y=f;K=_.S(_.wu(!1,void 0,"eIrX3"));var d8=K.next().value,pE=K.next().value;K=_.S(_.wu(0,void 0,"dm6PFc"));f=K.next().value;var Qh=K.next().value,KE=f;K=_.S(_.wu(0,void 0,"PxgULe"));var fE=K.next().value,r8=K.next().value,
nE=function(){var I7,T1=(I7=W.data())==null?void 0:I7.responsiveContainerConfiguration,Y$,aR;return T1?yrO(T1==null?void 0:T1.responsiveSize):(aR=(Y$=W.sizing)==null?void 0:Y$.call(W))!=null?aR:"STANDARD"};
K=_.Pj(function(){return!a()&&l()>0},void 0,"pyrKJb");
f=_.Pj(function(){return!a()&&l()<r()-y()},void 0,"MIv0ec");
var tX=function(){p(b(l()-T()));O(l())},yh=function(){p(b(l()+T()));
O(l())},Gw=function(){w.value!==null&&h9()},KH;
_.kX(function(){h9();window.ResizeObserver?(KH=new ResizeObserver(_.Ei(Gw,0)),KH.observe(w.value)):window.addEventListener("resize",Gw)});
_.so(function(){if(window.ResizeObserver){var I7;(I7=KH)==null||I7.disconnect()}else window.removeEventListener("resize",Gw)});
var h9=function(){var I7=w.value.clientWidth,T1=W.includeMargin!==void 0?W.includeMargin():!1,Y$;var aR=W.hasPeek!==void 0?W.hasPeek():!((Y$=W.data())==null||!Y$.hasPeek);I7=_.VU({containerWidth:I7,hasPeek:aR,sizing:nE(),marginSettings:T1?m()?4:1:0});Qh(I7.gutter);r8(I7.margin);M(I7.itemWidth);pE(I7.maxContainerWidth<528||m());jQ(I7.maxContainerWidth);L()&&k((I7.itemWidth+I7.gutter)*L().length-I7.gutter)};
return _.E("horizontal-shelf-view-model",{class:_.YS("ytwHorizontalShelfViewModelHost",W.className),el:w},_.E(_.U,{cond:function(){return W.data().header},
then:function(){return _.E("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.eE({width:function(){return y()+"px"},
padding:function(){return"0 "+fE()+"px"}})},_.E(_.R4,{data:function(){return W.data().header}},{sectionHeaderViewModel:function(I7){return _.E(_.j9,{data:I7.data,
disableHorizontalPadding:!0,forceSmallLayout:d8,useResponsiveLayout:!0})}}))}}),_.E("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.eE({"margin-top":function(){var I7;return(((I7=W.ensureMarginTop)==null?0:I7.call(W))?W.data().header?0:12:0)+"px"}})},_.E("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.eE({width:function(){return y()+"px"},
padding:function(){return"0 "+fE()+"px"},
overflow:function(){return a()?"auto":"hidden"}})},_.E("div",{class:"ytwHorizontalShelfViewModelItems",
el:A,style:X},_.E(_.R4,{data:L},{macroMarkerListItemViewModel:function(I7,T1){return _.E("div",{style:_.eE({width:function(){return V()+"px"},
"margin-right":function(){return(T1()===L().length-1?0:KE())+"px"}})},_.E(Ja9,{data:I7.data,
palette:_.Me(W.palette),isLastItem:function(){return T1()===L().length-1}}))},
lockupViewModel:function(I7,T1){var Y$=I7.data;return _.E("div",{style:_.eE({width:function(){return V()+"px"},
"margin-right":function(){return(T1()===L().length-1?0:KE())+"px"}})},_.E(_.Og,{data:Y$,
containerType:4,sizing:nE,protectBackground:W.protectBackground,thumbnailFixedWidth:function(){return nKP(Y$())+"px"},
thumbnailTargetWidth:function(){return nKP(Y$())}}))}}))),_.E(_.U,{cond:K,
then:function(){return _.E("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.E(_.R4,{data:h},{buttonViewModel:function(I7){return _.E(_.DO,{data:I7.data,onClick:tX})}}))}}),_.E(_.U,{cond:f,
then:function(){return _.E("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.E(_.R4,{data:Z},{buttonViewModel:function(I7){return _.E(_.DO,{data:I7.data,onClick:yh})}}))}})))},"Oc");
_.oF.idomCompat=!0;var caH=_.J1(function(W){var O=function(){return W.data().targetId||""},b=function(){var l;
return((l=W.data())==null?void 0:l.expansionEntityKey)||""},T=_.wt(_.V_T,b),L=function(){var l;
return((l=T())==null?void 0:l.value)===O()},h=function(l){_.Ne(_.AI("stringEntity",b(),{key:b(),
value:l?O():""}))};
_.oW(function(){W.data().isExpanded&&h(!0)});
var Z=function(){if(L()){var l=!0;W.onCollapse!==void 0&&(l=W.onCollapse());l&&h(!1)}else h(!0)},a=_.XL(Z),m=function(){var l;
return(((l=W.accordionStyle)==null?void 0:l.call(W))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},w=_.uy(),A={},X={};
return _.E("yt-accordion-item-view-model",{class:_.YS("ytAccordionItemViewModelHost",W.className,(A.ytAccordionItemViewModelExpanded=function(){return L()},A.ytAccordionItemViewModelHidden=function(){var l;
return(l=W.hideIfNotExpanded)==null?void 0:l.call(W)},A.ytAccordionItemViewModelMini=m,A)),
"data-target-id":O},_.E("div",{class:"ytAccordionItemViewModelContainer"},_.E("div",{class:"ytAccordionItemViewModelLeftSection","on:click":a},_.E(_.uw,{text:function(){return W.data().title},
className:"ytAccordionItemViewModelLabel"})),_.E("div",{class:"ytAccordionItemViewModelRightSection"},_.E(_.R4,{data:function(){return L()?W.data().expandButton:W.data().collapseButton}},{buttonViewModel:function(l){return _.E(_.DO,{data:l.data,
className:"ytAccordionItemViewModelToggleButton",onClick:Z})}}))),_.E("div",{class:"ytAccordionItemViewModelContainer"},_.E("div",{class:_.YS("ytAccordionItemViewModelContent",(X.ytAccordionItemViewModelExpandedSubtitle=function(){return L()},X)),
el:w,style:_.eE({"max-height":function(){return w.value?L()?w.value.scrollHeight+"px":"0":"auto"}})},_.E(_.U,{cond:function(){return!m()},
then:function(){return _.E(_.uw,{text:function(){return W.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.E(_.R4,{data:function(){return W.data().content}},{horizontalShelfViewModel:function(l){return _.E(_.oF,{data:l.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Pc");_.F0L=_.J1(function(W){var O=_.S((0,_.vez)(W.data)).next().value,b=function(){return W.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},T=function(){return b()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L=_.S(_.wu(!0,void 0,"nJGZI")),h=L.next().value,Z=L.next().value,a=function(){return T()&&h()},m=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){Z(!h())}}},w=_.XL(function(){O().onTitleTap&&_.nb(O().onTitleTap||{})});
L={};return _.E("yt-accordion-view-model",{class:_.YS("ytAccordionViewModelHost",(L.ytAccordionViewModelMinimized=function(){return a()},L)),
"data-target-id":function(){return W.data().targetId||""}},_.E(_.U,{cond:function(){return T()||!!O().title},
then:function(){return _.E("div",{class:"ytAccordionViewModelHeader"},_.E("div",{class:"ytAccordionViewModelTitleSection"},_.E("div",{class:"ytAccordionViewModelTitleWrapper"},_.E(_.U,{cond:function(){return!!W.data().headerIcon},
then:function(){return _.E(_.Ps,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var A;return(A=W.data().headerIcon)==null?void 0:A.iconType}})}}),_.E("div",{class:"ytAccordionViewModelTitle",
"on:click":w},_.E(_.uw,{className:"ytAccordionViewModelTitleText",text:function(){return O().title}})))),_.E("div",{class:"ytAccordionViewModelButtonSection"},_.E(_.U,{cond:T,
then:function(){return _.E(cm,{data:m,iconName:function(){return a()?"chevron_down":"chevron_collapse"}})}})))}}),_.E("div",{class:"ytAccordionViewModelContent"},_.E(_.R4,{data:function(){return O().contents}},{accordionItemViewModel:function(A){return _.E(caH,{data:A.data,
className:"ytAccordionViewModelRow",accordionStyle:b,hideIfNotExpanded:a,onCollapse:function(){return T()?(Z(!0),!1):!0}})}})),_.E("div",null,_.E(_.U,{cond:function(){return!T()},
then:function(){return _.E(_.uw,{text:function(){return O().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})}})))},"Qc");_.O1(_.F0L,"yt-accordion-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O,b=(O=_.iq().resolve(_.OT(_.t4)))==null?void 0:O(),T=_.S(_.wu(!1,void 0,"XM2Sxc"));O=T.next().value;var L=T.next().value;T=_.S(_.wu(!0,void 0,"Jgzg2d"));var h=T.next().value,Z=T.next().value,a=_.uy(),m=function(K){L(!0);K={learningJourneyFormData:{query:K}};_.nb(W.data().searchEndpoint||{},{form:{formData:K}});return!1},w=_.XL(function(K){K.target.closest("button-view-model")&&L(!0)});
T=_.XL(function(){Z(a.value.value.length===0)});
var A=_.XL(function(K){if(K.key==="Enter"&&!K.shiftKey&&!h()){var k=K.target;K.preventDefault();m(k.value)}}),X={},l={},p={};
return _.E("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.E("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.E(_.uj,{data:function(){return W.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.E("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.E("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.E("div",{class:_.YS("ytLearningJourneyZeroStateSearchBar",(X.ytLearningJourneyZeroStateSearchBarDark=b,X))},_.E("textarea",{class:_.YS("ytLearningJourneyZeroStateTextInput",(l.ytLearningJourneyZeroStateTextInputDark=b,l)),el:a,"on:keyup":T,"on:keydown":A,placeholder:"What do you want to learn?",
rows:1})),_.E("div",{class:_.YS("ytLearningJourneyZeroStateSearchButtonContainer",(p.ytLearningJourneyZeroStateSearchButtonContainerDark=b,p))},_.E(_.DO,{data:function(){return _.P(W.data().searchButton,_.Kp)},
className:"search-button",onClick:function(){return m(a.value.value)},
buttonOverrides:function(){return{disabled:h(),style:b?"mono-inverse":"mono",size:"XL"}}}))),_.E(_.U,{cond:function(){return!!W.data().errorBanner},
then:function(){return _.E("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.E(_.R4,{data:function(){return W.data().errorBanner}},{alertBannerViewModel:_.K01}))}})),_.E(_.U,{cond:O,
then:function(){return _.E("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.E(_.R4,{data:function(){return W.data().loader}},{learningJourneyLoaderViewModel:function(K){return _.E(_.Miz,{data:K.data})}}))},
else:function(){return _.E("div",null,_.E(_.U,{cond:function(){return!!W.data().learningJourneyShelf},
then:function(){return _.E("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.E("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().learningJourneySectionTitle}),_.E(_.R4,{data:function(){return W.data().learningJourneyShelf}},{horizontalShelfViewModel:_.oF}))}}),_.E("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.E("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return W.data().suggestedJourneySectionTitle}),
_.E("div",{"on:click":w},_.E(_.R4,{data:function(){return W.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(K){return _.E(gT,{data:K.data,
layout:1})}}))))}}))},"Rc"),"yt-learning-journey-zero-state",{props:{data:_.te}});var yaq=_.J1(function(W){var O=W.data;return _.E("ytvl-live-leaderboard-item-action-content-view-model",{class:_.YS("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.E(_.uw,{text:function(){var b;return(b=O())==null?void 0:b.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.E(_.R4,{data:function(){return O().actionButton}},{buttonViewModel:function(b){return _.E(_.DO,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:b.data})}}))},"Sc");var Wt1=_.J1(function(W){var O=W.data;return _.E("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.YS("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.E(_.uw,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var b;return(b=O())==null?void 0:b.displayName},
ellipsisTruncate:!0}),_.E(_.R4,{data:function(){return O().badge}},{buttonViewModel:function(b){return _.E(_.DO,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:b.data})}}))},"Tc");_.O1(_.J1(function(W){var O=W.data;return _.E("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.E("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.E(_.uw,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var b;return(b=O())==null?void 0:b.rank}})),_.E("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.E(_.R4,{data:function(){return O().avatar}},{avatarViewModel:_.KF})),_.E("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.E(_.R4,{data:function(){return O().content}},{liveLeaderboardItemChannelContentViewModel:Wt1,
liveLeaderboardItemActionContentViewModel:yaq})),_.E(_.uw,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var b;return(b=O())==null?void 0:b.points}}))},"Uc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;return _.E("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.E(_.uw,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var b,T;return(b=O())==null?void 0:(T=b.ranking)==null?void 0:T.rank}}),_.E("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.E(_.R4,{data:function(){return O().avatar}},{avatarViewModel:_.KF})),_.E(_.uw,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var b,T;return(b=O())==null?void 0:(T=b.channelContent)==null?void 0:T.channelName}}),_.E(_.uw,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var b;return(b=O())==null?void 0:b.points}}))},"Vc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.te}});var OaH=_.J1(function(W){W=_.um(W,{wrapper:!1}).wrapper;return _.E(_.U,{cond:W,then:function(){return _.E("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.E("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.E("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Wc");
OaH.idomCompat=!0;var ia1=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ban=_.J1(function(W){var O=W.data;var b=_.uy(),T=_.Pj(function(){return O().command},void 0,"CGDtVe");
_.kb(function(){T()&&_.zH(T(),{form:{element:b.value}})});
return _.E("div",{el:b,class:"YtQrCodeRendererHostContainer"},_.E(_.U,{cond:function(){return O().qrCodeImage},
then:function(L){return _.E(_.uj,{data:L,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.E(_.U,{cond:function(){return O().spinner},
then:function(){return _.E(OaH,null)}})}}),_.E(_.U,{cond:function(){return O().label},
then:function(L){return _.E(_.uw,{text:L,className:"YtQrCodeRendererHostLabel"})}}),_.E(_.U,{cond:function(){return O().labels},
then:function(L){return _.E("div",{class:"YtQrCodeRendererHostLabels"},_.E(_.pv,{each:L},function(h){return _.E(_.uw,{text:h})}))}}))},"Yc");_.O1(_.J1(function(W){var O=W.data;var b=_.Pj(function(){return O().qrEntityKey},void 0,"joYCxd"),T=_.Pj(function(){return O().deleteEntityOnDismiss},void 0,"x3yAde"),L=_.Pj(function(){return O().command},void 0,"dJe1Re"),h=_.wt(RGQ,b);
W=_.Pj(function(){return O().style&&ia1.includes(O().style)},void 0,"rGILzf");
var Z=_.uy();_.iO(Z,{visibilityCallback:function(a){a&&L()&&_.zH(L())},
showOption:{calledOnce:!0,state:"visible"}});_.kX(function(){_.so(function(){T()&&b()&&_.$I().dispatch(_.AI("qrCodeEntity",b()))})});
return _.E("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:Z},_.E(_.U,{cond:W,then:function(){return _.E(_.U,{cond:h,then:function(a){return _.E(ban,{data:a})}})}}))},"Xc"),"yt-qr-code-renderer",{props:{data:_.te}});_.jSN=_.J1(function(W){var O=W.data;var b=W.topbarOffset;var T,L=((T=_.iq().resolve(_.OT(_.t4)))==null?void 0:T())||!1;return _.E("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var h=O();var Z,a,m=L?(Z=h.config)==null?void 0:Z.darkThemeBackgroundColor:(a=h.config)==null?void 0:a.lightThemeBackgroundColor;h=m?_.zF(m):void 0;h="background-color: "+h+";";b!==void 0&&(h+="top: -"+b()+"px;");return h},
"aria-hidden":!0},_.E(_.U,{cond:function(){var h,Z,a;return!!((h=O().backgroundImageConfig)==null?0:(Z=h.image)==null?0:(a=Z.sources)==null?0:a.length)},
then:function(){return _.E(_.uj,{data:function(){var h;return(h=O().backgroundImageConfig)==null?void 0:h.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.E("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+fEX(L,O().gradientColorConfig)+";"}}))},"Zc");
_.jSN.idomCompat=!0;var Qd=_.J1(function(W){var O=W.className;var b=W.data;var T=W.isOverlay;var L=W.maxLinesOverride;var h=W.useMediumText;W=_.uy();var Z=function(){return b().alwaysShowTruncationText},a=function(){return b().truncationText},m=function(){return h!==void 0&&h()?"medium":"small"},w=function(){return T!==void 0&&T()?"overlay":"default"},A=function(){var k,r;
return(r=(k=_.P(b().rendererContext,_.A6))==null?void 0:k.label)!=null?r:""},X=_.S(_.wu(!1,void 0,"mkuWzb")),l=X.next().value,p=X.next().value;
_.GJ(W,function(){return b().rendererContext});
X=_.XL(function(){b().expandOnTap&&p(!l());return!1});
var K={};return _.E("yt-description-preview-view-model",{el:W,class:_.YS("yt-description-preview-view-model-wiz",O,(K["yt-description-preview-view-model-wiz--clickable"]=function(){var k;return!((k=_.P(b().rendererContext,dW8))==null||!k.onTap)},K["yt-description-preview-view-model-wiz--is-overlay"]=T,K)),
"on:click":X},_.E(_.U,{cond:function(){return b().description},
then:function(k){return _.E(_.U,{cond:l,then:function(){var r={};return _.E("div",{class:_.YS("yt-description-preview-view-model-wiz__description",(r["yt-description-preview-view-model-wiz__description--medium-text"]=h,r))},_.E(_.uw,{text:k}))},
else:function(){return _.E(oQ$,{text:k,alwaysShowTruncationText:Z,truncationText:a,maxLines:function(){var r;return(r=L==null?void 0:L())!=null?r:b().maxLines},
textStyle:w,accessibilityLabel:A,textSize:m})}})}}))},"$c");
Qd.idomCompat=!0;var Trv=_.J1(function(W){var O=W.data;var b=W.isOverlay;return _.E("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.E("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.E(_.R4,{data:function(){return O().header}},{sectionHeaderViewModel:function(T){return _.E(_.j9,{data:T.data,
isOverlay:b})}})),_.E("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.E(_.R4,{data:function(){return O().channelInfoButtons}},{flexibleActionsViewModel:gT})),_.E("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.E(_.R4,{data:function(){return O().description}},{descriptionPreviewViewModel:function(T){return _.E(Qd,{data:T.data,
isOverlay:b})}})))},"ad");
Trv.idomCompat=!0;var Ltv=_.J1(function(W){var O=W.data;var b={};return _.E("factoid-view-model",{class:_.YS("ytwFactoidViewModelHost",(b.ytwFactoidViewModelHostOverlay=W.isOverlay,b))},_.E(_.uw,{text:function(){return O().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.E(_.uw,{text:function(){return O().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"bd");
Ltv.idomCompat=!0;var dtS=_.J1(function(W){var O=W.data;var b=W.isOverlay;return _.E("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.E(_.R4,{data:function(){return O().factoids}},{factoidViewModel:function(T){return _.E(Ltv,{data:T.data,
isOverlay:b})}}))},"cd");
dtS.idomCompat=!0;_.hxv=_.J1(function(W){var O=W.data;var b=W.isOverlay;return _.E("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.E(_.R4,{data:function(){return O().items}},{channelInfoViewModel:function(T){return _.E("div",{class:"ytwCourseMetadataViewModelHostItem"},_.E(Trv,{data:T.data,
isOverlay:b}))},
coursePerksViewModel:function(T){return _.E("div",{class:"ytwCourseMetadataViewModelHostItem"},_.E(tin,{data:T.data,isOverlay:b}))},
descriptionPreviewViewModel:function(T){return _.E("div",{class:"ytwCourseMetadataViewModelHostItem"},_.E(Qd,{data:T.data,isOverlay:b}))},
factoidsRowViewModel:function(T){return _.E("div",{class:"ytwCourseMetadataViewModelHostItem"},_.E(dtS,{data:T.data,isOverlay:b}))},
progressViewModel:function(T){return _.E("div",{class:"ytwCourseMetadataViewModelHostItem"},_.E($HH,{data:T.data,isOverlay:b}))}}))},"dd");var SHz=_.J1(function(W){return _.E("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.E(_.R4,{data:function(){return W.data().content}},{courseMetadataViewModel:function(O){return _.E(_.hxv,{data:O.data,
isOverlay:W.isOverlay})},
progressViewModel:function(O){return _.E($HH,{data:O.data})}}))},"ed");var Za1=_.J1(function(W){var O=W.data;W=W.className;var b=_.uy(),T=function(){var h;return _.fp((h=O())==null?void 0:h.rendererContext)},L={};
L=(L["dynamic-text-view-model-wiz"]=!0,L["dynamic-text-view-model-wiz--tappable"]=function(){return T()},L);
_.GJ(b,function(){var h;return(h=O())==null?void 0:h.rendererContext});
return _.E("yt-dynamic-text-view-model",{el:b,role:function(){return T()?"link":void 0},
tabindex:function(){return T()?0:void 0},
class:_.YS(W,L)},_.E("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var h,Z,a;return(a=(Z=_.P((h=O())==null?void 0:h.rendererContext,_.A6))==null?void 0:Z.label)!=null?a:""}},_.E(_.uw,{text:function(){return O().text},
userInput:!0})))},"fd");
Za1.idomCompat=!0;_.I05=_.J1(function(W){var O=W.data;var b=W.isPositionRelative;var T=_.J8(),L=_.HtQ("(max-width: 527.9px)"),h=function(){var Z,a;return(a=(Z=O())==null?void 0:Z.style)!=null?a:"IMAGE_BANNER_STYLE_FULL_BLEED"};
W={};W=(W["yt-image-banner-view-model-wiz"]=!0,W["yt-image-banner-view-model-wiz--inset"]=function(){return tGE(h())},W["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.ru(!0)&&!(b==null?0:b())},W["yt-image-banner-view-model-wiz--small-inset"]=function(){return tGE(h())&&L()},W["yt-image-banner-view-model-wiz--tappable"]=function(){var Z;
return _.ru(T.value)&&_.fp((Z=O())==null?void 0:Z.rendererContext)},W);
_.GJ(T,function(){var Z;return(Z=O())==null?void 0:Z.rendererContext});
return _.E("yt-image-banner-view-model",{el:T,class:_.YS(W)},_.E(_.U,{cond:function(){var Z;return(Z=O())==null?void 0:Z.image},
then:function(){return _.E(_.uj,{data:function(){return O().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.E(_.R4,{data:function(){var Z;
return(Z=O())==null?void 0:Z.overlays}},{thumbnailHoverOverlayViewModel:Rb}))},"gd");
_.I05.idomCompat=!0;var a0v;a0v=_.J1(function(W){var O=W.condition;var b=W.content;return _.E(_.U,{cond:O,then:function(){return _.E("div",{class:"page-header-view-model-wiz__scroll-container"},b())},
else:function(){return b()}})},"hd");
_.mtf=_.J1(function(W){var O=W.data;var b=W.noPadding;var T=W.enableBanner;var L=W.cinematicContainerTopbarOffset;var h=W.allowCinematicContainerOverflow;var Z=W.displayAsSidebar;var a=W.displayAsPanel;var m=$0X(),w=function(){return!!O().image||!!O().animatedImage},A=function(){return!!O().background},X=function(){return(Z==null?0:Z())||(a==null?0:a())?1:m()},l=function(){return X()===1},p=function(){return l()||X()===2},K=function(){return X()===4},k=function(){var KE=O();
var fE=!!O().heroImage;var r8=X(),nE=VGO(O()),tX=Z==null?void 0:Z(),yh=!KE.metadata,Gw;if(Gw=fE?_.P(KE.heroImage,urq):_.P(KE.animatedImage||KE.image,urq)){KE=Gw.style;var KH=Gw.layoutMode;Gw=wE8(EeX(Gw));if(fE)fE=Gd2(r8,KE,KH,Gw,tX);else b:if(yh)fE=r8===1?{size:48}:{size:72};else switch(r8){case 1:fE={size:72};break b;case 2:fE={size:120};break b;default:fE=nE<4?{size:120}:{size:160}}}else fE={size:0};return fE};
W={};W=_.YS((W["page-header-view-model-wiz"]=!0,W["page-header-view-model-wiz--no-padding"]=function(){return!(b==null||!b())},W["page-header-view-model-wiz--small-top-padding"]=function(){return l()&&!O().actions||X()===2&&!(w()||O().heroImage)},W["page-header-view-model-wiz--small-bottom-padding"]=function(){return p()&&!O().actions},W["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(h==null?0:h())},W["page-header-view-model-wiz--display-as-sidebar"]=Z,W["page-header-view-model-wiz--display-as-panel"]=
a,W));
var r={},q=_.YS((r["page-header-view-model-wiz__page-header-headline"]=!0,r["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return k().allowFullWidth},r)),f=function(){return l()&&(!!O().heroImage||w())&&VGO(O())>0},M=function(){return f()&&(a==null?void 0:a())};
r={};var V=_.YS((r["page-header-view-model-wiz__page-header-title"]=!0,r["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!f()},r["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return f()&&!M()},r["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=M,r["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=A,r));
r={};var jQ=_.YS((r["page-header-view-model-wiz__page-header-headline-image"]=!0,r["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!O().heroImage&&p()},r));
r={};var y=_.YS((r["page-header-view-model-wiz__page-header-banner-container"]=T,r["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var KE;return(T==null?void 0:T())&&((KE=_.P(O().banner,_.cuf))==null?void 0:KE.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},r));
r={};var d8=_.YS((r["page-header-view-model-wiz__page-header-content-metadata"]=!0,r["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=A,r));r={};var pE=_.YS((r["page-header-view-model-wiz__page-header-flexible-actions"]=!0,r["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!O().metadata||p()},r["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!p()},r));
r={};var Qh=_.YS((r["page-header-view-model-wiz__page-header-attribution"]=!0,r["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=A,r));return _.E("yt-page-header-view-model",{class:W},_.E(_.U,{cond:A,then:function(){return _.E("div",{class:"page-header-view-model-wiz__page-header-background"},_.E(_.R4,{data:function(){return O().background}},{cinematicContainerViewModel:function(KE){return _.E(_.jSN,{data:KE.data,
topbarOffset:L})}}))}}),_.E(a0v,{condition:function(){return!(Z==null||!Z())},
content:function(){return _.E("div",{class:"page-header-view-model-wiz__page-header-content"},_.E(_.U,{cond:function(){return(T==null?void 0:T())&&O().banner},
then:function(){return _.E("div",{class:y},_.E(_.R4,{data:function(){return O().banner}},{imageBannerViewModel:_.I05}))}}),_.E("div",{class:q},_.E(_.U,{cond:w,
then:function(){return _.E(_.R4,{data:function(){var KE;if(!(KE=O().animatedImage)){KE=O();if(w()){var fE=KE=Object.assign({},KE),r8=X(),nE=VGO(O()),tX=fE.image,yh=_.P(tX,Juf),Gw=yh==null?void 0:yh.avatar,KH=_.P(Gw,_.Hm);if(tX&&Gw&&KH){switch(r8){case 1:KH.avatarImageSize="AVATAR_SIZE_XL";break;case 2:KH.avatarImageSize="AVATAR_SIZE_XXL";break;default:nE<4?KH.avatarImageSize="AVATAR_SIZE_XXL":KH.avatarImageSize="AVATAR_SIZE_XXXL"}_.e("web_enable_sink_page_header_view_model")&&(_.ky(Gw,_.Hm,Object.assign({},
KH)),yh.avatar=Object.assign({},Gw),_.ky(tX,Juf,Object.assign({},yh)),fE.image=Object.assign({},tX))}}KE=KE.image}return KE}},{contentPreviewImageViewModel:function(KE){return _.E(_.Fi,{data:KE.data,
className:jQ,imageSizeConfig:k})},
decoratedAvatarViewModel:function(KE){return _.E(_.KA,{data:KE.data,className:jQ})}})}}),_.E(_.U,{cond:function(){return!!O().heroImage&&!(p()&&!k().allowFullWidth)},
then:function(){return _.E(_.R4,{data:function(){return O().heroImage}},{contentPreviewImageViewModel:function(KE){return _.E(_.Fi,{data:KE.data,
className:jQ,imageSizeConfig:k})}})}}),_.E("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.E(_.U,{cond:function(){return!!O().heroImage&&p()&&!k().allowFullWidth},
then:function(){return _.E("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.E(_.R4,{data:function(){return O().heroImage}},{contentPreviewImageViewModel:function(KE){return _.E(_.Fi,{data:KE.data,
className:jQ,imageSizeConfig:k})}}))}}),_.E(_.R4,{data:function(){return O().title}},{dynamicTextViewModel:function(KE){return _.E(Za1,{data:KE.data,
className:V})}}),_.E(_.R4,{data:function(){return O().metadata}},{contentMetadataViewModel:function(KE){return _.E(_.Arw,{data:KE.data,
layout:function(){return l()?1:0},
className:d8,isOverlay:A,useMediumText:K})}}),_.E(_.U,{cond:function(){return O().description&&!l()},
then:function(){return _.E(_.R4,{data:function(){return O().description}},{descriptionPreviewViewModel:function(KE){return _.E(Qd,{data:KE.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:K})}})}}),_.E(_.U,{cond:function(){return O().attribution&&!p()},
then:function(){return _.E(_.R4,{data:function(){return O().attribution}},{attributionViewModel:function(KE){return _.E(Zl9,{data:KE.data,
className:Qh,useMediumText:K})}})}}),_.E(_.U,{cond:function(){return O().actions&&!p()},
then:function(){return _.E(_.R4,{data:function(){return O().actions}},{flexibleActionsViewModel:function(KE){return _.E(gT,{data:KE.data,
layout:function(){return NK1(X())},
className:pE})}})}}))),_.E("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.E(_.U,{cond:function(){return O().description&&l()},
then:function(){return _.E(_.R4,{data:function(){return O().description}},{descriptionPreviewViewModel:function(KE){return _.E(Qd,{data:KE.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:A,maxLinesOverride:function(){return l()?void 0:1},
useMediumText:K})}})}}),_.E(_.U,{cond:function(){return O().attribution&&p()},
then:function(){return _.E(_.R4,{data:function(){return O().attribution}},{attributionViewModel:function(KE){return _.E(Zl9,{data:KE.data,
className:Qh,useMediumText:K})}})}}),_.E(_.U,{cond:function(){return O().actions&&p()},
then:function(){return _.E(_.R4,{data:function(){return O().actions}},{flexibleActionsViewModel:function(KE){return _.E(gT,{data:KE.data,
layout:function(){return NK1(X())},
className:pE})}})}})),_.E("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.E(_.R4,{data:function(){return O().bottomMetadataFlexibleContainer}},{flexibleContainer:function(KE){return _.E(SHz,{data:KE.data,
isOverlay:A})}})))}}))},"id");
_.mtf.idomCompat=!0;_.O1(_.J1(function(W){var O=_.S(_.wu(!1,void 0,"vVRl3b")),b=O.next().value,T=O.next().value;return _.E("yt-official-card-view-model",{class:_.YS("ytOfficialCardViewModelHost",W.className),style:_.eE({"background-color":function(){var L,h=VvE((L=W.data())==null?void 0:L.backgroundColor);return h?_.C_(h):void 0}})},_.E(_.R4,{data:function(){return W.data().header}},{pageHeaderViewModel:function(L){return _.E(_.mtf,{data:L.data,
noPadding:!0})}}),_.E(_.R4,{data:function(){return W.data().contents}},{horizontalShelfViewModel:function(L){return _.E(_.oF,{data:L.data,
ensureMarginTop:!0})}}),_.E(_.U,{cond:b,
then:function(){return _.E("div",{class:"ytOfficialCardViewModelExpandedContent"},_.E(_.R4,{data:function(){return W.data().expandedContents}},{horizontalShelfViewModel:function(L){return _.E(_.oF,{data:L.data,
sizing:"MINI"})}}),_.E("div",{class:"ytOfficialCardViewModelCollapseButton"},_.E(_.R4,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
onClick:function(){T(!b())}})}})))},
else:function(){return _.E("div",{class:"ytOfficialCardViewModelExpandButton"},_.E(_.R4,{data:function(){return W.data().expandButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
onClick:function(){T(!b())}})}}))}}))},"jd"),"yt-official-card-view-model",{props:{data:_.te,
className:_.te}});var MGX=_.lw({buttonViewModel:_.DO});_.bO(uxq);_.Z3(uxq,"ytw-search-friction-view-model",{propNames:["data"]});_.kt=_.J1(function(W){var O=_.uy(),b,T=(b=_.iq().resolve(_.OT(_.t4)))==null?void 0:b();_.kb(function(){var L=O.value;var h=new P1f,Z=new Map(h.JSC$7305_sanitizerTable.globalAttributePolicies);Z.set("style",{policyAction:4});h.JSC$7305_sanitizerTable=new w7(h.JSC$7305_sanitizerTable.allowedElements,h.JSC$7305_sanitizerTable.elementPolicies,h.JSC$7305_sanitizerTable.allowedGlobalAttributes,Z,h.JSC$7305_sanitizerTable.globallyAllowedAttributePrefixes);var a=["data-time"];if(a===void 0)Z=new Set(h.JSC$7305_sanitizerTable.globallyAllowedAttributePrefixes),
Z.add("data-"),h.JSC$7305_sanitizerTable=new w7(h.JSC$7305_sanitizerTable.allowedElements,h.JSC$7305_sanitizerTable.elementPolicies,h.JSC$7305_sanitizerTable.allowedGlobalAttributes,h.JSC$7305_sanitizerTable.globalAttributePolicies,Z);else{Z=new Set(h.JSC$7305_sanitizerTable.allowedGlobalAttributes);a=_.S(a);for(var m=a.next();!m.done;m=a.next()){m=m.value;if(m.indexOf("data-")!==0)throw Error("qa`"+m);Z.add(m)}h.JSC$7305_sanitizerTable=new w7(h.JSC$7305_sanitizerTable.allowedElements,h.JSC$7305_sanitizerTable.elementPolicies,
Z,h.JSC$7305_sanitizerTable.globalAttributePolicies,h.JSC$7305_sanitizerTable.globallyAllowedAttributePrefixes)}Z=new Set(h.JSC$7305_sanitizerTable.allowedGlobalAttributes);Z.add("class");h.JSC$7305_sanitizerTable=new w7(h.JSC$7305_sanitizerTable.allowedElements,h.JSC$7305_sanitizerTable.elementPolicies,Z,h.JSC$7305_sanitizerTable.globalAttributePolicies,h.JSC$7305_sanitizerTable.globallyAllowedAttributePrefixes);_.Gb(L,_.AXf(h.build(),cJ2(W.text())));FLQ(O.value)});
b={};return _.E("div",null,_.E("markdown-div",{class:_.YS("ytwMarkdownDivHost",(b.ytwMarkdownDivDark=T,b.ytwMarkdownDivHostSmall=function(){var L;return((L=W.isSmallText)==null?void 0:L.call(W))||!1},b)),
el:O}))},"kd");
_.kt.idomCompat=!0;var YHz=_.J1(function(W){var O=W.imageData;var b=_.Me(W.isInList,!1),T=function(){return b()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.E("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.E(_.U,{cond:function(){return O().image},
then:function(L){return _.E(_.uj,{data:L,alt:function(){return T().alt},
contentMode:function(){return T().contentMode},
targetWidth:function(){return T().targetWidth},
targetHeight:function(){return T().targetHeight},
className:function(){return T().className}})}}),_.E("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.E("div",{class:_.YS("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.E(_.uw,{text:function(){return O().title}})),_.E(_.pv,{each:function(){var L;
return(L=O().description)!=null?L:[]}},function(L){return _.E("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.E(sW,{content:L}))})))},"ld"),En$=_.J1(function(W){var O=W.list;
var b=function(){var T;return(T=O().items)!=null?T:[]};
return _.E("div",{class:"ytwGenAiRichTextViewModelListContent"},_.E(_.U,{cond:function(){return O().title},
then:function(T){return _.E("div",{class:_.YS("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.E(_.uw,{text:T}))}}),_.E(_.U,{cond:function(){return O().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.E("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.E(_.pv,{each:b},function(T){return _.E("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.E(sW,{content:T,isInList:!0}))}))}}),_.E(_.U,{cond:function(){return O().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.E("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.E(_.pv,{each:b},function(T){return _.E("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.E(sW,{content:T,isInList:!0}))}))}}),_.E(_.U,{cond:function(){return O().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.E("div",{class:"ytwGenAiRichTextViewModelImageList"},_.E(_.pv,{each:b},function(T){return _.E("div",{class:"ytwGenAiRichTextViewModelListItem"},_.E(sW,{content:T,isInList:!0}))}))}}))},"md"),wIS=_.J1(function(W){var O=W.table;
return _.E("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.E("thead",null,_.E("tr",null,_.E(_.pv,{each:function(){var b,T;return(T=(b=O().header)==null?void 0:b.cells)!=null?T:[]}},function(b){return _.E("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.E(_.pv,{each:function(){return b.contents}},function(T){return _.E(sW,{content:T})}))}))),_.E("tbody",null,_.E(_.pv,{each:function(){var b;
return(b=O().rows)!=null?b:[]}},function(b){return _.E("tr",null,_.E(_.pv,{each:function(){return b.cells}},function(T){return _.E("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.E(_.pv,{each:function(){return T.contents}},function(L){return _.E(sW,{content:L})}))}))})))},"nd"),sW=_.J1(function(W){var O=W.content;
var b=_.Me(W.isInList,!1),T=function(){var L,h;return(h=(L=O().contentBlock)==null?void 0:L.contents)!=null?h:[]};
return _.E("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.E(_.U,{cond:function(){return O().text},
then:function(L){return _.E(_.uw,{className:"ytwGenAiRichTextViewModelText",text:L})}}),_.E(_.U,{cond:function(){return O().image},
then:function(L){return _.E(YHz,{imageData:L,isInList:b})}}),_.E(_.U,{cond:function(){return O().list},
then:function(L){return _.E(En$,{list:L})}}),_.E(_.U,{cond:function(){return O().contentBlock},
then:function(){return _.E("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.E(_.pv,{each:T},function(L){return _.E(sW,{content:L,isInList:!1})}))}}),_.E(_.U,{cond:function(){return O().table},
then:function(L){return _.E(wIS,{table:L})}}))},"od"),AZN=_.J1(function(W){var O={};
O=_.wd("ytwGenAiRichTextViewModelHost",(O.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.dO("search_overview_link_style")),O));return _.E("gen-ai-rich-text-view-model",{class:O},_.E(sW,{content:function(){return W.data().content}}))},"pd");_.bO(yJX);_.bO(r6);_.XIN=_.J1(function(W){var O=W.data;var b=function(){var k;return((k=O().loadingUi)!=null?k:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},T=function(){return O().isLoading&&(b()==="UNSPECIFIED"||b()==="GHOST_CARD")},L=function(){return!O().isLoading},h=function(){return!!O().content&&!O().contents},Z=function(){return!!O().contents},a=function(){return!!O().nextQueryButtons},m=function(){return O().isLoading&&b()==="INVISIBLE"},w=function(){var k,r;
return(r=(k=O().headerIcon)==null?void 0:k.iconType)!=null?r:""},A=function(){var k;
return(k=O().content)!=null?k:""},X=function(){return!!O().sourcesSection},l,p=!((l=_.iq().resolve(_.OT(_.t4)))==null||!l()),K=_.Pj(function(){var k=[],r=O().contents;
if(r)for(var q=0;q<r.length;q++){var f=_.P(r&&r[q],Zrn);f&&k.push(f)}return k},void 0,"ycU97e");
_.kX(function(){O().isLoading||_.Bg("so_re",void 0,"search_overview_answer")});
return _.E("ytd-overview-answer-view-model",{class:function(){var k={};k=(k.ytdOverviewAnswerViewModelHost=!0,k.ytdOverviewAnswerViewModelDarkBackground=p&&!m(),k.ytdOverviewAnswerViewModelLightBackground=!p&&!m(),k);return _.wd(k)}},_.E(_.U,{cond:function(){return!m()},
then:function(){return _.E(_.TT,null,_.E("h2",null,_.E("div",{class:"ytdOverviewAnswerViewModelHeader"},_.E(_.U,{cond:w,then:function(k){return _.E("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.E(_.Ps,{icon:k}))}}),_.E("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.E("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return O().headerText}),_.E("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.E(_.uw,{text:function(){return O().headerSubtext}}))))),_.E(_.U,{cond:T,
then:function(){return yJX()}}),_.E(_.U,{cond:L,
then:function(){return _.E(_.TT,null,_.E(_.U,{cond:h,then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelText"},_.E(_.kt,{text:A,isSmallText:!0}))}}),_.E(_.U,{cond:Z,
then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelRichText"},_.E(_.pv,{each:K},function(k){return _.E(AZN,{data:k})}))}}),_.E(_.U,{cond:a,
then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.E(_.R4,{data:function(){return O().nextQueryButtons}},{buttonViewModel:function(k){return _.E(_.DO,{data:k.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.oF}))}}),_.E("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.E("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.E(_.U,{cond:function(){return!!_.P(O().likeButtonViewModel,_.QU)&&!!_.P(O().dislikeButtonViewModel,_.kz)},
then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.E(_.QJ,{data:function(){return _.P(O().likeButtonViewModel,_.QU)},
disableIconAnimation:!0}),_.E(_.oC,{data:function(){return _.P(O().dislikeButtonViewModel,_.kz)}}))}})),_.E(_.U,{cond:function(){var k;
return(k=O().sourcesSection)==null?void 0:k.headerText},
then:function(k){return _.E("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.E(_.uw,{text:k}))}})),_.E(_.U,{cond:X,
then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelSources"},_.E(_.R4,{data:function(){var k;return(k=O().sourcesSection)==null?void 0:k.sourcesShelf}},{buttonViewModel:_.DO,
horizontalShelfViewModel:function(k){return _.E(_.oF,{data:k.data,includeMargin:!0,hasPeek:!0})}}))}}),_.E(_.U,{cond:function(){return O().disclaimerText},
then:function(){return _.E("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.E(_.uw,{text:function(){return O().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"qd");var UtL=_.J1(function(W){var O=W.data;var b=W.active;var T=_.uy();_.kb(function(){var L,h,Z,a=((L=_.iq().resolve(_.OT(_.t4)))==null?0:L())?(h=O())==null?void 0:h.darkThemeColorPalette:(Z=O())==null?void 0:Z.lightThemeColorPalette;a&&(a.additiveBackground&&T.value.style.setProperty("--timestamp-active-background-color",_.C_(a.additiveBackground)),a.textSecondary&&T.value.style.setProperty("--timestamp-active-color",_.zF(a.textSecondary)))},"KHcbwb");
W={};return _.E("transcript-segment-view-model",{class:_.YS("ytwTranscriptSegmentViewModelHost",(W.ytwTranscriptSegmentViewModelHostActive=b,W.ytwTranscriptSegmentViewModelHostModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),W)),el:T},_.E(_.U,{cond:function(){var L;return(L=O())==null?void 0:L.timestamp},
then:function(L){var h={};return _.E("div",{class:_.YS("ytwTranscriptSegmentViewModelTimestamp",(h.ytwTranscriptSegmentViewModelTimestampActive=b,h))},L)}}),_.E(_.uw,{text:function(){var L,h,Z;
return(Z=(L=O())==null?void 0:L.attributedText)!=null?Z:{content:(h=O())==null?void 0:h.simpleText}},
linkInheritColor:!0}))},"rd");var l0U=_.J1(function(W){var O=W.data;return _.E("div",{class:"yt-video-attributes-section-view-model__header"},_.E("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return O().headerTitle}),_.E(_.U,{cond:function(){return O().headerSubtitle},
then:function(){return _.E("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return O().headerSubtitle})}}))},"sd"),exf=_.J1(function(W){function O(K){return Math.max(Math.min(K,0),w()-a())}
var b=W.data;var T=_.uy(),L=_.uy();W=_.S(_.wu(0,void 0,"ucDlDf"));var h=W.next().value,Z=W.next().value,a=h;W=_.S(_.wu(0,void 0,"lHzSub"));h=W.next().value;var m=W.next().value,w=h;W=_.S(_.wu(0,void 0,"Q8fDIe"));var A=W.next().value,X=W.next().value;_.kX(function(){var K=function(){Z(L.value.scrollWidth);m(T.value.clientWidth)};
K();if(window.ResizeObserver){var k=new ResizeObserver(K);k.observe(T.value);_.so(function(){k.disconnect()})}});
var l=function(){X(O(A()+w()))},p=function(){X(O(A()-w()))};
return _.E("yt-video-attributes-section-view-model",null,_.E("div",{class:"yt-video-attributes-section-view-model"},_.E(_.U,{cond:function(){return b().headerTitle},
then:function(){return _.E(l0U,{data:b})}}),_.E("div",{class:_.YS("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:T},_.E("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.eE({transform:function(){var K=A();_.Cv("HTML_DIR")==="rtl"&&(K*=-1);return"translateX("+K+"px)"}}),
el:L},_.E(_.R4,{data:function(){return b().videoAttributeViewModels}},{videoAttributeViewModel:Qcw}))),_.E(_.R4,{data:function(){return b().footerButton}},{buttonViewModel:function(K){return _.E(_.DO,{data:K.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.E(_.U,{cond:function(){return A()<0&&b().previousButton},
then:function(){return _.E("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.E(_.R4,{data:function(){return b().previousButton}},{buttonViewModel:function(K){return _.E(_.DO,{data:K.data,
onClick:l})}}))}}),_.E(_.U,{cond:function(){return A()>w()-a()&&b().nextButton},
then:function(){return _.E("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.E(_.R4,{data:function(){return b().nextButton}},{buttonViewModel:function(K){return _.E(_.DO,{data:K.data,
onClick:p})}}))}})))},"td");
exf.idomCompat=!0;var P5f=_.J1(function(W){var O=W.data;var b=W.active;var T={},L={};return _.E("timeline-item-view-model",{class:_.YS("ytwTimelineItemViewModelHost",(T.ytwTimelineItemViewModelHostChapterChild=W.chapterChild,T.ytwTimelineItemViewModelModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),T))},_.E("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.E("div",{class:_.YS("ytwTimelineItemViewModelTimestamp",(L.ytwTimelineItemViewModelTimestampActive=
b,L))},function(){return O().timestamp})),_.E("div",{class:"ytwTimelineItemViewModelContentItems"},_.E(_.R4,{data:function(){return O().contentItems}},{transcriptSegmentViewModel:function(h){return _.E(UtL,{data:h.data,
active:b})},
videoAttributesSectionViewModel:exf})))},"ud");var pI$=_.J1(function(W){var O=W.data;W={};return _.E("timeline-chapter-view-model",{class:_.YS("ytwTimelineChapterViewModelHost")},_.E("div",{class:_.YS("ytwTimelineChapterViewModelTitle",(W.ytwTimelineChapterViewModelModern=_.e("enable_timeline_view_modern_transcript")||_.e("enable_timeline_view_modern_transcript_fe"),W))},function(){return O().title}),_.E(_.R4,{data:function(){return O().contents}},{timelineItemViewModel:function(b){return _.E(P5f,{data:b.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(b){return _.E(exf,{data:b.data})}}))},"vd");var Rxq=_.J1(function(W){var O=W.data;var b=_.uy(),T=_.wt(_.UDT,function(){var h;return(h=O().markersEngagementPanelSyncEntityKey)!=null?h:""}),L=function(){var h;
return((h=T())==null?void 0:h.activeItemIndex)===O().index};
W=_.XL(function(h){var Z,a,m,w,A;return _.I(function(X){if(X.nextAddress==1)return h.stopPropagation(),_.JwP(_.qL(h),b.value,["A".toString(),"BUTTON".toString()])?X.return():(Z=_.xy(O().onTap))?_.Y(X,_.Sk(),2):X.return();a=X.yieldResult;w=(m=_.P(Z,_.V3))==null?void 0:m.startTimeSeconds;w===void 0||(A=a)!=null&&A.seekTo(w,!0);_.aD(X)})});
return _.E("macro-markers-panel-item-view-model",{class:_.YS("ytwMacroMarkersPanelItemViewModelHost",{"is-active":L}),el:b,"on:click":W,tabindex:0},_.E(_.R4,{data:function(){var h;return(h=O())==null?void 0:h.item}},{timelineChapterViewModel:function(h){return _.E(pI$,{data:h.data,
active:L})},
timelineItemViewModel:function(h){return _.E(P5f,{data:h.data,active:L})},
videoAttributeViewModel:Qcw}))},"wd");
Rxq.idomCompat=!0;_.O1(Rxq,"macro-markers-panel-item-view-model",{props:{data:_.te}});_.O1(exf,"yt-video-attributes-section-view-model",{props:{data:_.te}});var Ktf=_.J1(function(W){var O=function(){var b,T,L;return(L=(b=W.data().leadingLogoAccessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)!=null?L:""};
return _.E("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.E(_.U,{cond:function(){return W.data().leadingLogo},
then:function(b){return _.E(_.uj,{className:"ytwFantasySectionHeaderViewModelLogo",data:b,alt:O})}}),_.E("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.E(_.uw,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return W.data().title}}),_.E(_.uw,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return W.data().subtitle}})),_.E(_.R4,{data:function(){return W.data().trailingButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"xd");var vnL=_.J1(function(W){var O={};O=_.YS("ytwFantasyTeamViewModelHost",(O.ytwFantasyTeamViewModelCompact=function(){var L;return!((L=W.compact)==null||!L.call(W))},O.ytwFantasyTeamViewModelUser=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},O.ytwFantasyTeamViewModelOpponent=function(){return W.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},O));
var b=function(){var L,h,Z;return(Z=(L=W.data().teamLogoAccessibility)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label)!=null?Z:""},T=_.wt(eG1,function(){return W.data().teamEntityKey});
return _.E("ytw-fantasy-team-view-model",{class:O},_.E(_.U,{cond:function(){return W.data().teamLogo},
then:function(L){return _.E(_.uj,{className:"ytwFantasyTeamViewModelLogo",data:L,alt:b})}}),_.E("div",{class:"ytwFantasyTeamViewModelMetadata"},_.E("div",{class:"ytwFantasyTeamViewModelHeader"},_.E(_.uw,{className:"ytwFantasyTeamViewModelScore",
text:function(){var L;return(L=T())==null?void 0:L.score}}),_.E(_.Ps,{icon:function(){var L;
return(L=T())==null?void 0:L.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.E(_.uw,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var L;return(L=T())==null?void 0:L.projectedScore}})),_.E(_.uw,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return W.data().primaryText}}),_.E(_.uw,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return W.data().secondaryText}}),_.E(_.uw,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return W.data().tertiaryText}})),_.E(_.uw,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var L;return(L=T())==null?void 0:L.score}}))},"yd");_.O1(_.J1(function(W){return _.E("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.E("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.E(_.R4,{data:function(){return W.data().summaryHeader}},{fantasySectionHeaderViewModel:Ktf})),_.E(_.R4,{data:function(){return W.data().userTeam}},{fantasyTeamViewModel:vnL}),_.E(_.R4,{data:function(){return W.data().opponentTeam}},{fantasyTeamViewModel:vnL}))},"zd"),"fantasy-league-summary-view-model",{props:{data:_.te}});var gnN=_.J1(function(W){var O=_.um(W,{shape:{},useCustomTabRenderable:!1}),b=O.shape;O=O.useCustomTabRenderable;var T=W.customTabRenderable,L=function(){return b().disabled},h=function(){return b().selected},Z=function(){return b().title},a=function(){return b().icon},m=_.uy();
W=_.XL(function(X){var l;if(!L()&&((l=b().aTagConfig)==null?0:l.onclick))b().aTagConfig.onclick(X);return!1});
var w=_.XL(function(X){if(X.key==="Enter"||X.key==="ArrowUp"||X.key==="ArrowDown")X.preventDefault(),m.value.click();return!1}),A={};
return _.E("yt-tab-shape",{class:_.YS("yt-tab-shape-wiz",function(){return b().className},(A["yt-tab-shape-wiz__tab--last-tab"]=function(){return b().isLastTab},A["yt-tab-shape-wiz--host-disabled"]=L,A["yt-tab-shape-wiz--host-clickable"]=!T,A)),
role:T?void 0:"tab","aria-selected":h!=null?h:!1,"aria-disabled":L,tabindex:T?void 0:0,"on:click":W,"on:keydown":w,el:m,"tab-identifier":function(){return b().identifier},
"tab-title":Z},_.E(_.U,{cond:O,then:function(){return T()},
else:function(){var X={},l={};return _.E(_.TT,null,_.E("div",{class:_.YS("yt-tab-shape-wiz__tab",(X["yt-tab-shape-wiz__tab--tab-selected"]=h,X))},_.E(_.U,{cond:a,then:function(p){return _.E(_.Ps,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return p().iconType}})}}),Z),_.E("div",{class:_.YS("yt-tab-shape-wiz__tab-bar",(l["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=h,l))}))}}))},"Ad");
gnN.idomCompat={callbacks:{customTabRenderable:!0}};_.QSf=_.J1(function(W){var O=W.shape;W=_.S(_.wu(48,void 0,"r9IBlb"));var b=W.next().value,T=W.next().value;W=_.S(_.wu(0,void 0,"Bd7rmd"));var L=W.next().value,h=W.next().value,Z=function(){return O().tabs},a=_.uy(),m=function(){var w,A;
return(A=(w=Z())==null?void 0:w.findIndex(function(X){return X.selected}))!=null?A:-1};
_.kX(function(){var w=a.value.querySelectorAll("yt-tab-shape"),A=m()>-1?w[m()]:void 0;_.sF.addJob(function(){T((A==null?void 0:A.getBoundingClientRect().width)||0)},8,0)});
_.kb(function(){var w=m(),A=_.sF.addJob(function(){var X,l=((X=a.value)==null?void 0:X.querySelectorAll("yt-tab-shape"))||[],p;T(((p=w>-1?l[w]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(p=X=0;p<w;p++)X+=l[p].offsetWidth+24;_.Cv("HTML_DIR")==="rtl"&&(X=-X);h(X)},8,0);
_.so(function(){_.sF.cancelJob(A)})});
W={};return _.E("yt-tab-group-shape",{class:_.YS("yt-tab-group-shape-wiz",(W["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return O().isOverflowHidden},W)),
el:a},_.E(_.U,{cond:Z,then:function(w){return _.E(_.TT,null,_.E("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.E(_.pv,{each:w},function(A,X){return _.E(gnN,{shape:function(){return Object.assign({},A,{isLastTab:X()===w().length-1})},
customTabRenderable:A.customTabRenderable,useCustomTabRenderable:!!A.customTabRenderable})})),_.E(on1,{width:b,
sliderOffset:L}))}}))},"Bd");
_.QSf.idomCompat=!0;var on1=_.J1(function(W){var O=_.Me(W.sliderOffset,0),b=W.width;return _.E("div",{class:"yt-tab-group-shape-wiz__slider",style:_.eE({width:function(){return b()+"px"},
transform:function(){return"translateX("+O()+"px)"}})})},"Cd");var kkv=_.J1(function(W){var O=function(){var h,Z,a;return(a=(h=W.data().playerLogoAccessibility)==null?void 0:(Z=h.accessibilityData)==null?void 0:Z.label)!=null?a:""},b=_.wt(P9Q,function(){return W.data().playerEntityKey}),T={};
T=_.YS("ytwFantasyPlayerViewModelHost",(T.ytwFantasyPlayerViewModelPlaying=function(){var h;return!((h=b())==null||!h.isPlayerPlaying)},T.ytwFantasyPlayerViewModelOnField=function(){var h;
return((h=b())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},T.ytwFantasyPlayerViewModelRedZone=function(){var h;
return((h=b())==null?void 0:h.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},T));
var L=function(){var h,Z,a,m=((h=_.iq().resolve(_.OT(_.t4)))==null?0:h())?(Z=W.data().playerLogoBackgroundColor)==null?void 0:Z.darkTheme:(a=W.data().playerLogoBackgroundColor)==null?void 0:a.lightTheme;return m===void 0?"":_.C_(m)};
return _.E("ytw-fantasy-player-view-model",{class:T},_.E(_.U,{cond:function(){return W.data().playerLogo},
then:function(h){return _.E("div",{class:"ytwFantasyPlayerViewModelLogo"},_.E("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.E(_.uj,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.eE({"background-color":L}),data:h,alt:O})),_.E("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.E(_.Ps,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.E("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.E("div",{class:"ytwFantasyPlayerViewModelHeader"},_.E(_.uw,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var h;return(h=W.data())==null?void 0:h.playerNameText}}),_.E(_.uw,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var h;return(h=W.data())==null?void 0:h.playerDescriptionText}})),_.E("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.E(_.uw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=b())==null?void 0:h.gamePeriodText}}),_.E(_.uw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=W.data())==null?void 0:h.opponentTeamText}}),_.E(_.uw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var h;return(h=b())==null?void 0:h.gameStatusText}}),_.E(_.uw,{className:_.YS("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var h;return(h=b())==null?void 0:h.playerStatusText}})),_.E("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.E(_.uw,{text:function(){var h;
return(h=b())==null?void 0:h.playerStatsText}}))),_.E(_.uw,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var h;return(h=b())==null?void 0:h.fantasyScore}}))},"Dd");var sSv=_.J1(function(W){return _.E("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.E(_.U,{cond:function(){return W.data().players},
then:function(O){return _.E(_.R4,{data:O},{fantasyPlayerViewModel:kkv})}}))},"Ed");var BrU=_.J1(function(W){var O=_.S(_.ln(function(){var L;return(L=W.data().selectedTabIdentifierKey)!=null?L:""})),b=O.next().value,T=O.next().value;
_.oW(function(){var L;(L=W.setSelectedTabSignal)==null||L.call(W,b)});
return _.E("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.E("div",{class:"ytTabbedViewModelTabGroup"},_.E(_.QSf,{shape:function(){var L=W.data(),h=[],Z={tabs:h};if(!L.tabs)return Z;L=_.S(L.tabs);for(var a=L.next(),m={};!a.done;m={tabViewModel:void 0},a=L.next())if(m.tabViewModel=_.P(a.value,Y2n),m.tabViewModel){var w=a=void 0;h.push({aTagConfig:{onclick:function(A){return function(){var X;T((X=A.tabViewModel.tabIdentifier)!=null?X:"")}}(m)},
identifier:m.tabViewModel.tabIdentifier,selected:b()===m.tabViewModel.tabIdentifier,title:(w=(a=m.tabViewModel.title)==null?void 0:a.content)!=null?w:""})}return Z}})),_.E(_.R4,{data:function(){var L,h=_.S((L=W.data().tabs)!=null?L:[]);
for(L=h.next();!L.done;L=h.next())if((L=_.P(L.value,Y2n))&&L.tabIdentifier===b())return L.content}},{fantasyRosterViewModel:sSv}))},"Fd");_.O1(_.J1(function(W){var O=_.S(WkE()),b=O.next().value,T=O.next().value;return _.E("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.E(_.uw,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return W.data().title}}),_.E(_.U,{cond:function(){return W.data().tabbedViewModel},
then:function(L){return _.E(_.R4,{data:L},{tabbedViewModel:function(h){return _.E(BrU,{data:h.data,setSelectedTabSignal:T})}})}}),_.E(_.U,{cond:function(){var L,h=(L=_.P(W.data().tabbedViewModel,EVw))==null?void 0:L.tabs;
L=_.P(h==null?void 0:h[0],Y2n);h=_.P(h==null?void 0:h[1],Y2n);var Z=L==null?void 0:L.tabIdentifier;if(b()===Z){var a,m;if(!((a=_.P(L==null?void 0:L.content,El9))==null?0:(m=a.players)==null?0:m.length))return W.data().noUserTeamPlayersText}else{var w,A;if(!((w=_.P(h==null?void 0:h.content,El9))==null?0:(A=w.players)==null?0:A.length))return W.data().noOpponentTeamPlayersText}},
then:function(L){return _.E(_.uw,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:L})}}))},"Gd"),"ytw-fantasy-matchup-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){return _.E("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.E(_.uw,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return W.data().title}}),_.E(_.U,{cond:function(){return W.data().matchupTeamPairs},
then:function(O){return _.E(_.pv,{each:O,keyBy:"INDEX"},function(b){return _.E("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.E(_.R4,{data:function(){return[b().firstTeam,b().secondTeam]}},{fantasyTeamViewModel:function(T){return _.E(vnL,{data:T.data,
compact:!0})}}))})}}))},"Hd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=function(){var L,h,Z;return(Z=(L=W.data().userLogoAccessibility)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label)!=null?Z:""},b=function(){var L,h,Z;
return(Z=(L=W.data().opponentLogoAccessibility)==null?void 0:(h=L.accessibilityData)==null?void 0:h.label)!=null?Z:""},T=_.wt(l_2,function(){return W.data().entityKey});
return _.E("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.E("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.E(_.U,{cond:function(){return W.data().userLogo},
then:function(L){return _.E(_.uj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:O})}}),_.E("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.E(_.uw,{text:function(){return W.data().title}})),_.E(_.U,{cond:function(){return W.data().opponentLogo},
then:function(L){return _.E(_.uj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:L,alt:b})}})),_.E("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.E("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.E(_.uw,{text:function(){var L;
return(L=T())==null?void 0:L.userWinNumberLabel}})),_.E("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.E("div",{class:_.YS("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.eE({flex:function(){var L,h;return(h=(L=T())==null?void 0:L.userWinNumber)!=null?h:50}})}),_.E("div",{class:_.YS("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.eE({flex:function(){var L,h;return(h=(L=T())==null?void 0:L.opponentWinNumber)!=null?h:50}})})),_.E("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.E(_.uw,{text:function(){var L;
return(L=T())==null?void 0:L.opponentWinNumberLabel}}))))},"Id"),"fantasy-win-probability-view-model",{props:{data:_.te}});_.Bs("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var Be=function(){var W=_.n.apply(this,arguments)||this;W.darkerPanels=_.e("web_watch_darker_panels");W.commentsHidePanelButton=!1;W.isWatchGrid=!1;W.continuationShowButton=!1;W.isSearch=!1;W.isConstrainedList=!1;W.isWatch=!1;W.eligibleToSwitchToGrid=!1;W.epRestyle=!1;W.isCarouselInFeed=!0;W.topSpacingZero=!1;W.continuationIsInitialLoad=!0;W.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");W.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};W.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return W};
_.R(Be,_.n);_.d=Be.prototype;_.d.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var O;(O=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||O.forEach(function(b){b.containerType=W})}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",
errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",
expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},
learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},
reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.e("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.e("kevlar_low_priority_continuation")}}};
_.d.created=function(){this.JSC$14496_cachedViewportHeight=_.Cv("initialInnerHeight")||window.innerHeight};
_.d.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var W=_.Q(this.hostElement).querySelector("ytd-comments-header-renderer");W&&(W.hidePanelButton=this.commentsHidePanelButton)}};
_.d.onRetrieveLocation=function(W,O){this.containsComments()&&(this.firstCommentsLoaded=O.hasComments=!0)};
_.d.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.d.onLoadReloadContinuation=function(W,O){var b=this;W.stopPropagation();this.isReloading=!0;_.bX(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(T){var L=_.iq().resolve(_.k1);T=O(T);L.postData(T).then(function(h){b.onReloadContinuationData(h)})}})};
_.d.onReloadContinuationData=function(W){if(W=this.get("response.continuationContents.itemSectionContinuation",W)||this.get("response.contents.itemSectionRenderer",W)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",W)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",W))this.set("data.contents",W.contents||W.results),W.header&&this.set("data.header",W.header),this.set("data.continuations",
W.continuations||[]);this.isReloading=!1};
_.d.computeContentsClass=function(W){return W?"reloading":""};
_.d.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.d.computeSectionIdentifier=function(W){return W==null?void 0:W.sectionIdentifier};
_.d.computeFitContainer=function(W){return(W==null?void 0:W.sectionIdentifier)==="youchat-item-section"};
_.d.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.e("kevlar_disable_comments_auto_load")};
_.d.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.d.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.d.computeHasDestinationShelfRenderer=function(W){var O,b;return!!(W==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:b.destinationShelfRenderer)};
_.d.computeHasSectionGroupViewModel=function(W){var O,b;return!!(W==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:b.sectionGroupViewModel)};
_.d.computeStaticCommentsHeader=function(W){return W&&this.containsComments()};
_.d.computeEpRestyle=function(W){return _.e("web_ep_restyling")&&W&&this.containsComments()};
_.d.computeIsContinuationCommentSection=function(W){return(W==null?void 0:W.targetId)==="shorts-engagement-panel-comments-section"||(W==null?void 0:W.targetId)==="comments-section"||(W==null?void 0:W.targetId)==="engagement-panel-comments-section"};
_.d.computeSuppressPaddingDisclaimer=function(){var W,O,b,T;return!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:(T=b.productListHeaderRenderer)==null?0:T.suppressPaddingDisclaimer)};
_.d.computeHeaderStyle=function(W){switch(W==null?void 0:W.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.d.dataChanged=function(){this.firstCommentsLoaded=!1};
_.d.observeDataContentsLength=function(){var W,O;((W=this.data)==null?0:(O=W.contents)==null?0:O.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.d.onYtDismissibleItemDismissedChange=function(W){this._setItemDismissed(W.type==="yt-dismissible-item-dismissed")};
_.d.triggerContinuations=function(){for(var W=_.Q(this.hostElement).querySelector("#continuations").children,O=0;O<W.length;O++)W[O].trigger()};
_.d.triggerInitialContinuations=function(){for(var W=_.Q(this.hostElement).querySelector("#continuations").children,O=0;O<W.length;O++)W[O].triggerIfNotPreviouslyTriggered()};
_.d.handleYtItemSectionContinuation=function(W,O){var b;O&&((b=this.data)==null?void 0:b.sectionIdentifier)!==O||(this.set("data.continuations",[W]),this.triggerContinuations())};
_.d.handleYtItemSectionReplace=function(W,O){var b;O&&((b=this.data)==null?void 0:b.sectionIdentifier)!==O||(this.set("data.contents",W),this.set("data.continuations",[]))};
_.d.computeUseHeightHack=function(W){return W&&!_.e("kevlar_disable_height_hack")};
_.d.computeTopSpacingZero=function(W){return W};
_.d.continuationShowButtonChanged=function(){var W=_.Q(this.hostElement).querySelector("ytd-continuation-item-renderer");W&&(W.showButton=this.continuationShowButton)};
_.d.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("data-changed",this.data))};
_.Jq.Object.defineProperties(Be.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.e("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:b.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T,L,h,Z;return!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:(T=b.shelfRenderer)==null?0:(L=T.content)==null?0:(h=L.gridRenderer)==null?0:(Z=h.targetId)==null?0:Z.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:b.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O[0])==null?0:b.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.dO("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.e("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.e("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14496_cachedViewportHeight-130)/150)},
set:function(){}}});
Be.prototype.dataChangedForBinding=Be.prototype.dataChangedForBinding;Be.prototype.continuationShowButtonChanged=Be.prototype.continuationShowButtonChanged;Be.prototype.onYtDismissibleItemDismissedChange=Be.prototype.onYtDismissibleItemDismissedChange;Be.prototype.observeDataContentsLength=Be.prototype.observeDataContentsLength;Be.prototype.dataChanged=Be.prototype.dataChanged;Be.prototype.onServiceRequestCompleted=Be.prototype.onServiceRequestCompleted;Be.prototype.onLoadReloadContinuation=Be.prototype.onLoadReloadContinuation;
Be.prototype.onRetrieveLocation=Be.prototype.onRetrieveLocation;Be.prototype.commentsHidePanelButtonChanged=Be.prototype.commentsHidePanelButtonChanged;Be.prototype.updateLockupContainerTypes=Be.prototype.updateLockupContainerTypes;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Be.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Be.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],Be.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],Be.prototype,"ytNextContinuationBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],Be.prototype,"ytContinuationHandlerBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Be.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Be.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Be.prototype,"darkerPanels",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],Be.prototype,"engagementPanel",void 0);
_.t([_.C(),_.N("design:type",Object)],Be.prototype,"commentsHidePanelButton",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"isWatchGrid",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"continuationShowButton",void 0);_.t([_.C({computed:"computeIsContinuationCommentSection(data)"}),_.N("design:type",Boolean)],Be.prototype,"continuationIsCommentsSection",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],Be.prototype,"autoFill",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Be.prototype,"continuationDisablePrescanVisibility",void 0);_.t([_.C(),_.N("design:type",Boolean)],Be.prototype,"isReloading",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"isSearch",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"isConstrainedList",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"isWatch",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"eligibleToSwitchToGrid",void 0);
_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],Be.prototype,"isGridViewEnabled",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Object)],Be.prototype,"epRestyle",void 0);_.t([_.x("isWatch"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"hideShortsShelfHeader",null);
_.t([_.x("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Be.prototype,"thumbnailWidth",null);_.t([_.x("isSearch","isWatch"),_.N("design:type",String),_.N("design:paramtypes",[])],Be.prototype,"sizing",null);_.t([_.x("isWatch","isGridViewEnabled","data"),_.C({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],Be.prototype,"lockupContainerType",null);
_.t([_.m5("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],Be.prototype,"updateLockupContainerTypes",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],Be.prototype,"pageSubtype",void 0);_.t([_.C({computed:"computeContainerWidth()"}),_.N("design:type",Number)],Be.prototype,"containerWidth",void 0);_.t([_.C(),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"isPlaylist",null);
_.t([_.C(),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"isClipList",null);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"isCarouselInFeed",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"isPlaylistVideoContainer",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"isSearchFrictionPage",null);
_.t([_.C({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.N("design:type",Boolean)],Be.prototype,"useHeightHack",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.N("design:type",Object)],Be.prototype,"topSpacingZero",void 0);_.t([_.C({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.N("design:type",Boolean)],Be.prototype,"showButton",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Be.prototype,"firstCommentsLoaded",void 0);_.t([_.C(),_.N("design:type",Object)],Be.prototype,"continuationIsInitialLoad",void 0);_.t([_.C(),_.N("design:type",Boolean)],Be.prototype,"isSearchDova",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],Be.prototype,"itemDismissed",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.N("design:type",String)],Be.prototype,"sectionIdentifier",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.N("design:type",String)],Be.prototype,"fitContainer",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.N("design:type",Boolean)],Be.prototype,"hasDestinationShelfRenderer",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.N("design:type",Boolean)],Be.prototype,"staticCommentsHeader",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Be.prototype,"enableSqueezebackPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Be.prototype,"enableAnchoredPanel",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.N("design:type",Boolean)],Be.prototype,"hasSectionGroupViewModel",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.N("design:type",Boolean)],Be.prototype,"suppressDisclaimerSeparator",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.N("design:type",String)],Be.prototype,"headerStyle",void 0);_.t([_.x("isSearch"),_.N("design:type",Object),_.N("design:paramtypes",[])],Be.prototype,"lockupExperiments",null);
_.t([_.x("isSearch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Be.prototype,"typographyBump",null);_.t([_.El("#header"),_.N("design:type",HTMLElement)],Be.prototype,"header",void 0);_.t([_.m5("commentsHidePanelButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"commentsHidePanelButtonChanged",null);
_.t([_.ai("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],Be.prototype,"onRetrieveLocation",null);_.t([_.ai("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Function]),_.N("design:returntype")],Be.prototype,"onLoadReloadContinuation",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"onServiceRequestCompleted",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"dataChanged",null);_.t([_.Ul("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"observeDataContentsLength",null);
_.t([_.ai("yt-dismissible-item-dismissed"),_.ai("yt-dismissible-item-undismissed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Be.prototype,"onYtDismissibleItemDismissedChange",null);_.t([_.m5("continuationShowButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"continuationShowButtonChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Be.prototype,"dataChangedForBinding",null);Be=_.t([_.G({is:"ytd-item-section-renderer",disableElementRegistration:!0})],Be);
_.H(Be,"ytd-item-section-renderer",function(){if(Wd9!==void 0)return Wd9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Wd9=W},{mode:1});var rZU;var TRE=_.VV(_.EO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var OxX={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var Dt7={},jtP=(Dt7[0]={title:_.iv(_.EO("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:WS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Dt7[1]={title:_.iv(_.EO("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:WS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Dt7);_.Bs("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var rV=function(){var W=_.n.apply(this,arguments)||this;W.allVideosCount=0;W.allPlaylistCount=0;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.areAllSmartDownloadsDeleted=!1;W.smartDownloadsCompleted=!1;return W};
_.R(rV,_.n);rV.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
rV.prototype.attached=function(){this.downloadsToRenderChanged()};
rV.prototype.detached=function(){this.set("renderableData",{})};
rV.prototype.downloadsToRenderChanged=function(){var W=_.uv().getState().entities,O=_.vS(W),b=_.e("kevlar_playlist_dl_page_killswitch")?dNO(W):_.gm(W),T=_.iN1(W),L=_.eK(O);W=_.oJ(W);this.set("renderableData",dOh(b,O,T,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,L,W))};
rV.prototype.downloadsToRenderChanged=rV.prototype.downloadsToRenderChanged;_.t([_.D(_.sh),_.N("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],rV.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],rV.prototype,"renderableData",void 0);_.t([_.C({selector:_.lmQ}),_.N("design:type",Object)],rV.prototype,"allVideosCount",void 0);_.t([_.C({selector:Hkq}),_.N("design:type",Object)],rV.prototype,"allPlaylistCount",void 0);_.t([_.C({selector:_.gVO}),_.N("design:type",Object)],rV.prototype,"shouldRenderDownloadsBanner",void 0);_.t([_.C({selector:_.oVT}),_.N("design:type",Object)],rV.prototype,"hasOptedIntoSmartDownloads",void 0);
_.t([_.C({selector:_.QPX}),_.N("design:type",Object)],rV.prototype,"areAllSmartDownloadsDeleted",void 0);_.t([_.C({selector:k38}),_.N("design:type",Object)],rV.prototype,"smartDownloadsCompleted",void 0);_.t([_.Ul("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rV.prototype,"downloadsToRenderChanged",null);
rV=_.t([_.G({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],rV);
_.H(rV,"ytd-offline-item-section-renderer",function(){if(rZU!==void 0)return rZU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return rZU=W},
{mode:1});var xtL;var zxn;var DK=function(){return _.n.apply(this,arguments)||this};
_.R(DK,_.n);
DK.prototype.onDataChanged=function(){if(this.JSC$14523_lastData){var W=this.getFilterClass(this.JSC$14523_lastData.status);W&&this.hostElement.classList.remove(W)}var O;(W=this.getFilterClass((O=this.data)==null?void 0:O.status))&&this.hostElement.classList.add(W);W==="selected"?_.Q(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Q(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");W==="disabled"?_.Q(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Q(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14523_lastData=this.data};
DK.prototype.getFilterClass=function(W){switch(W){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
DK.prototype.onDataChanged=DK.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],DK.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DK.prototype,"onDataChanged",null);DK=_.t([_.G({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],DK);
_.H(DK,"ytd-search-filter-renderer",function(){if(zxn!==void 0)return zxn;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return zxn=W},{mode:_.Lb("kevlar_poly_si_batch_j075")?1:2});var xt=function(){return _.n.apply(this,arguments)||this};
_.R(xt,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xt.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xt.prototype,"data",void 0);xt=_.t([_.G({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],xt);
_.H(xt,"ytd-search-filter-group-renderer",function(){if(xtL!==void 0)return xtL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return xtL=W},{mode:_.Lb("kevlar_poly_si_batch_j075")?1:2});var C51;var zI=function(){return _.n.apply(this,arguments)||this};
_.R(zI,_.n);zI.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Lg());this.isCollapsed=!this.isCollapsed};
zI.prototype.navigateToAboutTheseResultsPage=function(){var W=Av("https://www.youtube.com/howyoutubeworks/product-features/search/");W?_.BD(window,W,"_blank"):_.nv(Error("Qh"))};
zI.prototype.dataChanged=function(){this.isCollapsed=!0};
zI.prototype.computeShowBottomBorder=function(){var W,O,b;return!!((W=this.data)==null?0:(O=W.button)==null?0:O.toggleButtonRenderer)||!((b=this.data)==null||!b.aboutTheseResultsButton)};
zI.prototype.dataChanged=zI.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zI.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.N("design:type",Boolean)],zI.prototype,"showBottomBorder",void 0);_.t([_.C(),_.N("design:type",Boolean)],zI.prototype,"renderCollapsibleMenu",void 0);
_.t([_.C(),_.N("design:type",Boolean)],zI.prototype,"isCollapsed",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zI.prototype,"dataChanged",null);zI=_.t([_.G({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],zI);
_.H(zI,"ytd-search-sub-menu-renderer",function(){if(C51!==void 0)return C51;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return C51=W},{mode:1});var qHS;var nnS=new _.MV("SECTION_LIST_RENDERER_TOKEN");var f0L;var C8=function(){return _.n.apply(this,arguments)||this};
_.R(C8,_.n);C8.prototype.computeStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],C8.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],C8.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],C8.prototype,"headerStyle",void 0);C8=_.t([_.G({is:"ytd-text-header-renderer",disableElementRegistration:!0})],C8);
_.H(C8,"ytd-text-header-renderer",function(){if(f0L!==void 0)return f0L;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return f0L=W},{mode:1});var Gkz;var q3=function(){return _.n.apply(this,arguments)||this};
_.R(q3,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],q3.prototype,"data",void 0);q3=_.t([_.G({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],q3);
_.H(q3,"ytd-minor-moment-header-renderer",function(){if(Gkz!==void 0)return Gkz;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Gkz=W},{mode:1});var Haf;var n8=function(){return _.n.apply(this,arguments)||this};
_.R(n8,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],n8.prototype,"data",void 0);n8=_.t([_.G({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],n8);
_.H(n8,"ytd-minor-moment-setting-alert-renderer",function(){if(Haf!==void 0)return Haf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Haf=W},{mode:1});var tIH;var $tL;var f8=function(){var W=_.n.apply(this,arguments)||this;W.booleanSettingById=!1;W.smartDownloadsEnabledVE=_.gd(128287);W.smartDownloadsDisabledVE=_.gd(128286);W.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return W};
_.R(f8,_.n);_.d=f8.prototype;_.d.attachSmartDownloadsSettingVes=function(){var W;this.activeVeForLogging||((W=this.data)==null?void 0:W.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.jn(_.A4(),this.smartDownloadsEnabledVE),_.jn(_.A4(),this.smartDownloadsDisabledVE))};
_.d.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.bX(this.hostElement,"yt-settings-switch-ready")};
_.d.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.d.onSwitchChange=function(W){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(W=_.Md(W).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.e("kevlar_settings_switch_resolve_command_killswitch")?_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(W)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.d.handleUpdateSettingsSwitch=function(W){(W=_.P(W,x$N))&&this.data&&this.data.id===W.id&&this.set("data.enabled",!!W.enabled)};
_.d.onToggleSettingsSwitch=function(W,O){this.data&&this.data.id===W&&this.set("data.enabled",O!=null?O:!this.data.enabled)};
_.d.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.NN.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.d.maybeLogSmartDownloadsSettingVisibility=function(){var W=_.Bb(),O;W&&((O=this.data)==null?void 0:O.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.t3(W,[this.smartDownloadsEnabledVE]),_.$0(W,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.t3(W,[this.smartDownloadsDisabledVE]),_.$0(W,[this.smartDownloadsEnabledVE])))};
_.d.maybeLogSmartDownloadsSettingClick=function(){var W;((W=this.data)==null?void 0:W.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.LK(_.A4(),this.activeVeForLogging)};
_.d.updateDataEnabledFromBinding=function(W){this.set("data.enabled",W.detail.value)};
_.Jq.Object.defineProperties(f8.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var W=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!W&&(W=this.ytRendererBehavior.getSimpleString(this.data.title));return W}}});
f8.prototype.dataChanged=f8.prototype.dataChanged;_.t([_.D(_.sh),_.N("design:type",Object)],f8.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],f8.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],f8.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],f8.prototype,"data",void 0);_.t([_.C({selector:function(W,O){if(Object.keys(W==null?void 0:W.entities).length)switch(O){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return hUP(W.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.N("design:type",Object)],f8.prototype,"booleanSettingById",void 0);_.t([_.C(),_.N("design:type",_.kJ)],f8.prototype,"activeVeForLogging",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],f8.prototype,"toggleAriaLabel",null);_.t([_.Ul("data"),_.Ul("booleanSettingById"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],f8.prototype,"dataChanged",null);
f8=_.t([_.G({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],f8);
_.H(f8,"ytd-settings-switch-renderer",function(){if($tL!==void 0)return $tL;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $tL=W},{mode:1});var GI=function(){return _.n.apply(this,arguments)||this};
_.R(GI,_.n);GI.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}}}}};
_.Jq.Object.defineProperties(GI.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var W=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(W+=" remove-left-margin");this.data.extraBottomSpace&&(W+=" extra-bottom-space");return W}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GI.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],GI.prototype,"contentsClassName",null);GI=_.t([_.G({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],GI);
_.H(GI,"ytd-minor-moment-setting-section-renderer",function(){if(tIH!==void 0)return tIH;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return tIH=W},{mode:1});var VIq;var He=function(){return _.n.apply(this,arguments)||this};
_.R(He,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],He.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],He.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],He.prototype,"data",void 0);He=_.t([_.G({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],He);
_.H(He,"ytd-empty-product-details-renderer",function(){if(VIq!==void 0)return VIq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return VIq=W},{mode:1});var NrU;var MIf;var ty=function(){var W=_.n.apply(this,arguments)||this;W.expanded=!0;return W};
_.R(ty,_.n);ty.prototype.getBadgeRowClass=function(W,O,b){for(var T=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),L=T.next();!L.done;L=T.next())L.value.onShow();W=W.selected;return b?W!==-1?W===O?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(W!==void 0?W:0)===O?"badge-line":"badge-hidden"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ty.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ty.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ty.prototype,"expanded",void 0);ty=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],ty);
_.H(ty,"ytd-sponsorships-loyalty-badges-renderer",function(){if(MIf!==void 0)return MIf;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MIf=W},{mode:1});var uK9;var $t=function(){var W=_.n.apply(this,arguments)||this;W.expanded=!0;return W};
_.R($t,_.n);$t.prototype.getContainerClasses=function(W,O){W=W?"expanded":"collapsed";O&&(W+=" item");return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$t.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$t.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],$t.prototype,"expanded",void 0);$t=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],$t);
_.H($t,"ytd-sponsorships-perk-renderer",function(){if(uK9!==void 0)return uK9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return uK9=W},{mode:1});var JZ1;var Vd=function(){var W=_.n.apply(this,arguments)||this;W.expanded=!0;return W};
_.R(Vd,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vd.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vd.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Vd.prototype,"expanded",void 0);Vd=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Vd);
_.H(Vd,"ytd-sponsorships-perks-renderer",function(){if(JZ1!==void 0)return JZ1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return JZ1=W},{mode:1});var N3=function(){var W=_.n.apply(this,arguments)||this;W.isCollapsed=!1;return W};
_.R(N3,_.n);N3.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
N3.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
N3.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var W;this.expandCollapseButton=_.P((W=this.data)==null?void 0:W.expandButton,_.s2)}else{var O;this.expandCollapseButton=_.P((O=this.data)==null?void 0:O.collapseButton,_.s2)}};
N3.prototype.updateExpandCollapseButton=N3.prototype.updateExpandCollapseButton;N3.prototype.onDataChanged=N3.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],N3.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],N3.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N3.prototype,"isCollapsed",void 0);_.t([_.C(),_.N("design:type",Object)],N3.prototype,"expandCollapseButton",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N3.prototype,"onDataChanged",null);_.t([_.Ul("data","isCollapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N3.prototype,"updateExpandCollapseButton",null);N3=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],N3);
_.H(N3,"ytd-sponsorships-expandable-perks-renderer",function(){if(NrU!==void 0)return NrU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return NrU=W},{mode:1});var cZn;var M3=function(){return _.n.apply(this,arguments)||this};
_.R(M3,_.n);M3.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],M3.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],M3.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],M3.prototype,"data",void 0);M3=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],M3);
_.H(M3,"ytd-sponsorships-actionable-message-renderer",function(){if(cZn!==void 0)return cZn;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return cZn=W},{mode:1});var FtU;var u$=function(){return _.n.apply(this,arguments)||this};
_.R(u$,_.n);_.d=u$.prototype;_.d.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.d.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.d.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.computeMessageContainerStyle=function(W){var O=W.expandableItems?" style-clickable":"";return W.messageContainerStyle?W.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+O:"style-unspecified"+O};
_.d.isSinglePerk=function(W){return!!W.messageContainerStyle&&(W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||W.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.d.onExpandedChanged=function(){var W=this;if(this.expanded)for(var O=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),b=O.next();!b.done;b=O.next())b.value.onShow();_.My(this,function(){_.bX(W.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
u$.prototype.onDataChanged=u$.prototype.onDataChanged;u$.prototype.onExpandedChanged=u$.prototype.onExpandedChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],u$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],u$.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],u$.prototype,"expanded",void 0);
_.t([_.m5("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u$.prototype,"onExpandedChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],u$.prototype,"onDataChanged",null);u$=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],u$);
_.H(u$,"ytd-sponsorships-expandable-message-renderer",function(){if(FtU!==void 0)return FtU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return FtU=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var yZU;var Jy=function(){return _.n.apply(this,arguments)||this};
_.R(Jy,_.n);Jy.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"}}}}};
Jy.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.P(this.data.endButton,_.s2).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
Jy.prototype.onDataChanged=Jy.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Jy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Jy.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jy.prototype,"onDataChanged",null);
Jy=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],Jy);
_.H(Jy,"ytd-sponsorships-heading-renderer",function(){if(yZU!==void 0)return yZU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return yZU=W},{mode:1});var WP7;var ce=function(){return _.n.apply(this,arguments)||this};
_.R(ce,_.n);_.t([_.C(),_.N("design:type",Object)],ce.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);ce=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],ce);
_.H(ce,"ytd-sponsorships-links-renderer",function(){if(WP7!==void 0)return WP7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return WP7=W},{mode:1});var OnH;var Fl=function(){return _.n.apply(this,arguments)||this};
_.R(Fl,_.n);_.d=Fl.prototype;_.d.onDataChanged=function(){if(this.data&&this.data.expandableItems){var W;(W=_.Q(this.hostElement).querySelector("tp-yt-paper-button"))==null||W.setAttribute("role","button")}else{var O;(O=_.Q(this.hostElement).querySelector("tp-yt-paper-button"))==null||O.removeAttribute("role")}};
_.d.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.d.getExpansionIcon=function(W){return W?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.d.getTileClasses=function(W){return W?"tile expandable-tile":"tile"};
_.d.getButtonDisabled=function(W){return W?void 0:""};
Fl.prototype.onDataChanged=Fl.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fl.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fl.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Fl.prototype,"expanded",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fl.prototype,"onDataChanged",null);
Fl=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Fl);
_.H(Fl,"ytd-sponsorships-list-tile-renderer",function(){if(OnH!==void 0)return OnH;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return OnH=W},{mode:1});var inv;var bn$;var yd=function(){return _.n.apply(this,arguments)||this};
_.R(yd,_.n);yd.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yd.prototype,"data",void 0);yd=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],yd);
_.H(yd,"ytd-sponsorships-promotion-renderer",function(){if(bn$!==void 0)return bn$;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return bn$=W},{mode:1});var jwq;var WY=function(){return _.n.apply(this,arguments)||this};
_.R(WY,_.n);WY.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],WY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],WY.prototype,"data",void 0);WY=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],WY);
_.H(WY,"ytd-sponsorships-purchase-option-renderer",function(){if(jwq!==void 0)return jwq;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return jwq=W},{mode:1});var TU5;var LPN;var OU=function(){return _.n.apply(this,arguments)||this};
_.R(OU,_.n);_.t([_.C(),_.N("design:type",Object)],OU.prototype,"data",void 0);OU=_.t([_.G({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],OU);
_.H(OU,"ytd-ypc-offer-promo-renderer",function(){if(LPN!==void 0)return LPN;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return LPN=W},{mode:1});var i9=function(){return _.n.apply(this,arguments)||this};
_.R(i9,_.n);_.d=i9.prototype;
_.d.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"}}}}};
_.d.expansionCTA=function(W,O){return W&&(O?W.collapseCallToAction:W.expansionCallToAction)};
_.d.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
_.d.expansionCallToActionTap=function(){var W=this;this.expanded=!this.expanded;_.My(this,function(){_.bX(W.hostElement,"yt-refit")})};
_.d.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var W,O=(W=this.data)==null?void 0:W.onVisible;O&&this.ytComponentBehavior.resolveCommand(O)};
_.d.computeDisplayTitle=function(W){return!(!W||this.titledisplaystatus!=="show")};
_.d.computeDisplaySeparator=function(){return!1};
_.d.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
i9.prototype.onDataChanged=i9.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],i9.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],i9.prototype,"data",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],i9.prototype,"expanded",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],i9.prototype,"purchaseButtonClicked",void 0);_.t([_.C({reflectToAttribute:!0,value:"show"}),_.N("design:type",String)],i9.prototype,"titledisplaystatus",void 0);_.t([_.C({computed:"computeDisplayTitle(data.title)"}),_.N("design:type",Boolean)],i9.prototype,"displayTitle",void 0);
_.t([_.C({computed:"computeDisplaySeparator(data)"}),_.N("design:type",Boolean)],i9.prototype,"displaySeparator",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],i9.prototype,"onDataChanged",null);i9=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],i9);
_.H(i9,"ytd-sponsorships-tier-renderer",function(){if(TU5!==void 0)return TU5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return TU5=W},{mode:2});var b9=function(){return _.n.apply(this,arguments)||this};
_.R(b9,_.n);
b9.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],b9.prototype,"data",void 0);b9=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],b9);
_.H(b9,"ytd-sponsorships-management-renderer",function(){if(inv!==void 0)return inv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return inv=W},{mode:1});var dj1;var jy=function(){return _.n.apply(this,arguments)||this};
_.R(jy,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],jy.prototype,"data",void 0);jy=_.t([_.G({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],jy);
_.H(jy,"ytd-open-in-native-app-view-model",function(){if(dj1!==void 0)return dj1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dj1=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var hav;var SwU;var Znz=_.ts(["top-"]),I$v=_.ts(["bottom-"]),a$z=_.ts(["left-"]),mjH=_.ts(["right-"]),Ywz={},EML=function(W,O,b){W.removeAttribute("top-"+b);W.removeAttribute("bottom-"+b);W.removeAttribute("left-"+b);W.removeAttribute("right-"+b);O&&(O.top&&_.HD([_.cG(Znz)],W,"top-"+b,O.top),O.bottom&&_.HD([_.cG(I$v)],W,"bottom-"+b,O.bottom),O.left&&_.HD([_.cG(a$z)],W,"left-"+b,O.left),O.right&&_.HD([_.cG(mjH)],W,"right-"+b,O.right))};
Ywz.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(W){var O,b=_.Q((O=this.hostElement)!=null?O:this),T;O=this.cardItemBoxBehaviorMarginTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(T=this.hostElement)!=null?T:this;EML(O,W,"margin")},
cardItemContainerPaddingChanged_:function(W){var O,b=_.Q((O=this.hostElement)!=null?O:this),T;O=this.cardItemBoxBehaviorPaddingTargetId&&b?b.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(T=this.hostElement)!=null?T:this;EML(O,W,"padding")}}];var TC={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var wc7;var A21;var L$=function(){return _.n.apply(this,arguments)||this};
_.R(L$,_.n);L$.prototype.textColorChanged_=function(){this.hostElement.style.color=TC[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
L$.prototype.textColorChanged_=L$.prototype.textColorChanged_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],L$.prototype,"ytRendererBehavior",void 0);_.t([_.D(Ywz.YtCardItemBoxBehavior),_.N("design:type",Object)],L$.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],L$.prototype,"data",void 0);_.t([_.m5("data.textColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],L$.prototype,"textColorChanged_",null);
L$=_.t([_.sl({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],L$);
_.H(L$,"yt-card-item-text-renderer",function(){if(A21===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;wc7===void 0&&(wc7=document.createElement("template"));var T=wc7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);A21=W}W=A21;return W},{mode:2});var XcL;var Ujv;var dy=function(){return _.n.apply(this,arguments)||this};
_.R(dy,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dy.prototype,"data",void 0);dy=_.t([_.sl({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],dy);
_.H(dy,"yt-card-item-badge-renderer",function(){if(Ujv===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;XcL===void 0&&(XcL=document.createElement("template"));var T=XcL;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Ujv=W}W=Ujv;return W},{mode:2});var l$5;var ea5;var hG=function(){return _.n.apply(this,arguments)||this};
_.R(hG,_.n);hG.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hG.prototype,"data",void 0);hG=_.t([_.sl({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],hG);
_.H(hG,"yt-card-item-text-collection-renderer",function(){if(ea5===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;l$5===void 0&&(l$5=document.createElement("template"));var T=l$5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ea5=W}W=ea5;return W},{mode:2});var PI7;var pc1;var Sy=function(){return _.n.apply(this,arguments)||this};
_.R(Sy,_.n);Sy.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]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Sy.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Number)],Sy.prototype,"iconSize",void 0);Sy=_.t([_.sl({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Sy);
_.H(Sy,"yt-card-item-text-with-button-renderer",function(){if(pc1===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;PI7===void 0&&(PI7=document.createElement("template"));var T=PI7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);pc1=W}W=pc1;return W},{mode:2});var Z_=function(){return _.n.apply(this,arguments)||this};
_.R(Z_,_.n);Z_.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Z_.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Z_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Z_.prototype,"data",void 0);Z_=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],Z_);
_.H(Z_,"ytd-commerce-cart-summary-line-item-renderer",function(){if(SwU!==void 0)return SwU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return SwU=W},{mode:1});_.Bs("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var IA=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;return W};
_.R(IA,_.n);_.d=IA.prototype;_.d.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"}}}}};
_.d.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.d.updateSummary=function(){var W=this.commerceCartCheckoutButtonEntity,O;if(((O=this.data)==null?0:O.cartButton)&&W.checkoutSummaryText){var b,T=Dv((b=this.data)==null?void 0:b.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+T+".cardItemTextRenderer.text",xN(W.checkoutSummaryText));if(W.checkoutDetailText){var L;b=Dv((L=this.data)==null?void 0:L.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",xN(W.checkoutDetailText))}if(W.checkoutAdditionalMetadataText){var h;
L=Dv((h=this.data)==null?void 0:h.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+L+".cardItemTextRenderer.text",xN(W.checkoutAdditionalMetadataText))}}else W.estimatedTotalPrice&&(h=Dv((T=this.data)==null?void 0:T.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+h+".cardItemTextRenderer.text",xN(W.estimatedTotalPrice)))};
_.d.updateIsHidden=function(){var W,O=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;O!==void 0&&(this.hidden=O)};
_.d.updateCheckoutButton=function(){var W,O=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isDisabled;O!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",O);var b;W=(b=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:b.innertubeCommand;W!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",W);var T;b=(T=this.commerceCartCheckoutButtonEntity)==null?void 0:T.checkoutButtonText;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:b})};
IA.prototype.entityChanged=IA.prototype.entityChanged;_.t([_.D(_.sh),_.N("design:type",Object)],IA.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],IA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],IA.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],IA.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],IA.prototype,"fullWidth",void 0);_.t([_.C(),_.N("design:type",Object)],IA.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],IA.prototype,"compact",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],IA.prototype,"hidden",void 0);
_.t([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:XaX}),_.N("design:type",Object)],IA.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.m5("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IA.prototype,"entityChanged",null);IA=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],IA);
_.H(IA,"ytd-commerce-cart-checkout-button-renderer",function(){if(hav!==void 0)return hav;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return hav=W},{mode:2});var Ran;_.KPv={};
_.KPv.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",_.Ii(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.Ii(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(W){!this.tappableItemBehaviorTapEnabled||W.keyCode!==13&&W.keyCode!==32||W.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var W=this.data.onTap;W.ypcGetCartEndpoint?(_.da(this.hostElement,[W]),this.tappableItemBehaviorTapEnabled=!1):W.ypcOffersEndpoint?_.da(this.hostElement,[W]):_.Sx(this.hostElement,[W],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(W){this.tappableItemBehaviorTapEnabled=!!W},
tappableItemBehaviorOnTapEnabledChanged_:function(){var W=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(W.setAttribute("tabIndex",0),W.setAttribute("role","button")):(W.removeAttribute("tabIndex"),W.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(W){W.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var vMn;var gMf;var aA=function(){return _.n.apply(this,arguments)||this};
_.R(aA,_.n);aA.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.rd("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.rd("sharingToggleButtonAndDefaultButton")}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aA.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aA.prototype,"data",void 0);aA=_.t([_.sl({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],aA);
_.H(aA,"yt-card-item-actions-renderer",function(){if(gMf===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;vMn===void 0&&(vMn=document.createElement("template"));var T=vMn;b.call(O,T.content.cloneNode(!0),W.content.firstChild);gMf=W}W=gMf;return W},{mode:2});var oMU;var Qwz;var k4$;var swz;var BU1;var r2f;var ms=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return W};
_.R(ms,_.n);ms.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
ms.prototype.handleDarkModeToggledAction_=function(W){this.isDarkTheme_=W};
ms.prototype.computeThemeImage_=function(W,O){if(!W||!W.imageLight)return!1;this.isCircular_=W.isCircular;W.imageWidth&&(this.hostElement.style.width=W.imageWidth+"px");W.imageHeight&&(this.hostElement.style.height=W.imageHeight+"px");W.borderWidth&&(this.image.style.borderWidth=W.borderWidth+"px",this.image.style.borderStyle="solid");W.borderColor&&(this.image.style.borderColor=_.C_(W.borderColor));return O&&W.imageDark?W.imageDark:W.imageLight};
ms.prototype.computeThemeIcon_=function(W){var O,b;if(!(W==null?0:(O=W.themedIcon)==null?0:(b=O.icon)==null?0:b.iconType))return!1;this.icon.style.color=TC[W.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(W.imageWidth||18)+"px";this.icon.style.height=(W.imageHeight||18)+"px";return _.Z6(W.themedIcon.icon.iconType)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(Ywz.YtCardItemBoxBehavior),_.N("design:type",Object)],ms.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ms.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ms.prototype,"data",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],ms.prototype,"fit",void 0);_.t([_.C(),_.N("design:type",Boolean)],ms.prototype,"isDarkTheme_",void 0);_.t([_.C({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.N("design:type",Object)],ms.prototype,"themeImage_",void 0);_.t([_.C({computed:"computeThemeIcon_(data)"}),_.N("design:type",Object)],ms.prototype,"themeIcon_",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Object)],ms.prototype,"isCircular_",void 0);
_.t([_.El("#image"),_.N("design:type",Object)],ms.prototype,"image",void 0);_.t([_.El("#icon"),_.N("design:type",Object)],ms.prototype,"icon",void 0);ms=_.t([_.sl({is:"yt-themed-image-renderer",disableElementRegistration:!0})],ms);
_.H(ms,"yt-themed-image-renderer",function(){if(r2f===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;BU1===void 0&&(BU1=document.createElement("template"));var T=BU1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);r2f=W}W=r2f;return W},{mode:2});var Yi=function(){return _.n.apply(this,arguments)||this};
_.R(Yi,_.n);Yi.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"}}}}};
Yi.prototype.computeImagePlacement_=function(W){return W||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yi.prototype,"data",void 0);_.t([_.C({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.N("design:type",String)],Yi.prototype,"imagePlacement",void 0);
Yi=_.t([_.sl({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Yi);
_.H(Yi,"yt-card-item-text-with-image-renderer",function(){if(swz===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;k4$===void 0&&(k4$=document.createElement("template"));var T=k4$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);swz=W}W=swz;return W},{mode:2});var EU=function(){return _.n.apply(this,arguments)||this};
_.R(EU,_.n);EU.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"}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],EU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],EU.prototype,"data",void 0);EU=_.t([_.sl({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],EU);
_.H(EU,"yt-card-item-error-renderer",function(){if(Qwz===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;oMU===void 0&&(oMU=document.createElement("template"));var T=oMU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Qwz=W}W=Qwz;return W},{mode:2});var Dj$;var xjq;_.Bs("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var wy=function(){return _.n.apply(this,arguments)||this};
_.R(wy,_.n);_.d=wy.prototype;
_.d.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"}}}}};
_.d.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.d.backgroundColorChanged_=function(){var W,O=(W=this.data)==null?void 0:W.backgroundColor;W=TC[O||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Q(this.hostElement).querySelector("#main-content").style.backgroundColor=W};
_.d.headerPromoBackgroundColorChanged_=function(){var W,O=(W=this.data)==null?void 0:W.headerPromoBackgroundColor;W=TC[O||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Q(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=W};
_.d.errorRendererVisibilityChanged_=function(){var W=this.isExpanded_,O;this.isErrorRendererVisible_=!((O=this.data)==null||!O.errorRenderer)&&!W};
_.d.onYtToggleButton_=function(W,O){this.isExpanded_=O.toggled};
wy.prototype.onYtToggleButton_=wy.prototype.onYtToggleButton_;wy.prototype.errorRendererVisibilityChanged_=wy.prototype.errorRendererVisibilityChanged_;wy.prototype.headerPromoBackgroundColorChanged_=wy.prototype.headerPromoBackgroundColorChanged_;wy.prototype.backgroundColorChanged_=wy.prototype.backgroundColorChanged_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(Ywz.YtCardItemBoxBehavior),_.N("design:type",Object)],wy.prototype,"ytCardItemBoxBehavior",void 0);_.t([_.D(_.KPv.YtTappableItemBehavior),_.N("design:type",Object)],wy.prototype,"ytTappableItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wy.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],wy.prototype,"isExpanded_",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],wy.prototype,"isErrorRendererVisible_",void 0);_.t([_.m5("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"backgroundColorChanged_",null);_.t([_.m5("data.headerPromoBackgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"headerPromoBackgroundColorChanged_",null);
_.t([_.m5("data.errorRenderer","isExpanded_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wy.prototype,"errorRendererVisibilityChanged_",null);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],wy.prototype,"onYtToggleButton_",null);wy=_.t([_.sl({is:"yt-card-item-renderer",disableElementRegistration:!0})],wy);
_.H(wy,"yt-card-item-renderer",function(){if(xjq===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Dj$===void 0&&(Dj$=document.createElement("template"));var T=Dj$;b.call(O,T.content.cloneNode(!0),W.content.firstChild);xjq=W}W=xjq;return W},{mode:2});_.Bs("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var AG=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;return W};
_.R(AG,_.n);_.d=AG.prototype;_.d.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.d.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,O=(W=this.commerceCartHeaderEntity)==null?void 0:W.isHidden;O!==void 0&&(this.hidden=O)}};
_.d.updateTitle=function(){var W=this.commerceCartHeaderEntity.isDisabled,O,b,T=(b=_.P((O=this.data)==null?void 0:O.item,HNN))==null?void 0:b.headingRenderer;T&&(O=Dv(T,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+O+".0.cardItemTextRenderer.textColor",W?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.d.updateSummaryText=function(){var W=this.commerceCartHeaderEntity;if(this.compact){var O,b,T=(b=_.P((O=this.data)==null?void 0:O.item,HNN))==null?void 0:b.headingRenderer;T&&(O=Dv(T,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+O+".1.cardItemTextRenderer.text",W.shortHeaderSummaryText?xN(W.shortHeaderSummaryText):W.headerSummaryText?xN(W.headerSummaryText):""))}else{var L;if(O=(L=_.P((T=this.data)==null?void 0:T.item,HNN))==null?void 0:L.additionalInfoRenderer)O=Dv(O,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+O+".text",W.headerSummaryText?xN(W.headerSummaryText):"")}};
_.d.updateCheckoutButton=function(){var W=this.commerceCartHeaderEntity,O,b,T=(b=_.P((O=this.data)==null?void 0:O.item,HNN))==null?void 0:b.additionalInfoRenderer;O=Dv(T,"buttonRenderer");var L;b=(L=this.commerceCartHeaderEntity)==null?void 0:L.isButtonDisabled;var h;L=(h=this.commerceCartHeaderEntity)==null?void 0:h.isButtonHidden;b!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+O+".buttonRenderer.isDisabled",b);L!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
L);var Z;W=(Z=W.checkoutButtonCommand)==null?void 0:Z.innertubeCommand;W!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+O+".buttonRenderer.command",W)};
AG.prototype.entityChanged=AG.prototype.entityChanged;_.t([_.D(_.sh),_.N("design:type",Object)],AG.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],AG.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],AG.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],AG.prototype,"compact",void 0);_.t([_.C({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(W,O){return _.IJ(W.entities,"commerceCartHeaderEntity",O)}}),
_.N("design:type",Object)],AG.prototype,"commerceCartHeaderEntity",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],AG.prototype,"hidden",void 0);_.t([_.m5("commerceCartHeaderEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AG.prototype,"entityChanged",null);AG=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],AG);
_.H(AG,"ytd-commerce-cart-header-renderer",function(){if(Ran!==void 0)return Ran;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ran=W},{mode:1});var za9;var CIN=_.Ei(function(W,O){var b;return(b=W.onChangeCallback)==null?void 0:b.call(W,O)},1E3),qwH=_.J1(function(W){var O=W.data;
var b=W.iconMinus;W=W.iconPlus;var T=function(){return!!O().disabled},L=_.S(_.wu(0,void 0,"r56zNb")),h=L.next().value,Z=L.next().value;
L={};L=_.YS("yt-spec-quantity-incrementer-shape__icon",(L["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return T()||h()===(O().onRemoveCommand?0:1)},L));
var a={};a=_.YS("yt-spec-quantity-incrementer-shape__icon",(a["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return h()>=O().maxValue||T()},a));
var m={};m=_.YS("yt-spec-quantity-incrementer-shape__text",(m["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return h()>O().maxValue},m["yt-spec-quantity-incrementer-shape__text--text-disabled"]=T,m));
var w=_.XL(function(){if(h()===1){var X,l;(l=(X=O()).onRemoveCommand)==null||l.call(X)}X=h()>O().maxValue?O().maxValue:h()-1;Z(X);CIN(O(),X);return!1}),A=_.XL(function(){if(h()===O().maxValue)return!1;
var X=h()+1;Z(X);CIN(O(),X);return!1});
_.oW(function(){Z(O().value)});
return _.E("quantity-incrementer-shape",null,_.E("div",{class:"yt-spec-quantity-incrementer-shape"},_.E("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()===(O().onRemoveCommand?0:1)||T()},
"aria-label":function(){return h()!==1?O().minusLabel:O().minimumReachedLabel},
"on:click":w},_.E(_.Kd,{model:{circular:!0}}),_.E("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.E("div",{class:L},b()))),_.E("div",{class:m},h),_.E("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return h()>=O().maxValue||T()},
"aria-label":function(){return h()!==O().maxValue?O().plusLabel:O().maximumReachedLabel},
"on:click":A},_.E(_.Kd,{model:{circular:!0}}),_.E("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.E("div",{class:a},W())))))},"Jd");_.O1(_.J1(function(W){function O(){b().onRemoveCommand&&_.nb(b().onRemoveCommand)}
var b=W.data;var T=_.wt(vCX,function(){return b().quantityIncrementerEntityKey});
return _.E("yt-quantity-incrementer-view-model",null,_.E(qwH,{data:function(){var L=b(),h;var Z=T()?!((h=T())==null||!h.disabled):!1;var a;h=T()?(a=T())==null?void 0:a.quantity:b().quantity;return Zxh(L,Z,O,h)},
iconMinus:function(){return _.E(_.Ps,{icon:"BAR_HORIZONTAL",className:_.wd("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.E(_.Ps,{icon:"ADD",className:_.wd("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Kd"),"yt-quantity-incrementer-view-model",{props:{data:_.te}});var XC=function(){var W=_.n.apply(this,arguments)||this;W.compact=!1;W.hasQuantityIncrementer=!1;return W};
_.R(XC,_.n);XC.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"}}}};
XC.prototype.computeHasQuantityIncrementer=function(){var W;return!!_.P((W=this.data)==null?void 0:W.picker,N57)};
XC.prototype.onLabelClick=function(){var W;(W=this.dropdownEl)==null||W.open()};
_.t([_.El("ytd-dropdown-renderer"),_.N("design:type",Object)],XC.prototype,"dropdownEl",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],XC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],XC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],XC.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],XC.prototype,"quantityColor",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],XC.prototype,"compact",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.N("design:type",Object)],XC.prototype,"hasQuantityIncrementer",void 0);XC=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],XC);
_.H(XC,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(za9!==void 0)return za9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return za9=W},{mode:1});var nMv;var f$1;var UU=function(){return _.n.apply(this,arguments)||this};
_.R(UU,_.n);UU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
UU.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
UU.prototype.updateTitle=function(){var W=this.disabledCartItemEntity;W.disableActionName&&this.set("data.title",xN(W.disableActionName))};
UU.prototype.updateButton=function(){var W,O=(W=this.disabledCartItemEntity.undoCommand)==null?void 0:W.innertubeCommand;O!==void 0&&(this.set("data.actionButton.buttonRenderer.command",O),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
UU.prototype.entityChanged=UU.prototype.entityChanged;_.t([_.D(_.sh),_.N("design:type",Object)],UU.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],UU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],UU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(W,O){return _.IJ(W.entities,"disabledCartItemEntity",O)}}),
_.N("design:type",Object)],UU.prototype,"disabledCartItemEntity",void 0);_.t([_.C(),_.N("design:type",Object)],UU.prototype,"data",void 0);_.t([_.m5("disabledCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UU.prototype,"entityChanged",null);UU=_.t([_.G({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],UU);
_.H(UU,"ytd-disabled-cart-item-renderer",function(){if(f$1!==void 0)return f$1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return f$1=W},{mode:1});_.Bs("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var l9=function(){var W=_.n.apply(this,arguments)||this;W.compact=!1;W.hidden=!1;W.errorHidden=!1;W.noOnTap=!1;return W};
_.R(l9,_.n);_.d=l9.prototype;
_.d.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"}}}};
_.d.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.d.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var W=this.firstButtonElement;W.alignByText=!0;W.iconAlignByText=!0}};
_.d.computeNoOnTap=function(W){return!W};
_.d.updateQuantityColor=function(){if(this.pickerElement){var W,O=(W=this.commerceCartItemEntity)==null?void 0:W.quantityColor;this.pickerElement.quantityColor=O}};
_.d.updateTotalPriceColor=function(){var W,O=(W=this.commerceCartItemEntity)==null?void 0:W.totalPriceColor;if(O){var b;W=_.P((b=this.data)==null?void 0:b.quantityPicker,$Nq);if(b=_.P(W==null?void 0:W.price,tX5))b.textColor=O}};
_.d.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var W,O=(W=this.commerceCartItemEntity)==null?void 0:W.isHidden;O!==void 0&&(this.hidden=O)}};
_.d.updateHideErrorMessage=function(){var W,O=(W=this.commerceCartItemEntity)==null?void 0:W.hideErrorMessage;O!==void 0&&(this.errorHidden=O)};
_.d.updateQuantity=function(){var W=this,O,b=(O=this.commerceCartItemEntity)==null?void 0:O.quantity,T;O=(T=this.commerceCartItemEntity)==null?void 0:T.totalPrice;if(b){this.updateTotalPriceColor();this.updateQuantityColor();var L;T=_.P((L=this.data)==null?void 0:L.quantityPicker,$Nq);if(L=_.P(T==null?void 0:T.price,tX5))L.text=O?{simpleText:O.content}:void 0;if(O=_.P(T==null?void 0:T.picker,N57))O.quantity=b;var h;if(L=(h=_.P(T==null?void 0:T.picker,Fcw))==null?void 0:h.entries){h=!1;O=void 0;L=
_.S(L);for(T=L.next();!T.done;T=L.next())T=T.value,T.dropdownItemRenderer&&(O||(O=T.dropdownItemRenderer),T.dropdownItemRenderer.isSelected=!1,b===T.dropdownItemRenderer.int32Value&&(h=!0,T.dropdownItemRenderer.isSelected=!0));!h&&O&&(O.isSelected=!0)}_.My(this,function(){var Z;W.set("data.quantityPicker",_.PQ.unsafeClone((Z=W.data)==null?void 0:Z.quantityPicker))})}};
l9.prototype.onYtRendererstamperFinished=l9.prototype.onYtRendererstamperFinished;l9.prototype.entityChanged=l9.prototype.entityChanged;_.t([_.C(),_.N("design:type",Object)],l9.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],l9.prototype,"compact",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],l9.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],l9.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(W,O){return _.IJ(W.entities,"commerceCartItemEntity",O)}}),
_.N("design:type",Object)],l9.prototype,"commerceCartItemEntity",void 0);_.t([_.C(),_.N("design:type",Object)],l9.prototype,"quantityPicker",void 0);_.t([_.C(),_.N("design:type",Object)],l9.prototype,"compactQuantityPicker",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],l9.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],l9.prototype,"errorHidden",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.N("design:type",Object)],l9.prototype,"noOnTap",void 0);_.t([_.El("ytd-commerce-cart-item-quantity-picker-renderer"),_.N("design:type",Object)],l9.prototype,"pickerElement",void 0);_.t([_.El("yt-button-renderer"),_.N("design:type",Element)],l9.prototype,"firstButtonElement",void 0);
_.t([_.m5("commerceCartItemEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l9.prototype,"entityChanged",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l9.prototype,"onYtRendererstamperFinished",null);l9=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],l9);
_.H(l9,"ytd-commerce-cart-item-renderer",function(){if(nMv!==void 0)return nMv;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return nMv=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var G4n;var Hn1;var ey=function(){return _.n.apply(this,arguments)||this};
_.R(ey,_.n);ey.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}}}}}};
ey.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
ey.prototype.updateCheckoutLineItems=function(){var W,O=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.checkoutLineItems;O&&(W=O.map(function(b){a:{var T=b.price,L=b.description;switch(b.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:xN(L),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:xN(T),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:b={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:xN(L),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:xN(T),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return b}),this.set("data.summaryLineItems",W))};
ey.prototype.updateIsHidden=function(){var W,O=(W=this.commerceCartCheckoutButtonEntity)==null?void 0:W.isHidden;O!==void 0&&(this.hostElement.hidden=O)};
ey.prototype.entityChanged=ey.prototype.entityChanged;_.t([_.D(_.sh),_.N("design:type",Object)],ey.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ey.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],ey.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:XaX}),_.N("design:type",Object)],ey.prototype,"commerceCartCheckoutButtonEntity",void 0);_.t([_.m5("commerceCartCheckoutButtonEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ey.prototype,"entityChanged",null);ey=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],ey);
_.H(ey,"ytd-commerce-cart-summary-renderer",function(){if(Hn1!==void 0)return Hn1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Hn1=W},{mode:1});var t0n={};t0n.InjectBehavior=[Jzq.InjectBehavior];var $jN;var V05;var PY=function(){return _.n.apply(this,arguments)||this};
_.R(PY,_.n);
PY.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:_.rd("menuRenderer")}}};
PY.prototype.onMenuTap=function(W){W.stopPropagation()};
_.Jq.Object.defineProperties(PY.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 W,O;return!(((W=this.data)==null||!W.sectionHeading)&&((O=this.data)==null?void 0:O.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var W,O;return!(((W=this.data)==null||!W.image)&&((O=this.data)==null?void 0:O.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var W,O;return!(((W=this.data)==null||!W.menu)&&((O=this.data)==null?void 0:O.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.KPv.YtTappableItemBehavior),_.N("design:type",Object)],PY.prototype,"ytTappableItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PY.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.accessibilityData"),_.N("design:type",String),_.N("design:paramtypes",[])],PY.prototype,"ariaLabel",null);_.t([_.x("data.sectionHeading","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PY.prototype,"sectionHeadingVisible",null);_.t([_.x("data.image","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PY.prototype,"imageVisible",null);
_.t([_.x("data.menu","data.layout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],PY.prototype,"menuVisible",null);PY=_.t([_.sl({is:"yt-activity-item-renderer",disableElementRegistration:!0})],PY);
_.H(PY,"yt-activity-item-renderer",function(){if(V05===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;$jN===void 0&&($jN=document.createElement("template"));var T=$jN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);V05=W}W=V05;return W},{mode:2});var NU5;var M0S;var uc7;var J2v;var p$=function(){return _.n.apply(this,arguments)||this};
_.R(p$,_.n);
p$.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"}}}}};
p$.prototype.backgroundColorChanged_=function(){var W,O=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=TC[O||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
p$.prototype.backgroundColorChanged_=p$.prototype.backgroundColorChanged_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],p$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],p$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],p$.prototype,"data",void 0);
_.t([_.m5("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],p$.prototype,"backgroundColorChanged_",null);p$=_.t([_.sl({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],p$);
_.H(p$,"yt-offer-item-upsell-renderer",function(){if(J2v===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;uc7===void 0&&(uc7=document.createElement("template"));var T=uc7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);J2v=W}W=J2v;return W},{mode:2});_.Bs("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var RA=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};W.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return W};
_.R(RA,_.n);_.d=RA.prototype;
_.d.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:_.rd("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.d.computeContainerStyle_=function(W){return W};
_.d.computeContainerIsHidden_=function(W){return W&&!!W.isHidden};
_.d.computeShowSpinner_=function(W,O){return W&&O==="in-progress"};
_.d.computeShowMoreContentsButton_=function(W,O,b,T,L){return!(!(T&&T.length||L&&L.length&&b)||!W||O)};
_.d.onToggleButton_=function(W){var O=this;W.stopPropagation();this.isExpanded_=W.detail&&W.detail.toggled;var b,T;this.isExpanded_&&!this.data.continuationSection.length&&((b=this.data)==null?0:(T=b.continuation)==null?0:T.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.bX(this.hostElement,"yt-load-next-continuation",function(L){return O.getContinuationUrl_(O.data.continuation.onClickContinuationData,L)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.da(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.d.onShowMoreContentsButtonClicked_=function(W){var O=this;W.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.bX(this.hostElement,"yt-load-next-continuation",function(b){return O.getContinuationUrl_(O.data.continuations[0].nextContinuationData,b)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.da(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.d.getContinuationUrl_=function(W,O){var b=W.continuation;W=W.clickTrackingParams;var T=_.Bb();W&&T&&_.Vw(T,_.Pi(W));return _.uW(O,{continuation:b})};
_.d.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var W=_.Q(this.hostElement).querySelector("#continuation-section");W&&(W=W.querySelectorAll("ytmusic-item-section-renderer"))&&W.forEach(function(O){return O.classList.add("memberships-and-purchases")})};
_.d.dataChanged_=function(){var W;this.isExpanded_=!((W=this.data)==null||!W.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.d.updateCardOnClickCommand_=function(W){W=_.P(W,DNS);var O,b;this.data&&((O=this.data)==null?0:O.targetId)&&W&&W.targetId===((b=this.data)==null?void 0:b.targetId)&&W.onClickCommand&&(this.data.onClickCommand=W.onClickCommand,this.isOnClickCommand_=!0)};
_.d.backgroundColorChanged_=function(){var W,O=(W=this.data)==null?void 0:W.backgroundColor;this.hostElement.style.backgroundColor=TC[O||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
RA.prototype.backgroundColorChanged_=RA.prototype.backgroundColorChanged_;RA.prototype.dataChanged_=RA.prototype.dataChanged_;RA.prototype.nextContinuationDataUpdated_=RA.prototype.nextContinuationDataUpdated_;RA.prototype.onToggleButton_=RA.prototype.onToggleButton_;_.t([_.D(_.xE),_.N("design:type",Object)],RA.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],RA.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],RA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],RA.prototype,"ytNextContinuationBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RA.prototype,"ytRendererBehavior",void 0);_.t([_.D(t0n.InjectBehavior),_.N("design:type",Object)],RA.prototype,"injectBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],RA.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],RA.prototype,"compact",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],RA.prototype,"isExpanded_",void 0);_.t([_.C({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.N("design:type",String)],RA.prototype,"containerStyle_",void 0);_.t([_.C({value:"not-started"}),_.N("design:type",String)],RA.prototype,"continuationStatus_",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.N("design:type",Boolean)],RA.prototype,"showSpinner_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],RA.prototype,"isOnClickCommand_",void 0);_.t([_.C({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.N("design:type",Boolean)],RA.prototype,"showMoreContentsButton_",void 0);
_.t([_.C({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(W,O){return!O||W.entities?null:_.IJ(W.entities,"cardItemContainerEntity",O)}}),
_.N("design:type",Object)],RA.prototype,"cardItemContainerEntity_",void 0);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RA.prototype,"onToggleButton_",null);_.t([_.ai("yt-next-continuation-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RA.prototype,"nextContinuationDataUpdated_",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RA.prototype,"dataChanged_",null);_.t([_.m5("data.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RA.prototype,"backgroundColorChanged_",null);RA=_.t([_.sl({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],RA);
_.H(RA,"yt-card-item-container-renderer",function(){if(M0S===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;NU5===void 0&&(NU5=document.createElement("template"));var T=NU5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);M0S=W}W=M0S;return W},{mode:2});var K$=function(){return _.n.apply(this,arguments)||this};
_.R(K$,_.n);K$.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"}}}};
K$.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
K$.prototype.computeLoadingHidden=function(){var W;return!((W=this.commerceCartPageStateEntity)==null?0:W.cartActionInProgress)};
K$.prototype.updateNotification=function(){var W,O=(W=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:W.summaryText;O&&this.set("data.cartNotification",xN(O))};
K$.prototype.notificationEntityChanged=K$.prototype.notificationEntityChanged;_.t([_.D(_.sh),_.N("design:type",Object)],K$.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],K$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],K$.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],K$.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],K$.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(W,O){return _.IJ(W.entities,"commerceCartExpandableNotificationEntity",O)}}),
_.N("design:type",Object)],K$.prototype,"commerceCartExpandableNotificationEntity",void 0);_.t([_.C({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(W,O){return _.IJ(W.entities,"commerceCartPageStateEntity",O)}}),
_.N("design:type",Object)],K$.prototype,"commerceCartPageStateEntity",void 0);_.t([_.El("#spinner"),_.N("design:type",HTMLElement)],K$.prototype,"spinner",void 0);_.t([_.m5("commerceCartExpandableNotificationEntity","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],K$.prototype,"notificationEntityChanged",null);K$=_.t([_.G({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],K$);
_.H(K$,"ytd-commerce-cart-renderer",function(){if(G4n!==void 0)return G4n;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return G4n=W},{mode:1});var c25;var vY=function(){var W=_.n.apply(this,arguments)||this;W.bigImage=!1;return W};
_.R(vY,_.n);_.Jq.Object.defineProperties(vY.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.placeholderImageUrl}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vY.prototype,"bigImage",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],vY.prototype,"placeholderImageUrl",null);vY=_.t([_.G({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],vY);
_.H(vY,"ytd-empty-product-shelf-renderer",function(){if(c25!==void 0)return c25;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return c25=W},{mode:1});var FPN;var gy=function(){var W=_.n.apply(this,arguments)||this;W.itemStyle="link-item";W.watchMetadataRefresh=!1;W.skinnyMode=!1;W.metaPanel=!1;W.inStructuredDescription=!1;W.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};W.updateOnResizeDebouncer=null;return W};
_.R(gy,_.n);_.d=gy.prototype;_.d.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.d.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"}}}}};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.d.attachVEs=function(W){W.trackingParams&&_.A4().graftServerVe(W.trackingParams)};
_.d.handleUpdateMerchShelfAction=function(W){var O=this,b=_.P(W.updateMerchandiseShelfAction.merchandiseShelf,_.Xy5);b&&(b.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){O.attachVEs(b);O.data=b},Number(b.renderDelayMs))):(this.attachVEs(b),this.data=b))};
_.d.updateOnResize=function(){if(this.JSC$14691_scrollContainer!==void 0&&this.JSC$14691_scrollContainer.clientWidth!==0&&this.items!==void 0){var W=this.JSC$14691_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_();var O;switch((O=this.data)==null?void 0:O.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var b,
T;((b=this.data)==null?void 0:(T=b.items)==null?void 0:T.length)===1?this.itemStyle="cta-item":this.itemStyle=W>=740?"large-item":"small-item"}}};
_.d.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.O9(this.updateOnResizeDebouncer,_.HT.after(100),this.updateOnResize)};
gy.prototype.debouncedUpdateOnResize=gy.prototype.debouncedUpdateOnResize;gy.prototype.dataChanged=gy.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],gy.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],gy.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],gy.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gy.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"itemStyle",void 0);_.t([_.C({value:6}),_.N("design:type",Number)],gy.prototype,"initialCount",void 0);
_.t([_.C({value:"data.items"}),_.N("design:type",String)],gy.prototype,"itemsPath",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"watchMetadataRefresh",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"skinnyMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"metaPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],gy.prototype,"inStructuredDescription",void 0);
_.t([_.El("#items"),_.N("design:type",HTMLDivElement)],gy.prototype,"items",void 0);_.t([_.El("#scroll-container"),_.N("design:type",HTMLDivElement)],gy.prototype,"JSC$14691_scrollContainer",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gy.prototype,"dataChanged",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gy.prototype,"debouncedUpdateOnResize",null);
gy=_.t([_.G({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],gy);
_.H(gy,"ytd-merch-shelf-renderer",function(){if(FPN!==void 0)return FPN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return FPN=W},{mode:2});var y2w;var oA=function(){var W=_.n.apply(this,arguments)||this;W.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 W};
_.R(oA,_.n);_.d=oA.prototype;
_.d.addBackstagePostAction=function(W){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(W=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",W))&&(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:W}):this.set("data.contents",[{backstagePostThreadRenderer:W}]))};
_.d.addBackstageCommentAction=function(W){var O=this.get("addBackstageCommentAction.parentId",W);W=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",W);if(O&&W){O=this.postIdToIndices(O);for(var b=0;b<O.length;b++){var T=O[b];if(T<0)break;T="data.contents."+T+".backstagePostThreadRenderer.comments";this.get(T)&&(this.get(T+".backstageCommentsRenderer.contents")&&this.push(T+".backstageCommentsRenderer.contents",{commentThreadRenderer:W}),this.get(T+".backstageCommentsRenderer.teaserContents")?
this.push(T+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:W}):this.set(T+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:W}]))}}};
_.d.addBackstageReplyAction=function(W){var O=this.get("addBackstageReplyAction.parentId",W);W=this.get("addBackstageReplyAction.renderer.commentRenderer",W);O&&W&&this.setCreatorReply(O,W)};
_.d.banAuthorAction=function(W){var O=this.get("banAuthorAction.commentId",W);O&&(W=this.get("banAuthorAction.parentCommentId",W)||this.getParentPostId(O),this.removeFromStream(O,W))};
_.d.hideReportedCommentAction=function(W){var O=this.get("hideReportedCommentAction.commentId",W);O&&((W=this.get("hideReportedCommentAction.parentCommentId",W))||(W=this.getParentPostId(O)),this.removeFromStream(O,W))};
_.d.replaceBackstageCommentAction=function(W){var O=this.get("replaceBackstageCommentAction.commentId",W),b=this.get("replaceBackstageCommentAction.parentId",W);W=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",W);if(O&&b&&W){b=this.postIdToIndices(b);for(var T=0;T<b.length;T++){var L=b[T];if(L<0)break;var h=this.commentIdToIndex(O,L,!1);if(h>=0){var Z=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h+".commentThreadRenderer.replies.commentRepliesRenderer");
Z&&(W.replies={commentRepliesRenderer:Z});this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",h,1,{commentThreadRenderer:W})}h=this.commentIdToIndex(O,L,!0);if(h>=0){if(Z=this.get("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(h+".commentThreadRenderer.replies.commentRepliesRenderer")))W.replies={commentRepliesRenderer:Z};this.splice("data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
h,1,{commentThreadRenderer:W})}}}};
_.d.replaceBackstagePostAction=function(W){var O=this.get("replaceBackstagePostAction.itemId",W);if(O){O=this.postIdToIndices(O);for(var b=0;b<O.length;b++){var T=O[b];if(T<0)break;var L=this.getPostRendererType(T),h=this.get("replaceBackstagePostAction.renderer."+L,W);if(!h&&L!=="sharedPostRenderer")break;var Z=!1;h||(Z=!0,h=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",W));if(!h)break;var a={};Z?(_.ky(a,KNH,h),this.set("data.contents."+T+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
a)):(_.ky(a,new _.J(L),h),this.set("data.contents."+T+".backstagePostThreadRenderer.post",a))}}};
_.d.replaceBackstageReplyAction=function(W){var O=this.get("replaceBackstageReplyAction.replyId",W),b=this.get("replaceBackstageReplyAction.parentId",W);W=this.get("replaceBackstageReplyAction.renderer.commentRenderer",W);O&&W&&b&&this.setCreatorReply(b,W)};
_.d.removeCommentAction=function(W){var O=this.get("removeCommentAction.commentId",W);if(O){var b=this.get("removeCommentAction.parentCommentId",W);b&&this.get("removeCommentAction.isCreatorReply",W)?this.setCreatorReply(b,void 0):(b||(b=this.getParentPostId(O)),this.removeFromStream(O,b))}};
_.d.setCreatorReply=function(W,O){var b=this.getParentPostId(W);if(b){b=this.postIdToIndices(b);for(var T=0;T<b.length;T++){var L=b[T];if(L<0)break;var h=this.commentIdToIndex(W,L,!1);if(h>=0){var Z="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+h;h=Z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";Z+=".commentThreadRenderer.replies";O==void 0?(this.set(Z,{}),this.set(h,!1)):(this.set(Z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:O}]}}),
this.set(Z+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(h,!0))}h=this.commentIdToIndex(W,L,!0);h>=0&&(h="data.contents."+L+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+h,L=h+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",h+=".commentThreadRenderer.replies",O==void 0?(this.set(h,{}),this.set(L,!1)):(this.set(h,{commentRepliesRenderer:{teaserContents:[{commentRenderer:O}]}}),this.set(L,!0)))}}};
_.d.removeFromStream=function(W,O){if(O){O=this.postIdToIndices(O);for(var b=0;b<O.length;b++){var T=O[b];if(T<0)break;var L=this.commentIdToIndex(W,T,!1);L>=0&&this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",L,1);L=this.commentIdToIndex(W,T,!0);L>=0&&this.splice("data.contents."+T+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",L,1);T="data.contents."+T+".backstagePostThreadRenderer.post.backstagePostRenderer";
L=T+".backstageAttachment.pollRenderer.votedCommentId";this.get(L)===W&&(this.set(L,null),this.set(T+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(O=this.postIdToIndices(W).reverse(),b=0;b<O.length;b++){T=O[b];if(T<0)break;L=this.getPostRendererType(T);var h=this.get("backstagePostThreadRenderer.post."+L,this.data.contents[T]);h.postId===W?this.splice("data.contents",T,1):L==="sharedPostRenderer"&&this.set("data.contents."+T+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);h.scheduledPublishTimeSec&&_.jx(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.d.postIdToIndices=function(W){for(var O=[],b=0;b<this.data.contents.length;b++){var T=this.getPostRendererType(b);this.get("backstagePostThreadRenderer.post."+T+".postId",this.data.contents[b])===W&&O.push(b);if(T==="sharedPostRenderer"){var L=this.get("backstagePostThreadRenderer.post."+T+".originalPost.backstagePostRenderer.postId",this.data.contents[b]);T=this.get("backstagePostThreadRenderer.post."+T+".originalPost.postRenderer.postId",this.data.contents[b]);L!==W&&T!==W||O.push(b)}}return O};
_.d.commentIdToIndex=function(W,O,b){if(O<0)return-1;var T,L,h,Z,a=_.P((T=this.data)==null?void 0:(L=T.contents)==null?void 0:(h=L[O])==null?void 0:(Z=h.backstagePostThreadRenderer)==null?void 0:Z.comments,pRH);return(O=b?a==null?void 0:a.teaserContents:a==null?void 0:a.contents)&&O.length?O.findIndex(function(m){return _.P(m,FNf).comment.commentRenderer.commentId===W}):-1};
_.d.getParentPostId=function(W){W=W.split(".");if(W[1])return W[0]};
_.d.getPostRendererType=function(W){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[W])?"sharedPostRenderer":"backstagePostRenderer"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],oA.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oA.prototype,"data",void 0);oA=_.t([_.G({disableElementRegistration:!0,is:"ytd-backstage-items"})],oA);
_.H(oA,"ytd-backstage-items",function(){if(y2w!==void 0)return y2w;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return y2w=
W},{mode:1});var Wav;_.v_({is:"ytd-comments",_template:function(){if(Wav!==void 0)return Wav;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Wav=W},
behaviors:[_.yzX.YtHostElementBehavior,_.Hw.YtPlayerListenerBehavior,_.F.YtRendererBehavior,_.WP.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,
value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)",
"headerChanged_(data.header)"],created:function(){this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_()},
contentsChanged_:function(W){W&&W.value&&W.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(W){W&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.sO("wn_comments");var W=_.Bb();W&&_.k0({clientScreenNonce:W},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(W){W=IVe(W);var O,b,T;if(W=(O=W)==null?void 0:(b=O.createCommentAction)==null?void 0:(T=b.contents)==null?void 0:T.commentThreadRenderer){var L,h,Z,a,m,w;!this.isBackstage&&((L=this.data)==null?0:(h=L.header)==null?0:(Z=h.commentsHeaderRenderer)==null?0:(a=Z.createRenderer)==null?0:(m=a.commentSimpleboxRenderer)==null?0:(w=m.zeroStep)==null?0:w.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var A,X,l,p;this.isBackstage&&((A=this.data)==null?0:(X=A.header)==null?0:(l=X.commentsHeaderRenderer)==null?0:(p=l.zeroStateMessage)==null?0:p.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(W)}},
doReplyInsert_:function(W,O,b,T){T?this.splice(W,T,0,O):this.push(W,O)},
getRepliesPath_:function(W){return"data.contents."+W+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(W,O){W=this.getRepliesPath_(W);return O?W+".commentRepliesRenderer.teaserContents":W+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(W){W=IVe(W);var O,b,T=(O=W)==null?void 0:(b=O.createCommentReplyAction)==null?void 0:b.parentCommentId,L,h;if(O=(L=W)==null?void 0:(h=L.createCommentReplyAction)==null?void 0:h.contents)if(T=this.commentIdToIndex_(T),!(T<0))if(L=this.getRepliesPath_(T),this.get(L)){var Z,a;W=(Z=W)==null?void 0:(a=Z.createCommentReplyAction)==null?void 0:a.replyToCommentId;Z=this.getRepliesContentsPath_(T,!1);this.get(Z)&&(a=this.get(Z).length,L=Z+"."+(a-1)+".continuationItemRenderer",
this.get(L+".button")?(L=this.replyIdToIndex_(W,T,!1),this.doReplyInsert_(Z,O,L,a-1)):this.get(L)||(a=this.replyIdToIndex_(W,T,!1),this.doReplyInsert_(Z,O,a,null)));Z=this.getRepliesContentsPath_(T,!0);this.get(Z)?(T=this.replyIdToIndex_(W,T,!0),(!W||T>=0)&&this.doReplyInsert_(Z,O,T,null)):this.set(Z,[O])}else this.set(L,{commentRepliesRenderer:{teaserContents:[O]}})},
hideReportedCommentAction_:function(W){var O,b=W==null?void 0:(O=W.hideReportedCommentAction)==null?void 0:O.commentId;if(b){var T;W=W==null?void 0:(T=W.hideReportedCommentAction)==null?void 0:T.parentCommentId;b=b.replace("#",".");W||(W=this.getParentCommentId_(b));this.remove_(b,W)}},
getParentCommentId_:function(W){W=W.split(".");if(W[1])return W[0]},
removeCommentAction_:function(W){var O,b=W==null?void 0:(O=W.removeCommentAction)==null?void 0:O.commentId;if(b){var T;W=W==null?void 0:(T=W.removeCommentAction)==null?void 0:T.parentCommentId;b=b.replace("#",".");W||(W=this.getParentCommentId_(b));this.remove_(b,W)}},
pinCommentAction_:function(W){W=IVe(W);var O,b,T=(O=W)==null?void 0:(b=O.pinCommentAction)==null?void 0:b.commentId;T&&(W=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",W))&&(this.remove_(T),this.insert_(W,!0))},
unpinCommentAction_:function(W){W=IVe(W);var O,b,T=(O=W)==null?void 0:(b=O.unpinCommentAction)==null?void 0:b.commentId;if(T){var L,h,Z;if(W=(L=W.unpinCommentAction)==null?void 0:(h=L.actionResult)==null?void 0:(Z=h.update)==null?void 0:Z.commentThreadRenderer)this.remove_(T),this.insert_(W)}},
banAuthorAction_:function(W){var O,b=W==null?void 0:(O=W.banAuthorAction)==null?void 0:O.commentId;if(b){var T;W=W==null?void 0:(T=W.banAuthorAction)==null?void 0:T.parentCommentId;b=b.replace("#",".");W||(W=this.getParentCommentId_(b));this.remove_(b,W)}},
commentIdToIndex_:function(W){var O;return W&&(O=this.data)!=null&&O.contents?this.data.contents.findIndex(function(b){var T,L;return W===((b==null?void 0:(T=b.commentThreadRenderer)==null?void 0:T.commentViewModel)&&((L=_.P(b.commentThreadRenderer.commentViewModel,if7))==null?void 0:L.commentId))}):-1},
insert_:function(W,O){var b,T;if((b=this.data)==null?0:(T=b.contents)==null?0:T.some(function(h){return!(h==null||!h.commentThreadRenderer)}))for(b=0,T=this.data.contents.length;b<T;b++){var L=this.data.contents[b].commentThreadRenderer;
if(this.RenderingPriority[W.renderingPriority]>=this.RenderingPriority[L.renderingPriority]){O&&this.RenderingPriority[W.renderingPriority]==this.RenderingPriority[L.renderingPriority]?this.splice("data.contents",b,1,{commentThreadRenderer:W}):this.splice("data.contents",b,0,{commentThreadRenderer:W});break}}else this.set("data.contents",[{commentThreadRenderer:W}])},
doReplyRemove_:function(W,O,b){W=this.replyIdToIndex_(W,O,b);W<0||(O=this.getRepliesContentsPath_(O,b),this.splice(O,W,1))},
remove_:function(W,O){O=this.commentIdToIndex_(O);O<0?(O=this.commentIdToIndex_(W),O<0||this.splice("data.contents",O,1)):(this.doReplyRemove_(W,O,!1),this.doReplyRemove_(W,O,!0))},
replyIdToIndex_:function(W,O,b){if(O<0)return-1;O=this.getRepliesContentsPath_(O,b);O=this.get(O);if(!O||!O.length)return-1;b=0;for(var T=O.length;b<T;b++){var L=void 0,h=void 0;if(((L=O[b])==null?void 0:(h=L.commentViewModel)==null?void 0:h.commentId)===W)return b}return-1},
computeIsBackstage_:function(W){return!!W},
tickForCommentsTimer_:function(W){_.ra(W,void 0,"wn_comments")},
reloadComments_:function(W){W&&W.reloadCommentsCommand&&W.reloadCommentsCommand.command&&W.reloadCommentsCommand.command.continuationCommand&&_.da(this,[W.reloadCommentsCommand.command])}});var Q5=function(){return _.A1.apply(this,arguments)||this};
_.R(Q5,_.A1);_.d=Q5.prototype;_.d.bindIf=function(W,O,b){return W?O:b};
_.d.bindIfDefined=function(W,O){return W!==void 0?W:O};
_.d.booleanString=function(W){return(!!W).toString()};
_.d.equals=function(){for(var W=_.PD.apply(0,arguments),O=W[0],b=1;b<W.length;b++)if(O!=W[b])return!1;return!0};
_.d.isGreaterThan=function(W,O){return W>O};
_.d.isLessThan=function(W,O){return W<O};
_.d.logicalAND=function(){for(var W=_.PD.apply(0,arguments),O=!!W[0],b=1;b<W.length;b++)O=O&&!!W[b];return O};
_.d.logicalOR=function(){for(var W=_.PD.apply(0,arguments),O=!!W[0],b=1;b<W.length;b++)O=O||!!W[b];return O};
_.d.toBool=function(W){return!!W};
Q5.prototype.toBool=Q5.prototype.toBool;Q5.prototype.logicalOR=Q5.prototype.logicalOR;Q5.prototype.logicalAND=Q5.prototype.logicalAND;Q5.prototype.isLessThan=Q5.prototype.isLessThan;Q5.prototype.isGreaterThan=Q5.prototype.isGreaterThan;Q5.prototype.equals=Q5.prototype.equals;Q5.prototype.booleanString=Q5.prototype.booleanString;Q5.prototype.bindIfDefined=Q5.prototype.bindIfDefined;Q5.prototype.bindIf=Q5.prototype.bindIf;Q5=_.t([_.XT()],Q5);_.Oif=[Q5.prototype];var iif;var bi5;var ki=function(){return _.n.apply(this,arguments)||this};
_.R(ki,_.n);ki.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
ki.prototype.onBackIconTap_=function(){window.history.back()};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ki.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ki.prototype,"data",void 0);ki=_.t([_.sl({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],ki);
_.H(ki,"yt-header-with-back-renderer",function(){if(bi5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;iif===void 0&&(iif=document.createElement("template"));var T=iif;b.call(O,T.content.cloneNode(!0),W.content.firstChild);bi5=W}W=bi5;return W},{mode:2});var j97;var Tz1;var sU=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(sU,_.n);_.d=sU.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W,this.setUrl())};
_.d.dataChanged=function(){var W=this;if(this.data){var O=this.setUrl();O&&_.uM({destination:window,iframe:this.iframe,origin:_.g$n(O.toString()),channelName:"yt-iframe",onMessage:function(b){(b=W.getCommunicationCommand(b.data))&&W.ytComponentBehavior.resolveCommand(b)},
onEstablished:function(){}})}};
_.d.setUrl=function(){if(this.data&&this.data.iframeUrl){var W=_.BO(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(W)return _.k4(this.iframe,W),W}};
_.d.getCommunicationCommand=function(W){var O;if((O=this.data)!=null&&O.onCommunicationCommandsMap){O=this.data.onCommunicationCommandsMap.find(function(L){return L.key===W});
if(O==null?0:O.value)return O==null?void 0:O.value;try{var b=KU7(_.w1(W)),T=this.data.onCommunicationCommandsMap.find(function(L){return L.key===(b==null?void 0:_.vk(b,1))});
if(T==null?0:T.value)return T==null?void 0:T.value}catch(L){}}};
sU.prototype.dataChanged=sU.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],sU.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],sU.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sU.prototype,"data",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],sU.prototype,"isDarkTheme",void 0);_.t([_.El("#iframe"),_.N("design:type",HTMLIFrameElement)],sU.prototype,"iframe",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sU.prototype,"dataChanged",null);sU=_.t([_.sl({is:"yt-iframe-renderer",disableElementRegistration:!0})],sU);
_.H(sU,"yt-iframe-renderer",function(){if(Tz1===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;j97===void 0&&(j97=document.createElement("template"));var T=j97;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Tz1=W}W=Tz1;return W},{mode:2});_.BY=function(W){_.R8.call(this);this.callback=W;this.bezier=new TE$(0,0,.4,0,.2,1,1,1);this.delay=new _.yM(this.next,window,this);this.JSC$14722_animating=!1;_.a8(this,this.delay)};
_.R(_.BY,_.R8);_.BY.prototype.isAnimating=function(){return this.JSC$14722_animating};
_.BY.prototype.start=function(W,O,b){this.config={from:W,to:O,duration:b,startTime:(0,_.WO)()};this.JSC$14722_animating=!0;this.next()};
_.BY.prototype.stop=function(){this.delay.stop();this.JSC$14722_animating=!1;this.config=void 0};
_.BY.prototype.next=function(){if(this.config){var W=this.config,O=W.from,b=W.to,T=W.duration;W=W.startTime;var L=(0,_.WO)()-W;W=this.bezier;T=ddn(W,L/T);if(T==0)W=W.y0;else if(T==1)W=W.y3;else{L=AN(W.y0,W.y1,T);var h=AN(W.y1,W.y2,T);W=AN(W.y2,W.y3,T);L=AN(L,h,T);h=AN(h,W,T);W=AN(L,h,T)}W=_.kq(W,0,1);this.callback(O+(b-O)*W);W<1?this.delay.start():this.JSC$14722_animating=!1}};_.ry=new _.MV("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Laf={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},hr$=function(W,O,b,T){_.R8.call(this);this.JSC$14730_miniAppId=W;this.localReleaseId=O;this.derivedDeviceInterface=b;this.isForeground=T;this.JSC$14730_playNonceResolver=new _.S4;this.playPingTimerId=NaN;this.playPingIntervalMs=_.Lu("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.Lu("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.e("enable_displaying_ppn");this.JSC$14730_miniAppClientDataProvider=_.iq().resolve(_.ry);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;dYL(this);var L=setTimeout(function(){_.z5(new _.pu("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14730_playNonceResolver.promise.then(function(){clearTimeout(L)})};
_.R(hr$,_.R8);var Zif=function(W,O){W.JSC$14730_playNonceResolver.resolve(O!=null?O:Q3(8));W.enableDisplayingPpn&&SDn(W).then(function(b){W.JSC$14730_miniAppClientDataProvider.clientData.set("post_play_nonce",b)})},SDn=function(W){return _.I(function(O){return O.nextAddress==1?_.Y(O,W.JSC$14730_playNonceResolver.promise,2):O.return(O.yieldResult)})},dYL=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$14730_playNonceResolver.promise,2);O=T.yieldResult;b={miniAppInfo:{externalPostId:W.JSC$14730_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:O,derivedDeviceInterface:W.derivedDeviceInterface}};_.k0(b);_.aD(T)})},aaf=function(W){W.state!==0?_.z5(new _.pu("[MiniAppPlayLogger] recordPlayStart failed with state "+Laf[W.state])):(W.state=1,D_(W,"ma_cl"),xi(W,"PLAY_EVENT_TYPE_PLAY_START"),Ia$(W))},mYv=function(W){W.isForeground=!1;
xi(W,"PLAY_EVENT_TYPE_PLAY_PAUSE")},YDN=function(W){W.state!==1&&W.state!==2?_.z5(new _.pu("[MiniAppPlayLogger] recordPlayEnd failed with state "+Laf[W.state])):(W.state=3,window.clearInterval(W.playPingTimerId),W.playPingTimerId=NaN,yET(),xi(W,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},ELU=function(W,O){W.state===2&&W.gameReady&&(W.firstClickRecorded?Date.now()-W.clickRecordedMs<W.playClickIntervalMs||(W.clickRecordedMs=Date.now(),xi(W,"PLAY_EVENT_TYPE_PLAY_CLICK")):O&&(D_(W,"ma_fua"),xi(W,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),W.firstClickRecorded=!0,W.clickRecordedMs=Date.now()))};
hr$.prototype.logError=function(W){var O=this,b;_.I(function(T){if(T.nextAddress==1)return W.metadata.externalPostId=O.JSC$14730_miniAppId,b=W.metadata,_.Y(T,Promise.race([O.JSC$14730_playNonceResolver.promise,new Promise(function(L){setTimeout(function(){L("")},3E4)})]),2);
b.postPlayNonce=T.yieldResult;W.metadata.localReleaseId=O.localReleaseId;W.loggingError.level="WARNING";_.Dt(W.loggingError,W.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:W.metadata});_.aD(T)})};
var wJf=function(W,O,b,T){var L,h,Z,a,m,w;_.I(function(A){if(A.nextAddress==1)return _.Y(A,W.JSC$14730_playNonceResolver.promise,2);L=A.yieldResult;h={externalPostId:W.JSC$14730_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:L,sdkVersion:b,api:O};T!==void 0&&(h.networkRequestsMeasurement={networkRequests:_.OV(T,1),cachedRequests:_.OV(T,2),transferredBytes:_.OV(T,3)},(Z=T)==null?0:_.Ys(Z,Mu,6))&&(h.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((a=_.bP(T,
Mu,6))==null?void 0:o6(a,1))||"0",cacheHits:((m=_.bP(T,Mu,6))==null?void 0:o6(m,2))||"0",cachedBytes:((w=_.bP(T,Mu,6))==null?void 0:o6(w,3))||"0"});_.BZ("miniAppSdkUsage",h);_.aD(A)})},XJ9=function(W,O,b){var T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f;
_.I(function(M){if(M.nextAddress==1)return _.Y(M,W.JSC$14730_playNonceResolver.promise,2);T=M.yieldResult;L={externalPostId:W.JSC$14730_miniAppId,localReleaseId:W.localReleaseId,postPlayNonce:T,sdkVersion:b,measurementWindow:{startTimestampMs:String(R6(O,1)),endTimestampMs:String(R6(O,2))},frameRate:{averageFrameTimeDeltaMs:Kf(O,3),averageFrameIdleTimeMs:Kf(O,4)}};_.Ys(O,us,5)&&(L.networkRequests={networkRequests:(h=ir(O))==null?void 0:_.OV(h,1),cachedRequests:(Z=ir(O))==null?void 0:_.OV(Z,2),transferredBytes:(a=
ir(O))==null?void 0:_.OV(a,3),sameOriginStatusCodeToCounts:Afn((m=ir(O))==null?void 0:OUO(m,4)),crossOriginStatusCodeToCounts:Afn((w=ir(O))==null?void 0:OUO(w,5))},(A=ir(O))==null?0:_.Ys(A,Mu,6))&&(L.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((X=ir(O))==null?void 0:(l=_.bP(X,Mu,6))==null?void 0:o6(l,1))||"0",cacheHits:((p=ir(O))==null?void 0:(K=_.bP(p,Mu,6))==null?void 0:o6(K,2))||"0",cachedBytes:((k=ir(O))==null?void 0:(r=_.bP(k,Mu,6))==null?void 0:o6(r,3))||"0"});_.Ys(O,
Usn,7)&&(L.gameCapture={averageFrameTimeDeltaMs:(q=_.bP(O,Usn,7))==null?void 0:Kf(q,1),averageFrameIdleTimeMs:(f=_.bP(O,Usn,7))==null?void 0:Kf(f,2)});_.BZ("miniAppPerformanceMetrics",L);_.aD(M)})},UYU=function(W,O,b){var T,L;
return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.JSC$14730_playNonceResolver.promise,2);T=h.yieldResult;L={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:W.JSC$14730_miniAppId,postPlayNonce:T,miniAppReleaseId:W.localReleaseId},derivedDeviceInterface:W.derivedDeviceInterface,adTriggerType:O};L.rejectedReason=b||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.BZ("miniAppAdEvent",L);_.aD(h)})};
hr$.prototype.disposeInternal=function(){_.R8.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var xi=function(W,O,b,T){b=b===void 0?{}:b;T=T===void 0?!1:T;var L,h,Z,a;_.I(function(m){if(m.nextAddress==1)return L=W.isForeground,h=W.beforeReady,_.Y(m,W.JSC$14730_playNonceResolver.promise,2);Z=m.yieldResult;a={externalPostId:W.JSC$14730_miniAppId,localReleaseId:W.localReleaseId,derivedDeviceInterface:W.derivedDeviceInterface,postPlayNonce:Z,type:O};b.sequenceGroup=Z;a.playState=h?"PLAY_STATE_NOT_READY":L?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.BZ("miniAppPlayEvent",a,b);
T&&_.re();_.aD(m)})},D_=function(W,O){var b;
_.I(function(T){if(T.nextAddress==1)return b=(0,_.WO)(),_.Y(T,W.JSC$14730_playNonceResolver.promise,2);_.Bg(O,b);_.aD(T)})},Ia$=function(W){isNaN(W.playPingTimerId)&&(W.playPingTimerId=_.Ie(function(){W.state!==1&&W.state!==2?_.z5(new _.pu("[MiniAppPlayLogger] reportPlayPing failed with state "+Laf[W.state])):xi(W,"PLAY_EVENT_TYPE_PLAY_PING")},W.playPingIntervalMs))},Afn=function(W){return Array.from(W.entries()).map(function(O){var b=_.S(O);
O=b.next().value;b=b.next().value;return{key:O,value:b}})};var lan=_.Lu("show_mini_app_ad_frequency_cap_ms",0),erS=function(){this.showAdIntervalMs=lan;this.isRateLimited=!0},Paf=function(W,O){setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
W.showMiniAppAdCommand=O.showMiniAppAdCommand;W.isEmbeddedInWebview=O.isEmbeddedInWebview;W.playLogger=O.playLogger},Rr9=function(W,O){var b;
return _.I(function(T){if(T.nextAddress==1){if(!W.showMiniAppAdCommand||!W.isEmbeddedInWebview)return T.return(pJw(W,O,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(W.isRateLimited)return T.return(pJw(W,O,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));W.adResolver=new _.S4;b=fAH(new nlS,O);CF(W.showMiniAppAdCommand,Gpw(b));W.isRateLimited=!0;setTimeout(function(){return W.isRateLimited=!1},W.showAdIntervalMs);
return _.Y(T,W.adResolver.promise,2)}return T.return(T.yieldResult)})};
erS.prototype.onAdFinished=function(W){W=cIq(W);var O;(O=this.adResolver)==null||O.resolve(W)};
var pJw=function(W,O,b){var T;return _.I(function(L){if(L.nextAddress==1)L=_.Y(L,(T=W.playLogger)==null?void 0:UYU(T,AO8(O),b),2);else{var h=L.return;var Z=new JIw;Z=_.jq(Z,1,2);L=h.call(L,Z)}return L})};var Ka$=new _.MV("INNERTUBE_MANAGER_TOKEN");var vLn=function(){this.callbacks={}};
vLn.prototype.initialize=function(W){var O=this;this.callbacks=W;window.youtubewebview?window.youtubewebview.onmessage=function(b){gLN(O,b)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(b){gLN(O,b)})};
var gLN=function(W,O){if(O.data)try{var b=KU7(O.data);if(_.fU(_.mD(b,1))!=null){var T=rNf(_.vk(b,2));switch(_.vk(b,1)){case "yt-mini-app-load-audio-state":var L,h;(h=(L=W.callbacks).onAudioStateLoaded)==null||h.call(L,_.pf(T,eN(T,vX,1)));break;case "yt-mute-mini-app":var Z,a;(a=(Z=W.callbacks).onMuteMiniApp)==null||a.call(Z);break;case "yt-unmute-mini-app":var m,w;(w=(m=W.callbacks).onUnmuteMiniApp)==null||w.call(m);break;case "yt-playable-exit":var A,X;(X=(A=W.callbacks).onExit)==null||X.call(A);
break;case "yt-post-play-nonce":var l,p;(p=(l=W.callbacks).onPostPlayNonceReceived)==null||p.call(l,QK(T,2,vX));break;case "yt-confirm-exit-mini-app":var K,k;(k=(K=W.callbacks).confirmExitMiniApp)==null||k.call(K);break;case "yt-confirm-exit-mini-app-edu":var r,q;(q=(r=W.callbacks).confirmExitMiniAppEdu)==null||q.call(r);break;case "yt-benchmarking-response":var f,M;(M=(f=W.callbacks).onNativeBenchmarkingMessageReceived)==null||M.call(f,QK(T,2,vX));break;case "yt-mini-app-load-3p-consent-state":var V,
jQ;(jQ=(V=W.callbacks).multiplayer3pAckStateLoaded)==null||jQ.call(V,_.pf(T,eN(T,vX,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var y,d8;(d8=(y=W.callbacks).exitMiniAppSeenStateLoaded)==null||d8.call(y,_.pf(T,eN(T,vX,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var pE,Qh;(Qh=(pE=W.callbacks).onNavigateToNewMiniApp)==null||Qh.call(pE);break;case "yt-game-data-available":var KE,fE;(fE=(KE=W.callbacks).onGameDataAvailable)==null||fE.call(KE,QK(T,2,vX));break;case "yt-pause-mini-app":var r8,
nE;(nE=(r8=W.callbacks).onPauseMiniApp)==null||nE.call(r8);break;case "yt-resume-mini-app":var tX,yh;(yh=(tX=W.callbacks).onResumeMiniApp)==null||yh.call(tX);break;case "yt-playable-ad-finished":var Gw,KH;(KH=(Gw=W.callbacks).onAdFinished)==null||KH.call(Gw,QK(T,2,vX))}}else _.z5(Error("Rh"))}catch(h9){_.Dt(Error("Sh"))}else _.z5(Error("Th"))};var UOX=function(W){this.rpcErrorCode=W};var zC=function(W,O,b){this.intervalMs=W;this.apiFunc=O;this.type=b;this.schedulerReady=!0};
zC.prototype.call=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1){if(O.type!==1&&W===O.cachedValue)return T.return();O.pendingApiRequestResolver||(O.pendingApiRequestResolver=new _.S4);b=O.pendingApiRequestResolver.promise;O.cachedValue=W;return _.Y(T,oL7(O),2)}return T.return(b)})};
zC.prototype.flush=function(W){W=W===void 0?!1:W;var O=this;return _.I(function(b){return O.cachedValue===void 0?b.return():_.Y(b,O.apiFunc(O.cachedValue,W),0)})};
var oL7=function(W){var O,b,T;return _.I(function(L){switch(L.nextAddress){case 1:if(!W.schedulerReady||!W.pendingApiRequestResolver)return L.return();W.schedulerReady=!1;O=W.pendingApiRequestResolver;W.pendingApiRequestResolver=void 0;_.LI(L,2);if(W.cachedValue===void 0){L.jumpTo(4);break}return _.Y(L,W.apiFunc(W.cachedValue),5);case 5:b=L.yieldResult,O.resolve(b);case 4:_.H3(L,3);break;case 2:T=_.ID(L),O.reject(T);case 3:setTimeout(function(){return _.I(function(h){W.schedulerReady=!0;return _.Y(h,
oL7(W),0)})},W.intervalMs),_.aD(L)}})};var P48=window.location.origin+"/miniapp_cloudsaves",lVe=[400,401],Q9w=_.Lu("cloud_save_game_data_rate_limit_ms",3E3),Bz9=function(W){var O=this;this.JSC$14774_miniAppId=W;this.loadAttempts=0;this.cloudSaveIntervalMs=Q9w;this.initialDownloadDataSucceeded=!1;this.JSC$14774_playNonceResolver=new _.S4;this.scottyUploadRateLimiter=new zC(this.cloudSaveIntervalMs,function(b,T){return k6v(O,b,T)},2);
this.downloadDataPromise=s97(this);this.downloadDataPromise.then(function(){O.initialDownloadDataSucceeded=!0}).catch(function(){})},rff=function(W,O){O.then(function(b){return W.JSC$14774_playNonceResolver.resolve(b)})},DY1=function(W){return _.I(function(O){return W.cachedData===void 0?O.return(W.downloadDataPromise):O.return(W.cachedData)})},xYw=function(W,O){return _.I(function(b){W.cachedData=O;
if(!W.initialDownloadDataSucceeded)throw Error("Uh");return _.Y(b,W.scottyUploadRateLimiter.call(O),0)})},zrU=function(){return new Promise(function(W){setTimeout(W,1E3,"")})},Ca5=function(W,O){var b,T;
return _.I(function(L){if(L.nextAddress==1)return b=W.JSC$14774_miniAppId,_.Y(L,Promise.race([W.JSC$14774_playNonceResolver.promise,zrU()]),2);T={"X-YouTube-MiniAppId":b,"X-YouTube-PostPlayNonce":L.yieldResult};"DELEGATED_SESSION_ID"in _.Dk&&DyX(O,T);return L.return(T)})},k6v=function(W,O,b){b=b===void 0?!1:b;
return _.I(function(T){return X68()?_.e("enable_cloud_save_error_popup_after_retry")?T.return(new Promise(function(L,h){var Z,a,m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:Z=0,a=!0,w=m=null;case 2:if(!(a&&Z++<2)){X.jumpTo(4);break}_.LI(X,5);return _.Y(X,qDn(W,O,b),7);case 7:m=X.yieldResult;a=m.ok?!1:!lVe.includes(m.status);_.H3(X,2);break;case 5:w=A=_.ID(X);a=eJO(w);X.jumpTo(2);break;case 4:m?m.ok?(C$(W,Q9w),L()):(C$(W,W.cloudSaveIntervalMs*2),h(Error("Vh`"+String(m.status),{cause:{rpcErrorCode:m.status}}))):
(C$(W,W.cloudSaveIntervalMs*2),h(w||Error("Wh"))),_.aD(X)}})})):T.return(new Promise(function(L,h){var Z,a;
return _.I(function(m){if(m.nextAddress==1){if(W.JSC$14774_miniAppId==="")return h(Error("Xh")),m.return();_.LI(m,2);return _.Y(m,qDn(W,O,b),4)}if(m.nextAddress!=2)return Z=m.yieldResult,Z.ok?(C$(W,Q9w),L()):(C$(W,W.cloudSaveIntervalMs*2),h(Error("Vh`"+String(Z.status),{cause:{rpcErrorCode:Z.status}}))),_.H3(m,0);a=_.ID(m);C$(W,W.cloudSaveIntervalMs*2);h(a);_.aD(m)})})):T.return()})},qDn=function(W,O,b){b=b===void 0?!1:b;
var T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return T=_.WM((new TextEncoder).encode(O)),L=p68(),_.Y(Z,Ca5(W,L),2);h=Z.yieldResult;return Z.return(fetch(L,{method:"POST",body:new Blob([T]),headers:h,keepalive:b}))})},s97=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1){if(!X68())return T.return("");if(W.JSC$14774_miniAppId==="")throw Error("Xh");if(W.loadAttempts>2)return T.return(W.downloadDataPromise);_.LI(T,2);return _.Y(T,nL9(W),4)}if(T.nextAddress!=2)return O=T.yieldResult,T.return(O);b=_.ID(T);if(eJO(b)&&++W.loadAttempts<2)return T.return(s97(W));throw b;})},nL9=function(W){var O,b,T,L,h;
return _.I(function(Z){switch(Z.nextAddress){case 1:return _.LI(Z,2),O=p68(),_.Y(Z,Ca5(W,O),4);case 4:return b=Z.yieldResult,_.Y(Z,fetch(O,{method:"GET",headers:b}),5);case 5:return T=Z.yieldResult,T.ok?_.Y(Z,T.text(),6):Z.return(Promise.reject(Error("Yh`"+String(T.status),{cause:new UOX(T.status)})));case 6:return L=Z.yieldResult,Z.return((new TextDecoder).decode(_.w1(L)));case 2:return h=_.ID(Z),Z.return(Promise.reject(h))}})},C$=function(W,O){W.cloudSaveIntervalMs=O;
W.scottyUploadRateLimiter.intervalMs=W.cloudSaveIntervalMs};
Bz9.prototype.flush=function(){var W=this;return _.I(function(O){return W.initialDownloadDataSucceeded?_.Y(O,W.scottyUploadRateLimiter.flush(!0),0):O.return()})};var fa9=WX(yX(1),cL(1)),G6$=WX(yX(1),cL(3)),qD=function(W){this.callbacks=W};
_.d=qD.prototype;_.d.onAudioToggled=function(W,O){(O===void 0||O)&&_.ju("yt-mini-app-is-audio-enabled",W,2592E3)};
_.d.onPause=function(){this.onAudioToggled(!1,!1)};
_.d.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.d.returnNativeBenchmarkingMessage=function(){};
_.d.sendGameData=function(){};
_.d.sendStartGameFrameCapture=function(){};
var RJq=function(W,O,b){this.callbacks=W;var T=this;this.sdkVersion=new _.S4;this.channel=new CcO(_.uM({destination:window,iframe:O,origin:(new URL(b.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var L=n$;var h=yX(5);var Z=new L9f;Z=_.s3(Z,1,1E4);h=_.Tb(h,4,Y8$,Z);L(T,h);T.onAudioToggled(T.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){T.sdkVersion.resolve("")},1E4)};
_.R(RJq,qD);_.d=RJq.prototype;_.d.onAudioToggled=function(W,O){qD.prototype.onAudioToggled.call(this,W,O===void 0?!0:O);O=n$;var b=yX(2),T=new jyw;W=_.TP(T,1,W);W=_.Tb(b,3,Y8$,W);O(this,W)};
_.d.onPause=function(){qD.prototype.onPause.call(this);n$(this,yX(3))};
_.d.onResume=function(){qD.prototype.onResume.call(this);n$(this,yX(4))};
_.d.returnNativeBenchmarkingMessage=function(W){var O=n$,b=yX(6);var T=cL(_.Ys(W,Gp,1)?1:2);W=_.Ys(W,Gp,1)?W:null;T=_.Tb(T,5,Fr,W);O(this,WX(b,T))};
_.d.sendGameData=function(W){var O=n$,b=yX(7);W=_.Tb(b,5,Y8$,W);O(this,W)};
_.d.sendStartGameFrameCapture=function(){n$(this,yX(9))};
var f$=function(W,O,b){var T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return T=W.callbacks,L=T.onSdkCalled,h=O,_.Y(Z,W.sdkVersion.promise,2);L.call(T,h,Z.yieldResult,b);_.aD(Z)})};
RJq.prototype.onMessage=function(){var W=this;return fJQ(br,function(O){var b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE,Qh,KE,fE,r8,nE,tX,yh,Gw,KH,h9,I7,T1,Y$,aR,f0,SQ,R7,zw,G1,k$,Nz,NE,XU;return _.I(function(u1){switch(u1.nextAddress){case 1:if(!pt$(O.data))return _.z5(Error("Zh")),u1.return();b=_.gQ(O.data,1);_.e("enable_iframe_message_get_type_via_fields")&&(T=O.data,b=L=_.gQ(T,1));switch(b){case 8:if(O.data.hasMetadata()){var pH=W.sdkVersion,IN=pH.resolve;var vN=O.data.getMetadata();vN=_.vk(vN,
1);IN.call(pH,vN);clearTimeout(W.sdkVersionTimeoutId)}break;case 6:return u1.jumpTo(2);case 16:if(!_.E3(O.data,ATN,14,jX))return u1.return();h=_.ks(O.data,ATN,14,jX);(a=(Z=W.callbacks).onGameFrameReceived)==null||a.call(Z,h);return u1.return();case 17:if(!_.E3(O.data,wtw,15,jX))return u1.return();(w=(m=W.callbacks).onGameAudioReceived)==null||w.call(m,_.ks(O.data,wtw,15,jX));return u1.return();case 1:if(pH=_.ks(O.data,S8z,2,jX))switch(_.gQ(pH,1)){case 1:W.callbacks.onFirstFrameReady();if(_.e("enable_network_request_logging_on_game_events")&&
_.Ys(pH,us,4)){f$(W,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.bP(pH,us,4));break}f$(W,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(vN=(IN=W.callbacks).onGameReady)==null||vN.call(IN);if(_.e("enable_network_request_logging_on_game_events")&&_.Ys(pH,us,4)){f$(W,"MINI_APP_SDK_API_GAME_READY",_.bP(pH,us,4));break}f$(W,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.E3(pH,Ju,3,ZFH))W.callbacks.onResourceLoaded(_.ks(pH,Ju,3,ZFH))}return u1.return();case 3:return u1.jumpTo(3);case 4:return u1.jumpTo(4);
case 2:return u1.jumpTo(5);case 9:return u1.jumpTo(6);case 10:return W.callbacks.onClick(),u1.return();case 5:return u1.jumpTo(7);case 11:if(!_.E3(O.data,VX,9,jX))return u1.return();A=_.ks(O.data,VX,9,jX);(l=(X=W.callbacks).onBenchmarkingMessageReceived)==null||l.call(X,A);pH=O.reply;IN=yX(1);vN=cL(1);var lk=new VX;var ZG=new Uint8Array(dFh(A,eN(A,yI1,6))|0);lk=YG(lk,5,yI1,_.HN(ZG,!1));vN=_.Tb(vN,5,Fr,lk);pH.call(O,WX(IN,vN));return u1.return();case 12:return u1.jumpTo(8);case 13:return u1.jumpTo(9);
case 15:if(!_.e("enable_open_yt_content"))return O.reply(G6$),u1.return();if(!_.E3(O.data,ENf,12,jX))return O.reply(WX(yX(1),cL(2))),u1.return();pH=_.ks(O.data,ENf,12,jX);p=_.vk(pH,1);W.callbacks.onOpenYTContent(p);O.reply(fa9);return u1.return();case 14:return u1.jumpTo(10);default:return u1.return()}u1.jumpTo(0);break;case 2:if(!_.E3(O.data,O2,5,jX))return u1.return();IN=O.data;pH=eN(IN,jX,5);IN=IN.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(pH=kh(IN,IN[_.Qq]|0,O2,pH))||(pH=O2[V2])||
(pH=new O2,r1(pH.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),pH=O2[V2]=pH);K=pH;pH=_.yr(K,Nu,1,_.W5());k=_.S(pH);r=k.next();case 12:if(r.done){u1.jumpTo(14);break}q=r.value;f=new _.pu;f.level=_.gQ(q,2)===1?"WARNING":"ERROR";M=vfE(q.getSource());return _.Y(u1,W.sdkVersion.promise,15);case 15:V={source:M,sdkVersion:u1.yieldResult};_.KU(_.mD(q,6))!=null?(f.message=q.getMessage(),f.stack=_.vk(q,5),V.sdkErrorType=gf2(_.gQ(q,6)),_.KU(_.mD(q,7))!=null&&(V.sdkApi=ofX(_.gQ(q,7)))):f.stack=void 0;
y=jQ=void 0;(y=(jQ=W.callbacks).onError)==null||y.call(jQ,{loggingError:f,metadata:V});r=k.next();u1.jumpTo(12);break;case 14:return u1.return();case 3:return _.LI(u1,16),pH=W.callbacks,IN=pH.onSave,vN=_.ks(O.data,T6S,4,jX),vN=_.vk(vN,1),_.Y(u1,IN.call(pH,vN),18);case 18:O.reply(fa9);_.H3(u1,17);break;case 16:return d8=_.ID(u1),pE=qs,Qh=d8,KE=W.callbacks,fE="MINI_APP_SDK_API_SAVE_DATA",_.Y(u1,W.sdkVersion.promise,19);case 19:pE(Qh,KE,fE,u1.yieldResult),O.reply(G6$);case 17:return _.Y(u1,f$(W,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return u1.return();case 4:return _.LI(u1,21),_.Y(u1,W.callbacks.onLoad(),23);case 23:r8=u1.yieldResult;pH=O.reply;IN=yX(1);vN=cL(1);lk=new T6S;lk=_.aG(lk,1,r8);vN=_.Tb(vN,3,Fr,lk);pH.call(O,WX(IN,vN));_.H3(u1,22);break;case 21:return nE=_.ID(u1),tX=qs,yh=nE,Gw=W.callbacks,KH="MINI_APP_SDK_API_LOAD_DATA",_.Y(u1,W.sdkVersion.promise,24);case 24:tX(yh,Gw,KH,u1.yieldResult),O.reply(G6$);case 22:return _.Y(u1,f$(W,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return u1.return();case 5:_.LI(u1,
26);W.callbacks.onSendHighScore(x6(_.ks(O.data,eKL,3,jX).getValue()));O.reply(WX(yX(1),cL(1)));_.H3(u1,27);break;case 26:return h9=_.ID(u1),I7=qs,T1=h9,Y$=W.callbacks,aR="MINI_APP_SDK_API_SEND_SCORE",_.Y(u1,W.sdkVersion.promise,28);case 28:I7(T1,Y$,aR,u1.yieldResult),O.reply(G6$);case 27:return _.Y(u1,f$(W,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return u1.return();case 6:if(!_.E3(O.data,P3S,8,jX)){u1.jumpTo(30);break}pH=_.ks(O.data,P3S,8,jX);pH=_.gQ(pH,1);return _.Y(u1,f$(W,ofX(pH)),30);case 30:return u1.return();
case 7:return pH=O.reply,IN=yX(1),vN=cL(1),lk=W.callbacks.getLanguage(),vN=YG(vN,4,Fr,nU(lk)),pH.call(O,WX(IN,vN)),_.Y(u1,f$(W,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return u1.return();case 8:if(!_.E3(O.data,lvv,10,jX))return u1.return();f0=_.ks(O.data,lvv,10,jX);SQ=W.callbacks;R7=SQ.onSdkPerformanceUpdate;return _.Y(u1,W.sdkVersion.promise,33);case 33:return R7.call(SQ,f0,u1.yieldResult),u1.return();case 9:pH=O.data;IN=eN(pH,jX,11);if(_.fU(_.mD(pH,IN))==null)return O.reply(WX(yX(1),cL(2))),
u1.return();zw=QK(O.data,11,jX);W.callbacks.onShareInviteCode(zw);O.reply(fa9);return _.Y(u1,f$(W,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return u1.return();case 10:if(_.E3(O.data,bFq,13,jX)){u1.jumpTo(35);break}return _.Y(u1,W.callbacks.onShowMiniAppAd(2),36);case 36:return G1=u1.yieldResult,O.reply(WX(yX(1),avN(G1))),_.Y(u1,f$(W,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return u1.return();case 35:pH=_.ks(O.data,bFq,13,jX);a:switch(_.gQ(pH,1)){case 1:pH={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:pH={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:pH={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}k$=pH;Nz=k$.adType;NE=k$.sdkApi;pH=W.callbacks;IN=pH.onShowMiniAppAd;vN=_.ks(O.data,bFq,13,jX);vN=_.vk(vN,2);return _.Y(u1,IN.call(pH,Nz,vN||void 0),38);case 38:return XU=u1.yieldResult,O.reply(WX(yX(1),avN(XU))),_.Y(u1,f$(W,NE),39);case 39:return u1.return()}})})};
var n$=function(W,O){_.I(function(b){W.channel.send(O);_.aD(b)})},Ht=function(W,O,b){this.callbacks=W;
var T=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;W=dAO(O,(new URL(b.toString())).origin);this.gameSnacks=new Wi2(W);this.gameSnacks.page.onReady(function(){T.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){T.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var L,h;(h=(L=T.callbacks).onGameReady)==null||h.call(L)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(L,h){try{T.callbacks.onSendHighScore(h)}catch(Z){qs(Z,T.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(L,h){var Z;return _.I(function(a){if(a.nextAddress==1)return _.LI(a,2),_.Y(a,T.callbacks.onSave(T.decoder.decode(h)),4);if(a.nextAddress!=2)return _.H3(a,0);Z=_.ID(a);qs(Z,T.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return a.return()})});
this.gameSnacks.storage.onLoad(function(){var L,h;return _.I(function(Z){if(Z.nextAddress==1)return _.LI(Z,2),_.Y(Z,T.callbacks.onLoad(),4);if(Z.nextAddress!=2)return L=Z.yieldResult,Z.return(T.encoder.encode(L));h=_.ID(Z);qs(h,T.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return Z.return(T.encoder.encode(""))})});
this.gameSnacks.init()};
_.R(Ht,qD);Ht.prototype.onAudioToggled=function(W,O){qD.prototype.onAudioToggled.call(this,W,O===void 0?!0:O);var b;(b=this.gameSnacks)==null||b.audio.update(W)};
Ht.prototype.onPause=function(){qD.prototype.onPause.call(this);var W;(W=this.gameSnacks)==null||W.game.pause()};
Ht.prototype.onResume=function(){qD.prototype.onResume.call(this);var W;(W=this.gameSnacks)==null||W.game.resume()};var Hiv=QtX,tgU=_.J1(function(W){var O=W.data;var b=W.loadingProgress;W=_.S(_.wu("",void 0,"LYYTdd"));var T=W.next().value,L=W.next().value;W=_.S(_.wu(!1,void 0,"K0waae"));var h=W.next().value,Z=W.next().value,a=[],m=function(){return"transform: scaleX("+(_.ru(b)||0)+")"},w=null,A=function(){var K;
return(K=O()&&w)!=null?K:w=O().showAnniversaryAnimation?6:Hiv()};
_.kb(function(){var K;if(O().timeOutMessages&&((K=O().timeOutMessages)==null?0:K.length)){w=null;K=_.S(a);for(var k=K.next();!k.done;k=K.next())clearTimeout(k.value);a.length=0;kWi(O().timeOutMessages,a,L,Z)}});
var X=function(){return!!O().persistentErrorMessageTitle},l=function(){return b!==void 0},p=function(){return O().title};
return _.E("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.E("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.E("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.E("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var K,k=(K=O().backgroundImage)==null?void 0:K.sources,r;return(k==null?0:k.length)?"background-image: url("+((r=k[0])==null?void 0:r.url)+")":
""}}),_.E("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.E(_.U,{cond:function(){return!X()},
then:function(){var K={};return _.E("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.E("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.E(_.E1,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+A()},
data:function(){var k="loading_animation_"+A();return{animationConfig:{name:k,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+k+".json",loop:!0,autoplay:!0}}}})),_.E("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.E(_.U,{cond:p,
then:function(){return _.E("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},p)}}),_.E("p",{class:_.YS("mini-app-splash-screen-view-model-wiz__timeout-message",(K["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return h()},K)),
"aria-live":"polite"},T),_.E(_.U,{cond:l,then:function(){return _.E("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.E("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:m}))}})))}}),_.E(_.U,{cond:X,
then:function(){return _.E("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.E("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return O().persistentErrorMessageTitle}),_.E(_.U,{cond:function(){return!!O().persistentErrorMessageDescription},
then:function(){return _.E("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return O().persistentErrorMessageDescription})}}))}})))},"Ld");var $Yq=new _.MV("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var Vgz=yH;yH=function(W){function O(b){if(b){var T,L;(T=b.__spec)==null||(L=T.didUnmount)==null||L.call(T);for(T=0;T<b.childNodes.length;T++)O(b.childNodes[T])}}
Vgz==null||Vgz(W);gG(function(){for(var b=0;b<W.length;b++)O(W[b])})};var Nz1=_.J1(function(W){var O=W.data;var b=W.score;var T=W.formattedScore;var L=W.onScoreChanged;var h=W.isEmbeddedInWebview;var Z=_.J8(),a=function(){var p;return _.P(O==null?void 0:(p=O())==null?void 0:p.buttonViewModel,_.Kp)},m=function(){var p;
return(b==null?void 0:b())||Number(O==null?void 0:(p=O())==null?void 0:p.lastScore)||0},w=function(){var p;
return(T==null?void 0:T())||((p=a())==null?void 0:p.title)||""},A,X=1;
if(W=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))W=Number(W),X=isNaN(W)?1:W/100;_.kb(function(){L==null||L(m());var p;var K=_.xy((p=a())==null?void 0:p.onTap);if(K){p=_.P(K,$uU);var k,r,q;p=_.P(p==null?void 0:(k=p.panelLoadingStrategy)==null?void 0:(r=k.inlineContent)==null?void 0:(q=r.dialogViewModel)==null?void 0:q.customContent,H4H)}else p=void 0;if(k=p)k.score=w()});
W=_.XL(function(){var p,K,k=O==null?void 0:(p=O())==null?void 0:(K=p.loggingDirectives)==null?void 0:K.trackingParams;k&&_.dk(_.iq().resolve(_.ef),k);return!1});
_.kX(function(){if(Z.value){var p=Z.value.querySelector("button"),K=a();p&&K&&st1(p,K);WB("yt-share-playable-with-high-score",function(){var k=m().toString(),r=O==null?void 0:O().onShareHighScoreCommand,q=O==null?void 0:O().highScoreShareClientParamIdentifier,f=h==null?void 0:h();r&&(f?(q=new ruz,k=_.aG(q,2,k),CF(r,k.JSC$10273_serializeBinary())):q&&(_.iq().resolve($Yq).clientParams.set(q,{miniAppClientParams:{highScore:k}}),Yde(r,!1)))})}});
var l=function(){var p=a();p&&(b==null?0:b())&&p.accessibilityText&&(p.accessibilityText=p.accessibilityText.replace(A,w()));A=w();return{numberValue:m(),numberText:w(),heightPx:36,fontSizeMultiplier:X,shouldAnimate:!(b==null||!b())&&!0}};
return _.E("yt-mini-app-score-button-view-model",{class:function(){var p={};return _.wd("mini-app-score-button-view-model-wiz",(p["mini-app-score-button-view-model-wiz--is-visible"]=m()!==0,p))},
el:Z,"on:click":W},Fu(!1,function(){return _.E("span",{style:"display:none;"},m)}),_.E(_.R4,{data:function(){var p;
return O==null?void 0:(p=O())==null?void 0:p.buttonViewModel}},{buttonViewModel:function(p){return _.E(_.DO,{data:p.data,
animatedTextProps:l})}}))},"Md");var FaL=_.J1(function(W){var O,b=(O=_.Tz("yt-mini-app-is-theater-mode-enabled"))!=null?O:!1,T=_.e("enable_playable_container_save_button"),L=_.e("enable_play_next_destination_page_in_toolbar");O={};return _.E("ytm-mini-app-top-bar-view-model",null,_.E("div",{class:_.YS("yt-mini-app-top-bar-view-model",(O["yt-mini-app-top-bar-view-model--mobile"]=!1,O["yt-mini-app-top-bar-view-model--desktop"]=!0,O))},_.E("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.E(_.U,{cond:function(){var h;
return!!W.data().backButtonEdu&&!((h=W.isExitMiniAppSeen)==null?0:h.call(W))},
then:function(){return _.E(_.R4,{data:function(){return W.data().backButtonEdu}},{buttonViewModel:_.DO})},
else:function(){return _.E(_.R4,{data:function(){return W.data().backButton}},{buttonViewModel:_.DO})}}),_.E(_.U,{cond:function(){return W.data().viewAllButton&&!0},
then:function(){return _.E(_.R4,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.DO})}}),_.E(_.U,{cond:function(){return W.data().title&&!0},
then:function(){return _.E("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return W.data().title})}})),_.E("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.E(_.U,{cond:function(){var h;
return(h=W.isDesktopPlayPage)==null?void 0:h.call(W)},
then:function(){return _.E(_.TT,null,_.E(MgL,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview}),_.E(u7H,{enableSaveButton:function(){return _.ru(T)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.E(Jfw,{menuButton:function(){return W.data().menuButton}}))},
else:function(){return _.E(_.U,{cond:function(){return!1},
then:function(){return _.E(_.R4,{data:function(){return W.data().playPageButton}},{buttonViewModel:function(h){return _.E(_.DO,{data:h.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.E(MgL,{highScoreButton:function(){return W.data().highScoreButton},
score:W.score,formattedScore:W.formattedScore,onScoreChanged:W.onScoreChanged,isEmbeddedInWebview:W.isEmbeddedInWebview})}})}})),_.E("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.E(_.R4,{data:function(){return W.data().muteButton}},{toggleButtonViewModel:function(h){var Z=h.data;
return _.E(_.gt,{data:function(){var a,m;return Object.assign({},Z(),{isToggled:(m=(a=W.isAudioEnabled)==null?void 0:a.call(W))!=null?m:!0})},
onToggle:W.onAudioToggled,useOutlinedIcon:!0})}}),_.E(_.R4,{data:function(){return W.data().theatreModeButton}},{toggleButtonViewModel:function(h){var Z=h.data;
return _.E("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.E(_.gt,{data:function(){return Object.assign({},Z(),{isToggled:b})},
useOutlinedIcon:!0}))}}),_.E(cf7,{fullscreenButton:function(){return W.data().fullscreenButton}}),_.E(_.U,{cond:function(){return _.ru(L)&&W.data().viewAllButton&&!1},
then:function(){return _.E(_.R4,{data:function(){return W.data().viewAllButton}},{buttonViewModel:_.DO})}}),_.E(_.U,{cond:function(){var h;
return!((h=W.isDesktopPlayPage)==null?0:h.call(W))},
then:function(){return _.E(_.TT,null,_.E(u7H,{enableSaveButton:function(){return _.ru(T)},
saveButton:function(){return W.data().saveButton},
isSaved:W.isSaved,onSaveToggled:function(){return W.onSaveToggled}}),_.E(Jfw,{menuButton:function(){return W.data().menuButton}}))}}))))},"Nd");
FaL.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Jfw=_.J1(function(W){return _.E(_.R4,{data:W.menuButton},{buttonViewModel:_.DO})},"Od"),u7H=_.J1(function(W){var O=W.enableSaveButton;
var b=W.saveButton;var T=W.isSaved;var L=W.onSaveToggled;return _.E(_.U,{cond:function(){return O()&&!(b==null||!b())},
then:function(){return _.E(_.R4,{data:function(){var h=_.P(b==null?void 0:b(),_.vm),Z;return{toggleButtonViewModel:Object.assign({},h,{isToggled:(Z=T==null?void 0:T())!=null?Z:!(h==null||!h.isToggled)})}}},{toggleButtonViewModel:function(h){return _.E(_.gt,{data:h.data,
onToggle:L})}})}})},"Pd"),MgL=_.J1(function(W){var O=W.highScoreButton;
var b=W.score;var T=W.formattedScore;var L=W.onScoreChanged;var h=W.isEmbeddedInWebview;return _.E(_.R4,{data:O},{miniAppScoreButtonViewModel:function(Z){return _.E(Nz1,{data:Z.data,score:b,formattedScore:T,onScoreChanged:L,isEmbeddedInWebview:h})}})},"Qd"),cf7=_.J1(function(W){W=W.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.E(_.TT,null):_.E(_.R4,{data:W},{buttonViewModel:_.DO})},"Rd");_.yfH=new _.MV("DESKTOP_CURRENT_PAGE");var TxH=_.J1(function(W){var O=W.data;var b=_.e("force_active_time_logging_webview"),T=_.e("skip_logs_after_end_event"),L=!1,h=new vLn,Z=void 0,a=void 0,m=_.iq().resolve(Ka$),w=new erS,A=void 0,X=void 0,l=[],p=void 0,K=void 0,k=!1,r=!1,q=!1,f=!1,M=new _.S4,V=_.iq().resolve($Yq),jQ=_.iq().resolve(_.ry),y=_.iq().resolve(_.OT(mK)),d8,pE=(d8=_.iq().resolve(_.OT(_.yfH)))==null?void 0:d8.getCurrentPage(),Qh=!1,KE=0,fE=function(FO){FO.preventDefault();return FO.returnValue=""},r8;
W=_.S(_.wu(!((r8=_.Tz("yt-mini-app-is-audio-enabled"))!=null&&!r8),void 0,"HPBZTb"));var nE=W.next().value,tX=W.next().value,yh;r8=_.S(_.wu(!((yh=_.Tz("exit-mini-app-seen-state"))==null||!yh),void 0,"kLuFyc"));var Gw=r8.next().value,KH=r8.next().value;yh=_.S(_.wu(!1,void 0,"o1PbLc"));var h9=yh.next().value,I7=yh.next().value;yh=_.S(_.wu(void 0,void 0,"YlqNme"));var T1=yh.next().value,Y$=yh.next().value;yh=_.S(_.wu(void 0,void 0,"AeYJne"));var aR=yh.next().value,f0=yh.next().value;yh=_.S(_.wu(!0,void 0,
"aEz9qb"));var SQ=yh.next().value,R7=yh.next().value;yh=_.S(_.wu(!1,void 0,"bcquyc"));var zw=yh.next().value,G1=yh.next().value;yh=_.S(_.wu(void 0,void 0,"FMAC5b"));var k$=yh.next().value,Nz=yh.next().value;yh=_.S(_.wu(0,void 0,"HUGJEb"));var NE=yh.next().value,XU=yh.next().value,u1=_.uy(),pH=function(){return O().isEmbeddedInWebview},IN=function(){return O().hasPlayNextShelf};
WB("yt-page-type-changed",function(FO){if(_.e("enable_is_mini_app_page_active_bugfix"))FO.detail.newPageSubtype!=="mini_app"&&SQ()&&ZG();else if(FO=_.Wei()==="mini_app",FO!==SQ())if(R7(FO),FO){var Ag;FO=(Ag=O().playableId)==null?void 0:Ag.toString();FO!==void 0&&window.location.href.includes(FO)&&!r&&(f=!0,vN(),S5(m8.value))}else FO||ZG()});
WB("yt-action",function(FO){FO.detail.actionName==="yt-engagement-panel-visible-changed"&&FO.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&FO.detail.args[2]==="PAmini_app_panel"&&ZG();_.e("enable_is_mini_app_page_active_bugfix")?FO.detail.actionName==="yt-history-load"&&!SQ()&&(pE==null?0:pE.active)?(R7(!0),vN(),S5(m8.value)):FO.detail.actionName==="yt-history-load"&&SQ()&&!O().isEmbeddedInWebview&&X0():SQ()&&FO.detail.actionName==="yt-history-load"&&(f?f=!1:O().isEmbeddedInWebview||X0())});
_.so(function(){lk()});
_.kb(function(){vN()});
var vN=function(){var FO=O().playableId,Ag=O().localReleaseId,eB=O().derivedDeviceInterface;if(r)_.z5(new _.pu("[MiniAppContainerViewModel] onEnter was called more than once"));else{r=!0;Z=new hr$(FO,Ag,eB,document.visibilityState==="visible");aaf(Z);a=new Bz9(FO);WS7(m,FO);Paf(w,{showMiniAppAdCommand:O().showMiniAppAdCommand,isEmbeddedInWebview:O().isEmbeddedInWebview,playLogger:Z});lui()&&(K=document.body.style.backgroundColor,_.kl(document.body,"background-color","black"));xh();Uv();M=new _.S4;
if(O().isEmbeddedInWebview){if(FO=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Zif(Z,FO),Qh=!0;h.initialize({onAudioStateLoaded:function(st){lN(st)},
onMuteMiniApp:function(){lN(!1)},
onUnmuteMiniApp:function(){lN(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(st){Qh||(Zif(Z,st),Qh=!0)},
confirmExitMiniApp:function(){var st,Dd,T9;return _.I(function(nS){if(nS.nextAddress==1)return O().confirmExitMiniAppCommand?_.Y(nS,Promise.race([M.promise,Promise.resolve(!1)]),2):nS.return();(st=nS.yieldResult)?!O().confirmExitMiniAppCommandEdu||(T9=(Dd=Gw)==null?void 0:Dd())!=null&&T9?zK(O().confirmExitMiniAppCommand):(zK(O().confirmExitMiniAppCommandEdu),_.ju("exit-mini-app-seen-state","true",2592E6)):zK(O().closeMiniAppCommand);_.aD(nS)})},
onNativeBenchmarkingMessageReceived:function(st){st=OF7(_.mK8(st));if(_.E3(st,_.zo,3,Fof)){var Dd=_.ks(st,_.zo,3,Fof),T9=Efe();var nS=x6(T9.getSeconds())-x6(Dd.getSeconds());Dd=_.OV(T9,2)-_.OV(Dd,2);nS<0&&Dd>0?(nS+=1,Dd-=1E9):nS>0&&Dd<0&&(--nS,Dd+=1E9);nS=(new Gp).setSeconds(nS);nS=_.vM(nS,2,_.v9(Dd),0);_.jL(st,1,nS)}var A$;(A$=X)==null||A$.returnNativeBenchmarkingMessage(st)},
multiplayer3pAckStateLoaded:function(st){X0(st)},
exitMiniAppSeenStateLoaded:function(st){O().confirmExitMiniAppCommandEdu&&KH(st)},
onNavigateToNewMiniApp:function(){zK(O().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(st){st=new URLSearchParams(st);var Dd=void 0;st.has("invite_code")&&(Dd=new hK1,st=st.get("invite_code"),Dd=_.aG(Dd,1,st));if(st=Dd){var T9;(T9=X)==null||T9.sendGameData(st)}},
onPauseMiniApp:function(){L=!0;Zf()},
onResumeMiniApp:function(){L=!0;H9()},
onAdFinished:function(st){w.onAdFinished(st)}});
O().showMultiplayer3pConsentDialogCommand||M.resolve(!0);zK(O().onContainerReadyCommand)}else Zif(Z),M.resolve(!0);rff(a,SDn(Z));SDn(Z).then(function(st){st={miniAppPlayData:{postPlayNonce:st}};var Dd,T9=(Dd=O().loggingDirectives)==null?void 0:Dd.trackingParams;T9&&_.A4().stateChanged(T9,st)});
FO=O().showSignInDialogCommand;!X68()&&FO&&(_.ju("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),zK(FO));O().confirmExitMiniAppCommand&&y&&(FO=aV8(O().confirmExitMiniAppCommand))&&(y.customConfirmationCommand=FO)}},lk=function(){if(!T||r)K&&_.kl(document.body,"background-color",K),k=!1,p&&p.release(),a.flush().catch(function(FO){_.z5(FO)}),m.flush().catch(function(FO){_.z5(FO)}),YDN(Z),M9(),X=void 0,T&&(r=!1),OX$(V)},ZG=function(){R7(!1);
lk();I7(!1);Nz(void 0);Y$(void 0);f0(void 0);KE=0;XU(0);T||(r=!1)},Zf=function(){var FO;
(FO=X)==null||FO.onPause();p&&p.release();a.flush().catch(function(Ag){_.z5(Ag)});
m.flush().catch(function(Ag){_.z5(Ag)});
mYv(Z)},H9=function(){var FO;
(FO=X)==null||FO.onResume();Uv();FO=Z;FO.isForeground=!0;xi(FO,"PLAY_EVENT_TYPE_PLAY_RESUME")},lN=function(FO){var Ag;
(Ag=X)==null||Ag.onAudioToggled(FO);tX(FO)},X0=function(FO){O().showMultiplayer3pConsentDialogCommand&&(O().isEmbeddedInWebview&&FO!==void 0&&M.resolve(FO),!FO&&_.Wei()==="mini_app"&&zK(O().showMultiplayer3pConsentDialogCommand))},t9=function(){var FO,Ag,eB,st;
return _.I(function(Dd){if(Dd.nextAddress==1){if(T&&!r)return Dd.return();!O().isLivestream||O().disableVideoCapture||(FO=X)!=null&&FO.sendStartGameFrameCapture();Ag=(new URL(window.location.href)).searchParams;if(Ag.has("invite_code")){var T9=new hK1,nS=Ag.get("invite_code");eB=_.aG(T9,1,nS);(st=X)==null||st.sendGameData(eB)}h9()||(I7(!0),T9=Z,T9.state!==1?_.z5(new _.pu("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Laf[T9.state])):(_.hL("mini_app_ids_without_game_ready").includes(T9.JSC$14730_miniAppId)&&
(T9.gameReady=!0),T9.state=2,T9.beforeReady=!1,D_(T9,"ma_ffr"),xi(T9,"PLAY_EVENT_TYPE_PLAY_READY")));return _.Y(Dd,M.promise,2)}zK(O().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();O().isEmbeddedInWebview||X0();_.aD(Dd)})},wg=function(){var FO=Z;
FO.gameReady=!0;D_(FO,"ma_gr")},y2=function(FO){var Ag;
return _.I(function(eB){if(eB.nextAddress==1)return _.LI(eB,2),_.Y(eB,xYw(a,FO),4);if(eB.nextAddress!=2)return _.H3(eB,0);Ag=_.ID(eB);zK(O().showSavingErrorPopupCommand);throw Ag;})},m7=function(){var FO,Ag;
return _.I(function(eB){if(eB.nextAddress==1)return _.LI(eB,2),_.Y(eB,DY1(a),4);if(eB.nextAddress!=2)return FO=eB.yieldResult,eB.return(FO);Ag=_.ID(eB);zK(O().showLoadingErrorDialogCommand);throw Ag;})},xX=function(FO){Z.logError(FO)},EM=function(FO,Ag,eB){wJf(Z,FO,Ag,eB)},jJ=function(FO,Ag){XJ9(Z,FO,Ag)},Um=function(){!b&&O().isEmbeddedInWebview||_.iy();
ELU(Z,!0);k||(window.addEventListener("beforeunload",fE,{capture:!0}),k=!0)},rC=function(FO){var Ag,eB,st,Dd,T9,nS,A$;
return _.I(function(zB){if(zB.nextAddress==1)return m&&(!A||A<FO)&&FO>0?_.Y(zB,iXn(m,FO),3):zB.jumpTo(0);Ag=zB.yieldResult;eB=_.S(Ag);st=eB.next().value;Dd=eB.next().value;T9=st;nS=Dd;((A$=T9)==null?0:A$.displayString)&&nS&&(Y$(nS),f0(T9.displayString));_.aD(zB)})},h3=function(FO){var Ag=O().onBenchmarkingMessageReceivedCommand;
if(Ag){var eB=Efe();_.Tb(FO,3,Fof,eB);CF(Ag,iF5(FO))}},eQ=function(FO){var Ag=O().onGameFrameReceivedCommand;
if(Ag){var eB=new nlS;var st=new xa9;var Dd=R6(FO,1);st=_.pB(st,1,Dd);FO=_.vk(FO,2);FO=_.aG(st,2,FO);eB=_.jL(eB,2,FO);CF(Ag,Gpw(eB))}},Di=function(FO){var Ag=O().onGameAudioDataReceivedCommand;
if(Ag){var eB=new nlS;var st=new CQ7;FO=_.vk(FO,1);st=_.aG(st,1,FO);eB=_.jL(eB,4,st);CF(Ag,Gpw(eB))}},H2=function(){var FO=new URLSearchParams(window.location.search);
if(O().isEmbeddedInWebview&&FO&&FO.get("override_hl")==="true"&&FO.get("hl"))return FO.get("hl");FO=document.documentElement.lang;return FO!==""?FO:_.qX},A9=function(FO){var Ag=O().onShareInviteCodeCommand;
if(Ag)if(O().isEmbeddedInWebview){var eB=new ruz;FO=_.aG(eB,1,FO);CF(Ag,xuz(FO))}else eB=O().inviteCodeShareClientParamIdentifier,V.clientParams.set(eB,{miniAppClientParams:{inviteCode:FO}}),zK(Ag)},LU=function(FO){var Ag,eB,st;
return _.I(function(Dd){if(Dd.nextAddress==1)return Ag=O().onMiniAppOpenYtContentRequested,m&&_.e("enable_open_yt_content")&&Ag?_.Y(Dd,bXH(m,FO),3):Dd.jumpTo(0);eB=Dd.yieldResult;if(eB==="OK")if(O().isEmbeddedInWebview){var T9=new sBf;st=YG(T9,2,vX,nU(FO));CF(Ag,Da1(st))}else jQ.clientData.set("video_id",FO),zK(Ag);_.aD(Dd)})},oR=function(FO){KE+=_.OV(FO,3);
FO=Math.min(Math.log(1+KE/15E6*9)/Math.log(10),.99);XU(FO);aN(FO)},aN=_.Ei(function(FO){var Ag=O().updateLoadingProgressCommand;
if(Ag){var eB=new sBf;FO=YG(eB,3,vX,_.ZP(FO));CF(Ag,Da1(FO))}},100),e5=function(FO){return Rr9(w,FO)},Uv=function(){var FO,Ag;
((FO=_.nji())==null?void 0:(Ag=FO.wakeLock)==null?void 0:Ag.request)!=null&&_.nji().wakeLock.request("screen").then(function(eB){p=eB}).catch(function(){})},m8=_.uy();
_.kb(function(){O().isSupportedCountry&&(X68()||_.e("enable_sign_in_promo")||!O().showSignInDialogCommand?S5(m8.value):zK(O().onMiniAppReadyCommand))});
var p0=function(){return _.E("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return h9()?0:-1},
el:m8})},S5=function(FO,Ag){Ag=Ag===void 0?!1:Ag;
var eB=UB();eB&&(Ag||eB.toString()!==FO.getAttribute("src"))&&(X=KkX(O().source,{isAudioEnabled:nE,onFirstFrameReady:t9,onGameReady:wg,onSave:y2,onLoad:m7,onError:xX,onSdkCalled:EM,onSdkPerformanceUpdate:jJ,onClick:Um,onSendHighScore:rC,onBenchmarkingMessageReceived:h3,getLanguage:H2,onShareInviteCode:A9,onResourceLoaded:oR,onOpenYTContent:LU,onShowMiniAppAd:e5,onGameFrameReceived:eQ,onGameAudioReceived:Di},FO,eB),lj(FO,"load",function(){D_(Z,"ma_il");lj(FO,"load",function(){S5(FO,!0)})}),_.k4(FO,
eB))},UB=function(){var FO=O().url;
if(FO&&(FO=_.BO(FO),FO!==null)){if(O().source&&O().source==="MINI_APP_SOURCE_GAMESNACKS")FO=_.WQ(FO,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.e("enable_origin_query_parameter_bugfix")){var Ag=_.Rd(_.F6O(FO.toString()));Ag=new URLSearchParams(Ag||"");Ag.set("origin",window.location.origin);Ag=Ag.toString();FO=_.Zd(FO).toString();FO=_.SL(p2q.exec(FO)[0]+(Ag.trim()?"#"+Ag:""))}return FO}},gD=function(){var FO={};
FO=_.YS("yt-mini-app-container-view-model__loading-screen",(FO["yt-mini-app-container-view-model__loading-screen--fade-out"]=h9,FO));var Ag=function(){return h9()?1:NE()};
return _.E("div",{class:FO},_.E(_.R4,{data:function(){return O().splashScreen}},{miniAppSplashScreenViewModel:function(eB){return _.E(tgU,{data:eB.data,
loadingProgress:Ag})}}))},xh=function(){l=[];
l.push(_.Rx(window,"visibilitychange",function(){q||L&&pH()||(document.visibilityState==="visible"?H9():Zf())}));
l.push(_.Rx(window,"pagehide",function(){lk()}));
l.push(_.Rx(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&u1.value.dispatchEvent(new Event("tap"))},0)}));
l.push(_.Rx(u1.value,"pointerdown",function(){ELU(Z,!1)},!0));
l.push(_.Rx(u1.value,"pause",function(){q=!0;Zf()}));
l.push(_.Rx(u1.value,"play",function(){q=!1;H9()}));
l.push(_.Rx(u1.value,"exit",function(){lk()}));
var FO=navigator.keyboard,Ag=FO&&FO.lock;l.push(_.Rx(window,pg7,function(){G1(KMv());KMv()?(O().hasPlayNextShelf&&I8("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Bh("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),Ag&&FO.lock(["Escape"])):(O().hasPlayNextShelf&&Bh("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),I8("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),Ag&&FO.unlock())}));
O().showMultiplayer3pConsentDialogCommand&&l.push(_.Rx(window,"yt-playables-ack-3p-data-usage",function(){jo9(m)}));
O().confirmExitMiniAppCommandEdu&&l.push(_.Rx(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ju("exit-mini-app-seen-state","true",2592E6)}))},M9=function(){l.forEach(function(FO){eD(FO)});
window.removeEventListener("beforeunload",fE,{capture:!0})},zK=function(FO){FO&&Yde(FO,O().isEmbeddedInWebview||!1)},Bh=function(FO,Ag){FO=_.S(u1.value.getElementsByClassName(FO));
for(var eB=FO.next();!eB.done;eB=FO.next())eB.value.classList.add(Ag)},I8=function(FO,Ag){FO=_.S(u1.value.getElementsByClassName(FO));
for(var eB=FO.next();!eB.done;eB=FO.next())eB.value.classList.remove(Ag)};
return function(){var FO={};FO=_.YS("yt-mini-app-container-view-model",(FO["yt-mini-app-container-view-model--desktop"]=!0,FO["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return O().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},FO["yt-mini-app-container-view-model--ios-web-view"]=lui(),FO["yt-mini-app-container-view-model--no-top-bar"]=function(){return!O().topBar},FO["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return O().hasPlayNextShelf},FO["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return O().hasPlayNextShelf},FO["yt-mini-app-container-view-model--show-peek-below"]=function(){return!zw()&&O().hasPlayNextShelf},FO));
var Ag={};Ag=_.YS("yt-mini-app-container-view-model__content",(Ag["yt-mini-app-container-view-model__content--desktop-content"]=!0,Ag["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return O().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Ag["yt-mini-app-container-view-model--desktop-play-page"]=function(){return O().hasPlayNextShelf},Ag));
return _.E("mini-app-container-view-model",{el:u1},_.E("div",{class:FO},_.E(_.U,{cond:function(){return O().topBar&&!zw()},
then:function(){return _.E(_.R4,{data:function(){return O().topBar}},{miniAppTopBarViewModel:function(eB){return _.E(FaL,{data:eB.data,
isAudioEnabled:nE,onAudioToggled:function(st){lN(st)},
score:T1,formattedScore:aR,onScoreChanged:function(st){A=st},
isEmbeddedInWebview:pH,isSaved:k$,onSaveToggled:function(st){Nz(st)},
isExitMiniAppSeen:Gw,isDesktopPlayPage:IN})}})}}),_.E("div",{class:Ag},_.E(_.U,{cond:SQ,
then:function(){return p0()}}),_.E(_.U,{cond:function(){return!O().isEmbeddedInWebview},
then:function(){return gD()}}))))}()},"Sd");
TxH.idomCompat=!0;_.O1(TxH,"mini-app-container-view-model",{props:{data:_.te}});var LSS=_.J1(function(W){var O=W.data;return _.E("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.E("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.XL(function(){var b=O().onTap;b&&_.nb(b)})},_.E(_.U,{cond:function(){return O().icon},
then:function(b){return _.E(_.Ps,{icon:function(){return b().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.E("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return O().title})))},"Td");
LSS.idomCompat=!0;var dxz=_.J1(function(W){var O=_.uy(),b=_.S(_.wu(void 0,void 0,"kFCJ0c")),T=b.next().value,L=b.next().value;b=_.S(_.wu(void 0,void 0,"PIPgWd"));var h=b.next().value,Z=b.next().value;b=_.S(_.wu(void 0,void 0,"rV66ob"));var a=b.next().value,m=b.next().value,w=function(){var q=T();return q!==void 0?Math.abs(q):void 0},A=function(){var q=w();
return q===void 0||q<=3},X=function(){var q=w();
var f=h(),M=a();q=q!==void 0&&f!==void 0&&M!==void 0?f-M-q:void 0;return q===void 0||q<=3},l=function(q){O.value&&O.value.scrollBy({top:0,
left:(_.Cv("HTML_DIR")==="rtl"?-1:1)*q*O.value.clientWidth,behavior:"smooth"})},p=function(){var q;
L((q=O.value)==null?void 0:q.scrollLeft);var f;Z((f=O.value)==null?void 0:f.scrollWidth);var M;m((M=O.value)==null?void 0:M.clientWidth)},K=function(){l(-.5)},k=function(){l(.5)};
b=_.XL(function(){p()});
_.oW(function(){p();if(O.value){var q=new ResizeObserver(p);q.observe(O.value);_.so(function(){q.disconnect()})}});
var r={};return _.E("yt-sponsorships-scrollable-shelf",{class:_.YS("ytdSponsorshipsScrollableShelfHost",W.className)},_.E("div",{class:_.YS("ytdSponsorshipsScrollableShelfContent",(r.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return W.data().previousButton&&W.data().nextButton&&!A()&&!X()},r.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return W.data().previousButton&&!A()&&X()},r.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return W.data().nextButton&&
A()&&!X()},r)),
el:O,"on:scroll":b},W.children),_.E(_.U,{cond:function(){return!A()},
then:function(){return _.E(_.R4,{data:function(){return W.data().previousButton}},{buttonViewModel:function(q){return _.E(_.DO,{data:q.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:K})}})}}),_.E(_.U,{cond:function(){return!X()},
then:function(){return _.E(_.R4,{data:function(){return W.data().nextButton}},{buttonViewModel:function(q){return _.E(_.DO,{data:q.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:k})}})}}))},"Ud");
dxz.idomCompat=!0;var SEv=_.J1(function(W){var O=W.data;W={};return _.E("yt-sponsorships-hub",{class:_.YS("ytdSponsorshipsHubHost",(W.ytdSponsorshipsHubHostIndented=function(){return O().indented},W))},_.E("div",{class:"ytdSponsorshipsHubHeader"},_.E("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.E("div",{class:"ytdSponsorshipsHubAvatar"},_.E(_.R4,{data:function(){return O().avatar}},{avatarViewModel:_.KF})),_.E(_.U,{cond:function(){return O().badgeImage},
then:function(b){return _.E("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.E("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.E("div",{class:"ytdSponsorshipsHubBadge"},_.E(_.uj,{data:b,targetWidth:24,targetHeight:24,alt:""}))))}})),_.E("div",{class:"ytdSponsorshipsHubDetails"},_.E("div",{class:"ytdSponsorshipsHubTierName"},function(){return O().tierName}),_.E("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return O().membershipType}),_.E("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return O().membershipDurationOrExpiry})),_.E("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.E(_.R4,{data:function(){return O().manageButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.E(_.R4,{data:function(){return O().actionMenuButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.E("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return O().perksTitle}),_.E(dxz,{data:function(){return{previousButton:O().previousPerkButton,
nextButton:O().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.E("div",{class:"ytdSponsorshipsHubPerkCards"},_.E(_.R4,{data:function(){return O().perkCards}},{sponsorshipsHubPerkCardViewModel:LSS}),_.E(_.U,{cond:function(){return O().viewAllPerksButton},
then:function(b){return _.E(hy9,{data:b})}}))))},"Vd");
SEv.idomCompat=!0;var hy9=_.J1(function(W){var O=W.data;return _.E("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.E(_.R4,{data:function(){return O().button}},{buttonViewModel:_.DO}),_.E("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.E("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return O().title}),_.E("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return O().subtitle})))},"Wd");
hy9.idomCompat=!0;_.O1(SEv,"yt-sponsorships-hub",{props:{data:_.te}});_.ZXU=_.J1(function(W){var O=W.data;return _.E("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.eE({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var b;return((b=O().badgeCutoutRadius)!=null?b:14)+"px"}})},_.E("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.E(_.R4,{data:function(){return O().startAvatar}},{avatarViewModel:_.KF}),_.E(_.R4,{data:function(){return O().endAvatar}},{avatarViewModel:_.KF})),_.E(_.R4,{data:function(){return O().badge}},{contentPreviewImageViewModel:function(b){return _.E("div",
{class:"ytDualAvatarViewModelBadge"},_.E(_.Fi,{data:b.data}))}}))},"Xd");
_.ZXU.idomCompat=!0;var ag$=_.J1(function(W){var O=W.data;var b,T=!((b=_.iq().resolve(_.OT(_.t4)))==null||!b());W=_.Pj(function(){var A,X,l=T?(A=O().header)==null?void 0:A.backgroundColorDarkMode:(X=O().header)==null?void 0:X.backgroundColorLightMode;if(l!==void 0)return _.C_(l)},void 0,"UX2G6c");
b=_.Pj(function(){var A,X;return T?(A=O().header)==null?void 0:A.backgroundImagePart1Dark:(X=O().header)==null?void 0:X.backgroundImagePart1Light},void 0,"GPAi1d");
var L=_.Pj(function(){var A,X;return T?(A=O().header)==null?void 0:A.backgroundImagePart2Dark:(X=O().header)==null?void 0:X.backgroundImagePart2Light},void 0,"nboJld"),h=_.Pj(function(){return _.Cv("HTML_DIR")==="rtl"},void 0,"LGJceb"),Z=_.uy(),a=!1,m=function(){var A=Z.value;
if(A&&!a){var X,l=(X=A.parentElement)==null?void 0:X.parentElement;if(l)for(A=A.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),X=0;X<A.length;++X){var p=A[X];if(p instanceof HTMLElement){l.scrollTo({top:p.offsetTop+p.clientHeight/2-l.clientHeight/2,behavior:"smooth"});a=!0;break}}}};
_.kX(function(){var A=Z.value;if(A){var X=new ResizeObserver(m);X.observe(A);_.so(function(){X.disconnect()})}});
var w={};return _.E("yt-sponsorships-perks-list",{el:Z,class:_.YS("ytdSponsorshipsPerksListHost",(w.ytdSponsorshipsPerksListHorizontalPadding=function(){return O().horizontalPaddingEnabled},w))},_.E("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.E("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.eE({"background-color":W})},_.E("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.E(_.U,{cond:b,then:function(A){var X={};return _.E("div",{class:_.YS((X.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=T,X.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!T,X.ytdSponsorshipsPerksListFlipped=h,X))},_.E(_.uj,{data:A,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.E("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.E(_.U,{cond:L,
then:function(A){var X={};return _.E("div",{class:_.YS((X.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=T,X.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!T,X.ytdSponsorshipsPerksListFlipped=h,X))},_.E(_.uj,{data:A,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.E("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.E(_.R4,{data:function(){var A;
return(A=O().header)==null?void 0:A.dualAvatar}},{dualAvatarViewModel:_.ZXU})))),_.E("div",{class:"ytdSponsorshipsPerksListBody"},_.E("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return O().title}),_.E(_.U,{cond:function(){return O().perks},
then:function(A){return _.E(_.pv,{each:A},function(X,l){var p={};return _.E("div",{class:_.YS("ytdSponsorshipsPerksListPerkContainer",(p.ytdSponsorshipsPerksListSelectedPerk=function(){var K=l(),k=O().selectedPerkIndex;return K===k},p))},_.E(_.U,{cond:function(){return l()>0},
then:function(){return _.E("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.E("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.E(_.U,{cond:function(){return X.icon},
then:function(K){return _.E(_.Ps,{icon:function(){return K().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.E("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.E("div",{class:"ytdSponsorshipsPerksListPerkTitle"},X.title),_.E("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.E(_.uw,{text:X.description})),_.E(_.U,{cond:function(){return X.instructions},
then:function(){var K,k;return _.E("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.E("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(K=X.instructions)==null?void 0:K.title),_.E("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.E(_.uw,{text:(k=X.instructions)==null?void 0:k.text})))}}))),_.E(_.U,{cond:function(){return X.emoji},
then:function(K){return _.E("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.E(_.pv,{each:function(){return K()}},function(k){return _.E(_.uj,{data:k,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.E(IgS,{data:X}))})}})))},"Yd");
ag$.idomCompat=!0;var IgS=_.J1(function(W){var O=W.data;var b=function(Z,a){return Z===a},T=function(){var Z=O();
Z=_.P(Z==null?void 0:Z.badgesShelf,n2v);return Z!==void 0&&Z!==null?Z:{previousButton:{},nextButton:{}}},L=_.J8(),h=function(){var Z=L.value;
if(Z){var a=Z.parentElement;if(a){Z=Z.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var m=0;m<Z.length;++m){var w=Z[m];if(w instanceof HTMLElement){a.scrollTo({left:w.offsetLeft+w.clientWidth/2-a.clientWidth/2,behavior:"instant"});break}}}}};
_.kX(function(){var Z=L.value;if(Z){var a=new ResizeObserver(h);a.observe(Z);_.so(function(){a.disconnect()})}});
return _.E("div",null,_.E(_.U,{cond:function(){return O().badges},
then:function(Z){return _.E(dxz,{data:T},_.E("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:L},_.E(_.pv,{each:function(){return Z()}},function(a,m){var w={},A={},X={};
return _.E("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.E(_.U,{cond:function(){return m()>0},
then:function(){return _.E("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.E("div",{class:_.YS("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return b(m(),O().currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!b(m(),O().currentBadgeIndex)},w))},_.E("div",{class:_.YS("ytdSponsorshipsPerksListLoyaltyBadge",(A.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return b(m(),
O().currentBadgeIndex)},A.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!b(m(),O().currentBadgeIndex)},A))},_.E(_.U,{cond:function(){return a.image},
then:function(l){var p={};return _.E("div",{class:_.YS((p.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return b(m(),O().currentBadgeIndex)},p.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!b(m(),O().currentBadgeIndex)},p))},_.E(_.uj,{data:l,
alt:""}))}})),_.E("div",{class:_.YS("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(X.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return b(m(),O().currentBadgeIndex)},X))},a.title)))})))}}))},"Zd");
IgS.idomCompat=!0;_.O1(ag$,"yt-sponsorships-perks-list",{props:{data:_.te}});_.O1(_.J1(function(W){return _.E("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.E(_.U,{cond:function(){return W.data().image},
then:function(O){return _.E(_.uj,{className:"ytwFantasyEmptyStateViewModelImage",data:O,ariaHidden:!0,alt:""})}}),_.E(_.uw,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return W.data().title}}),_.E(_.uw,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return W.data().subtitle}}),_.E(_.R4,{data:function(){return W.data().primaryButton}},{buttonViewModel:function(O){return _.E(_.DO,{data:O.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"$d"),"ytw-fantasy-empty-state-view-model",{props:{data:_.te}});var mxq;var BRP=_.lw({buttonRenderer:_.fA});_.bO(rOO);_.Z3(rOO,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var GC=function(){var W=_.n.apply(this,arguments)||this;W.hideJoinButtonBeforeSubscribed=_.e("hide_join_button_before_subscribed");W.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return W};
_.R(GC,_.n);_.d=GC.prototype;
_.d.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"}}}};
_.d.updateJoinButtonOverrides=function(){var W,O;(W=_.Q(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(O=W.polymerController)==null||O.set("overrides",this.joinButtonOverrides);if(W=_.Q(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))W.overrides=this.joinButtonOverrides};
_.d.handleButtonRefreshAction=function(W){if(W=_.P(W,ZDL))this.set("data.membershipButton",W.membershipButton),this.notifyPath("data.membershipButton")};
_.d.onYtServiceRequestError=function(W){_.yU(this.hostElement,W.detail.error.message)};
_.d.handleUnsubscribeAction=function(){var W,O,b;((W=this.data)==null?void 0:(O=W.membershipButton)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.style)==="STYLE_PRIMARY"&&_.Q(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Jq.Object.defineProperties(GC.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.subscriptionStateEntity)==null||!W.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.data)==null?void 0:W.membershipButton,b;W=(O==null?void 0:O.buttonRenderer)||_.P(O==null?void 0:(b=O.timedAnimationButtonRenderer)==null?void 0:b.buttonRenderer,_.s2);return(W==null?void 0:W.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(W==null?void 0:W.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(W==null?void 0:W.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
GC.prototype.onYtServiceRequestError=GC.prototype.onYtServiceRequestError;GC.prototype.updateJoinButtonOverrides=GC.prototype.updateJoinButtonOverrides;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],GC.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],GC.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GC.prototype,"data",void 0);_.t([_.x("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.N("design:type",Object),_.N("design:paramtypes",[])],GC.prototype,"hideJoin",null);_.t([_.C(),_.N("design:type",String)],GC.prototype,"subscribeKey",void 0);_.t([_.C({selectorArgs:["subscribeKey"],selector:mMX}),_.N("design:type",Object)],GC.prototype,"subscriptionStateEntity",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],GC.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.t([_.x("subscriptionStateEntity"),_.C({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],GC.prototype,"subscribed",null);_.t([_.x("subscribed","data.membershipButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],GC.prototype,"joinButtonOverrides",null);
_.t([_.m5("joinButtonOverrides"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GC.prototype,"updateJoinButtonOverrides",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],GC.prototype,"onYtServiceRequestError",null);GC=_.t([_.G({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],GC);
var YEq=_.TH()(GC,"ytd-video-owner-renderer",function(){if(mxq===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);mxq=W}W=mxq;return W},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.O1(_.J1(function(W){var O=W.data;var b;W=_.S(_.wu(!((b=_.Tz("yt-mini-app-is-theater-mode-enabled"))==null||!b),void 0,"IXxLcc"));var T=W.next().value,L=W.next().value,h;b=(h=_.iq().resolve(_.OT(nnS)))!=null?h:function(){return _.E("div",null)};
_.MJ("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){L(!0);_.ju("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.MJ("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){L(!1);_.ju("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
h={};W={};var Z={};return _.E("mini-app-play-page-renderer",{class:_.YS("miniAppPlayPageRendererHost",(h.miniAppPlayPageRendererHostDetailsView=function(){return!T()},h))},_.E("div",{class:_.YS("miniAppPlayPageRendererGameContainer",(W.miniAppPlayPageRendererGameContainerDetailsView=function(){return!T()},W))},_.E(_.R4,{data:function(){return O().containerViewModel}},{miniAppContainerViewModel:TxH}),_.E(_.R4,{data:function(){return O().channel}},{videoOwnerRenderer:function(a){return _.E("div",{class:"miniAppPlayPageRendererVideoOwnerRenderer"},
_.E(YEq,{data:a.data}))}}),_.E(_.U,{cond:function(){return!T()&&O().description},
then:function(){return _.E("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.E("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return O().description}))}})),_.E("div",{class:_.YS("miniAppPlayPageRendererPlayNextContainer",(Z.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!T()},Z))},_.E(_.R4,{data:function(){return O().sectionList}},{sectionListRenderer:b})))},"ae"),"mini-app-play-page-renderer",{props:{data:_.te}});var HY=function(){var W=_.n.apply(this,arguments)||this;W.isSearch=!1;W.isConstrainedList=!1;W.hasChipsBar=!1;W.inReplyPanel=!1;W.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"}};W.monitorScroll=!0;W.SCROLL_ANIMATION_DURATION_MS=300;W.nextContinuation={continuationType:"sectionListContinuation"};return W};
_.R(HY,_.n);_.d=HY.prototype;
_.d.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(W){switch(W.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.e("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.e("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.d.created=function(){var W=this;this.JSC$14868_scrollAnimation=new _.BY(function(O){W.hostElement.scrollTop=O})};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.d.getItemsPath=function(){return"data.contents"};
_.d.replacePrimaryContent=function(W){this.set("data.contents",W)};
_.d.computeHasSortFilter=function(W){return!!W&&!!W.sortFilterSubMenuRenderer};
_.d.computeShouldScrollInPanel=function(W){var O;return!!(W==null?0:(O=W.scrollPaneStyle)==null?0:O.scrollable)};
_.d.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.L2(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.d.scrollToTop=function(){this.hostElement.scrollTop=0};
_.d.scrollToItemSection=function(W){if(W=this.getItemByIdentifier(W))W=this.getScrollPositionForItem(W),this.hostElement.scrollTop!==W&&this.JSC$14868_scrollAnimation.start(this.hostElement.scrollTop,W,this.SCROLL_ANIMATION_DURATION_MS)};
_.d.getItemByIdentifier=function(W){var O=this.contents.querySelectorAll("ytd-item-section-renderer");if(O&&O.length!==0){var b=Array.from(O).findIndex(function(T){return T.sectionIdentifier===W});
return O[b===-1?0:b]}};
_.d.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===W)return 0;W=_.Qr(W).y+this.hostElement.scrollTop-_.Qr(this.hostElement).y;return Math.min(W,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Jq.Object.defineProperties(HY.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.targetId)==="browse-feedFEclips"}}});
HY.prototype.onScroll=HY.prototype.onScroll;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],HY.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],HY.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.D(_.Oif),_.N("design:type",Object)],HY.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],HY.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],HY.prototype,"data",void 0);_.t([_.C({value:2}),_.N("design:type",Number)],HY.prototype,"initialCount",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],HY.prototype,"autoFill",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.N("design:type",Boolean)],HY.prototype,"hasSortFilter",void 0);_.t([_.C({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.N("design:type",Boolean)],HY.prototype,"hideBottomSeparator",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.N("design:type",Boolean)],HY.prototype,"shouldScrollInPanel",void 0);
_.t([_.C(),_.N("design:type",Object)],HY.prototype,"isSearch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HY.prototype,"isConstrainedList",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],HY.prototype,"responsiveSizing",void 0);_.t([_.C(),_.N("design:type",Object)],HY.prototype,"hasChipsBar",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],HY.prototype,"pageSubtype",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"engagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"liveChatEngagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HY.prototype,"inReplyPanel",void 0);_.t([_.El("#action-button"),_.N("design:type",HTMLElement)],HY.prototype,"actionButton",void 0);_.t([_.C(),_.N("design:type",Object)],HY.prototype,"scrollUpButtonData",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"engagementPanelDropdown",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HY.prototype,"engagementPanelDialog",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HY.prototype,"isClipList",null);_.t([_.El("#contents"),_.N("design:type",HTMLElement)],HY.prototype,"monitorScrollElement",void 0);_.t([_.El("#contents"),_.N("design:type",HTMLElement)],HY.prototype,"contents",void 0);
_.t([_.ai("scroll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HY.prototype,"onScroll",null);HY=_.t([_.G({is:"ytd-section-list-renderer",disableElementRegistration:!0})],HY);
var Eww=_.TH()(HY,"ytd-section-list-renderer",function(){if(qHS===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);qHS=W}W=qHS;return W},{mode:1});var wf$;var Ahq;var Xfn;var Uxq;var tG=function(){return _.n.apply(this,arguments)||this};
_.R(tG,_.n);tG.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
tG.prototype.onLikeButtonClick=function(W){W.stopPropagation();W.preventDefault()};
_.Jq.Object.defineProperties(tG.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)!=null&&W.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)})}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],tG.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],tG.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tG.prototype,"ytRendererStamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tG.prototype,"data",void 0);
_.t([_.C({selectorArgs:["data.likeStatusEntityKey"],selector:xS}),_.N("design:type",Object)],tG.prototype,"likeStatusEntity",void 0);_.t([_.x("data","likeStatusEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],tG.prototype,"likeButtonRenderer",null);tG=_.t([_.G({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],tG);
_.H(tG,"ytd-slim-metadata-toggle-button-renderer",function(){if(Uxq!==void 0)return Uxq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return Uxq=W},{mode:1});var $i=function(){var W=_.n.apply(this,arguments)||this;W.minimizePipBreakages=_.e("web_pip_minimize_breakages");W.showEqualizer=_.e("web_enable_playlist_video_lockup_equalizer");W.watchColorUpdate=_.e("kevlar_watch_color_update");W.actionMap={};return W};
_.R($i,_.n);_.d=$i.prototype;_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.d.computeEditableClass=function(W){return W&&W.menu?"editable":""};
_.d.computeSelected=function(W){return!(W==null||!W.selected)};
_.d.computeUseColorPalette=function(W){return!!((W==null?0:W.lightColorPalette)&&(W==null?0:W.darkColorPalette))};
_.d.computeLargerPlaylistThumbs=function(W,O){return _.e("web_enable_playlist_bigger_thumbnails")&&!O};
_.d.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.d.onYtServiceRequestSent=function(W,O){O.endpoint&&this.isHideEnclosingAction(O.endpoint)&&!this.selected&&how(_.xP(),this.data.videoId)};
_.d.isHideEnclosingAction=function(W){var O=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",W);W=this.get("likeEndpoint.status",W)==="INDIFFERENT";return O||W};
_.d.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.d.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Jq.Object.defineProperties($i.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.withinMiniplayer&&((W=this.data)==null?0:W.actionButtons))}}});
$i.prototype.onYtServiceRequestSent=$i.prototype.onYtServiceRequestSent;$i.prototype.canReorderChanged=$i.prototype.canReorderChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],$i.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.fh),_.N("design:type",Object)],$i.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$i.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"withinMiniplayer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$i.prototype,"minimizePipBreakages",void 0);_.t([_.C({computed:"computeSelected(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"selected",void 0);
_.t([_.C({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"useColorPalette",void 0);_.t([_.C({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"largerPlaylistThumbs",void 0);_.t([_.C(),_.N("design:type",Object)],$i.prototype,"showEqualizer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"canReorder",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"touchPersistentDragHandle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],$i.prototype,"handleIsHovered",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$i.prototype,"watchColorUpdate",void 0);_.t([_.C(),_.N("design:type",String),_.N("design:paramtypes",[])],$i.prototype,"reorderIcon",null);
_.t([_.x("largerPlaylistThumbs"),_.N("design:type",Number),_.N("design:paramtypes",[])],$i.prototype,"thumbnailWidth",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$i.prototype,"showActionButtons",null);_.t([_.Ul("canReorder"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$i.prototype,"canReorderChanged",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],$i.prototype,"onYtServiceRequestSent",null);$i=_.t([_.G({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],$i);
_.H($i,"ytd-playlist-panel-video-renderer",function(){if(Xfn!==void 0)return Xfn;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Xfn=W},{mode:2});var V5=function(){return _.n.apply(this,arguments)||this};
_.R(V5,_.n);V5.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],V5.prototype,"data",void 0);V5=_.t([_.G({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],V5);
_.H(V5,"ytd-playlist-panel-supported-items",function(){if(Ahq!==void 0)return Ahq;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ahq=
W},{mode:1});Rg5=!0;f6U("\\P{N}");var DOP;var lgw=_.EO("END_OF_PLAYLIST",void 0,"End of playlist"),eyq=_.EO("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),ND=function(){var W=_.n.apply(this,arguments)||this;W.minimizePipBreakages=_.e("web_pip_minimize_breakages");W.updatedCoursePanel=_.e("move_three_dot_menu_to_playlist_panel_header_for_courses");W.reducedPlaylistHeight=_.e("web_playlist_mini_playlist_height");W.hideHeaderText=!1;W.useColorPalette=!1;W.collapsed=!1;W.collapsedPreServerOverride="not_tracked";
W.isHovered=!1;W.modernPanels=_.e("kevlar_watch_modern_panels");W.expandLabel=_.EO("MINIPLAYER_EXPAND_LABEL");W.collapseLabel=_.EO("MINIPLAYER_COLLAPSE_LABEL");W.isFloating=!1;W.metaPanel=!1;W.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};W.currentIndex=void 0;return W};
_.R(ND,_.n);_.d=ND.prototype;
_.d.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"}}}};
_.d.created=function(){this.scrollThrottle=new _.JI(this.onThrottledScroll,1E3,this)};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.computeOverflowMenuData=function(W){return W&&W.menu?W.menu:null};
_.d.computeCollapsible=function(W){return!W};
_.d.computeHasPlaylistButtons=function(W){return!(!W||!W.playlistButtons)};
_.d.computeHasSeparateSaveButton=function(W){return!(!W||!W.saveButton)};
_.d.computeHasToolbarButton=function(W,O){return!(!W||!(O||W.saveButton||W.menu))};
_.d.computePlaylistType=function(W){if(W&&W.playlistId)return W.playlistId.substring(0,4)};
_.d.computeCanReorder=function(W){return W?W.playlistId&&W.playlistId.startsWith("TLPQ")?!0:!!W.isEditable&&!W.isInfinite:!1};
_.d.attached=function(){var W=this;try{_.iq().resolve(_.kP).setPlaylistComponent(this.hostElement)}catch(O){if(_.e("kevlar_park_on_playlist_token_killswitch"))throw O;_.BH().parkOrScheduleJob(function(){_.iq().resolve(_.kP).setPlaylistComponent(W.hostElement)},2,"ci")}_.OO(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.d.detached=function(){_.iX(this.hostElement)};
_.d.computeTrailingIcon=function(W,O,b){return b?O?"yt-icons:collapse":"yt-icons:close":O?"yt-icons:expand":_.e("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.d.computeIndexMessage=function(W,O){return C4e(W+1)+" / "+C4e(O)};
_.d.onRenderStamperFinished=function(){if(this.scrollForStampDom){var W=!0;this.isHovered&&(W=!1);if(this.collapsed||this.hidden)W=!1;W&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.d.collapseChanged=function(){var W=this;this.collapsed||(_.pp(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.d.hiddenChanged=function(){var W=this;this.hidden||_.pp(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.scrollToCurrentVideo()})};
_.d.setupReordering=function(){var W=_.Q(this.hostElement).querySelector("#items");nuS?_.Xuq(this.ytReorderableBehavior,W,W,"playlist-drag-handle"):_.Xuq(this.ytReorderableBehavior,W,W)};
_.d.scrollToCurrentVideo=function(){var W=this;_.sF.addJob(function(){var O=_.Q(W.hostElement).querySelector("#items");if(O){O.style.setProperty("padding-bottom","");var b=_.Q(W.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(b){O=b.parentElement||_.lQ(document);var T=O||_.lQ(document);var L=_.Qr(b),h=_.Qr(T),Z=_.YvH(T);if(T==_.lQ(document)){var a=L.x-T.scrollLeft;L=L.y-T.scrollTop}else a=L.x-h.x-Z.left,L=L.y-h.y-Z.top;b=ZHw(b);h=T.clientHeight-
b.height;Z=T.scrollLeft;var m=T.scrollTop;Z+=a-(T.clientWidth-b.width)/2;T=new _.Kw(Z,m+(L-h/2));O.scrollLeft=T.x;O.scrollTop=T.y}}},8)};
_.d.dataChanged=function(){var W=this;_.A7f(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.My(this,function(){_.KB(W.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty();W.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.d.updateNowPlayingOverlay=function(){_.e("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.d.onPlaylistLockupNowPlaying=function(W,O){O&&(this.activeNowPlayingRenderer=O);this.updateNowPlayingOverlay()};
_.d.onScroll=function(){this.scrollThrottle.fire()};
_.d.onThrottledScroll=function(){var W=this;_.KB(this.ytTaskEmitterBehavior.getTaskManager(),function(){W.ytRendererBehavior.markDirty()})};
_.d.onToggleExpanded=function(W){this.collapsible&&_.Md(W).tagName!=="A"&&!_.un(_.Nd(W),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.d.setCollapsed=function(W){this.collapsible&&(this.collapsed=W,_.TU(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.d.handleCollapsedFromData=function(W){if(W){var O=W.playlistPanelCollapseState;O==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||O==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),O=O==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==O&&this.setCollapsed(O)):this.currentPlaylistId!==W.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(O=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==O&&this.setCollapsed(O),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=W.playlistId}};
_.d.handleDrop=function(W){var O=W.currDragItem;W=O.data.playlistSetVideoId;var b=_.$T(O.parentNode.childNodes,O),T=void 0;b>0&&(T=O.parentNode.childNodes[b-1].data.playlistSetVideoId);O=_.xP();if(O.responsePlaylistData&&O.responsePlaylistData.contents){var L=uBX(W,O.responsePlaylistData);O.responsePlaylistData=(0,_.PQ.unsafeClone)(O.responsePlaylistData);p2h(O.responsePlaylistData.contents,L,b);O.queueProxy?Co9(O.queueProxy,L,b,W,T):O.playlistProxy&&Co9(O.playlistProxy,L,b,W,T);_.zn(O,_.CK(O,O.response?
O.response.autoplayRenderer:void 0))}};
_.d.handleDarkModeChange=function(W){W!==this.isDarkTheme&&(this.isDarkTheme=W)};
_.d.colorPaletteChanged=function(){var W,O=((W=this.data)==null?void 0:W.contents)||[],b;W=_.S(O);for(O=W.next();!O.done;O=W.next()){O=O.value;var T=void 0;if((T=O.playlistPanelVideoRenderer)==null?0:T.selected){W=O.playlistPanelVideoRenderer;T=O=void 0;(b=this.isDarkTheme?(O=W)==null?void 0:O.darkColorPalette:(T=W)==null?void 0:T.lightColorPalette)&&_.kS(this.hostElement,b);break}}this.useColorPalette=!!b};
_.Jq.Object.defineProperties(ND.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.playlistId)&&!((O=this.data)==null||!O.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var W=_.iq().resolve(_.OT(_.kP)),O;if(((O=this.data)==null?0:O.contents)&&(W==null?0:W.hasAutoplayData())){var b;if(((b=this.playlistLoopStateEntity)==null?void 0:b.state)==="PLAYLIST_LOOP_STATE_ONE"){if(W=this.data.currentIndex,W!==void 0){var T,L;var h=(T=this.data.contents[W])==null?void 0:(L=T.playlistPanelVideoRenderer)==null?void 0:L.title}}else{var Z,a=(Z=_.P(W.getAutoplayEndpoint(),_.V3))==null?void 0:Z.videoId,m,w;h=(m=this.data.contents.find(function(A){var X;
return((X=A.playlistPanelVideoRenderer)==null?void 0:X.videoId)===a}))==null?void 0:(w=m.playlistPanelVideoRenderer)==null?void 0:w.title}return h}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.nextVideoLabel?this.nextVideoTitle?_.NX(this.data.nextVideoLabel)+":":lgw:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?0:W.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.VV(eyq);var O;return(O=this.data)==null?void 0:O.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.playlistButtons)==null?void 0:(b=O.menuRenderer)==null?void 0:b.topLevelButtons;if(T)for(W=_.S(T),O=W.next();!O.done;O=W.next())if(O=O.value,O.playlistLoopButtonRenderer)return O.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var W;return!!(this.collapsed&&((W=this.data)==null?0:W.nextVideoLabel))}}});
ND.prototype.colorPaletteChanged=ND.prototype.colorPaletteChanged;ND.prototype.onPlaylistLockupNowPlaying=ND.prototype.onPlaylistLockupNowPlaying;ND.prototype.updateNowPlayingOverlay=ND.prototype.updateNowPlayingOverlay;ND.prototype.dataChanged=ND.prototype.dataChanged;ND.prototype.hiddenChanged=ND.prototype.hiddenChanged;ND.prototype.collapseChanged=ND.prototype.collapseChanged;ND.prototype.onRenderStamperFinished=ND.prototype.onRenderStamperFinished;ND.prototype.onMouseLeave=ND.prototype.onMouseLeave;
ND.prototype.onMouseEnter=ND.prototype.onMouseEnter;_.t([_.D(_.vL),_.N("design:type",Object)],ND.prototype,"ironResizableBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ND.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(EDq.YtPlaylistPanelBehavior),_.N("design:type",Object)],ND.prototype,"ytPlaylistPanelBehavior",void 0);
_.t([_.D(_.uH.YtTaskEmitterBehavior),_.N("design:type",Object)],ND.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.D(_.URN),_.N("design:type",Object)],ND.prototype,"ytReorderableBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ND.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ND.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ND.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],ND.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ND.prototype,"autoplayData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ND.prototype,"withinMiniplayer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"minimizePipBreakages",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"updatedCoursePanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"reducedPlaylistHeight",void 0);_.t([_.C({computed:"setMenuData_(data)"}),_.N("design:type",Object)],ND.prototype,"menuRendererData",void 0);_.t([_.C({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],ND.prototype,"overflowMenuDataTopRow",void 0);_.t([_.C({computed:"computeOverflowMenuData(data)"}),_.N("design:type",Object)],ND.prototype,"overflowMenuData",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"hideHeaderText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"useColorPalette",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.N("design:type",Boolean)],ND.prototype,"collapsible",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"collapsed",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ND.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.N("design:type",Boolean)],ND.prototype,"hasPlaylistButtons",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.N("design:type",Boolean)],ND.prototype,"hasSeparateSaveButton",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.N("design:type",Boolean)],ND.prototype,"hasToolbar",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.N("design:type",String)],ND.prototype,"playlistType",void 0);_.t([_.C(),_.N("design:type",Object)],ND.prototype,"isHovered",void 0);_.t([_.C({selectorArgs:["playlistLoopStateEntityKey"],selector:_.UMe}),_.N("design:type",Object)],ND.prototype,"playlistLoopStateEntity",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"modernPanels",void 0);_.t([_.C({value:56}),_.N("design:type",Number)],ND.prototype,"scrollMargin",void 0);_.t([_.C({computed:"computeCanReorder(data)"}),_.N("design:type",Boolean)],ND.prototype,"canReorder",void 0);_.t([_.C(),_.N("design:type",Object)],ND.prototype,"expandLabel",void 0);_.t([_.C(),_.N("design:type",Object)],ND.prototype,"collapseLabel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"isFloating",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ND.prototype,"metaPanel",void 0);_.t([_.C({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.N("design:type",String)],ND.prototype,"trailingIcon",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ND.prototype,"isDarkTheme",void 0);
_.t([_.C({selector:_.BS}),_.N("design:type",Boolean)],ND.prototype,"miniplayerIsActive",void 0);_.t([_.C({selector:function(W){return W.watch.playerState}}),
_.N("design:type",Number)],ND.prototype,"playerState",void 0);_.t([_.C(),_.N("design:type",Object)],ND.prototype,"activeNowPlayingRenderer",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ND.prototype,"moveThreeDotMenuToTopRow",null);_.t([_.x("data","autoplayData","playlistLoopStateEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ND.prototype,"nextVideoTitle",null);
_.t([_.x("data","nextVideoTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],ND.prototype,"nextVideoLabel",null);_.t([_.x("collapsed"),_.N("design:type",String),_.N("design:paramtypes",[])],ND.prototype,"buttonAriaLabel",null);_.t([_.x("data","playlistId","longBylineText"),_.N("design:type",Object),_.N("design:paramtypes",[])],ND.prototype,"mixLongByLine",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ND.prototype,"playlistLoopStateEntityKey",null);
_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"onMouseEnter",null);_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"onMouseLeave",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ND.prototype,"showNextVideoHeader",null);
_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"onRenderStamperFinished",null);_.t([_.m5("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"collapseChanged",null);_.t([_.m5("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"hiddenChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"dataChanged",null);_.t([_.m5("playerState","miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"updateNowPlayingOverlay",null);_.t([_.ai("yt-playlist-lockup-now-playing-active"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],ND.prototype,"onPlaylistLockupNowPlaying",null);
_.t([_.m5("data","isDarkTheme"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ND.prototype,"colorPaletteChanged",null);ND=_.t([_.G({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],ND);
_.PY5=_.TH()(ND,"ytd-playlist-panel-renderer",function(){if(wf$===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);wf$=W}W=wf$;return W},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var pf7;var MD=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework");return W};
_.R(MD,_.n);MD.prototype.computeShouldButtonBeVertical=function(W,O){return W||O};
MD.prototype.onYtServiceRequestSent=function(W,O){(W=_.P(O.endpoint,_.tT))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.AI("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:W.status})):this.handleLikeEndpoint(W))};
MD.prototype.computelikeStatusEntityKey=function(W){return W==null?void 0:W.likeStatusEntityKey};
MD.prototype.handleLikeEndpoint=function(W){W.status==="LIKE"?this.JSC$14893_ytdDislikeToggleButtonRenderer.toggle(!1):W.status==="DISLIKE"?this.JSC$14893_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14893_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14893_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Jq.Object.defineProperties(MD.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var W;return GWX(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(W=this.likeStatusEntity)==null?void 0:W.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var W;if(this.data&&((W=this.data)==null||!W.hideDislikeButton)){var O;return GWX(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(O=this.likeStatusEntity)==null?void 0:O.likeStatus)}}}});
MD.prototype.onYtServiceRequestSent=MD.prototype.onYtServiceRequestSent;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],MD.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MD.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],MD.prototype,"vertical",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],MD.prototype,"textTransform",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],MD.prototype,"useShortsIcon",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],MD.prototype,"underIconLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],MD.prototype,"modern",void 0);_.t([_.C({value:"left"}),_.N("design:type",String)],MD.prototype,"buttonTooltipPosition",void 0);
_.t([_.C(),_.N("design:type",Object)],MD.prototype,"overrides",void 0);_.t([_.El("#like-button"),_.N("design:type",Object)],MD.prototype,"JSC$14893_ytdLikeToggleButtonRenderer",void 0);_.t([_.El("#dislike-button"),_.N("design:type",Object)],MD.prototype,"JSC$14893_ytdDislikeToggleButtonRenderer",void 0);_.t([_.x("data","likeStatusEntity.likeStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],MD.prototype,"likeButton",null);
_.t([_.x("data","likeStatusEntity.likeStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],MD.prototype,"dislikeButton",null);_.t([_.C({computed:"computelikeStatusEntityKey(data)"}),_.N("design:type",String)],MD.prototype,"likeStatusEntityKey",void 0);_.t([_.C({selectorArgs:["likeStatusEntityKey"],selector:xS}),_.N("design:type",Object)],MD.prototype,"likeStatusEntity",void 0);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],MD.prototype,"onYtServiceRequestSent",null);MD=_.t([_.G({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],MD);
var Ry9=_.TH()(MD,"ytd-like-button-renderer",function(){if(pf7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);pf7=W}W=pf7;return W},{mode:1});_.KSS={};
_.KSS.YtConditionalRendererBehavior=[_.F.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(W,O){var b=this,T,L;return _.I(function(h){switch(h.nextAddress){case 1:if(!O)return b.hidden=!0,b.showSpinner=!1,h.return();if((T=W)==null?0:(L=T.visibilityCondition)==null?0:L.mode)switch(W.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return h.jumpTo(5);default:return h.jumpTo(6)}b.showSpinner=
!1;b.hidden=!0;return _.Y(h,b.shouldShow_(W),4);case 4:b.hidden=!h.yieldResult;h.jumpTo(0);break;case 5:return _.Y(h,b.shouldShow_(W),8);case 8:b.showSpinner=h.yieldResult;b.hidden=!1;h.jumpTo(0);break;case 6:return b.showSpinner=!1,_.Y(h,b.shouldShow_(W),9);case 9:b.hidden=!h.yieldResult,_.aD(h)}})},
shouldShow_:function(W){return W&&W.supportedDatas&&W.supportedDatas.rendererVisibilityConditionData&&W.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(W.supportedDatas.rendererVisibilityConditionData.showIf):W&&W.visibilityCondition&&W.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(W.visibilityCondition.showIf):W&&W.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(W.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(W){switch(W){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(W){switch(W){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var W=_.jx(this.hostElement,"yt-get-mdx-status");return W.length==1&&W[0].connected},
isLocationPermissionGranted_:function(){var W;return _.I(function(O){return O.nextAddress==1?navigator.permissions?_.Y(O,navigator.permissions.query({name:"geolocation"}),3):O.jumpTo(2):O.nextAddress!=2?(W=O.yieldResult,O.return(Promise.resolve(W.state==="granted"))):O.return(Promise.resolve(!1))})}}];var vwL=function(W,O){O=O===void 0?{}:O;return function(b){var T=document.createElement(W),L;var h=(L=T.polymerController)!=null?L:T;nRE(T,h,b,O);return T}}("yt-icon");var gw5=function(W){var O=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];H_Q();_.c3("ytglobal.ytUtilActivityCallback_",function(){_.TU(W,"yt-user-activity")});
new Om(function(){return O.JSC$14905_onMouseMove});
document.addEventListener("scroll",function(){return O.onScroll});
window.addEventListener("resize",function(){return O.onResize})},owq=function(W,O,b){O in W.eventJobIds||(b=_.KD().addLowPriorityJob(function(){_.iy();
delete W.eventJobIds[O]},b),W.eventJobIds[O]=b)};
gw5.prototype.onScroll=function(W){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):W.target===document&&owq(this,"scroll",200)};
gw5.prototype.onResize=function(){owq(this,"resize",200)};
gw5.prototype.JSC$14905_onMouseMove=function(){owq(this,"mousemove",100)};
_.J5=function(W){W.scrollEventsToIgnore+=1;W.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){W.scrollEventsToIgnore--},500))};var QoL=function(W){this.element=W;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
QoL.prototype.showFeedbackDialog=function(W,O,b,T){var L=kvL();if(!L)return!1;var h=WdX();h.productId=L;O&&(h.flow="submit",h.report={description:O});b&&(kvL()==="59"?h.callback=_.fv(function(){_.BZ("userFeedbackEvent",{});b()}):h.callback=_.fv(b));
h.bucket=T||_.Cv("GOOGLE_FEEDBACK_BUCKET","Other");sow(h);W=Bx5(this,"GFEEDBACK",W);try{_.F95(h,W)}catch(Z){return _.nv(Z),!1}return!0};
QoL.prototype.showHelpDialog=function(W,O,b){var T=this,L=kvL();if(!L)return!1;var h={helpCenterPath:"/youtube",productData:Bx5(this,"GUIDED_HELP",b)};sow(h);var Z=WdX();Z.context=W||h.productData.context||"default";Z.defaultHelpArticleId=O;Z.enableSendFeedback=!0;(_.GT("gapi.load")||function(a,m){return m()})("client",function(){try{var a=qKv(L,h);
if(_.e("web_always_load_chat_support")&&!T.chatSupportLoaded)try{a.JSC$7976_loadChatSupport(Z),T.chatSupportLoaded=!0}catch(m){}a.startHelp(Z)}catch(m){_.nv(m)}})};
var kvL=function(){var W=_.Cv("GOOGLE_FEEDBACK_PRODUCT_ID");W||_.nv(Error("ci"));return W},sow=function(W){W&&(W.locale=_.e("kevlar_help_use_locale")?_.Cv("INNERTUBE_CONTEXT_HL","en"):_.Cv("HTML_LANG","en"))},Bx5=function(W,O,b){var T=W.productData;
delete T.origin;T.device=_.AX();var L;a:{if(L=document.createElement("canvas")){var h=L.getContext("experimental-webgl",{stencil:!0});if(h){var Z=h.getExtension("WEBGL_debug_renderer_info");if(Z){L=h.getParameter(Z.UNMASKED_RENDERER_WEBGL);break a}}if(h=L.getContext("webgl")){L=h.getParameter(h.RENDERER);break a}}L=null}T.gpu=L;T.isSDC=!!_.Cv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(L=_.Cv("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.PQ.extend(T,L);_.Fkh(O,T);_.yO2(T);(W=_.TU(W.element,"yt-get-autonav-pause-debug-state"))&&
W.length&&(T.autonav_pause_state=W[0]);W=_.Sp();T.browser_resolution=W.width+"\u00d7"+W.height+"@"+(window.devicePixelRatio||1)+"x";b&&_.PQ.extend(T,b);return T};
QoL.prototype.resetProductData=function(){this.productData={}};var rhL=function(W){this.feedbackManager=new QoL(W)};
rhL.prototype.showFeedbackDialog=function(W,O,b,T){return this.feedbackManager.showFeedbackDialog(W,O,b,T)};
rhL.prototype.showHelpDialog=function(W,O,b){return this.feedbackManager.showHelpDialog(W,O,b)};var Dxn=function(){this.baseUrl="";this.aTag=document.createElement("a")},vt7=function(W,O,b){b=b===void 0?{}:b;
b.pbj||(b.pbj=1);b=_.gyi(O,b);W.baseUrl&&b&&!_.J_(b)[1]&&!_.cU(b)&&(O=W.baseUrl,hX(O,"/")&&(O=O.slice(0,-1)),_.LE(b,"/")&&(b=b.slice(1)),b=O+"/"+b);vD(W.aTag,Av(b||""));return W.aTag.href};
Dxn.prototype.fetchData=function(W){return _.V21(W)};
Dxn.prototype.postData=function(W,O){var b={method:"POST"};if(O){for(var T=_.S(Object.keys(O)),L=T.next();!L.done;L=T.next()){L=L.value;var h=O[L];_.LH(h)&&(O[L]=JSON.stringify(h))}b.postParams=O}return _.V21(W,b)};
_.gtq=function(W,O,b,T,L){W=vt7(W,O,b);if(!W)throw T=Error("di"),Object.assign(T,{params:O}),T;return _.V21(W,L,T)};
Dxn.prototype.requestDataForServiceEndpoint=function(W,O){if(_.P(W,_.h7T))return this.fetchData("/getAccountSwitcherEndpoint");O=O||{};var b=_.P(W,Y_1);b?O.se=b.base64EncodedServiceEndpoint:O.sej=JSON.stringify(W);(b=_.Bb())&&_.e("enable_service_ajax_csn")&&(O.csn=b);O.theme=_.K_();_.P(W,L68)&&_.Cv("DELEGATION_CONTEXT")&&(O.delegation_context=JSON.stringify(_.Cv("DELEGATION_CONTEXT")));b=null;for(var T in W)if(hX(T,"Endpoint")||hX(T,"Command")){b=T;break}if(!b){var L=Error("ei");Object.assign(L,{params:W});
_.Rb1(L,"WARNING");return new _.mJ(function(Z,a){a(L)})}T={name:b};
var h;(b=(h=_.P(W,_.mM))==null?void 0:h.signal)&&(T.signal=b);(h=_.NC(window.location.href))&&h.internalcountrycode&&(T.internalcountrycode=h.internalcountrycode);h="/service_ajax";_.e("debug_forward_web_query_parameters")&&(h=_.q0X(h,window.location.search));h=_.uW(h,T);W.clickTrackingParams&&_.JC(h,{itct:W.clickTrackingParams});return this.postData(h,O)};_.xxq=new _.MV("GFEEDBACK_TOKEN");var zyS;var CY9;var qEf;var nw1;var u9=function(){var W=_.n.apply(this,arguments)||this;W.compact=!1;return W};
_.R(u9,_.n);u9.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
u9.prototype.computeHasIcon_=function(W){return!!W};
u9.prototype.isSignInIcon_=function(W){return W=="yt-icons:prompted_sign_in"};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.KSS.YtConditionalRendererBehavior),_.N("design:type",Object)],u9.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],u9.prototype,"data",void 0);
_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],u9.prototype,"icon_",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.N("design:type",Boolean)],u9.prototype,"hasIcon_",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.N("design:type",Boolean)],u9.prototype,"signInIcon_",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],u9.prototype,"compact",void 0);
u9=_.t([_.sl({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],u9);
_.H(u9,"yt-player-error-message-renderer",function(){if(nw1===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;qEf===void 0&&(qEf=document.createElement("template"));var T=qEf;b.call(O,T.content.cloneNode(!0),W.content.firstChild);nw1=W}W=nw1;return W},{mode:2});var fgN;var Gv5;var JG=function(){return _.n.apply(this,arguments)||this};
_.R(JG,_.n);JG.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
JG.prototype.computeIcon_=function(W){return W?"yt-icons:"+W.iconType.toLowerCase():"error_outline"};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],JG.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],JG.prototype,"icon_",void 0);JG=_.t([_.sl({is:"yt-player-kav-renderer",disableElementRegistration:!0})],JG);
_.H(JG,"yt-player-kav-renderer",function(){if(Gv5===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;fgN===void 0&&(fgN=document.createElement("template"));var T=fgN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Gv5=W}W=Gv5;return W},{mode:2});_.O1(_.J1(function(W){var O=_.uy(),b=_.S(_.wu(0,void 0,"gCmSbf")),T=b.next().value,L=b.next().value;b=_.S(_.wu(null,void 0,"Rj9zMe"));var h=b.next().value,Z=b.next().value;_.kX(function(){bj8(O.value,L,Z);O.value.scrollIntoView()});
b=jEE.bind(null,W.data,T);WB("resize",function(){var a=h();if(T()===1&&a!==null){var m;(m=window.grecaptcha)==null||m.reset(a)}});
return _.E("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.E("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.E("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var a,m;return(a=W.data().accessibility)==null?void 0:(m=a.accessibilityData)==null?void 0:m.label}),_.E(_.uw,{text:b,
className:_.YS("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.E("div",{el:O,class:"ytwPlayerCaptchaViewModelGridItem"})))},"be"),"yt-player-captcha-view-model",{props:{data:_.Ws}});var TF8=!1;_.HX$=_.J1(function(W){var O=W.data;return _.E("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.E(_.U,{cond:function(){return O().icon},
then:function(b){return _.E("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.E(_.uj,{data:b,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.E(_.U,{cond:function(){return O().title},
then:function(b){return _.E("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.E(_.uw,{text:b}))}}),_.E(_.U,{cond:function(){return O().description},
then:function(b){return _.E("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.E(_.uw,{text:b}))}}),_.E(_.R4,{data:function(){return O().primaryButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.E(_.R4,{data:function(){return O().secondaryButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ce");
_.HX$.idomCompat=!0;var t15=_.J1(function(W){var O=W.data;_.Ms();return _.E("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.E("div",{class:"player-interstitial-renderer-wiz__scrim"},_.E(_.R4,{data:function(){return O().content}},{interstitialViewModel:_.HX$})))},"de");
t15.idomCompat=!0;_.O1(t15,"yt-player-interstitial-renderer",{props:{data:_.te}});var cY=function(){var W=_.n.apply(this,arguments)||this;W.noBackground=!1;W.compact=!1;W.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return W};
_.R(cY,_.n);cY.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"}}}};
cY.prototype.onUpdatePlayerErrorMessageCommand_=function(W){if(_.P(W,Rj5)){var O;if(W=(O=_.P(W,Rj5))==null?void 0:O.newPlayerErrorMessageRenderer)this.data=W}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],cY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],cY.prototype,"status",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cY.prototype,"noBackground",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cY.prototype,"compact",void 0);cY=_.t([_.sl({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],cY);
var $xU=_.TH()(cY,"yt-playability-error-supported-renderers",function(){if(CY9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;zyS===void 0&&(zyS=document.createElement("template"));var T=zyS;b.call(O,T.content.cloneNode(!0),W.content.firstChild);CY9=W}W=CY9;return W},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Ld1=void 0,hC1=void 0;var IYX=new pGS;var V15=function(W){this.store=W;this.d6v=new _.va$},AfX=function(W,O,b){var T,L;
if(!(L=((T=O.playabilityStatus)==null?void 0:T.status)!=="OK")){W=W.store;var h;L=O.offlineState&&((h=O.videoDetails)==null?0:h.videoId)?_.e("enable_pl_r_c_cd")?KQT(W.getState().entities,O.videoDetails.videoId):!!yuX(W.getState().entities,O.videoDetails.videoId):!1}if(L)return!0;L=wo8(O);if(L===1){if(_.e("ab_v_vid_sig")){var Z,a=(Z=O.videoDetails)==null?void 0:Z.videoId;if(!a||!b||a!==b){var m;O=new _.pu("282054944_vid",{nPs:b,kYD:(m=O.videoDetails)==null?void 0:m.videoId});_.Dt(O)}}return!0}kzX=
0;var w,A;m=(a=O.auxiliaryUi)==null?void 0:(w=a.messageRenderers)==null?void 0:(A=w.bkaEnforcementMessageViewModel)==null?void 0:A.displayType;if(L!==3&&(m==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||m==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;m={reason:_.iv(_.EO("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.e("ks_something_wrong_learn_more")?ocQ("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.iv(_.EO("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:_.iv("282054944")};Nxf(O,{playerErrorMessageRenderer:m});return!1},XJX=function(W,O){if(Muq(O)){_.mm(1,!0);
var b=(b=Muq(O))&&_.dKX()?b:void 0;b?(Nxf(O,{enforcementMessageViewModel:b}),W.d6v.increment("IN_PLAYER"),_.mm(5)):(W.d6v.increment("SKIP_DISPLAY"),_.mm(2))}},Nxf=function(W,O){W.playabilityStatus=Object.assign({},W.playabilityStatus,{status:"ERROR",
errorScreen:O});W.videoDetails=void 0};
V15.prototype.handleResponse=function(W,O){if(W.playabilityStatus){var b,T,L,h=(O==null?void 0:(b=O.innerTubeRequest)==null?void 0:b.videoId)||(O==null?void 0:(T=O.innerTubeRequest)==null?void 0:(L=T.playerRequest)==null?void 0:L.videoId);AfX(this,W,h)&&XJX(this,W)}};
V15[NV]=[hs];var ELO=new _.MV("ADBLOCK_DETECTION_SERVICE_TOKEN");var FN=function(W){this.xpl=W};
FN.prototype.bindInnertubeChallengeFetcher=function(W){this.xpl.bicf(W)};
FN.prototype.registerChallengeFetchedCallback=function(W){this.xpl.bcr(W)};
FN.prototype.getLatestChallengeResponse=function(){return this.xpl.blc()};var ch9;_.FC=function(W,O,b){var T=this;this.network=W;this.options=O;this.networkStatusManager=b;this.ny=null;if(O.useBotguardEverywhere){var L=new _.S4;this.ny=L.promise;_.i1.ytAtRC&&_.Xg(_.sF,function(){var h,Z;return _.I(function(a){if(a.nextAddress==1){if(!_.i1.ytAtRC)return a.return();h=M1w(null);return _.Y(a,T.hM(h),2)}Z=a.yieldResult;_.i1.ytAtRC&&_.i1.ytAtRC(JSON.stringify(Z));_.aD(a)})});
eCQ().then(function(h){var Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return h.bindInnertubeChallengeFetcher(function(X){return T.hM(M1w(X))}),_.Y(A,Q81(),2);
Z=A.yieldResult;a=h.getLatestChallengeResponse();m=a.challenge;if(!m)throw Error("fi");w={challenge:m,bI:ct(m),qM:Z,bgChallenge:new u3};L.resolve(w);h.registerChallengeFetchedCallback(function(X){X=X.challenge;if(!X)throw Error("gi");X={challenge:X,bI:ct(X),qM:Z,bgChallenge:new u3};T.ny=Promise.resolve(X)});
_.aD(A)})})}else O.preload&&uYf(this,new Promise(function(h){_.KB(_.sF,function(){h(Jh1(T))},0)}))};
ch9=function(W){var O={preload:!0,useBotguardEverywhere:_.e("attmusi")},b=!1;if(typeof O==="boolean")var T={preload:O};else typeof O==="undefined"?T={preload:!0}:(T=O,b=!!O.zQ6);O=b?void 0:new _.Vy;_.FC.instance=new _.FC(W,T,O);return _.FC.instance};
_.FC.prototype.mLt=function(){var W=this;return _.I(function(O){return O.nextAddress==1?_.Y(O,Promise.race([W.ny,null]),2):O.return(!!O.yieldResult)})};
_.FC.prototype.fGZ=function(W,O,b){var T=this,L,h,Z;return _.I(function(a){T.ny===null&&uYf(T,Jh1(T));L=!1;h={};Z=function(){var m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:return _.Y(X,T.ny,2);case 2:m=X.yieldResult;h.challenge=m.challenge;if(!m.qM){"c1a"in m.bI&&(h.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");X.jumpTo(3);break}w=Object.assign({},{c:m.challenge,e:W},O);_.LI(X,4);L=!0;if(_.e("attbs")&&!_.e("attmusi")){A=_.RDq(m.qM,{sD:w});X.jumpTo(6);break}return _.Y(X,m.qM.snapshot({sD:w}),
7);case 7:A=X.yieldResult;case 6:A?h.webResponse=A:h.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.H3(X,3);break;case 4:_.ID(X),h.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(W==="ENGAGEMENT_TYPE_PLAYBACK"){var l=m.bI,p={};if(l.c6a){var K=Number(_.Cv("DCLKSTAT",0));p.reportingStatus=String(Number(l.c)^(isNaN(K)?0:K))}l.c6b&&(p.broadSpectrumDetectionResult=String(Number(l.c)^Number(_.Cv("CATSTAT",0))));h.adblockReporting=p}return X.return(h)}})};
return a.return(Promise.race([Z(),FS$(b,function(){var m=Object.assign({},h);L&&(m.error="ATTESTATION_ERROR_VM_TIMEOUT");return m})]))})};
var M1w=function(W){var O={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};W&&(O.interpreterHash=W);return O},Jh1=function(W,O){O=O===void 0?0:O;
var b,T,L,h,Z,a,m,w,A,X,l,p;return _.I(function(K){switch(K.nextAddress){case 1:b=M1w(v4f().elL);if(_.e("att_fet_ks"))return _.LI(K,7),_.Y(K,W.hM(b),9);_.LI(K,4);return _.Y(K,yh9(W,b),6);case 6:Z=K.yieldResult;L=Z.peL;h=Z.f9Z;T=Z;_.H3(K,3);break;case 4:return _.ID(K),_.z5(Error("hi`"+O)),W45(W,864E5),K.return({challenge:"",bI:{},qM:void 0,bgChallenge:void 0});case 9:T=K.yieldResult;if(!T)throw Error("ii");if(!T.challenge)throw Error("ji");L=T.challenge;h=ct(L);if("c1a"in h&&(!T.bgChallenge||!T.bgChallenge.program))throw Error("ki");
_.H3(K,3);break;case 7:a=_.ID(K);_.z5(a);O++;if(O>=5)return _.z5(Error("hi`"+O)),W45(W,864E5),K.return({challenge:"",bI:{},qM:void 0,bgChallenge:void 0});m=1E3*Math.pow(2,O-1)+Math.random()*1E3;return K.return(new Promise(function(k){_.KB(_.sF,function(){k(Jh1(W,O))},m)}));
case 3:w=lYO(h);W45(W,w*1E3);A=void 0;if(!("c1a"in h&&T.bgChallenge)){K.jumpTo(10);break}X=UK1(T.bgChallenge);_.LI(K,11);return _.Y(K,o4n(v4f(),X),13);case 13:_.H3(K,12);break;case 11:return l=_.ID(K),_.z5(l),K.return({challenge:L,bI:h,qM:A,bgChallenge:X});case 12:return _.LI(K,14),A=new _.g9({challenge:X,oP:{zv:"aGIf"}}),_.Y(K,A.laZ,16);case 16:_.H3(K,10);break;case 14:p=_.ID(K),_.z5(p),A=void 0;case 10:return K.return({challenge:L,bI:h,qM:A,bgChallenge:X})}})};
_.FC.prototype.hM=function(W){var O=this,b;return _.I(function(T){b=O.networkStatusManager;if(!b||b.isNetworkAvailable())return T.return(O.network.hM(W));_.DM("att_pna",void 0,"attestation_challenge_fetch");return T.return(new Promise(function(L){b.listenOnce("publicytnetworkstatus-online",function(){O.network.hM(W).then(L)})}))})};
var Os9=function(W){if(!W)throw Error("ii");if(!W.challenge)throw Error("ji");var O=W.challenge,b=ct(O);if("c1a"in b&&(!W.bgChallenge||!W.bgChallenge.program))throw Error("ki");return Object.assign({},W,{peL:O,f9Z:b})},yh9=function(W,O){var b,T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:b=void 0,T=0,L={};case 2:if(!(T<5)){a.jumpTo(4);break}if(!(T>0)){a.jumpTo(5);break}L.nfU=1E3*Math.pow(2,T-1)+Math.random()*1E3;return _.Y(a,new Promise(function(m){return function(w){_.KB(_.sF,function(){w(void 0)},m.nfU)}}(L)),5);
case 5:return _.LI(a,7),_.Y(a,W.hM(O),9);case 9:return h=a.yieldResult,a.return(Os9(h));case 7:b=Z=_.ID(a),Z instanceof Error&&_.z5(Z);case 8:T++;L={nfU:void 0};a.jumpTo(2);break;case 4:throw b;}})},uYf=function(W,O){W.ny=O},isN=function(W){var O,b,T;
return _.I(function(L){if(L.nextAddress==1)return _.Y(L,Promise.race([W.ny,null]),2);O=L.yieldResult;var h=Jh1(W);W.ny=h;(b=O)==null||(T=b.qM)==null||T.dispose();_.aD(L)})},W45=function(W,O){var b=Date.now()+O,T=function(){var L;
return _.I(function(h){L=b-Date.now();return L<1E3?_.Y(h,isN(W),0):(_.KB(_.sF,T,Math.min(L,6E4)),h.jumpTo(0))})};
T()},FS$=function(W,O){return new Promise(function(b){_.KB(_.sF,function(){b(O())},W)})};var bsH=function(){};
bsH.prototype.processContext=function(W){var O=_.FC.instance;if(!O)return _.fN();var b=vrX(W);return b?new nN(O.fGZ(b,RCQ(W),500).then(function(T){var L;(W==null?0:(L=W.innerTubeRequest)==null?0:L.context)||(W.innerTubeRequest.context={});L=W.innerTubeRequest.context;L.request||(L.request={});L.request.attestationResponseData=T})):_.fN()};var jU5=function(W){this.innertubeTransportService=W};
jU5.prototype.hM=function(W){_.DM("att_fsr",void 0,"attestation_challenge_fetch");return _.QR(this.innertubeTransportService,W,_.JH(_.Phq)).then(function(O){_.DM("att_frr",void 0,"attestation_challenge_fetch");return O})};_.Tj7=function(W){this.innertubeTransportService=W};var L4N=new _.MV("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var dFq=function(){},SNf=function(W,O,b,T,L){var h=_.Cv("YPC_MB_URL");
_.T$X(h).then(function(){hEn(h,W,O,b,T,L)})},hEn=function(W,O,b,T,L,h){try{var Z=payments.business.integration,a=payments.business.integration.Style.create().withMaterialDesignStyle(),m=Z.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.e("enable_window_constrained_buy_flow_dialog")&&(m=m.usingPopupStyle("windowConstrained"));h&&(m=m.usingCloseCallback(h));var w=b?b:_.Cv("YPC_GB_LANGUAGE"),A=_.Cv("SESSION_INDEX");Z.bootstrap.fromPaymentsUrl(W);Z.bootstrap.asMashupMode(m).usingGaiaIndex(A).usingLocale(w).usingStyle(a).usingDefaultActivityStatusChangeHandler().inStandaloneContext(Z.standaloneContextAuthId.forGaia()).purchaseManager(O,function(X){T&&T(X)}).load(void 0,L)}catch(X){throw L&&L(X),_.Dt(X),X;
}};var Zs1=new _.MV("PURCHASE_MANAGER_TOKEN");var In7=function(){var W=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return W.videos},
getContinuationsPresent:function(){return W.continuationsPresent},
setVideos:function(O){W.videos=O},
getRecommendedVideos:function(){return W.recommendedVideos},
setRecommendedVideos:function(O){W.recommendedVideos=O}}};
In7.prototype.addVideos=function(W){W&&(this.videos=W.filter(function(O){return!!_.or8(O)}).map(function(O){var b=_.or8(O);
a:{var T;if(O.playlistVideoRenderer&&((T=O.playlistVideoRenderer)==null?0:T.voteSortTiebreaker))var L=O.playlistVideoRenderer.voteSortTiebreaker;else{if(_.P(O,WR)){var h;if(T=(L=_.P(O,WR))==null?void 0:(h=L.playlistItemData)==null?void 0:h.voteSortTiebreaker){L=T;break a}}L=""}}return{itemId:b,videoId:_.sE2(O),voteCount:_.BFE(O),voteSortTiebreaker:L}}),this.continuationsPresent=!!_.P(W[W.length-1],_.bU))};
var anz=function(W,O){return W.videos.findIndex(function(b){return b.itemId===O})},mF1=function(W,O){return W.recommendedVideos.findIndex(function(b){return b.itemId===O})},YNN=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:W}}}}};_.iq().resolve(_.bq).resolveCommand(W)};var E55=function(){In7.apply(this,arguments)};
_.R(E55,In7);
var jEH=function(W,O,b,T){if(!W.parentElem)throw Error("pi");var L=anz(W,O);L===-1&&(L=mF1(W,O),L=L!==-1?L+W.videos.length:-1);if(L===-1)throw Error("qi");var h=L>=W.videos.length?W.recommendedVideos[L-W.videos.length]:W.videos[L];h.voteCount=b;h.voteSortTiebreaker=Date.now().toString();L>=W.videos.length?W.recommendedVideos.splice(L-W.videos.length,1):W.videos.splice(L,1);var Z=W.videos;for(var a=0,m=Z.length-1;a<=m;){var w=Math.floor((a+m)/2);if(Z[w].voteCount<h.voteCount)m=w-1;else if(Z[w].voteCount>h.voteCount)a=
w+1;else{a:{var A=h.voteSortTiebreaker;var X=Z[w].voteSortTiebreaker;if(A.length!==X.length)A=A.length>X.length;else{for(var l=0;l<A.length;l++){var p=A.charCodeAt(l),K=X.charCodeAt(l);if(p>K){A=!0;break a}if(p<K)break}A=!1}}A?m=w-1:a=w+1}}Z=a;if(Z===-1)throw Error("ri");W.videos.splice(Z,0,h);L!==Z&&wC9(W,L,Z,O,b,T)},wC9=function(W,O,b,T,L,h){var Z,a=(Z=W.parentElem)==null?void 0:Z.children,m=Math.min(O,b),w=Math.max(O,b);
if(a)for(Z=m;Z<=w;Z++)a[Z].style.viewTransitionName="item-"+String(Z);document.startViewTransition(function(){if(W.parentElem){var A=W.parentElem.children;if(!(!A||O<0||O>=A.length||b<0||b>=A.length)){var X=A[O];if(X){X.remove();W.showRefreshPill=b>=W.videos.length-1&&W.continuationsPresent;if(!W.showRefreshPill){A=A[b]||null;var l;(l=W.parentElem)==null||l.insertBefore(X,A)}_.bX(W.parentElem,"yt-update-video-data-voting-animation",{toIdx:b,itemId:T,newVoteCount:L,voteStatus:h,hideItem:W.showRefreshPill})}}}}).finished.then(function(){if(a)for(var A=
m;A<=w;A++)a[A].style.viewTransitionName="";
if(W.showRefreshPill)YNN(_.EO("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var X;if(X=A=(X=W.parentElem)==null?void 0:X.children[b])X=A.getBoundingClientRect(),A=X.bottom,X=!(X.top>=0&&A<=W.clientHeight);X&&(X=_.wa(O>b?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(O-b)),YNN(X))}})};var UFU=function(W,O){var b=this;W?this.innertubeTransportServicePromise=Promise.resolve(W):O&&(this.innertubeTransportServicePromise=O(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new zC(3E3,function(T){return ABw(b,T)},0);
this.validateMiniAppVideoIdRateLimiter=new zC(3E3,function(T){return XCn(b,T)},1)},WS7=function(W,O){W.JSC$15017_miniAppId=O;
W.reportMiniAppValueRateLimiter=new zC(3E3,function(b){return ABw(W,b)},0);
W.validateMiniAppVideoIdRateLimiter=new zC(3E3,function(b){return XCn(W,b)},1)},iXn=function(W,O){var b;
return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.reportMiniAppValueRateLimiter.call(O),2);b=T.yieldResult;return T.return([b,O])})},ABw=function(W,O){var b,T,L,h,Z,a,m;
return _.I(function(w){switch(w.nextAddress){case 1:return _.Y(w,W.innertubeTransportServicePromise,2);case 2:return b=w.yieldResult,T=_.JH(QL9),L=Date.now(),h={externalPostId:W.JSC$15017_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(L/1E3),nanos:Math.round(L%1E3*1E6)},intValue:""+O}},_.LI(w,3),_.Y(w,_.QR(b,h,T),5);case 5:Z=w.yieldResult;_.H3(w,4);break;case 3:throw a=_.ID(w),a;case 4:if(Z){if("error"in Z&&Z.error)throw Z.error;if(Z.errorMetadata)throw Error("si`"+
Z.errorMetadata.status);if(m=Z.userStatResult)return w.return(m);throw Error("ti");}throw Error("ui");}})},jo9=function(W){var O,b,T,L,h;
_.I(function(Z){switch(Z.nextAddress){case 1:return _.Y(Z,W.innertubeTransportServicePromise,2);case 2:return O=Z.yieldResult,b=_.JH(QL9),T={externalPostId:W.JSC$15017_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.LI(Z,3),_.Y(Z,_.QR(O,T,b),5);case 5:L=Z.yieldResult;_.H3(Z,4);break;case 3:throw h=_.ID(Z),h;case 4:if(L==null)throw Error("ui");if("error"in L&&L.error)throw L.error;if(L.errorMetadata)throw Error("si`"+L.errorMetadata.status);_.aD(Z)}})};
UFU.prototype.flush=function(){var W=this;return _.I(function(O){return O.nextAddress==1?_.Y(O,W.reportMiniAppValueRateLimiter.flush(),2):_.Y(O,W.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var bXH=function(W,O){return _.I(function(b){return b.nextAddress==1?_.Y(b,W.validateMiniAppVideoIdRateLimiter.call(O),2):b.return(b.yieldResult)})},XCn=function(W,O){var b,T,L,h,Z,a;
return _.I(function(m){switch(m.nextAddress){case 1:return _.Y(m,W.innertubeTransportServicePromise,2);case 2:return b=m.yieldResult,T=_.JH(eIH),L={videoId:O},_.LI(m,3),_.Y(m,_.QR(b,L,T),5);case 5:h=m.yieldResult;_.H3(m,4);break;case 3:throw Z=_.ID(m),Z;case 4:if(h){if("error"in h&&h.error)throw h.error;if(h.errorMetadata)throw Error("si`"+h.errorMetadata.status);if(a=h.playabilityStatus)return m.return(a.status);throw Error("vi");}throw Error("ui");}})};
UFU[NV]=[_.OT(_.sP),_.OT(y5H)];var lnH=function(){this.clientData=new Map};
lnH.prototype.getData=function(W){return this.clientData.get(W)};var eEz=function(W){this.store=W};
eEz.prototype.handleResponse=function(W){(W=_.P(W.frameworkUpdates,Nf))&&_.wm(W,this.store)};
eEz[NV]=[_.sZ];var PAL=new _.MV("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var pCw={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var RE9=new _.MV("ICON_SET_TOKEN"),K49=new _.MV("ICON_URL_PROVIDER_TOKEN"),v5z=new _.MV("PREFETCH_ICONS_TOKEN"),g5U=new _.MV("ICON_MAP_FN_TOKEN");var y5={},o5v=(y5.ACCESS_TIME="clock",y5.ACCOUNT_BOX="person_account",y5.ACCOUNT_BOX_CAIRO="person_account_cairo",y5.ACCOUNT_CIRCLE="person_circle",y5.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",y5.ACCOUNT_LINKED="account_link_success",y5.ACCOUNT_UNLINKED="account_link",y5.ADD_FRIEND="people",y5.ADD_MODERATOR="shield_add",y5.ADD_TO_LIBRARY=iU("add"),y5.ADD_TO_PLAYLIST="add",y5.ADD_TO_QUEUE_TAIL="list_queue",y5.ADD_TO_REMOTE_QUEUE="list_music",y5.ADD_TO_WATCH_LATER="clock",y5.ADD_VIDEO_LINK="film_strip_add",
y5.ALERT_WARN_RED="alert_triangle",y5.ARROW_BACK="arrow_left",y5.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",y5.ARROW_DROP_DOWN="chevron_down",y5.ARROW_DROP_UP="chevron_up",y5.ARROW_FORWARD="arrow_right",y5.AUDIOTRACK="audio",y5.AUTO_AWESOME="sparkle",y5.AVATAR_ANONYMOUS="person_circle",y5.AVATAR_LOGGED_OUT="person_circle",y5.BACK="arrow_left",y5.BAR_CHART="bar_graph",y5.BLOCK="slash_circle_left",y5.BLOCK_USER="slash_circle_left",y5.BOOKMARK_BORDER="bookmark",y5.BREAKING_NEWS_ALT_1="article_alert",
y5.BROADCAST_CAIRO="podcast_cairo",y5.BUG_REPORT="bug",y5.CAMERA_ALT="camera",y5.CAMPAIGN="megaphone",y5.CANCEL="x_circle",y5.CAPTIONS="closed_caption",y5.CAST_OUTLINE="chromecast",y5.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",y5.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",y5.CHAT="message_bubble_left",y5.CHAT_BUBBLE="message_bubble_empty",y5.CHAT_SPARK="spark_message_bubble_left",y5.CHECK_BOX_OUTLINE_BLANK="box_empty",y5.CHECK_CIRCLE_OUTLINE="check_circle",y5.CHECK_CIRCLE_THICK="check_circle",y5.CLARIFY=
"article_clarify",y5.CLOSED_CAPTION_SELECTED="closed_caption",y5.CLOSE="x_mark",y5.CLOUD_UPLOAD="cloud_arrow_up",y5.COLLAPSE="chevron_up",y5.COLLAPSE_CAIRO="chevron_up_cairo",y5.COLLECTION="layers",y5.COLOR_LENS="palette",y5.COMMENT="message_bubble_right",y5.CONSENT_SHIELD="person_shield",y5.CONTENT_CUT="scissors",y5.CONTENT_CUT_CAIRO="scissors_cairo",y5.COURSE=_.e("web_enable_course_icon_update")?"creator_academy":"lightbulb",y5.COURSE_CAIRO=_.e("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",y5.CREATION_LIVE="radar_live",y5.CREATION_POST="box_pencil",y5.CREATION_UPLOAD="my_videos",y5.CREATION_UPLOAD_RED="upload",y5.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",y5.CREATOR_STUDIO="youtube_studio",y5.DASHBOARD="grid_asymmetrical",y5.DELETE="trash_can",y5.DELETE_SWEEP="trash_can",y5.DESKTOP="laptop",y5.DISLIKE="thumb_down",y5.DISLIKE_SELECTED="thumb_down",y5.DISMISSAL="x_mark",y5.DISMISS_QUEUE="list_remove",y5.DONE_ALL="check_double",y5.DOWN_ARROW="arrow_down",y5.DO_NOT_DISTURB=
"slash_circle_left",y5.DRAFT="paper_corner_folded",y5.DRAG_HANDLE="bars_2",y5.EDIT="pencil",y5.EMOJI="face_very_happy",y5.EMOJI_FLAGS="flag",y5.EMOJI_OBJECTS="lightbulb",y5.EMOJI_PEOPLE="face_very_happy",y5.EMOJI_RECENT="clock",y5.EMPTY_HEART="heart",y5.EMPTY_LIKE="thumb_up",y5.ERROR_BLACK="alert_circle",y5.ERROR_OUTLINE="alert_circle",y5.EXIT_APP="arrow_in",y5.EXIT_TO_APP="arrow_in",y5.EXPAND="chevron_down",y5.EXPAND_ALL="chevron_expand",y5.EXPAND_CAIRO="chevron_down_cairo",y5.EXPAND_LESS="chevron_up",
y5.EXPAND_MORE="chevron_down",y5.EXPLORE="compass",y5.EXPLORE_DESTINATION="compass",y5.EXTERNAL_LINK="open_new",y5.FAB_UPLOAD="upload",y5.FACE_HAPPY_OUTLINE="face_happy",y5.FACT_CHECK="article_check",y5.FASHION_LOGO="fashion",y5.FASHION_LOGO_CAIRO="fashion_cairo",y5.FAVORITE="heart",y5.FEEDBACK="message_bubble_alert",y5.FEEDBACK_CAIRO="message_bubble_alert_cairo",y5.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",y5.FILL_ARROW_SOLID_UP_16="arrow_solid_up",y5.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
y5.FILTER="menu_filter",y5.FIRST_PAGE="chevron_first",y5.FLAG="flag",y5.FULL_HEART="heart",y5.GAME_CONSOLE_DPAD="game_console_dpad",y5.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",y5.GAMING_LOGO="gaming",y5.GAMING_LOGO_CAIRO="gaming_cairo",y5.GO_TO_PAGE="arrow_right",y5.GROUPS="people_group",y5.HAPPY="face_happy",y5.HEALTH_AND_SAFETY="shield_plus",y5.HELP="question_circle",y5.HELP_CAIRO="question_circle_cairo",y5.HELP_OUTLINE="question_circle",y5.HIDE="slash_circle_left",y5.IMAGE="image",
y5.INFINITY_ICON="infinity",y5.INFO="info_circle",y5.INFO_OUTLINE="info_circle",y5.INSERT_CHART_OUTLINED="bar_graph_box_vertical",y5.INSERT_PHOTO="image",y5.KEEP="pin",y5.KEEP_OFF="pin_off",y5.KEYBOARD="keyboard",y5.KEYBOARD_ARROW_DOWN="chevron_down",y5.KEYBOARD_ARROW_UP="chevron_up",y5.KIDS_BLOCK="slash_circle_left",y5.LANGUAGE="globe",y5.LAST_PAGE="chevron_last",y5.LAUNCH="open_new",y5.LEARNING="lightbulb",y5.LEARNING_CAIRO="lightbulb_cairo",y5.LIBRARY_ADD=iU("library_add"),y5.LIBRARY_OUTLINE="library",
y5.LIBRARY_REMOVE=iU(),y5.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",y5.LIKES_PLAYLIST="thumb_up",y5.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",y5.LIKE="thumb_up",y5.LIKE_SELECTED="thumb_up",y5.LIVE="radar_live",y5.LIVE_CAIRO="radar_live_cairo",y5.LIVE_UNLISTED="link",y5.LOCATION_ON="location_point",y5.LOCATION_PIN="location_point",y5.LOOP="arrow_repeat",y5.LOOP_ACTIVE="arrow_repeat",y5.LOOP_ONE="arrow_repeat_1",y5.LOOP_ONE_ACTIVE="arrow_repeat_1",y5.MEH="face_meh",y5.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
y5.MESSAGE="message_bubble_left",y5.MICROPHONE_ON="mic",y5.MIX="youtube_mix",y5.MONETIZATION_ON="dollar_sign_circle",y5.MONEY_FILL="dollar_sign_container",y5.MONEY_FILL_JPY="yen_sign_container",y5.MONEY_HEART="dollar_sign_heart",y5.MORE_HORIZ="overflow_horizontal",y5.MORE_VERT="overflow_vertical",y5.MUSIC="audio",y5.MUSIC_CAIRO="audio_cairo",y5.MUSIC_NOTE_SYMBOL="music",y5.MUSIC_SHUFFLE="arrow_shuffle",y5.MY_CHANNEL="person_circle",y5.MY_LOCATION="location_point",y5.NEWS_STORY="news",y5.NEXT="chevron_right",
y5.NOTIFICATIONS="bell",y5.NOTIFICATIONS_ACTIVE="bell_on",y5.NOTIFICATIONS_CAIRO="bell_cairo",y5.NOTIFICATIONS_DONE_CHECKMARK="check",y5.NOTIFICATIONS_INBOX="bell",y5.NOTIFICATIONS_NONE="bell",y5.NOTIFICATIONS_OFF="bell_off",y5.NOT_INTERESTED="slash_circle_left",y5.OFFICIAL_ARTIST_BADGE="audio",y5.OFFLINE_CLOUD="cloud_off",y5.OFFLINE_DOWNLOAD="download",y5.OFFLINE_DOWNLOAD_CAIRO="download_cairo",y5.OFFLINE_PAUSE="pause",y5.OPEN_IN_NEW="open_new",y5.OUTLINE_ADJUST="adjust",y5.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",y5.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",y5.OUTLINE_BAG="bag",y5.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",y5.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",y5.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",y5.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",y5.PAID="dollar_sign",y5.PAUSE_OUTLINED="pause",y5.PAYMENT="credit_card",y5.PERSON_RADAR_FILLED="person_radar",y5.PHONE_DOWNLOAD="mobile_download",y5.PLAYABLES_LOGO="tic_tac_toe",y5.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
y5.PLAYLISTS="list_play_arrow",y5.PLAYLISTS_CAIRO="list_play_arrow_cairo",y5.PLAYLIST_ADD=iU("list_add"),y5.PLAYLIST_ADD_CHECK=iU("list_check"),y5.PLAYLIST_PLAY="list_play_arrow",y5.PLAY_ALL="play_arrow",y5.PLAY_CIRCLE="play_arrow_circle",y5.PLAY_OUTLINED="play_arrow_circle",y5.PRIVACY_INFO="shield",y5.PRIVACY_PRIVATE="lock",y5.PRIVACY_PUBLIC="earth",y5.PRIVACY_UNLISTED="link",y5.PROMOTE="megaphone",y5.PURCHASES="price_tag",y5.PURCHASE_SUPER_CHAT="super_chat",y5.PURCHASE_SUPER_STICKER="super_sticker",
y5.QUESTION_ANSWER="message_bubble_question",y5.QUEUE_PLAY_LAST="list_queue_last",y5.QUEUE_PLAY_NEXT="list_play_arrow",y5.REMIX_FILLED="youtube_shorts_remix",y5.REMOVE="bar_circle",y5.REMOVE_CIRCLE="bar_circle",y5.REMOVE_CIRCLE_OUTLINE="bar_circle",y5.REMOVE_DONE="check_double_off",y5.REMOVE_FROM_HISTORY="bar_circle",y5.REMOVE_FROM_PLAYLIST="bar_circle",y5.REMOVE_MODERATOR="shield_off",y5.REPLAY="arrow_circle",y5.REPLAY_10="skip_back_10",y5.REPORT_PROBLEM="alert_triangle",y5.SAD="face_sad",y5.SAVE_PLAYLIST=
iU("library_add"),y5.SCHEDULE="clock",y5.SCHOOL="creator_academy",y5.SCREEN_FULLSCREEN="screen_full",y5.SEARCH_HISTORY="arrow_time",y5.SELL="price_tag",y5.SETTINGS="gear",y5.SETTINGS_CAIRO="gear_cairo",y5.SETTINGS_LIGHT="gear",y5.SETTINGS_MATERIAL="gear",y5.SHARE_ARROW="share",y5.SHIELD_WITH_AVATAR="person_shield",y5.SHOPPING_BAG="bag",y5.SHOPPING_BAG_CAIRO="bag_cairo",y5.SHOPPING_CART="cart",y5.SHORTS_COMMENT="youtube_shorts_message_bubble_right",y5.SHORTS_DISLIKE="youtube_shorts_thumb_down",y5.SHORTS_LIKE=
"youtube_shorts_thumb_up",y5.SHORTS_SHARE="youtube_shorts_share",y5.SHUFFLE="arrow_shuffle",y5.SLOW_MODE_OFF="message_bubble_left",y5.SOCIAL="people",y5.SORT="menu_sort",y5.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",y5.SPEED_1X="1x",y5.SPEED_1_POINT_2X="1_point_2x",y5.SPEED_1_POINT_5X="1_point_5x",y5.SPEED_1_POINT_8X="1_point_8x",y5.SPEED_2X="2x",y5.SPEED_POINT_2X="point_2x",y5.SPEED_POINT_8X="point_8x",y5.SPONSORSHIP_STAR=_.e("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",y5.STAFF_PICK=
"spotlight",y5.START_DVR="add",y5.STAR_BORDER="star",y5.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",y5.STICKER_EMOTICON="face_happy",y5.STOP_DVR="stop",y5.SUBSCRIBE="youtube_logo_icon",y5.SUBSCRIBE_PLUS="add_cairo",y5.SUBSCRIPTION_MANAGER="gear",y5.SUPERVISOR_ACCOUNT="people",y5.SUPER_CHAT_FOR_GOOD="hands_heart",y5.SWAP_HORIZ="arrow_swap_horizontal",y5.SWITCH_ACCOUNTS="person_account",y5.TAB_ACCOUNT="person",y5.TAB_ACTIVITY="bell",y5.TAB_BOOKMARK="bookmark",y5.TAB_EXPLORE="compass",y5.TAB_HOME=
"home",y5.TAB_HOME_CAIRO="home_cairo",y5.TAB_INBOX="mail",y5.TAB_LIKED="thumb_up",y5.TAB_MUSIC_PREMIUM="youtube_music",y5.TAB_SHORTS="youtube_shorts",y5.TAB_SHORTS_CAIRO="youtube_shorts_cairo",y5.TAB_SUBSCRIPTIONS="subscriptions",y5.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",y5.TAB_TRENDING="fire",y5.TIMER="stopwatch",y5.TRAILER="youtube_originals",y5.TRENDING="fire",y5.TRENDING_CAIRO="fire_cairo",y5.TRENDING_UP="rating_up",y5.TROPHY="trophy",y5.TROPHY_CELEBRATIONS="fireworks",y5.TUNE="adjust",
y5.UNBLOCK_USER="bar_circle",y5.UNLIMITED="youtube_logo_icon",y5.UNPLUGGED_LIVE_GUIDE="radar_live",y5.UNPLUGGED_SPORTS="eye_off",y5.UPLOADS="library",y5.UP_ARROW="arrow_up",y5.VERTICAL_ALIGN_BOTTOM="download",y5.VERY_HAPPY="face_very_happy",y5.VERY_SAD="face_very_sad",y5.VIDEOGAME_ASSET="gaming",y5.VIDEOS="play_arrow_circle",y5.VIDEO_CALL="video_camera_add",y5.VIDEO_LIBRARY_WHITE="library",y5.VIDEO_YOUTUBE="youtube_logo_icon",y5.VIEW_LIST="list_view",y5.VIEW_LIST_CAIRO="list_view_cairo",y5.VISIBILITY=
"eye",y5.VISIBILITY_OFF="eye_off",y5.VOLUME_MUTE="volume_off",y5.VOLUME_UP="volume_on",y5.WALLPAPER="image",y5.WARNING="alert_triangle",y5.WATCH_HISTORY="arrow_time",y5.WATCH_HISTORY_CAIRO="arrow_time_cairo",y5.WATCH_LATER="clock",y5.WATCH_LATER_CAIRO="clock_cairo",y5.WATCH_RELATED_MIX="youtube_mix",y5.WHAT_TO_WATCH="home",y5.YOUTUBE_MUSIC_MONOCHROME="youtube_music",y5.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",y5.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",y5.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",y5.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",y5.YT_OUTLINE_MUSIC_24="music",y5);var Wv={},QUN=(Wv.ACCESS_TIME="clock",Wv.ACCOUNT_BOX="person2_rectangle",Wv.ACCOUNT_BOX_CAIRO="person_square_stack",Wv.ACCOUNT_CIRCLE="person_circle",Wv.ACCOUNT_CIRCLE_CAIRO="person_circle",Wv.ACCOUNT_UNLINKED="account_link",Wv.ADD_CIRCLE="add_circle",Wv.ADD_FRIEND="person_child",Wv.ADD_TO_LIBRARY="bookmark",Wv.ADD_TO_PLAYLIST="add",Wv.ADD_TO_QUEUE_TAIL="queue",Wv.ADD_TO_REMOTE_QUEUE="playlist_audio",Wv.ADD_TO_WATCH_LATER="clock",Wv.ADD_VIDEO_LINK="film_strip_add",Wv.ADMIN_PANEL_SETTINGS="gear",Wv.ALERT_WARN_RED=
"alert_triangle",Wv.ALIGN_LEFT="text_align_left",Wv.ARROWS_ALERT="arrow_split_alert",Wv.ARROW_BACK="arrow_left",Wv.ARROW_CIRCLE="arrow_counterclockwise",Wv.ARROW_CIRCLE_PLAY="replay",Wv.ARROW_CIRCLE_RIGHT="arrow_clockwise",Wv.ARROW_DIAGONAL="arrow_up_left",Wv.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Wv.ARROW_DROP_DOWN="chevron_down",Wv.ARROW_DROP_UP="chevron_up",Wv.ARROW_FORWARD="arrow_right",Wv.ARROW_PAUSE="pause_history",Wv.ARROW_UNDO="undo",Wv.ARTICLE="text_page",Wv.ARTICLE_ALERT="text_page_alert",
Wv.ARTICLE_CHECK="text_page_check",Wv.ARTICLE_CLARIFY="text_page_info",Wv.AUDIOTRACK="audio",Wv.AUDIO_BADGE="audio_badge",Wv.AUDIO_SURROUND="surround_sound",Wv.AVATAR_ANONYMOUS="person_circle",Wv.AVATAR_LOGGED_OUT="person_circle",Wv.BACK="arrow_left",Wv.BAR_CHART="chart_bar",Wv.BAR_CIRCLE="minus_circle",Wv.BAR_HORIZONTAL="minus",Wv.BLOCK="circle_slash",Wv.BLOCK_USER="circle_slash",Wv.BOOKMARK_BORDER="bookmark",Wv.BOX_OPEN_CHECK="quiz",Wv.BOX_PENCIL="square_pencil",Wv.BREAKING_NEWS_ALT_1="text_page_alert",
Wv.BROADCAST="podcast",Wv.BROADCAST_CAIRO="podcast",Wv.BUG_REPORT="bug",Wv.CAMERA_ALT="camera",Wv.CAMPAIGN="megaphone",Wv.CANCEL="x_circle",Wv.CAPTIONS="closed_captions",Wv.CAST_OUTLINE="chromecast",Wv.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Wv.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Wv.CHAT="text_bubble",Wv.CHAT_BUBBLE="bubble",Wv.CHECK_CIRCLE_OUTLINE="check_circle",Wv.CHECK_CIRCLE_THICK="check_circle",Wv.CHECK_DOUBLE="check_done",Wv.CHECK_DOUBLE_OFF="check_done_slash",Wv.CHEVRON_RIGHT_CAIRO=
"chevron_right",Wv.CIRCLES_OVERLAP="account_link",Wv.CLAPPERBOARD_CAIRO="clapperboard",Wv.CLARIFY="text_page_info",Wv.CLOCK_ARROWS="clock_split",Wv.CLOCK_ARROWS_ALERT="clock_split_alert",Wv.CLOSED_CAPTION="closed_captions",Wv.CLOSED_CAPTION_SELECTED="closed_captions",Wv.CLOSE="x",Wv.CLOUD_UPLOAD="cloud_arrow_up",Wv.COLLAPSE="chevron_up",Wv.COLLAPSE_CAIRO="chevron_up",Wv.COLLECTION="square3d_stack",Wv.COLOR_LENS="paint_palette",Wv.COMMENT="text_bubble",Wv.CONSENT_SHIELD="person_shield",Wv.CONTENT_CUT=
"scissors",Wv.CONTENT_CUT_CAIRO="scissors",Wv.COURSE="graduation_cap",Wv.COURSE_CAIRO="graduation_cap",Wv.CREATION_LIVE="live",Wv.CREATION_POST="square_pencil",Wv.CREATION_UPLOAD="video",Wv.CREATION_UPLOAD_RED="upload",Wv.CREATOR_ACADEMY="graduation_cap",Wv.CREATOR_STUDIO="youtube_studio",Wv.DARK_THEME="theme",Wv.DELETE="trash_can",Wv.DELETE_SWEEP="trash_can",Wv.DESKTOP="laptop",Wv.DISLIKE="thumb_down",Wv.DISLIKE_SELECTED="thumb_down",Wv.DISMISSAL="x",Wv.DOGFOOD="pawprint",Wv.DOLLAR_SIGN="dollar_sign_circle",
Wv.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Wv.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Wv.DOWN_ARROW="arrow_down",Wv.DO_NOT_DISTURB="circle_slash",Wv.DRAFT="document",Wv.EARTH="globe",Wv.EDIT="pencil",Wv.EMOJI="face_very_happy",Wv.EMOJI_FLAGS="flag",Wv.EMOJI_OBJECTS="lightbulb",Wv.EMOJI_PEOPLE="face_very_happy",Wv.EMOJI_RECENT="clock",Wv.EMPTY_HEART="heart",Wv.EMPTY_LIKE="thumb_up",Wv.ERROR_BLACK="alert_circle",Wv.ERROR_OUTLINE="alert_circle",Wv.EXIT_APP="arrow_in",Wv.EXIT_TO_APP="arrow_in",
Wv.EXPAND="chevron_down",Wv.EXPAND_ALL="chevron_expand",Wv.EXPAND_CAIRO="chevron_down",Wv.EXPAND_LESS="chevron_up",Wv.EXPAND_MORE="chevron_down",Wv.EXPLORE="compass",Wv.EXPLORE_DESTINATION="compass",Wv.EXTERNAL_LINK="arrow_up_right",Wv.EYE_OFF="eye_slash",Wv.FAB_UPLOAD="upload",Wv.FACE_HAPPY_OUTLINE="face_happy",Wv.FACE_MEH="face_neutral",Wv.FACT_CHECK="text_page_check",Wv.FASHION_LOGO="fashion",Wv.FASHION_LOGO_CAIRO="fashion",Wv.FEEDBACK="alert_bubble",Wv.FEEDBACK_CAIRO="alert_bubble",Wv.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",Wv.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Wv.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Wv.FLAG_CAIRO="flag",Wv.FLASH_OFF="flash_slash",Wv.FLASH_ON="flash",Wv.FULL_HEART="heart",Wv.GAMING_LOGO="gaming",Wv.GAMING_LOGO_CAIRO="gaming",Wv.GO_TO_PAGE="arrow_right",Wv.GROUPS="person3",Wv.HAND_SWIPE_LEFT="gesture_swipe_left",Wv.HAND_SWIPE_RIGHT="gesture_swipe_right",Wv.HAPPY="face_happy",Wv.HEALTH_AND_SAFETY="shield_health",Wv.HEART_BOX="heart_cube",Wv.HELP="help_circle",Wv.HELP_CAIRO=
"help_circle",Wv.HELP_OUTLINE="help_circle",Wv.HIDE="circle_slash",Wv.INCOGNITO_CAIRO="incognito",Wv.INFINITY_ICON="infinity",Wv.INFO="info_circle",Wv.INFO_OUTLINE="info_circle",Wv.INSERT_PHOTO="image",Wv.KEEP="pin",Wv.KEEP_OFF="pin_slash",Wv.KEYBOARD="keyboard",Wv.KEYBOARD_ARROW_DOWN="chevron_down",Wv.KEYBOARD_ARROW_UP="chevron_up",Wv.KIDS_BLOCK="circle_slash",Wv.LANGUAGE="globe",Wv.LAUNCH="arrow_up_right",Wv.LEARNING="lightbulb",Wv.LEARNING_CAIRO="lightbulb",Wv.LIBRARY_ADD="bookmark",Wv.LIBRARY_IMAGE=
"image_stack",Wv.LIBRARY_MUSIC="audio_square_stack",Wv.LIBRARY_OUTLINE="play_square_stack",Wv.LIBRARY_REMOVE="bookmark",Wv.LIKES_PLAYLIST="thumb_up",Wv.LIKES_PLAYLIST_CAIRO="thumb_up",Wv.LIKE="thumb_up",Wv.LIKE_SELECTED="thumb_up",Wv.LIST_QUEUE="queue",Wv.LIVE_CAIRO="live",Wv.LIVE_UNLISTED="link",Wv.LOCATION_ON="location_pin",Wv.LOCATION_PIN="location_pin",Wv.LOCATION_POINT="location_pin",Wv.LOOP="repeat",Wv.LOOP_ACTIVE="repeat",Wv.LOOP_ONE="repeat1",Wv.LOOP_ONE_ACTIVE="repeat1",Wv.MEET="google_meet",
Wv.MEH="face_neutral",Wv.MEMBERSHIPS="memberships",Wv.MEMBERS_ONLY_MODE_OFF="text_bubble",Wv.MENU_FILTER="filter",Wv.MESSAGE="text_bubble",Wv.MESSAGE_BUBBLE_GEAR="bubble_gear",Wv.MESSAGE_BUBBLE_LEFT="text_bubble",Wv.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Wv.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Wv.MESSAGE_BUBBLE_QUESTION="help_bubble",Wv.MICROPHONE_ON="mic",Wv.MONETIZATION_ON="dollar_sign_circle",Wv.MONEY_FILL="dollar_sign_rectangle",Wv.MONEY_FILL_JPY="yen_sign_rectangle",Wv.MONEY_HAND="dollar_sign_circle_hand",
Wv.MONEY_HEART="dollar_sign_heart",Wv.MOON_Z="sleep_timer",Wv.MORE_HORIZ="overflow_horizontal",Wv.MORE_VERT="overflow_vertical",Wv.MUSIC="audio",Wv.MUSIC_CAIRO="audio",Wv.MUSIC_NOTE_SYMBOL="audio",Wv.MUSIC_SCISSORS="audio_scissors",Wv.MUSIC_SHUFFLE="shuffle",Wv.MY_CHANNEL="person_circle",Wv.MY_LOCATION="location_pin",Wv.MY_VIDEOS="video",Wv.MY_VIDEOS_CAIRO="video",Wv.NEWS_CAIRO="news",Wv.NEWS_STORY="news",Wv.NEXT="chevron_right",Wv.NOTE_ADD="bubble_pencil",Wv.NOTIFICATIONS="bell",Wv.NOTIFICATIONS_ACTIVE=
"bell_waves",Wv.NOTIFICATIONS_CAIRO="bell",Wv.NOTIFICATIONS_DONE_CHECKMARK="check",Wv.NOTIFICATIONS_INBOX="bell",Wv.NOTIFICATIONS_NONE="bell",Wv.NOTIFICATIONS_OFF="bell_slash",Wv.NOT_INTERESTED="circle_slash",Wv.OFFICIAL_ARTIST_BADGE="audio",Wv.OFFLINE_CLOUD="cloud_slash",Wv.OFFLINE_DOWNLOAD="download",Wv.OFFLINE_DOWNLOAD_CAIRO="download",Wv.OFFLINE_PAUSE="pause",Wv.OPEN_IN_NEW="arrow_up_right",Wv.OUTLINE_ADJUST="adjust",Wv.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Wv.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",Wv.OUTLINE_BAG="bag",Wv.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Wv.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Wv.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Wv.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Wv.PAID="dollar_sign_circle",Wv.PAUSE_OUTLINED="pause",Wv.PAYMENT="credit_card",Wv.PEOPLE="person_child",Wv.PEOPLE_2="person2_rectangle",Wv.PEOPLE_GROUP="person3",Wv.PEOPLE_NOTE="bubble_asterisk",Wv.PERSON_2="person2",Wv.PERSON_ACCOUNT="person_square_stack",Wv.PERSON_MINUS=
"person_x",Wv.PERSON_MUSIC="person_audio",Wv.PERSON_RADAR="person_waves",Wv.PERSON_RADAR_FILLED="person_waves",Wv.PERSON_SETTING="person_gear",Wv.PHONE="phone",Wv.PHONE_DOWNLOAD="mobile_arrow_down",Wv.PICTURE_IN_PICTURE="picture_in_picture",Wv.PLAYABLES_LOGO="playables",Wv.PLAYABLES_LOGO_CAIRO="playables",Wv.PLAYLISTS="playlist",Wv.PLAYLISTS_CAIRO="playlist",Wv.PLAYLIST_ADD="bookmark",Wv.PLAYLIST_ADD_CHECK="bookmark",Wv.PLAY_ALL="play",Wv.PLAY_ARROW="play",Wv.PLAY_ARROW_CIRCLE="play_circle",Wv.PLAY_ARROW_HALF_CIRCLE=
"play_circle_half_dashed",Wv.PLAY_CIRCLE="play_circle",Wv.PLAY_OUTLINED="play_circle",Wv.PODCAST_ADD="podcast_add",Wv.PODCAST_CHECK="podcast_check",Wv.PRIVACY_PRIVATE="lock",Wv.PRIVACY_PUBLIC="globe",Wv.PRIVACY_UNLISTED="link",Wv.PROMOTE="megaphone",Wv.PURCHASES="price_tag",Wv.PURCHASE_SUPER_CHAT="super_chat",Wv.PURCHASE_SUPER_STICKER="super_sticker",Wv.QUESTION_ANSWER="help_bubble",Wv.QUESTION_CIRCLE="help_circle",Wv.QUEUE_PLAY_LAST="queue_last",Wv.QUOTATION_MARK="quote",Wv.RADAR_LIVE="live",Wv.REMOVE=
"minus_circle",Wv.REMOVE_CIRCLE="minus_circle",Wv.REMOVE_CIRCLE_OUTLINE="minus_circle",Wv.REMOVE_FROM_HISTORY="minus_circle",Wv.REMOVE_FROM_PLAYLIST="minus_circle",Wv.REPLAY="arrow_counterclockwise",Wv.REPLAY_ARROW="replay",Wv.REPORT_PROBLEM="alert_triangle",Wv.RSS_OFF="rss_slash",Wv.SAD="face_sad",Wv.SAVE_PLAYLIST="bookmark",Wv.SCHEDULE="clock",Wv.SCHOOL="graduation_cap",Wv.SCREEN_DEFAULT="player_default",Wv.SCREEN_FULLSCREEN="player_full_enter",Wv.SCREEN_LIGHT="ambient_mode",Wv.SCREEN_SWITCH="player_switch",
Wv.SEARCH_CAIRO="search",Wv.SEARCH_HISTORY="history",Wv.SELL="price_tag",Wv.SETTINGS="gear",Wv.SETTINGS_CAIRO="gear",Wv.SETTINGS_LIGHT="gear",Wv.SETTINGS_MATERIAL="gear",Wv.SETTINGS_REMOTE="remote_waves",Wv.SHARE="share",Wv.SHARE_ARROW="share",Wv.SHARE_CAIRO="share",Wv.SHIELD="shield_x",Wv.SHIELD_OFF="shield_slash",Wv.SHIELD_WITH_AVATAR="person_shield",Wv.SHOPPING_BAG="bag",Wv.SHOPPING_BAG_CAIRO="bag",Wv.SHOPPING_CART="cart",Wv.SHORTS_COMMENT="text_bubble",Wv.SHORTS_DISLIKE="thumb_down",Wv.SHORTS_LIKE=
"thumb_up",Wv.SHORTS_SHARE="share",Wv.SLASH_CIRCLE_RIGHT="circle_slash",Wv.SLOW_MODE_OFF="text_bubble",Wv.SOCIAL="person_child",Wv.SPARKLE="sparkles",Wv.SPARK_IMAGE="image_spark",Wv.SPARK_RADAR="spark_waves",Wv.SPARK_VIDEO="video_spark",Wv.SPEAKER_GROUP="speaker_stack",Wv.SPEAKER_OFF="speaker_slash",Wv.SPEED_1X="n1x",Wv.SPEED_1_POINT_2X="n1point2x",Wv.SPEED_1_POINT_5X="n1point5x",Wv.SPEED_1_POINT_8X="n1point8x",Wv.SPEED_2X="n2x",Wv.SPONSORSHIP_STAR="memberships",Wv.SPORTS="basketball",Wv.SPOTLIGHT=
"spotlight",Wv.STAFF_PICK="spotlight",Wv.START_DVR="add",Wv.STAR_BORDER="star",Wv.STAR_HALF="star_half_filled",Wv.STAR_SHOOTING="hype",Wv.STICKER="sticker",Wv.STICKER_EMOTICON="face_happy",Wv.STOP_DVR="stop",Wv.SUBSCRIBE="youtube",Wv.SUBSCRIBE_PLUS="add",Wv.SUBSCRIPTION_MANAGER="gear",Wv.SUPERSTAR="super_star",Wv.SUPERVISOR_ACCOUNT="person_child",Wv.SWAP_HORIZ="arrow_swap_horizontal",Wv.SWITCH_ACCOUNTS="person_square_stack",Wv.TAB_ACCOUNT="person",Wv.TAB_ACTIVITY="bell",Wv.TAB_BOOKMARK="bookmark",
Wv.TAB_EXPLORE="compass",Wv.TAB_HOME="home",Wv.TAB_HOME_CAIRO="home",Wv.TAB_INBOX="mail",Wv.TAB_LIKED="thumb_up",Wv.TAB_MUSIC_PREMIUM="youtube_music",Wv.TAB_SHORTS="shorts",Wv.TAB_SHORTS_CAIRO="shorts",Wv.TAB_SUBSCRIPTIONS="subscriptions",Wv.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Wv.TAB_TRENDING="trending",Wv.TARGET="target",Wv.TARGET_ADD="target_add",Wv.TEMPLATE_ADD="template_add",Wv.TEXT="font",Wv.TIMER="stopwatch",Wv.TRENDING_CAIRO="trending",Wv.TRENDING_UP="arrow_trend_up",Wv.TROPHY_CAIRO="trophy",
Wv.TROPHY_CELEBRATIONS="fireworks",Wv.TROPHY_STAR="star_trophy",Wv.TUNE="adjust",Wv.UNBLOCK_USER="minus_circle",Wv.UNLIMITED="youtube",Wv.UNPLUGGED_LIVE_GUIDE="live",Wv.UNPLUGGED_SPORTS="eye_slash",Wv.UPLOADS="play_square_stack",Wv.UP_ARROW="arrow_up",Wv.VERTICAL_ALIGN_BOTTOM="download",Wv.VERY_HAPPY="face_very_happy",Wv.VERY_SAD="face_very_sad",Wv.VIDEOS="play_circle",Wv.VIDEO_CALL="video_camera_add",Wv.VIDEO_LIBRARY_WHITE="play_square_stack",Wv.VIDEO_QUALITY_4K="n4k",Wv.VIDEO_QUALITY_8K="n8k",Wv.VIDEO_YOUTUBE=
"youtube",Wv.VIEW_LIST_CAIRO="view_list",Wv.VIEW_MODULE="view_column3_row2",Wv.VISIBILITY="eye",Wv.VISIBILITY_OFF="eye_slash",Wv.VOLUME_DOWN="volume_min",Wv.VOLUME_MUTE="volume_mute",Wv.VOLUME_OFF="volume_mute",Wv.VOLUME_STABLE="stable_volume",Wv.VOLUME_UP="volume_max",Wv.WALLPAPER="image",Wv.WARNING="alert_triangle",Wv.WATCH_HISTORY="history",Wv.WATCH_HISTORY_CAIRO="history",Wv.WATCH_LATER="clock",Wv.WATCH_LATER_CAIRO="clock",Wv.WATCH_RELATED_MIX="mix",Wv.WHAT_TO_WATCH="home",Wv.YOUTUBE_LINKED_TV=
"tv_mobile",Wv.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Wv.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Wv.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Wv.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Wv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Wv.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Wv.YOUTUBE_SHORTS_OUTLINE_24="shorts",Wv);var kmq={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,8,16],[1,8,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,5,24],
[1,5,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,4,24],[1,4,20],[1,4,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_circle:[[0,9,24],[1,9,16],[1,9,24]],alert_triangle:[[0,8,12],[0,8,24],[1,8,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,
1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,7,24],[1,7,24]],arrow_left:[[1,
7,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_solid_up:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,9,12],[0,9,16],[0,9,24],[1,9,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,
24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,8,24],[1,8,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,10,
12],[0,10,16],[0,10,24],[1,10,16],[1,10,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,18],[1,8,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
6,16,!0],[0,6,18,!0],[0,6,24,!0],[1,6,16,!0],[1,6,18,!0],[1,6,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,3,24],[1,3,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,9,24],[1,9,16],[1,9,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,16],[0,4,24],[1,4,12],[1,4,16],[1,4,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,10,16],[0,10,24],[1,10,16],[1,10,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,21,12],[0,21,24],[1,21,16],[1,21,24]],dollar_sign_off:[[1,3,24]],download:[[0,10,24],[1,10,16],[1,10,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],
face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_unhappy:[[0,8,24],[0,8,36],[1,8,24],[1,8,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,5,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],filter_face:[[0,
5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,8,24],[1,8,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,3,24],[1,3,24]],gaming:[[0,3,24],
[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,8,24],[1,8,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,
2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,13],[0,17,24],[1,17,16],[1,17,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,2,16],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,
9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,9,16],[1,9,18],[1,9,20],[1,9,24]],journey:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,
6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,7,18],[1,7,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,
1,24]],live_photo:[[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,11,12],[0,11,24],[1,11,12],[1,11,16],[1,11,18],[1,11,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],
math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,12],[0,8,16],[0,8,18],[0,8,24],[1,8,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,
1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,
1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,
24]],node_right:[[1,2,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,5,24],[1,5,32]],overflow_vertical:[[1,11,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,7,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,8,16],[1,8,18],[1,8,24]],people:[[0,6,12],
[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,6,24]],person_box:[[1,5,24]],person_circle:[[0,9,24],[1,9,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],
person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],phone:[[0,2,24],[1,2,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],podcast_add:[[0,2,24],
[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,8,16],[1,8,24],[1,8,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,7,12],[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,
7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,12],[0,7,24],[1,7,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,
4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,
1,24]],screen_x:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,10,24,!0],[0,10,32,!0],[1,10,16,!0],[1,10,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,
1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,
1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,5,24]],skip_previous:[[0,5,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,8,12],[0,8,16],[0,8,24]],
spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,
1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,3,12],[0,3,16],[0,3,18],[0,3,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,3,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,10,24],[1,10,18],[1,10,24]],subscriptions_cairo:[[0,
2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],
text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,16],[0,21,24],[0,21,36],[1,21,16],[1,21,24],[1,21,36]],thumb_up:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,2,24],[1,2,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],
ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[1,9,16],[1,9,18],[1,9,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,12],[0,7,16],[0,7,24],[1,7,16],
[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,8,24],[1,8,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,4,16],[1,4,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],
[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,2,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,2,24],[1,2,24]],x:[[1,9,18],[1,9,24]],x_cairo:[[1,1,24]],x_circle:[[1,7,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],
[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,
2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,
8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var sUn={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,8,24]],add_circle:[[0,5,24],[1,5,24]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,4,24],[1,4,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,6,24],[1,6,24]],alert_bubble:[[1,1,24]],alert_circle:[[0,9,24],[1,9,24]],alert_octagon:[[0,2,24],[1,2,24]],alert_triangle:[[0,8,24],[1,8,24]],ambient_mode:[[1,1,
24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,1,24]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,7,24]],arrow_left:[[1,7,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,3,24],[1,3,24]],
arrow_solid_up:[[0,3,24],[1,3,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,1,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,1,24]],audio:[[0,9,24],[1,9,24]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,
24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,8,24],[1,8,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],
[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_gear:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,24]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,9,24],[1,9,24]],camera_audio:[[1,5,24]],camera_flip:[[1,
4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,2,24],[1,2,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,10,24]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,
24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,8,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_right:[[1,6,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,8,24],[1,8,24]],chromecast_mobile:[[1,3,24]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,2,24],[1,2,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,9,24],[1,9,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,
3,24]],cloud_arrow_up:[[0,5,24],[1,5,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,1,24]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,4,24],[1,4,24]],csv:[[0,2,
24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,10,24],[1,10,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,
1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[1,21,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],download:[[1,10,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,5,24],[1,5,24]],eye_slash:[[1,1,24]],eyedropper:[[1,2,24]],face_happy:[[0,9,24],[1,9,24]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,2,24],[1,2,24]],face_paintbrush:[[1,
2,24]],face_sad:[[0,9,24],[1,9,24]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,8,24],[1,8,24]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,9,24],[1,9,24]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,6,24],[1,6,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,
8,24],[1,8,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_underline:[[1,
1,24]],football:[[0,3,24],[1,3,24]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,8,24],[1,8,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,3,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,
2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,2,24],[1,2,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,17,24],[1,17,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,1,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,
2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,2,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,9,24]],info_circle_spark:[[1,1,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,
2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],
link:[[1,7,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,11,24],[1,11,24]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,8,24],[1,8,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,10,24],[1,10,24]],mic_slash:[[1,
1,24]],minus:[[1,1,24]],minus_circle:[[0,2,24],[1,2,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,2,24],[1,2,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,
1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,5,24]],overflow_vertical:[[1,11,24]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,7,24],[1,7,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,
8,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,1,24],[1,1,24]],person_add:[[0,6,24],[1,6,24]],person_audio:[[0,1,24],[1,1,24]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[1,9,24]],person_circle_slash:[[1,2,24]],person_gear:[[1,1,24]],person_shield:[[1,7,24]],person_square:[[0,1,24],[1,1,24]],person_square_stack:[[0,1,24],[1,1,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,
1,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,2,24],[1,2,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,6,24],[1,6,24]],pin_slash:[[0,1,24],[1,1,24]],play:[[0,1,24],[1,1,24]],play_circle:[[0,1,24],[1,1,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,1,24],[1,1,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_portrait:[[1,1,24]],player_full_exit:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,1,24]],playlist_add:[[1,1,24]],playlist_audio:[[0,1,24],[1,1,24]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,1,24]],playlist_x:[[1,1,24]],podcast:[[0,3,24],[1,3,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,
2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,8,24]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,7,24],[1,7,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,
24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,1,24]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,1,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,7,24],[1,7,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,10,24],[1,10,24]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,
1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[1,10,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,2,24],[1,2,24]],shorts:[[0,2,24],[1,2,24]],shorts_empty:[[0,2,24],[1,2,24]],shuffle:[[0,2,24],[1,2,24]],skip10_back:[[1,1,24]],skip10_forward:[[1,
1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,1,24]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,5,24],[1,5,24]],skip_previous:[[0,5,24],[1,5,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,1,
24]],spacebar:[[1,2,24]],spark:[[0,8,24],[1,8,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],
square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],star_circle:[[0,3,24],[1,3,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,3,24],[1,3,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,10,24],[1,10,24]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],
super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,2,24],[1,2,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,
24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,21,24],[1,21,24]],thumb_up:[[0,19,24],[1,19,24]],thumb_up_down:[[0,2,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,2,24]],trash_can:[[0,9,24],[1,9,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,
3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,7,24],[1,7,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[1,8,24]],video_camera_add:[[1,2,24]],video_link:[[1,4,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,
1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,2,24]],waveform_spark:[[1,1,24]],wrench:[[1,2,24]],x:[[1,9,24]],x_circle:[[0,7,24],[1,7,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,
7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var Bj5={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",PLAYER_FULL_ENTER_DELHI_PLAYER:"PLAYER_FULL_ENTER",PLAYER_FULL_EXIT_DELHI_PLAYER:"PLAYER_FULL_EXIT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Oc=function(W){this.iconUrlProvider=W};
Oc.prototype.resolveIcon=function(W,O){var b=Bj5[W.iconName.toUpperCase()];b&&(W.iconName=b);var T=W.iconName;T=T.replace(/-/g,"_");W=Object.assign({},W,{iconName:this.mapIconTypeToStandardName(T,!!b)||T.toLowerCase()});if(_.e("enable_web_delhi_icons")||b){var L;return DKh(sUn,W,((L=this.iconUrlProvider)==null?void 0:L.getYtStandardUrl)||Cue,O)}var h;return DKh(kmq,W,((h=this.iconUrlProvider)==null?void 0:h.getYtStandardUrl)||zCe,O)};
Oc.prototype.mapIconTypeToStandardName=function(W,O){return _.e("enable_web_delhi_icons")||O?QUN[W.toUpperCase()]:o5v[W.toUpperCase()]};
Oc[NV]=[_.OT(K49)];var rB1=function(W){this.urlProvider=this.iconUrlProvider=W};
_.R(rB1,Oc);
rB1.prototype.resolveIcon=function(W,O){W.iconName==="youtube_logo"&&(W.iconName="yt-logo-updated");if(W.iconName==="youtube_premium_logo"||W.iconName==="youtube_red_logo")W.iconName="yt-logo-red-updated";var b=Object.assign({},W);W.iconName==="menu"&&(_.e("enable_web_delhi_icons")||(b.iconName="bars_3"),b.iconStyle="youtube_outline");W.iconName==="youtube_music"&&(b.iconStyle="youtube_fill");W.iconName==="mail"&&W.iconSetName==="socialNetworksRound"&&(b.iconName="email");W.iconName==="more"&&(b.iconName=
"overflow_horizontal");W.iconName==="fullscreen"&&(b.iconName="screen_full");if(W.iconName==="play_all"||W.iconName==="play_arrow")b.iconStyle="youtube_fill";W.iconName==="premium_standalone"&&(b.iconName="premium_standalone_cairo");_.e("enable_connect_icon_update_web")&&W.iconName==="account_linked"&&(b.iconName="circles_overlap_check",b.iconStyle="youtube_fill");_.e("enable_connect_icon_update_web")&&W.iconName==="account_unlinked"&&(b.iconName="circles_overlap",b.iconStyle="youtube_outline");W=
Object.assign({},b,{iconName:(Oc.prototype.mapIconTypeToStandardName.call(this,b.iconName)||b.iconName).toLowerCase()});var T;return(W=DKh(pCw,W,((T=this.urlProvider)==null?void 0:T.getUrl)||qJT,O))?W:Oc.prototype.resolveIcon.call(this,b,O)};
rB1[NV]=[_.OT(K49)];_.DFf=1;var iS=function(){};
_.R(iS,sg);iS.prototype.resolveCommand=function(W){var O,b;return _.I(function(T){O=_.P(W,ILz);if(!O)return T.return();b=Number(O.enableDelayedPacfLoggingTvMs);if(isNaN(b)){var L=TE();ITH(L,O,0)}else ITH(TE(),O,b);_.aD(T)})};_.bS=function(){};
_.R(_.bS,sg);
_.bS.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w;return _.I(function(A){T=_.P(W,aLn);h=(L=O.form)==null?void 0:L.element;a=(Z=h)==null?void 0:Z.closest("ytd-enforcement-message-view-model");if(!T||!a)return A.return();b.allowAdsAction||(m=T.fundingChoiceInstructionPageUrl,b.allowAdsAction=new fIH(window,_.BO(m)));var X=b.allowAdsAction;X.wallElement=a;X.allowAdsPopup.style.setProperty("display","flex","important");var l=X.scrollManager;l.originalBodyOverflow=l.JSC$8000_domHelper.JSC$7330_document_.body.style.overflow;l.JSC$8000_domHelper.JSC$7330_document_.body.style.overflow=
"hidden";X.wallElement.style.setProperty("display","none","important");yxU(X.accessibilityManager,X.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((w=b.allowAdsAction.allowAdsPopup)&&w instanceof HTMLElement)for(X=_.S(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),l=X.next();!l.done;l=X.next()){var p=_.S(l.value);l=p.next().value;p=p.next().value;w.style.setProperty(l,p)}_.aD(A)})};
_.bS.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var j_=function(){};
_.R(j_,sg);j_.prototype.resolveCommand=function(W){var O;return _.I(function(b){O=_.P(W,pLq);if(!O)return b.return();Ppi(W);_.aD(b)})};var TV=function(W){this.JSC$15057_commandHandler=W};
_.R(TV,sg);
TV.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1){b=_.P(W,uV1);if((T=b)==null||!T.text||!navigator.clipboard)return A.return();_.LI(A,2);return _.Y(A,navigator.clipboard.writeText(b.text),4)}if(A.nextAddress!=2){if(!b.successActions||b.successActions.length===0)return A.return();L=_.S(b.successActions);for(h=L.next();!h.done;h=L.next())Z=h.value,O.JSC$15057_commandHandler.resolveCommand(Z);return _.H3(A,0)}_.ID(A);if(!b.failureActions||b.failureActions.length===
0)return A.return();a=_.S(b.failureActions);for(m=a.next();!m.done;m=a.next())w=m.value,O.JSC$15057_commandHandler.resolveCommand(w);_.aD(A)})};
TV[NV]=[_.bq];var LG=function(W){this.JSC$15061_commandHandler=W};
_.R(LG,sg);
LG.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l;return _.I(function(p){switch(p.nextAddress){case 1:T=_.P(W,kiv);if(!T)return p.return();_.LI(p,2);if(!T.imageBytes&&!T.imageUrl)throw Error("wi");if(!T.imageUrl){if(T.imageBytes){h=T.imageBytes;Z=h.replace(/-/g,"+").replace(/_/g,"/");var K=fYO(Z);L=_.eL(K)}p.jumpTo(4);break}return _.Y(p,fetch(T.imageUrl),5);case 5:return a=p.yieldResult,_.Y(p,a.blob(),6);case 6:m=p.yieldResult,L=_.eL(m);case 4:X=(w=O)==null?void 0:(A=w.form)==
null?void 0:A.element;l=document.createElement("a");vD(l,L);X.appendChild(l);l.download="";l.click();X.removeChild(l);URL.revokeObjectURL(_.EB(L));T.successCommand&&b.JSC$15061_commandHandler.resolveCommand(T.successCommand);_.H3(p,0);break;case 2:_.ID(p),T.errorCommand&&b.JSC$15061_commandHandler.resolveCommand(T.errorCommand),_.aD(p)}})};
LG[NV]=[_.bq];var dH=function(W){this.store=W};
_.R(dH,sg);dH.prototype.resolveCommand=function(W){var O=this,b,T,L;return _.I(function(h){T=(b=_.P(W,_.huv))==null?void 0:b.entityBatchUpdate;if(!T)return h.jumpTo(0);L=Object.assign({},T,{mutations:[].concat(_.PG(T.mutations||[]))});return _.Y(h,_.wm(L,O.store),0)})};var xFf=function(W){this.JSC$15068_commandHandler=W;this.feedbackDialogMap=new Map};
xFf.prototype.openDialog=function(W,O){(W=this.feedbackDialogMap.get(W))&&this.JSC$15068_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:W}},O)};
xFf[NV]=[_.bq];var hM=new _.MV("FEEDBACK_CONTROLLER_TOKEN");var S_=new _.MV("APP_STORE_TOKEN");var ZD=function(W,O){this.store=W;this.controller=O};
_.R(ZD,sg);ZD.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M;return _.I(function(V){if(V.nextAddress==1){T=_.P(W,_.QG);if(h=(L=T)==null?void 0:L.contentId)for(a=_.S(((Z=T)==null?void 0:Z.actions)||[]),m=a.next();!m.done;m=a.next())w=m.value,zEw(b,w,h);l=(A=O)==null?void 0:(X=A.form)==null?void 0:X.element;return _.Y(V,_.da(l,[W]).catch(function(){}),2)}p=V.yieldResult;
((K=p)==null?0:(k=K.data)==null?0:(r=k.feedbackResponses)==null?0:r.length)&&(f=(q=p.data.feedbackResponses[0])==null?void 0:q.followUpDialog)&&h&&(M=b.controller)!=null&&M.feedbackDialogMap.set(h,f);_.aD(V)})};
var zEw=function(W,O,b){var T=_.P(O,_.I5);if(T){T=_.S(T.commands||[]);for(var L=T.next();!L.done;L=T.next())zEw(W,L.value,b)}_.P(O,_.XZ)&&W.store.dispatch(_.AI("commandEntity",QXX(b),{key:b,command:O}));_.P(O,SQL)&&W.store.dispatch(_.AI("commandEntity",QXX(b),{key:b,command:O}))};
ZD[NV]=[S_,hM];var Ij=function(W){this.controller=W};
_.R(Ij,sg);Ij.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z;return _.I(function(a){T=_.P(W,_.G5);h=(L=T)==null?void 0:L.targetId;if(((Z=T)==null?void 0:Z.signal)!=="TELL_US_WHY"||!h)return a.return();b.controller.openDialog(h,O);_.aD(a)})};
Ij[NV]=[hM];var aj=function(W){this.store=W};
_.R(aj,sg);aj.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w;return _.I(function(A){T=_.P(W,yZO);h=(L=T)==null?void 0:L.contentId;m=(Z=O)==null?void 0:(a=Z.form)==null?void 0:a.element;w=_.da(m,[W]);h&&b.undo(h);return _.Y(A,w,0)})};
aj.prototype.undo=function(W){this.store.dispatch(_.AI("commandEntity",QXX(W),{key:W,command:void 0}))};
aj[NV]=[S_];var mT=function(W){this.JSC$15083_commandHandler=W};
_.R(mT,sg);mT.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w;return _.I(function(A){b=_.P(W,RuH);T=b.flowStateKey;L=b.validationFailureCommand;h=b.submitValidFormCommand;Z=Vv(_.OQ,[T||""]);a=_.P(Z,vl1);((m=a)==null?0:m.isValid)&&h&&O.JSC$15083_commandHandler.resolveCommand(h);((w=a)==null?0:w.isValid)||!L||O.JSC$15083_commandHandler.resolveCommand(L);_.aD(A)})};
mT[NV]=[_.bq];var YZ=function(W){this.innertubeTransportService=W};
_.R(YZ,sg);YZ.prototype.resolveCommand=function(W,O){var b=this,T;return _.I(function(L){return _.Y(L,_.tP(b.innertubeTransportService,W,(T=O)==null?void 0:T.form).then(function(h){var Z,a;O==null||(Z=O.commandController)==null||(a=Z.onSuccess)==null||a.call(Z,W,h)},function(h){var Z,a;
O==null||(Z=O.commandController)==null||(a=Z.onServerError)==null||a.call(Z,W,h)}),0)})};
YZ[NV]=[_.sP];var Ec=function(){};
_.R(Ec,sg);Ec.prototype.resolveCommand=function(W){var O,b,T,L;return _.I(function(h){if(O=_.P(W,_.r6v)){if(b=O.gtmId)T=_.Cv("GL",""),_.eu(b,T);(L=O.gtmData)&&_.P0(L)}_.aD(h)})};var wH=function(W,O){this.innertubeTransportService=W;this.JSC$15094_actionRouter=O};
_.R(wH,sg);wH.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){b=_.P(W,BYz);if(!b)return L.return();T=b.command;if(!T)return L.return();O.JSC$15094_actionRouter.triggerAction("yt-insert-rich-section-action",b);return _.Y(L,_.tP(O.innertubeTransportService,T,{disableCache:!0}),0)})};
wH[NV]=[_.sP,Vg];HjX.bind(null,BV);var CAw=HjX.bind(null,oeH);$KT.bind(null,BV);var qNN=$KT.bind(null,oeH);NFQ.bind(null,BV);var n5q=NFQ.bind(null,oeH);var AM=function(){};
_.R(AM,sg);
AM.prototype.resolveCommand=function(W){var O,b,T,L,h,Z,a,m,w,A;return _.I(function(X){O=_.P(W,h6f);if(!O)return X.return();T=((b=O.operations)==null?void 0:b.operations)||[];L=_.S(T);for(h=L.next();!h.done;h=L.next())if(Z=h.value,Z.insertItemSectionContent){var l=Z.insertItemSectionContent,p=l.contents||[];l.insertByPositionInSection?CAw(l.insertByPositionInSection.sectionTargetId,p,l.insertByPositionInSection.position):l.insertByRelativePositionInSection&&l.insertByRelativePositionInSection.sectionTargetId&&l.insertByRelativePositionInSection.itemTargetId&&
qNN(l.insertByRelativePositionInSection.sectionTargetId,l.insertByRelativePositionInSection.itemTargetId,p,l.insertByRelativePositionInSection.relativePosition)}else Z.replaceSection?(l=Z.replaceSection,p={},l.replaceByTargetId?p=l.replaceByTargetId:l.replaceByGroupId&&(p={targetId:l.replaceByGroupId.groupId,newContent:l.replaceByGroupId.newContent,undoKey:""}),p.newContent&&sXv(p.targetId,{continuationItems:[p.newContent]})):Z.removeItem?(l=Z.removeItem,l.removeByTargetId&&l.sectionTargetId&&n5q(l.sectionTargetId,
l.removeByTargetId.targetIds||[])):Z.removeSection&&(Z.removeSection.removeByTargetId?(a=void 0,fnq(((a=Z.removeSection)==null?void 0:a.removeByTargetId.targetIds)||[])):Z.removeSection.removeByGroupId&&(m=void 0,fnq(((m=Z.removeSection)==null?void 0:m.removeByGroupId.groupIds)||[])));A=((w=O.operations)==null?void 0:w.scrollConfig)||{};Gmq(A);_.aD(X)})};
var fnq=function(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next())sXv(O.value,{continuationItems:[]})},Gmq=function(W){if(W.scrollToItem){var O=W.scrollToItem.item||{},b=O.itemTargetId;
O=O.sectionTargetId;if(b&&O){var T=document.querySelector("[data-target-id="+O+"]"),L=T==null?void 0:T.querySelector("[data-target-id="+b+"]");T&&L&&setTimeout(function(){var h=L.offsetTop-T.offsetTop,Z;if(((Z=W.scrollToItem)==null?void 0:Z.scrollPosition)==="SCROLL_POSITION_CENTER")h-=T.offsetHeight/2,h+=L.offsetHeight/2;else{var a;((a=W.scrollToItem)==null?void 0:a.scrollPosition)==="SCROLL_POSITION_END"&&(h-=T.offsetHeight,h+=L.offsetHeight)}T.scroll({top:h,behavior:"smooth"})},100)}}};var Xh=new _.MV("CLIENT_NAME_TOKEN");var HsU=new _.MV("DEFAULT_STORE_EXPIRATION_TOKEN");var wJ1=new _.MV("CLIENT_LOCATION_SERVICE_TOKEN");var Uc=function(W,O,b){this.clientName=W||_.Cv("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=O||_.ou.getInstance();this.JSC$15122_commandHandler=b||_.ax.instance};
_.R(Uc,sg);Uc.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){T=(b=_.P(W,AYf))==null?void 0:b.onComplete;O.clientLocationService.clearLocationPlayabilityToken(O.clientName);T&&O.JSC$15122_commandHandler.resolveCommand(T);_.aD(L)})};
Uc[NV]=[Xh,wJ1,_.bq];var lS=function(W){this.innertubeTransportService=W};
_.R(lS,sg);lS.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z;return _.I(function(a){h=(T=O)==null?void 0:(L=T.form)==null?void 0:L.element;return _.Y(a,_.tP(b.innertubeTransportService,W,(Z=O)==null?void 0:Z.form).then(function(m){RBX(h,new CustomEvent("yt-service-request-completed"),{data:m},_.Cv("openPopupConfig"))}),0)})};
lS[NV]=[_.sP];var e_=function(){};
_.R(e_,sg);e_.prototype.resolveCommand=function(W){var O,b;return _.I(function(T){O=_.P(W,kpz);b=document.querySelector("mini-app-container-view-model");if(!O||!b)return T.return();O.isPlaying?b.dispatchEvent(new Event("play")):b.dispatchEvent(new Event("pause"));_.aD(T)})};var Pv=function(){};
_.R(Pv,sg);Pv.prototype.resolveCommand=function(W){var O,b,T,L,h,Z,a;return _.I(function(m){O=_.P(W,gVU);if((b=O)==null||!b.paramKeys)return m.return();T=O.paramKeys;L=_.tV(window.location.href);h=_.S(T);for(Z=h.next();!Z.done;Z=h.next())a=Z.value,L.JSC$8032_queryData_.remove(a);window.history.replaceState(window.history.state,document.title,L.toString());_.aD(m)})};var tMU=function(){this.dropdownMap=new Map};_.$F$=new _.MV("DROPDOWN_CONTROLLER_TOKEN");var pG=function(W){this.controller=W};
_.R(pG,sg);pG.prototype.resolveCommand=function(W){var O=this,b,T,L,h;return _.I(function(Z){b=_.P(W,dNU);if(!b)return Z.return();T=b;L=T.dropdownId;h=T.selectedOptionIndex;if(L===void 0||h===void 0)return Z.return();var a=O.controller.dropdownMap.get(L);a&&a(h);_.aD(Z)})};
pG[NV]=[_.$F$];var Rj=function(W){this.controller=W};
_.R(Rj,sg);Rj.prototype.resolveCommand=function(W){var O=this,b;return _.I(function(T){return(b=_.P(W,KHn))?_.Y(T,O.controller.closeDialog(),0):T.return()})};
Rj[NV]=[_.RC];var KG=function(W){this.controller=W};
_.R(KG,sg);KG.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){b=_.P(W,dVn);if(!b)return L.return();var h,Z=b.panelIdentifier||((h=b.identifier)==null?void 0:h.tag);if(!Z)throw Error("xi");return(T=Z)?_.Y(L,O.controller.hidePanel(T),0):L.jumpTo(0)})};
KG[NV]=[_.P$];var vv=function(W,O){this.innertubeTransportService=W;this.controller=O};
_.R(vv,sg);vv.prototype.resolveCommand=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return b=_.P(W,hQf),(T=b)!=null&&T.panelId?_.Y(Z,O.controller.getReloadContinuation(b.panelId),2):Z.return();if(Z.nextAddress!=3)return(L=Z.yieldResult)?_.Y(Z,_.tP(O.innertubeTransportService,W,{continuation:L}),3):Z.return();h=Z.yieldResult;return _.Y(Z,O.controller.updatePanel(b.panelId,h.content,!1),0)})};
vv[NV]=[_.sP,_.P$];var gH=function(W,O,b){this.innertubeTransportService=W;this.JSC$15158_screenManager=O;this.JSC$15158_commandHandler=b};
_.R(gH,sg);
gH.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1){b=_.P(W,_.FOH);if(!b)return m.return();if(b.commands)for(T=_.S(b.commands),L=T.next();!L.done;L=T.next())h=L.value,O.JSC$15158_commandHandler.resolveCommand(h,{disableClickTracking:!0});Z=_.Pi(W.clickTrackingParams);_.bh(O.JSC$15158_screenManager,21760,Z,{layer:7,parentLayer:0});return _.Y(m,_.tP(O.innertubeTransportService,W),2)}a=m.yieldResult;if(!a)return m.return();O.JSC$15158_screenManager.graftServerVe(a.trackingParams,Z,
7);_.aD(m)})};
gH[NV]=[_.sP,_.ef,_.bq];var oj=new _.MV("PANEL_LOADING_STRATEGY_TOKEN");var Q1=function(W,O){this.controller=W;this.panelLoadingStrategy=O};
_.R(Q1,sg);
Q1.prototype.resolveCommand=function(W,O){var b=this,T,L,h;return _.I(function(Z){T=_.P(W,$uU);if((L=T)==null||!L.panelLoadingStrategy)return Z.return();h=function(a){var m,w,A,X,l,p,K,k,r;return _.I(function(q){w=_.P((m=a.dialogViewModel)==null?void 0:m.header,hUz);A={viewModel:a.dialogViewModel};X={};if(K=_.e("web_enable_dialog_header_label")?(l=w)==null?void 0:(p=l.headline)==null?void 0:p.content:void 0)X.ariaLabel=K;T.dismissOnBackgroundTap===!1&&(X.isModal=!0);return a.dialogViewModel?_.Y(q,
b.controller.openDialog(A,(k=O)==null?void 0:(r=k.form)==null?void 0:r.element,X),0):q.return()})};
return _.Y(Z,b.panelLoadingStrategy.execute({command:W,data:T.panelLoadingStrategy,renderFn:h,createScreenConfig:{layer:4}}),0)})};
Q1[NV]=[_.RC,oj];var kZ=function(W,O,b){this.innertubeTransportService=W;this.controller=O;this.JSC$15178_screenManager=b};
_.R(kZ,sg);
kZ.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K;return _.I(function(k){switch(k.nextAddress){case 1:T=_.P(W,_.od);if(!T)return k.return();var r,q=T.panelIdentifier||((r=T.identifier)==null?void 0:r.tag);if(!q)throw Error("xi");L=q;return _.Y(k,b.controller.isVisible(L,!0),2);case 2:if((h=k.yieldResult)&&T.blockIfPanelOpen)return k.return();m=(a=(Z=b.controller).getPanelContent)==null?void 0:a.call(Z,L);if(!(r=m))if(T){var f;r=((f=T.globalConfiguration)==null?void 0:f.initialState)||
T.engagementPanel;if(f=!r)f=!!(T==null?0:(q=T.engagementPanelPresentationConfigs)==null?0:q.engagementPanelPopupPresentationConfig);f&&(r=_.M$2(T.panelIdentifier,T.identifier))}else r=void 0;w=r;A=T.engagementPanelPresentationConfigs;X=T.engagementPanelExtras;return _.Y(k,b.controller.showPanel(L,w,A,X,(l=O)==null?void 0:(p=l.form)==null?void 0:p.element),3);case 3:if(!T.globalConfiguration){k.jumpTo(0);break}_.bh(b.JSC$15178_screenManager,32633);return _.Y(k,_.tP(b.innertubeTransportService,W),5);
case 5:return K=k.yieldResult,b.JSC$15178_screenManager.graftServerVe(K.trackingParams),_.Y(k,b.controller.updatePanel(L,K.content,!0,X,void 0,K.updatePanelContinuationData),0)}})};
kZ[NV]=[_.sP,_.P$,_.ef];var sc=function(W,O){this.controller=W;this.panelLoadingStrategy=O};
_.R(sc,sg);sc.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m;return _.I(function(w){T=_.P(W,_.Kbe);if((L=T)==null||!L.panelLoadingStrategy)return w.return();a=VMf(b.controller,(h=O)==null?void 0:(Z=h.form)==null?void 0:Z.element);m=function(A){return _.I(function(X){return A.sheetViewModel?_.Y(X,b.controller.openSheet({viewModel:A.sheetViewModel},a),0):X.return()})};
return _.Y(w,b.panelLoadingStrategy.execute({command:W,data:T.panelLoadingStrategy,renderFn:m,createScreenConfig:{layer:0}}),0)})};
sc[NV]=[_.p1,oj];var Bv=function(W,O){this.controller=W;this.JSC$15186_commandHandler=O};
_.R(Bv,sg);Bv.prototype.resolveCommand=function(W,O){var b=this,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){T=_.P(W,a8$);var a=_.P(T.showCommand,_.od),m,w,A=(w=a==null?void 0:a.panelIdentifier)!=null?w:a==null?void 0:(m=a.identifier)==null?void 0:m.tag;if(!A)throw Error("yi");L=A;return _.Y(Z,b.controller.isVisible(L),2)}return(h=Z.yieldResult)?_.Y(Z,b.controller.hidePanel(L),0):_.Y(Z,b.JSC$15186_commandHandler.resolveCommand(T.showCommand,O),0)})};
Bv[NV]=[_.P$,_.bq];var rH=function(W,O,b){this.innertubeTransportService=W;this.controller=O;this.JSC$15189_screenManager=b};
_.R(rH,sg);
rH.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8;return _.I(function(pE){switch(pE.nextAddress){case 1:return T=b=_.P(W,m2z),L=T.targetPanelIdentifier,h=T.contentSourcePanelIdentifier,Z=T.globalConfiguration,((a=L)==null?0:a.tag)&&((m=h)==null?0:m.tag)?Z?_.Y(pE,O.controller.showPanel(L.tag,_.M$2(L.tag,L),void 0,void 0,void 0),5):_.Y(pE,(l=(X=O.controller).getPanel)==null?void 0:l.call(X,h.tag),4):pE.return();case 4:p=pE.yieldResult;w=(K=p)==null?void 0:
(r=(k=K).getPanelContent)==null?void 0:r.call(k);pE.jumpTo(3);break;case 5:return _.Y(pE,_.tP(O.innertubeTransportService,W),6);case 6:q=pE.yieldResult,((f=q)==null?0:f.trackingParams)&&O.JSC$15189_screenManager.graftServerVe(q.trackingParams),w=(M=q)==null?void 0:M.content,A=(V=q)==null?void 0:V.updatePanelContinuationData;case 3:if(y=(jQ=w)==null?void 0:jQ.engagementPanelSectionListRenderer)return _.Y(pE,O.controller.showPanel(L.tag,void 0,void 0,void 0,void 0,{content:y.content,secondaryHeaderContent:(d8=
y.header)!=null?d8:{},targetId:y.targetId},A),0);pE.jumpTo(0)}})};
rH[NV]=[_.sP,_.P$,_.ef];var DD=function(W,O){this.JSC$15197_commandHandler=W;this.store=O};
_.R(DD,sg);DD.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return(b=_.P(W,pxz))?_.Y(a,_.Sk(),2):a.return();T=a.yieldResult;if(!T)return a.return();cF2(T,O.store,(L=b)==null?void 0:L.languageCode);h=T.isSubtitlesOn()?_.EO("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.EO("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");Z=_.FW(h);O.JSC$15197_commandHandler.resolveCommand(Z);_.aD(a)})};
DD[NV]=[_.bq,hs];var xZ=function(W,O){this.shortsPlayerPromise=W;this.JSC$15201_commandHandler=O};
_.R(xZ,sg);
xZ.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return(b=_.P(W,nB7))?_.Y(A,O.shortsPlayerPromise,2):A.return();T=A.yieldResult;var X=Fd2(T);X!=null&&X.length||(T.loadModule("captions"),X=Fd2(T));L=X;if((h=L)==null||!h.length)return Z=_.EO("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.FW(Z),O.JSC$15201_commandHandler.resolveCommand(a),A.return();T.toggleSubtitles();m=T.isSubtitlesOn()?_.EO("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.EO("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");w=_.FW(m);O.JSC$15201_commandHandler.resolveCommand(w);_.aD(A)})};
xZ[NV]=[_.pw7,_.bq];var zV=function(W){this.JSC$15204_playerPromise=W};
_.R(zV,sg);zV.prototype.resolveCommand=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return(b=_.P(W,ZWn))?_.Y(Z,O.JSC$15204_playerPromise,2):Z.return();T=Z.yieldResult;L=T.getVideoData().video_id;b.videoId===L&&(h=Number(b.offsetFromVideoStartMilliseconds),h>=0&&T.seekTo(h/1E3));_.aD(Z)})};
zV[NV]=[_.jk];var NjH=_.Z5("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),CG=function(W){this.store=W};
_.R(CG,sg);
var MM1=function(W){var O,b,T,L;return _.I(function(h){if(h.nextAddress==1)return O=_.Cv("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,b=_.Cv("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,T=O||b,W.mainAppPlayer=new $o(T),_.Y(h,W.mainAppPlayer.api,2);L=h.yieldResult;L.addEventListener("onStateChange",W.JSC$15208_playerStateChangeListener.bind(W));document.addEventListener("yt-page-data-updated",W.pauseOnNavigation.bind(W));window.addEventListener("state-navigatestart",
W.pauseOnNavigation.bind(W));_.aD(h)})};
CG.prototype.JSC$15208_playerStateChangeListener=function(W){switch(W){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"}uJ1(this)};
var uJ1=function(W){W.store.dispatch(_.AI("sfvAudioItemCurrentlyPlayingEntity",NjH,{key:NjH,externalVideoId:W.externalVideoId,sfvAudioItemPlaybackState:W.playbackState,nowPlayingEntityValue:W.nowPlayingEntityValue}))};
CG.prototype.pauseOnNavigation=function(){var W=this,O,b,T,L;return _.I(function(h){if(h.nextAddress==1){if(!W.mainAppPlayer){var Z=new _.pu("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.Dt(Z);return h.return()}return _.Y(h,W.mainAppPlayer.api,2)}O=h.yieldResult;T=(b=O)==null?void 0:b.getPlayerState();T!==1||(L=O)!=null&&L.pauseVideo();_.aD(h)})};
CG.prototype.playVideo=function(W,O,b){var T=this,L,h;return _.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,(L=T.mainAppPlayer)==null?void 0:L.api,2);h=Z.yieldResult;if(!T.mainAppPlayer||!h){var a=new _.pu("Error: mainAppPlayer is unavailable",T.mainAppPlayer);_.Dt(a);return Z.return()}return _.Y(Z,T.mainAppPlayer.loadVideoWithPlayerVars({videoId:T.externalVideoId,audio_only:"1",start:W/1E3,end:W/1E3+O,player_params:b}),0)})};
CG.prototype.pauseVideo=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1){if(!W.mainAppPlayer){var L=new _.pu("Error: mainAppPlayer is unavailable",W.mainAppPlayer);_.Dt(L);return T.return()}return _.Y(T,W.mainAppPlayer.api,2)}O=T.yieldResult;(b=O)==null||b.pauseVideo();_.aD(T)})};
CG.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V;return _.I(function(jQ){if(jQ.nextAddress==1)return b=_.P(W,x2v),L=(T=b)==null?void 0:T.nowPlayingEntityValue,Z=(h=b)==null?void 0:h.externalVideoId,X=Number((A=(a=b)==null?void 0:(m=a.defaultStartPoints)==null?void 0:(w=m[0])==null?void 0:w.offsetMs)!=null?A:"0"),q=Number((r=(l=b)==null?void 0:(p=l.defaultStartPoints)==null?void 0:(K=p[0])==null?void 0:(k=K.duration)==null?void 0:k.seconds)!=null?r:"15"),V=(M=
(f=b)==null?void 0:f.playerParams)!=null?M:"",L&&Z?O.mainAppPlayer?jQ.jumpTo(2):_.Y(jQ,MM1(O),2):jQ.return();if(jQ.nextAddress!=6){if(O.nowPlayingEntityValue&&L===O.nowPlayingEntityValue)return O.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.Y(jQ,O.pauseVideo(),0):_.Y(jQ,O.playVideo(X,q,V),0);O.externalVideoId=Z;O.nowPlayingEntityValue=L;O.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.Y(jQ,O.playVideo(X,q,V),6)}uJ1(O);return jQ.jumpTo(0)})};
CG[NV]=[hs];var qb=function(W){this.JSC$15225_commandHandler=W};
_.R(qb,sg);qb.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return(T=_.P(W,Rf7))?_.Y(m,_.Sk(),2):m.return();L=m.yieldResult;if(!L)return m.return();(h=iT1(L))?b.JSC$15225_commandHandler.resolveCommand(h,O):(Z=_.EO("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),a=_.FW(Z),b.JSC$15225_commandHandler.resolveCommand(a));_.aD(m)})};
qb[NV]=[_.bq];var nG=function(W){this.JSC$15228_playerPromise=W};
_.R(nG,sg);nG.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1){b=_.P(W,I8q);if(!b)return a.return();T=b.overlayRenderer;return T?(L=_.P(T,Pr9))?_.Y(a,O.JSC$15228_playerPromise,3):a.jumpTo(0):a.return()}h=a.yieldResult;h.renderChapterSeekingAnimation(1,_.NX(L.text),(Z=L.icon)==null?void 0:Z.iconType);_.aD(a)})};
nG[NV]=[_.jk];var fG=function(W){this.store=W};
_.R(fG,sg);
fG.prototype.resolveCommand=function(W){var O=this,b,T,L;return _.I(function(h){if(h.nextAddress==1){b=_.P(W,vsq);if(!b)return h.return();T="";(L=O.store.getState().collabInviteLink)&&b.id===L.playlistId?T=L.inviteLinkURL:b.shortUrl&&(T=b.shortUrl);return T?_.Y(h,navigator.clipboard.writeText(T),3):h.jumpTo(0)}var Z={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.EO("COPY_LINK_SUCCESS_TOAST")}}}}};_.iq().resolve(_.bq).resolveCommand(Z);_.aD(h)})};
fG[NV]=[S_];var GV=function(W,O){this.innertubeTransportService=W;this.JSC$15238_commandHandler=O};
_.R(GV,sg);GV.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l;return _.I(function(p){if(p.nextAddress==1)return(T=_.P(W,_.Dm))?_.Y(p,_.tP(b.innertubeTransportService,W,(L=O)==null?void 0:L.form),2):p.return();(h=p.yieldResult)&&h.errorMetadata&&(Z=h,a=_.FW(Z.error.message),b.JSC$15238_commandHandler.resolveCommand(a));m=h;if((w=m)==null?0:w.actions)for(A=_.S(m.actions),X=A.next();!X.done;X=A.next())l=X.value,b.JSC$15238_commandHandler.resolveCommand(l);_.aD(p)})};
GV[NV]=[_.sP,_.bq];var Hv=function(){};
_.R(Hv,sg);Hv.prototype.resolveCommand=function(W){var O;return _.I(function(b){O=_.P(W,A$z);if(!O)return b.return();(new pdv(O)).show();_.aD(b)})};_.tM=new _.MV("PLAYLIST_EDIT_CONTROLLER_TOKEN");var $Z=function(W,O,b,T){this.store=W;this.innertubeTransportService=O;this.controller=b;this.JSC$15246_commandHandler=T};
_.R($Z,sg);
$Z.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE,Qh,KE,fE,r8;return _.I(function(nE){if(nE.nextAddress==1){T=_.P(W,_.oP);if(!T)return nE.return();if(T.clientActions){L=_.S(T.clientActions);for(h=L.next();!h.done;h=L.next())Z=h.value,b.JSC$15246_commandHandler.resolveCommand(Z);var tX,yh=O==null?void 0:(tX=O.form)==null?void 0:tX.element;yh&&_.bX(yh,"yt-dismissible-item-action",T.clientActions)}return _.Y(nE,_.tP(b.innertubeTransportService,W,(a=O)==
null?void 0:a.form),2)}if(m=nE.yieldResult)m.errorMetadata?(w=m,A=_.FW(w.error.message),b.JSC$15246_commandHandler.resolveCommand(A),"error"in m&&((X=O)==null?0:(l=X.commandController)==null?0:l.onServerError)&&((p=O)==null||(K=p.commandController)==null||K.onServerError(W,m))):(k=O)==null||(r=k.commandController)==null||(f=(q=r).onSuccess)==null||f.call(q,W,m);M=m;((V=M)==null?0:V.collaborationInviteLink)&&T.playlistId&&(_.e("web_enable_invite_collaborators_link")||_.e("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
b.store.dispatch(_.Tc({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:T.playlistId,inviteLinkUrl:M.collaborationInviteLink}}));((jQ=M)==null?0:jQ.redirectEndpoint)&&b.JSC$15246_commandHandler.resolveCommand(M.redirectEndpoint);((y=M)==null?0:(d8=y.newHeader)==null?0:d8.playlistHeaderRenderer)?JBH(b.controller,M.newHeader.playlistHeaderRenderer):((pE=M)==null?0:(Qh=pE.newHeader)==null?0:Qh.musicEditablePlaylistDetailHeaderRenderer)&&JBH(b.controller,M.newHeader.musicEditablePlaylistDetailHeaderRenderer);
b.controller.playlistVideoListElement&&((KE=M)==null?0:(fE=KE.playlistEditResults)==null?0:(r8=fE[0])==null?0:r8.playlistEditVideoAddedResultData)&&((yh=b.controller.playlistVideoListElement)==null||yh.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:M.playlistEditResults[0].playlistEditVideoAddedResultData})));_.aD(nE)})};
$Z[NV]=[S_,_.sP,_.tM,_.bq];var V1=function(W,O){this.controller=W;this.JSC$15256_commandHandler=O};
_.R(V1,sg);V1.prototype.resolveCommand=function(W,O){var b=this,T,L,h;return _.I(function(Z){T=_.P(W,gsn);b.controller.showRefreshPill&&((L=T)==null?0:L.command)&&(b.JSC$15256_commandHandler.resolveCommand((h=T)==null?void 0:h.command,O),b.controller.showRefreshPill=!1);_.aD(Z)})};
V1[NV]=[_.We,_.bq];var Nb=function(W,O){this.store=W;this.JSC$15260_commandHandler=O||_.ax.instance};
_.R(Nb,sg);Nb.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l;return _.I(function(p){T=_.P(W,fbv);L=b.store.getState().radioButtonGroup;if((h=T)==null?0:h.command)b.JSC$15260_commandHandler.resolveCommand((Z=T)==null?void 0:Z.command,O);else if(((a=T)==null?void 0:a.formId)===L.currentFormId)for(m=Object.values(L.commandsMap),w=_.S(m),A=w.next();!A.done;A=w.next()){X=A.value;l=_.xy(X);if(!l)return p.return();b.JSC$15260_commandHandler.resolveCommand(l,O)}_.aD(p)})};
Nb[NV]=[S_];var Mb=new _.MV("USER_PREFS");var uS=function(W){this.JSC$15264_prefCookie=W};
_.R(uS,sg);uS.prototype.resolveCommand=function(W){var O=this,b;return _.I(function(T){(b=_.P(W,S3S))&&typeof b.useListView==="boolean"&&(_.UO(0,155,b.useListView),O.JSC$15264_prefCookie.save());_.aD(T)})};
uS[NV]=[Mb];var JM=function(W){this.JSC$15268_prefCookie=W};
_.R(JM,sg);JM.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z;return _.I(function(a){b=_.P(W,U$5);if((T=b)==null||!T.gl)return a.return();L=b.gl;h={persist_gl:"1",gl:L};O.JSC$15268_prefCookie.set("gl",L);O.JSC$15268_prefCookie.save();Z=DzS(h);_.GF(Z);_.aD(a)})};
JM[NV]=[Mb];var cv=function(W){this.JSC$15272_prefCookie=W};
_.R(cv,sg);cv.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){b=_.P(W,Q6n);if(!b)return L.return();T=!1;b.flagNum&&typeof b.value==="boolean"?(_.UO(0,b.flagNum,b.value),T=!0):b.key&&typeof b.stringValue==="string"&&(O.JSC$15272_prefCookie.set(b.key,b.stringValue),T=!0);T&&O.JSC$15272_prefCookie.save();_.aD(L)})};
cv[NV]=[Mb];var Fh=new _.MV("PREF_STORAGE_PROMISE_TOKEN");var y1=function(W){this.JSC$15276_prefStoragePromise=W};
_.R(y1,sg);y1.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return(b=_.P(W,s6$))?_.Y(L,O.JSC$15276_prefStoragePromise,2):L.return();T=L.yieldResult;return T===void 0||b.key===void 0||b.value===void 0?L.return():_.Y(L,T.set(b.key,b.value),0)})};
y1[NV]=[Fh];var cBz=function(W){this.innertubeTransportService=W};
_.R(cBz,sg);cBz.prototype.resolveCommand=function(W,O){var b=this,T,L;return _.I(function(h){(T=_.P(W,_.S_N))&&T&&T.isFirstRequest&&(_.sO("search_overview_answer"),_.Bg("so_rq",void 0,"search_overview_answer"));return _.Y(h,_.tP(b.innertubeTransportService,W,(L=O)==null?void 0:L.form),0)})};
cBz[NV]=[_.sP];var F4w=function(){};
_.R(F4w,sg);
F4w.prototype.resolveCommand=function(W){var O,b,T,L,h,Z,a,m,w;return _.I(function(A){O=_.P(W,S$U);if((b=O)==null?0:b.sectionIdentifier){if(O.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(L=(T=document.getElementsByTagName(O.sectionIdentifier))==null?void 0:T.item(0))L.scrollIntoView({behavior:"smooth"}),(h=DdX(L))&&h.focus({preventScroll:!0});return A.return()}Z=document.querySelector("[section-identifier="+O.sectionIdentifier+"]");a=document.querySelector("[section-identifier="+O.referenceSectionIdentifier+
"]");if(!Z)return A.return();m=O.verticalScrollOffsetDp?O.verticalScrollOffsetDp:0;a&&(m-=a.offsetTop);window.scrollTo({top:Z.offsetTop+m,behavior:"smooth"});(w=DdX(Z))&&w.focus({preventScroll:!0})}_.aD(A)})};var Wu=function(){};
_.R(Wu,sg);
Wu.prototype.resolveCommand=function(W){var O,b,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1){O=_.P(W,szn);if(!O||!O.imageBytes||!navigator.clipboard)return m.return();if(O.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Dt(Error("zi")),m.return();_.LI(m,2);T=(b=O)==null?void 0:b.imageBytes;L=T.replace(/-/g,"+").replace(/_/g,"/");h=fYO(L);Z={};a=[new ClipboardItem((Z[h.type]=h,Z))];return _.Y(m,navigator.clipboard.write(a),4)}if(m.nextAddress!=2)return _.H3(m,0);
_.ID(m);_.aD(m)})};var Oj=function(W,O){this.innertubeTransportService=W;this.JSC$15291_commandHandler=O};
_.R(Oj,sg);Oj.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return(T=_.P(W,BcS))?_.Y(m,_.tP(b.innertubeTransportService,W,(L=O)==null?void 0:L.form),2):m.return();(h=m.yieldResult)&&h.errorMetadata&&T.onFailureCommand&&b.JSC$15291_commandHandler.resolveCommand(T.onFailureCommand);Z=h;((a=Z)==null?0:a.shareCommand)&&b.JSC$15291_commandHandler.resolveCommand(Z.shareCommand,O);_.aD(m)})};
Oj[NV]=[_.sP,_.bq];var iR=function(){};
_.R(iR,sg);iR.prototype.resolveCommand=function(W){var O,b;return _.I(function(T){O=_.P(W,KDS);if(!O||!navigator.share)return T.return();b={url:O.url};try{return T.return(navigator.share(b))}catch(L){}_.aD(T)})};var bR=function(){};
_.R(bR,sg);bR.prototype.resolveCommand=function(){return _.I(function(W){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.aD(W)})};var jh=function(W){this.JSC$15301_navigationConfirmationService=W};
_.R(jh,sg);jh.prototype.resolveCommand=function(){var W=this;return _.I(function(O){W.JSC$15301_navigationConfirmationService.cancelPendingNavigation();_.aD(O)})};
jh[NV]=[mK];var Te=function(W){this.JSC$15304_screenManager=W};
_.R(Te,sg);Te.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w;return _.I(function(A){L=(T=O.form)==null?void 0:T.event;Z=(h=O.form)==null?void 0:h.element;if(!L)throw new _.pu("Event not passed in when resolving command");a=_.S(L.composedPath());for(m=a.next();!m.done;m=a.next())if(w=m.value,w.tagName==="YT-COPY-LINK-RENDERER")return w.copyUrlToClipboard(),Z&&_.fd(b.JSC$15304_screenManager,Z),A.return();_.aD(A)})};
Te[NV]=[_.ef];var LM=function(){this.JSC$15308_miniAppClientDataProvider=_.iq().resolve(_.ry)};
_.R(LM,sg);LM.prototype.resolveCommand=function(){var W=this,O,b;return _.I(function(T){if(W.JSC$15308_miniAppClientDataProvider.clientData.has("video_id")){var L=W.JSC$15308_miniAppClientDataProvider,h=L.clientData.get("video_id");h&&L.clientData.delete("video_id");O="https://youtube.com/watch?v="+h;b=Av(O);if(b===void 0)throw Error("Ai`"+O);_.BD(window,b)}_.aD(T)})};var dL=function(){};
_.R(dL,sg);dL.prototype.resolveCommand=function(){return _.I(function(W){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.aD(W)})};var h7=function(){};
_.R(h7,sg);h7.prototype.resolveCommand=function(){var W;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.jn8(window.document.documentElement),2);(W=document.querySelector("mini-app-container-view-model iframe"))&&W.focus();_.aD(O)})};var Sh=function(W){this.JSC$15315_navigationConfirmationService=W};
_.R(Sh,sg);
Sh.prototype.resolveCommand=function(){var W=this;return _.I(function(O){var b=W.JSC$15315_navigationConfirmationService,T=_.iq().resolve(_.wB),L;if(((L=b.navigateParams)==null?void 0:L.data)!==void 0){var h;_.aW1(T,b.navigateParams.endpoint,b.navigateParams.data,(h=b.navigateParams.navigationType)!=null?h:1,b.navigateParams.tempData,b.navigateParams.isMiniplayer,void 0,!0);b.navigateParams=void 0;b.customConfirmationCommand=void 0}else b.navigateParams&&(T.navigate(b.navigateParams.endpoint,b.navigateParams.reload,
b.navigateParams.params,b.navigateParams.tempData,b.navigateParams.requestType,b.navigateParams.createScreenConfig,!0),b.navigateParams=void 0,b.customConfirmationCommand=void 0);_.aD(O)})};
Sh[NV]=[mK];var ZZ=function(){};
_.R(ZZ,sg);ZZ.prototype.resolveCommand=function(){return _.I(function(W){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.aD(W)})};var IO=function(W){this.JSC$15320_prefStorage=W};
_.R(IO,sg);IO.prototype.resolveCommand=function(){var W=this,O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,W.JSC$15320_prefStorage,2);case 2:return(O=T.yieldResult)?_.Y(T,O.set("sfvle",!1),3):T.return();case 3:return _.Y(T,O.set("sfvles",!0),4);case 4:b=_.Xt(),_.UO(0,203,!1),_.UO(0,204,!0),b.save(),_.aD(T)}})};
IO[NV]=[Fh];var aO=function(W){this.JSC$15323_prefStorage=W};
_.R(aO,sg);aO.prototype.resolveCommand=function(){var W=this,O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,W.JSC$15323_prefStorage,2);case 2:return(O=T.yieldResult)?_.Y(T,O.set("sfvle",!0),3):T.return();case 3:return _.Y(T,O.set("sfvles",!0),4);case 4:b=_.Xt(),_.UO(0,203,!0),_.UO(0,204,!0),b.save(),_.aD(T)}})};
aO[NV]=[Fh];var yBq=new _.MV("SNACKBAR_CONTROLLER_TOKEN");var m6=function(W){this.controller=W};
_.R(m6,sg);m6.prototype.resolveCommand=function(W){var O=this,b,T,L;return _.I(function(h){b=_.P(W,VdH);if(!b)return h.return();T=_.P(b.content,bN5);if(!T)return h.return();var Z=O.controller,a=T,m=(L=b.animationStyle)!=null?L:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(Z.showSnackbarFn)Z.showSnackbarFn({snackbarViewModel:a,animationStyle:m,durationMs:b.durationSeconds*1E3});else throw Error("ij");_.aD(h)})};
m6[NV]=[yBq];var YD=function(){};
_.R(YD,sg);YD.prototype.resolveCommand=function(W){var O;return _.I(function(b){O=_.P(W,kRn);if(!O||typeof O.key!=="string"||typeof O.value!=="string")return b.return();window.localStorage.setItem(O.key,O.value);_.aD(b)})};var Ej=function(W){this.store=W};
_.R(Ej,sg);Ej.prototype.resolveCommand=function(W){var O=this,b;return _.I(function(T){b=_.P(W,FtO);if(!b||!b.stepId||!b.token)return T.return();O.store.dispatch(KfL({stepId:b.stepId,token:b.token,isSelected:!1}));_.aD(T)})};
Ej[NV]=[S_];var wL=function(W,O,b){this.innertubeTransportService=W;this.store=O;this.JSC$15339_screenManager=b};
_.R(wL,sg);
wL.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ,y,d8,pE;return _.I(function(Qh){b=_.P(W,rsv);if(!b||(T=b.stepIds)==null||!T.length)return Qh.return();L=O.store.getState().talkToRecs;h=[];Z=[];a=_.S(b.stepIds);for(m=a.next();!m.done;m=a.next())for(w=m.value,A=void 0,(X=(A=L.stepStates[w])==null?void 0:A.userQuery)&&Z.push({userQuery:X.userQuery,userQueryToken:X.token}),l=void 0,p=(l=L.stepStates[w])==null?void 0:l.selectionStates,K=_.S(Object.entries(p)),k=
K.next();!k.done;k=K.next())r=k.value,q=_.S(r),f=q.next().value,M=q.next().value,V=f,jQ=M,jQ.isSelected&&h.push(V);y={selectedChipTokens:h,userQueries:Z,submittedStepIds:b.stepIds};d8={browseTalk2recsFormData:y};b.browseEndpoint?(pE=W,_.ky(pE,_.wE,b.browseEndpoint)):b.command&&(pE=b.command);return pE?_.Y(Qh,_.tP(O.innertubeTransportService,pE,{formData:d8,disableCache:!0}).then(function(KE){(KE==null?0:KE.trackingParams)&&O.JSC$15339_screenManager.graftServerVe(KE==null?void 0:KE.trackingParams)}),
0):Qh.return()})};
wL[NV]=[_.sP,S_,_.ef];var A7=function(W){this.store=W};
_.R(A7,sg);A7.prototype.resolveCommand=function(W){var O=this,b;return _.I(function(T){b=_.P(W,cZX);if(!b||!b.stepId||!b.token)return T.return();O.store.dispatch(KfL({stepId:b.stepId,token:b.token,isSelected:!0}));_.aD(T)})};
A7[NV]=[S_];var XI=function(W){this.store=W};
_.R(XI,sg);XI.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a;return _.I(function(m){T=_.P(W,DcS);if(!T||!T.stepId||!T.userQueryToken)return m.return();a=(Z=(L=O)==null?void 0:(h=L.form)==null?void 0:h.userQuery)!=null?Z:"";b.store.dispatch(_.Tc({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:T.stepId,userQueryToken:T.userQueryToken,userQuery:a}}));_.aD(m)})};
XI[NV]=[S_];_.Wyq=new _.MV("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Uj=function(W){this.controller=W};
_.R(Uj,sg);Uj.prototype.resolveCommand=function(W){var O=this,b,T,L,h;return _.I(function(Z){b=_.P(W,LO5);if(!b)return Z.return();T=b;L=T.id;h=T.isVisible;if(L===void 0||h===void 0)return Z.return();var a;(a=O.controller.timelyActionsMap.get(L))==null||a(L,h);_.aD(Z)})};
Uj[NV]=[_.Wyq];var OJ$=function(){this.timelyActionsMap=new Map};var lR=function(W){this.JSC$15366_commandHandler=W};
_.R(lR,sg);lR.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z;return _.I(function(a){b=_.P(W,_.h9$);if(!b)return a.return();h=(T=b.item)==null?void 0:(L=T.notificationTextRenderer)==null?void 0:L.successResponseText;if(!h)return a.return();Z=_.cS(h);O.JSC$15366_commandHandler.resolveCommand(Z);_.aD(a)})};
lR[NV]=[_.bq];var eh=function(W,O){this.innertubeTransportService=W;this.JSC$15371_playerApiPromise=O};
_.R(eh,sg);
eh.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A;return _.I(function(X){if(X.nextAddress==1)return _.Y(X,O.JSC$15371_playerApiPromise,2);b=X.yieldResult;T=b.getOption("captions","track");L=Object.assign({},_.P(W,_.FDw));(Z=(h=b.getVideoData())==null?void 0:h.video_id)?L.externalVideoId=Z:_.HU(Error("Bi"));if((a=T)==null?0:a.languageCode)L.languageCode=T.languageCode;if((m=T)==null?0:m.kind)L.kind=T.kind;if((w=T)==null?0:w.name)L.name=T.name;A=Object.assign({},W,{getTranscriptEndpoint:L});return _.Y(X,
_.tP(O.innertubeTransportService,A),0)})};
eh[NV]=[_.sP,_.jk];var Pu=function(){};
_.R(Pu,sg);Pu.prototype.resolveCommand=function(W){var O,b,T,L,h,Z,a,m;return _.I(function(w){O=_.P(W,nsw);if((b=O)==null||!b.paramKeyValuePairs)return w.return();T=window.location.href;L=_.S(O.paramKeyValuePairs);for(h=L.next();!h.done;h=L.next())Z=h.value,Z.key&&Z.value&&(a={},T=_.MC(T,(a[Z.key]=Z.value,a)));m=_.iq().resolve(_.Zs);_.SU(m,T);_.aD(w)})};var pM=function(W,O){this.JSC$15378_commandHandler=W;this.innertubeTransportService=O};
_.R(pM,sg);
pM.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M;return _.I(function(V){switch(V.nextAddress){case 1:return(h=(T=O)==null?void 0:(L=T.form)==null?void 0:L.element)&&_.VI(h),Z=_.Xt().get("hl"),a="",_.LI(V,2),_.Y(V,L0X(Z),4);case 4:a=V.yieldResult;_.H3(V,3);break;case 2:return _.ID(V),h&&_.Ns(h),_.Dt(Error("Di"),"ERROR"),V.return();case 3:m=_.P(W,k31);if(!m)return h&&_.Ns(h),V.return();(X=(w=m.commerceActionConfig)==null?void 0:(A=w.commandLifeCycleConfig)==null?
void 0:A.onStartCommand)&&b.JSC$15378_commandHandler.resolveCommand(X);return _.Y(V,_.tP(b.innertubeTransportService,W,{client_data:{paymentsClientToken:{token:a}}}),5);case 5:(l=V.yieldResult)?(h&&_.Ns(h),((r=l)==null?0:r.command)&&b.JSC$15378_commandHandler.resolveCommand(l.command),(M=(q=m.commerceActionConfig)==null?void 0:(f=q.commandLifeCycleConfig)==null?void 0:f.onSuccessCommand)&&b.JSC$15378_commandHandler.resolveCommand(M)):(h&&_.Ns(h),_.Dt(Error("Ei")),(k=(p=m.commerceActionConfig)==null?
void 0:(K=p.commandLifeCycleConfig)==null?void 0:K.onFailureCommand)&&b.JSC$15378_commandHandler.resolveCommand(k)),_.aD(V)}})};
pM[NV]=[_.bq,_.sP];var RO=function(W,O,b){this.store=W;this.JSC$15394_commandHandler=O;this.innertubeTransportService=b};
_.R(RO,sg);
RO.prototype.resolveCommand=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X;return _.I(function(l){T=_.P(W,sP$);L=T.googlePaymentPayload;T.onStartCommand&&b.JSC$15394_commandHandler.resolveCommand(T.onStartCommand);h=L.encryptedPurchaseParams;Z=L.ypcLogWalletAnalyticDataEndpoint;a=T.serializedTransactionFlowLoggingParams;m=L.serializedPaymentsClientParams;w=T.ypcCujContext;X=Su1(b.innertubeTransportService,(A=O)==null?void 0:A.form,h,Z,a,m,w);return l.return(X.then(function(p){dHh(O==null?void 0:O.form,
!1);var K=b.store,k=b.JSC$15394_commandHandler,r=p.integratorData;r==null||r===""||p.error!=null?(String(p.error)==="-1"&&T.onDismissCommand?k.resolveCommand(T.onDismissCommand):String(p.error)!=="-1"&&T.onFailureCommand&&k.resolveCommand(T.onFailureCommand),String(p.error)!=="-1"&&String(p.error)!=="132"&&_.Dt(Error("Fi"),"ERROR")):(T.googlePaymentEntityKey&&K.dispatch(_.AI("commerceAcquisitionClientPayloadEntity",T.googlePaymentEntityKey,{key:T.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:r,
fundsGuaranteeCallbackClientData:p.integratorClientCallbackData}}})),T.onSuccessCommand&&k.resolveCommand(T.onSuccessCommand));_.ZM()},function(p){dHh(O==null?void 0:O.form,!1);
_.Dt(p,"ERROR");T.onFailureCommand&&b.JSC$15394_commandHandler.resolveCommand(T.onFailureCommand)}))})};
RO[NV]=[hs,_.bq,_.sP];var KM=function(W,O){this.JSC$15398_commandHandler=W;this.purchaseManager=O};
_.R(KM,sg);
KM.prototype.resolveCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A;return _.I(function(X){b=_.P(W,B5n);((T=b)==null?0:(L=T.commandLifeCycleConfig)==null?0:L.onStartCommand)&&O.JSC$15398_commandHandler.resolveCommand(b.commandLifeCycleConfig.onStartCommand);if(!((h=b)==null?0:(Z=h.googlePaymentPurchaseManagerPayload)==null?0:Z.securePayloadBytes))return _.Dt(Error("Gi"),"ERROR"),X.return();a=F1v(_.w1(b.googlePaymentPurchaseManagerPayload.securePayloadBytes));m=_.Xt().get("hl");w=_.$S();SNf(a.serialize(),
m,function(l){w.resolve(l)},function(l){w.reject(l)},w.resolve);
A=w.promise;return X.return(A.then(function(l){if(l)if(l==null?0:l.errorCode){_.Dt(Error("Hi`"+l.errorCode),"ERROR");var p,K;((p=b)==null?0:(K=p.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&O.JSC$15398_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}else if(l==null?0:l.isCancelled){var k,r;((k=b)==null?0:(r=k.commandLifeCycleConfig)==null?0:r.onCancelCommand)&&O.JSC$15398_commandHandler.resolveCommand(b.commandLifeCycleConfig.onCancelCommand)}else{var q,f;((q=b)==
null?0:(f=q.commandLifeCycleConfig)==null?0:f.onSuccessCommand)&&O.JSC$15398_commandHandler.resolveCommand(b.commandLifeCycleConfig.onSuccessCommand)}},function(l){_.Dt(l,"ERROR");
var p,K;((p=b)==null?0:(K=p.commandLifeCycleConfig)==null?0:K.onFailureCommand)&&O.JSC$15398_commandHandler.resolveCommand(b.commandLifeCycleConfig.onFailureCommand)}))})};
KM[NV]=[_.bq,Zs1];var iJ7=function(W,O){this.JSC$15406_commandHandler=W;this.commandAllowlistOverride=O;var b;this.commandAllowlist=(b=this.commandAllowlistOverride)!=null?b:Va};
iJ7.prototype.handleResponse=function(W,O,b){var T,L=O==null?void 0:(T=O.config)==null?void 0:T.command;if(!L||this.commandAllowlist.some(function(h){return!!_.P(L,h)})){O=void 0;
b!==void 0&&(O={form:{element:b}});W.onResponseReceivedCommand&&this.JSC$15406_commandHandler.resolveCommand(W.onResponseReceivedCommand,O);W.onResponseReceivedAction&&this.JSC$15406_commandHandler.resolveCommand(W.onResponseReceivedAction,O);W.onResponseReceivedEndpoint&&this.JSC$15406_commandHandler.resolveCommand(W.onResponseReceivedEndpoint,O);W.command&&this.JSC$15406_commandHandler.resolveCommand(W.command,O);if(W.onResponseReceivedCommands)for(b=_.S(W.onResponseReceivedCommands),T=b.next();!T.done;T=
b.next())this.JSC$15406_commandHandler.resolveCommand(T.value,O);if(W.onResponseReceivedActions)for(b=_.S(W.onResponseReceivedActions),T=b.next();!T.done;T=b.next())this.JSC$15406_commandHandler.resolveCommand(T.value,O);if(W.onResponseReceivedEndpoints)for(b=_.S(W.onResponseReceivedEndpoints),T=b.next();!T.done;T=b.next())this.JSC$15406_commandHandler.resolveCommand(T.value,O);if(W.actions)for(W=_.S(W.actions),b=W.next();!b.done;b=W.next())this.JSC$15406_commandHandler.resolveCommand(b.value,O)}};
iJ7[NV]=[_.bq,_.OT(aZ1)];var bJq=new _.MV("INNERTUBE_TOKEN_SERVICE");var jhL=new _.MV("SCHEDULER_TOKEN");var T_7=function(W){this.scheduler=W;W={};this.tokenMap=(W.app={},W.user={},W)};
T_7.prototype.handleResponse=function(W,O){if(!O)throw Error("Ii");var b;if(W=(b=W.responseContext)==null?void 0:b.innertubeTokenJar){if(W.appTokens){var T,L,h;b=(T=O.innerTubeRequest.context)==null?void 0:(L=T.request)==null?void 0:(h=L.innertubeTokenJar)==null?void 0:h.appTokens;Ly9(this,W.appTokens,this.tokenMap.app,b)}if(W.userTokens){var Z,a,m;O=(Z=O.innerTubeRequest.context)==null?void 0:(a=Z.request)==null?void 0:(m=a.innertubeTokenJar)==null?void 0:m.userTokens;Ly9(this,W.userTokens,this.tokenMap.user,
O)}}};
T_7.prototype.processContext=function(W){W.request||(W.request={});var O=Object.keys(this.tokenMap.app).length,b=Object.keys(this.tokenMap.user).length;if(O||b)W.request.innertubeTokenJar={},O&&(W.request.innertubeTokenJar.appTokens=[].concat(_.PG(Object.values(this.tokenMap.app).flat()))),b&&(W.request.innertubeTokenJar.userTokens=[].concat(_.PG(Object.values(this.tokenMap.user).flat())))};
var Ly9=function(W,O,b,T){O=_.S(O);for(var L=O.next(),h={};!L.done;h={token$jscomp$137:void 0},L=O.next()){h.token$jscomp$137=L.value;if(h.token$jscomp$137.type===void 0)throw new _.pu("InnerTube token has no type",h.token$jscomp$137);if(h.token$jscomp$137.clearTokens)b[h.token$jscomp$137.type]=[];else if(h.token$jscomp$137.value!==void 0){b[h.token$jscomp$137.type]||(b[h.token$jscomp$137.type]=[]);if(T!==void 0&&T.length){L=_.S(T);for(var Z=L.next(),a={};!Z.done;a={requestToken:void 0},Z=L.next())a.requestToken=
Z.value,Z=b[h.token$jscomp$137.type].findIndex(function(m){return function(w){return w===m.requestToken||(0,_.PQ.equals)(w,m.requestToken)}}(a)),Z>-1&&b[h.token$jscomp$137.type].splice(Z,1)}b[h.token$jscomp$137.type].push(h.token$jscomp$137);
h.token$jscomp$137.maxAgeSeconds&&Number(h.token$jscomp$137.maxAgeSeconds)>0&&W.scheduler.addLowPriorityJob(function(m){return function(){var w=b[m.token$jscomp$137.type].indexOf(m.token$jscomp$137);w>-1&&b[m.token$jscomp$137.type].splice(w,1)}}(h),Number(h.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.pu("InnerTube token has no value",h.token$jscomp$137);
}};
T_7[NV]=[jhL];var d7f=new _.MV("LOCAL_INNERTUBE_ROUTER_TOKEN"),hMz=new _.MV("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var vu=function(W){this.serviceMap=W};
vu.prototype.shouldPreferLocalResponse=function(W,O){return(W=S47(this,W))?W.shouldPreferLocalResponse(O):!1};
vu.prototype.localInnertubeResponse=function(W,O){var b=this,T;return _.I(function(L){return(T=S47(b,W))?L.return(T.localInnertubeResponse(O)):L.return(Promise.reject(Error("Ji")))})};
vu.prototype.canProvideFallbackResponse=function(W,O){return(W=S47(this,W))?W.canProvideFallbackResponse(O):!1};
vu.prototype.localFallbackInnertubeResponse=function(W,O){var b=this,T;return _.I(function(L){return(T=S47(b,W))?L.return(T.localFallbackInnertubeResponse(O)):L.return(Promise.reject(Error("Ji")))})};
var S47=function(W,O){O=_.mp(O);return O?(W=W.serviceMap[O])?W:null:null};
vu[NV]=[hMz];var lU=function(){};
lU.prototype.shouldPreferLocalResponse=function(){return!1};
lU.prototype.localInnertubeResponse=function(){return _.I(function(W){return W.return(Promise.reject(Error("Ki")))})};
lU.prototype.canProvideFallbackResponse=function(){return!0};
lU.prototype.localFallbackInnertubeResponse=function(){var W,O,b;return _.I(function(T){W=pF("CLOSE_POPUP");O={openPopupAction:I4X()};b={actions:[W,O]};return T.return(b)})};var GkP=function(W,O){this.JSC$15456_upliftPromise=W;this.store=O};
_.d=GkP.prototype;_.d.shouldPreferLocalResponse=function(W){var O=W.videoId,b;if(b=O)b=KQT(this.store.getState().entities,W.videoId);return b&&v2q(this.store.getState().entities,O)?mHi(this.store.getState().entities,W.playlistId):!1};
_.d.localInnertubeResponse=function(W){var O=this,b;return _.I(function(T){return(b=O.getPlayerResponse(W))?T.return(Promise.resolve(b)):T.return(Promise.reject(Error("Li")))})};
_.d.canProvideFallbackResponse=function(W){return!!W.videoId};
_.d.localFallbackInnertubeResponse=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.JSC$15456_upliftPromise,2);b=O.getPlayerResponse(W);var L;b?L=T.return(Promise.resolve(b)):L=pe(O.store.getState().entities,W.videoId)?T.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iv(_.EO("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:QpQ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
T.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iv(_.EO("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:ocQ()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return L})};
_.d.getPlayerResponse=function(W){return yuX(this.store.getState().entities,W.videoId)};var UQ=function(W,O){this.localPlayerService=W;this.localWatchNextService=O};
UQ.prototype.shouldPreferLocalResponse=function(W){var O=W.playerRequest;W=W.watchNextRequest;return!!(O&&this.localPlayerService.shouldPreferLocalResponse(O)&&W&&this.localWatchNextService.shouldPreferLocalResponse(W))};
UQ.prototype.localInnertubeResponse=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){b=W.playerRequest;T=W.watchNextRequest;if(!b||!T)throw new _.pu("Missing streaming request",W);return _.Y(Z,O.localPlayerService.localInnertubeResponse(b),2)}if(Z.nextAddress!=3)return L=Z.yieldResult,_.Y(Z,O.localWatchNextService.localInnertubeResponse(T),3);h=Z.yieldResult;return Z.return({playerResponse:L,watchNextResponse:h})})};
UQ.prototype.canProvideFallbackResponse=function(W){var O=W.playerRequest;W=W.watchNextRequest;return!!(O&&this.localPlayerService.canProvideFallbackResponse(O)&&W&&this.localWatchNextService.canProvideFallbackResponse(W))};
UQ.prototype.localFallbackInnertubeResponse=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return b=W.playerRequest,T=W.watchNextRequest,b&&T?_.Y(Z,O.localPlayerService.localFallbackInnertubeResponse(b),2):Z.return(Promise.reject(new _.pu("Missing streaming request",W)));if(Z.nextAddress!=3)return L=Z.yieldResult,_.Y(Z,O.localWatchNextService.localFallbackInnertubeResponse(T),3);h=Z.yieldResult;return Z.return({playerResponse:L,watchNextResponse:h})})};var wY=function(W){this.JSC$15466_persistentStorePromiseAccessor=W};
wY.prototype.shouldPreferLocalResponse=function(){return!1};
wY.prototype.localInnertubeResponse=function(){return _.I(function(W){return W.return(Promise.reject(Error("Mi")))})};
wY.prototype.canProvideFallbackResponse=function(){return!0};
wY.prototype.localFallbackInnertubeResponse=function(){var W=this,O,b;return _.I(function(T){return T.nextAddress==1?_.Y(T,W.JSC$15466_persistentStorePromiseAccessor(),2):T.nextAddress!=3?(O=T.yieldResult)?_.Y(T,O.get("service:guide:fallback"),3):T.return(Promise.reject(Error("Ni"))):(b=T.yieldResult)&&_.LD(b)?T.return(YuO(_.LD(b))):T.return(Promise.reject(Error("Oi")))})};var e6=function(){};
e6.prototype.shouldPreferLocalResponse=function(){return!1};
e6.prototype.localInnertubeResponse=function(){return _.I(function(W){return W.return(Promise.reject(Error("Pi")))})};
e6.prototype.canProvideFallbackResponse=function(){return!0};
e6.prototype.localFallbackInnertubeResponse=function(){var W,O,b;return _.I(function(T){W=pF("CLOSE_POPUP");O={openPopupAction:I4X()};b={actions:[W,O]};return T.return(b)})};var EQ=function(){this.urlMap=ZJz;this.fallbackCommand=_.aT};
EQ.prototype.shouldPreferLocalResponse=function(W){return(W=W.url)?!!IJ5(this,W):!1};
EQ.prototype.localInnertubeResponse=function(W){var O=this,b;return _.I(function(T){return(b=W.url)?T.return(aJv(W,IJ5(O,b))):T.return(Promise.reject(Error("Qi")))})};
EQ.prototype.canProvideFallbackResponse=function(){return!0};
EQ.prototype.localFallbackInnertubeResponse=function(W){var O=this,b,T,L,h,Z,a,m;return _.I(function(w){b=W.url;if(!b)return w.return(aJv(W,O.fallbackCommand));if(T=IJ5(O,b))return w.return(aJv(W,T));L=void 0;h=_.mp(b);h==="/watch"&&(Z=_.GP(b,"v"))&&(m=(a=_.GP(b,"list"))!=null?a:void 0,L=_.Or(Z,m));L||(L=O.fallbackCommand);return w.return(aJv(W,L))})};
var IJ5=function(W,O){if(O)return W.urlMap[_.fq(O)]},aJv=function(W,O){O&&W.parentTrackingParams&&(O.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:W.parentTrackingParams}},O.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:O})};var As=function(W,O,b){this.JSC$15476_upliftPromise=W;this.store=O;this.JSC$15476_persistentStorePromiseAccessor=b};
As.prototype.shouldPreferLocalResponse=function(){return!1};
As.prototype.localInnertubeResponse=function(){return _.I(function(W){return W.return(Promise.reject(Error("Ri")))})};
As.prototype.canProvideFallbackResponse=function(){return!0};
As.prototype.localFallbackInnertubeResponse=function(){var W=this;return _.I(function(O){return O.return(m77(W))})};
var m77=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,TN(W.JSC$15476_upliftPromise,W.store),2);O=T.yieldResult;b={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[a4h(O)]}}}};return T.return(Y47(W,b))})},Y47=function(W,O){var b,T;
return _.I(function(L){if(L.nextAddress==1)return _.Y(L,W.JSC$15476_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return b=L.yieldResult,_.Y(L,dY(b),3);T=L.yieldResult;return L.return({responseContext:{},contents:O,topbar:T})})};var mN=function(W,O,b){this.JSC$15483_upliftPromise=W;this.store=O;this.JSC$15483_persistentStorePromiseAccessor=b};
mN.prototype.shouldPreferLocalResponse=function(W){var O=W.videoId;return O&&KQT(this.store.getState().entities,O)&&v2q(this.store.getState().entities,O)?mHi(this.store.getState().entities,W.playlistId):!1};
mN.prototype.localInnertubeResponse=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return(b=W.videoId)?_.Y(L,O.JSC$15483_upliftPromise,2):L.return(Promise.reject(Error("Si")));if(L.nextAddress!=3)return _.Y(L,EkH(O,W,b),3);T=L.yieldResult;return L.return(wKq(O,T,b))})};
mN.prototype.canProvideFallbackResponse=function(W){return W.videoId?!0:!1};
mN.prototype.localFallbackInnertubeResponse=function(W){var O=this,b,T,L,h;return _.I(function(Z){switch(Z.nextAddress){case 1:return(b=W.videoId)?_.Y(Z,O.JSC$15483_upliftPromise,2):Z.return(Promise.reject(Error("Si")));case 2:return _.Y(Z,EkH(O,W,b),3);case 3:T=Z.yieldResult;if(pe(O.store.getState().entities,b)){Z.jumpTo(4);break}return _.Y(Z,TN(O.JSC$15483_upliftPromise,O.store),5);case 5:return L=Z.yieldResult,Z.return(AkL(T,L));case 4:return KQT(O.store.getState().entities,b)&&v2q(O.store.getState().entities,
b)?Z.return(wKq(O,T,b)):(h={title:_.iv(_.EO("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:QpQ()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},Z.return(AkL(T,h)))}})};
var EkH=function(W,O,b){var T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return T=O.playlistId,L=_.Or(b,T),_.Y(m,W.JSC$15483_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3)return h=m.yieldResult,_.Y(m,dY(h),3);Z=m.yieldResult;a={responseContext:{},currentVideoEndpoint:L,topbar:Z};return m.return(a)})},wKq=function(W,O,b){if(W=pe(W.store.getState().entities,b)){var T;
b=W.videoEntity;var L,h={title:bv(b.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.jK((T=b.localizedStrings)==null?void 0:T.viewCount),viewCount:_.jK((L=b.localizedStrings)==null?void 0:L.viewCount)}}};b.publishedTimestampMillis&&(h.dateText=_.jK(fm1(new Date(Number(b.publishedTimestampMillis)))));T={videoPrimaryInfoRenderer:h};L=W.videoEntity;W=W.channelEntity;W={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:bv(_.EO("SHOW_MORE",void 0,"Show more")),
showLessText:bv(_.EO("SHOW_LESS",void 0,"Show less")),description:L.formattedDescription,owner:{videoOwnerRenderer:{title:bv(W.title),thumbnail:W.avatar}}}};O.contents={twoColumnWatchNextResults:{results:{results:{contents:[T,W]}}}}}return O},AkL=function(W,O){W.contents={singleColumnWatchNextResults:{results:{results:{contents:[a4h(O)]}}}};
return W};var Xv=function(W,O,b){this.JSC$15488_upliftPromise=W;this.store=O;this.JSC$15488_persistentStorePromiseAccessor=b};
Xv.prototype.shouldPreferLocalResponse=function(){return!1};
Xv.prototype.localInnertubeResponse=function(){return _.I(function(W){return W.return(Promise.reject(Error("Ti")))})};
Xv.prototype.canProvideFallbackResponse=function(){return!0};
Xv.prototype.localFallbackInnertubeResponse=function(){var W=this,O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return _.Y(h,W.JSC$15488_persistentStorePromiseAccessor(),2);case 2:return O=h.yieldResult,_.Y(h,dY(O),3);case 3:return b=h.yieldResult,T={responseContext:{},topbar:b},_.Y(h,W.JSC$15488_upliftPromise,4);case 4:return _.Y(h,TN(W.JSC$15488_upliftPromise,W.store),5);case 5:return L=h.yieldResult,T.watchStatus={backgroundPromoRenderer:L},h.return(T)}})};var XK$=new _.MV("ENDPOINT_MAP");var U7n=function(){var W=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return W.sequenceMap}}},aK5=function(W,O,b){var T,L=(T=O.config)==null?void 0:T.sequenceStrategy;
if(!L)return b();W.sequenceMap.has(L.sequenceKey)||W.sequenceMap.set(L.sequenceKey,[]);W=W.sequenceMap.get(L.sequenceKey);switch(L.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return lJ$(W,O,b);case "REQUEST_SEQUENCE_TYPE_REPLACE":return eM1(W,O,b);default:throw new _.pu("Request could not be sequenced",O);}},lJ$=function(W,O,b){var T,L,h;
return _.I(function(Z){W.length>0?(L=W[W.length-1],T=L.responsePromise.then(function(){return b()})):T=b();
h={request:O,responsePromise:T};W.push(h);Pc1(W,h);return Z.return(h.responsePromise)})},eM1=function(W,O,b){b=b();
if(W.length>0)for(var T=_.S(W),L=T.next();!L.done;L=T.next())L.value.responsePromise=b;var h={request:O,responsePromise:b};W.push(h);Pc1(W,h);return Promise.resolve().then(function(){return W.indexOf(h)>0?h.responsePromise.then(function(Z){return Object.assign({},Z,{sequenceMetaData:{skipProcessing:!0}})}):h.responsePromise})},Pc1=function(W,O){O.responsePromise.then(function(){var b=W.indexOf(O);
b>-1&&W.splice(b,1)})};var pK1=new _.MV("REQUEST_SEQUENCING");var gL=function(){};
_.R(gL,bH);gL.prototype.getApiPaths=function(){return[]};
gL.prototype.getExtension=function(W){return _.P(W,WN5)};
gL.prototype.JSC$10998_buildRequest=function(W,O){W.recaptchaToken=O.recaptchaToken};
gL.prototype.getApiUrl=function(){return"/das_captcha"};var oO=function(){};
_.R(oO,bH);oO.prototype.getApiPaths=function(){return QTU};
oO.prototype.getExtension=function(W){return _.P(W,oqS)};
oO.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.createBackstagePostParams&&(W.createBackstagePostParams=O.createBackstagePostParams);b.comment_text&&(W.commentText=b.comment_text);if(b.attached_video_id)W.videoAttachment={videoId:b.attached_video_id};else if(b.image_poll_options)W.pollAttachmentData={options:b.image_poll_options};else if(b.poll_options)W.pollAttachment={choices:b.poll_options};else if(b.quiz_options)W.quizAttachmentData={options:b.quiz_options};else if(b.image_blob_id)W.imageAttachment=
{encryptedBlobId:b.image_blob_id},b.source_video_id&&(W.imageAttachment.sourceExternalVideoId=b.source_video_id),b.image_preview_coordinates&&(W.imageAttachment.previewCoordinates=JSON.parse(b.image_preview_coordinates));else if(b.images_data)W.imagesAttachment={imagesData:b.images_data};else if(b.clip_external_video_id!==void 0||b.clip_offset_ms!==void 0||b.clip_duration_ms!==void 0){var T,L,h,Z,a;W.clipAttachment={externalVideoId:(h=b.clip_external_video_id)!=null?h:"",offsetMs:(Z=(T=b.clip_offset_ms)==
null?void 0:T.toString())!=null?Z:"",durationMs:(a=(L=b.clip_duration_ms)==null?void 0:L.toString())!=null?a:""}}else b.shared_post_id&&(W.sharedPostAttachment={postId:b.shared_post_id});b.tagged_video_id&&(W.postCreationData={taggedVideoId:b.tagged_video_id});b.access_restrictions&&(typeof b.access_restrictions==="number"&&(O=b.access_restrictions,W.accessRestrictions={restriction:O!==1&&O===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof b.access_restrictions==="string"&&
(W.accessRestrictionsParams=b.access_restrictions));b.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString())};var Q7=function(){};
_.R(Q7,bH);Q7.prototype.getApiPaths=function(){return ztf};
Q7.prototype.getExtension=function(W){return _.P(W,rR9)};
Q7.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.decorateMessageParams&&(W.params=O.decorateMessageParams);b.text&&(W.text=b.text)};var kD=function(){};
_.R(kD,bH);kD.prototype.getApiPaths=function(){return bmU};
kD.prototype.getExtension=function(W){return _.P(W,Qdn)};
kD.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;b.video_id&&(W.videoId=b.video_id)};var sj=function(){};
_.R(sj,bH);sj.prototype.getApiPaths=function(){return SZv};
sj.prototype.getExtension=function(W){return _.P(W,_.mM)};
sj.prototype.JSC$10998_buildRequest=function(W,O,b){b.suggestions_query&&(W.input=b.suggestions_query)};var Bu=function(){};
_.R(Bu,bH);Bu.prototype.getApiPaths=function(){return GzU};
Bu.prototype.getExtension=function(W){return _.P(W,kNq)};
Bu.prototype.JSC$10998_buildRequest=function(W,O,b){b.comment_text!==void 0&&(W.commentText=b.comment_text);b.scheduled_publish_time_sec&&(W.scheduledPublishTimeSec=b.scheduled_publish_time_sec.toString());W.updateBackstagePostParams=O.updateBackstagePostParams};var rL=function(){};
_.R(rL,bH);rL.prototype.getApiPaths=function(){return yI};
rL.prototype.getExtension=function(W){return _.P(W,_.Cd)};
rL.prototype.JSC$10998_buildRequest=function(W,O,b){b.formData&&(W.formData=b.formData);O.token?W.continuation=O.token:O.continuationTokenKey&&(b=_.uv().getState(),O=_.IJ(b.entities,"continuationTokenEntity",O.continuationTokenKey))&&(W.continuation=String(O.continuationToken))};
var RMw=function(){};
_.R(RMw,bH);_.d=RMw.prototype;_.d.getApiPaths=function(){return yI};
_.d.getExtension=function(W){return _.P(W,_.wE)};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$11005_getStoreKey=function(W){if((W=this.getExtension(W))&&W.browseId){var O={browseId:W.browseId};W.browseEndpointContextSupportedConfigs&&(O.browseEndpointContextSupportedConfigs=JSON.stringify(W.browseEndpointContextSupportedConfigs));W.params&&(O.params=W.params);W.query&&(O.query=W.query);return _.$J("browse",O)}};
_.d.JSC$10998_buildRequest=function(W,O,b){O.browseId&&(W.browseId=O.browseId);O.params&&(W.params=O.params);O.query&&(W.query=O.query);b.formData?W.formData=b.formData:O.formData&&(W.formData=O.formData);O.browseId==="FEsubscriptions"&&_.Xt().getFlag(155)&&(W.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");O.browseId==="SPaccount_playback"&&(b=_.Xt(),W.formData||(W.formData={}),W.formData.accountSettingsFormData={flagCaptionsDefaultOff:b.getFlag(65),flagAutoCaptionsDefaultOn:b.getFlag(66),
flagDisableInlinePreview:b.getFlag(186),flagAudioDescriptionDefaultOn:b.getFlag(198)});if(O.browseId==="FEwhat_to_watch"){b=_.Xt();var T=b.getFlag(196);b.getFlag(197)&&(W.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:T}}})}O.browseId==="FEwhat_to_watch"&&(O=_.Xt().getFlag(186),W.inlineSettingStatus=O?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.d.getRequestConfig=function(W,O){O=O===void 0?{}:O;var b={};if(W=this.JSC$11005_getStoreKey(W,O))b.storeStrategy={storeKey:W,disableCache:O.disableCache};_.e("web_log_browse_ticks_ks")||(b.requestTick="br_s",b.responseTick="br_r");return b};var DZ=function(){};
_.R(DZ,bH);DZ.prototype.getApiPaths=function(){return pH1};
DZ.prototype.getExtension=function(W){return _.P(W,uSH)};
DZ.prototype.JSC$10998_buildRequest=function(W,O,b){W.legacyYoutubeChannelUsername=b.legacyYouTubeChannelUsername||"";W.legacyYoutubeChannelPassword=b.legacyYouTubeChannelPassword||""};var xD=function(){};
_.R(xD,bH);xD.prototype.getApiPaths=function(){return sLw};
xD.prototype.getExtension=function(W){return _.P(W,qQq)};
xD.prototype.JSC$10998_buildRequest=function(W,O,b){b.recaptcha_response_token&&(W.recaptchaResponseToken=b.recaptcha_response_token);b.channel_id&&(W.channelId=b.channel_id)};var ze=function(){};
_.R(ze,bH);ze.prototype.getApiPaths=function(){return Hmn};
ze.prototype.getExtension=function(W){return _.P(W,$cf)};
ze.prototype.JSC$10998_buildRequest=function(W,O,b){O.externalChannelId&&(W.externalChannelId=O.externalChannelId);b.handle&&(W.handleUpdate={handle:b.handle},O.handleEditSource&&(W.handleUpdate.handleEditSource=O.handleEditSource))};var CM=function(){};
_.R(CM,bH);CM.prototype.getApiPaths=function(){return NBU};
CM.prototype.getExtension=function(W){return _.P(W,TQL)};
CM.prototype.JSC$10998_buildRequest=function(W,O,b){O.request&&(W.channelId=O.request.channelId);var T;if(b==null?0:(T=b.uploadDefaults)==null?0:T.emojiReactionSet)W.uploadDefaultsRequest||(W.uploadDefaultsRequest={}),W.uploadDefaultsRequest.emojiReactionSet=b.uploadDefaults.emojiReactionSet};var qR=function(){};
_.R(qR,bH);qR.prototype.getApiPaths=function(){return JeS};
qR.prototype.getExtension=function(W){return _.P(W,nqL)};
qR.prototype.JSC$10998_buildRequest=function(W,O,b){O.externalChannelId&&(W.externalChannelId=O.externalChannelId);O.channelHandleEntityKey&&(W.channelHandleEntityKey=O.channelHandleEntityKey);O.handleEditSource&&(W.handleEditSource=O.handleEditSource);b.handle?W.handle=b.handle:b.name&&(W.name=b.name)};var nM=function(){};
_.R(nM,bH);nM.prototype.getApiPaths=function(){return vPq};
nM.prototype.getExtension=function(W){return _.P(W,Aun)};
nM.prototype.JSC$10998_buildRequest=function(W,O){O.actions?W.actions=O.actions:O.action&&(W.actions=[O.action])};var fM=function(){};
_.R(fM,bH);fM.prototype.getApiPaths=function(){return gPf};
fM.prototype.getExtension=function(W){return _.P(W,_.Cd)};
fM.prototype.JSC$10998_buildRequest=function(W,O){O.token&&(W.continuation=O.token)};var Ge=function(){};
_.R(Ge,bH);Ge.prototype.getApiPaths=function(){return Om$};
Ge.prototype.getExtension=function(W){return _.P(W,_.Cd)};
Ge.prototype.JSC$10998_buildRequest=function(W,O){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";O.token&&(W.fetchCommentsParams={continuation:O.token})};var Hu=function(){};
_.R(Hu,bH);Hu.prototype.getApiPaths=function(){return Bkv};
Hu.prototype.getExtension=function(W){return _.P(W,wL5)};
Hu.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.createReplyParams&&(W.createReplyParams=O.createReplyParams);O.commentText&&(W.commentText=_.NX(O.commentText));b.comment_text&&(W.commentText=b.comment_text);b.image_blob_id&&(W.imageAttachment={encryptedBlobId:b.image_blob_id});b.botguard_response&&(W.botguardResponse=b.botguard_response)};
_.Jq.Object.defineProperties(Hu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var t7=function(){};
_.R(t7,bH);t7.prototype.getApiPaths=function(){return rpH};
t7.prototype.getExtension=function(W){return _.P(W,_.E25)};
t7.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.createCommentParams&&(W.createCommentParams=O.createCommentParams);O.commentText&&(W.commentText=_.NX(O.commentText));O.videoPositionMention&&(W.videoPositionMention=O.videoPositionMention);O.sources&&(W.sources=O.sources);b.comment_text&&(W.commentText=b.comment_text);b.attached_video_id?W.videoAttachment={videoId:b.attached_video_id}:b.poll_options?W.pollAttachment={choices:b.poll_options}:b.image_blob_id?W.imageAttachment=
{encryptedBlobId:b.image_blob_id}:b.shared_post_id&&(W.sharedPostAttachment={postId:b.shared_post_id});b.access_restrictions&&typeof b.access_restrictions==="number"&&(O=b.access_restrictions,W.accessRestrictions={restriction:O!==1&&O===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});b.botguard_response&&(W.botguardResponse=b.botguard_response)};
_.Jq.Object.defineProperties(t7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $D=function(){};
_.R($D,bH);$D.prototype.getApiPaths=function(){return tuS};
$D.prototype.getExtension=function(W){return _.P(W,UuU)};
$D.prototype.JSC$10998_buildRequest=function(W,O,b){O.commentText&&(W.replyText=_.NX(O.commentText));b.comment_text&&(W.replyText=b.comment_text);W.updateReplyParams=O.updateReplyParams};
_.Jq.Object.defineProperties($D.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var V7=function(){};
_.R(V7,bH);V7.prototype.getApiPaths=function(){return $hU};
V7.prototype.getExtension=function(W){return _.P(W,XLn)};
V7.prototype.JSC$10998_buildRequest=function(W,O,b){O.commentText&&(W.commentText=_.NX(O.commentText));b.comment_text&&(W.commentText=b.comment_text);W.updateCommentParams=O.updateCommentParams};
_.Jq.Object.defineProperties(V7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var NR=function(){};
_.R(NR,bH);NR.prototype.getApiPaths=function(){return Vuw};
NR.prototype.getExtension=function(W){return _.P(W,OfH)};
NR.prototype.JSC$10998_buildRequest=function(W,O){O.settings&&(W.settings=O.settings)};var MR=function(){};
_.R(MR,bH);MR.prototype.getApiPaths=function(){return MnU};
MR.prototype.getExtension=function(W){return _.P(W,fLL)};
MR.prototype.JSC$10998_buildRequest=function(W,O){O.channelCreationToken&&(W.channelCreationToken=O.channelCreationToken);O.source&&(W.source=O.source)};var uR=function(){};
_.R(uR,bH);uR.prototype.getApiPaths=function(){return sTw};
uR.prototype.getExtension=function(W){return _.P(W,t67)};
uR.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;if(b.name&&(b.given_name||b.family_name))W=new _.pu("channel creation cannot set both GAIA and YouTube names",O),_.Dt(W);else{if(O.zeroStepChannelCreationParams){if(!b.comment_text){W=new _.pu("zero_step_create_comment_params but no zero_step_texts",O);_.Dt(W);return}W.zeroStepChannelCreationParams=O.zeroStepChannelCreationParams;W.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
b.comment_text,b.botguard_response&&(W.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=b.botguard_response))}W.channelCreationToken=O.channelCreationToken;b.given_name&&(W.givenName=b.given_name);b.family_name&&(W.familyName=b.family_name);O.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(W.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(b.name||b.handle||b.avatar_url||b.encryptedBlobId||b.isNameChanged!==void 0||b.isHandleChanged!==void 0||b.isDefaultProfilePhoto!==
void 0||b.obakeImageSource)W.overrideChannelCreationParams={},b.name&&(W.overrideChannelCreationParams.name=b.name),b.handle&&(W.overrideChannelCreationParams.handle=b.handle),b.avatar_url&&(W.overrideChannelCreationParams.avatarUrl=b.avatar_url),b.encryptedBlobId&&(W.overrideChannelCreationParams.blobEncryptionId=b.encryptedBlobId),b.enableIdentityForAllChannelCreationDialog&&(b.encryptedBlobId?W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
b.isDefaultProfilePhoto!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=b.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),b.isNameChanged!==void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationNameTag=b.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),b.isHandleChanged!==
void 0&&(W.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=b.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),b.obakeImageSource&&(W.overrideChannelCreationParams.obakeImageSourceType=b.obakeImageSource))}};var J7=function(){};
_.R(J7,bH);J7.prototype.getApiPaths=function(W){return(W=this.getExtension(W))&&W.status==="DISLIKE"?fCv:W&&W.status==="INDIFFERENT"?v_S:YZS};
J7.prototype.getExtension=function(W){return _.P(W,_.tT)};
J7.prototype.JSC$10998_buildRequest=function(W,O){O.target&&(W.target=O.target);if(O=this.getParams(O))W.params=O};
J7.prototype.getParams=function(W){switch(W==null?void 0:W.status){case "DISLIKE":return W.dislikeParams;case "INDIFFERENT":return W.removeLikeParams;default:return W==null?void 0:W.likeParams}};var cu=function(){};
_.R(cu,bH);cu.prototype.getApiPaths=function(){return zIz};
cu.prototype.getExtension=function(W){return _.P(W,KQ$)};
cu.prototype.JSC$10998_buildRequest=function(W,O){O.settingItemId&&(W.settingItemId=O.settingItemId);O.stringValue!=null&&O.stringValue!==void 0?W.newValue={stringValue:O.stringValue}:O.intValue?W.newValue={intValue:O.intValue}:O.boolValue!==null&&O.boolValue!==void 0?W.newValue={boolValue:O.boolValue}:(W=new _.pu("Unknown value type for SetSettingEndpoint.",O),_.Dt(W))};var FI=function(){};
_.R(FI,bH);FI.prototype.getApiPaths=function(){return qZH};
FI.prototype.getExtension=function(W){return _.P(W,Hrq)||void 0};
FI.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.channelIds&&(W.channelIds=O.channelIds);O.siloName&&(W.siloName=O.siloName);O.params&&(W.params=O.params);b.botguardResponse&&(W.botguardResponse=b.botguardResponse);b.feature&&(W.clientFeature=b.feature)};
_.Jq.Object.defineProperties(FI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var y7=function(){};
_.R(y7,bH);y7.prototype.getApiPaths=function(){return fz7};
y7.prototype.getExtension=function(W){return _.P(W,v27)||void 0};
y7.prototype.JSC$10998_buildRequest=function(W,O){O.channelIds&&(W.channelIds=O.channelIds);O.siloName&&(W.siloName=O.siloName);O.params&&(W.params=O.params)};
_.Jq.Object.defineProperties(y7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Wa=function(W){this.shareClientParamsProvider=W};
_.R(Wa,bH);Wa.prototype.getApiPaths=function(){return TBf};
Wa.prototype.getExtension=function(W){return _.P(W,cE1)||_.P(W,_.FOH)||_.P(W,JEw)};
Wa.prototype.JSC$10998_buildRequest=function(W,O){O.serializedShareEntity&&(W.serializedSharedEntity=O.serializedShareEntity);if(O.clientParamIdentifier){var b;if((b=this.shareClientParamsProvider)==null?0:b.clientParams.has(O.clientParamIdentifier)){b=this.shareClientParamsProvider;O=O.clientParamIdentifier;var T=b.clientParams.get(O);T&&b.clientParams.delete(O);W.clientParams=T}}};
Wa[NV]=[$Yq];var Os=function(){};
_.R(Os,bH);Os.prototype.getApiPaths=function(){return lC5};
Os.prototype.getExtension=function(W){return _.P(W,T7w)};
Os.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var i6=function(){};
_.R(i6,bH);i6.prototype.getApiPaths=function(){return Gnv};
i6.prototype.getExtension=function(W){return _.P(W,i45)};
i6.prototype.JSC$10998_buildRequest=function(W,O){O.dismissal&&(W.items=[O.dismissal])};
_.Jq.Object.defineProperties(i6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b6=function(){};
_.R(b6,bH);b6.prototype.getApiPaths=function(){return az7};
b6.prototype.getExtension=function(W){return _.P(W,_.QG)||void 0};
b6.prototype.JSC$10998_buildRequest=function(W,O,b){W.feedbackTokens=[];O.feedbackToken&&W.feedbackTokens.push(O.feedbackToken);if(O=O.cpn||b.cpn)W.feedbackContext={cpn:O};W.isFeedbackTokenUnencrypted=!!b.is_feedback_token_unencrypted;W.shouldMerge=!1;b.extra_feedback_tokens&&(W.shouldMerge=!0,W.feedbackTokens=W.feedbackTokens.concat(b.extra_feedback_tokens))};
_.Jq.Object.defineProperties(b6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jt=function(){};
_.R(jt,bH);jt.prototype.getApiPaths=function(){return az7};
jt.prototype.getExtension=function(W){return _.P(W,_.mM)};
jt.prototype.JSC$10998_buildRequest=function(W,O,b){b.feedback_tokens&&(W.feedbackTokens=b.feedback_tokens,W.shouldMerge=!0)};
_.Jq.Object.defineProperties(jt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var af=function(){};
_.R(af,bH);af.prototype.getApiPaths=function(){return az7};
af.prototype.getExtension=function(W){return _.P(W,yZO)};
af.prototype.JSC$10998_buildRequest=function(W,O){O.undoToken&&(W.feedbackTokens=[O.undoToken]);O.isUndoTokenUnencrypted&&(W.isFeedbackTokenUnencrypted=O.isUndoTokenUnencrypted)};
_.Jq.Object.defineProperties(af.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var mE=function(){};
_.R(mE,bH);mE.prototype.getApiPaths=function(){return cew};
mE.prototype.getExtension=function(W){return _.P(W,y$q)};
mE.prototype.JSC$10998_buildRequest=function(W,O){O.nextEndpoint&&_.P(O.nextEndpoint,_.t8)?W.nextEndpoint={urlEndpoint:_.P(O.nextEndpoint,_.t8)}:O.nextEndpoint&&_.P(O.nextEndpoint,_.V3)&&(W.nextEndpoint={watchEndpoint:_.P(O.nextEndpoint,_.V3)});O.setRacy&&(W.setRacy=O.setRacy);O.setControvercy&&(W.setControvercy=O.setControvercy)};var Yp=function(W){this.JSC$15669_storeWithEntities=W};
_.R(Yp,bH);Yp.prototype.getApiPaths=function(){return tn1};
Yp.prototype.getExtension=function(W){return _.P(W,p1z)};
Yp.prototype.JSC$10998_buildRequest=function(W,O){O.flowId&&(W.flowId=O.flowId);O.targetId&&(W.targetId=O.targetId);O.continuation&&(W.continuation=O.continuation);var b=O.flowStateEntityKey;if(O.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&b&&this.JSC$15669_storeWithEntities){var T;if(O=(T=this.JSC$15669_storeWithEntities.getState())==null?void 0:T.entities)if(T=_.dm(b).entityType,T=_.IJ(O,T,b))W.flowState=T,W.flowStateEntityKey=b}};
_.Jq.Object.defineProperties(Yp.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
Yp[NV]=[hs];var Ky1=function(){};
_.R(Ky1,bH);_.d=Ky1.prototype;_.d.getApiPaths=function(){return Izw};
_.d.JSC$11005_getStoreKey=function(){return _.$J("guide")};
_.d.getRequestConfig=function(){var W=this.JSC$11005_getStoreKey(),O;W&&(O={storeStrategy:{storeKey:W}});return O};
_.d.isNavigationCommand=function(){return!0};
_.d.getExtension=function(W){return _.P(W,_.mM)};
_.d.JSC$10998_buildRequest=function(W){W.fetchLiveState=!0};var Es=function(){};
_.R(Es,bH);Es.prototype.getApiPaths=function(){return RtU};
Es.prototype.getExtension=function(W){return _.P(W,awn)};
Es.prototype.JSC$10998_buildRequest=function(){};var wf=function(){};
_.R(wf,bH);wf.prototype.getApiPaths=function(){return Krw};
wf.prototype.getExtension=function(W){return _.P(W,mu7)};
wf.prototype.JSC$10998_buildRequest=function(){};var AK=function(){};
_.R(AK,bH);AK.prototype.getApiPaths=function(){return Ug$};
AK.prototype.getExtension=function(W){return _.P(W,_.Cd)};
AK.prototype.JSC$10998_buildRequest=function(W,O){O.token&&(W.continuation=O.token);var b,T;W==null||(b=W.context)==null||(T=b.user)==null||delete T.onBehalfOfUser};
AK.prototype.getRequestConfig=function(W){var O={},b;if(((b=this.getExtension(W))==null?void 0:b.sessionIndex)!==void 0){var T;O={authStrategy:{sessionIndex:(T=this.getExtension(W))==null?void 0:T.sessionIndex}}}return O};var XA=function(){};
_.R(XA,bH);XA.prototype.JSC$10998_getRequest=function(W){var O=this.getExtension(W),b=W="";if(O==null?0:O.popup)W="true";if(O==null?0:O.disableSignout)b="true";O={};return{input:"/getAccountSwitcherEndpoint",requestShell:tC("/getAccountSwitcherEndpoint","GET",(O["X-YouTube-Delegation-Context"]=_.Cv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),O["X-YouTube-Account-Switcher-Popup"]=W,O["X-YouTube-Account-Switcher-Disable-Signout"]=b,O)),innerTubeRequest:{}}};
XA.prototype.getApiPaths=function(){return[]};
XA.prototype.getExtension=function(W){return _.P(W,_.h7T)};
XA.prototype.JSC$10998_buildRequest=function(){};var Us=function(){};
_.R(Us,bH);Us.prototype.JSC$10998_getRequest=function(W){var O="/cross_account_channel_transfer";(W=this.getExtension(W))&&(O=wB1(O,{target_session:W.targetSessionIndex,source_rapt:W.sourceRapt,rapt:W.targetRapt}));return{input:O,requestShell:tC(O,"GET"),innerTubeRequest:{}}};
Us.prototype.getApiPaths=function(){return[]};
Us.prototype.getExtension=function(W){return _.P(W,LN7)};
Us.prototype.JSC$10998_buildRequest=function(){};var l6=function(){};
_.R(l6,bH);l6.prototype.getApiPaths=function(){return $g7};
l6.prototype.isNavigationCommand=function(){return!0};
l6.prototype.getExtension=function(W){return _.P(W,_.mM)};
l6.prototype.JSC$10998_buildRequest=function(W){var O=_.Xt().get("gsml","");O&&(W.safetyModeLockerObfuscatedGaiaId=O);W.userInterfaceTheme=_.K_(!0);_.vh()?W.deviceTheme="DEVICE_THEME_SELECTED":_.mlP()?W.deviceTheme="DEVICE_THEME_SUPPORTED":W.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var et=function(){};
_.R(et,bH);et.prototype.getApiPaths=function(){return Ug$};
et.prototype.getExtension=function(W){return _.P(W,dcH)};
et.prototype.JSC$10998_buildRequest=function(W,O){if(O&&O.requestType&&(W.requestType=O.requestType,O.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||O.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var b=O.nextUrl;b&&(_.XBe(b)||yP(b))&&(W.nextNavendpoint={urlEndpoint:{url:b}})}O&&O.channelSwitcherQuery&&(W.channelSwitcherQuery=O.channelSwitcherQuery);O&&O.triggerChannelCreation&&(W.triggerChannelCreation=O.triggerChannelCreation);var T;if(O==null?0:(T=O.contentOwnerConfig)==
null?0:T.externalContentOwnerId)W.contentOwnerConfig=O.contentOwnerConfig;W.callCircumstance=O&&O.requestType&&O.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var L,h;O=W==null?void 0:(L=W.context)==null?void 0:(h=L.user)==null?void 0:h.onBehalfOfUser;if(O!==void 0){W.obfuscatedSelectedGaiaId=O;var Z,a;W==null||(Z=W.context)==null||(a=Z.user)==null||delete a.onBehalfOfUser}var m,w;if(L=W==null?void 0:(m=W.context)==null?void 0:(w=m.user)==null?
void 0:w.serializedDelegationContext)W.selectedSerializedDelegationContext=L};var Pa=function(){};
_.R(Pa,bH);Pa.prototype.getApiPaths=function(){return jLq};
Pa.prototype.getExtension=function(W){return _.P(W,iDn)};
Pa.prototype.JSC$10998_buildRequest=function(W,O){O.profileOwnerExternalChannelId&&(W.profileOwnerExternalChannelId=O.profileOwnerExternalChannelId);O.profileCardContext&&(W.profileCardContext=O.profileCardContext)};var pC=function(){};
_.R(pC,bH);pC.prototype.getApiPaths=function(){return et$};
pC.prototype.getExtension=function(W){return _.P(W,yE$)};
pC.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var Rf=function(){};
_.R(Rf,bH);Rf.prototype.getApiPaths=function(){return kn1};
Rf.prototype.getExtension=function(W){return _.P(W,_.mVn)};
Rf.prototype.JSC$10998_buildRequest=function(W,O){if(O=O.createBroadcastRequest)W.useMasks=O.useMasks,W.broadcastType=O.broadcastType,W.broadcastSource=O.broadcastSource,W.broadcastMetadata=O.broadcastMetadata,W.broadcastMetadataMask=O.broadcastMetadataMask,W.videoMetadata=O.videoMetadata,W.videoMetadataMask=O.videoMetadataMask,W.liveChatSettingsUpdate=O.liveChatSettingsUpdate,W.liveChatSettingsUpdateMask=O.liveChatSettingsUpdateMask,W.cloneVideoId=O.cloneVideoId,W.cloneWithOverrides=O.cloneWithOverrides,
W.targetEntity=O.targetEntity,W.scheduledRedirectMetadata=O.scheduledRedirectMetadata};var KC=function(){};
_.R(KC,bH);KC.prototype.getApiPaths=function(){return Dg7};
KC.prototype.getExtension=function(W){return _.P(W,aBn)};
KC.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.params&&(W.params=O.params);b.questionText&&(W.questionText=b.questionText);b.optionText&&b.optionText.length>0&&(W.optionText=b.optionText)};var va=function(){};
_.R(va,bH);va.prototype.getApiPaths=function(){return ChS};
va.prototype.getExtension=function(W){return _.P(W,ZOS)};
va.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var gf=function(){};
_.R(gf,bH);gf.prototype.getApiPaths=function(){return Jp5};
gf.prototype.getExtension=function(W){return _.P(W,LH1)};
gf.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var of=function(){};
_.R(of,bH);of.prototype.getApiPaths=function(){return FrL};
of.prototype.getExtension=function(W){return _.P(W,dnn)};
of.prototype.JSC$10998_buildRequest=function(W,O,b){O.params&&(W.params=O.params);O.continuation&&(W.continuation=O.continuation);b.currentPlayerState&&b.currentPlayerState.playerOffsetMs&&(W.currentPlayerState={playerOffsetMs:b.currentPlayerState.playerOffsetMs.toString()})};var Qx=function(){};
_.R(Qx,bH);Qx.prototype.getApiPaths=function(){return ypw};
Qx.prototype.getExtension=function(W){return _.P(W,T9v)};
Qx.prototype.JSC$10998_buildRequest=function(W,O,b){O.params&&(W.params=O.params);b.continuation&&(W.continuation=b.continuation);"hidden"in b&&(W.webClientInfo={isDocumentHidden:b.hidden});b.isInvalidationTimeoutRequest&&(W.isInvalidationTimeoutRequest=b.isInvalidationTimeoutRequest);b.invalidationPayload&&(O=jKS(_.w1(W3(b.invalidationPayload))),W.invalidationPayloadLastPublishAtUsec=o6(O,2));b.reloadActionPanel&&(W.reloadActionPanel=b.reloadActionPanel);b.fullReload&&(W.fullReload=b.fullReload);
b.currentPlayerState&&(W.currentPlayerState=b.currentPlayerState)};var kp=function(){};
_.R(kp,bH);kp.prototype.getApiPaths=function(){return E_5};
kp.prototype.getExtension=function(W){return _.P(W,IBz)};
kp.prototype.JSC$10998_buildRequest=function(W,O){W.params=O.params};var ss=function(){};
_.R(ss,bH);ss.prototype.getApiPaths=function(){return cpH};
ss.prototype.getExtension=function(W){return _.P(W,Egw)};
ss.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var Ba=function(){};
_.R(Ba,bH);Ba.prototype.getApiPaths=function(){return Wg$};
Ba.prototype.getExtension=function(W){return _.P(W,wTf)};
Ba.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var rf=function(){};
_.R(rf,bH);rf.prototype.getApiPaths=function(){return w0w};
rf.prototype.getExtension=function(W){return _.P(W,mnU)};
rf.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var DW=function(){};
_.R(DW,bH);DW.prototype.getApiPaths=function(){return X0H};
DW.prototype.getExtension=function(W){return _.P(W,YRv)};
DW.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var xp=function(){};
_.R(xp,bH);xp.prototype.getApiPaths=function(){return g_U};
xp.prototype.getExtension=function(W){return _.P(W,ic1)};
xp.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var zr=function(){};
_.R(zr,bH);zr.prototype.getApiPaths=function(){return Dhf};
zr.prototype.getExtension=function(W){return _.P(W,_.EHU)};
zr.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.params&&(W.params=O.params);b.client_message_id&&(W.clientMessageId=b.client_message_id);b.recaptcha_token&&(W.recaptchaToken=b.recaptcha_token);b.rich_message&&b.rich_message.text_segments?(O=b.rich_message.text_segments.map(function(T){var L={};T.text&&(L.text=T.text);T.emoji_id&&(L.emojiId=T.emoji_id);return L}),W.richMessage={textSegments:O}):b.message&&(W.message=b.message);
b.currentPlayerState&&(W.currentPlayerState=b.currentPlayerState)};var CC=function(){};
_.R(CC,bH);CC.prototype.getApiPaths=function(){return xhw};
CC.prototype.getExtension=function(W){return _.P(W,wxN)};
CC.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var qM=function(){};
_.R(qM,bH);qM.prototype.getApiPaths=function(){return n_q};
qM.prototype.getExtension=function(W){return _.P(W,XxH)};
qM.prototype.JSC$10998_buildRequest=function(W,O,b){O.isUserInitiated&&(W.isUserInitiated=O.isUserInitiated);O.initiationSource&&(W.initiationSource=O.initiationSource);b.locationInfo&&(W.context.client.locationInfo=b.locationInfo)};var nC=function(){};
_.R(nC,bH);nC.prototype.getApiPaths=function(){return AeH};
nC.prototype.getExtension=function(W){return _.P(W,Y$7)};
nC.prototype.JSC$10998_buildRequest=function(W,O,b){O.metadataUpdateRequest&&(O=O.metadataUpdateRequest,W.encryptedVideoId=O.encryptedVideoId,O.liveChat&&(O=O.liveChat,W.liveChat||(W.liveChat={}),O.performAsExternalChannelId&&(W.liveChat.performAsExternalChannelId=O.performAsExternalChannelId),O.source&&(W.liveChat.source=O.source)));var T;if(b==null?0:(T=b.liveChat)==null?0:T.liveChatSettings)W.liveChat||(W.liveChat={}),b=b.liveChat.liveChatSettings,W.liveChat.newLiveChatSettings=b,W.liveChat.newLiveChatSettingsMask||
(W.liveChat.newLiveChatSettingsMask={}),b.emojiReactionSet&&(W.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var fC=function(){};
_.R(fC,bH);fC.prototype.getApiPaths=function(){return uXw};
fC.prototype.getExtension=function(W){return _.P(W,_.g2q)};
fC.prototype.JSC$10998_buildRequest=function(W,O,b){b.continuation?W.continuation=b.continuation:O.videoId&&(W.videoId=O.videoId);b.clientParams&&(W.clientParams=b.clientParams)};var Gr=function(){};
_.R(Gr,bH);Gr.prototype.getApiPaths=function(){return Om$};
Gr.prototype.getExtension=function(W){return _.P(W,_.g5)};
Gr.prototype.JSC$10998_buildRequest=function(W,O){W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";W.fetchCommentsParams={};O.videoId&&(W.fetchCommentsParams.encryptedVideoId=O.videoId);O.postId&&(W.fetchCommentsParams.postId=O.postId);O.externalChannelId&&(W.fetchCommentsParams.externalChannelId=O.externalChannelId);O.linkedCommentId&&(W.fetchCommentsParams.linkedCommentId=O.linkedCommentId);(0,_.PQ.isEmpty)(W.fetchCommentsParams)&&delete W.fetchCommentsParams};var Ha=function(){};
_.R(Ha,bH);Ha.prototype.getApiPaths=function(){return yI};
Ha.prototype.JSC$10998_buildRequest=function(W){W.browseId="FEnotifications_inbox"};
Ha.prototype.getExtension=function(W){return _.P(W,_.mM)};var tK=function(){};
_.R(tK,bH);tK.prototype.getApiPaths=function(){return Om$};
tK.prototype.JSC$10998_buildRequest=function(W,O){O.signal==="GET_NOTIFICATIONS_MENU"&&(W.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");O.ctoken&&(W.ctoken=O.ctoken)};
var vkv=function(){};
_.R(vkv,tK);vkv.prototype.getExtension=function(W){return _.P(W,_.mM)};
var gkL=function(){};
_.R(gkL,tK);gkL.prototype.getExtension=function(W){return _.P(W,J$5)};var $p=function(){};
_.R($p,bH);$p.prototype.getApiPaths=function(){return hIf};
$p.prototype.getExtension=function(W){return _.P(W,_.mM)};
$p.prototype.JSC$10998_buildRequest=function(){};var Vx=function(){};
_.R(Vx,bH);Vx.prototype.getApiPaths=function(){return Uhq};
Vx.prototype.getExtension=function(W){return _.P(W,PsL)||void 0};
Vx.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params);O.secondaryParams&&(W.secondaryParams=O.secondaryParams)};var NM=function(){};
_.R(NM,bH);NM.prototype.getApiPaths=function(){return lzw};
NM.prototype.getExtension=function(W){return _.P(W,Wc1)};
NM.prototype.JSC$10998_buildRequest=function(W,O){O.undo&&(W.undo=O.undo);O.serializedOptOut&&(W.serializedOptOut=O.serializedOptOut);O.serializedRecordInteractionsRequest&&(W.serializedRecordInteractionsRequest=O.serializedRecordInteractionsRequest)};var MM=function(){};
_.R(MM,bH);MM.prototype.getApiPaths=function(){return p0w};
MM.prototype.getExtension=function(W){return _.P(W,Ocw)};
MM.prototype.JSC$10998_buildRequest=function(W,O){O.serializedInteractionsRequest&&(W.serializedRecordNotificationInteractionsRequest=O.serializedInteractionsRequest)};var u6=function(){};
_.R(u6,bH);u6.prototype.getApiPaths=function(){return KdT};
u6.prototype.getExtension=function(W){return _.P(W,wu1)};
u6.prototype.JSC$10998_buildRequest=function(W,O,b){O=O===void 0?{}:O;b=b===void 0?{}:b;O.videoId?W.videoId=O.videoId:O.playlistId&&(W.playlistId=O.playlistId);var T,L=(T=O.offlineWebClientEligibility)!=null?T:b.offlineWebClientEligibility;L&&(W.offlineWebClientEligibility=L);var h;if(T=(h=O.preferredFormatType)!=null?h:b.preferredFormatType)W.preferredFormatType=T;var Z;if(h=(Z=O.lastOfflineQualitySettingsSavedMs)!=null?Z:b.lastOfflineQualitySettingsSavedMs)W.lastOfflineQualitySettingsSavedMs=h;
O.params&&(W.params=O.params)};var JK=function(){};
_.R(JK,bH);JK.prototype.getApiPaths=function(){return $V};
JK.prototype.getExtension=function(W){return _.P(W,_.Cd)};
JK.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.token&&(W.continuation=O.token);b.formData&&(W.formData=b.formData)};var ca=function(){};
_.R(ca,bH);ca.prototype.getApiPaths=function(){return $V};
ca.prototype.getExtension=function(W){return _.P(W,hQf)};
ca.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;W.continuation=b.continuation};var FA=function(){};
_.R(FA,bH);FA.prototype.getApiPaths=function(){return $V};
FA.prototype.getExtension=function(W){return _.P(W,_.od)};
FA.prototype.JSC$10998_buildRequest=function(W,O){var b,T=O.panelIdentifier||((b=O.identifier)==null?void 0:b.tag);T&&(W.panelId=T);var L;if((L=O.globalConfiguration)==null?0:L.params){var h;W.params=(h=O.globalConfiguration)==null?void 0:h.params}};
_.Jq.Object.defineProperties(FA.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yx=function(){};
_.R(yx,bH);yx.prototype.getApiPaths=function(){return $V};
yx.prototype.getExtension=function(W){return _.P(W,$uU)};
yx.prototype.JSC$10998_buildRequest=function(W,O){O.panelLoadingStrategy&&Xnq(W,O.panelLoadingStrategy)};var W8=function(){};
_.R(W8,bH);W8.prototype.getApiPaths=function(){return $V};
W8.prototype.getExtension=function(W){return _.P(W,aRn)};
W8.prototype.JSC$10998_buildRequest=function(W,O){O.loadingStrategy&&Xnq(W,O.loadingStrategy)};var O7=function(){};
_.R(O7,bH);O7.prototype.getApiPaths=function(){return $V};
O7.prototype.getExtension=function(W){return _.P(W,_.Kbe)};
O7.prototype.JSC$10998_buildRequest=function(W,O){O.panelLoadingStrategy&&Xnq(W,O.panelLoadingStrategy)};var ig=function(){};
_.R(ig,bH);ig.prototype.getApiPaths=function(){return $V};
ig.prototype.getExtension=function(W){return _.P(W,m2z)};
ig.prototype.JSC$10998_buildRequest=function(W,O){var b,T=(b=O.contentSourcePanelIdentifier)==null?void 0:b.tag;T&&(W.panelId=T);var L;if((L=O.globalConfiguration)==null?0:L.params){var h;W.params=(h=O.globalConfiguration)==null?void 0:h.params}};var bg=function(){};
_.R(bg,bH);bg.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
bg.prototype.getExtension=function(W){return _.P(W,YY1)};
bg.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var jA=function(){};
_.R(jA,bH);jA.prototype.getApiPaths=function(){return Mu7};
jA.prototype.getExtension=function(W){return _.P(W,ARL)};
jA.prototype.JSC$10998_buildRequest=function(W,O){O.externalChannelId&&(W.externalChannelId=O.externalChannelId);O.superChatAction&&(W.superChatAction=O.superChatAction);O.superStickersAction&&(W.superStickersAction=O.superStickersAction)};var TQ=function(){};
_.R(TQ,bH);TQ.prototype.getApiPaths=function(){return Vnz};
TQ.prototype.getExtension=function(W){return _.P(W,Iwf)||_.P(W,Xuh)};
TQ.prototype.JSC$10998_buildRequest=function(W,O){O.videoIds?W.videoIds=O.videoIds:O.videoId&&(W.videoIds=[O.videoId]);O.playlistId&&(W.playlistId=O.playlistId);O.params&&(W.params=O.params);W.excludeWatchLater=!1};var LL=function(){};
_.R(LL,bH);LL.prototype.getApiPaths=function(){return xgN};
LL.prototype.getExtension=function(W){return _.P(W,_.Dm)};
LL.prototype.JSC$10998_buildRequest=function(W,O,b){b.create_playlist_title?W.title=b.create_playlist_title:O.title&&(W.title=O.title);if(b.create_playlist_privacy_status&&typeof b.create_playlist_privacy_status==="number"){a:{var T=b.create_playlist_privacy_status;if(T!==0){if(T===1){T="PUBLIC";break a}if(T===2){T="UNLISTED";break a}}T="PRIVATE"}W.privacyStatus=T}else O.privacyStatus&&(W.privacyStatus=O.privacyStatus);b.create_playlist_description&&(W.description=b.create_playlist_description);O.videoIds&&
(W.videoIds=O.videoIds);O.params&&(W.params=O.params);O.sourcePlaylistId&&(W.sourcePlaylistId=O.sourcePlaylistId)};var ds=function(){};
_.R(ds,bH);ds.prototype.getApiPaths=function(){return qLv};
ds.prototype.getExtension=function(W){return _.P(W,lwN)};
ds.prototype.JSC$10998_buildRequest=function(W,O){W.playlistId=O.playlistId};var hl=function(){};
_.R(hl,bH);hl.prototype.getApiPaths=function(){return im1};
hl.prototype.getExtension=function(W){return _.P(W,MYL)};
hl.prototype.JSC$10998_buildRequest=function(W,O){O.playlistId&&(W.playlistId=O.playlistId);O.params&&(W.params=O.params)};var SA=function(){};
_.R(SA,bH);SA.prototype.getApiPaths=function(){return PHq};
SA.prototype.getExtension=function(W){return _.P(W,_.oP)||void 0};
SA.prototype.JSC$10998_buildRequest=function(W,O){O.actions&&(W.actions=O.actions);O.params&&(W.params=O.params);O.playlistId&&(W.playlistId=O.playlistId)};var Zo=function(){};
_.R(Zo,bH);_.d=Zo.prototype;_.d.getApiPaths=function(){return RIL};
_.d.getExtension=function(W){return _.P(W,_.l8)};
_.d.JSC$10998_buildRequest=function(W,O){O.videoId&&(W.playerRequest={videoId:O.videoId},O.playerParams&&(W.playerRequest.params=O.playerParams),O.racyCheckOk&&(W.playerRequest.racyCheckOk=!!O.racyCheckOk),O.contentCheckOk&&(W.playerRequest.contentCheckOk=!!O.contentCheckOk));O.params&&(W.params=O.params);O.inputType&&(W.inputType=O.inputType);W.disablePlayerResponse=!0};
_.d.getRequestConfig=function(W){var O;(W=this.JSC$11005_getStoreKey(W))&&(O={storeStrategy:{storeKey:W}});_.e("web_log_reels_ticks")&&(O=O||{},O.requestTick="r_wrs",O.responseTick="r_wrr");return O};
_.d.JSC$11005_getStoreKey=function(W){W=this.getExtension(W);if(_.e("shorts_controller_retrieve_seedless_sequence_v2")){if((W==null?void 0:W.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.$J("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.e("web_prefetch_riw_for_next_video")||_.e("web_shorts_prefetch_service_enabled"))&&W!=null&&W.videoId){var O={videoId:W.videoId};W.params&&(O.params=W.params);return _.$J("reel_item_watch",O)}};var I0=function(){};
_.R(I0,bH);_.d=I0.prototype;_.d.getApiPaths=function(){return Kgf};
_.d.getExtension=function(W){return _.P(W,_.l8)};
_.d.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;W.sequenceParams=O.sequenceParams;var T;((T=b)==null?0:T.contentPlaybackContext)&&_.e("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
_.d.JSC$11005_getStoreKey=function(W){if(_.e("shorts_controller_retrieve_seedless_sequence_v2")&&(W=this.getExtension(W),W==null?0:W.sequenceParams))return _.$J("reel_watch_sequence",{sequenceParams:W.sequenceParams})};
_.d.getRequestConfig=function(W){W=this.JSC$11005_getStoreKey(W);var O;W&&(O={storeStrategy:{storeKey:W}});_.e("reel_watch_sequence_request_log_ticks")&&(O=O||{},O.requestTick="r_wsrs",O.responseTick="r_wsrr",O.processorTick="r_wsrp");return O};
var a0=function(){};
_.R(a0,bH);a0.prototype.getApiPaths=function(){return Kgf};
a0.prototype.getExtension=function(W){return _.P(W,_.Cd)};
a0.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.token&&(W.continuation=O.token);var T;((T=b)==null?0:T.contentPlaybackContext)&&_.e("web_shorts_prefetch_service_enabled")&&(W.playbackContext={contentPlaybackContext:b.contentPlaybackContext})};
a0.prototype.getRequestConfig=function(W){W=this.JSC$11005_getStoreKey(W);var O;W&&(O={storeStrategy:{storeKey:W}});_.e("reel_watch_sequence_request_log_ticks")&&(O=O||{},O.requestTick="r_wsrs",O.responseTick="r_wsrr",O.processorTick="r_wsrp");return O};var mb=function(){};
_.R(mb,bH);mb.prototype.getApiPaths=function(){return HK9};
mb.prototype.getExtension=function(W){return _.P(W,_.PQ1)};
mb.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.flagAction&&(W.action=O.flagAction);O.flagRequestType&&(W.flagRequestType=O.flagRequestType);O.additionalDetailCheckboxChecked&&(W.additionalDetailCheckboxChecked=O.additionalDetailCheckboxChecked);O.legalCheckboxChecked&&(W.legalCheckboxChecked=O.legalCheckboxChecked);O={};b.flag_issue_type!==void 0&&(O.issue=b.flag_issue_type);b.flag_affiliation!==void 0&&(O.affiliation=b.flag_affiliation);b.flag_full_name&&(O.fullName=b.flag_full_name);
Object.keys(O).length&&(W.legalReportDetails=O);if(b.flag_description||b.text)W.userComments=b.flag_description||b.text;O={};b.minutes!==void 0&&b.seconds!==void 0&&(O.minutes=b.minutes,O.seconds=b.seconds);b.vss_id&&(O.vssId=b.vss_id);Object.keys(O).length&&(W.videoReportDetails=O);O={};b.video_ids&&(O.videoIds=b.video_ids);b.impersonated_channel_url&&(O.impersonatedChannelUrl=b.impersonated_channel_url);Object.keys(O).length&&(W.channelAbuseReportDetails=O)};
_.Jq.Object.defineProperties(mb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YW=function(){};
_.R(YW,bH);YW.prototype.getApiPaths=function(){return uB9};
YW.prototype.getExtension=function(W){return _.P(W,JNf)};
YW.prototype.JSC$10998_buildRequest=function(W,O){O.blockedForKidsContent&&(W.blockedForKidsContent=O.blockedForKidsContent)};var E7=function(){};
_.R(E7,bH);E7.prototype.getApiPaths=function(){return o_U};
E7.prototype.getExtension=function(W){return _.P(W,A71)};
E7.prototype.JSC$10998_buildRequest=function(W,O,b){W.params=O.params;b.impersonated_channel_url&&(W.impersonatedChannelUrl=b.impersonated_channel_url)};var ws=function(){};
_.R(ws,bH);ws.prototype.getApiPaths=function(){return mhv};
ws.prototype.getExtension=function(W){return _.P(W,_.cNw)};
ws.prototype.JSC$10998_buildRequest=function(W,O){O.items&&(W.items=O.items);O.kidGaiaId&&(W.kidGaiaId=O.kidGaiaId)};var Al=function(){};
_.R(Al,bH);Al.prototype.getApiPaths=function(){return Nkn};
Al.prototype.getExtension=function(W){return _.P(W,_.S_N)};
Al.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params);O.targetId&&(W.targetId=O.targetId)};var U7=function(){};
_.R(U7,bH);U7.prototype.getApiPaths=function(){return BBH};
U7.prototype.getExtension=function(W){return _.P(W,c$H)};
U7.prototype.JSC$10998_buildRequest=function(W,O){O.externalVideoId&&(W.externalVideoId=O.externalVideoId);O.query&&(W.query=O.query);O.sourceTimelines&&(W.sourceTimelines=O.sourceTimelines)};var lg=function(){};
_.R(lg,bH);lg.prototype.getApiPaths=function(){return ren};
lg.prototype.getExtension=function(W){return _.P(W,_.Cd)||void 0};
lg.prototype.JSC$10998_buildRequest=function(W,O){O.token&&(W.continuation=O.token)};
_.ok$=function(){};
_.R(_.ok$,bH);_.d=_.ok$.prototype;_.d.getApiPaths=function(){return ren};
_.d.getExtension=function(W){return _.P(W,_.Ao)||void 0};
_.d.isNavigationCommand=function(){return!0};
_.d.JSC$11005_getStoreKey=function(W,O){O=O===void 0?{}:O;if(!O.disableCache&&(W=this.getExtension(W))&&W.query)return O={query:W.query},W.params&&(O.params=W.params),_.$J("search",O)};
_.d.JSC$10998_buildRequest=function(W,O,b){O.query&&(W.query=O.query);O.params&&(W.params=O.params);if(!_.e("web_forward_suggest_stats_killswitch")){var T=_.P(O,f87);T&&(W.suggestStats=T)}var L;!_.e("kevlar_searchbox_stats_killswitch")&&((L=b.tempData)==null?0:L.gs_l)&&!_.P(O,f87)&&(W.webSearchboxStatsUrl="/search?oq="+(b.tempData.oq||"")+"&gs_l="+b.tempData.gs_l);var h;if((h=b.tempData)==null?0:h.entityMid)O=W.suggestionSearchParams||{},O.entityMid=b.tempData.entityMid,W.suggestionSearchParams=O};
_.d.getRequestConfig=function(W,O){O=O===void 0?{}:O;W=this.JSC$11005_getStoreKey(W,O);var b;W&&(b={storeStrategy:{storeKey:W}});_.e("web_log_search_ticks_ks")||(b=b||{},b.requestTick="sr_s",b.responseTick="sr_r");return b};var eA=function(){};
_.R(eA,bH);eA.prototype.getApiPaths=function(){return Lgv};
eA.prototype.getExtension=function(W){return _.P(W,BcS)};
eA.prototype.JSC$10998_buildRequest=function(W,O){O.serializedGetSharingProviderDataParams&&(W.serializedGetSharingProviderDataParams=O.serializedGetSharingProviderDataParams)};var P8=function(){};
_.R(P8,bH);P8.prototype.getApiPaths=function(){return dhN};
P8.prototype.getExtension=function(W){return _.P(W,AN7)};
P8.prototype.JSC$10998_buildRequest=function(W,O){O.endpoint&&(W.endpoint=O.endpoint);O.action&&(W.action=O.action)};var pL=function(){};
_.R(pL,bH);pL.prototype.getApiPaths=function(){return nP5};
pL.prototype.getExtension=function(W){return _.P(W,eF5)};
pL.prototype.JSC$10998_buildRequest=function(W,O){W.videoId=O.videoId;O.scheduledRedirectMetadataSourceVideoId&&(W.scheduledRedirectMetadata={sourceVideoId:O.scheduledRedirectMetadataSourceVideoId})};var R0=function(){};
_.R(R0,bH);R0.prototype.getApiPaths=function(){return CHU};
R0.prototype.getExtension=function(W){return _.P(W,_.am1)};
R0.prototype.JSC$10998_buildRequest=function(W,O){W.params=O.params;W.correctionText=O.correctionText};var KL=function(){};
_.R(KL,bH);KL.prototype.getApiPaths=function(){return poP};
KL.prototype.getExtension=function(W){return _.P(W,_.FDw)};
KL.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params);W.searchQuery=O.searchQuery;W.languageCode=O.languageCode;W.kind=O.kind;W.name=O.name;W.externalVideoId=O.externalVideoId};var v8=function(){};
_.R(v8,bH);v8.prototype.getApiPaths=function(){return ye9};
v8.prototype.getExtension=function(W){return _.P(W,vV$)};
v8.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.params=O.params)};var gs=function(W){this.JSC$15944_storeWithEntities=W};
_.R(gs,bH);gs.prototype.getApiPaths=function(){return oPq};
gs.prototype.getExtension=function(W){return _.P(W,oV$)||_.P(W,k31)};
gs.prototype.JSC$10998_buildRequest=function(W,O,b){b.client_data&&(W.clientData=b.client_data);if(O.commerceActionConfig){var T=O.commerceActionConfig;O=T.actionId;T=T.commerceActionParams;O&&(W.actionId=O);T&&(W.commerceActionParams=T)}else{var L=O.actionId,h=O.commerceActionParams;b=O.entityKeys;L&&(W.actionId=L);h&&(W.commerceActionParams=h);var Z;O=(T=this.JSC$15944_storeWithEntities)==null?void 0:(Z=T.getState())==null?void 0:Z.entities;if(b&&O){T=[];Z=_.S(b);for(b=Z.next();!b.done;b=Z.next())if(L=
b.value,b=_.dm(L).entityType,L=_.IJ(O,b,L))h={},T.push((h[b]=L,h));W.entityMutationPayloads=T}}};
gs.prototype.getRequestConfig=function(W){var O,b=(O=_.P(W,oV$))==null?void 0:O.requestSequenceType;if(b&&W.clickTrackingParams&&b!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:W.clickTrackingParams,sequenceType:b}}};
gs[NV]=[hs];var o0=function(){};
_.R(o0,bH);o0.prototype.getApiPaths=function(){return WxU};
o0.prototype.getExtension=function(W){return _.P(W,_.uZw)};
o0.prototype.JSC$10998_buildRequest=function(W,O){O.feedbackData&&(W.feedbackData=O.feedbackData);O.params&&(W.itemParams=O.params)};
_.Jq.Object.defineProperties(o0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Qp=function(){};
_.R(Qp,bH);Qp.prototype.getApiPaths=function(){return O6f};
Qp.prototype.getExtension=function(W){return _.P(W,J61)};
Qp.prototype.JSC$10998_buildRequest=function(W,O,b){b.payments_payload&&(W.paymentsPayload=b.payments_payload);b.offer_params&&(W.offerParams=b.offer_params);O.transactionParams&&(W.transactionParams=O.transactionParams)};var kW=function(){};
_.R(kW,bH);kW.prototype.getApiPaths=function(){return i6U};
kW.prototype.getExtension=function(W){return _.P(W,_.c6N)};
kW.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.buybucketParams&&(W.buybucketData={params:O.buybucketParams},O.stickerParams?W.buybucketData.stickerParams=O.stickerParams:(b.rich_chat_message?W.buybucketData.richChatMessage=b.rich_chat_message:b.chat_message_text&&(W.buybucketData.chatMessageText=b.chat_message_text),b.purchase_price_micros&&(W.buybucketData.purchasePriceMicros=b.purchase_price_micros.toString())));O.donationAmountMicros&&(W.tipAmountMicros=O.donationAmountMicros,
O.tipParams&&(W.tipParams=O.tipParams));O.offerParams&&(W.offerParams=O.offerParams);O.productData&&(W.productData=O.productData);O.transactionParams&&(W.transactionParams=O.transactionParams)};var s7=function(){};
_.R(s7,bH);s7.prototype.getApiPaths=function(){return b6N};
s7.prototype.getExtension=function(W){return _.P(W,WrU)};
s7.prototype.JSC$10998_buildRequest=function(W,O){O.updateFopParams&&(W.updateFopParams=O.updateFopParams)};var B8=function(){};
_.R(B8,bH);B8.prototype.getApiPaths=function(){return jVS};
B8.prototype.getExtension=function(W){return _.P(W,_.i3)};
B8.prototype.JSC$10998_buildRequest=function(W,O){O.couponCode&&(W.couponCode=O.couponCode);O.params&&(W.itemParams=O.params)};var rs=function(){};
_.R(rs,bH);rs.prototype.getApiPaths=function(){return Twz};
rs.prototype.getExtension=function(W){return _.P(W,_.QPn)};
rs.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;O.params&&(W.params=O.params);b.ctk&&(W.clientToken=b.ctk)};var Do=function(W){this.JSC$15979_storeWithEntities=W};
_.R(Do,bH);Do.prototype.getApiPaths=function(){return Lxz};
Do.prototype.getExtension=function(W){return _.P(W,_.z3)};
Do.prototype.JSC$10998_buildRequest=function(W,O,b){b.purchase_price_micros&&(W.productData={pdgData:{purchasePriceMicros:b.purchase_price_micros.toString()}},b.rich_chat_message&&(W.productData.pdgData.richChatMessage=b.rich_chat_message),b.currency_code&&(W.productData.pdgData.currencyCode=b.currency_code));O.transactionParams&&(W.transactionParams=O.transactionParams);O.clientLocationContext&&(W.clientLocationContext=O.clientLocationContext);b.payments_payload&&(W.paymentsPayload=b.payments_payload);
b.funds_guarantee_callback_client_data&&(W.fundsGuaranteeCallbackClientData=b.funds_guarantee_callback_client_data);var T,L;b=(T=this.JSC$15979_storeWithEntities)==null?void 0:(L=T.getState())==null?void 0:L.entities;if(O.entityKeys&&b){T=[];O=_.S(O.entityKeys);for(L=O.next();!L.done;L=O.next()){var h=L.value;L=_.dm(h).entityType;if(h=_.IJ(b,L,h)){var Z={};T.push((Z[L]=h,Z))}}W.entityMutationPayloads=T}};
Do[NV]=[hs];var xW=function(){};
_.R(xW,bH);xW.prototype.getApiPaths=function(){return dlN};
xW.prototype.getExtension=function(W){return _.P(W,FUq)};
xW.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;b.backend_analytics&&(W.serializedBackendAnalyticsEvent=b.backend_analytics);O.offerParams&&(W.offerParams=O.offerParams)};var zQ=function(){};
_.R(zQ,bH);zQ.prototype.getApiPaths=function(){return jVS};
zQ.prototype.getExtension=function(W){return _.P(W,yQi)};
zQ.prototype.JSC$10998_buildRequest=function(W,O){O.params&&(W.itemParams=O.params)};var CL=function(){};
_.R(CL,bH);CL.prototype.getApiPaths=function(){return hi1};
CL.prototype.getExtension=function(W){return _.P(W,_.xNH)};
CL.prototype.JSC$10998_buildRequest=function(W,O,b){b.resume_time_ms&&(W.resumeTimeMs=b.resume_time_ms);O.pauseParams&&(W.pauseParams=O.pauseParams)};var q_=function(){};
_.R(q_,bH);q_.prototype.getApiPaths=function(){return S65};
q_.prototype.getExtension=function(W){return _.P(W,_.y6N)};
q_.prototype.JSC$10998_buildRequest=function(W,O,b){b=b===void 0?{}:b;b.c&&(W.redeemCode=b.c);b.rd&&(W.riskData=b.rd);b.ctk&&(W.clientToken=b.ctk)};var nL=function(){};
_.R(nL,bH);nL.prototype.getApiPaths=function(){return Z6q};
nL.prototype.getExtension=function(W){return _.P(W,_.zUU)};
nL.prototype.JSC$10998_buildRequest=function(W,O){O.resumeParams&&(W.resumeParams=O.resumeParams)};var fL=function(W,O){this.clientName=W;this.defaultExpirationDelayMs=O};
fL.prototype.put=function(W,O){var b=this,T;return _.I(function(L){T=Object.assign({},O.data);T.key=W;T.clientName=b.clientName;T.expireTimestampMs===void 0&&(T.expireTimestampMs=(Math.round((0,_.WO)())+b.defaultExpirationDelayMs).toString());return L.return(b.putInternal(W,T))})};
fL[NV]=[Xh,HsU];var Qhv=function(){fL.apply(this,arguments);this.JSC$16009_responseStore=new Map};
_.R(Qhv,fL);_.d=Qhv.prototype;_.d.get=function(W){var O=this;return _.I(function(b){return b.return(dT(O,W))})};
_.d.putInternal=function(W,O){var b=this,T,L,h;return _.I(function(Z){T=b.defaultExpirationDelayMs;O.expireTimestampMs&&(T=Number(O.expireTimestampMs)-Math.round((0,_.WO)()),L=_.Lu("mweb_override_response_store_expiration_ms"),L>0&&L<T&&(T=L));h=setTimeout(function(){b.remove(W)},T);
b.JSC$16009_responseStore.set(W,{entryData:O,timer:h});_.aD(Z)})};
_.d.remove=function(W){var O=this;return _.I(function(b){kqL(O,W);_.aD(b)})};
_.d.removeAll=function(){var W=this;return _.I(function(O){W.JSC$16009_responseStore.forEach(function(b){clearTimeout(b.timer)});
W.JSC$16009_responseStore.clear();_.aD(O)})};
_.d.has=function(W){return!!this.JSC$16009_responseStore.get(W)};
_.d.getKeys=function(){return this.JSC$16009_responseStore.keys()};
var dT=function(W,O){if(W=W.JSC$16009_responseStore.get(O))return new _.L1(W.entryData)},kqL=function(W,O){var b=W.JSC$16009_responseStore.get(O);
b&&(clearTimeout(b.timer),W.JSC$16009_responseStore.delete(O))};var UH8;var PzX=function(W,O,b){fL.call(this,W,O);this.token=b};
_.R(PzX,fL);_.d=PzX.prototype;_.d.get=function(W){var O=this,b,T;return _.I(function(L){return L.nextAddress==1?_.Y(L,eZE(O.token),2):L.nextAddress!=3?(b=L.yieldResult,_.Y(L,b.get("ResponseStore",[W,O.clientName]),3)):(T=L.yieldResult)?L.return(new _.L1(T)):L.return(void 0)})};
_.d.putInternal=function(W,O){var b=this,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,eZE(b.token),2);T=L.yieldResult;return _.Y(L,T.put("ResponseStore",O),0)})};
_.d.remove=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,eZE(O.token),2);b=T.yieldResult;return T.return(b.delete("ResponseStore",[W,O.clientName]))})};
_.d.removeAll=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,eZE(W.token),2);O=b.yieldResult;return _.Y(b,yLS(O,IDBKeyRange.only(W.clientName)),0)})};
_.d.has=function(){throw Error("Ui");};_.GQ=new _.MV("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var shN=function(W){var O;this.stateTagsData=(O=W.responseContext)==null?void 0:O.stateTags},B_7=function(W){var O;
return((O=W.stateTagsData)==null?void 0:O.stateTagsModified)||[]};var rkq;rkq=function(W){this.JSC$16022_responseStore=W};
_.nD=function(W,O,b){if(!_.e("state_tags_killswitch")){var T=new shN(O);if(B_7(T).length>0){var L=W.JSC$16022_responseStore.getKeys();L=_.S(L);for(var h=L.next();!h.done;h=L.next()){h=h.value;var Z=dT(W.JSC$16022_responseStore,h);if(Z){var a=_.LD(Z);a:{var m=void 0;Z=B_7(T);a=((m=(new shN(a)).stateTagsData)==null?void 0:m.relevantStateTags)||[];m=_.S(a);for(a=m.next();!a.done;a=m.next())if(a=a.value,a.stateTag!=null&&Z.includes(a.stateTag)&&a.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){Z=
!0;break a}Z=!1}Z&&kqL(W.JSC$16022_responseStore,h)}}}}var w;T=(w=O.responseContext)==null?void 0:w.maxAgeSeconds;_.e("web_prefetch_riw_for_next_video")&&!T&&O.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(T=3600);b&&T&&Number(T)>0&&(O=dt(O,T),W.JSC$16022_responseStore.put(b,new _.L1(O)))};
rkq.prototype.handleResponse=function(W,O){if(!O)throw Error("Vi");var b,T;O=(b=O.config)==null?void 0:(T=b.storeStrategy)==null?void 0:T.storeKey;_.nD(this,W,O)};
rkq[NV]=[_.TO];_.aa1=new _.MV("STORE_RESPONSE_PROCESSOR_TOKEN");var D7z=function(W){this.JSC$16025_responseStore=W};
D7z.prototype.handleResponse=function(W,O){if(O.input.match(_.JH(Kgf))){var b;if(W==null?0:(b=W.entries)==null?0:b.length)for(W=_.S(W.entries),O=W.next();!O.done;O=W.next()){b=O.value.command;var T=void 0;O=(T=_.P(b,_.l8))==null?void 0:T.unserializedPrefetchData;if(!b||!O)break;T=(new Zo).JSC$11005_getStoreKey(b);var L=_.P(O,HcH),h=void 0,Z=void 0,a=void 0,m=_.Lu("web_shorts_prefetch_service_ttl_seconds")>0?_.Lu("web_shorts_prefetch_service_ttl_seconds"):Number((a=(h=L)==null?void 0:(Z=h.responseContext)==
null?void 0:Z.maxAgeSeconds)!=null?a:3600);T&&m>0&&(L=dt(L,m),this.JSC$16025_responseStore.put(T,new _.L1(L)));b=(new he).JSC$11005_getStoreKey(b);O=_.P(O,vgv);h=L=T=void 0;Z=_.Lu("web_shorts_prefetch_service_ttl_seconds")>0?_.Lu("web_shorts_prefetch_service_ttl_seconds"):Number((h=(T=O)==null?void 0:(L=T.responseContext)==null?void 0:L.maxAgeSeconds)!=null?h:3600);b&&Z>0&&(O=dt(O,Z),this.JSC$16025_responseStore.put(b,new _.L1(O)))}}};
D7z[NV]=[_.TO];var x7H=function(W){this.innertubeTransportService=W};
x7H[NV]=[_.sP];var zM$=new _.MV("SUBMIT_API_SERVICE_TOKEN");var H8=function(){this.scheduler=_.KD()},CcU;
H8.prototype.pause=function(){throw Error("Wi");};
H8.prototype.resume=function(){throw Error("Wi");};
H8.prototype.queue=function(W){var O=this,b=_.$S(),T=_.KB(this.scheduler,function(){try{var L;if(_.ax.instance)var h=_.ax.instance;else{var Z=new _.pu("Error: Unexpected uninitialized CommandHandler.");_.Dt(Z);h=void 0}(L=h)==null||L.resolveCommand(W.command);b.resolve()}catch(a){b.reject(a)}});
b.promise.thenCatch(function(L){L instanceof _.$N&&O.scheduler.cancelJob(T)});
return b.promise};
H8.prototype.queueAll=function(W){var O=new Map;W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,O.set(b.id,this.queue(b));return O};var nk1=function(W,O){var b=this;this.taskModel=W;this.onTaskCancelledCallback=O;this.resolver=_.$S();W=W.proto.prefetchConfig;if(!W)throw Error("Xi");if(!W.prefetchAction)throw Error("Yi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(T){T instanceof _.$N&&(q41(b,b.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),b.onTaskCancelledCallback(b.taskModel.id,b.jobId),b.tick("pcc"));
throw T;});
this.timerName=this.taskModel.id;_.sO(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},fJ5=function(W){switch(W.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},q41=function(W,O){_.k0({prefetchInfo:{cancellationReason:O}},W.timerName)};
nk1.prototype.tick=function(W){_.Bg(W,void 0,this.timerName)};var $W=function(){var W=this;this.scheduler=_.KD();this.maxInflightTasks=_.Lu("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.Lu("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new e31;this.onTaskCancelled=function(O,b){b&&W.scheduler.cancelJob(b);GqL(W,O);tl(W,3)}},HJN=function(){$W.instance||($W.instance=new $W);
return $W.instance};
$W.prototype.pause=function(){this.prefetchCoordinatorState=0};
$W.prototype.resume=function(){tl(this,0)};
$W.prototype.queue=function(W){W=tj5(this,W);tl(this,1);return W};
$W.prototype.queueAll=function(W){var O=new Map;W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,O.set(b.id,tj5(this,b));tl(this,1);return O};
var tj5=function(W,O){var b=W.allPrefetchTasks.get(O.id);if(b)return b.cancellablePromise;try{var T=new nk1(O,W.onTaskCancelled)}catch(h){return _.vi(h)}b=T;b.tick("pcq");var L={prefetchInfo:{taskId:b.taskModel.id,isPrefetch:!0,fetchAction:b.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:b.taskModel.command.clickTrackingParams}};b.taskModel.csn&&(L.clientScreenNonce=b.taskModel.csn);_.k0(L,b.timerName);W.allPrefetchTasks.set(O.id,T);W.drainingHeap.insert(-fJ5(T),T);return T.cancellablePromise},
tl=function(W,O){W.prefetchCoordinatorState===O&&(W.prefetchCoordinatorState=2,$7z(W))},$7z=function(W){for(var O={};W.prefetchCoordinatorState!==0;O={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(W.inflightPrefetchTasks.size>=W.maxInflightTasks){W.prefetchCoordinatorState=3;break}O.prefetchTask$jscomp$1=W.drainingHeap.remove();if(!O.prefetchTask$jscomp$1){W.prefetchCoordinatorState=1;break}O.taskId$jscomp$3=O.prefetchTask$jscomp$1.taskModel.id;if(W.allPrefetchTasks.has(O.taskId$jscomp$3)){var b=-1;W.coordinatorTimeoutMs>0&&(b=_.KB(W.scheduler,function(T){return function(){Vp(W,T.taskId$jscomp$3,Error("Zi"))}}(O),W.coordinatorTimeoutMs));
W.inflightPrefetchTasks.set(O.taskId$jscomp$3,b);if(!W.JSC$16043_commandHandler){if(!_.ax.instance){Vp(W,O.taskId$jscomp$3,Error("$i"));continue}W.JSC$16043_commandHandler=_.ax.instance}a:switch(O.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":b=1;break a;default:b=0}O.prefetchTask$jscomp$1.jobId=W.scheduler.addJob(function(T){return function(){T.prefetchTask$jscomp$1.tick("pcr");try{W.JSC$16043_commandHandler.resolveCommand(T.prefetchTask$jscomp$1.taskModel.command)||
Vp(W,T.taskId$jscomp$3,Error("aj"))}catch(L){Vp(W,T.taskId$jscomp$3,L)}}}(O),b,0)}}},VjH=function(W,O){(O=GqL(W,O))!=null&&(O.resolver.resolve(),O.tick("pce"));
tl(W,3)},Vp=function(W,O,b){(O=GqL(W,O,b))!=null&&(O.resolver.reject(b),O.tick("pcc"),q41(O,"CANCELLATION_REASON_ERROR"),Math.random()<=_.Lu("prefetch_coordinator_error_logging_sampling_rate")&&(b=new _.pu("Prefetch Command failed.",O.taskModel.id,b.message),_.Dt(b)));
tl(W,3)},GqL=function(W,O,b){var T=W.allPrefetchTasks.get(O);
T?((b=W.inflightPrefetchTasks.get(O))&&b!==-1&&W.scheduler.cancelJob(b),W.inflightPrefetchTasks.delete(O),W.allPrefetchTasks.delete(O)):_.z5(new _.pu("Unexpected missing prefetch task when deleting task.",O,b==null?void 0:b.message));return T};var N_U=function(W,O,b,T,L){this.id=W;this.triggerOn=O;this.cancelOn=b;this.command=T;this.proto=L};
_.Jq.Object.defineProperties(N_U.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var MjN=function(){this.JSC$16048_prefetchCoordinator=HJN();CcU||(CcU=new H8);this.defaultCoordinator=CcU},u3f;
MjN.getInstance=function(){u3f||(u3f=new MjN);return u3f};
MjN.prototype.get=function(W){switch(W){case 0:return this.JSC$16048_prefetchCoordinator;default:return this.defaultCoordinator}};var N_=function(){this.coordinatorSupplier=MjN.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},FyU=function(W){var O=_.Bb()||void 0,b=Object.keys(Jk7)[0];
if(b){var T=W.taskIdByTriggerId.get(b);if(T!=null){W.taskIdByTriggerId.delete(b);b=[];T=_.S(T);for(var L=T.next();!L.done;L=T.next())if(L=W.tasks.get(L.value))O!=="UNDEFINED_CSN"&&(L.csn=O),b.push(L);b=K08(b);O=[];b=_.S(b);for(T=b.next();!T.done;T=b.next()){L=_.S(T.value);T=L.next().value;L=L.next().value;T=W.coordinatorSupplier.get(T).queueAll(L);T=_.S(T);var h=T.next();for(L={};!h.done;L={taskId$jscomp$9:void 0},h=T.next()){var Z=_.S(h.value);h=Z.next().value;Z=Z.next().value;L.taskId$jscomp$9=
h;h=Z;O.push(L.taskId$jscomp$9);W.queuedPromisesByTask.set(L.taskId$jscomp$9,_.UR(h,function(a){return function(){ckq(W,a.taskId$jscomp$9)}}(L)))}}}}else _.z5(new _.pu("Unexpected malformed TriggerEvent."))};
N_.prototype.trigger=function(W,O){var b=this,T=this.tasks.get(W);if(!T||this.queuedPromisesByTask.has(W))return!1;yk1(this,W,T.triggerOn);O!=="UNDEFINED_CSN"&&(T.csn=O);O=this.coordinatorSupplier.get(T.taskType).queue(T);this.queuedPromisesByTask.set(W,_.UR(O,function(){ckq(b,W)}));
return!0};
N_.prototype.cancel=function(W){var O=this.queuedPromisesByTask.get(W);if(O)O.cancel();else return ckq(this,W)};
var ckq=function(W,O){W.queuedPromisesByTask.delete(O);var b=W.tasks.get(O);if(!b)return!1;W.tasks.delete(O);yk1(W,O,b.triggerOn);(b=RZO(b.cancelOn))&&(W=W.taskIdByCancelId.get(b))&&W.delete(O);return!0},yk1=function(W,O,b){(b=Object.keys(b)[0])&&(W=W.taskIdByTriggerId.get(b))&&W.delete(O)};var Jk7={taskRegistered:{}},M_=function(){N_.instance||(N_.instance=new N_);this.JSC$16057_taskManager=N_.instance};
_.R(M_,sg);
M_.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){b=_.P(W,tdq);if((T=b)==null||!T.tasks){var h=new _.pu("RegisterTasksCommand is missing tasks.");_.Dt(h);return L.return()}h=O.JSC$16057_taskManager;for(var Z=_.S(b.tasks),a=Z.next();!a.done;a=Z.next())if(a=a.value,a=a.id&&a.triggerOn&&a.cancelOn&&a.command?new N_U(a.id,a.triggerOn,a.cancelOn,a.command,a):void 0,a){var m=Object.keys(a.triggerOn)[0];if(m){var w=RZO(a.cancelOn);w?(h.tasks.set(a.id,a),h.taskIdByTriggerId.has(m)||h.taskIdByTriggerId.set(m,
new Set),h.taskIdByTriggerId.get(m).add(a.id),h.taskIdByCancelId.has(w)||h.taskIdByCancelId.set(w,new Set),h.taskIdByCancelId.get(w).add(a.id)):_.z5(new _.pu("Unexpected malformed cancelOn field."))}else _.z5(new _.pu("Unexpected malformed triggerOn field."))}else _.z5(new _.pu("Unexpected malformed Task proto."));FyU(O.JSC$16057_taskManager);_.aD(L)})};var WiN={},Oo7=(WiN.rendered={priority:0,callback:function(){var W={};W.numCpu=navigator.hardwareConcurrency;var O={};O.ramGb=_.i1.navigator.deviceMemory;var b={staticContext:{}};O.ramGb&&vje(O.ramGb)&&(b.staticContext.memoryTotalKbytes=(O.ramGb*1048576).toString());W.numCpu&&vje(W.numCpu)&&(b.staticContext.cpuCores=W.numCpu);if(_.e("web_enable_adaptive_appl_signal")){W={};O=_.x0("rses_dpj");var T=_.x0("rsef_dpj");O&&O>0&&T&&T>0&&(O=Math.ceil(T-O),O>0&&(W.loadLatency=O));W.loadLatency&&vje(W.loadLatency)&&
(b.appL=W.loadLatency.toString())}_.BZ("applicationStarted",b)}},WiN);var ioL=new _.MV("WINDOW_ON_ERROR"),boU=new _.MV("ERROR_WEIGHT_MAPS"),jYS=new _.MV("INIT_ERROR");var Th9={},Li5=(Th9.initialized={priority:10,callback:function(W){W.injector.resolve(jYS)()}},Th9);var d4U=function(){},hOH=function(){var W=_.GT("meta_logger_impl");
W||(W=new d4U,_.c3("meta_logger_impl",W));return W},Sy1=function(){hOH().csiSubscriptionKey=I5T("meta_logging_csi_event",function(W){var O=W.timerName;
if(W=W.timelineData){_.sO(O,{startTime:W.startTime},O);W.infos&&_.k0(W.infos,O);for(var b=_.S(Object.keys(W.ticks)),T=b.next();!T.done;T=b.next())T=T.value,_.Bg(T,W.ticks[T],O)}})};
d4U.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Yr8(this.csiSubscriptionKey)};var ZoU={},I2N=(ZoU.initialized={priority:10,callback:function(){Sy1()}},ZoU);var a2$=function(W,O){this.innertubeClientName=W;this.JSC$16073_prefCookie=O};
a2$.prototype.record=function(){if(_.e("web_li_record_binary_eval_tick")){var W=_.x0("rsef_dpj");var O=_.x0("rses_dpj");W=W!==void 0&&O!==void 0?Math.round(W-O):void 0;if(W!==void 0&&W>0){O=_.Tz(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var b=this.poolSize;if(!(O.valuesSeen>=1E9)){if(O.valuesSample.length<b)O.valuesSample.push(W);else{var T=Math.floor(Math.random()*(O.valuesSeen+1));T<b&&(O.valuesSample[T]=W)}O.valuesSeen+=1}_.ju(this.storagePrefix+"-"+this.innertubeClientName,
O,2592E3);W=O.valuesSample;O=gji(W);W=W.length<5?void 0:O<400?1:O<1700?2:3;W!==void 0&&(this.JSC$16073_prefCookie.set(this.cookiePrefix+this.innertubeClientName,W),this.JSC$16073_prefCookie.save())}}else _.Lm(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16073_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16073_prefCookie.save()};
a2$[NV]=[Xh,Mb];var m4N=function(){a2$.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.R(m4N,a2$);var Yyz=new _.MV("PAGE_LOAD_TIME_TOKEN");var Emf=new _.MV("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var ug=function(W,O){this.JSC$16094_storeWithEntities=W;this.JSC$16094_commandHandler=O;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
ug.prototype.start=function(){this.JSC$16094_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
ug.prototype.observeDownloadingEntities=function(){var W=_.lw2(this.JSC$16094_storeWithEntities.getState().entities).map(function(T){return eFQ(T)});
if(W.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var O={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:ku1()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.iv(_.EO("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16094_commandHandler.resolveCommand(O)}this.downloadingEntities=W}else if(this.downloadingEntities.length){var b=UuO(this.JSC$16094_storeWithEntities.getState().entities).map(function(T){return eFQ(T)});
this.downloadingEntities.filter(function(T){return b.includes(T)}).length&&(W={openPopupAction:ZTQ()},this.JSC$16094_commandHandler.resolveCommand(W));
this.downloadingEntities=[]}};
ug[NV]=[hs,_.bq];var wz1;_.Jl=function(W,O,b,T,L,h,Z,a){this.JSC$16097_playerApiPromise=W;this.JSC$16097_commandHandler=O;this.JSC$16097_screenManager=b;this.offlineWebClientEligibility=T;this.JSC$16097_prefStorage=L;this.JSC$16097_actionRouter=h;this.entityTypeMap=Z;this.JSC$16097_persistentStorePromiseAccessor=a;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
wz1=function(){var W=_.iq().resolve(_.Jl),O;_.I(function(b){if(b.nextAddress==1)return W.downloadFailureListenerBound?b.return():_.Y(b,W.JSC$16097_playerApiPromise,2);O=b.yieldResult;O.addEventListener("onOfflineOperationFailure",function(T){if(T.failureReason&&T.entityKey&&T.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(T.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var L=_.dm(T.entityKey).entityId;L&&W.JSC$16097_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
L)}else if(_.e("kevlar_woffle")){L=W.JSC$16097_commandHandler;var h=L.resolveCommand;T=T.failureReason;var Z=_.EO("TRANSFER_FAILED",void 0,"Download failed");T==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(Z=_.EO("STORAGE_FULL",void 0,"Storage full"));h.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iv(Z),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
W.downloadFailureListenerBound=!0;_.aD(b)})};
_.Jl.prototype.deleteVideo=function(W,O){var b=this,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,b.JSC$16097_playerApiPromise,2);T=Z.yieldResult;h={offlineLoggingData:{offlineDeleteReason:(L=O)!=null?L:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.Y(Z,T.queueOfflineAction(W,b.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",h),0)})};
_.Jl.prototype.pauseVideoDownload=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.JSC$16097_playerApiPromise,2);b=T.yieldResult;b.pauseVideoDownload(W);_.aD(T)})};
_.Jl.prototype.resumeVideoDownload=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.JSC$16097_playerApiPromise,2);b=T.yieldResult;return _.Y(T,b.resumeVideoDownload(W),0)})};
_.Jl[NV]=[_.jk,_.bq,_.ef,Emf,Fh,Vg,Yhz,dB];var Ai1=new _.MV("DOWNLOAD_STATE_STORE_TOKEN");var XzU=function(W,O){this.JSC$16116_persistentStorePromiseAccessor=W;this.store=O;this.upliftCompletionResolver=new _.S4},eO1=function(){var W=_.iq().resolve(U4f),O;
_.I(function(b){switch(b.nextAddress){case 1:if(W.upliftImplPromise)return b.return(W.upliftImplPromise);_.LI(b,2);W.upliftImplPromise=l2q(W);return _.Y(b,W.upliftImplPromise,4);case 4:W.upliftCompletionResolver.resolve();_.H3(b,3);break;case 2:throw O=_.ID(b),W.upliftCompletionResolver.reject(O),O;case 3:return b.return(W.upliftImplPromise)}})},l2q=function(W){var O,b,T;
return _.I(function(L){switch(L.nextAddress){case 1:return _.qC("LOGGED_IN")?_.Y(L,W.JSC$16116_persistentStorePromiseAccessor(),2):L.return();case 2:O=L.yieldResult;if(!O)return _.Bg("vdeur"),L.return();_.Bg("vdeus");_.LI(L,3);return _.Y(L,PTf(O),5);case 5:b=L.yieldResult;W.store.dispatch(TcX(b));O.observe(function(h){LQT(W.store,h)});
_.H3(L,4);break;case 3:throw T=_.ID(L),_.Bg("vdeur"),T;case 4:_.Bg("vdeuc"),_.aD(L)}})},PTf=function(W){var O;
return _.I(function(b){if(b.nextAddress==1)return _.Y(b,DHE(W),2);O=b.yieldResult;return b.return(O.reduce(function(T,L){if(!L.data||!L.key||!L.entityType)return T;T[L.entityType]||(T[L.entityType]={});T[L.entityType][L.key]=L.data;return T},{}))})};
XzU[NV]=[dB,_.sZ];var U4f;U4f=new _.MV("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.c8=new _.MV("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var FR=function(W,O){this.JSC$16119_persistentStorePromiseAccessor=W;this.transportService=O};
FR.prototype.refresh=function(){var W=this,O,b,T,L;return _.I(function(h){if(h.nextAddress==1)return _.qC("LOGGED_IN")?_.Y(h,W.JSC$16119_persistentStorePromiseAccessor(),2):h.return();if(h.nextAddress!=3)return(O=h.yieldResult)?_.Y(h,wnT(O),3):h.return();if((b=h.yieldResult)&&!(Number(b.data.refreshTimestampMs||0)<(0,_.WO)()))return h.return();T={browseId:"SPaccount_downloads"};L=_.JH(yI);_.QR(W.transportService,T,L).then(function(Z){var a;if(O&&(Z==null?void 0:(a=Z.responseContext)==null?void 0:
a.maxAgeSeconds)!==0){var m;a=(Z==null?void 0:(m=Z.responseContext)==null?void 0:m.maxAgeSeconds)||604800;m=String(Math.floor((0,_.WO)())+a*1E3);O.put("service:downloads_settings:fallback",new _.L1({innertubeResponse:Z,refreshTimestampMs:m}))}});
_.aD(h)})};
FR[NV]=[_.GQ,_.sP];var yp=function(W,O){this.JSC$16123_playerPromise=W;this.store=O;this.started=!1};
yp.prototype.start=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return W.started?b.return():_.Y(b,W.JSC$16123_playerPromise,2);O=b.yieldResult;O.addEventListener("onOrchestrationBecameLeader",W.updateIsLeader.bind(W,!0));O.addEventListener("onOrchestrationLostLeader",W.updateIsLeader.bind(W,!1));if(O.isOrchestrationLeader)W.updateIsLeader(O.isOrchestrationLeader());else{var T=new _.pu("Function isOrchestrationLeader is undefined",{"player.isReady":O.isReady(),"player.playVideo":O.playVideo?
"defined":"undefined"});_.Dt(T);W.updateIsLeader(!1)}W.started=!0;_.aD(b)})};
yp.prototype.updateIsLeader=function(W){this.store.dispatch(_.Tc({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:W}}))};
yp[NV]=[_.jk,_.sZ];var pzU=function(W,O){this.networkStatusManager=W;this.JSC$16126_prefStoragePromise=O;this.redirectsToPreload=["https://youtube.com"]},ROS=function(){var W=_.iq().resolve(pzU),O,b,T,L,h,Z;
_.I(function(a){switch(a.nextAddress){case 1:return _.Y(a,W.JSC$16126_prefStoragePromise,2);case 2:O=a.yieldResult;if(!(b=O)){a.jumpTo(3);break}return _.Y(a,O.get("yt-redirect-prefetch-id"),4);case 4:b=a.yieldResult;case 3:if(b||!W.networkStatusManager.isNetworkAvailable())return a.return();T={cache:"reload",redirect:"manual"};L=_.S(W.redirectsToPreload);h=L.next();case 5:if(h.done){if(!O){a.jumpTo(0);break}return _.Y(a,O.set("yt-redirect-prefetch-id",!0,86400),0)}Z=h.value;_.LI(a,8);return _.Y(a,
_.i1.fetch(Z,T),10);case 10:_.H3(a,6);break;case 8:_.ID(a);case 6:h=L.next(),a.jumpTo(5)}})};var Wp=function(W){W?(this.container=W,this.containerWasInjected=!0):this.containerWasInjected=!1};
Wp.prototype.openDialog=function(W,O,b){var T=this,L;return _.I(function(h){(L=T.container)==null||L.openDialog(W,O,b);_.aD(h)})};
Wp.prototype.closeDialog=function(){var W=this,O;return _.I(function(b){(O=W.container)==null||O.closeDialog();_.aD(b)})};
Wp.prototype.isDialogOpen=function(){var W=this,O,b;return _.I(function(T){return T.return((b=(O=W.container)==null?void 0:O.isDialogOpen())!=null?b:!1)})};
Wp[NV]=[_.OT(rK1)];_.Kiq=new _.MV("POPUP_CONTROLLER_TOKEN");var vm9=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
vm9.prototype.registerPanel=function(W,O){if(W){this.panelMap.set(W,O);var b=this.pendingPanelResolvers.get(W);b&&(b.resolve(O),this.pendingPanelResolvers.delete(W))}};
vm9.prototype.getPanel=function(W){var O=this,b;return _.I(function(T){return(b=O.panelMap.get(W))?T.return(b):T.return(gm$(O,W))})};
var gm$=function(W,O){var b,T;return _.I(function(L){if(b=W.pendingPanelResolvers.get(O))return L.return(b.promise);T=new _.S4;W.pendingPanelResolvers.set(O,T);return L.return(T.promise)})},omL=function(W){vm9.call(this);
var O=this;this.popupController=W;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return O.panelMap.size}}};
_.R(omL,vm9);_.d=omL.prototype;_.d.getReloadContinuation=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.getPanel(W),2);b=T.yieldResult;return T.return(b.getReloadContinuation())})};
_.d.showPanel=function(W,O,b,T,L,h,Z){var a=this,m,w,A,X;return _.I(function(l){if(l.nextAddress==1){Z&&a.updatePanelContinuationDatas.set(W,Z);if((m=b)==null?0:(w=m.engagementPanelPopupPresentationConfig)==null?0:w.popupType){A=b.engagementPanelPopupPresentationConfig.popupType;L===void 0&&(L=document.body);var p=l.return,K=a.popupController,k=K.openPopup;a:switch(A){case "PANEL_POPUP_TYPE_DIALOG":var r="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":r="DROPDOWN";break a;default:throw Error("cj`"+
A);}return p.call(l,k.call(K,W,O,r,L))}return _.Y(l,a.getPanel(W),2)}X=l.yieldResult;(O||h)&&X.updatePanel(O,!1,T,h);X.showPanel(T);_.aD(l)})};
_.d.hidePanel=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,O.getPanel(W),2);b=T.yieldResult;b.hidePanel();O.popupController.closePopup(W);_.aD(T)})};
_.d.isVisible=function(W,O){var b=this,T;return _.I(function(L){if(L.nextAddress==1)return O&&!b.panelMap.has(W)?L.return(!1):_.Y(L,b.getPanel(W),2);T=L.yieldResult;return L.return(T.isVisible())})};
_.d.updatePanel=function(W,O,b,T,L,h){b=b===void 0?!1:b;var Z=this,a;return _.I(function(m){if(m.nextAddress==1){if(!O&&!L)return m.return();h&&Z.updatePanelContinuationDatas.set(W,h);return _.Y(m,Z.getPanel(W),2)}a=m.yieldResult;a.updatePanel(O,b,T,L);_.aD(m)})};
_.d.registerPanelContent=function(W,O){W&&this.panelContentMap.set(W,O)};
_.d.getPanelContent=function(W){return this.panelContentMap.get(W)};
_.d.getUpdatePanelContinuationData=function(W){return this.updatePanelContinuationDatas.get(W)};
omL[NV]=[_.Kiq];var OG=function(W,O){this.innertubeTransportService=W;this.JSC$16142_screenManager=O},QYL=function(W){var O;
return!((O=W.panelLoadingStrategy)==null||!O.requestTemplate)};
OG.prototype.makeRequest=function(W){var O=this,b,T;return _.I(function(L){switch(L.nextAddress){case 1:if(!QYL(O)){L.jumpTo(2);break}_.LI(L,3);return _.Y(L,_.tP(O.innertubeTransportService,W),5);case 5:return b=L.yieldResult,b?L.return(b.content):(_.Dt(Error("dj")),L.return(void 0));case 3:T=_.ID(L),_.Dt(T);case 2:return L.return(void 0)}})};
OG.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
OG.prototype.execute=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X;return _.I(function(l){if(l.nextAddress==1){b=W;T=b.data;L=b.fallbackVe;h=b.parentVe;Z=b.createScreenConfig;a=b.renderFn;m=b.command;O.panelLoadingStrategy=T;var p,K,k=((p=O.panelLoadingStrategy)==null?0:p.screenVe)?(K=O.panelLoadingStrategy)==null?void 0:K.screenVe:L;k&&_.bh(O.JSC$16142_screenManager,k,h,Z);return(w=O.getContent())?_.Y(l,a(w),2):l.jumpTo(2)}return l.nextAddress!=4?QYL(O)?_.Y(l,O.makeRequest(m),4):l.return():(X=A=l.yieldResult)?
_.Y(l,a(X),0):l.return()})};
OG[NV]=[_.sP,_.ef];var i0=function(){};
i0.prototype.getContainer=function(){return _.y3()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
i0.prototype.openSheet=function(W,O){var b=this,T,L,h,Z,a,m;return _.I(function(w){switch(w.nextAddress){case 1:return T={stack:[],error:void 0,hasError:!1},_.LI(w,2,3),L=Oo,_.Y(w,b.isSheetOpen(),5);case 5:h=w.yieldResult;iZ1(T,vXh(L));if(h&&!_.e("delay_sheet_open_killswitch")){if(O&&b.currentTarget===O)return(Z=b.getContainer())==null||Z.closeSheet(),w.return();b.pendingData={data:W,target:VMf(b,O)};return w.return()}W.viewModel&&(W={viewModel:W.viewModel});(a=b.getContainer())==null||a.openSheet(W,
O);b.currentTarget=O;case 3:_.hx(w);Lui(T);_.Zh(w,0);break;case 2:m=_.ID(w),T.error=m,T.hasError=!0,w.jumpTo(3)}})};
i0.prototype.closeSheet=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,(O=W.getContainer())==null?void 0:O.closeSheet(),2);if(b.nextAddress!=4)return W.currentTarget=void 0,!W.pendingData||_.e("delay_sheet_open_killswitch")?b.jumpTo(0):_.Y(b,W.openSheet(W.pendingData.data,W.pendingData.target),4);W.pendingData=void 0;_.aD(b)})};
i0.prototype.isSheetOpen=function(){var W=this,O,b;return _.I(function(T){return T.return((b=(O=W.getContainer())==null?void 0:O.isSheetOpen())!=null?b:!1)})};
var VMf=function(W,O){if(!_.e("web_parent_target_for_sheets"))return O;var b,T;return(T=(b=W.getContainer())==null?void 0:b.getParentTarget(O))!=null?T:O};var S6=window.documentPictureInPicture;var N$e=_.ts(["dark"]),MiP=_.ts(["system-icons"]),ubX=_.ts(["typography"]),JaX=_.ts(["lang"]),caE=_.ts(["style"]),HT2=_.ts(["dir"]),tiX=_.ts(["rounded-container"]),$HE=_.ts(["style"]),yah=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],b0=function(W){this.JSC$16154_clientRoot=W;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
b0.prototype.openWindow=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return window.documentPictureInPicture&&_.se()&&!O.currentPipWindow?_.Y(L,(b=S6?S6:null)==null?void 0:b.requestWindow(W),2):L.return(!1);if(L.nextAddress!=3){T=L.yieldResult;if(!T)return L.return(!1);T.addEventListener("pagehide",function(){kt5(O)});
T.addEventListener("resize",O.handlePipWindowResize);O.pipWindowResizeDelay=new _.yM(function(){O.currentPipWindow&&_.jx(O.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.hU(O.currentPipWindow.innerWidth,O.currentPipWindow.innerHeight)])},T);
F08(T);OaE(T);return _.Y(L,GAX(T),3)}if(!quh())return L.return(!1);O.currentPipWindow=T;O.JSC$16154_eventForwarder=Wt8(T,O.JSC$16154_clientRoot);O.pipWindowResizeDelay.start();return L.return(!0)})};
b0.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var kt5=function(W){if(W.currentPipWindow){var O,b;(O=S6?S6:null)==null||(b=O.window)==null||b.close();W.currentPipWindow.removeEventListener("resize",W.handlePipWindowResize);var T;(T=W.pipWindowResizeDelay)==null||T.dispose();W.pipWindowResizeDelay=void 0;var L;(L=W.JSC$16154_eventForwarder)==null||L.stop();W.JSC$16154_eventForwarder=void 0;O=_.S(W.onCloseCallbacks);for(b=O.next();!b.done;b=O.next())b=b.value,b();W.onCloseCallbacks=[];W.currentPipWindow=null}};
b0.prototype.getWindow=function(){return this.currentPipWindow};
var sY5=function(W,O){var b;(b=W.onCloseCallbacks)==null||b.push(O)};
b0.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.se()};
_.Jq.Object.defineProperties(b0.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
b0[NV]=[OCL];var BhU=new _.MV("PICTURE_IN_PICTURE_CONTROLLER");var ia8=function(W,O){this.lengthY=this.lengthX=0;this.lengthX=O.x-W.x;this.lengthY=O.y-W.y};var riw=function(){},JBH=function(W,O){var b;
(b=W.headerElement)==null||b.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:O}))};var D49=function(){};
D49.prototype.openPopup=function(W,O,b,T){var L=this,h;return _.I(function(Z){if(!L.container)return Z.return();h={openPopupAction:{popup:O,popupType:b,uniqueId:W}};return Z.return(L.container.handleOpenPopupAction(h,T))})};
D49.prototype.closePopup=function(W){this.container&&this.container.closePopup(W)};var x4q=function(){this.openTunnels=new Map},jfe=function(W,O,b){if(hxe(b)){var T=_.GP(b,"gclid");
b={handleEvent:function(a){O&&!O.closed&&typeof O.postMessage==="function"&&a&&a.origin&&a.source===O&&a.data&&a.data.action==="gcl_setup"&&O.postMessage(Object.assign({},{action:"gcl_transfer"},T&&{gclid:T},{gadSource:2}),a.origin)}};
for(var L=_.S(W.openTunnels),h=L.next();!h.done;h=L.next()){var Z=_.S(h.value);h=Z.next().value;Z=Z.next().value;if(h.closed)try{window.removeEventListener("message",Z),W.openTunnels.delete(h)}catch(a){_.Dt(a)}}O&&W.openTunnels.size<15&&(W.openTunnels.set(O,b),window.addEventListener("message",b))}};var zOv=function(){this.clientParams=new Map},OX$=function(W){for(var O=_.S(W.clientParams.keys()),b=O.next();!b.done;b=O.next())b=b.value,b.startsWith("yt-mini-app-share")&&W.clientParams.delete(b)};var CTv=function(W,O){_.R8.call(this);var b=this;this.shortsController=W;this.storeWithShorts=O;W=_.mr(this.storeWithShorts,_.oxO,function(T){if(T){var L,h=(L=b.shortsController.getRoot())==null?void 0:L.getPlayer(),Z;(L=(Z=b.shortsController.alternativePlayerContainerElement)==null?void 0:Z.getPlayerContainer())&&(h==null||h.appendTo(L))}else{var a;Z=(a=b.shortsController.alternativePlayerContainerElement)==null?void 0:a.getPlayerContainer().querySelector("#player");L=b.shortsController.activeIndex;
(a=(h=b.shortsController.getRoot())==null?void 0:h.querySelector('ytd-reel-video-renderer[id="'+L+'"] #player-container'))&&(Z==null||Z.appendTo(a,void 0,!0))}});
this.addOnDisposeCallback(W)};
_.R(CTv,_.R8);var jF=function(W,O,b,T,L){var h=this;this.storeWithShorts=W;this.ephemeralResponseStore=O;this.store=b;this.innertubeTransportService=T;this.innertubeTransportLoader=L;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.D3(_.ay);this.isShortsPipActive=_.D3(_.m9);this.nextReelVe=_.gd(56921);this.prevReelVe=_.gd(56922);this.backButtonVe=_.gd(22156);this.TEST_ONLY={getActiveModules:function(){return h.activeModules}}},Uoz,lHU,qyq;
jF.prototype.initOrDisposeActiveModules=function(W){W?this.activeModules.push(new CTv(this,this.storeWithShorts)):(_.cQ(this.activeModules),this.activeModules.length=0)};
jF.prototype.getRoot=function(){return this.rootElement};
jF.prototype.setActiveIndex=function(W){this.activeIndex=W};
_.mo7=function(W,O){var b,T,L,h,Z,a,m;return _.I(function(w){switch(w.nextAddress){case 1:return b=new Zo,(T=b.JSC$11005_getStoreKey(O))&&W.ephemeralResponseStore.has(T)?_.Y(w,W.ephemeralResponseStore.get(T),7):_.Y(w,qyq(W,O),4);case 4:L=w.yieldResult;if(!T){w.jumpTo(3);break}h=dt(L,3600);return _.Y(w,W.ephemeralResponseStore.put(T,new _.L1(h)),3);case 7:L=(Z=w.yieldResult)==null?void 0:_.LD(Z);case 3:return((a=L)==null?0:a.replacementEndpoint)&&(m=_.P(L.replacementEndpoint,_.l8))&&L.sequenceContinuation&&
(m.sequenceParams=L.sequenceContinuation),w.return(L)}})};
Uoz=function(W,O){O=(new I0).JSC$11005_getStoreKey(O);return!!O&&W.ephemeralResponseStore.has(O)};
lHU=function(W,O,b){var T,L,h,Z,a;_.I(function(m){if(m.nextAddress==1){T=new I0;L=T.JSC$11005_getStoreKey(O);if(!L)return m.return();if(b.reelWatchSequenceResponse)return h=dt(b.reelWatchSequenceResponse,3600),W.ephemeralResponseStore.put(L,new _.L1(h)),m.jumpTo(0);if(!W.ephemeralResponseStore.has(L))return m.jumpTo(0);a=b;return _.Y(m,W.ephemeralResponseStore.get(L),4)}a.reelWatchSequenceResponse=(Z=m.yieldResult)==null?void 0:_.LD(Z);_.aD(m)})};
qyq=function(W,O){var b=b===void 0?{}:b;var T,L,h;return _.I(function(Z){switch(Z.nextAddress){case 1:if(W.innertubeTransportService){T=W.innertubeTransportService;Z.jumpTo(2);break}if(!W.innertubeTransportLoader){_.nv(Error("fj"));Z.jumpTo(2);break}return _.Y(Z,W.innertubeTransportLoader(),4);case 4:T=Z.yieldResult;case 2:return _.Y(Z,(L=T)==null?void 0:_.tP(L,O,b),5);case 5:return h=Z.yieldResult,Z.return(h)}})};
_.Jq.Object.defineProperties(jF.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jF[NV]=[jb$,_.TO,hs,_.OT(_.sP),_.OT(y5H)];_.nmU=new _.MV("STORAGE_MANAGER_TOKEN");var YHP=new Set(["touchmove","scroll"]);var f2q=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},Gtz;
f2q.prototype.enqueue=function(W,O){O===1?this.currentPersistentToast=W:this.queue.push(W);this.openToast()};
f2q.prototype.openToast=function(){var W;(W=this.currentToast)!=null&&W.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.Hon=new _.MV("TOAST_MANAGER_TOKEN");var ta7;_.$4z=_.J1(function(W){return _.E("basic-content-view-model",{class:_.YS("ytBasicContentViewModelHost",_.Me(W.className))},_.E(_.U,{cond:function(){return W.data().headline},
then:function(O){return _.E("div",{class:"ytBasicContentViewModelHeadline"},_.E(_.uw,{text:O}))}}),_.E(_.pv,{each:function(){return W.data().paragraphs||[]},
keyBy:"INDEX"},function(O){return _.E("div",{class:"ytBasicContentViewModelParagraph"},_.E(_.U,{cond:function(){var b=O();return!!(b.header||b.customHeader||b.headline)},
then:function(){return _.E(ta7,{paragraph:O})}}),_.E(_.U,{cond:function(){return O().asset||O().text},
then:function(){return _.E("div",{class:"ytBasicContentViewModelParagraphContent"},_.E(_.U,{cond:function(){return O().asset},
then:function(b){return _.E("div",{class:"ytBasicContentViewModelParagraphAsset"},_.E(_.R4,{data:b},{contentPreviewImageViewModel:_.Fi}))}}),_.E(_.U,{cond:function(){return O().text},
then:function(b){return _.E("div",{class:"ytBasicContentViewModelParagraphText"},_.E(_.uw,{text:b}))}}))}}))}))},"ee");
ta7=_.J1(function(W){var O=W.paragraph;return _.E(_.TT,null,_.E(_.U,{cond:function(){return O().headline},
then:function(b){return _.E(_.uw,{text:b,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.E(_.R4,{data:function(){return O().header||O().customHeader}},{sectionHeaderViewModel:function(b){return _.E(_.j9,{data:b.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"fe");var NhS=_.J1(function(W){return _.E("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.E(_.U,{cond:function(){return W.expanded()},
then:function(){return _.E("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.E("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.E(_.U,{cond:function(){return W.data().expandedTitleImage},
then:function(O){return _.E("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.E(_.uj,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:O}))}}),_.E("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.E("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.E(_.uw,{text:function(){return W.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.E(_.uw,{text:function(){return W.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.E(_.uw,{text:function(){return W.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.E("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.E(_.R4,{data:function(){return W.data().infoButton}},{buttonViewModel:_.DO}),_.E(_.R4,{data:function(){return W.data().collapseButton}},{buttonViewModel:function(O){return _.E(_.DO,{data:O.data,
onClick:function(){var b;(b=W.expandedCallback)==null||b.call(W,!1)}})}})))},
else:function(){return _.E(Vaf,Object.assign({},W))}}))},"ge"),Mav=_.J1(function(W){return _.E("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.E(_.U,{cond:function(){return W.data().collapsedLabelImage},
then:function(O){return _.E("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.E(_.uj,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:O,alt:""}))}}),_.E(_.uw,{text:function(){return W.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"he"),Vaf=_.J1(function(W){var O=_.XL(function(){var b;
return void((b=W.expandedCallback)==null?void 0:b.call(W,!0))});
return _.E("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":O},_.E("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.E(_.U,{cond:function(){return W.data().collapsedImage},
then:function(b){return _.E("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.E(_.uj,{width:16,height:16,data:b,alt:""}))}}),_.E(_.U,{cond:function(){return W.data().showLeadingCollapsedLabel},
then:function(){return _.E(Mav,Object.assign({},W))}}),_.E("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.E(_.uw,{text:function(){return W.data().collapsedTitle}}))),_.E("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.E(_.U,{cond:function(){return!W.data().showLeadingCollapsedLabel},
then:function(){return _.E(Mav,Object.assign({},W))}}),_.E(_.R4,{data:function(){return W.data().infoButton}},{buttonViewModel:_.DO}),_.E(_.R4,{data:function(){return W.data().expandButton}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
onClick:function(){var T;(T=W.expandedCallback)==null||T.call(W,!0)}})}})))},"ie");var u6n=_.J1(function(W){var O=_.S(_.ln(function(){return W.data().initiallyExpanded})),b=O.next().value,T=O.next().value,L,h=(L=_.iq().resolve(_.OT(_.t4)))==null?void 0:L(),Z=function(){var a=W.data().colorData;
if(a)return h?a==null?void 0:a.darkColorPalette:a==null?void 0:a.lightColorPalette};
return _.E("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.eE({"background-color":function(){var a=Z();return(a==null?0:a.section2Color)?_.C_(a.section2Color):""}})},_.E(_.R4,{data:function(){return W.data().header}},{expandableMetadataHeaderViewModel:function(a){return _.E(NhS,{data:a.data,
expanded:function(){return!!b()},
expandedCallback:function(m){T(m)}})}}),_.E(_.U,{cond:function(){return b()},
then:function(){return _.E("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.E(_.R4,{data:function(){return W.data().expandedContent}},{horizontalShelfViewModel:function(a){return _.E(_.oF,{data:a.data,
includeMargin:!0,forceNarrowLayout:!0,palette:Z})},
videoSummaryContentViewModel:function(a){return _.E(k$w,{data:a.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(a){return _.E(_.Og,{data:a.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(a){return _.E(_.$4z,{data:a.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.E(_.R4,{data:function(){return W.data().expandedBottomButtons}},{buttonViewModel:function(a){return _.E("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.E(_.DO,{data:a.data}))}}))}}))},"je");var JiN=_.J1(function(W){var O=W.text;var b=W.marqueeSpacing;var T=W.scrollDelay;var L=W.scrollDuration;var h=W.enableMarqueeScroll;W=W.large;var Z=_.S(_.wu(!1,void 0,"kfNqfd")),a=Z.next().value,m=Z.next().value,w=_.S(_.wu(0,void 0,"bYgZbf"));Z=w.next().value;var A=w.next().value,X=_.uy();w=_.uy();var l=_.uy(),p=_.iq().resolve(_.VE);_.kb(function(){if(h()){var r=l.value.getBoundingClientRect().width,q=X.value.getBoundingClientRect().width;if(r>q){var f=(p==="ltr"?-1:1)*(r+(b?b():16));Promise.resolve().then(function(){m(!0);
A(f)})}}});
var K={},k={};return _.E("marquee-scroll",{class:_.YS("ytMarqueeScrollHost",(K.ytMarqueeScrollHostLarge=W,K)),el:X},_.E("div",{id:"marquee-scroll-inner-container",class:_.YS("ytMarqueeScrollInnerContainer",(k.ytMarqueeScrollAnimationEnabled=function(){return a()},k)),
el:w,style:_.eE({gap:b?(0,_.RF)(b):"16px","animation-duration":L?eZH(L):"16s","animation-delay":T?eZH(T):"3s","--marquee-translate":(0,_.RF)(Z)})},_.E("span",{el:l,dir:"auto"},_.E(_.uw,{text:O,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.E(_.U,{cond:a,then:function(){return _.E("span",{"aria-hidden":"true",dir:"auto"},_.E(_.uw,{text:O,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"ke");_.ci5=_.J1(function(W){var O=W.data;var b=W.overlayDensity;W=_.XL(function(){O().onTapCommand&&_.nb(O().onTapCommand);return!1});
var T=_.MF1(),L={};return _.E("reel-sound-metadata-view-model",{class:_.YS("ytReelSoundMetadataViewModelHost",(L.ytReelSoundMetadataViewModelHostLarge=function(){return(b==null?void 0:b())===1},L)),
"on:click":W,tabindex:0,role:"button","on:keydown":T},_.E("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.E(_.U,{cond:function(){return O().musicIcon},
then:function(h){return _.E(_.uj,{data:h,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.E("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.E(JiN,{text:function(){return O().soundMetadata},
enableMarqueeScroll:function(){return!!O().enableMarqueeScroll},
large:function(){return(b==null?void 0:b())===1}}))))},"le");var Fiq,yiH,Tf,bEP,T8D,iEN,h8R,dPk;Fiq=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];yiH=_.Lu("wil_icon_max_concurrent_fetches",Infinity);
Tf=function(W,O,b){var T=this;this.iconSet=W;this.appDirection=O;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.i1.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.e("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.e("wil_icon_network_first");this.renderWhenIdle=_.e("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.e("wil_icon_load_immediately");this.isPurging=!1;W=function(){T.cacheStorageAvailable&&(T.cacheStorageAsync=_.i1.caches.open("yt-icons").then(function(h){return T.cacheStorageSync=h}).catch(function(){T.cacheStorageAvailable=!1}))};
b=(b==null?void 0:b())||{};b=_.S(Object.entries(b));for(O=b.next();!O.done;O=b.next()){var L=_.S(O.value);O=L.next().value;L=L.next().value;L=A_(L);WXD(L);this.iconCache[O]=L.cloneNode(!0)}this.isPurging=OEg(this);this.isPurging instanceof Promise?this.isPurging.then(W):W()};
_.xD2=function(W,O){var b=W.resolveIcon(O);return b?W.renderingMode===1?iEN(W,b,W.renderingMode):(O=W.iconCache[b.url])?(O=O.cloneNode(!0),bEP(W,O),iEN(W,b,W.renderingMode,O)):_.jq9(W,b).then(function(T){var L=T?0:1;bEP(W,T);return iEN(W,b,L,T)}):(_.xG(new _.pu("Icon not found",{iconShape:O})),function(){})};
bEP=function(W,O){if(O){W.counter+=1;W="_yt"+W.counter;O=[O].concat(_.PG(O.getElementsByTagName("*")));O=_.S(O);for(var b=O.next();!b.done;b=O.next())if(b=b.value,b.tagName==="style"&&b.textContent)b.textContent=T8D(b.textContent,W,!0);else for(var T=_.S(b.attributes),L=T.next();!L.done;L=T.next()){L=L.value;L.name==="id"&&(L.value+=W);["mask","fill","clip-path"].includes(L.name)&&(L.value=T8D(L.value,W));if(L.name==="style"){var h=b.style;try{h.cssText=T8D(h.cssText,W,!0)}catch(A){var Z=void 0,a=
void 0,m=void 0,w=void 0;Ly({error:((Z=A)==null?void 0:(m=(a=Z).toString)==null?void 0:m.call(a))||"",el:b.outerHTML,style:!!h,cssText:(w=h)==null?void 0:w.cssText})}}L.name==="xlink:href"&&(L.value=L.value.replace(/#(.*)/,"#$1"+W))}}};
T8D=function(W,O,b){var T=/url\(["']?#(.*?)["']?\)/;(b===void 0?0:b)&&(T=/url\(["']?#(.*?)["']?\)/g);return W.replace(T,"url(#$1"+O+")")};
iEN=function(W,O,b,T){return function(L,h){var Z=Object.assign({},{iconColor:"currentcolor",iconWidth:O.size+"px",iconHeight:O.size+"px",iconDisplay:"block"},h);h=_.AV("DIV");var a=Z.iconColor,m=Z.iconFilter;Z="width: "+Z.iconWidth+"; height: "+Z.iconHeight+"; display: "+Z.iconDisplay+";";m&&(Z+=" filter: "+m+";");b===0&&(Z+=" fill: "+a+";");b===1&&(m=O.url,Z+=" -webkit-mask: url("+m+") no-repeat center / cover; mask: url("+(m+") no-repeat center / cover; background-color: ")+a);O.allowMirroring&&
W.appDirection==="rtl"&&(Z+=" transform: scale(-1, 1); transform-origin: center center;");h.setAttribute("style",Z);b===0&&T&&h.appendChild(T);L.appendChild(h)}};
_.jq9=function(W,O){var b,T,L;return _.I(function(h){b=function(Z){return oQ(Z)};
T=O.url;if(!LXg(T))throw Error("gj");L=dPk(W,T);return h.return(L.then(function(Z){return Z.clone().text()}).then(function(Z){var a=b(Z);
Z=O.size;var m=_.AV("DIV");_.Gb(m,a);a=_.Xu(m.firstElementChild!==void 0?m.firstElementChild:_.tQ9(m.firstChild,!0));Z=WXD(a,Z);W.iconCache[T]=Z.cloneNode(!0);delete W.responsePromises[T];return Z}).catch(function(){}))})};
h8R=function(W){var O,b=(O=W.requestAninmationFrameResolver)==null?void 0:O.promise;b||(W.requestAninmationFrameResolver=new _.S4,b=W.requestAninmationFrameResolver.promise,_.i1.requestAnimationFrame(function(){var T;(T=W.requestAninmationFrameResolver)==null||T.resolve();W.requestAninmationFrameResolver=null}));
return b};
dPk=function(W,O){var b,T;return _.I(function(L){if(L.nextAddress==1)return W.waitForAnimationFrame?_.Y(L,h8R(W),2):L.jumpTo(2);b=W.responsePromises[O];b||(T=function(){var h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:if(!W.cacheStorageAvailable){h=void 0;m.jumpTo(2);break}if(Z=W.cacheStorageSync){m.jumpTo(3);break}return _.Y(m,W.cacheStorageAsync,4);case 4:Z=m.yieldResult;case 3:h=Z;case 2:return a=h,W.isNetworkFirstStrategy?m.return(W.fetchAndUpdateCache(O,a).catch(W.getCacheStorageResponse.bind(W,
O,a))):m.return(W.getCacheStorageResponse(O,a).catch(W.fetchAndUpdateCache.bind(W,O,a)))}})},b=W.renderWhenIdle?new Promise(function(h,Z){_.KB(_.sF,function(){T().then(h).catch(Z)},10)}):T(),W.responsePromises[O]=b);
return L.return(b.catch(function(h){delete W.responsePromises[O];Ly({error:(h==null?0:h.toString)?h.toString():"",url:O});throw h;}))})};
Tf.prototype.fetchAndUpdateCache=function(W,O){var b=this;return _.I(function(T){return T.return(SeP(b,W).then(function(L){ZEP(b,W,L,O);return L}))})};
var SeP=function(W,O){var b;return _.I(function(T){if(W.numFetches<yiH)return W.numFetches+=1,T.return(Ii1(W,O).finally(function(){--W.numFetches;if(Object.keys(W.queuedResponseResolvers).length){var L=Object.keys(W.queuedResponseResolvers)[0],h=W.queuedResponseResolvers[L];delete W.queuedResponseResolvers[L];h.resolve(SeP(W,L))}}));
b=new _.S4;W.queuedResponseResolvers[O]=b;return T.return(b.promise)})},Ii1=function(W,O,b){b=b===void 0?2:b;
var T;return _.I(function(L){T={credentials:"same-origin",priority:"low"};return L.return(_.i1.fetch(O,T).then(function(h){return h.ok?h:Promise.reject(Error("hj`"+h.status+"`"+h.statusText))}).catch(function(h){if(b>0)return Ii1(W,O,b-1);
throw h;}))})},ZEP=function(W,O,b,T){_.I(function(L){return T?L.return(new Promise(function(h){_.KB(_.sF,function(){var Z,a;
return _.I(function(m){switch(m.nextAddress){case 1:if(!W.isNetworkFirstStrategy){Z=void 0;m.jumpTo(2);break}return _.Y(m,T.match(O).catch(function(){}),3);
case 3:Z=m.yieldResult;case 2:if(a=Z){m.jumpTo(4);break}return _.Y(m,T.put(O,b.clone()).catch(function(w){Ly({error:(w==null?0:w.toString)?w.toString():"",url:O})}),4);
case 4:h(),_.aD(m)}})},50)})):L.return()})};
Tf.prototype.getCacheStorageResponse=function(W,O){return _.I(function(b){return O?b.return(O.match(W).then(function(T){return T&&T.ok?T:Promise.reject()})):b.return(Promise.reject())})};
var WXD=function(W,O){O===void 0||W.getAttribute("viewBox")||W.setAttribute("viewBox","0 0 "+O+" "+O);W.setAttribute("focusable","false");W.setAttribute("aria-hidden","true");try{W.style.pointerEvents="none",W.style.display="inherit",W.style.width="100%",W.style.height="100%"}catch(L){var b;Ly({error:((b=L)==null?0:b.toString)?L.toString():""});try{W.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(h){var T;Ly({error:((T=h)==null?0:T.toString)?h.toString():
""})}}return W},LXg=function(W){for(var O=_.S(Fiq),b=O.next();!b.done;b=O.next())if(W.startsWith(b.value)&&W.endsWith(".svg"))return!0;
return!1};
Tf.prototype.resolveIcon=function(W){return this.iconSet.resolveIcon(W)};
var Ly=function(W){_.z5(new _.pu("Error in IconManager",W))},OEg=function(W){if(_.e("wil_icons_cache_purge_killswitch"))return!1;
try{var O=_.i1.localStorage}catch(h){return!1}if(!O||!W.cacheStorageAvailable)return!1;var b=function(h){try{var Z;(Z=O)==null||Z.setItem("yt-icons-last-purged",h.toString())}catch(m){var a;Ly({error:((a=m)==null?0:a.toString)?m.toString():""})}},T=Number(O.getItem("yt-icons-last-purged"));
if(!T)return T=new Date,T=T.setDate(T.getDate()-Math.floor(Math.random()*90+1)),b(T),!1;if(function(h,Z){h=new Date(h);Z=new Date(Z);return Z.getMonth()-h.getMonth()+12*(Z.getFullYear()-h.getFullYear())}(T,Date.now())<3)return!1;
try{return _.i1.caches.delete("yt-icons").then(function(h){h&&b(Date.now());return h}).catch(function(){return!1}).finally(function(){W.isPurging=!1})}catch(h){var L;
Ly({error:((L=h)==null?0:L.toString)?h.toString():""});return!1}};
Tf[NV]=[RE9,_.VE,_.OT(g5U)];_.d2=function(W,O){this.iconManager=W;this.iconsToFetch=O};
_.d2[NV]=[_.Ix,_.OT(v5z)];var aiR=function(){};var mP7=function(W,O,b){this.requestKey=W;this.i3C=O;this.axL=b;this.tvg=function(){return new XMLHttpRequest};
this.l7v=void 0;this.uhS=[]};
mP7.prototype.getLatestChallengeResponse=function(){return this.axL};
var Gb9=function(W,O,b){var T,L,h,Z;return _.I(function(a){if(a.nextAddress==1){_.sO("attestation_challenge_fetch");_.Bg("att_fs",void 0,"attestation_challenge_fetch");if(!W.l7v)throw new _.eo(9,"Missing fetcher");return _.Y(a,W.l7v(O,b),2)}T=a.yieldResult;h=(L=T)==null?void 0:L.bgChallenge;if(!h)throw new _.eo(15,"Missing field");W.axL=T;W.uhS.forEach(function(m){m(T)});
Z=UK1(h);_.Bg("att_fc",void 0,"attestation_challenge_fetch");FOE("attestation_challenge_fetch");return a.return(Z)})},Ihn=function(W,O){var b,T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:b=new dD(100,3E5,.25,2),T=void 0;case 2:if(!(b.currBackoffCount_<10)){a.jumpTo(4);break}_.LI(a,5);if(!(b.currBackoffCount_>0)){a.jumpTo(7);break}return _.Y(a,EnT(b.getValue()),7);case 7:return _.Y(a,Yeg(W,O),9);case 9:return L=a.yieldResult,a.return(L);case 5:h=_.ID(a);h instanceof _.eo?T=h:(Z=h instanceof Error?h.message:"Unknown",T=new _.eo(9,Z));F85(b);a.jumpTo(2);break;case 4:if(T)throw T;throw new _.eo(9,"Unknown error");}})},Yeg=function(W,
O){O=kbH(sQL(new QQ9,O),W.requestKey);
var b=new _.S4,T=W.tvg();T.open("POST",W.i3C);T.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");T.setRequestHeader("Content-Type","application/json+protobuf");T.onload=function(){if(_.ksP(T)){var L=fhN(T.responseText);b.resolve(L)}else b.reject(new _.eo(_.Sr(_.SJ(T)),T.statusText))};
T.onerror=function(){b.reject(new _.eo(_.Sr(_.SJ(T)),T.statusText))};
T.send(O.serialize());return b.promise};var w27=function(W){this.networkStatusManager=W;this.isDownloaded=AaT===void 0?function(){return!1}:AaT;
this.isReady=!1;this.bAF=ET2(this)},ET2=function(W){var O;
return _.I(function(b){if(b.nextAddress==1)return _.Y(b,Q81(),2);if(b.nextAddress!=3)return O=b.yieldResult,_.Y(b,dZS(O),3);W.mw=b.yieldResult;AZ2(W.mw).then(function(){W.isReady=!0});
return b.return(W.mw)})},AXk=function(W,O,b){W.mw?(W=W.mw.rK({sD:b,
rrQ:!0,dfe:!0}),O.serviceIntegrityDimensions={poToken:W}):_.Dt(Error("jj"))};
w27.prototype.processContext=function(W){var O=this;if(!W.input.match(_.JH(eIH)))return _.fN();var b=W.innerTubeRequest,T=b.videoId;return!T||this.isDownloaded(b)||this.networkStatusManager&&!this.mw&&!this.networkStatusManager.isNetworkAvailable()?_.fN():this.mw?this.isReady?(AXk(this,b,T),_.fN()):new nN(AZ2(this.mw).then(function(){AXk(O,b,T)})):new nN(this.bAF.then(function(L){return _.I(function(h){if(h.nextAddress==1)return _.Y(h,AZ2(L),2);
AXk(O,b,T);_.aD(h)})}))};var X2g=new _.MV("WEB_PO_CONTEXT_PROCESSOR");var UP9=function(W,O){var b=this;this.guH=0;var T;this.wpC=(T=O==null?void 0:O.wpC)!=null?T:window;this.networkStatusManagerPromise=O==null?void 0:O.networkStatusManagerPromise;var L;this.requestKey=(L=O==null?void 0:O.requestKey)!=null?L:_.dO("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var h;this.e5w=(h=O==null?void 0:O.e5w)!=null?h:function(m){return new oK(m)};
var Z;T=(Z=O==null?void 0:O.yOr)!=null?Z:function(m,w,A){return new mP7(m,w,A)};
this.bgChallenge=UK1(W.bgChallenge);this.ttlSeconds=lYO(ct(W.challenge||""));this.dF=T(this.requestKey,_.e("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.i1.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",W);wIi(this.dF);var a;this.ySP=(a=O==null?void 0:O.ySP)!=null?a:function(m){_.Rx(b.wpC.document,"visibilitychange",function(){b.wpC.document.visibilityState===
"visible"&&m()})}},e85=function(W){if(!W.qM){var O={maxAttempts:5,
w1s:W.ttlSeconds*1E3};XI2(W.wpC);W.qM=W.e5w({dF:W.dF,oP:{disable:_.e("html5_web_po_disable_remote_logging"),zv:"aGIf",ldS:KAP("html5_web_po_experiment_ids"),eSa:_.e("wpo_dis_lfdms")?0:1E3,hL:_.e("wpo_gel_strz")?function(T){var L=UTv.get(T);L||(L=new X$$(T),L=new ml(L),UTv.set(T,L));return L}:void 0},
usZ:O,vGL:W.bgChallenge,fGs:Ut8});W.guH=Date.now();zDN(W.qM,function(){W.guH=Date.now()});
rVe(W.qM,function(){return _.I(function(T){return T.return(li9(W))})});
var b=W.zya.bind(W);W.networkStatusManagerPromise&&W.ttlSeconds>0&&W.networkStatusManagerPromise.then(function(T){T.listen("publicytnetworkstatus-online",b)});
W.ySP(b)}};
UP9.prototype.zya=function(){if(Date.now()>this.guH+this.ttlSeconds*1E3){var W;(W=this.qM)==null||xIN(W)}};
var li9=function(W){if(W.whb)return W.whb;if(!W.qM)throw Error("kj");W.whb=new Bx({qM:W.qM,dF:W.dF,j1b:!0,onError:Ut8});return W.whb},ex1=function(W,O){W=new UP9(W,O);
e85(W);li9(W)};var hw=function(W,O){this.store=W;this.queue=[];this.supportsFocus=_.e("web_ephemeral_actions_focus");O==null||O.addEventListener("yt-navigate-start",this.reset.bind(this))};
hw.prototype.enqueue=function(W){var O=W.command,b=W.durationMs,T=W.elementToFocus;var L=W.label;var h=W.elementToFocus;W.command?L=_.EO("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:L,shortcut:_.EO("SHIFT_PLUS_ENTER")}):h&&this.supportsFocus&&(W=L+". "+_.EO("SHIFT_PLUS_ENTER")+" for more information.",L=_.EO("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:L,shortcut:_.EO("SHIFT_PLUS_ENTER")},W));b={announcement:L,durationMs:b!=null?b:this.supportsFocus?8E3:void 0};O?b.command=O:T&&this.supportsFocus&&(T.classList.add("ephemeral-action-focusable-element"),
b.selector=T.tagName+".ephemeral-action-focusable-element");this.queue.push(b);P1k(this)};
hw.prototype.activate=function(W){var O=_.ske(this.store.getState());if(O){if(O==null?0:O.command)_.zH(O.command),this.store.dispatch(wwn(null));(O==null?0:O.selector)&&this.supportsFocus&&(O=document.querySelector(O.selector),_.ytO(O));W.preventDefault()}};
var P1k=function(W){if(!_.ske(W.store.getState())&&W.queue.length){var O=W.queue.shift();O&&(W.previousAnnouncement===O.announcement&&(O.announcement+="\u00a0"),W.store.dispatch(wwn(O)),W.previousAnnouncement=O.announcement,W.timeoutId=setTimeout(function(){if(O.selector&&W.supportsFocus){var b;(b=document.querySelector(O.selector))==null||b.classList.remove("ephemeral-action-focusable-element")}W.store.dispatch(wwn(null));P1k(W)},O.durationMs))}};
hw.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(wwn(null));this.queue.length=0;this.timeoutId=void 0};
hw[NV]=[_.sZ,_.wB];_.SF=new _.MV("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var p22=new _.MV("AUTH_SERVICE_TOKEN");var Rxh=_.ts(["about:blank"]),pIT;var R8N=new _.MV("API_IFRAME_TOKEN"),KX9=new _.MV("FETCH_FN_TOKEN"),vT9=new _.MV("PARSE_FN_TOKEN"),gTN=new _.MV("WINDOW_REQUEST_TOKEN");var HIn;HIn=new _.MV("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.oT2=new _.MV("MISC_UI_SHARED_FLAGS_TOKEN");var QqR=function(){};
QqR.prototype.getFlag=function(W){if(W.configType!==2)throw Error("lj");return kX9(W)};
var kX9=function(W){switch(W.flagType){case "bool":return _.e(W.flagName);case "int":return _.FU(_.Lu(W.flagName));case "double":return _.Lu(W.flagName);case "string":return _.dO(W.flagName);case "int32_list":return KAP(W.flagName);case "int64_list":return KAP(W.flagName).map(function(O){return _.FU(O)});
case "string_list":return _.hL(W.flagName);default:throw Error("mj");}};var Zl=function(W,O,b){O=O===void 0?{}:O;vT.call(this,b===void 0?"uninitialized":b);this.env=W;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}];O.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=O.shouldWaitOnAsyncImmediate)};
_.R(Zl,vT);Zl.prototype.init=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return O.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(T,W(O.env),2):(W(O.env),T.jumpTo(2));if(T.nextAddress!=4)return O.jobSet?_.Y(T,O.jobSet.completedResolver.promise,4):T.jumpTo(4);b=_.BH();b.parkOrScheduleJob(function(){O.transition("rendering")},10,"ci");
_.aD(T)})};
Zl.prototype.initialRender=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return O.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(T,W(O.env),2):(W(O.env),T.jumpTo(2));if(T.nextAddress!=4)return O.jobSet?_.Y(T,O.jobSet.completedResolver.promise,4):T.jumpTo(4);b=_.BH();b.parkOrScheduleJob(function(){O.transition("rendered")},10,"cr");
_.aD(T)})};
Zl.prototype.afterRenderImmediate=function(W){var O=this,b;return _.I(function(T){if(T.nextAddress==1)return O.processPluginOptions.shouldWaitOnAsyncImmediate?_.Y(T,W(O.env),2):(W(O.env),T.jumpTo(2));if(T.nextAddress!=4)return O.jobSet?_.Y(T,O.jobSet.completedResolver.promise,4):T.jumpTo(4);b=_.BH();b.parkOrScheduleJob(function(){O.transition("after-render-deferred")},10,"carml");
_.aD(T)})};
Zl.prototype.afterRenderDeferred=function(W){var O=this;return _.I(function(b){W(O.env);_.aD(b)})};var sqB={},B8Z=(sqB.rendered={priority:0,callback:function(W){U8N(W.injector.resolve(vZ))}},sqB);var rXN=!1,rZO=0,QS1=null,BrO=null;var DPP=new _.MV("NETWORK_SLI_TOKEN");var xP7=function(W,O,b,T){this.networkSli=W;this.fetchFn=O;this.parseFn=b;this.requestFn=T};
xP7.prototype.fetch=function(W,O,b){var T=this,L,h,Z;return _.I(function(a){L=z87(T,W,O);Z=(h=T.fetchFn)!=null?h:fetch;return a.return(Z(L).then(function(m){return T.handleResponse(m,b)}).catch(function(m){_.z5(m);
if((b==null?0:b.expectJsonStrict)&&m instanceof mg&&m.errorType===1)return Promise.reject(m)}))})};
var IK$=function(W,O,b,T){var L,h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:return L=z87(W,O,b),_.LI(A,2),_.Y(A,fetch(L),4);case 4:h=A.yieldResult;_.H3(A,3);break;case 2:throw _.ID(A),new mg(2,"Failed to parse streaming response",L.url);case 3:if(!h.redirected&&!h.ok)throw(Z=W.networkSli)==null||Z.failure(),new _.pu("Streaming fetch request not ok",L.url);if(!h.body)throw new _.pu("No response body in streaming response",L.url);a=h.body.pipeThrough(new TextDecoderStream).getReader();
m=new _.WL;w={};return A.return(C19(W,a,m,cMi,w,T))}})},z87=function(W,O,b){if(W.networkSli){var T=_.mp(_.cb(O,"key"))||"/UNKNOWN_PATH";
W.networkSli.start(T)}T=b;_.e("wug_networking_gzip_request")&&(T=qre(b));var L;return new ((L=W.requestFn)!=null?L:window.Request)(O,T)},C19=function(W,O,b,T,L,h){var Z,a,m,w,A,X,l,p,K;
return _.I(function(k){if(k.nextAddress==1)return _.Y(k,O.read(),2);Z=k.yieldResult;a=Z.value;if(m=Z.done)return(w=W.networkSli)==null||w.success(),k.return(L);try{A=b.parse(a)}catch(r){throw new mg(1,"Failed to parse streaming response",a);}if(A!=null)for(X=_.S(A),l=X.next();!l.done;l=X.next())p=l.value,T(L,p),K=void 0,(K=h)==null||K(L,p);return k.return(C19(W,O,b,T,L,h))})};
xP7.prototype.handleResponse=function(W,O){var b,T=(b=this.parseFn)!=null?b:JSON.parse;b=W.text().then(function(L){if((O==null?0:O.jspbResponseCtor)&&W.ok)return b01(O.jspbResponseCtor,L);L=L.replace(")]}'","");if((O==null?0:O.expectJsonStrict)&&L)try{var h=T(L)}catch(a){throw new mg(1,"JSON parsing failed after fetch");}var Z;return(Z=h)!=null?Z:T(L)});
W.redirected||W.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),b=b.then(function(L){_.z5(new _.pu("Error: API fetch failed",W.status,W.url,L));return Object.assign({},L,{errorMetadata:{status:W.status}})}));
return b};
xP7[NV]=[_.OT(DPP),_.OT(KX9),_.OT(vT9),_.OT(gTN)];var qeZ=new _.MV("NETWORK_MANAGER_TOKEN");var nT5=[1,2,4,8,16,30],GXB=function(W){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=W.maxTimeMs;this.maxFrameCount=W.maxFrameCount===void 0?Math.ceil(60*W.maxTimeMs/1E3):W.maxFrameCount;W=_.S(nT5);for(var O=W.next();!O.done;O=W.next())this.brokenFrameSummarizers.push(new fik(O.value/60*1E3))},HE2=function(W){var O=W.frameCountInternal>=W.maxFrameCount;
return W.elapsedTimeMs>=W.maxTimeMs||O},tQg=function(W){for(var O=[],b=_.S(W.brokenFrameSummarizers),T=b.next();!T.done;T=b.next())T=T.value,T=T.brokenFrameCount!==0?{severityMs:Math.round(T.targetFrameTimeMs),
eventCount:T.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(T.averageDurationBetweenEventsMs)}:void 0,T&&O.push(T);return{summaries:O,monitoringDurationMs:Math.round(W.elapsedTimeMs)}};
_.Jq.Object.defineProperties(GXB.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 fik=function(W){this.targetFrameTimeMs=W;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Jq.Object.defineProperties(fik.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var $Pg=function(){};
$Pg.prototype.start=function(W,O){var b=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var T=new GXB({maxTimeMs:W});this.monitor=T;this.lastSummaryInternal=void 0;this.metadataToLog=O;return new Promise(function(L){var h=function(Z){if(Z===void 0)b.stop(),L(void 0);else if(b.monitor!==T)Z=Object.assign({},tQg(T),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),L(Z);else{var a=b.monitor;if(!HE2(a)){a.frameCountInternal++;if(a.prevTime===void 0)a.startTime=
Z;else for(var m=Z-a.prevTime,w=_.S(a.brokenFrameSummarizers),A=w.next();!A.done;A=w.next()){A=A.value;var X=A.currTimeMs;A.currTimeMs+=m;m>A.targetFrameTimeMs+2&&(A.brokenFrameCount++,A.timeOfFirstBrokenFrameMs===void 0&&(A.timeOfFirstBrokenFrameMs=X),A.timeOfLastBrokenFrameMs=X)}a.prevTime=Z}HE2(b.monitor)?L(b.stop()):_.sF.addJob(h,5,0)}};
_.sF.addJob(h,5,0)})};
$Pg.prototype.stop=function(W){if(!this.monitor)return this.lastSummaryInternal;var O=Object.assign({},tQg(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(O.monitoringDurationMs){W=W!=null?W:this.metadataToLog;var b={droppedFramesSummary:O,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};W&&(b[W.type]=W.data);_.BZ("manualSmoothnessMeasurement",b)}this.monitor=void 0;this.lastSummaryInternal=O;this.metadataToLog=void 0;return O};_.VQ9=new _.MV("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var N89;N89=function(W){this.JSC$16278_expiringStorage=new Ku(W)};
_.MQ5=function(W){if(_.Dtq()&&(W=_.YkX(_.eJ()+"::"+W)))return new N89(W)};
N89.prototype.set=function(W,O,b){b=b!==void 0?Date.now()+b:void 0;this.JSC$16278_expiringStorage.set(W,O,b)};
N89.prototype.get=function(W){return this.JSC$16278_expiringStorage.get(W)};
N89.prototype.remove=function(W){this.JSC$16278_expiringStorage.remove(W)};var uO7=new _.MV("SESSION_STORAGE");_.Ig=function(){};
_.Ig.getInstance=function(){var W=_.GT("ytglobal.storage_");W||(W=new _.Ig,_.c3("ytglobal.storage_",W));return W};
_.Ig.prototype.estimate=function(){var W,O,b;return _.I(function(T){W=navigator;return((O=W.storage)==null?0:O.estimate)?T.return(W.storage.estimate()):((b=W.webkitTemporaryStorage)==null?0:b.queryUsageAndQuota)?T.return(xt8()):T.return()})};
_.c3("ytglobal.storageClass_",_.Ig);var JX8=!1;var cXN=_.ts(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),FX7=_.ts(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var ZJz={"/":_.aT,"/?feature=ytca":_.aT,"/feed/downloads":_.vcX};var Yq=function(W,O,b){this.JSC$16291_upliftPromise=W;this.store=O;this.JSC$16291_persistentStorePromiseAccessor=b};
Yq.prototype.shouldPreferLocalResponse=function(W){return W.browseId==="FEdownloads"||W.browseId==="FEsmart_downloads"&&_.e("kevlar_modern_downloads_page")?!0:!1};
Yq.prototype.localInnertubeResponse=function(W){var O=this;return _.I(function(b){return W.browseId==="FEdownloads"?_.e("kevlar_modern_downloads_page")?b.return(yXR(O)):b.return(Wn5(O)):W.browseId==="FEsmart_downloads"&&_.e("kevlar_modern_downloads_page")?b.return(OH5(O)):b.return(Promise.reject(Error("oj")))})};
Yq.prototype.canProvideFallbackResponse=function(){return!0};
Yq.prototype.localFallbackInnertubeResponse=function(W){var O=this,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return _.Y(h,O.JSC$16291_persistentStorePromiseAccessor(),2);case 2:b=h.yieldResult;if(W.browseId!=="SPaccount_downloads"||!b){h.jumpTo(3);break}return _.Y(h,wnT(b),4);case 4:if(T=h.yieldResult)return h.return(_.LD(T));case 3:return W.browseId==="FEwhat_to_watch"?h.return(iHg(O)):(L=_.e("web_offline_continuation_automatic_retry")||_.e("web_offline_continuation_retry_button"))&&
W.continuation?h.return(bHg(O)):h.return(j72(O))}})};
var iHg=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$16291_upliftPromise,2);O=_.FQX(W.store.getState().entities);return O.length?b.return(T19(W,O)):b.return(j72(W))})},Wn5=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$16291_upliftPromise,2);if(T.nextAddress!=3)return O=LnZ([{offlineItemSectionRenderer:{}}]),_.Y(T,dzg(W,O),3);b=T.yieldResult;b.onResponseReceivedActions=[pF("REFRESH_DOWNLOADS")];return T.return(b)})},yXR=function(W){var O,b,T,L,h,Z,a,m,w,A,X,l,p;
return _.I(function(K){if(K.nextAddress==1)return _.Y(K,W.JSC$16291_upliftPromise,2);if(K.nextAddress!=3)return O=W.store.getState(),b=O.entities,T=_.vS(b),L=_.gm(b),h=_.oVT(O),Z=_.gVO(O),a=_.QPX(O),m=_.iN1(b),w=_.eK(T),A=_.oJ(b),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.zdQ(T,L,m,h,Z,w,A,a),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},l=_.EO("DOWNLOADS",void 0,"Downloads"),_.Y(K,hL9(W,X,l),3);p=K.yieldResult;
p.onResponseReceivedActions=[pF("REFRESH_DOWNLOADS")];return K.return(p)})},OH5=function(W){var O,b,T,L,h,Z,a,m,w;
return _.I(function(A){if(A.nextAddress==1)return _.Y(A,W.JSC$16291_upliftPromise,2);if(A.nextAddress!=3)return O=W.store.getState(),b=O.entities,T=_.vS(b),L=_.eK(T),h=_.oJ(b),Z={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.qaQ(T),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},a=_.EO("SMART_DOWNLOADS",void 0,"Smart downloads"),m=DBP(L,h),_.Y(A,hL9(W,Z,a,m),3);w=A.yieldResult;w.onResponseReceivedActions=[pF("REFRESH_DOWNLOADS")];
return A.return(w)})},j72=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1)return _.Y(T,TN(W.JSC$16291_upliftPromise,W.store),2);O=T.yieldResult;b=LnZ([a4h(O)]);return T.return(dzg(W,b))})},bHg=function(W){var O,b,T,L;
return _.I(function(h){if(h.nextAddress==1)return O={},b=W.store.getState().continuation.continuationCommand,_.ky(O,_.Cd,b),_.Y(h,TN(W.JSC$16291_upliftPromise,W.store,O,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);T=h.yieldResult;L={};_.ky(L,_.LDN,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:T}}}],targetId:"browse-feedFEwhat_to_watch"});return h.return({responseContext:{},onResponseReceivedActions:[L]})})},LnZ=function(W){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:W}}}}]}}},T19=function(W,O){var b,T;
return _.I(function(L){var h={contents:Ry(O)};b=h&&h.contents?h:{};_.e("kevlar_modern_downloads_page")&&(b=Object.assign({},_.nch(O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));T={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:b}}}]}};return L.return(dzg(W,T))})},dzg=function(W,O){var b,T;
return _.I(function(L){if(L.nextAddress==1)return _.Y(L,W.JSC$16291_persistentStorePromiseAccessor(),2);if(L.nextAddress!=3)return b=L.yieldResult,_.Y(L,dY(b),3);T=L.yieldResult;return L.return({responseContext:{},contents:O,topbar:T})})},hL9=function(W,O,b,T){var L,h;
return _.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,W.JSC$16291_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3)return L=Z.yieldResult,_.Y(Z,dY(L),3);h=Z.yieldResult;var a=Z.return;var m=T;m=m===void 0?"":m;m={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:b}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.EO("SETTINGS",void 0,"Settings"),accessibilityText:_.EO("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:WS("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:m}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:b};
return a.call(Z,{responseContext:{},contents:O,topbar:h,header:{pageHeaderRenderer:m}})})};var Sv9=function(){this.moduleRegistry={};this.fetchCount=0};
Sv9.prototype.isFetching=function(){return this.fetchCount>0};
var zN=function(W,O){W.moduleRegistry[O.toString()]={asyncId:O,isFetching:!1};return W};
Sv9.prototype.JSC$16302_loadModules=function(){for(var W=this,O=new Map,b=[],T=_.S(_.PD.apply(0,arguments)),L=T.next();!L.done;L=T.next()){L=L.value;var h=this.moduleRegistry[L];h?h.resolver?O.set(L,h.resolver):(h.resolver=new _.S4,O.set(L,h.resolver),b.push(h.asyncId),h.isFetching=!0):(h=new _.S4,O.set(L,h),h.resolve(void 0))}b.length&&(this.fetchCount+=1,_.UR(_.W0.getMultipleAsync.apply(_.W0,_.PG(b)).then(function(Z){for(var a=0;a<b.length;a++){var m=Z[a],w=W.moduleRegistry[b[a].toString()];w.isFetching=
!1;w.resolver.resolve(m)}}).catch(function(Z){for(var a=_.S(b),m=a.next();!m.done;m=a.next()){m=m.value;
var w=W.moduleRegistry[m.toString()];w.resolver=void 0;w.isFetching=!1;O.get(m.toString()).reject(Z)}}),function(){--W.fetchCount}));
return Promise.all([].concat(_.PG(O.values())).map(function(Z){return Z.promise}))};_.CD=new _.MV("MODULE_REGISTRY_TOKEN");var ZH1={},IS7=(ZH1.rendered={priority:0,callback:function(W){a:{var O=void 0;try{var b;b:{if(_.WfX()){var T=_.mph(_.eJ()+"::pom");if(T){var L=new UZ(T);break b}}L=void 0}var h=(b=L)==null?void 0:b.get("role_text");if(!h)break a;O={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:h}]}}}}}}catch(m){}O&&W.injector.resolve(_.bq).resolveCommand(O)}try{var Z=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(Z){var a=JSON.parse(Z);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
a&&W.injector.resolve(_.bq).resolveCommand(a)}}catch(m){}}},ZH1);var aSR,mz1={},YvU=(mz1.initialized={priority:10,callback:function(){aSR=pD()}},mz1.rendering={callback:function(W){var O;
return _.I(function(b){if(b.nextAddress==1)return _.Y(b,aSR,2);O=b.yieldResult;if(!O.endpoint)throw Error("qj`"+_.i1.location.href);gY(W,O);_.aD(b)})}},mz1);var E$R={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.PG(_.e("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(W){var O=W.stack;if(O.includes("chrome://")||O.includes("chrome-extension://")||W.message.includes("chrome-extension://")||O.includes("moz-extension://")||O.includes("local.adguard.org")||O.includes("auctioneer3.50million.club")||O.includes("youtubedownloader")||O.includes("youtube_home_page")||O.includes("is_youtube_video_no_longer_available")||
O.includes("switchScreenSizeHack")||O.includes("yt_main_big_banner.js")||O.includes("YouTubeCenter.js")||O.includes("/mytube.js")||O.includes("JSON.parseWrapper")||O.includes("/inj_js/common.js")||O.includes("firebug-lite")||O.includes(".repl.co/")||O.includes("linkfix")||O.includes("playAfterAd")||W.message.includes("Access is denied for this document")&&O.includes("<anonymous>")||W.fileName==="user-script"||W.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
O.includes("<anonymous>"))return!0;if(O.includes("https://www.youtube.com"))return!1;W=O.split("\n");if(!W.length)return!1;if(W.length<=3&&O.includes("s.onloadeddata"))return!0;O=0;for(var b=_.S(W),T=b.next();!T.done;T=b.next())T=T.value,(T.includes("https://")||T.includes("http://"))&&O++;return O/W.length>.95},
weight:0},{callback:function(W){return W.message==="Unknown Error"&&W.name.indexOf("NS_")===0},
weight:100},{callback:function(W){if(!_.jb)return!1;var O=W.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||W.message.includes("available to complete this operation"),b=W.stack.includes("webcomponents")&&W.message==="Object doesn't support this action";W=W.message.includes("object that does not implement interface Element");return O||b||W},
weight:0},{callback:function(W){return W.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(W){return W.message==="Operation is not supported"&&(W.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(W){return W.stack.includes("eval code (eval (code:1:1)")||W.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(W){return W.message.includes("Permission denied")&&W.stack.includes("this.domHandler")?!0:W.name.includes("TypeError")&&W.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(W){if(!W.stack)return!1;var O=W.stack.trim().split("\n");O.length&&O[0].endsWith("Error: "+W.message)&&O.shift();O.length&&O[O.length-1].includes("at window.onerror (")&&O.pop();if(!O.length)return!0;if(W.message==="Script error.")return O[0].includes("www.youtube.com")||O.length>=2&&O[0].startsWith("at new")&&O[1].startsWith("at window.onerror");if(W.message==="Unexpected token")return!0;W=_.S(O);for(O=W.next();!O.done;O=W.next())if(O=O.value,!(O.includes("<anonymous>")||
O.startsWith("load@")||O.startsWith("global code@")||O.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(W){return W.message==="Cannot read property 'experiments'"&&W.stack.includes("/s/player/")},
weight:500},{callback:function(W){return W.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(W){return W.stack.includes("/embed.js")?(W.params&&W.params&&(W.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.e("use_error_suppression"))var W=_.Cv("SUPPRESS_CLIENT_ERRORS",!1);else{if(W=_.Sb)W=/Chrome\/(\d+)/.exec(_.AX()),W=(W?parseFloat(W[1]):NaN)>=66;W=!(W||_.h$&&_.dQ(65)||_.zZ&&_.dQ(12.1)||uq&&_.dQ(79))}return W},
weight:500}]};var wN7={},A98=(wN7.initialized={priority:10,callback:function(W){W.injector.addProvider({provide:OCL,useValue:W.root});W.injector.addProvider({provide:ioL,useValue:ZbO});W.injector.addProvider({provide:boU,useValue:E$R});var O={};W.injector.addProvider((O.provide=jYS,O.useFactory=function(b,T){return function(){kA8(b,T)}},O[NV]=[ioL,
boU],O));W.injector.addProvider({provide:IC,useClass:IC})}},wN7);var XNg={},Uzk=(XNg.initialized={priority:3,callback:function(){var W;if(W=L1X()){W=W.replace("/",".");var O=_.Xt();O.set("tz",W);O.save();W=!0}else W=!1;W||(W=_.Xt(),W.set("utco",-Math.floor((new Date).getTimezoneOffset())),W.save())}},XNg);var lSg={},eLD=(lSg.initialized={priority:10,callback:function(W){W.injector.resolve(IC).start();W=_.Hh();var O=_.qC("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.qC("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.qC("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.qC("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Id(_.QK1(),{mainAppWeb:Object.assign({},W,{pageType:O})});_.Id(sKX(),{mainAppWeb:Object.assign({},W,{pageType:O})});
_.Id(B9X(),{mainAppWeb:W});_.Id(rY8(),{mainAppWeb:W});seS(function(){_.ad(B9X(),"FAILURE");_.ad(rY8(),"FAILURE")});
uKX();JZ8();tfP()}},lSg);var Pf7={},pNU=(Pf7.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Bg("dl"),_.BH().processSignal("pcl");else{var W=function(){_.Bg("dl");_.BH().processSignal("pcl");window.removeEventListener("load",W)};
window.addEventListener("load",W)}}},Pf7);var RLU={},KnU=(RLU.rendering={priority:0,callback:function(){var W=_.BH();W.parkOrScheduleJob(function(){W.processSignal("eocs")},10,"eor",5E3)}},RLU);var v$D=function(){};
_.R(v$D,sg);
v$D.prototype.resolveCommand=function(W,O){var b,T,L,h,Z,a,m,w;return _.I(function(A){L=(b=_.P(W,_.tY9))==null?void 0:(T=b.dialog)==null?void 0:T.commentReplyDialogRenderer;if(!L)throw new _.pu("No dialog in createCommentReplyDialogEndpoint");Z=(h=O.form)==null?void 0:h.event;if(!Z)throw new _.pu("Event not passed in when resolving command");a=_.S(Z.composedPath());for(m=a.next();!m.done;m=a.next())if(w=m.value,w.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||w.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return w.showReplyDialog(L),A.return();
_.aD(A)})};var ag=function(W){this.pageRequestService=W;this.JSC$16317_prefetchCoordinator=HJN()};
_.R(ag,sg);ag.prototype.resolveCommand=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){b=_.P(W,pTU);if((T=b)==null||!T.taskId)throw Error("rj");L=b.taskId;_.LI(Z,2);return _.Y(Z,_.AD7(O.pageRequestService,W,{},"").then(function(a){if(!a)throw Error("sj");},function(a){throw Error("tj`"+a);
}),4)}if(Z.nextAddress!=2)return VjH(O.JSC$16317_prefetchCoordinator,L),_.H3(Z,0);
h=_.ID(Z);Vp(O.JSC$16317_prefetchCoordinator,L,h);_.aD(Z)})};
ag[NV]=[PR];var mv=function(W){this.innertubeTransportService=W};
_.R(mv,sg);mv.prototype.resolveCommand=function(W){var O=this,b,T;return _.I(function(L){b=_.P(W,KQ$);if(b.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||b.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")T=b.boolValue?2:1,_.NN.getInstance().setState(T,!0,!0);return _.Y(L,_.tP(O.innertubeTransportService,W),0)})};
mv[NV]=[_.sP];var YC={},g$8=(YC.addToPlaylistEndpoint=yw(lS),YC.addToToastAction=yw(lR),YC.adsControlFlowOpportunityReceivedCommand=yw(iS),YC.captionLanguageSelectActionCommand=yw(DD),YC.captionPickerEndpoint=yw(xZ),YC.changeMiniAppPlayStateCommand=yw(e_),YC.changeTimelyActionVisibilityCommand=yw(Uj),YC.channelCreationFormEndpoint=yw(YZ),YC.clearLocationCommand=yw(Uc),YC.clearUrlParamCommand=yw(Pv),YC.copyLinkCommand=yw(fG),YC.copyTextEndpoint=yw(TV),YC.createCommentReplyDialogEndpoint=zji(v$D),YC.createPlaylistServiceEndpoint=
yw(GV),YC.dismissDialogEndpoint=yw(Rj),YC.entityUpdateCommand=yw(dH),YC.feedbackEndpoint=yw(ZD),YC.getAnswerCommand=yw(cBz),YC.getPaymentsClientTokenCommand=yw(pM),YC.getTranscriptEndpoint=yw(eh),YC.googlePaymentBillingCommand=yw(RO),YC.googlePaymentPurchaseManagerCommand=yw(KM),YC.hideEngagementPanelEndpoint=yw(KG),YC.insertRichSectionCommand=yw(wH),YC.listMutationCommand=yw(AM),YC.logGtmCommand=yw(Ec),YC.notifyDropdownOptionSelectedCommand=yw(pG),YC.openAdAllowlistInstructionCommand=yw(_.bS),YC.openOnePickAddVideoModalCommand=
yw(Hv),YC.persistSubscriptionsDisplayPreferencesCommand=yw(uS),YC.pingingEndpoint=yw(j_),YC.playlistEditEndpoint=yw($Z),YC.playlistVotingRefreshPopupCommand=yw(V1),YC.refreshPanelEndpoint=yw(vv),YC.saveImageToDeviceEndpoint=yw(LG),YC.scrollToSectionEndpoint=zji(F4w),YC.seekToVideoTimestampCommand=yw(zV),YC.selectCountryCommand=yw(JM),YC.setCookieCommand=yw(cv),YC.setLocalStorageCommand=yw(YD),YC.setPrefStorageEntryCommand=yw(y1),YC.setSettingEndpoint=yw(mv),YC.sfvAudioItemPlaybackCommand=yw(CG),YC.shareImageCommand=
yw(Wu),YC.sharingProviderDataCommand=yw(Oj),YC.showCaptionLanguageSelectActionCommand=yw(qb),YC.showDialogCommand=yw(Q1),YC.showEngagementPanelEndpoint=yw(kZ),YC.showSheetCommand=yw(sc),YC.showSnackbarCommand=yw(m6),YC.showTransientPlayerScrimOverlayCommand=yw(nG),YC.submitFormWithValidationFlowCommand=yw(mT),YC.talkToRecsDeselectCommand=yw(Ej),YC.talkToRecsNextCommand=yw(wL),YC.talkToRecsSelectCommand=yw(A7),YC.talkToRecsUpdateTextCommand=yw(XI),YC.toggleEngagementPanelCommand=yw(Bv),YC.undoFeedbackEndpoint=
yw(aj),YC.updateEngagementPanelContentCommand=yw(rH),YC.updateUrlParamCommand=yw(Pu),YC.verifyCommand=yw(YZ),YC.webNativeShareCommand=yw(iR),YC.webSubmitFormCommand=yw(Nb),YC.ACK_PLAYABLES_3P_DATA_CONSENT=yw(bR),YC.CANCEL_NAVIGATION=yw(jh),YC.COPY_SHARE_URL=yw(Te),YC.MINI_APP_EXIT_DIALOG_SEEN=yw(dL),YC.MINI_APP_OPEN_URL=yw(LM),YC.REQUEST_MINI_APP_FULLSCREEN=yw(h7),YC.RESUME_NAVIGATION=yw(Sh),YC.SHARE_PLAYABLE_WITH_HIGH_SCORE=yw(ZZ),YC.TELL_US_WHY=yw(Ij),YC);
_.e("web_enable_prefetching_videos_on_home")&&(g$8.prefetchWatchCommand=yw(ag),g$8.registerTasksCommand=yw(M_));_.e("enable_share_panel_navigation_logging_fix_on_web")&&(g$8.shareEntityServiceEndpoint=yw(gH));var Ri5=Object.assign({},g$8);var o$B={},Q77=(o$B.initialized={priority:10,callback:OnE},o$B);var kw5={},s7g=(kw5.initialized={callback:function(W){var O={},b={};th8().install((O.document_disposed={callback:function(){_.e("finalize_all_timelines")?yET():Qw();kke("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.OC8();var T=W.injector.resolve(IC);T.intervalId!==void 0&&(T.intervalId&&_.sF.cancelJob(T.intervalId),T.intervalId=void 0,--T.currentPartitionIndex,T=HMH(T),T>0&&ICU({mainAppWeb:_.Hh(),survivalSli:{partitionMinute:T,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));iK5(CN);qN!=null&&
qN.flush();j4&&j4.snapshotAndFlush();T=_.S(UTv.values());for(var L=T.next();!L.done;L=T.next())L.value.snapshotAndFlush()}},O),(b.flush_logs={callback:function(){_.re()}},b))}},kw5);var B17={},r98=(B17.rendered={priority:0,callback:function(){var W=new evH;W.increment("STARTED");if(_.Cv("LOGGED_IN")&&_.Cv("SERVER_VERSION")!=="test"&&_.Cv("SERVER_VERSION")!=="dev"&&!LX1()&&!T8U()){W.increment("EXECUTING");var O=document.createElement("iframe");O.style.display="none";_.UAO(O,2,_.l7("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(O);W.increment("DONE")}}},B17);var DzP={},xzg=(DzP.rendered={callback:function(){HJN().resume()}},DzP);var zL9={acknowledgeChannelTouStrikeCommand:e4(Os),addToPlaylistServiceEndpoint:e4(TQ),addToPlaylistEndpoint:e4(TQ),addUpcomingEventReminderEndpoint:e4(pC),browseEndpoint:e4(RMw),channelCreationFormEndpoint:e4(MR),channelCreationServiceEndpoint:e4(uR),claimLegacyYoutubeChannelEndpoint:e4(DZ),clearSearchHistoryEndpoint:e4(Es),clearWatchHistoryEndpoint:e4(wf),commerceActionCommand:Ph(gs),createBackstagePostEndpoint:e4(oO),createBroadcastCommand:e4(Rf),createCommentEndpoint:e4(t7),createCommentReplyEndpoint:e4(Hu),
createLiveChatPollEndpoint:e4(KC),createPlaylistServiceEndpoint:e4(LL),crossAccountChannelTransferEndpoint:e4(Us),deleteLiveChatMessageCommand:e4(va),deletePlaylistEndpoint:e4(ds),deleteVideoEndpoint:e4(pL),dismissalEndpoint:e4(i6),feedbackEndpoint:e4(b6),flagEndpoint:e4(mb),getAccountSwitcherEndpoint:e4(XA),verifyCommand:e4(gL),getAccountsListInnertubeEndpoint:e4(et),getCommentsFromInboxCommand:e4(Gr),getDownloadActionCommand:e4(u6),getFlowCommand:Ph(Yp),getKidsBlocklistPickerCommand:e4(YW),getNotificationMenuEndpoint:e4(gkL),
getPaymentInstrumentsParamsCommand:e4(rs),getPaymentsClientTokenCommand:Ph(gs),getPdgBuyFlowCommand:e4(bg),getReportFormEndpoint:e4(E7),getSearchInVideoCommand:e4(U7),getAnswerCommand:e4(Al),getSurveyCommand:e4(P8),getTranscriptEndpoint:e4(KL),getPostVideoPreviewEndpoint:e4(kD),decorateMessageEndpoint:e4(Q7),likeEndpoint:e4(J7),liveChatActionEndpoint:e4(kp),liveChatEndpoint:e4(Qx),liveChatItemContextMenuEndpoint:e4(gf),liveChatPurchaseMessageEndpoint:e4(ss),liveChatReplayEndpoint:e4(of),manageLiveChatUserEndpoint:e4(rf),
metadataUpdateCommand:e4(nC),moderateLiveChatEndpoint:e4(DW),modifyChannelNotificationPreferenceEndpoint:e4(Vx),notificationOptOutEndpoint:e4(NM),openSuperStickerBuyFlowCommand:e4(Ba),performCommentActionEndpoint:e4(nM),playlistEditEndpoint:e4(SA),playlistEditorEndpoint:e4(hl),profileCardCommand:e4(Pa),recordNotificationInteractionsEndpoint:e4(MM),reelWatchEndpoint:e4(Zo),refreshPanelEndpoint:e4(ca),removeUpcomingEventReminderEndpoint:e4(xp),resolveLocationCommand:e4(qM),revealBusinessEmailCommand:e4(xD),
searchEndpoint:e4(_.ok$),sendLiveChatMessageEndpoint:e4(zr),sendLiveChatVoteEndpoint:e4(CC),setSettingEndpoint:e4(cu),shareEntityServiceEndpoint:Ph(Wa),sharingProviderDataCommand:e4(eA),showEngagementPanelEndpoint:e4(FA),showMoreDrawerCommand:e4(W8),showSheetCommand:e4(O7),showDialogCommand:e4(yx),subscribeEndpoint:e4(FI),transcriptSubmitCaptionCorrectionCommand:e4(R0),undoFeedbackEndpoint:e4(af),unsubscribeEndpoint:e4(y7),updateBackstagePostEndpoint:e4(Bu),updateCommentEndpoint:e4(V7),updateCommentReplyEndpoint:e4($D),
updateCommentsSettingsEndpoint:e4(NR),updateCreatorChannelInnertubeCommand:e4(CM),updateKidsBlacklistEndpoint:e4(ws),updateEngagementPanelContentCommand:e4(ig),updatePdgFeatureEnablementCommand:e4(jA),updatedMetadataEndpoint:e4(fC),validateChannelHandleCommand:e4(qR),updateChannelPageSettingsEndpoint:e4(ze),verifyAgeEndpoint:e4(mE),watchEndpoint:Ph(he),whitelistEditEndpoint:e4(v8),ypcCancelRecurrenceEndpoint:e4(o0),ypcCompleteTransactionEndpoint:e4(Qp),ypcFixInstrumentEndpoint:e4(s7),ypcGetCartEndpoint:e4(kW),
ypcGetOffersEndpoint:e4(B8),ypcHandleTransactionEndpoint:Ph(Do),ypcLogWalletAnalyticDataEndpoint:e4(xW),ypcOffersEndpoint:e4(zQ),ypcPauseSubscriptionCommand:e4(CL),ypcRedeemCodeEndpoint:e4(q_),ypcResumeSubscriptionCommand:e4(nL),ypcUpdateFopEndpoint:e4(s7)},EG={},CfP=(EG.GET_ACCOUNT_MENU=e4(l6),EG.GET_NOTIFICATIONS_MENU=e4(vkv),EG.GET_NOTIFICATIONS_INBOX=e4(Ha),EG.GET_UNSEEN_NOTIFICATION_COUNT=e4($p),EG.GET_USER_MENTION_SUGGESTIONS=e4(sj),EG.LOAD_GUIDE=e4(Ky1),EG.SUBMIT_FEEDBACK=e4(jt),EG),w2={},
qvN=(w2.CONTINUATION_REQUEST_TYPE_BROWSE=e4(rL),w2.CONTINUATION_REQUEST_TYPE_SEARCH=e4(lg),w2.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=e4(Zz),w2.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=e4(AK),w2.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=e4(Ge),w2.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=e4(fM),w2.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=e4(a0),w2.CONTINUATION_REQUEST_TYPE_GET_PANEL=e4(JK),w2),n$R={player:Ph(he),watchNext:e4(Su)},fSP={player:Ph(he),reelItemWatch:e4(Zo),reelWatchSequence:e4(I0)},
GwB={watchEndpoint:Ph(IL)},HH1={commandEndpointMap:zL9,signalEndpointMap:CfP,continuationEndpointMap:qvN,watchEndpointMap:n$R,reelWatchEndpointMap:fSP,streamingEndpointMap:GwB};var t5Z,$z7,V5D,N11={disableAllTransitions:($z7=(t5Z=window).matchMedia)==null?void 0:(V5D=$z7.call(t5Z,"(prefers-reduced-motion: reduce)"))==null?void 0:V5D.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var M5Z=new _.MV("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.Aw=new _.MV("VIEW_TRANSITION_MANAGER_TOKEN");var uUZ=function(W){this.config=W;this.transitionTasksMap=new Map;W=_.S(W.transitionConfigs);for(var O=W.next();!O.done;O=W.next())O=_.S(O.value).next().value,this.transitionTasksMap.set(O,[])};
uUZ[NV]=[M5Z];var ine={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var jwh=["videoPrimaryInfoRenderer","title"],TUQ=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var J91;J91=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.c9R=_.J1(function(W){W=_.um(W,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var O=W.data,b=W.playlistData,T=W.expanded,L=W.onExpandClick,h=W.isReadyToResume,Z=function(){var A;return!((A=b())==null||!A.contents)},a=function(){var A=b();
return A&&A.totalVideos&&A.currentIndex!==void 0?A.currentIndex+1+" / "+A.totalVideos:""};
W=_.XL(function(){_.X_(_.iq().resolve(_.xq));return!1});
var m=_.XL(function(){Z()&&L&&L()}),w={};
return _.E("ytd-miniplayer-info-bar",{class:_.YS("ytdMiniplayerInfoBarHost",(w.ytdMiniplayerInfoBarHasPlaylistData=Z,w)),"on:click":m},_.E("div",{class:"ytdMiniplayerInfoBarContent"},_.E("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":W},_.E(_.uw,{text:function(){var A=O();var X=b();if(X==null?0:X.contents){var l;A=(l=_.Fr8(X))==null?void 0:l.title}else A=A==null?void 0:A.miniplayerTitle;return dj8(A)},
noEndpoints:!0,ellipsisTruncate:!0})),_.E("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.E(_.U,{cond:h,then:function(){return _.E(OLH,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:J91})}}),_.E("h1",null,_.E(_.uw,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var A=O();var X=b();A=h()?{simpleText:_.EO("CONTINUE_WATCHING",void 0,"Continue watching")}:(X==null?0:X.contents)?X.titleText:A==null?void 0:A.miniplayerSubtitle;return dj8(A)},
noEndpoints:!0,ellipsisTruncate:!0})),_.E(_.U,{cond:function(){return!!a()&&!h()},
then:function(){return _.E("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.E("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.E("span",null,a))}}))),_.E(_.U,{cond:Z,
then:function(){return _.E("div",{class:"ytdMiniplayerInfoBarExpand"},_.E(cm,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(A){L&&(L(),A.stopPropagation())}}},
iconName:function(){return T()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"me");var Fn9;Fn9=_.J1(function(W){return _.E("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.E(cm,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:W.onTap}},
iconName:"yt-icons:close"}))},"ne");
_.y9U=_.J1(function(W){W=_.um(W,{playabilityStatus:void 0,isDisabled:!1});var O=W.size,b=W.playabilityStatus,T=W.isDisabled,L=_.uy();W=_.S(_.wu(void 0,void 0,"bJr0Se"));var h=W.next().value,Z=W.next().value;W=_.D3(_.m9);var a=!1,m=function(){return O().height<=0};
_.kb(function(){var l=O(),p=m(),K=h();K&&!p&&K.setInternalSize(l.width,l.height)});
_.oW(function(){var l,p,K;return _.I(function(k){if(k.nextAddress==1){l=_.iq().resolve(_.xq);p=l.getPlayerElement();if(!l.isMiniplayerActive()||!p||!L.value)return k.return();p.appendTo(L.value);return _.Y(k,p.getPlayerPromise(),2)}K=k.yieldResult;K.setSizeStyle(!1,!0);Z(K);_.aD(k)})});
_.so(function(){w()});
_.kb(function(){var l=h();if(l)if(T()){var p=l.getPlayerState();(a=p===-1||p===1||p===3)&&l.pauseVideo()}else w()});
var w=function(){if(a){a=!1;var l;(l=h())==null||l.playVideo()}},A=_.XL(function(){_.X_(_.iq().resolve(_.xq))}),X={};
return _.E("ytd-miniplayer-player-container",{class:_.YS("ytdMiniplayerPlayerContainerHost",(X.ytdMiniplayerPlayerContainerHidden=m,X.ytdMiniplayerPlayerContainerHostShortsPip=W,X)),style:_.eE({width:function(){return O().width+"px"},
height:function(){return O().height+"px"}})},_.E("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:L}),_.E(_.U,{cond:function(){return!!b()&&!_.Tre(b())},
then:function(){return _.E($xU,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var l;return((l=b())==null?void 0:l.errorScreen)||null},
status:function(){var l;return((l=b())==null?void 0:l.status)||null}})}}),_.E(_.U,{cond:T,
then:function(){return _.E("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":A},_.E(Fn9,{onTap:function(){_.iq().resolve(_.xq).close()}}))}}))},"oe");_.W8g=_.J1(function(W){var O=W.toastData;var b=_.uy();W=_.S(_.ln(function(){return!!O()}));
var T=W.next().value,L=W.next().value;W=_.S(_.wu(!1,void 0,"xkrBze"));var h=W.next().value,Z=W.next().value,a=function(){var A;return _.NX((A=O())==null?void 0:A.data.title)};
_.kX(function(){_.zi.requestAvailability();O()&&L(!1)});
var m,w;_.kb(function(){T()&&(_.bX(b.value,"iron-announce",{text:O().label+" "+a()}),m&&_.sF.cancelJob(m),m=_.sF.addLowPriorityJob(function(){Z(!0)},2500))});
_.kb(function(){h()&&(w&&_.sF.cancelJob(w),w=_.sF.addLowPriorityJob(function(){L(!1);Z(!1)},300))});
W={};return _.E("ytd-miniplayer-toast",{el:b,class:_.YS("ytdMiniplayerToastHost",(W.ytdMiniplayerToastOpening=function(){return T()},W.ytdMiniplayerToastClosing=function(){return h()},W))},_.E(_.U,{cond:function(){var A;
return(A=O())==null?void 0:A.data},
then:function(A){return _.E(h1f,{className:"ytdMiniplayerToastThumbnail",data:A,width:78})}}),_.E("div",{class:"ytdMiniplayerToastInfo"},_.E("div",{class:"ytdMiniplayerToastLabel"},function(){var A;
return(A=O())==null?void 0:A.label}),_.E("div",{class:"ytdMiniplayerToastTitle"},a)))},"pe");var A28;var eaQ=new Set,l$Q=null;var pc8=null;var iUU=_.J1(function(W){var O=W.progressState;var b=W.multiMarkersPlayerBarRenderer;var T=W.progressBarWidth;var L=function(){return gM1(b())},h=function(){return k4T(O())},Z=function(){return T()*(O().playedTime/O().videoDuration)};
return _.E("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.E(_.pv,{each:L},function(a,m){return _.E(OUD,{modifiedProps:h,chapters:L,index:m,playedProgressWidth:Z,backgroundGradientPosition:function(){var w=h(),A=L(),X=m(),l=Z();return(w.playedTime-rY(_.P(A[X],BR)))/w.playedTime*l}})}))},"qe"),OUD=_.J1(function(W){var O=W.modifiedProps;
var b=W.chapters;var T=W.index;var L=W.playedProgressWidth;var h=W.backgroundGradientPosition;W={};W=_.YS("ytChapteredProgressBarChapteredPlayerBarChapter",(W.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return Z().isScrubbing},W.ytChapteredProgressBarHoveredMacroMarker=function(){return Z().scrubberHovering},W.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return Z().videoPosition==="seen"},W));
var Z=function(){return swP(O(),b(),T())},a=function(){var m=O();
var w=b(),A=T();if(swP(m,w,A).videoPosition!=="active")m=0;else{var X=rY(_.P(w[A],BR));m=(m.playedTime-X)/((rY(_.P(w[A+1],BR))||m.videoDuration)-X)}return m};
return _.E("div",{class:W,style:_.eE({width:function(){var m=O(),w=b(),A=T(),X=_.P(w[A],BR);w=_.P(w[A+1],BR);return(w?rY(w)-rY(X):m.videoDuration-rY(X))/m.videoDuration*100+"%"},
"background-color":function(){a:{var m=Z();switch(m.videoPosition){case "pending":m=m.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":m=m.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:m=""}}return m},
"background-size":function(){return(BU8(Z())?L():"")+"px"},
"background-position-x":function(){return(BU8(Z())?h():"")+"px"}})},_.E("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var m=O(),w=b(),A=T();if(swP(m,w,A).videoPosition==="seen")var X=0;else X=rY(_.P(w[A],BR)),w=rY(_.P(w[A+1],BR))||m.videoDuration,m=m.videoDuration*m.percentLoaded,X=w<=m?1:X>=m?0:(m-X)/(w-X);return"width: "+X*100+"%"}}),_.E("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.eE({width:function(){return a()*100+"%"},
"background-size":function(){return(BU8(Z(),a())?L():"")+"px"},
"background-position-x":function(){return(BU8(Z(),a())?h():"")+"px"}})}))},"re");var bUB=function(W,O){O=O===void 0?nI5:O;var b,T=[],L,h=!1;return function(){var Z=_.PD.apply(0,arguments);if(h&&b===this&&O(Z,T))return L;L=W.apply(this,Z);h=!0;b=this;T=Z;return L}}(function(W){var O=W.heatMarkers,b=W.minHeightDp===void 0?0:W.minHeightDp,T=W.maxHeightDp===void 0?60:W.maxHeightDp;
var L=L===void 0?!1:L;var h=1E3/O.length;W=[];W.push({x:0,y:100});for(var Z=0;Z<O.length;Z++){var a=void 0,m=((a=_.P(O[Z],eU5))==null?void 0:a.heatMarkerIntensityScoreNormalized)||0;a=(Z+.5)*h;m=100-_.kq(m*100,b/321*100,T/321*100);Z!==0||L||W.push({x:0,y:m});W.push({x:a,y:m});Z===O.length-1&&W.push({x:1E3,y:m})}W.push({x:1E3,y:100});O="";for(b=0;b<W.length;b++)L=W[b],b===0?L="M "+L.x.toFixed(1)+","+L.y.toFixed(1):(T=baX(W[b-1],W[b-2],L),h=baX(L,W[b-1],W[b+1],!0),L=" C "+(T.x.toFixed(1)+","+T.y.toFixed(1)+
" "+h.x.toFixed(1)+","+h.y.toFixed(1)+" "+L.x.toFixed(1)+","+L.y.toFixed(1))),O+=L;return O});var jN2=_.J1(function(W){var O=W.progressBarProps;var b=W.config;var T={};W=_.YS("ytHeatSeekerHost",(T.ytHeatSeekerHighContrast=W.highContrast,T));var L=function(){return a$P(b().chapterData)};
return _.E("yt-progress-bar-heatseeker",{class:W,style:function(){var h;return"height: 320px; display: "+(O().isDragging&&((h=L())==null?0:h.heatMarkers)?"block":"none")}},_.E(_.U,{cond:L,
then:function(h){return _.E(_.U,{cond:function(){return h().heatMarkers},
then:function(){return _.E("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.E("path",{d:function(){return bUB(h())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"se");var Tgg=_.J1(function(W){var O=W.progressBarProps;var b=W.config;W={};W=_.YS("ytProgressBarLineProgressBarLine",(W.ytProgressBarLineProgressBarLineRounded=function(){return b().rounded},W.ytProgressBarLineProgressBarLineBottomInset=function(){return b().position===2},W));
return _.E("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.E("div",{class:W},_.E("div",{class:"ytProgressBarLineProgressBarBackground"}),_.E("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+O().percentLoaded*100+"%"}}),_.E("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var T=O();return"width: "+(T.videoDuration?_.kq(T.hoveredTime/T.videoDuration,0,1):0)*100+"%"}}),_.E("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+SwO(O())*100+"%"}})))},"te");
Tgg.idomCompat=!0;var L87=_.J1(function(W){var O=W.progressBarProps;var b=W.playheadData;var T=W.interpolateDotPosition;var L=W.hidePlayhead;W={};var h=_.YS("ytProgressBarPlayheadProgressBarPlayheadDot",(W.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return O().isDragging},W.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!O().isDragging&&L()},W));
return _.E("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.eE({"margin-left":function(){return ZnP(O())*100+"%"},
transform:function(){return"translateX(-"+(T()?ZnP(O())*12:6)+"px)"}})},_.E(_.U,{cond:function(){var Z;
return(Z=_.Me(b)())==null?void 0:Z.playheadImage},
then:function(Z){var a={};return _.E("div",{class:_.YS("ytProgressBarPlayheadProgressBarPlayheadCustom",(a.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return O().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!O().isDragging&&L()},a)),
style:_.eE({"transform-origin":function(){return(T()?ZnP(O())*20:10)+"px center"}})},_.E(_.uj,{data:Z,
alt:"","aria-hidden":"true"}))},
else:function(){return _.E("div",{class:h,style:_.eE({"transform-origin":function(){return(T()?ZnP(O())*12:6)+"px center"}})})}}))},"ue");
L87.idomCompat=!0;var UG=function(W,O,b,T,L,h){this.getProgressBarRect=W;this.updateProgressBarRect=O;this.getFilmstripYPosition=b;this.setFineScrubbingDraggedTime=T;this.updateFilmStripDraggedYDistance=L;this.resetFilmStripYOffset=h;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.JI(this.onThrottledSeek,100,this)},dZP=function(W,O,b){return function(T){W.handleClick(T,O(),b())}},ZUg=function(W,O){return function(b){hR2(W,
b,S57(b),O())}},IP7=function(W,O){return function(b){hR2(W,b,{x:b.clientX,
y:b.clientY},O())}},mZ1=function(W,O,b){return function(T){var L=O(),h=b();
aPg(W,T,S57(T),L,h,!0);if(h.onTouchMove)h.onTouchMove(L)}},E7N=function(W,O,b){return function(T){Y59(W,T,O(),b())}},w92=function(W,O){return function(){W.handleMouseLeave(O())}},AgN=function(W,O,b){return function(){var T=O(),L=b();
l0(W,T,L);if(L.onTouchEnd)L.onTouchEnd(T)}},X9B=function(W,O,b){return function(){var T=O(),L=b();
l0(W,T,L);if(L.onTouchEnd)L.onTouchEnd(T)}},UZN=function(W,O,b){return function(){l0(W,O(),b())}},lPN=function(W){return function(O){if(O.keyCode===39){var b,T;
(b=W())==null||(T=b.playerApi)==null||T.seekBy(5,void 0,void 0,72)}else if(O.keyCode===37){var L,h;(L=W())==null||(h=L.playerApi)==null||h.seekBy(-5,void 0,void 0,71)}}},eR9=function(W,O,b){return function(T){!b().disableScrubbing&&W.startPosition&&Y59(W,T,O(),b())}},PkN=function(W,O,b){return function(){if(!b().disableScrubbing)if(W.startPosition){var T=O(),L=b();
l0(W,O(),b());if(L.onTouchEnd)L.onTouchEnd(T)}else O().setState({isDragging:!1})}},S57=function(W){W=W.touches[0];
return{x:W.clientX,y:W.clientY}},Y59=function(W,O,b,T){if(O.buttons!==1){if(O.movementX||O.movementY)O.preventDefault(),O.stopPropagation(),W=p9k(W,b,O.clientX),b.setState({isHovering:!0,
hoveredTime:W*b.videoDuration})}else RRg(b),aPg(W,O,{x:O.clientX,y:O.clientY},b,T,!1)};
UG.prototype.handleMouseLeave=function(W){RRg(W)};
var RRg=function(W){W.isHovering&&W.setState({isHovering:!1,hoveredTime:0})},hR2=function(W,O,b,T){W.startPosition||(W.startPosition=b,W.updateProgressBarRect(),W.controlsWereVisibleBeforeDragging=T.controlsVisible,O.stopPropagation(),_.e("medium_progress_bar_modification")||O.preventDefault())},aPg=function(W,O,b,T,L,h){if(W.startPosition)if(h&&L.isInlinePlayback&&W.startPosition&&!W.hasDraggedTheMinimumDistance&&Math.abs(b.y-W.startPosition.y)>Math.abs(b.x-W.startPosition.x))l0(W,T,L);
else if(O.preventDefault(),O.stopPropagation(),T.videoDuration&&(W.startPosition&&!W.hasDraggedTheMinimumDistance&&(W.hasDraggedTheMinimumDistance=Math.abs(b.x-W.startPosition.x)>=1),L.enableFineScrubbing&&(W.startPosition&&(W.isDraggedForFineScrubbing=-(b.y-W.startPosition.y)>=60),!W.startPosition||b.y>=W.startPosition.y||(T.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:r21(T.draggedTime,T,L.chapterData)}),W.setFineScrubbingDraggedTime(T.draggedTime),W.updateFilmStripDraggedYDistance(W.startPosition.y,
b.y,T))),W.hasDraggedTheMinimumDistance)){O=p9k(W,T,b.x);if(W.isDraggedForFineScrubbing){var Z;(Z=T.playerApi)==null||Z.pauseVideo();T.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:T.draggedTime,filmStripXDistance:r21(O*T.videoDuration,T,L.chapterData)})}L.enableFineScrubbing&&(!L.enableFineScrubbing||W.getFilmstripYPosition(T)<68)||T.setState({draggedTime:O*T.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:W.controlsWereVisibleBeforeDragging});var a;(a=
L.cancelAutohideControlsFn)==null||a.call(L)}},l0=function(W,O,b){var T=b.enableFineScrubbing&&O.fineScrubbingActiveState!=="off";
if(O.isDragging||T){T={isDragging:!1,playedTime:O.draggedTime,controlsVisible:W.controlsWereVisibleBeforeDragging};b.enableFineScrubbing&&O.fineScrubbingActiveState!=="on"&&(W.resetFilmStripYOffset(),T.fineScrubbingActiveState="off");var L=L===void 0?pc8:L;var h=_.Bb(0);h&&L&&_.Nk(h,L,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(O.playedTime*1E3),endMediaTimeMs:Math.round(O.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});O.setState(T);
W.seekThrottle.fire(O.draggedTime,O,7);_.e("mweb_new_progress_bar_play_on_seek")&&W.resumeVideo(O);b.unmuteOnSeek&&(b=O.playerApi,O.volumeMuted&&(b==null||b.unMute()))}else O.setState({controlsVisible:!O.controlsVisible}),(h=b.triggerAutohideControlsAfterDelayFn)==null||h.call(b);W.startPosition=null;W.hasDraggedTheMinimumDistance=!1;W.isDraggedForFineScrubbing=!1;W.controlsWereVisibleBeforeDragging=!1};
UG.prototype.handleClick=function(W,O,b){this.updateProgressBarRect();W.stopPropagation();W=p9k(this,O,W.clientX)*O.videoDuration;O.setState({playedTime:W});if(O.playerState!==2){var T;(T=b.triggerAutohideControlsAfterDelayFn)==null||T.call(b)}this.seekThrottle.fire(W,O,7)};
var p9k=function(W,O,b){W=W.getProgressBarRect(O);return _.kq(0,(b-W.left)/W.width,1)};
UG.prototype.resumeVideo=function(W){if(W.draggedTime<W.videoDuration){var O;(O=W.playerApi)==null||O.playVideo()}};
UG.prototype.onThrottledSeek=function(W,O,b){if(O=O.playerApi){var T;if((T=O.getVideoData())==null?0:T.isLive)T=this.getProgressState(O),W+=(T==null?void 0:T.seekableStart)||0;O.seekTo(W,void 0,void 0,void 0,b)}};
UG.prototype.getProgressState=function(W){var O=W==null?void 0:W.getPresentingPlayerType();return W==null?void 0:W.getProgressState(O)};var g7k,v7B,o7D,k1g,K85,sN9,Bgg,rgB,DZN;g7k=_.J1(function(W){var O=W.progressBarProps;var b=W.config;var T=W.progressBarWidthPx;var L=W.chapterData;var h=qwE(O,function(){return b().isShortsPage}),Z=function(){return!O().isHovering&&!b().isShortsPage};
W={};var a=_.YS("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(W.ytPlayerStoryboardHostMwebShorts=function(){return b().isShortsPage&&!1},W));
return _.E("yt-player-storyboard",null,_.E(_.U,{cond:function(){return O().isDragging||O().isHovering},
then:function(){return _.E(_.U,{cond:h,then:function(m){return _.E(_.U,{cond:Z,then:function(){return _.E("div",{class:a,"aria-hidden":"true"},_.E(K85,{props:O,config:b,isBigboard:!0,chapterData:L}))},
else:function(){return _.E(v7B,{props:O,frame:m,config:b,progressBarWidthPx:T,chapterData:L})}})}})}}))},"ve");
_.QNN=_.J1(function(W){var O=W.progressBarProps;var b=qwE(O,W.isShortsPage);return _.E("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.E(_.U,{cond:function(){return O().isDragging||O().isHovering},
then:function(){return _.E(_.U,{cond:b,then:function(T){return _.E(o7D,{frame:T,props:O,isBigboard:!0})}})}}))},"we");
v7B=_.J1(function(W){var O=W.props;var b=W.frame;var T=W.config;var L=W.progressBarWidthPx;W=W.chapterData;var h={};h=_.YS("ytPlayerStoryboardHost",(h.ytPlayerStoryboardHostMwebShorts=function(){return T().isShortsPage&&!1},h.ytPlayerStoryboardHostInlinePlayer=function(){return T().isInlinePlayer},h.ytPlayerStoryboardHostFadeIn=function(){return T().useFadeInAnimation},h));
return _.E("div",{class:h,"aria-hidden":"true",style:function(){var Z=O(),a=DjT(b()),m=L();Z=xjh(Z)/Z.videoDuration;var w=m*Z,A=a/2+6;a=m-(a/2+6);return"left: "+(w<=A?A/m*100:w>=a?a/m*100:Z*100)+"%"}},_.E(_.U,{cond:function(){var Z=O();
return!(T().isShortsPage&&Z.videoDuration<15)},
then:function(){return _.E(o7D,{frame:b,props:O,isBigboard:!1})}}),_.E(K85,{props:O,
config:T,isBigboard:!1,chapterData:W}))},"xe");
o7D=_.J1(function(W){var O=W.frame;var b=W.props;var T=W.isBigboard;var L=function(){var a,m;return(m=(a=b().playerApi)==null?void 0:a.getVideoContentRect())!=null?m:{width:0,height:0}},h=function(){return DjT(O())},Z=function(){var a=O();
return a?a.height/a.rows:0};
W={};W=_.YS((W.ytPlayerStoryboardBigboardImageWrapper=T,W.ytPlayerStoryboardStoryboardImageWrapper=function(){return!T()},W));
return _.E("div",{class:W,style:function(){return"width: "+(T()?L().width:h())+"px; height: "+(T()?L().height:Z())+"px;"}},_.E(k1g,{frame:O,
storyboardWidth:h,storyboardHeight:Z,storyboardScale:function(){return(T()?L().width:h())/h()}}))},"ye");
k1g=_.J1(function(W){var O=W.frame;var b=W.storyboardWidth;var T=W.storyboardHeight;var L=W.storyboardScale;var h=function(){var Z=O().row,a=O().column,m=b(),w=T(),A=L();return{left:-a*m*A,top:-Z*w*A}};
return _.E("img",{src:function(){return O().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+h().left+"px; top: "+h().top+"px; width: "+O().width*L()+"px; height: "+O().height*L()+"px;"}})},"ze");
K85=_.J1(function(W){var O=W.props;var b=W.config;var T=W.isBigboard;var L=W.chapterData;W={};W=_.YS("ytPlayerStoryboardMetadata",(W.ytPlayerStoryboardMetadataBigboard=T,W));return _.E("div",{class:W},_.E(_.U,{cond:T,then:function(){return _.E(_.TT,null,_.E(sN9,{props:O,config:b}),_.E(_.U,{cond:function(){a:{var h=O();var Z=b(),a=L(),m;if((Z==null?0:Z.activeChapter)&&((m=_.P(Z==null?void 0:Z.activeChapter,BR))==null?0:m.title))h=!0;else{Z=_.S(mjE(a));for(Z=Z.next();!Z.done;Z=Z.next()){h=(Z=_.P(Z.value,
pX1))&&zaX(h,Z);break a}h=!1}}return h},
then:function(){return _.E(Bgg,{props:O,config:b,isBigboard:!0,chapterData:L})}}))},
else:function(){return _.E(_.TT,null,_.E(Bgg,{props:O,config:b,isBigboard:!0,chapterData:L}),_.E(sN9,{props:O,config:b}))}}))},"Ae");
sN9=_.J1(function(W){var O=W.props;var b=W.config;W={};W=_.YS("ytPlayerStoryboardTimestamp",(W.ytPlayerStoryboardTimestampShorts=function(){return b().isShortsPage},W.ytPlayerStoryboardTimestampIsHovering=function(){return O().isHovering||b().isShortsPage&&!0},W));
return _.E("div",{class:W},_.E(_.TT,null,function(){return _.CI2(xjh(O()))}))},"Be");
Bgg=_.J1(function(W){var O=W.props;var b=W.config;var T=W.isBigboard;var L=W.chapterData;W={};T=_.YS("ytPlayerStoryboardTitle",(W.ytPlayerStoryboardTitleBigboard=T,W));return _.E("div",{class:T},_.E(_.U,{cond:function(){return!b().isShortsPage},
then:function(){return _.E(rgB,{props:O,activeChapter:function(){return b().activeChapter},
chapterData:L})}}))},"Ce");
rgB=_.J1(function(W){var O=W.props;var b=W.activeChapter;var T=W.chapterData;return _.E(_.TT,null,_.E(_.pv,{each:function(){return mjE(T())},
keyBy:"INDEX"},function(L){return _.E(_.TT,null,_.E(_.U,{cond:function(){return _.P(L(),pX1)&&zaX(O(),_.P(L(),pX1))},
then:function(){return _.E(DZN,{timedMarker:function(){return _.P(L(),pX1)}})}}))}),_.E(_.U,{cond:function(){var L;
return b()&&((L=_.P(b(),BR))==null?void 0:L.title)},
then:function(L){return _.E(_.uw,{text:L,noPreWrap:!0})}}))},"De");
DZN=_.J1(function(W){var O=W.timedMarker;return _.E(_.TT,null,_.E("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.E(_.Ps,{icon:function(){return O().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.E(_.uw,{text:function(){return O().label},
noPreWrap:!0}))},"Ee");_.xZ2=_.J1(function(W){var O=W.progressBarProps;var b=W.playheadData;var T=W.config;W=_.uy();var L=_.uy(),h=_.uy(),Z=_.S(_.wu({width:0,left:0},void 0,"NcXsUb")),a=Z.next().value,m=Z.next().value,w=function(){h.value&&m(h.value.getBoundingClientRect())},A=function(){a().width<=0&&w();
return a()};
WB("resize",w);var X=new UG(A,function(){},function(){return 0},function(){},function(){},function(){}),l=function(){return O()};
Z=_.S(_.wu(!1,void 0,"ZsF6Xc"));var p=Z.next().value,K=Z.next().value;Z=_.XL(function(){K(!0);T().position===2?setTimeout(function(){w()},100):w()});
var k=_.XL(function(){K(!1);w92(X,l)()}),r=_.XL(function(tX){T().doSeekOnClick&&dZP(X,l,T)(tX);
return!1}),q=_.XL(function(tX){ZUg(X,l)(tX);
return!1}),f=_.XL(function(tX){IP7(X,l)(tX);
return!1}),M=_.XL(function(tX){mZ1(X,l,T)(tX);
return!1}),V=_.XL(function(tX){E7N(X,l,T)(tX);
return!1}),jQ=_.XL(function(){AgN(X,l,T)();
return!1}),y=_.XL(function(){X9B(X,l,T)();
return!1}),d8=_.XL(function(){UZN(X,l,T)();
return!1}),pE=_.XL(function(tX){lPN(l)(tX);
return!1});
WB("mousemove",eR9(X,l,T));WB("mouseup",PkN(X,l,T));_.kX(function(){RaX(L.value);K(!1);w();PkN(X,l,T)()});
var Qh={};Qh=_.YS("ytPlayerProgressBarHost",function(){return T().className},(Qh.ytPlayerProgressBarHostReadOnly=function(){return T().disableScrubbing},Qh.ytPlayerProgressBarHostHidden=function(){return T().hideProgressBar&&!p()},Qh.ytPlayerProgressBarHostLowerPlayer=function(){return T().position===0},Qh.ytPlayerProgressBarHostBottomEdge=function(){return T().position===1},Qh.ytPlayerProgressBarHostBottomInset=function(){return T().position===2},Qh.ytPlayerProgressBarHostCustom=function(){return T().position===
3},Qh));
var KE={},fE=_.YS("ytPlayerProgressBarBackground",(KE.ytPlayerProgressBarBackgroundHide=function(){return T().position===2&&!p()&&!O().isDragging},KE));
KE={};KE=_.YS("ytPlayerProgressBarDragContainer",(KE.ytPlayerProgressBarDragContainerBottomEdge=function(){return T().position===1},KE));
var r8={};r8=_.YS("ytPlayerProgressBarProgressBar",(r8.ytPlayerProgressBarProgressBarInset=function(){return T().position===2},r8.ytPlayerProgressBarProgressBarInsetMinimized=function(){return T().position===2&&!p()&&!O().isDragging},r8));
var nE=function(){return Math.floor(SwO(O())*100)};
return _.E("yt-progress-bar",{el:W,class:Qh},_.E(_.U,{cond:function(){return T().position===2},
then:function(){return _.E("div",{class:fE})}}),_.E("div",{el:L,
"on:click":r,"on:touchstart":q,"on:touchmove":M,"on:mouseenter":Z,"on:mousedown":f,"on:mouseleave":k,"on:mousemove":V,"on:mouseup":y,"on:touchend":jQ,"on:touchcancel":d8,"on:keydown":pE,class:KE,role:"slider","aria-valuenow":nE,"aria-valuetext":function(){return nE()+"%"},
tabindex:0,"aria-label":_.EO("SEEK_SLIDER")},_.E("div",{el:h,class:r8},_.E(jN2,{progressBarProps:O,config:T,highContrast:function(){return!!T().isInlinePlayback}}),_.E(_.U,{cond:function(){return T().chapterData&&YwP(T().chapterData)},
then:function(){return _.E(iUU,{progressState:O,multiMarkersPlayerBarRenderer:function(){return T().chapterData},
progressBarWidth:function(){return a().width}})},
else:function(){return _.E(Tgg,{progressBarProps:O,config:T})}}),_.E(L87,{progressBarProps:O,
playheadData:b,interpolateDotPosition:function(){return T().position!==2},
hidePlayhead:function(){return T().playheadDotBehavior===1&&!p()}}))),_.E(g7k,{progressBarProps:O,
config:function(){return{activeChapter:QwP(O(),T().chapterData),getProgressBarWidthPx:function(){return A().width},
isShortsPage:!!T().isShortsPage,isInlinePlayer:!!T().isInlinePlayback,useFadeInAnimation:!!T().isInlinePlayback}},
progressBarWidthPx:function(){return a().width},
chapterData:function(){return T().chapterData}}))},"Fe");
_.xZ2.idomCompat=!0;Object.assign({},_.EM8(),{setState:function(){},
domMeasurements:{},appApi:_.hae(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var zR7;
_.Ckk=_.J1(function(){var W,O=(W=_.DL(nMe().playerApi))!=null?W:void 0;W=_.S(_.wu(!1,void 0,"HLFBmb"));var b=W.next().value,T=W.next().value;W=_.S(_.wu(!1,void 0,"lHH9bc"));var L=W.next().value,h=W.next().value;W=_.S(_.wu(!1,void 0,"zsY7yd"));var Z=W.next().value,a=W.next().value;W=_.S(_.wu(!1,void 0,"KeHQgc"));var m=W.next().value,w=W.next().value;W=_.S(_.wu(0,void 0,"gLLCj"));var A=W.next().value,X=W.next().value;W=_.S(_.wu(0,void 0,"s3RYkf"));var l=W.next().value,p=W.next().value;W=_.S(_.wu(!1,void 0,
"Dn608e"));var K=W.next().value,k=W.next().value;W=_.S(_.wu(0,void 0,"AnkH1b"));var r=W.next().value,q=W.next().value;W=_.S(_.wu(0,void 0,"QYNL0b"));var f=W.next().value,M=W.next().value;W=_.S(_.wu("",void 0,"Yzw45d"));var V=W.next().value,jQ=W.next().value;W=_.S(_.wu(-1,void 0,"iiVI0c"));var y=W.next().value,d8=W.next().value,pE=_.Pj(function(){var Qh={controlsVisible:b(),isOverlayHidden:L(),shouldWaitToHideControls:Z(),isDragging:m(),isHovering:K(),videoDuration:r(),playedTime:f(),videoId:V(),draggedTime:l(),
hoveredTime:A(),playerState:y()};return Object.assign({},_.EM8(),Qh,{domMeasurements:{},setState:function(KE){KE.controlsVisible!==void 0&&T(KE.controlsVisible);KE.isOverlayHidden!==void 0&&h(KE.isOverlayHidden);KE.shouldWaitToHideControls!==void 0&&a(KE.shouldWaitToHideControls);KE.isDragging!==void 0&&w(KE.isDragging);KE.isHovering!==void 0&&k(KE.isHovering);KE.draggedTime!==void 0&&p(KE.draggedTime);KE.hoveredTime!==void 0&&X(KE.hoveredTime);KE.videoDuration!==void 0&&q(KE.videoDuration);KE.playedTime!==
void 0&&M(KE.playedTime);KE.videoId!==void 0&&jQ(KE.videoId);KE.playerState!==void 0&&d8(KE.playerState)},
appApi:_.hae(),playerApi:O})},void 0,"ZW7y9");
_.oW(function(){O==null||O.addEventListener("onVideoProgress",Uje(pE));O==null||O.addEventListener("onVideoDataChange",Xc8(pE));O==null||O.addEventListener("onStateChange",wcq(pE))});
_.so(function(){if(O==null?0:O.isReady())O==null||O.removeEventListener("onVideoProgress",Uje(pE)),O==null||O.removeEventListener("onVideoDataChange",Xc8(pE)),O==null||O.removeEventListener("onStateChange",wcq(pE))});
return _.E("desktop-shorts-player-controls",null,_.E(zR7,{playerControlsProps:pE}))},"Ge");
zR7=_.J1(function(W){var O=W.playerControlsProps;return _.E("div",{class:"desktopShortsPlayerControlsWizHost"},_.E(_.xZ2,{progressBarProps:O,config:function(){return{isShortsPage:!0,hideProgressBar:O().videoDuration<30&&O().playerState!==2&&!O().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"He");_.bO(_.$j2);_.q5P=_.J1(function(W){var O=W.data;return _.E("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.E(_.jf,{command:function(){return O().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.E(_.U,{cond:function(){return O().iconName},
then:function(b){return _.E(_.Ps,{icon:b})}}),_.E("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return O().text}),_.E(_.U,{cond:function(){return O().showEndChevron},
then:function(){return _.E(_.Ps,{icon:"CHEVRON_RIGHT"})}})))},"Ie");var n78=_.J1(function(W){var O=W.data;var b=W.overlayDensity;W={};return _.E("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.E(_.R4,{data:function(){return O().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(T){var L=T.data;
return _.E(_.KA,{data:function(){return(b==null?void 0:b())===1?Object.assign({},L(),{avatar:{avatarViewModel:Object.assign({},_.P(L().avatar,_.Hm),{avatarImageSize:"AVATAR_SIZE_48"})}}):L()}})}}),_.E(_.R4,{data:function(){return O().avatarStackViewModel}},{avatarStackViewModel:function(T){return _.E(_.vd,{data:T.data})}}),_.E(_.uw,{className:_.YS("ytReelChannelBarViewModelChannelName",(W.ytReelChannelBarViewModelChannelNameLarge=function(){return(b==null?void 0:b())===1},W)),
text:function(){return O().channelName},
linkInheritColor:!0,userInput:!0}),_.E("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.E(_.R4,{data:function(){return O().subscribeButtonViewModel}},{subscribeButtonViewModel:function(T){var L=T.data;
return _.E(_.K1,{data:function(){return(b==null?void 0:b())===1?Object.assign({},L(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},L().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):L()},
isOverlay:!1})},
buttonViewModel:_.DO})),_.E("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.E(_.R4,{data:function(){var T,L;return(L=_.P((T=O())==null?void 0:T.sponsorButtonViewModel,GMH))==null?void 0:L.sponsorButton}},{buttonViewModel:function(T){return _.E(_.DO,{data:T.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Je");var fPR=_.J1(function(W){var O={};return _.E("yt-reel-multi-format-link-view-model",{class:_.YS("ytReelMultiFormatLinkViewModelHost",(O.ytReelMultiFormatLinkViewModelHostTall=!0,O.ytReelMultiFormatLinkViewModelHostLarge=function(){var b;return((b=W.overlayDensity)==null?void 0:b.call(W))===1},O))},_.E(_.jf,{ariaLabel:function(){return W.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.xy(W.data().command)},
dangerousStopPropagation:!1},_.E("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.E(_.U,{cond:function(){return W.data().icon},
then:function(b){return _.E(_.uj,{data:b,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.E(_.uw,{text:function(){return W.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Ke");
fPR.idomCompat=!0;var G18=_.J1(function(W){var O=W.data;var b=W.overlayDensity;var T=_.uy();W=_.S(_.wu(!1,void 0,"xDqzhe"));var L=W.next().value,h=W.next().value;W=_.S(_.wu(!1,void 0,"LI9CFd"));var Z=W.next().value,a=W.next().value,m=function(){return O().isMultiLineSa},w=_.wt(pY2,function(){var M,V;
return(V=(M=O().toggleableContent)==null?void 0:M.entityKey)!=null?V:""}),A=function(){var M,V,jQ;
return(jQ=O().toggleableContent)!=null&&jQ.entityKey?(V=(M=w())==null?void 0:M.value)!=null?V:!1:!1},X=function(){var M,V,jQ,y,d8,pE,Qh,KE,fE,r8,nE;
return O().toggleableContent?A()?(M=O().toggleableContent)==null?void 0:M.toggledData:(V=O().toggleableContent)==null?void 0:V.untoggledData:{primaryText:(KE=(jQ=O().defaultContent)==null?void 0:jQ.primaryText)!=null?KE:O().text,secondaryText:(y=O().defaultContent)==null?void 0:y.secondaryText,onTapCommand:(fE=(d8=O().defaultContent)==null?void 0:d8.onTapCommand)!=null?fE:O().onTapCommand,icon:(r8=(pE=O().defaultContent)==null?void 0:pE.icon)!=null?r8:O().icon,image:(nE=(Qh=O().defaultContent)==null?
void 0:Qh.image)!=null?nE:O().image}},l=function(){return m()?O().trailingTapTarget:void 0};
W=function(M,V){return function(){return L()?V:M}};
var p={leadingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:W("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};W={};W=_.YS((W.ytShortsSuggestedActionViewModelStaticHost=function(){return!m()},W.ytShortsSuggestedActionViewModelDynamicHost=m,W.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return m()&&Z()},W.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return m()&&!Z()},W));
_.kX(function(){if(m()){var M=0,V;if((V=O().animationParams)==null?0:V.shouldExpand){var jQ,y;M=((y=(jQ=O().animationParams)==null?void 0:jQ.expansionDelaySecs)!=null?y:0)*1E3}var d8,pE=((d8=O().animationParams)==null?0:d8.shouldExpand)?setTimeout(function(){h(!0)},M):void 0,Qh,KE;
M=((Qh=O().animationParams)==null?0:Qh.visibilityDelaySecs)?((KE=O().animationParams)==null?NaN:KE.visibilityDelaySecs)*1E3:0;var fE=setTimeout(function(){a(!0)},M);
_.so(function(){pE&&clearTimeout(pE);clearTimeout(fE)})}});
var K=function(M){_.nb(M,Object.assign({},{form:{element:T.value}}))},k=_.XL(function(){var M,V=(M=X())==null?void 0:M.onTapCommand;
V&&K(V)}),r=_.XL(function(){var M,V;
if(M=(V=l())==null?void 0:V.onTapCommand)return K(M),!1}),q=_.eE({"vertical-align":"bottom",
"border-radius":function(){var M;return m()?((M=O().defaultContent)==null?0:M.isCircleImage)?"50%":"4px":"0px"},
width:function(){var M,V,jQ;return m()&&((M=O().defaultContent)==null?0:M.imageSize)?((jQ=(V=O().defaultContent)==null?void 0:V.imageSize)!=null?jQ:24)+"px":null},
height:function(){var M,V,jQ;return m()&&((M=O().defaultContent)==null?0:M.imageSize)?((jQ=(V=O().defaultContent)==null?void 0:V.imageSize)!=null?jQ:24)+"px":null}}),f={};
return _.E("yt-shorts-suggested-action-view-model",{class:W,el:T},_.E("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.E("button",{class:_.YS(function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var M;
return(M=O().useFullRoundedBorder)!=null&&M?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!l()&&m()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":m()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var M;
return(M=O().disableFixedHeight)!=null&&M?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(f.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(b==null?void 0:b())===1},f)),
"on:click":k},_.E(_.Kd,{model:{color:4}}),_.E("div",{class:_.YS(function(){return m()?p.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.E(_.U,{cond:function(){var M;
return(M=X())==null?void 0:M.image},
then:function(M){return _.E(_.uj,{data:M,alt:"",className:function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:q})}}),_.E(_.U,{cond:function(){var M,V;
return(M=X())==null?void 0:(V=M.icon)==null?void 0:V.iconType},
then:function(M){return _.E(_.Ps,{icon:M,active:A,className:function(){return m()?L()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.E("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.E(_.U,{cond:function(){var M;
return(M=X())==null?void 0:M.primaryText},
then:function(M){return _.E("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.E(_.uw,{text:M}))}}),_.E(_.U,{cond:function(){var M;
return(M=X())==null?void 0:M.secondaryText},
then:function(M){return _.E("div",{class:p.secondaryText},_.E(_.uw,{text:M}))}}))),_.E(_.U,{cond:l,
then:function(M){return _.E("div",{class:p.trailingSection,"aria-label":function(){var V;return(V=M().a11yLabel)!=null?V:""},
"on:click":r,role:"button",tabindex:0},_.E(_.Kd,{model:{color:4}}),_.E(_.Ps,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Le");var HUg=_.J1(function(W){var O=W.data;var b=W.overlayDensity;var T=_.uy();W=_.XL(function(Z){if(_.JwP(_.qL(Z),T.value,["A".toString()]))return!1;(Z=O().truncatedTextOnTapCommand)&&_.nb(Z);return!1});
var L={},h={};return _.E("yt-shorts-video-title-view-model",{el:T,class:_.YS("ytShortsVideoTitleViewModelHost",(L.ytShortsVideoTitleViewModelHostClickable=function(){return!!O().truncatedTextOnTapCommand},L)),
"on:click":W},_.E("h2",{class:_.YS("ytShortsVideoTitleViewModelShortsVideoTitle",(h.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(b==null?void 0:b())===1},h))},_.E(_.uw,{text:function(){return O().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Me");_.tBg=_.J1(function(W){var O=W.data;var b=W.overlayDensity;return _.E("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.E(_.R4,{data:function(){return O().metadataItems}},{badgeViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(_.cd,{data:T.data}))},
playerDisclosureViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(_.q5P,{data:T.data}))},
shortsSuggestedActionViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(G18,{data:T.data,overlayDensity:b}))},
reelChannelBarViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(n78,{data:T.data,overlayDensity:b}))},
reelMultiFormatLinkViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(fPR,{data:T.data,overlayDensity:b}))},
shortsVideoTitleViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(HUg,{data:T.data,overlayDensity:b}))},
reelSoundMetadataViewModel:function(T){return _.E("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.E(_.ci5,{data:T.data,overlayDensity:b}))}}))},"Ne");var $ZR=_.J1(function(W){var O=_.um(W,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),b=O.size,T=O.onTap,L=O.disabled,h=O.tooltipText;return _.E("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.E(cm,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:b(),disabled:L(),tooltipText:h(),onTap:T}},
iconName:W.iconType}))},"Oe"),VB2=_.J1(function(W){function O(A){A.stopPropagation();
A.code==="ArrowUp"?(A.preventDefault(),ucq(a.value)):A.code==="ArrowDown"?(A.preventDefault(),J2e(a.value)):A.code==="KeyM"?NUQ():(A.code==="KeyK"||A.code==="Space")&&M0i(m())}
var b=_.um(W,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});W=b.previousButtonDisabled;var T=b.nextButtonDisabled,L=b.data,h=b.playabilityStatus,Z=b.previewThumbnail,a=_.uy(),m=_.D3(_.EVX),w;_.oW(function(){(w=_.g4(a.value))&&w.addEventListener("keydown",O)});
_.so(function(){var A;(A=w)==null||A.removeEventListener("keydown",O)});
b=function(){var A,X,l;return(A=L())==null?void 0:(X=A.reelPlayerOverlayRenderer)==null?void 0:(l=X.likeButton)==null?void 0:l.likeButtonRenderer};
return _.E("ytd-shorts-miniplayer-overlay",{el:a,class:"ytdShortsMiniplayerOverlayHost"},_.E("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.eE({"background-image":function(){var A=Z();return A?'url("'+_.jE(A.thumbnails)+'")':""}})}),_.E("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.E("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.E($ZR,{iconType:function(){var A=m();
return A===2||A===-1||A===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){M0i(m())},
tooltipText:function(){var A=m();return A===1||A===3?_.EO("PLAYER_LABEL_PAUSE"):_.EO("PLAYER_LABEL_PLAY")}}),_.E(_.$j2,null)),_.E("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.E($ZR,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:W,onTap:function(){ucq(a.value)},
tooltipText:_.EO("PREVIOUS_VIDEO_LABEL")}),_.E($ZR,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:T,onTap:function(){J2e(a.value)},
tooltipText:_.EO("NEXT_VIDEO_LABEL")}),_.e("web_shorts_pip_like_button")?_.E("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.E(Ry9,{buttonTooltipPosition:"left",data:b,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.E("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.E(_.U,{cond:function(){var A,X;return _.P((A=L())==null?void 0:(X=A.reelPlayerOverlayRenderer)==null?void 0:X.metapanel,
_.CZU)},
then:function(A){return _.E("div",{class:_.YS("ytdShortsMiniplayerOverlayInteractive")},_.E(_.tBg,{data:A}))}})),_.E("div",{class:_.YS("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var A;return!((A=L())==null||!A.adsOverlay)||h()&&!jS2(h())}},_.E("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.E(_.Ckk,null)))),_.E(_.U,{cond:function(){var A=L(),X,l;
A=_.P(A==null?void 0:(X=A.adsOverlay)==null?void 0:(l=X.fulfillmentContent)==null?void 0:l.fulfilledLayout,wRL);return _.P(A==null?void 0:A.renderingContent,e9H)},
then:function(A){return _.E("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.E(gxH,{data:A}))}}))},"Pe");var c2Q=_.J1(function(){var W=_.S(_.wu(new _.hU(NaN,NaN),void 0,"HSMFk")),O=W.next().value,b=W.next().value;W=_.S(_.wu(!1,void 0,"uaAxwf"));var T=W.next().value,L=W.next().value,h=_.S(_.wu(!1,void 0,"nVSwef"));W=h.next().value;var Z=h.next().value,a=_.iq().resolve(_.xq).miniplayerPropSignalMap[0],m=a.data,w=a.shortsData,A=a.nextButtonDisabled,X=a.shortsPreviewThumbnail,l=a.previousButtonDisabled,p=a.externalPlaylistData;h=a.toastData;var K=a.playabilityStatus,k=a.isDisabled,r=a.playerVe,q=a.closeVe;
a=_.D3(_.m9);_.MJ("yt-pip-window-resized",function(jQ){b(jQ)});
_.MJ("yt-activate-pip-miniplayer",function(){return _.I(function(jQ){Z(!0);_.aD(jQ)})});
var f=function(){var jQ;return!((jQ=p())==null||!jQ.contents)&&T()},M=function(){var jQ=O(),y=!!m(),d8=f();
jQ=jQ.clone();y&&(jQ.height-=76);d8&&(jQ.height-=285);return jQ},V=function(){L(!T())};
_.kb(function(){var jQ=r(),y=_.Bb(11),d8=_.sk(11);y&&d8&&jQ&&(_.fV(y,d8,jQ),d8=q())&&(_.GU(y,jQ,[d8]),_.t3(y,[d8]))});
return _.E("ytd-pip-container",{class:"ytdPipContainerHost"},_.E(_.U,{cond:W,then:function(){return _.E(_.y9U,{isDisabled:k,playabilityStatus:K,size:M})}}),_.E(_.U,{cond:m,
then:function(){return _.E(_.c9R,{data:m,expanded:T,onExpandClick:V,playlistData:p})}}),_.E(_.U,{cond:f,
then:function(){return _.E("div",{class:"ytdPipContainerPlaylistPanel"},_.E(_.PY5,{data:p,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.E(_.U,{cond:a,
then:function(){return _.E(VB2,{data:w,nextButtonDisabled:A,previousButtonDisabled:l,playabilityStatus:K,previewThumbnail:X})}}),_.E("div",{class:"ytdPipContainerToast"},_.E(_.W8g,{toastData:h})))},"Qe");var eF=function(W,O){var b=this;this.pipController=W;this.JSC$16461_clientRoot=O;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=bnT();this.watchPipEnabled=_.e("web_watch_pip");this.shortsPipEnabled=_.e("web_shorts_pip");this.JSC$16461_watchWhileEnabled=_.e("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;_.mr(_.uv(),_.ImP,function(T){b.isSingleOptionSurveyActive=T});
this.JSC$16461_onPlayerPlayVideo=this.JSC$16461_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);_.Vj(_.$G.getInstance(),this.miniplayerServiceActionMap,this.JSC$16461_clientRoot);W.pictureInPictureSupported()&&_.BZ("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},jfv,i01,F8B,b0k,jR9,Ldf;
eF.prototype.handleMediaSessionPipActivation=function(){var W=this,O;return _.I(function(b){_.IT().mediaSessionPipActivation=!0;O=_.iq().resolve(_.cs);return O.isOnWatch()&&W.watchPipEnabled?(_.IT().watchPipActivation=!0,_.Ng5(W,O.data),b.jumpTo(0)):O.isOnShorts()&&W.shortsPipEnabled?(_.IT().shortsPipActivation=!0,_.MB5(W),b.jumpTo(0)):W.isMiniplayerActive()&&W.watchPipEnabled&&!W.watchWhileMode?_.Y(b,uDk(W),0):b.jumpTo(0)})};
var uDk=function(W){var O,b,T,L;return _.I(function(h){if(h.nextAddress==1)return O=!W.miniplayerToPipMode,b=W.playerElement,T=W.miniplayerData,L=W.watchResponse,_.Y(h,W.deactivate(),2);if(h.nextAddress!=3)return O?(_.IT().mediaSessionPipActivation=!0,_.IT().watchPipActivation=!0):_.IT().miniplayerButtonActivation=!0,_.Y(h,W.activate(b,T,L),3);W.miniplayerToPipMode=O;_.aD(h)})};
eF.prototype.onDownloadedVideoDeleted=function(W){var O,b=_.P((O=this.miniplayerData)==null?void 0:O.watchEndpoint,_.V3),T,L;b&&((T=this.watchResponse)==null?void 0:(L=T.playerResponse)==null?void 0:L.offlineState)!==void 0&&(O=b.videoId)&&W&&O===W&&this.close()};
eF.prototype.onShowMiniplayerCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X,l,p,K;return _.I(function(k){switch(k.nextAddress){case 1:return b=_.P(W,gHH),L=(T=b)==null?void 0:T.miniplayerCommand,h=_.P(L,_.V3),L&&h&&!O.active?_.Y(k,_.lh.getInstance(),2):k.return();case 2:return Z=k.yieldResult,_.Y(k,(a=Z)==null?void 0:a.get("yt-miniplayer-shown-video-id"),3);case 3:m=k.yieldResult;w=h.videoId;if(!w||m===w)return k.return();A=_.iq().resolve(_.cs);if(A.isOnWatch())return _.z5(Error("Cj")),k.return();
X={channelItem:{externalId:btoa(w)}};O.readyToResumeVe=_.gd(121253,void 0,void 0,X);_.IT().showMiniplayerCommandActivation=!0;return _.Y(k,_.dKw(O,L,!0),4);case 4:return O.active?(_.Pp(O,{readyToResumeVe:O.readyToResumeVe,continueWatching:!0,premiumBranding:!((l=b)==null||!l.showPremiumBranding)}),_.e("ytd_miniplayer_to_wiz")&&_.Pp(O,{isReadyToResume:!0}),O.isReadyToResume=!0):_.Pp(O,{continueWatching:!0,premiumBranding:!((p=b)==null||!p.showPremiumBranding)}),_.Y(k,(K=Z)==null?void 0:K.set("yt-miniplayer-shown-video-id",
h.videoId),5);case 5:O.readyToResumeVe=void 0,_.aD(k)}})};
eF.prototype.init=function(W){this.miniplayerEl?_.z5(new _.pu("MiniplayerService already initialized.")):this.miniplayerEl=W};
eF.prototype.isInitialized=function(){var W=!!this.miniplayerEl;W||_.z5(new _.pu("MiniplayerService used before initialized."));return W};
_.Ng5=function(W,O){if(W.isInitialized()){var b=_.LP2(O.response,O.playerResponse),T=_.iq().resolve(_.cs).getPlayerFromWatch();_.IT().currentEndpoint=b.watchEndpoint||null;W.activate(T,b,O)}};
_.MB5=function(W){if(W.isInitialized()){var O=_.iq().resolve(_.cs).getPlayerFromShorts();W.activate(O)}};
jfv=function(W,O){var b;(b=!W.isInitialized())||(b=_.iq().resolve(_.cs).isOnWatch()&&W.watchPipMode,b=!(W.isMiniplayerActive()&&(_.IT().userActivation||_.IT().lockupActivation||b)));if(b)return!1;Jg5(W,O)?_.X_(W):Ldf(W,O);return W.watchPipMode?!_.iq().resolve(_.cs).isOnWatch():!0};
eF.prototype.isMiniplayerActive=function(){return this.active};
var Jg5=function(W,O){var b;O=(b=_.P(O,_.V3))==null?void 0:b.videoId;var T,L;W=(L=_.P((T=W.miniplayerData)==null?void 0:T.watchEndpoint,_.V3))==null?void 0:L.videoId;return O!=null&&O===W};
eF.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.bX(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.jx(this.miniplayerEl,"yt-navigate-home-action"))};
_.dKw=function(W,O,b,T){b=b===void 0?!1:b;var L,h,Z;return _.I(function(a){switch(a.nextAddress){case 1:if(W.active){a.jumpTo(2);break}L=_.iq().resolve(_.cs);if(Z=(h=W.playerElement)!=null?h:L.getPlayerFromWatch()){a.jumpTo(3);break}return _.Y(a,_.iq().resolve(_.jk),4);case 4:Z=L.getPlayerFromWatch();case 3:if(!Z){_.z5(Error("Ej"));a.jumpTo(2);break}return _.Y(a,W.activate(Z,T),2);case 2:return W.active?_.Y(a,Ldf(W,O,b),0):a.return()}})};
eF.prototype.activate=function(W,O,b){var T=this,L,h,Z,a,m,w,A,X,l;return _.I(function(p){switch(p.nextAddress){case 1:if(!T.isInitialized())return p.return();if(!W)return _.z5(Error("Ej")),p.return();if(_.rWn()||T.isMiniplayerActive())var K=!0;else K=_.IT().watchPipActivation||_.IT().watchWhileActivation,_.iq().resolve(_.cs).isOnWatch()&&!K?(_.z5(new _.pu("miniplayer activated on watch page")),K=!0):K=_.IT().watchWhileActivation?T.userDeactivatedWatchWhile||!!document.pictureInPictureElement||quh():
!1;if(K)return Bw7(),p.return();L=_.IT().mediaSessionPipActivation;h=_.IT().shortsPipActivation;Z=_.IT().watchPipActivation;m=(a=_.IT().watchWhileActivation)||Z;w=Z||h;if(!T.pictureInPictureEnabled()||!w){p.jumpTo(2);break}return _.Y(p,cgD(T,L),3);case 3:if(!p.yieldResult)return _.z5(Error("Dj")),Bw7(),p.return();case 2:return T.setActive(!0),T.watchResponse=b,T.playerElement=W,T.updateMiniplayerData(O),_.Y(p,F8B(T,W),4);case 4:if(!T.active)return _.z5(new _.pu("miniplayer deactivated during activation")),
T.removePlayerListeners(),p.return();K=_.iq().resolve(_.kP);K.addEventListener("yt-navigate",_.Ii(T,T.onPlaylistNavigate));K.addEventListener("yt-playlist-data-updated",_.Ii(T,T.JSC$16461_onPlaylistDataUpdated));T.JSC$16461_onPlaylistDataUpdated();Bw7();T.JSC$16461_watchWhileEnabled&&_.yg5(T,a);T.pictureInPictureEnabled()&&T.shortsPipEnabled&&(T.shortsPipMode=h,_.uv().dispatch(U5N(T.shortsPipMode)));T.pictureInPictureEnabled()&&T.watchPipEnabled&&(T.watchPipMode=Z,_.f4T(T.handleMediaSessionPipActivation));
T.player&&(A=T.player.getPlayerState(),X=A===1,_.uv().dispatch(oof(A)),_.TU(T.miniplayerEl,"yt-miniplayer-play-state-changed",[X]),_.IT().isVideoPlaying=X);_.TU(T.miniplayerEl,"yt-miniplayer-endpoint-changed");W7B(T);_.O0g(T);return T.shortsPipMode||T.watchPipMode?_.Y(p,_.LV(T.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.e("ytd_miniplayer_to_wiz")?_.Y(p,_.LV(T.miniplayerEl,"yt-activate-miniplayer",[m]),6):_.Y(p,_.LV(T.miniplayerEl,"yt-activate-miniplayer-action",[W,m]),6);case 6:if(T.watchResponse&&
!_.e("miniplayer_copy_screen_on_activation_killswitch")){K=T.getScreenLayer();var k=_.Bb(0),r=YRe(0);k&&r&&(_.Du(k,r,K),K===0&&aBX(void 0,0))}i01(T);b0k(T,!0);(l=T.getPlayerElement())==null||l.focusOnPlayer();_.aD(p)}})};
eF.prototype.updateMiniplayerData=function(W){this.miniplayerData=W;_.Pp(this,{data:W})};
_.O0g=function(W){var O,b,T=((O=W.miniplayerData)==null?void 0:(b=O.miniplayerRenderer)==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";O=W.watchWhileMode||W.watchPipMode?T&&!_.iq().resolve(_.cs).isOnWatch():T;_.Pp(W,{isDisabled:O});var L,h;b=_.P((L=W.miniplayerData)==null?void 0:(h=L.miniplayerRenderer)==null?void 0:h.minimizedEndpoint,_.pN);O&&b&&_.iq().resolve(_.p1).openSheet({openPopupActionCommand:{openPopupAction:b}},W.miniplayerEl)};
i01=function(W){if(W.watchResponse&&!jR9(W)){var O,b=(O=W.watchResponse.playerResponse)==null?void 0:O.trackingParams;b&&(_.Pp(W,{expandVe:_.gd(35989),closeVe:_.gd(34699),readyToResumeCloseVe:_.gd(131070),repositionVe:_.gd(226204),resizeVe:_.gd(226205)}),_.Pp(W,{playerVe:_.Pi(b)}))}};
F8B=function(W,O){return _.I(function(b){if(b.nextAddress==1)return O.preparePlayer(),_.Y(b,O.getPlayerPromise(),2);W.player=b.yieldResult;W.player&&(W.player.addEventListener("onPlayVideo",W.JSC$16461_onPlayerPlayVideo),W.player.addEventListener("onCloseMiniplayer",W.onPlayerCloseMiniplayer),W.player.addEventListener("onExpandMiniplayer",W.onPlayerExpandMiniplayer),W.player.addEventListener("onStateChange",W.onPlayerStateChange));_.aD(b)})};
_.d=eF.prototype;_.d.JSC$16461_onPlayerPlayVideo=function(W){var O=W.sessionData&&"autonav"in W.sessionData,b;W.sessionData&&W.sessionData.itct&&(b=W.sessionData.itct);var T=W.watchEndpoint;O=T&&O?_.gD1(T,b):_.Or(W.videoId,W.listId||void 0,b);W.sessionData&&_.JC(_.P(O.commandMetadata,_.F9).url,W.sessionData);Ldf(this,O)};
_.d.onPlayerExpandMiniplayer=function(){_.X_(this)};
_.d.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.d.onPlayerStateChange=function(){if(this.player){var W=this.player.getPlayerState(),O=W===1;_.uv().dispatch(oof(W));_.uv().dispatch(_.klw(W));_.TU(this.miniplayerEl,"yt-miniplayer-play-state-changed",[O]);_.IT().isVideoPlaying=O;if(W===0){O=!_.NN.getInstance().isAutoplaySetExplicitly();var b,T,L,h,Z,a,m=(b=this.watchResponse.response)==null?void 0:(T=b.contents)==null?void 0:(L=T.twoColumnWatchNextResults)==null?void 0:(h=L.autoplay)==null?void 0:(Z=h.autoplay)==null?void 0:(a=Z.autoplayExplicitChoiceDialogRenderer)==
null?void 0:a.confirmDialogRenderer;O&&m&&this.player.setAutonavState(1)}W===0&&this.watchWhileMode&&this.deactivate()}};
_.d.onPlaylistNavigate=function(W,O){var b=this,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1){if(!_.P(O.endpoint,_.V3))return A.return();_.IT().currentEndpoint=O.endpoint;_.TU(b.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.iq().resolve(_.cs).isOnWatch()&&(b.watchWhileMode||b.watchPipMode))return A.return();W.stopPropagation();(h=(L=_.P((T=O.endpoint)==null?void 0:T.commandMetadata,_.F9))==null?void 0:L.url)&&O.tempData&&!_.PQ.isEmpty(O.tempData)&&_.JC(h,O.tempData);Z={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};a=new BTH(function(){return b.getPlayerElement()},Z,{layer:b.getScreenLayer()});
m=function(X){a.processChunk({endpoint:O.endpoint,data:X})};
TAP(b);b.miniplayerFetchRequest=L7g(b,O.endpoint,m);_.LI(A,2);return _.Y(A,b.miniplayerFetchRequest,4)}if(A.nextAddress!=2)return w=A.yieldResult,dAD(b,w),_.H3(A,0);_.ID(A);_.aD(A)})};
_.d.JSC$16461_onPlaylistDataUpdated=function(){var W=_.iq().resolve(_.kP).getPlaylistData();this.hasPlaylistData=!!W;_.Pp(this,{externalPlaylistData:W||{}})};
_.d.close=function(W){if(this.isInitialized())if(W){if(!((this.watchWhileMode||this.watchPipMode)&&_.iq().resolve(_.cs).isOnWatch()||this.shortsPipMode)){var O;(O=this.getPlayerElement())==null||O.stop()}this.deactivate()}else _.xP().closeMiniplayer(this.miniplayerEl)};
_.d.deactivate=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){if(!O.isInitialized()||!O.active)return Z.return();O.setActive(!1);TAP(O);(b=!!W&&Jg5(O,W))&&O.isSingleOptionSurveyActive&&_.jx(O.miniplayerEl,"yt-show-watch-page-survey",[O.isSingleOptionSurveyActive]);return _.Y(Z,hk7(O),2)}if(Z.nextAddress!=3){b0k(O,!1);O.isReadyToResume=!1;O.watchResponse=void 0;O.updateMiniplayerData(void 0);O.shortsPipMode&&(O.shortsPipMode=!1,_.uv().dispatch(U5N(O.shortsPipMode)),kt5(O.pipController),
(T=O.player)==null||T.setInternalSize(NaN,NaN));O.watchPipMode&&(O.watchPipMode=!1,kt5(O.pipController));(L=O.watchWhileMode)&&_.yg5(O,!1);O.removePlayerListeners();var a=_.iq().resolve(_.kP);a.removeEventListener("yt-navigate",_.Ii(O,O.onPlaylistNavigate));a.removeEventListener("yt-playlist-data-updated",_.Ii(O,O.JSC$16461_onPlaylistDataUpdated));_.IT().currentEndpoint=null;_.TU(O.miniplayerEl,"yt-miniplayer-endpoint-changed");O.playerElement=null;Bw7();return O.shortsPipMode||O.watchPipMode?Z.jumpTo(3):
_.Y(Z,_.LV(O.miniplayerEl,_.e("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[b,L]),3)}(h=O.player)==null||h.setInternalSize(NaN,NaN);O.player=null;_.aD(Z)})};
var hk7=function(W){var O;return _.I(function(b){O=_.iq().resolve(_.cs);return W.shortsPipMode?_.Y(b,O.movePlayerToShorts(W.playerElement),0):_.Y(b,O.movePlayerToWatch(W.playerElement),0)})};
eF.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16461_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
eF.prototype.setActive=function(W){this.active=W;this.isSingleOptionSurveyActive?_.jx(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.jx(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.uv().dispatch(_.Tc({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.yg5=function(W,O){W.watchWhileMode=O;_.Pp(W,{watchWhile:O})};
b0k=function(W,O){if(!jR9(W))if(W.shortsPipMode||W.watchPipMode){var b;(b=W.player)==null||b.setDocumentPictureInPicture(O)}else{var T;(T=W.player)==null||T.setMinimized(O)}};
jR9=function(W){return W.watchWhileMode&&_.e("kevlar_watch_while_counterfactual")};
_.X_=function(W){var O;return _.I(function(b){switch(b.nextAddress){case 1:if(!W.isInitialized())return b.return();_.LI(b,2);return _.Y(b,W.miniplayerFetchRequest,4);case 4:_.H3(b,3);break;case 2:_.ID(b);case 3:W.watchResponse&&W.miniplayerData&&W.miniplayerData.watchEndpoint?(O={url:W.watchResponse.url,endpoint:W.miniplayerData.watchEndpoint,data:W.watchResponse,miniplayer:!0},_.bX(W.miniplayerEl,"yt-navigate-cache",O)):W.miniplayerData&&W.miniplayerData.watchEndpoint&&_.bX(W.miniplayerEl,"yt-navigate",
{endpoint:W.miniplayerData.watchEndpoint}),_.aD(b)}})};
Ldf=function(W,O,b){var T,L,h,Z;return _.I(function(a){if(a.nextAddress==1){if(Jg5(W,O))return a.return();_.IT().currentEndpoint=O;_.TU(W.miniplayerEl,"yt-miniplayer-endpoint-changed");_.TU(W.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.IT().isVideoPlaying=!1;T={clientParams:{miniplayer:!0,autoSaveToQueue:!b}};L=new BTH(function(){return W.getPlayerElement()},T,{layer:W.getScreenLayer(),
parentLayer:0},void 0,W.readyToResumeVe);h=function(m){var w,A,X=Object.assign({},(w=m.playerResponse)==null?void 0:(A=w.playerConfig)==null?void 0:A.playbackStartConfig,{startPaused:!0}),l;b&&((l=m.playerResponse)==null?0:l.playerConfig)&&(m.playerResponse.playerConfig.playbackStartConfig=X);L.processChunk({endpoint:O,data:m})};
TAP(W);W.miniplayerFetchRequest=L7g(W,O,h);_.LI(a,2);return _.Y(a,W.miniplayerFetchRequest,4)}if(a.nextAddress!=2)return Z=a.yieldResult,dAD(W,Z),_.H3(a,0);_.ID(a);_.aD(a)})};
eF.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var TAP=function(W){W.miniplayerFetchRequest&&(W.miniplayerFetchRequest.cancel&&W.miniplayerFetchRequest.cancel("Active request obsolete"),W.miniplayerFetchRequest=null)},L7g=function(W,O,b){var T=_.Y_.instance,L,h=(L=_.P(O.commandMetadata,_.F9))==null?void 0:L.url,Z;
L=!h||_.e("disable_miniplayer_tempdata")?{}:(Z=OWE(h))!=null?Z:{};return qc(T,O,L,window.location.href,"watch",function(a,m){b(m)},function(a){return a!==W.miniplayerFetchRequest})},dAD=function(W,O){var b;
_.I(function(T){if(!O)return T.return();W.watchResponse=O;i01(W);W7B(W);b=_.LP2(O.response,O.playerResponse);if(W.isMiniplayerActive()){O.response&&(W.playerElement.watchNextData=O.response);var L=_.PQ.getValueByKeys.apply(_.PQ,[O].concat(_.PG(Hhv)));_.PQ.getValueByKeys.apply(_.PQ,[O].concat(_.PG(MTf)))&&L&&_.iq().resolve(_.kP).setAutoplayRenderer(L);if(L)if(_.e("kevlar_is_pupi_enabled")){var h,Z,a,m,w,A=((h=O.response)==null?0:(Z=h.playerOverlays)==null?0:(a=Z.playerOverlayRenderer)==null?0:(m=a.autonavToggle)==
null?0:(w=m.autoplaySwitchButtonRenderer)==null?0:w.enabled)?2:1;_.NN.getInstance().setState(A,!1,!1)}else h=Y$q()?2:1,(A=W.player)==null||A.setAutonavState(h);W.updateMiniplayerData(b);_.O0g(W)}_.aD(T)})},W7B=function(W){var O,b,T=(O=W.watchResponse)==null?void 0:(b=O.playerResponse)==null?void 0:b.playabilityStatus,L;
O=T==null?void 0:(L=T.miniplayer)==null?void 0:L.miniplayerRenderer;(O==null?void 0:O.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&O.minimizedEndpoint&&_.da(W.miniplayerEl,[O.minimizedEndpoint]);_.Pp(W,{miniplayerRenderer:O,playabilityStatus:T})};
eF.prototype.openToast=function(W,O){_.Pp(this,{toastData:{data:W,label:O}})};
_.Pp=function(W,O){var b=W.miniplayerEl,T;for(T in O)b[T]=O[T];(0,W.miniplayerPropSignalMap[1])(O)};
eF.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var W;return this.playerElement?this.playerElement:(W=_.Q(this.miniplayerEl).querySelector("#player-container"))==null?void 0:W.firstElementChild};
eF.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var cgD=function(W,O){O=O===void 0?!1:O;var b,T,L,h,Z,a,m;return _.I(function(w){if(w.nextAddress==1){b=navigator.userActivation.isActive||O;if(!b||!W.pictureInPictureSupported())return w.return(!1);T=StR(W);L=T.width;h=T.height;return _.Y(w,W.pipController.openWindow({width:L,height:h}),2)}Z=w.yieldResult;a=W.pipController.getWindow();if(!a||!Z)return w.return(!1);a.document.body.style.overflow="hidden";m=FP2(a);sY5(W.pipController,function(){Z05(W);m()});
return w.return(!0)})},StR=function(W){var O=_.IT().shortsPipActivation,b,T;
W=O?.5625:(T=(b=W.player)==null?void 0:b.getVideoAspectRatio())!=null?T:16/9;b=Math.min(window.innerWidth,window.innerHeight)/2;O=O?0:76;return W>1?new _.hU(b,O+b/W):new _.hU(b*W,O+b)},Z05=function(W){var O;
_.I(function(b){O=_.iq().resolve(_.cs);return O.isOnWatch()&&W.watchPipMode||O.isOnShorts()&&W.shortsPipMode?_.Y(b,W.deactivate(),0):W.miniplayerToPipMode?_.Y(b,uDk(W),0):W.watchPipMode?_.Y(b,_.X_(W),0):b.jumpTo(0)})};
eF.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Jq.Object.defineProperties(eF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
eF[NV]=[BhU,OCL];var IG5="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(" "),
aGP="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(" "),mA8="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
Ytg="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var EhR=null;var wM8={},AA8=(wM8.initialized={priority:10,callback:function(W){var O=_.iq();O.addProvider({provide:HIn,useClass:QqR});O.addProvider({provide:_.oT2,useFactory:function(){return new tP5}});
O.addProvider({provide:Xh,useValue:_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});O.addProvider({provide:HsU,useValue:5184E6});O.addProvider({provide:jhL,useValue:_.KD()});O.addProvider({provide:Yyz,useClass:wWq});O.addProvider({provide:rZ,useClass:rZ});O.addProvider({provide:_.jk,useFactory:function(){return eV5.promise}});
O.addProvider({provide:_.pw7,useFactory:function(){return _.PoU.promise}});
O.addProvider({provide:Rze,useValue:function(){var a;return((a=_.ya())==null?void 0:a.getPlayer())||null}});
var b={};O.addProvider((b.provide=_.GQ,b.useFactory=function(a,m){return function(){return pn1(a,m)}},b[NV]=[Xh,
HsU],b));b={};O.addProvider((b.provide=_.TO,b.useClass=Qhv,b[NV]=[Xh,HsU],b));b={};O.addProvider((b.provide=_.aa1,b.useClass=rkq,b[NV]=[_.TO],b));O.addProvider({provide:S_,useFactory:_.uv});O.addProvider({provide:hs,useFactory:_.uv});O.addProvider({provide:Ai1,useFactory:_.uv});O.addProvider({provide:jb$,useFactory:_.uv});O.addProvider({provide:_.sZ,useFactory:_.uv});O.addProvider({provide:dB,useValue:_.Y9});O.addProvider({provide:p22,useClass:XgO});O.addProvider({provide:PAL,useClass:eEz});O.addProvider({provide:gs,
useClass:gs});O.addProvider({provide:he,useClass:he});O.addProvider({provide:Su,useClass:Su});O.addProvider({provide:IL,useClass:IL});O.addProvider({provide:Do,useClass:Do});O.addProvider({provide:Yp,useClass:Yp});O.addProvider({provide:Wa,useClass:Wa});O.addProvider({provide:XK$,useValue:HH1});O.addProvider({provide:_.ef,useFactory:_.A4});O.addProvider({provide:Mb,useFactory:_.Xt});b={};O.addProvider((b.provide=VIh,b.useFactory=function(a){return function(m){var w=w===void 0?{}:w;var A,X,l=(X=_.P((A=
m.endpoint)==null?void 0:A.commandMetadata,_.F9))==null?void 0:X.rootVe;if(l){var p,K;if(A=m.previousCsn||((K=_.P((p=m.endpoint)==null?void 0:p.commandMetadata,duf))==null?void 0:K.parentCsn)){var k=k===void 0?{}:k;if(A!==_.Bb(k.layer)||l!==YRe(k.layer))UnO(A,k.cttAuthInfo,k.layer||0),aBX(A,k.layer||0),p=k.layer||0,_.zT(mnO(p===void 0?0:p),l);w.parentCsn=A}m.endpoint&&A?XP9(a,m.endpoint,w):_.bh(a,l,void 0,w);var r;((r=m.response)==null?0:r.trackingParams)&&a.graftServerVe(m.response.trackingParams);
var q;((q=m.playerResponse)==null?0:q.trackingParams)&&a.graftServerVe(m.playerResponse.trackingParams);var f;((f=m.reelWatchSequenceResponse)==null?0:f.trackingParams)&&a.graftServerVe(m.reelWatchSequenceResponse.trackingParams)}}},b[NV]=[_.ef],b));
b={};O.addProvider((b.provide=U4f,b.useClass=XzU,b[NV]=[dB,_.sZ],b));b={};O.addProvider((b.provide=yp,b.useClass=yp,b[NV]=[_.jk,_.sZ],b));b={};O.addProvider((b.provide=ug,b.useClass=ug,b[NV]=[hs,_.bq],b));O.addProvider({provide:_.Kiq,useClass:D49});b={};O.addProvider((b.provide=_.P$,b.useClass=omL,b[NV]=[_.Kiq],b));O.addProvider({provide:_.p1,useClass:i0});O.addProvider({provide:yBq,useClass:aiR});O.addProvider({provide:_.RC,useClass:Wp});b={};O.addProvider((b.provide=_.tM,b.useClass=riw,b[NV]=[_.tM],
b));O.addProvider({provide:_.We,useClass:E55});O.addProvider({provide:YZ,useClass:YZ});O.addProvider({provide:lS,useClass:lS});O.addProvider({provide:oj,useClass:OG});b={};O.addProvider((b.provide=sc,b.useClass=sc,b[NV]=[_.p1,oj],b));_.e("web_enable_feedback_endpoint_resolver")&&(b={},O.addProvider((b.provide=ZD,b.useClass=ZD,b[NV]=[S_,hM],b)),O.addProvider({provide:hM,useClass:xFf}));_.e("web_enable_feedback_endpoint_resolver_batch_2")&&(b={},O.addProvider((b.provide=aj,b.useClass=aj,b[NV]=[S_],
b)),b={},O.addProvider((b.provide=Ij,b.useClass=Ij,b[NV]=[hM],b)));b={};O.addProvider((b.provide=Q1,b.useClass=Q1,b[NV]=[_.RC,oj],b));b={};O.addProvider((b.provide=Rj,b.useClass=Rj,b[NV]=[_.RC],b));b={};O.addProvider((b.provide=kZ,b.useClass=kZ,b[NV]=[_.sP,_.P$],b));b={};O.addProvider((b.provide=gH,b.useClass=gH,b[NV]=[_.sP,_.ef],b));O.addProvider({provide:Wu,useClass:Wu});b={};O.addProvider((b.provide=Nb,b.useClass=Nb,b[NV]=[S_],b));O.addProvider({provide:m6,useClass:m6});b={};O.addProvider((b.provide=
Ej,b.useClass=Ej,b[NV]=[S_],b));b={};O.addProvider((b.provide=wL,b.useClass=wL,b[NV]=[_.sP,S_],b));b={};O.addProvider((b.provide=A7,b.useClass=A7,b[NV]=[S_],b));b={};O.addProvider((b.provide=XI,b.useClass=XI,b[NV]=[S_],b));b={};O.addProvider((b.provide=KG,b.useClass=KG,b[NV]=[_.P$],b));b={};O.addProvider((b.provide=Te,b.useClass=Te,b[NV]=[_.ef],b));b={};O.addProvider((b.provide=IO,b.useClass=IO,b[NV]=[Fh],b));b={};O.addProvider((b.provide=aO,b.useClass=aO,b[NV]=[Fh],b));O.addProvider({provide:h7,
useClass:h7});O.addProvider({provide:Sh,useClass:Sh});O.addProvider({provide:jh,useClass:jh});b={};O.addProvider((b.provide=Bv,b.useClass=Bv,b[NV]=[_.P$,_.bq],b));O.addProvider({provide:AM,useClass:AM});b={};O.addProvider((b.provide=vv,b.useClass=vv,b[NV]=[_.sP,_.P$],b));O.addProvider({provide:e_,useClass:e_});b={};O.addProvider((b.provide=$Z,b.useClass=$Z,b[NV]=[S_,_.sP,_.tM],b));b={};O.addProvider((b.provide=GV,b.useClass=GV,b[NV]=[_.sP,_.bq],b));O.addProvider({provide:tFf,useValue:nrq});O.addProvider({provide:u_H,
useValue:yy1});O.addProvider({provide:Hv,useClass:Hv});b={};O.addProvider((b.provide=fG,b.useClass=fG,b[NV]=[S_],b));b={};O.addProvider((b.provide=V1,b.useClass=V1,b[NV]=[_.We,_.bq],b));b={};O.addProvider((b.provide=mT,b.useClass=mT,b[NV]=[_.bq],b));O.addProvider({provide:dH,useFactory:function(){return new dH(_.uv())}});
O.addProvider({provide:wJ1,useFactory:_.ou.getInstance});b={};O.addProvider((b.provide=Uc,b.useClass=Uc,b[NV]=[Xh,wJ1,_.bq],b));O.addProvider({provide:Ec,useClass:Ec});O.addProvider({provide:iS,useClass:iS});O.addProvider({provide:j_,useClass:j_});O.addProvider({provide:_.bS,useClass:_.bS});O.addProvider({provide:eh,useClass:eh});b={};O.addProvider((b.provide=CG,b.useClass=CG,b[NV]=[hs],b));b={};O.addProvider((b.provide=qb,b.useClass=qb,b[NV]=[_.bq],b));_.e("web_enable_prefetching_videos_on_home")&&
(O.addProvider({provide:M_,useClass:M_}),O.addProvider({provide:ag,useClass:ag}));b={};O.addProvider((b.provide=lR,b.useClass=lR,b[NV]=[_.bq],b));O.addProvider({provide:TV,useClass:TV});b={};O.addProvider((b.provide=Oj,b.useClass=Oj,b[NV]=[_.sP,_.bq],b));b={};O.addProvider((b.provide=LG,b.useClass=LG,b[NV]=[_.bq],b));O.addProvider({provide:mv,useClass:mv});O.addProvider({provide:xZ,useClass:xZ});b={};O.addProvider((b.provide=DD,b.useClass=DD,b[NV]=[hs,_.bq],b));b={};O.addProvider((b.provide=RO,b.useClass=
RO,b[NV]=[hs,_.bq,_.sP],b));b={};O.addProvider((b.provide=KM,b.useClass=KM,b[NV]=[_.bq],b));b={};O.addProvider((b.provide=pM,b.useClass=pM,b[NV]=[_.bq,_.sP],b));b={};O.addProvider((b.provide=nG,b.useClass=nG,b[NV]=[_.jk],b));b={};O.addProvider((b.provide=zV,b.useClass=zV,b[NV]=[_.jk],b));O.addProvider({provide:cv,useClass:cv});O.addProvider({provide:y1,useClass:y1});O.addProvider({provide:YD,useClass:YD});O.addProvider({provide:iR,useClass:iR});O.addProvider({provide:JM,useClass:JM});O.addProvider({provide:Pv,
useClass:Pv});O.addProvider({provide:uS,useClass:uS});_.e("kevlar_enable_mss_lazy_load")&&O.addProvider({provide:_.CD,useClass:Sv9});O.addProvider({provide:_.aL,useClass:jF});O.addProvider({provide:Vg,useFactory:function(){return _.$G.getInstance()}});
O.addProvider({provide:Emf,useFactory:Cz2});O.addProvider({provide:Fh,useFactory:function(){return _.lh.getInstance()}});
O.addProvider({provide:Yhz,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});b={};O.addProvider((b.provide=_.Jl,b.useClass=_.Jl,b[NV]=[_.jk,_.bq,_.ef,Emf,Fh,Vg,Yhz,dB],b));O.addProvider({provide:_.Zs,useClass:qjU});O.addProvider({provide:_.$F$,useClass:tMU});b={};O.addProvider((b.provide=pG,b.useClass=pG,b[NV]=[_.$F$],b));b={};O.addProvider((b.provide=_.c8,b.useFactory=function(a){return a.upliftCompletionResolver.promise},b[NV]=[U4f],b));
b=_.qC("IS_SHELL_LOAD")?"aa":"eocs";var T=_.qC("IS_SHELL_LOAD")?3:2;_.BH().parkOrScheduleJob(function(){eO1()},T,b);
_.BH().parkOrScheduleJob(function(){_.iq().resolve(yp).start()},2,"eocs");
_.BH().parkOrScheduleJob(function(){wz1()},2,"eocs");
_.BH().parkOrScheduleJob(function(){_.iq().resolve(ug).start()},2,"eocs");
_.e("kevlar_debug_data_app_registration_ks")||J7P();O.addProvider({provide:_.Qa,useValue:new gw5(W.root)});O.addProvider({provide:HZ,useValue:new zb8});O.addProvider({provide:_.xxq,useValue:new rhL(W.root)});O.addProvider({provide:_.k1,useValue:new Dxn});O.addProvider({provide:_.wB,useClass:YY});O.addProvider({provide:BhU,useClass:b0});_.e("kevlar_network_sli_killswitch")||O.addProvider({provide:DPP,useValue:bQz});O.addProvider({provide:R8N,useFactory:Kt1});_.e("web_bind_fetch")&&(b={},O.addProvider((b.provide=
KX9,b.useFactory=vn8,b[NV]=[_.OT(R8N)],b)));_.e("web_bind_parse")&&(b={},O.addProvider((b.provide=vT9,b.useFactory=gn2,b[NV]=[_.OT(R8N)],b)));_.e("web_bind_window_request")&&(b={},O.addProvider((b.provide=gTN,b.useFactory=on8,b[NV]=[_.OT(R8N)],b)));b={};O.addProvider((b.provide=hMz,b.useFactory=Ha1,b[NV]=[_.c8,S_,_.GQ],b));b={};O.addProvider((b.provide=d7f,b.useClass=vu,b[NV]=[hMz],b));O.addProvider({provide:pK1,useClass:U7n});O.addProvider({provide:bJq,useClass:T_7});b=[].concat(_.PG(Va));_.e("web_continuation_response_processing")&&
b.push(_.Cd);b.push(oV$);_.e("enable_share_panel_navigation_logging_fix_on_web")&&b.push(_.FOH);O.addProvider({provide:aZ1,useValue:b});O.addProvider({provide:UYO,useClass:iJ7});O.addProvider({provide:qeZ,useClass:xP7});b={};O.addProvider((b.provide=ELO,b.useClass=V15,b[NV]=[hs],b));_.sF.addLowPriorityJob(function(){ZjO()});
b={};O.addProvider((b.provide=dow,b.useFactory=function(a){return function(m){var w,A=(w=_.P(m.commandMetadata,_.F9))==null?void 0:w.url;if(!A)throw new _.pu("No URL for PBJ Command",m);A=wB1(A,{pbj:"1"});w=DyX(A,{})||{};w=Object.assign({},w,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Cv("STS").toString()});m=_.ET({command:JSON.stringify(m),session_token:_.Cv("XSRF_TOKEN")});return a.fetch(A,{method:"POST",headers:w,body:m})}},b[NV]=[qeZ],b));
b=[];b.push(O.resolve(bJq));T={};T=(T.client_location=_.ou.getInstance(),T.consistency=_.AWO(),T.entities=O.resolve(PAL),T.response_received_commands=O.resolve(UYO),T.store=O.resolve(_.aa1),T.tokens=O.resolve(bJq),T);if(_.e("web_shorts_prefetch_service_enabled")){var L=new D7z(O.resolve(_.TO));T.shorts_prefetch=L}T.adblock_detection=O.resolve(ELO);O.addProvider({provide:_.Vy,useClass:_.Vy});L=O.resolve(XK$);var h=[];if(_.e("PremiumClientSharedConfig__enable_att_context_processor")||_.e("enable_att_for_transcript_request_on_web_client"))O.addProvider({provide:L4N,
useClass:bsH}),h.push(O.resolve(L4N));if(_.e("owl_pl_await")){var Z={};O.addProvider((Z.provide=X2g,Z.useFactory=function(a){return new w27(a)},Z[NV]=[_.Vy],Z));
h.push(O.resolve(X2g))}d3q(L,O.resolve(qeZ),O.resolve(p22),T,O.resolve(_.TO),b,h,O.resolve(d7f),O.resolve(pK1));O.addProvider({provide:_.sP,useValue:_.GB.instance});_.e("start_client_gcf")&&O.addProvider({provide:vZ,useValue:wON()});O.addProvider({provide:pzU,useFactory:function(){return new pzU(_.iq().resolve(_.Vy),_.lh.getInstance())}});
_.BH().parkOrScheduleJob(function(){ROS()},1,"eocs");
b={};O.addProvider((b.provide=FR,b.useClass=FR,b[NV]=[_.GQ,_.sP],b));O.addProvider({provide:_.nmU,useFactory:_.Ig.getInstance});_.BH().parkOrScheduleJob(function(){_.iq().resolve(FR).refresh()},0,"eocs");
hYN(HH1.watchEndpointMap||{},L.reelWatchEndpointMap||{},W.injector.resolve(_.sP));O.addProvider({provide:PR,useValue:_.Y_.instance});_.e("kevlar_signal_collection_killswitch")||(b={},O.addProvider((b.provide=m4N,b.useClass=m4N,b[NV]=[Xh,Mb],b)),_.BH().parkOrScheduleJob(function(){_.iq().resolve(m4N).record()},1,"eocs"));
_.e("web_debug_handler_registration_killswitch")||_.BH().parkOrScheduleJob(function(){Mhq("DOWNLOAD_PES",zZh);_.e("offline_client_state_export_ks")||Mhq("OFFLINE_CLIENT_STATE",raQ)},0,"eocs");
_.e("kevlar_prevent_polymer_dynamic_font_load")&&_.BH().parkOrScheduleJob(function(){var a=[_.yN(cXN),_.yN(FX7)];a=_.S(a);for(var m=a.next();!m.done;m=a.next()){m=m.value;var w=document.createElement("link");_.tv(w,m,"stylesheet");document.head.appendChild(w)}},1,"eocs");
b=W.injector.resolve(_.sP);_.Tj7.instance=new _.Tj7(b);Puq(ch9(new jU5(b)));b={};W.injector.addProvider((b.provide=O0,b.useFactory=function(a){(a=a==null?void 0:a.getCurrentPage())?a=a.visibilityObserver:(EhR||(EhR=pPh()),a=EhR);return a},b[NV]=[_.OT(_.cs)],b.skipCache=!0,b));
O.addProvider({provide:_.xq,useClass:eF});O.addProvider({provide:mK,useClass:Vh5});O.addProvider({provide:O7S,useValue:Hx8});W.injector.addProvider({provide:i77,useValue:vwL});O.addProvider({provide:oC$,useValue:qdq});O.addProvider({provide:_.t4,useValue:cOe});W=O.addProvider;Gtz||(Gtz=new f2q);W.call(O,{provide:_.Hon,useValue:Gtz});O.addProvider({provide:_.VE,useValue:_.Cv("HTML_DIR")==="rtl"?"rtl":"ltr"});O.addProvider({provide:RE9,useClass:rB1});O.addProvider({provide:_.Ix,useClass:Tf});_.iq().addProvider({provide:v5z,
useValue:_.e("enable_web_delhi_icons")?aGP.concat(Ytg):IG5.concat(mA8)});O.addProvider({provide:_.d2,useClass:_.d2});O.addProvider({provide:_.VQ9,useValue:new $Pg});O.addProvider({provide:Ka$,useClass:UFU});O.addProvider({provide:bR,useClass:bR});O.addProvider({provide:LM,useClass:LM});W={};O.addProvider((W.provide=rH,W.useClass=rH,W[NV]=[_.sP,_.P$],W));O.addProvider({provide:Pu,useClass:Pu});O.addProvider({provide:$Yq,useClass:zOv});O.addProvider({provide:ZZ,useClass:ZZ});O.addProvider({provide:P4L,
useValue:dOq});O.addProvider({provide:_.ry,useClass:lnH});_.e("enable_payments_purchase_manager")&&O.addProvider({provide:Zs1,useClass:dFq});O.addProvider({provide:uO7,useFactory:function(){return function(a){return _.MQ5(a)}}});
O.addProvider({provide:_.Wyq,useClass:OJ$});W={};O.addProvider((W.provide=Uj,W.useClass=Uj,W[NV]=[_.Wyq],W));O.addProvider({provide:dL,useClass:dL});O.addProvider({provide:nnS,useValue:Eww});O.addProvider({provide:blN,useValue:u6n});O.addProvider({provide:Tfq,useClass:x4q});O.addProvider({provide:M5Z,useValue:N11});W={};O.addProvider((W.provide=_.Aw,W.useClass=uUZ,W[NV]=[M5Z],W));_.e("web_ephemeral_actions")&&(W={},O.addProvider((W.provide=_.SF,W.useClass=hw,W[NV]=[_.sZ,_.wB],W)));if(_.e("web_explore_hub_on_hover")||
_.e("web_client_explore_hub_on_hover"))W={},O.addProvider((W.provide=wH,W.useClass=wH,W[NV]=[_.sP,Vg],W));O.addProvider({provide:DD2,useValue:giE});W={};O.addProvider((W.provide=zM$,W.useClass=x7H,W[NV]=[_.sP],W))}},wM8);var XMg={},UAD=(XMg.initialized={priority:10,callback:function(){if(!rXN){H_Q();kke("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.Ie(_.A3(kke,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.e("log_heartbeat_with_lifecycles")){var W={};M5.instance||(M5.instance=new M5);M5.instance.install((W.document_visible={callback:sSe,priority:10},W.document_hidden={callback:sSe,priority:10},W))}else _.WZ(document,"visibilitychange",sSe);rXN=!0}(W=_.Bb())&&W!=="UNDEFINED_CSN"&&ZOi(W)}},XMg);var lG5={},ekU=(lG5.initialized={callback:function(W){var O=_.gd(232091),b=W.injector.resolve(_.ef);_.jn(b,O);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?y2X()&&_.LK(b,O):(W=W.injector.resolve(uO7)("refresh_detector"))&&(W.get("first_tab_load")?_.LK(b,O):W.set("first_tab_load","1"))}},lG5);var P_g={},pMk=(P_g.initialized={priority:10,callback:dY8},P_g);var Rk9={},K7Z=(Rk9.initialized={priority:0,callback:function(){var W=new lh1,O="other";_.Sb?O="chrome":_.h$?O="firefox":_.zZ?O="safari":uq&&(O="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(b){W.increment(_.lq(),b,O)}).catch(function(){W.increment(_.lq(),!1,O)}):W.increment(_.lq(),!1,O)}},Rk9);var vh1={},gh9=(vh1.rendering={priority:8,callback:hrT},vh1);var oh1={},QRR=(oh1.rendering={priority:10,callback:eri},oh1.rendered={callback:laX},oh1),k9g={},sRB=(k9g.rendering={callback:eri},k9g.rendered={callback:laX},k9g);var BAB=!1,rA1={},DAP=(rA1.initialized={priority:10,callback:function(){BAB||(EGq({didPatch:function(W){W.el&&EC1(W.el,W.props)},
didUnmount:function(W){mSP(W.el)}}),BAB=!0)}},rA1);var xAg=/^\/shorts\/?$/;_.zT("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.e("kevlar_enable_mss")){_.Ovh(new OP$);var zkB=!0,C_P,py;zkB=zkB===void 0?!1:zkB;C_P=C_P===void 0?!1:C_P;py=py===void 0?{}:py;var qt1=py.cssRowKey||"",nhB=py.combinedSignature||"";!qt1&&window&&window._F_cssRowKey&&(qt1=window._F_cssRowKey,!nhB&&window._F_combinedSignature&&(nhB=window._F_combinedSignature));if(qt1&&typeof window._F_installCss!=="function")throw Error("vd");var fG8=py.loaderClass||_.rq,Rg=nXq("base-js"),G95,H0g=GTX("",Rg);G95=_.SL(H0g);var Ky=new fG8(G95,qt1,nhB,zkB,C_P),tW5=
py.useCors||Rg&&Rg.hasAttribute("crossorigin"),$AU=py.corsMode||Rg&&Rg.getAttribute("crossorigin");tW5&&(Ky.useCors_=tW5);$AU&&(Ky.corsMode_=$AU);py.urlMaxLength&&(Ky.urlMaxLength=py.urlMaxLength);py.fetchPriority&&(Ky.fetchPriority=py.fetchPriority);var VWk=B5();VWk.JSC$8054_loader_=Ky;VWk.setBatchModeEnabled(!0)}
(function(){var W=document.querySelector("ytd-app");if(!W)throw Error("Fj");W=new Zl({root:W,injector:_.iq()});W.install(UAD);var O={};W.install((O.initialized={priority:10,callback:YhP},O));_.e("wp_lat_b")&&(O={},W.install((O.initialized={priority:10,callback:function(){P51()}},O)));
O={};W.install((O.rendered={priority:0,callback:IXi},O));O={};W.install((O.rendered={priority:0,callback:function(){_.sF.addLowPriorityJob(function(){_.DFf>1&&(jlE(),ShQ())},4E4)}},O));
W.install(pNU);W.install(ekU);W.install(DAP);JX8||(JX8=!0,Object.assign(du,{handleError:zxX,enableComponentStacksInErrorMessages:!1}),RW8=Ym7,mJX=C58,Q1e=JdX,vGQ=cd1,_.e("ytwiz_enable_debug_component_props")&&xJX());W.install(s7g);W.install(A98);W.install(eLD);W.install(Li5);W.install(I2N);W.install(Q77);W.install(AA8);_.e("kevlar_enable_mss_lazy_load")&&W.install(pMk);W.install(Uzk);W.install(K7Z);if(!_.qC("IS_SHELL_LOAD")||_.e("kevlar_fetch_initial_data_promise_client")||_.e("sw_nav_preload_pbj")){var b=
_.mp(window.location.href);O=b&&b==="/watch";b=b&&b.match(xAg);O?W.install(sRB):b?W.install(gh9):W.install(QRR)}else W.install(YvU);W.install(KnU);_.e("web_enable_prefetching_videos_on_home")&&W.install(xzg);_.e("start_client_gcf")&&W.install(B8Z);W.install(Oo7);(new evH).increment("INSTALLED");W.install(r98);W.install(IS7);W.transition("initialized");mt1()})();
_.ho=[[["eGpraW5kI20xMTl5cG9ubGM=","YWx1ZSNvZnV5YWdnbmRmaHZ2"],"TkRfRU5EIzE1bDB3aTdwbnZyMUFEX1BMQUNFTUVOVF9LSQ=="]];_.dE=["YmFsQ2FsbGJhY2tzI2N5emE0cHhzdDdpc2dsbw==","dGVjdGVkI3ZmZWUyenN5ZDZ2ZW9uQWJub3JtYWxpdHlEZQ==","cWltdHlxbDUyeDNvbkFkU2tpcCNt","cmVzcG9uc2UjeHp5OXYyOGs0d2NjcmF3X3BsYXllcl8=","bWVudENvbmZpZyMxcnE0NjQ2aTZicTZhZFBsYWNl"];_.qg="YmFsQ2FsbGJhY2tzI2N5emE0cHhzdDdpc2dsbw== dGVjdGVkI3ZmZWUyenN5ZDZ2ZW9uQWJub3JtYWxpdHlEZQ== cWltdHlxbDUyeDNvbkFkU2tpcCNt cmVzcG9uc2UjeHp5OXYyOGs0d2NjcmF3X3BsYXllcl8= MGZwNXdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcyNxM2didWI3Ng== bDJ4ajh0MWQ0NmRhYl9zYV9lZiNh bWVudENvbmZpZyMxcnE0NjQ2aTZicTZhZFBsYWNl".split(" ");
_._ModuleManager_initialize=function(W,O){if(!_.QC){if(!_.sV)return;_.Ovh(_.sV())}_.QC.setAllModuleInfoString(W,O)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/syl:o/nmfa2d:h,n,p/sym:7,o/syn:g,h,p,r/CF909:n,s/Tm0L3c:s/L3n37:g,h,n,r/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','sym','syl','syg','syf','syj','syn','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.kC=function(W,O,b,T,L){var h={};O&&(h[O]=b);T?h.errorType=T:L&&(h.errorReason=L);_.BZ(W,h);_.re()};
_.sG=function(W){var O=_.BH();return _.O19(O,W,1)};
_.v_({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 W=this.query;W&&(this.full||W[0]==="("||(W="("+W+")"),this._mq=window.matchMedia(W),this._add(),this.queryHandler(this._mq))},
queryHandler:function(W){this._setQueryMatches(W.matches)}});var iz8;var bzU;var jQ1=function(){};
_.d=jQ1.prototype;_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._focusedChanged=function(){};
_.d._createRipple=function(){};
_.d.registered=function(){};
_.d._invalidChanged=function(){};
_.d.hasValidator=function(){};
_.d.validate=function(){};
_.d._getValidity=function(){};
_.d._requiredChanged=function(){};
_.d._valueChanged=function(){};
_.d._checkedChanged=function(){};
_.d._buttonStateChanged=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
jQ1=_.v_({is:"tp-yt-paper-radio-button",_template:function(){if(bzU!==void 0)return bzU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;iz8===void 0&&(iz8=document.createElement("template"));var T=iz8;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return bzU=W},
behaviors:[_.nS1],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(){_.My(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var W=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),O=Math.floor(3*W);O%2!==W%2&&O++;this.updateStyles({"--paper-radio-button-ink-size":O+"px"})}})}});var TCg;var LjB;_.v_({_template:function(){if(LjB!==void 0)return LjB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;TCg===void 0&&(TCg=document.createElement("template"));var T=TCg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return LjB=W},
is:"tp-yt-paper-radio-group",behaviors:[_.WwS],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(W){var O=this._valueToItem(W);if(!O||!O.hasAttribute("disabled")){if(this.selected){O=this._valueToItem(this.selected);if(this.selected==W)if(this.allowEmptySelection)W="";else{O&&(O.checked=!0);return}O&&
(O.checked=!1)}_.G0.select.apply(this,[W]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(W){this._focusPrevious();W.preventDefault();this._activateFocusedItem()},
_onDownKey:function(W){this._focusNext();W.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(W){_.y1U._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(W){_.y1U._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.G0._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Rz._resetTabindices.apply(this,arguments);this.items.forEach(function(W){W.removeAttribute("aria-selected")},this)}});var dIk;_.Bs("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Bp=function(){return _.n.apply(this,arguments)||this};
_.R(Bp,_.n);_.d=Bp.prototype;_.d.computeHasPrimaryIcon=function(W){return!(!W.icon&&!W.thumbnail)};
_.d.computeHasSecondary=function(W){return!(!W.secondaryIcon&&!W.secondaryNotificationText)};
_.d.computeHideSecondaryString=function(W){return!_.e("disable_hide_empty_secondary_string")&&!W.secondaryNotificationText};
_.d.computeCompactLinkStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeHasFitHeight=function(W){return W==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.d.isActiveEndpoint=function(W){return(W=this.get("commandMetadata.webCommandMetadata.url",W))?_.mp(window.location.href)!=="/account_transfer_channel"&&_.mp(window.location.href)!=="/gaia_link"&&_.mp(window.location.href)!=="/channel_switcher"||W!=="/account"?_.mp(window.location.href)===W:!0:!1};
_.d.onTap=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.da(this.hostElement,[this.data.serviceEndpoint])};
Bp.prototype.onTap=Bp.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Bp.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.N("design:type",Boolean)],Bp.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.N("design:type",String)],Bp.prototype,"compactLinkStyle",void 0);
_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",Object)],Bp.prototype,"icon",void 0);_.t([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",Object)],Bp.prototype,"secondaryIcon",void 0);_.t([_.C({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"hasSecondary",void 0);_.t([_.C({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bp.prototype,"hideSecondaryString",void 0);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bp.prototype,"onTap",null);Bp=_.t([_.G({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],Bp);
_.H(Bp,"ytd-compact-link-renderer",function(){if(dIk!==void 0)return dIk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dIk=W},{mode:1});var hDP;_.Bs("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var r2=function(){var W=_.n.apply(this,arguments)||this;W.role="link";W.tabindex="0";W.actionMap=_.e("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 W};
_.R(r2,_.n);_.d=r2.prototype;_.d.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.K_()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.d.getCurrentTheme=function(){return _.vh()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.K_()};
_.d.onThemeSelected=function(W,O){var b=W||O?W:_.Ru(),T=(b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!b&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Y6T(_.mp(window.location.href));_.UO(0,165,W);_.UO(0,174,O);this.prefs.save();T&&_.jx(this.hostElement,"yt-dark-mode-toggled-action",[b]);_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.onTap=function(){this.data.serviceEndpoint&&_.da(this.hostElement,[this.data.serviceEndpoint])};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
r2.prototype.onTap=r2.prototype.onTap;r2.prototype.dataChanged=r2.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],r2.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.$2),_.N("design:type",Object)],r2.prototype,"paperItemBehaviors",void 0);_.t([_.C(),_.N("design:type",Object)],r2.prototype,"data",void 0);_.t([_.C({value:function(){return _.Xt()}}),
_.N("design:type",_.JE)],r2.prototype,"prefs",void 0);_.t([_.C(),_.N("design:type",Object)],r2.prototype,"label",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],r2.prototype,"role",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],r2.prototype,"tabindex",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r2.prototype,"dataChanged",null);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r2.prototype,"onTap",null);r2=_.t([_.G({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],r2);
_.H(r2,"ytd-toggle-theme-compact-link-renderer",function(){if(hDP!==void 0)return hDP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hDP=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.ux=function(W){return function(O,b){var T=W||b.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(O,b,{get:function(){var L;return this.$?this.$[T]:(L=_.YI(this))==null?void 0:L.querySelector("#"+T)},
enumerable:!0,configurable:!0})}};_.Jr=function(W){W=W===void 0?!1:W;_.R8.call(this);this.pubSub_=new _.wO(W);_.a8(this,this.pubSub_)};
_.Wk(_.Jr,_.R8);_.Jr.prototype.subscribe=function(W,O,b){return this.isDisposed()?0:this.pubSub_.subscribe(W,O,b)};
_.Jr.prototype.unsubscribe=function(W,O,b){return this.isDisposed()?!1:this.pubSub_.unsubscribe(W,O,b)};
_.Jr.prototype.unsubscribeByKey=function(W){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(W)};
_.Jr.prototype.publish=function(W,O){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var thR=function(){_.kC("ypcRedeemFlowStarted")},aw=function(W){_.kC("ypcRedeemFlowFailed",void 0,void 0,void 0,W)},$Rg=function(W,O,b){O&&b&&(W.videos.forEach(function(T){T.videoId===O&&(T.itemId=b)}),W.recommendedVideos.forEach(function(T){T.videoId===O&&(T.itemId=b)}))};var VhB;var NLU;/*

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
*/
_.v_({_template:function(){if(NLU!==void 0)return NLU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;VhB===void 0&&(VhB=document.createElement("template"));var T=VhB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return NLU=W},
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(W,O){var b=this._resolveSrc(W);b!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",W===""||O?this._setLoading(!1):(this._resolvedSrc=b,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var W=this.$.sizedImgDiv.style,O=this.$.placeholder.style;W.backgroundSize=O.backgroundSize=this.sizing;W.backgroundPosition=O.backgroundPosition=this.sizing?this.position:"";W.backgroundRepeat=O.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(W){W=_.LP(W,this.$.baseURIAnchor.href);W.length>=2&&W[0]==="/"&&W[1]!=="/"&&(W=(location.origin||location.protocol+"//"+location.host)+W);return W}});var MhN;var uID;_.v_({_template:function(){if(uID!==void 0)return uID;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;MhN===void 0&&(MhN=document.createElement("template"));var T=MhN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return uID=W},
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(W){return W?"false":"true"},
_headingChanged:function(W){var O=this.getAttribute("heading"),b=this.getAttribute("aria-label");typeof b==="string"&&b!==O||this.setAttribute("aria-label",W)},
_computeHeadingClass:function(W){return W?" over-image":""},
_computeAnimated:function(W){return W}});var J7Z=new _.J("addRendererToItemSectionAction");var c7g;var mP=function(){return _.n.apply(this,arguments)||this};
_.R(mP,_.n);mP.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mP.prototype,"rendererBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],mP.prototype,"dismissibleItemBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mP.prototype,"rendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mP.prototype,"data",void 0);mP=_.t([_.G({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],mP);
_.H(mP,"ytd-comment-history-entry-renderer",function(){if(c7g!==void 0)return c7g;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return c7g=W},{mode:1});var F6D;_.Bs("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.Bs("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var YM=function(){return _.n.apply(this,arguments)||this};
_.R(YM,_.n);_.d=YM.prototype;_.d.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.d.onTap=function(){this.data.recordClickEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var W=this.data.navigationEndpoint;W&&_.P(W,_.g5)&&_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})};
_.d.readChanged=function(){var W;_.L2(this.hostElement,"unread",!((W=this.data)==null?0:W.read))};
_.d.dataChanged=function(){this.data&&_.L2(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.d.computeThumbnailSize=function(){var W;return((W=this.data)==null?0:W.highPriorityNotification)?32:48};
_.d.getEndpointURL=function(W){return W&&!_.P(W,_.g5)?this.componentBehavior.computeHref_(W):null};
_.d.getEndpointData=function(W){return W&&!_.P(W,_.g5)?W:null};
YM.prototype.computeThumbnailSize=YM.prototype.computeThumbnailSize;YM.prototype.dataChanged=YM.prototype.dataChanged;YM.prototype.readChanged=YM.prototype.readChanged;YM.prototype.onKeyUp=YM.prototype.onKeyUp;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],YM.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],YM.prototype,"data",void 0);_.t([_.C({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.N("design:type",Number)],YM.prototype,"thumbnailSize",void 0);_.t([_.ai("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],YM.prototype,"onKeyUp",null);
_.t([_.m5("data.read"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YM.prototype,"readChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YM.prototype,"dataChanged",null);_.t([_.m5("data.highPriorityNotification"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YM.prototype,"computeThumbnailSize",null);
YM=_.t([_.G({is:"ytd-notification-renderer",disableElementRegistration:!0})],YM);
_.H(YM,"ytd-notification-renderer",function(){if(F6D!==void 0)return F6D;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return F6D=W},{mode:1});var y7g;var Ew=function(){return _.n.apply(this,arguments)||this};
_.R(Ew,_.n);Ew.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"}}}};
Ew.prototype.computeActionButtonClass=function(W){return!W.actionButtons||W.actionButtons.length<=1?"single-button":W.description?"vertical-buttons":"horizontal-buttons"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ew.prototype,"data",void 0);Ew=_.t([_.G({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Ew);
_.H(Ew,"ytd-playlist-show-metadata-renderer",function(){if(y7g!==void 0)return y7g;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return y7g=W},{mode:1});var WEZ;_.Bs("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var wU=function(){return _.n.apply(this,arguments)||this};
_.R(wU,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wU.prototype,"data",void 0);wU=_.t([_.G({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],wU);
_.H(wU,"ytd-purchase-item-renderer",function(){if(WEZ!==void 0)return WEZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return WEZ=W},{mode:1});var OCR;var iCg={};iCg.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(W){if(W)return W.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(W){if(W==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.Bs("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var A2=function(){return _.n.apply(this,arguments)||this};
_.R(A2,_.n);A2.prototype.onYtNavigate=function(W){var O=this.openPopupBehavior.getNavigationEndpointPopupAction(W.detail.endpoint);O&&(W.stopPropagation(),this.openPopupBehavior.openPopup(O))};
A2.prototype.onYtNavigate=A2.prototype.onYtNavigate;_.t([_.D(iCg.YtSimpleTextSectionBehavior),_.N("design:type",Object)],A2.prototype,"ytSimpleTextSectionBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],A2.prototype,"openPopupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],A2.prototype,"data",void 0);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],A2.prototype,"onYtNavigate",null);A2=_.t([_.G({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],A2);
_.H(A2,"ytd-simple-text-section-renderer",function(){if(OCR!==void 0)return OCR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return OCR=W},{mode:1});var bCZ;_.Bs("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var Xc=function(){return _.n.apply(this,arguments)||this};
_.R(Xc,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xc.prototype,"data",void 0);Xc=_.t([_.G({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],Xc);
_.H(Xc,"ytd-unlimited-page-feature-info-renderer",function(){if(bCZ!==void 0)return bCZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return bCZ=W},{mode:1});var jf5;var TfN;var Uw=function(){return _.n.apply(this,arguments)||this};
_.R(Uw,_.n);Uw.prototype.dataChanged=function(){if(this.data){var W=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);W&&(W=_.bn(W,screen.width),this.hostElement.style.backgroundImage="url("+W+")")}};
Uw.prototype.dataChanged=Uw.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Uw.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Uw.prototype,"dataChanged",null);Uw=_.t([_.G({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],Uw);
_.H(Uw,"ytd-post-redemption-section-renderer",function(){if(TfN!==void 0)return TfN;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return TfN=W},{mode:1});var LEg;var lI=function(){return _.n.apply(this,arguments)||this};
_.R(lI,_.n);lI.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lI.prototype,"data",void 0);lI=_.t([_.G({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],lI);
_.H(lI,"ytd-ypc-post-redemption-renderer",function(){if(LEg!==void 0)return LEg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return LEg=W},{mode:1});_.Bs("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var e0=function(){var W=_.n.apply(this,arguments)||this;W.MIN_CODE_LENGTH=12;W.MAX_CODE_LENGTH=24;return W};
_.R(e0,_.n);_.d=e0.prototype;_.d.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.d.created=function(){this.riskService=new _.bTe;this.loadPaymentThenable=_.T$X(_.Cv("YPC_MB_URL"))};
_.d.ready=function(){var W=this;this.code.addEventListener("keypress",function(O){W.onCodeInputKeypress(O)})};
_.d.dataChanged=function(){var W=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(O){O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,b.type==="attributes"&&b.attributeName==="dark"&&W.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.d.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var W=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+W+")")}};
_.d.computeRedeemButton=function(W){(W=this.get("redeemButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.d.onRedeemButtonTap=function(W){W.stopPropagation();thR();this.redeemCode()};
_.d.redeemCode=function(){var W=this;this.isLoading=!0;var O=this.riskService.init();_.XG([O,this.loadPaymentThenable]).then(function(){var b=W.data.redeemButton.buttonRenderer.serviceEndpoint,T=_.jkO(),L=payments.business.integration.ClientTokenFactory.createClientToken(_.P(b,_.y6N).countryCode,T);T={c:W.code.value.trim(),rd:window.btoa(T),ctk:L};b&&_.iq().resolve(_.bq).resolveCommand(b,{form:Object.assign({},T,{element:W.hostElement})})},function(){W.showGenericError();
aw("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.nv(Error("Tl"))})};
_.d.onYtServiceRequestCompleted=function(W){W.stopPropagation();this.isLoading=!1;var O,b;this.errorMessage=(O=W.detail)==null?void 0:(b=O.data)==null?void 0:b.errorMessage;var T,L;this.postRedemptionRenderer=(T=W.detail)==null?void 0:(L=T.data)==null?void 0:L.renderer;var h,Z;if(W=(h=W.detail)==null?void 0:(Z=h.data)==null?void 0:Z.redirectEndpoint)this.isLoading=!0,_.bX(this.hostElement,"yt-navigate",{endpoint:W});this.errorMessage?aw("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
W)&&_.kC("ypcRedeemFlowSucceeded")};
_.d.onYtServiceRequestError=function(W){W.stopPropagation();this.isLoading=!1;if(W=this.get("detail.error.message",W))this.errorMessage=_.VV(W);aw("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.d.onInvokeInstrumentManagerActionCompleted=function(W){W.stopPropagation();this.redeemCode()};
_.d.onInvokeInstrumentManagerActionError=function(W){W.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",W)){case "instrumentManagerLoadError":this.showGenericError();aw("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();aw("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.kC("ypcRedeemFlowCancelled")}};
_.d.onInput=function(){var W=this;_.n2(this,"onInput",function(){var O=W.code.value.trim();W.redeemButtonDisabled=O.length<W.MIN_CODE_LENGTH||O.length>W.MAX_CODE_LENGTH},200)};
_.d.onCodeInputKeypress=function(W){W.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(thR(),this.redeemCode())};
_.d.computeImageUrl=function(W){return W?_.bn(W.thumbnails,600):null};
_.d.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
e0.prototype.onInvokeInstrumentManagerActionError=e0.prototype.onInvokeInstrumentManagerActionError;e0.prototype.onInvokeInstrumentManagerActionCompleted=e0.prototype.onInvokeInstrumentManagerActionCompleted;e0.prototype.onYtServiceRequestError=e0.prototype.onYtServiceRequestError;e0.prototype.onYtServiceRequestCompleted=e0.prototype.onYtServiceRequestCompleted;e0.prototype.dataChanged=e0.prototype.dataChanged;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],e0.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],e0.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Boolean)],e0.prototype,"redeemButtonDisabled",void 0);
_.t([_.C(),_.N("design:type",Object)],e0.prototype,"errorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],e0.prototype,"postRedemptionRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],e0.prototype,"observer",void 0);_.t([_.El("#code"),_.N("design:type",HTMLInputElement)],e0.prototype,"code",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e0.prototype,"dataChanged",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e0.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e0.prototype,"onYtServiceRequestError",null);
_.t([_.ai("yt-invoke-instrument-manager-action-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e0.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.t([_.ai("yt-invoke-instrument-manager-action-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e0.prototype,"onInvokeInstrumentManagerActionError",null);e0=_.t([_.G({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],e0);
_.H(e0,"ytd-redeem-code-renderer",function(){if(jf5!==void 0)return jf5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return jf5=W},{mode:1});var dMU;_.Bs("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var Pc=function(){var W=_.n.apply(this,arguments)||this;W.businessEmailDisplayState="HIDE_SECTION";return W};
_.R(Pc,_.n);_.d=Pc.prototype;_.d.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}}}}}};
_.d.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"};
_.d.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.d.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.qp("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.d.onYtServiceRequestCompleted=function(W){var O;if((O=W.detail.data)==null?0:O.businessEmail)this.businessEmail=W.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var b;if((b=W.detail.data)==null?0:b.errorMessage)this.businessEmailErrorMessage=W.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.d.computeEmailHref=function(W){return"mailto:"+W};
_.d.computeSafeUrl=function(W){if(W)return _.l7(W)};
_.d.onBusinessEmailCaptchaSubmit=function(){var W;(W=this.data)!=null&&W.onBusinessEmailRevealClickCommand&&(W=this.JSC$19073_captchaTextarea.value)&&(W={recaptcha_response_token:W,channel_id:this.data.channelId},_.iq().resolve(_.bq).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},W,{element:this.hostElement})}))};
_.d.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Jq.Object.defineProperties(Pc.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 W,O;return!((W=this.data)==null||!W.primaryLinks)&&!((O=this.data)==null?0:O.links)&&this.data.primaryLinks.every(function(b){return b.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.primaryLinks)&&!((O=this.data)==null?0:O.links)&&!this.shouldShowNewLinks}}});
Pc.prototype.onYtServiceRequestCompleted=Pc.prototype.onYtServiceRequestCompleted;Pc.prototype.dataChanged=Pc.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Pc.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.El("#g-recaptcha-response"),_.N("design:type",HTMLTextAreaElement)],Pc.prototype,"JSC$19073_captchaTextarea",void 0);_.t([_.C(),_.N("design:type",Object)],Pc.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Pc.prototype,"businessEmailDisplayState",void 0);_.t([_.C(),_.N("design:type",String)],Pc.prototype,"businessEmail",void 0);_.t([_.C(),_.N("design:type",String)],Pc.prototype,"businessEmailErrorMessage",void 0);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pc.prototype,"hideDetailsSection",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pc.prototype,"dataChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pc.prototype,"shouldShowNewLinks",null);_.t([_.x("data","shouldShowLinks"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pc.prototype,"shouldShowLegacyLinks",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Pc.prototype,"onYtServiceRequestCompleted",null);Pc=_.t([_.G({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],Pc);
_.H(Pc,"ytd-channel-about-metadata-renderer",function(){if(dMU!==void 0)return dMU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dMU=W},{mode:1});var hz2;_.Bs("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var pn=function(){return _.n.apply(this,arguments)||this};
_.R(pn,_.n);pn.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],pn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pn.prototype,"data",void 0);pn=_.t([_.G({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],pn);
_.H(pn,"ytd-channel-featured-content-renderer",function(){if(hz2!==void 0)return hz2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return hz2=W},{mode:1});var Ss9;_.Bs("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Rw=function(){var W=_.n.apply(this,arguments)||this;W.roundContainer=!0;W.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return W};
_.R(Rw,_.n);_.d=Rw.prototype;_.d.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.dataChanged=function(){this.imageWidth=this.imageHeight=24;var W=this.data;W.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!W.style&&W.image&&W.image.thumbnails.length&&(W=W.image.thumbnails[0],this.imageWidth=W.width||0,this.imageHeight=W.height||0)};
_.d.computeSource=function(W){return W.secondarySource?_.NX(W.secondarySource):_.NX(W.source)};
_.d.computeClarifyStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.d.isLargeStyle=function(W){return W==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.d.computeBackgroundStyle=function(W){return W?W.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.d.computeHasActionButton=function(W){return!!W.actionButton};
_.d.computeHasBottomSection=function(W){return!!W.ctaHasBottomSection};
_.d.computeIsSourceMissing=function(W){return W.ctaHasBottomSection===!1?!0:W&&this.computeSource(W)?!1:!0};
_.d.computeSecondaryEndpoint=function(W){return W.secondaryEndpoint||W.endpoint};
Rw.prototype.dataChanged=Rw.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rw.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],Rw.prototype,"imageWidth",void 0);_.t([_.C(),_.N("design:type",Number)],Rw.prototype,"imageHeight",void 0);
_.t([_.C({computed:"computeSecondaryEndpoint(data)"}),_.N("design:type",Object)],Rw.prototype,"secondaryEndpoint",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.N("design:type",Boolean)],Rw.prototype,"hasActionButton",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.N("design:type",Boolean)],Rw.prototype,"hasBottomSection",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.N("design:type",Boolean)],Rw.prototype,"missingSource",void 0);_.t([_.C({computed:"computeIcon_(data.icon)"}),_.N("design:type",String)],Rw.prototype,"icon",void 0);_.t([_.C({computed:"computeIcon_(data.secondaryIcon)"}),_.N("design:type",String)],Rw.prototype,"secondaryIcon",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.N("design:type",String)],Rw.prototype,"clarifyStyle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.N("design:type",String)],Rw.prototype,"backgroundStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Rw.prototype,"roundContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Rw.prototype,"amsterdamEnabled",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Rw.prototype,"dataChanged",null);
Rw=_.t([_.G({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Rw);
_.H(Rw,"ytd-clarification-renderer",function(){if(Ss9!==void 0)return Ss9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ss9=W},{mode:1});var ZC5;var IWP;var Kn=function(){var W=_.n.apply(this,arguments)||this;W.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return W};
_.R(Kn,_.n);_.d=Kn.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d.computeIcon=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.d.computeUseContacts=function(W){return!!W.contacts&&W.contacts.length>0};
_.d.computePhoneContact=function(W){var O,b;return(O=W.contacts)==null?void 0:(b=O.find(function(T){var L;return(T==null?void 0:(L=T.icon)==null?void 0:L.iconType)==="PHONE"}))==null?void 0:b.actionText};
_.d.computeSmsContact=function(W){var O,b;return(O=W.contacts)==null?void 0:(b=O.find(function(T){var L;return(T==null?void 0:(L=T.icon)==null?void 0:L.iconType)==="SMS"}))==null?void 0:b.actionText};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Kn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Kn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Kn.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Kn.prototype,"amsterdamEnabled",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.N("design:type",Boolean)],Kn.prototype,"useContacts",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.N("design:type",String)],Kn.prototype,"phoneContact",void 0);Kn=_.t([_.G({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Kn);
_.H(Kn,"ytd-single-action-emergency-support-renderer",function(){if(IWP!==void 0)return IWP;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return IWP=W},{mode:1});_.Bs("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var vc=function(){var W=_.n.apply(this,arguments)||this;W.roundedContainer=!0;W.amsterdamEnabled=_.e("enable_desktop_amsterdam_info_panels");return W};
_.R(vc,_.n);vc.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vc.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vc.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],vc.prototype,"amsterdamEnabled",void 0);
vc=_.t([_.G({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],vc);
_.H(vc,"ytd-emergency-onebox-renderer",function(){if(ZC5!==void 0)return ZC5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ZC5=W},{mode:1});var aWg;_.Bs("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var gU=function(){return _.n.apply(this,arguments)||this};
_.R(gU,_.n);gU.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gU.prototype,"data",void 0);gU=_.t([_.G({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],gU);
_.H(gU,"ytd-exploratory-results-renderer",function(){if(aWg!==void 0)return aWg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return aWg=W},{mode:1});var mMg;_.Bs("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var ow=function(){var W=_.n.apply(this,arguments)||this;W.messageData=null;return W};
_.R(ow,_.n);_.d=ow.prototype;_.d.onServiceRequestCompleted=function(W,O){W=O.actions||[];O=0;for(var b=W.length;O<b;O++){var T=W[O],L=void 0,h=void 0;if((L=_.P(T,_.XZ))==null?0:(h=L.item)==null?0:h.messageRenderer)this.messageData=_.P(T,_.XZ).item.messageRenderer}};
_.d.dataChanged=function(){var W=this.data;this.hostElement.hidden=!1;_.L2(this.hostElement,"is-channel",W&&!W.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.d.computeThumbnailWidth=function(W){return W?126:56};
_.d.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.d.onSubmitTap=function(){var W=this.data,O=this.selectedResponseIndex;W!==void 0&&O!==void 0&&(W=W.responses[O],W.responseData&&_.iq().resolve(_.bq).resolveCommand(W.responseData,{form:{element:this.hostElement}}))};
_.d.onDismissTap=function(){this.hostElement.hidden=!0;var W=this.data;W!==void 0&&W.dismissalEndpoint&&_.iq().resolve(_.bq).resolveCommand(W.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
ow.prototype.onSelectedResponseIndexChange=ow.prototype.onSelectedResponseIndexChange;ow.prototype.dataChanged=ow.prototype.dataChanged;ow.prototype.onServiceRequestCompleted=ow.prototype.onServiceRequestCompleted;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ow.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ow.prototype,"messageData",void 0);
_.t([_.C(),_.N("design:type",Number)],ow.prototype,"selectedResponseIndex",void 0);_.t([_.El("#submit-button"),_.N("design:type",HTMLButtonElement)],ow.prototype,"submitButton",void 0);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],ow.prototype,"onServiceRequestCompleted",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ow.prototype,"dataChanged",null);
_.t([_.m5("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ow.prototype,"onSelectedResponseIndexChange",null);ow=_.t([_.G({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],ow);
_.H(ow,"ytd-feedback-elicitation-single-question-renderer",function(){if(mMg!==void 0)return mMg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mMg=W},{mode:1});var YsR;var QW=function(){return _.n.apply(this,arguments)||this};
_.R(QW,_.n);QW.prototype.computeThumbnailWidth=function(W){return W?602:428};
QW.prototype.updateWideFromBinding=function(W){this.wide=W.detail.value};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],QW.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],QW.prototype,"wide",void 0);QW=_.t([_.G({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],QW);
_.H(QW,"ytd-newspaper-hero-video-renderer",function(){if(YsR!==void 0)return YsR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return YsR=W},{mode:1});var EpR;var kM=function(){return _.n.apply(this,arguments)||this};
_.R(kM,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kM.prototype,"rendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kM.prototype,"data",void 0);kM=_.t([_.G({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],kM);
_.H(kM,"ytd-newspaper-mini-video-renderer",function(){if(EpR!==void 0)return EpR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return EpR=W},{mode:1});var wa8;_.Bs("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var sw=function(){return _.n.apply(this,arguments)||this};
_.R(sw,_.n);sw.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"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sw.prototype,"data",void 0);sw=_.t([_.G({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],sw);
_.H(sw,"ytd-newspaper-renderer",function(){if(wa8!==void 0)return wa8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return wa8=W},{mode:1});var AKg;_.Bs("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Bc=function(){var W=_.n.apply(this,arguments)||this;W.isSegment=!1;W.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};W.nextContinuation={continuationType:"playlistVideoListContinuation"};return W};
_.R(Bc,_.n);_.d=Bc.prototype;_.d.attached=function(){_.iq();var W;(W=_.iq().resolve(_.OT(_.tM)))!=null&&(W.playlistVideoListElement=this.hostElement)};
_.d.detached=function(){var W;(W=_.iq().resolve(_.OT(_.tM)))!=null&&(W.playlistVideoListElement=void 0);W=_.iq().resolve(_.OT(_.We));_.e("web_enable_voting_animation")&&W&&(W.parentElem=void 0,W.videos=[],W.continuationsPresent=!1,W.showRefreshPill=!1)};
_.d.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"}}}}}};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d.dataChanged=function(){var W=_.iq().resolve(_.OT(_.We));if(_.e("web_enable_voting_animation")&&this.data&&W){var O=_.Q(this.hostElement).querySelector("#contents");O&&(W.parentElem=O);W.addVideos(this.data.contents)}_.A7f(this.ytReorderableBehavior)};
_.d.onRendererstamperFinished=function(){this.canReorder&&_.Xuq(this.ytReorderableBehavior,_.Q(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.d.onPlaylistReloading=function(){this.isReloading=!0};
_.d.onUpdateSetVideoId=function(W){if(W.detail&&this.data&&this.data.contents){var O=W.detail;W=this.data.contents.findIndex(function(L){var h;return((h=L.playlistVideoRenderer)==null?void 0:h.videoId)===O.videoId});
if(!(W<0)&&O.setVideoId&&(this.set("data.contents."+W+".playlistVideoRenderer.setVideoId",O.setVideoId),_.e("web_enable_voting_animation"))){var b;if(W=_.P((b=this.data.contents[W].playlistVideoRenderer)==null?void 0:b.engagementBar,_.QEe)){var T;(T=W.actions)==null||T.forEach(function(L){if(L=_.P(L,_.kaX))L.itemId=O.setVideoId})}(b=_.iq().resolve(_.OT(_.We)))&&$Rg(b,O.videoId,O.setVideoId)}}};
_.d.computeContentsClass=function(W){return W?"reloading":""};
_.d.computeIsSortable=function(W,O){return W&&O>0&&!this.isSegment&&!_.e("shorts_in_playlists_web")};
_.d.computeIsEditable=function(W){return W};
_.d.computeCanReorder=function(W){return W};
_.d.handlePlaylistRemoveVideosAction=function(W){if(this.get("playlistRemoveVideosAction.setVideoIds",W)&&this.data&&this.data.contents){W=_.P(W,_.Zfv).setVideoIds;for(var O=this.data.contents.length-1;O>=0;){var b=this.data.contents[O].playlistVideoRenderer;b&&b.setVideoId&&W.includes(b.setVideoId)&&this.splice("data.contents",O,1);O--}_.jx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".playlistVideoRenderer.index",_.VV(String(W+1)))};
_.d.handleDrop=function(W){W=W.currDragItem;var O=_.$T(W.parentNode.childNodes,W),b=this.data.contents.splice(Number(_.NX(W.data.index))-1,1)[0];this.data.contents.splice(O,0,b);O=O?this.get("contents."+(O-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();W=this.buildReorderServiceEndpoint(W.data.setVideoId,O);this.ytComponentBehavior.resolveCommand(W)};
_.d.buildReorderServiceEndpoint=function(W,O){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",W),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",O),this.data.onReorderEndpoint):null};
_.d.handleUpdatePlaylistAction=function(W){var O;(W=_.P((O=_.P(W,_.IbH))==null?void 0:O.updatedRenderer,_.og$))&&this.canReorder!==W.canReorder&&this.set("data.canReorder",W.canReorder);W&&W.contents&&(this.set("data.contents",W.contents),this.isReloading=!1);W&&W.continuations&&this.set("data.continuations",W.continuations)};
_.d.handleAddRendererToItemSectionAction=function(W){var O,b=(O=_.P(W,J7Z))==null?void 0:O.renderer,T;b&&((T=_.P(W,J7Z))==null?void 0:T.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,b),W=_.iq().resolve(_.OT(_.We)),_.e("web_enable_voting_animation")&&W&&(b&&(O=_.or8(b))&&W.recommendedVideos.push({itemId:O,videoId:_.sE2(b),voteCount:_.BFE(b),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.d.isVotingEnabledOnPlaylist=function(W){if(!W)return!1;W=_.S(W);for(W=W.next();!W.done;W=W.next()){var O=void 0;return!!_.P((O=W.value.playlistVideoRenderer)==null?void 0:O.engagementBar,_.QEe)}return!1};
_.d.onAppendContinuationItemsActionFinished=function(){var W;this.isVotingEnabledOnPlaylist((W=this.data)==null?void 0:W.contents)&&(this.updateIndices(),W=_.iq().resolve(_.OT(_.We)),_.e("web_enable_voting_animation")&&W&&this.data&&W.addVideos(this.data.contents))};
_.d.updateVideoData=function(W){if(W.detail&&this.data&&this.data.contents){var O=W.detail;W=O.toIdx;var b=O.itemId,T=O.newVoteCount,L=O.voteStatus;O=O.hideItem;var h,Z,a=(h=this.data)==null?void 0:(Z=h.contents)==null?void 0:Z.findIndex(function(X){return _.or8(X)===b});
if(!(a<0)){h=this.data.contents[a];var m;if((m=h.playlistVideoRenderer)==null?0:m.voteCount)h.playlistVideoRenderer.voteCount=T;var w;if(m=_.P((w=h.playlistVideoRenderer)==null?void 0:w.engagementBar,_.QEe)){var A;(A=m.actions)==null||A.forEach(function(X){(X=_.P(X,_.kaX))&&X.initialState&&(X.initialState.votes=T,X.initialState.status=L)})}this.data.contents.splice(a,1);
O||this.data.contents.splice(W,0,h);this.updateIndices()}}};
Bc.prototype.updateVideoData=Bc.prototype.updateVideoData;Bc.prototype.onAppendContinuationItemsActionFinished=Bc.prototype.onAppendContinuationItemsActionFinished;Bc.prototype.onUpdateSetVideoId=Bc.prototype.onUpdateSetVideoId;Bc.prototype.onPlaylistReloading=Bc.prototype.onPlaylistReloading;Bc.prototype.onRendererstamperFinished=Bc.prototype.onRendererstamperFinished;Bc.prototype.dataChanged=Bc.prototype.dataChanged;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Bc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Bc.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],Bc.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.D(_.URN),_.N("design:type",Object)],Bc.prototype,"ytReorderableBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],Bc.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Bc.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Bc.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],Bc.prototype,"isReloading",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bc.prototype,"isSegment",void 0);_.t([_.C({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.N("design:type",Boolean)],Bc.prototype,"isSortable",void 0);_.t([_.C({computed:"computeIsEditable(data.isEditable)"}),_.N("design:type",Boolean)],Bc.prototype,"isEditable",void 0);_.t([_.C({computed:"computeCanReorder(data.canReorder)"}),_.N("design:type",Boolean)],Bc.prototype,"canReorder",void 0);
_.t([_.C({value:101}),_.N("design:type",Number)],Bc.prototype,"scrollMargin",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"dataChanged",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"onRendererstamperFinished",null);
_.t([_.ai("yt-playlist-reloading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"onPlaylistReloading",null);_.t([_.ai("yt-update-set-video-id"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bc.prototype,"onUpdateSetVideoId",null);
_.t([_.ai("yt-append-continuation-items-action-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bc.prototype,"onAppendContinuationItemsActionFinished",null);_.t([_.ai("yt-update-video-data-voting-animation"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bc.prototype,"updateVideoData",null);Bc=_.t([_.G({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Bc);
_.H(Bc,"ytd-playlist-video-list-renderer",function(){if(AKg!==void 0)return AKg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return AKg=W},{mode:_.Lb("kevlar_poly_si_batch_j047")?1:2});var Xa8;var rU=function(){return _.n.apply(this,arguments)||this};
_.R(rU,_.n);rU.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"}}}}};
rU.prototype.onTextWrapperTap=function(W){var O=this.data&&this.data.navigationEndpoint;O&&!_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.bX(this.hostElement,"yt-navigate",{endpoint:O})};
rU.prototype.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");W&&W.commandMetadata&&_.P(W.commandMetadata,_.RP)&&_.P(W.commandMetadata,_.RP).fireAutomatically&&_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})};
rU.prototype.dataChanged=rU.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rU.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.fh),_.N("design:type",Object)],rU.prototype,"ytdLockupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rU.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],rU.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],rU.prototype,"biggerThumbsStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],rU.prototype,"leftAligned",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rU.prototype,"dataChanged",null);rU=_.t([_.G({disableElementRegistration:!0,is:"ytd-movie-renderer"})],rU);
_.H(rU,"ytd-movie-renderer",function(){if(Xa8!==void 0)return Xa8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Xa8=W},{mode:1});var UM5;var D$=function(){var W=_.n.apply(this,arguments)||this;W.rounded=!0;W.pageAttachedTo=void 0;W.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return W};
_.R(D$,_.n);D$.prototype.attached=function(){this.pageAttachedTo=_.iq().resolve(_.cs).getCurrentPage();_.bX(this.hostElement,"yt-player-attached",this.player)};
D$.prototype.detached=function(){var W;if((W=this.pageAttachedTo)==null?0:W.hostElement)_.bX(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
D$.prototype.dataChanged=function(){var W;if((W=this.data)==null?0:W.videoId)W={video_id:this.data.videoId,autoplay:!0},!_.e("miniplayer_stop_channel_video_autoplay_killswitch")&&_.iq().resolve(_.xq).isMiniplayerActive()&&(W.pause_at_start=!0,W.autoplay=!1),this.player.loadVideoWithPlayerVars(W)};
D$.prototype.handleSignalActionPausePlayer=function(){_.Wm().pause()};
D$.prototype.dataChanged=D$.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],D$.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],D$.prototype,"rounded",void 0);_.t([_.El("#player"),_.N("design:type",Object)],D$.prototype,"player",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D$.prototype,"dataChanged",null);D$=_.t([_.G({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],D$);
_.H(D$,"ytd-channel-video-player-renderer",function(){if(UM5!==void 0)return UM5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UM5=W},{mode:1});var lWU;var ez5;var P68;var xM=function(){var W=_.n.apply(this,arguments)||this;W.playing=!1;W.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.d1(W);W.active=!1;return W};
_.R(xM,_.n);_.d=xM.prototype;_.d.detached=function(){this.stop()};
_.d.play=function(){var W=this,O,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return W.active=!0,O=W.get("data.inlinePlaybackEndpoint.watchEndpoint"),b=O.videoId||W.data.videoId,T=O.startTimeSeconds||0,L=O.playerParams||null,_.e("kevlar_player_update_killswitch")?_.Y(Z,W.playerEl.update({args:{video_id:b,startSeconds:T,player_params:L}}),2):(W.playerEl.loadVideoWithPlayerVars({video_id:b,startSeconds:T,player_params:L,autoplay:!0}),Z.jumpTo(2));if(Z.nextAddress!=4)return _.Y(Z,W.playerEl.getPlayerPromise(),
4);h=Z.yieldResult;h.unloadModule("annotations_module");h.addEventListener("onStateChange",function(a){W.onPlayerStateChange(a)});
_.aD(Z)})};
_.d.onPlayerStateChange=function(W){if(this.active)switch(this.playing=W===1,W){case 1:_.bX(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.bX(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.d.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.d.resize=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.playerEl.getPlayerPromise(),2);O=b.yieldResult;O.setSize(NaN,NaN);_.aD(b)})};
_.t([_.C(),_.N("design:type",Object)],xM.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],xM.prototype,"playing",void 0);_.t([_.C(),_.N("design:type",Object)],xM.prototype,"playerId",void 0);_.t([_.El("#player"),_.N("design:type",Object)],xM.prototype,"playerEl",void 0);xM=_.t([_.G({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],xM);
_.H(xM,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(P68!==void 0)return P68;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return P68=W},{mode:1});var paR;var Rz5;var z4=function(){var W=_.n.apply(this,arguments)||this;W.width=0;return W};
_.R(z4,_.n);_.d=z4.prototype;_.d.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.Ii(this,this.onEnded));this.mp4El.addEventListener("error",_.Ii(this,this.onError))};
_.d.detached=function(){this.videoEl.removeEventListener("ended",_.Ii(this,this.onEnded));this.mp4El.removeEventListener("error",_.Ii(this,this.onError))};
_.d.play=function(){var W=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var O=this.videoEl.play();O?O.then(function(){W.handleVideoStartPlaying()}).catch(function(){_.bX(W.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.bX(this.hostElement,"yt-video-thumbnail-not-playing")};
_.d.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.d.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.d.dataChanged=function(){var W;if((W=this.data)==null?0:W.thumbnailPlaceholder)W=_.bn(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+W+")";this.stop();this.autoplay&&this.play()};
_.d.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.d.onEnded=function(){this.stop();_.bX(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.d.onError=function(){_.bX(this.hostElement,"yt-video-thumbnail-error")};
_.d.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.d.getVideoThumbnail=function(W){if(W&&W.length)return W[0]};
z4.prototype.dataChanged=z4.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],z4.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],z4.prototype,"animatePlaceholderOnEntrance",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],z4.prototype,"autoplay",void 0);_.t([_.C({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.N("design:type",Object)],z4.prototype,"videoThumbnail",void 0);
_.t([_.C(),_.N("design:type",Boolean)],z4.prototype,"loop",void 0);_.t([_.C(),_.N("design:type",Boolean)],z4.prototype,"isVideoPlaying",void 0);_.t([_.C(),_.N("design:type",Object)],z4.prototype,"width",void 0);_.t([_.El("#mp4"),_.N("design:type",HTMLElement)],z4.prototype,"mp4El",void 0);_.t([_.El("#placeholder"),_.N("design:type",HTMLElement)],z4.prototype,"placeholderEl",void 0);_.t([_.El("#video"),_.N("design:type",HTMLVideoElement)],z4.prototype,"videoEl",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],z4.prototype,"dataChanged",null);z4=_.t([_.sl({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],z4);
_.H(z4,"yt-video-as-thumbnail-details",function(){if(Rz5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;paR===void 0&&(paR=document.createElement("template"));var T=paR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Rz5=W}W=Rz5;return W},{mode:2});var Cn=function(){var W=_.n.apply(this,arguments)||this;W.disableGridStateAware=!1;W.animationEnabled=_.e("enable_web_ketchup_hero_animation");W.transitioningOut=!1;W.narrow=!1;W.narrower=!1;W.isCarouselInFeed=!1;W.videoTimeoutJobId=0;W.panelTimeoutJobId=0;W.panelTimeoutJobStartMs=0;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.R(Cn,_.n);_.d=Cn.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.d.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var W;this.player&&((W=this.data)==null?0:W.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.d.attached=function(){this.onWindowResized()};
_.d.detached=function(){this.clearTimeouts()};
_.d.onWindowResized=function(){this.updateSize()};
_.d.computePanelLayout=function(W){return W&&W.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.playVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.play();var O;this.player&&((O=this.data)==null?0:O.inlinePlaybackRenderer)&&this.player.play()};
_.d.stopVideo=function(){var W;this.video&&((W=this.data)==null?0:W.videoThumbnail)&&this.video.stop();var O;this.player&&((O=this.data)==null?0:O.inlinePlaybackRenderer)&&this.player.stop()};
_.d.transitionOut=function(){var W=this;this.transitioningOut=!0;return new Promise(function(O){var b=function(){_.Q(W.hostElement).querySelector("#action-button").removeEventListener("animationend",b);_.sF.cancelJob(T);O();W.transitioningOut=!1};
var T=_.KB(_.sF,b,1E3);_.Q(W.hostElement).querySelector("#action-button").addEventListener("animationend",b);W.player&&(W.player.playing=!1)})};
_.d.computeMetadataOrder=function(W){return W&&W.metadataOrder&&W.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?W.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.d.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.d.computeAvatarSize=function(W){return W&&W.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.d.onContentClick=function(W){if(!_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString()])){var O;if((O=this.data)==null?0:O.navigationEndpoint){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.navigationEndpoint)}}};
_.d.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.d.setBackgroundImage=function(W){if(W=this.getBackgroundImageUrl(W))_.Q(this.hostElement).querySelector("#hero").style.backgroundImage="url("+W+")"};
_.d.setScrimLayer=function(W){var O=this.getScrimLayerColorStops(W);W=((W==null?void 0:W.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(W=180);_.Cv("HTML_DIR")==="rtl"&&(W=-W);O&&(_.Q(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+W+"deg, "+O+")")};
_.d.isNarrower=function(){return this.hostElement.clientWidth<Cn.NARROW_VERSION_SIZE};
_.d.getScrimLayerColorStops=function(){var W,O=(W=this.data)==null?void 0:W.scrimColorValues;if(!O)return null;if(O.length===1)return W=_.C_(O[0]),W+" 0%, "+W+" 100%";if(O.length===3){var b=[0,72,98];return O.map(function(T,L){return _.C_(T)+" "+b[L]+"%"}).join(",")}return null};
_.d.getBackgroundImageUrl=function(W){return W&&W.largeFormFactorBackgroundThumbnail?_.bn((W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||W.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.d.onPlaying=function(){this.startVideoTimeout()};
_.d.onEnded=function(){this.rotate()};
_.d.startPanelTimeout=function(){var W=this;if(!this.panelTimeoutJobId){var O=this.get("data.minPanelDisplayDurationMs");O&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.KB(_.sF,function(){W.rotate()},O))}};
_.d.startVideoTimeout=function(){var W=this;if(!this.videoTimeoutJobId){_.sF.cancelJob(this.panelTimeoutJobId);var O=Date.now()-this.panelTimeoutJobStartMs;O=Math.max(0,this.get("data.minPanelDisplayDurationMs")-O);O=Math.max(this.get("data.minVideoPlayDurationMs")||0,O);this.videoTimeoutJobId=_.KB(_.sF,function(){W.rotate()},O)}};
_.d.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.sF.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.sF.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.d.rotate=function(){this.clearTimeouts();_.bX(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Jq.Object.defineProperties(Cn.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.hostElement).querySelector("#video")}}});
_.Jq.Object.defineProperties(Cn,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Cn.prototype.onEnded=Cn.prototype.onEnded;Cn.prototype.onPlaying=Cn.prototype.onPlaying;Cn.prototype.dataChanged=Cn.prototype.dataChanged;_.t([_.D(_.xo),_.N("design:type",Object)],Cn.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Cn.prototype,"componentBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Cn.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.D(_.Oif),_.N("design:type",Object)],Cn.prototype,"ytBooleanLogicBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Cn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Cn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cn.prototype,"ytRendererBehavior",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"disableGridStateAware",void 0);_.t([_.C(),_.N("design:type",Object)],Cn.prototype,"data",void 0);_.t([_.C({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.N("design:type",String)],Cn.prototype,"panelLayout",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"animationEnabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"transitioningOut",void 0);
_.t([_.C({computed:"computeMetadataOrder(data)"}),_.N("design:type",Boolean)],Cn.prototype,"metadataOrder",void 0);_.t([_.C({computed:"computeByline(data)"}),_.N("design:type",Object)],Cn.prototype,"byline",void 0);_.t([_.C({computed:"computeAvatarSize(data)"}),_.N("design:type",Number)],Cn.prototype,"avatarSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"narrow",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"narrower",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"layoutStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cn.prototype,"isCarouselInFeed",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"dataChanged",null);_.t([_.ai("yt-default-promo-panel-renderer-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"onPlaying",null);
_.t([_.ai("yt-default-promo-panel-renderer-ended"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cn.prototype,"onEnded",null);Cn=_.t([_.G({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Cn);
_.H(Cn,"ytd-default-promo-panel-renderer",function(){if(ez5!==void 0)return ez5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ez5=W},{mode:1});_.Bs("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var qj=function(){var W=_.n.apply(this,arguments)||this;W.narrower=!1;W.dotMenuVisible=!1;W.paginationThumbnailsVisible=!1;W.active=!0;W.disableGridStateAware=!1;W.actionMap={"yt-window-resized":"onWindowResized"};return W};
_.R(qj,_.n);_.d=qj.prototype;_.d.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]]"}}}}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Ii(this,this.onPageTypeChange));this.currentPageSubtype=_.Y1(location.pathname);this.onWindowResized()};
_.d.detached=function(){this.jobId&&_.sF.cancelJob(this.jobId);this.updateSizeJobId&&_.sF.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.Ii(this,this.onPageTypeChange))};
_.d.onPageTypeChange=function(W){this.active=W.detail.newPageSubtype===this.currentPageSubtype};
_.d.onWindowResized=function(){this.updateSize()};
_.d.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.d.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.d.setCarouselItem=function(W){W>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.sF.cancelJob(this.jobId);var O=this.getCurrentPanelElement();O&&O.stopVideo();this.currentItemIndex=W%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(O||(O=this.getCurrentPanelElement()),O.playVideo()):this.startRotationJob()};
_.d.scrollThumbnails=function(W){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var O=this.getCurrentPaginationElement();if(O){var b=_.Q(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?b.style.transform="translateX(0)":(O=O.offsetWidth+8,b.style.transform="translateX(-"+O*(W-Math.ceil(Math.floor(this.overlay.offsetWidth/O)/2)+1)+"px)")}}};
_.d.onDataChanged=function(){var W=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.pp(_.sF,function(){W.getCurrentPanelElement().updateSize();W.updateSize()}))};
_.d.getCurrentPanelElement=function(){return _.Q(_.Q(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.d.getCurrentPaginationElement=function(){return _.Q(_.Q(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.d.getNavigationClass=function(W,O){return W===O?"selected":""};
_.d.getNavigationDurationStyle=function(W){return"animation-duration:"+(this.get("data.carouselItems."+W+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.d.onNavigationTap=function(W){var O=this,b=W.model.index;b!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){O.setCarouselItem(b)}),this.autorotateActive=!1)};
_.d.onVideoThumbnailEnded=function(){var W=this;if(this.shouldRotate()){var O=this.getCurrentPaginationElement();O&&(O.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){O.classList.remove("finished");W.setNextCarouselItem()}))}};
_.d.onVideoThumbnailError=function(){this.startRotationJob()};
_.d.onVideoNotPlaying=function(){this.startRotationJob()};
_.d.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.d.startRotationJob=function(){var W=this;_.sF.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.sF.addLowPriorityJob(function(){W.getCurrentPanelElement().transitionOut().then(function(){W.setNextCarouselItem()})},this.rotationTimeout))};
_.d.computeDotMenuVisible=function(W,O){return!!W&&!!W.carouselItems&&W.carouselItems.length>1&&!W.paginationThumbnails||!!O};
_.d.computePaginationThumbnailsVisible=function(W,O){var b,T;return((T=W==null?void 0:(b=W.paginationThumbnails)==null?void 0:b.length)!=null?T:0)>1&&!O};
_.d.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.d.computePaginatorAlignment=function(W){return(W==null?void 0:W.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.d.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.d.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.d.isNarrower=function(W){return(W!=null?W:0)<Cn.NARROW_VERSION_SIZE};
qj.prototype.activeChanged=qj.prototype.activeChanged;qj.prototype.onVideoNotPlaying=qj.prototype.onVideoNotPlaying;qj.prototype.onVideoThumbnailError=qj.prototype.onVideoThumbnailError;qj.prototype.onVideoThumbnailEnded=qj.prototype.onVideoThumbnailEnded;qj.prototype.onDataChanged=qj.prototype.onDataChanged;_.t([_.D(_.xo),_.N("design:type",Object)],qj.prototype,"ytdGridStateAwareBehavior",void 0);
_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],qj.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],qj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qj.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],qj.prototype,"currentItem",void 0);
_.t([_.C(),_.N("design:type",Number)],qj.prototype,"currentItemIndex",void 0);_.t([_.C(),_.N("design:type",Number)],qj.prototype,"rotationTimeout",void 0);_.t([_.C(),_.N("design:type",Number)],qj.prototype,"loopCount",void 0);_.t([_.C({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.N("design:type",String)],qj.prototype,"paginatorAlignment",void 0);_.t([_.C(),_.N("design:type",Number)],qj.prototype,"jobId",void 0);
_.t([_.C(),_.N("design:type",Number)],qj.prototype,"updateSizeJobId",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],qj.prototype,"isCarouselInFeed",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qj.prototype,"narrower",void 0);_.t([_.C({computed:"computeDotMenuVisible(data, narrower)"}),_.N("design:type",Object)],qj.prototype,"dotMenuVisible",void 0);
_.t([_.C({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.N("design:type",Object)],qj.prototype,"paginationThumbnailsVisible",void 0);_.t([_.C({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.N("design:type",String)],qj.prototype,"layoutType",void 0);_.t([_.C({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],qj.prototype,"autorotateActive",void 0);_.t([_.C(),_.N("design:type",Object)],qj.prototype,"active",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],qj.prototype,"disableGridStateAware",void 0);_.t([_.El("#overlay"),_.N("design:type",HTMLElement)],qj.prototype,"overlay",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qj.prototype,"onDataChanged",null);
_.t([_.ai("yt-video-thumbnail-ended"),_.ai("yt-default-promo-panel-renderer-rotate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qj.prototype,"onVideoThumbnailEnded",null);_.t([_.ai("yt-video-thumbnail-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qj.prototype,"onVideoThumbnailError",null);
_.t([_.ai("yt-video-thumbnail-not-playing"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qj.prototype,"onVideoNotPlaying",null);_.t([_.Ul("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qj.prototype,"activeChanged",null);qj=_.t([_.G({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],qj);
_.H(qj,"ytd-carousel-item-renderer",function(){if(lWU!==void 0)return lWU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return lWU=W},{mode:2});var KED;var vp2;var gp5;var opB;var nn=function(){var W=_.n.apply(this,arguments)||this;W.originalQuery=null;W.originalEndpoint=null;return W};
_.R(nn,_.n);nn.prototype.computeShowOriginalQueryWithoutEndpoint_=function(W,O){return!(!W||O)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],nn.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],nn.prototype,"correctedText",void 0);_.t([_.C(),_.N("design:type",Object)],nn.prototype,"correctedQuery",void 0);_.t([_.C(),_.N("design:type",Object)],nn.prototype,"correctedEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],nn.prototype,"originalText",void 0);_.t([_.C(),_.N("design:type",Object)],nn.prototype,"originalQuery",void 0);
_.t([_.C(),_.N("design:type",Object)],nn.prototype,"originalEndpoint",void 0);_.t([_.C({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.N("design:type",Boolean)],nn.prototype,"showOriginalQueryWithoutEndpoint",void 0);nn=_.t([_.sl({is:"yt-search-query-correction",disableElementRegistration:!0})],nn);
_.H(nn,"yt-search-query-correction",function(){if(opB===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;gp5===void 0&&(gp5=document.createElement("template"));var T=gp5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);opB=W}W=opB;return W},{mode:2});_.Bs("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var fn=function(){return _.n.apply(this,arguments)||this};
_.R(fn,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fn.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fn.prototype,"data",void 0);fn=_.t([_.sl({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],fn);
_.H(fn,"yt-did-you-mean-renderer",function(){if(vp2===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;KED===void 0&&(KED=document.createElement("template"));var T=KED;b.call(O,T.content.cloneNode(!0),W.content.firstChild);vp2=W}W=vp2;return W},{mode:2});var QfP;var kr9;_.Bs("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var G4=function(){return _.n.apply(this,arguments)||this};
_.R(G4,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],G4.prototype,"data",void 0);G4=_.t([_.sl({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],G4);
_.H(G4,"yt-including-results-for-renderer",function(){if(kr9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;QfP===void 0&&(QfP=document.createElement("template"));var T=QfP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);kr9=W}W=kr9;return W},{mode:2});var sf7;var Bf7;_.Bs("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Hc=function(){return _.n.apply(this,arguments)||this};
_.R(Hc,_.n);Hc.prototype.computeExtraClasses_=function(W,O){var b="";W&&(b+=" "+W.toLowerCase().replace(/_/g,"-"));O&&(b+=" "+O.toLowerCase().replace(/_/g,"-"));return b};
Hc.prototype.computeUrlImg_=function(){var W=this.data;W.image&&(_.Q(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.bn(W.image.thumbnails,Number.MAX_VALUE)+")")};
Hc.prototype.computeUrlImg_=Hc.prototype.computeUrlImg_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hc.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Hc.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hc.prototype,"computeUrlImg_",null);Hc=_.t([_.sl({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Hc);
_.H(Hc,"yt-music-pass-feature-info-renderer",function(){if(Bf7===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;sf7===void 0&&(sf7=document.createElement("template"));var T=sf7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Bf7=W}W=Bf7;return W},{mode:2});var rKg;var DMg;_.Bs("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var t2=function(){return _.n.apply(this,arguments)||this};
_.R(t2,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],t2.prototype,"data",void 0);t2=_.t([_.sl({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],t2);
_.H(t2,"yt-no-results-found-showing-results-for-renderer",function(){if(DMg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;rKg===void 0&&(rKg=document.createElement("template"));var T=rKg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);DMg=W}W=DMg;return W},{mode:2});var xMB;var zzg;_.Bs("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var $M=function(){return _.n.apply(this,arguments)||this};
_.R($M,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$M.prototype,"data",void 0);$M=_.t([_.sl({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],$M);
_.H($M,"yt-results-without-quotes-renderer",function(){if(zzg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;xMB===void 0&&(xMB=document.createElement("template"));var T=xMB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zzg=W}W=zzg;return W},{mode:2});var C6B;var qsB;_.Bs("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var VW=function(){return _.n.apply(this,arguments)||this};
_.R(VW,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VW.prototype,"data",void 0);VW=_.t([_.sl({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],VW);
_.H(VW,"yt-search-no-results-renderer",function(){if(qsB===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;C6B===void 0&&(C6B=document.createElement("template"));var T=C6B;b.call(O,T.content.cloneNode(!0),W.content.firstChild);qsB=W}W=qsB;return W},{mode:2});var np7;var fWR;_.Bs("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Nj=function(){return _.n.apply(this,arguments)||this};
_.R(Nj,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Nj.prototype,"data",void 0);Nj=_.t([_.sl({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Nj);
_.H(Nj,"yt-showing-results-for-renderer",function(){if(fWR===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;np7===void 0&&(np7=document.createElement("template"));var T=np7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);fWR=W}W=fWR;return W},{mode:2});var GrP;var HC7;var tt5;var $M1;var Mj=function(){var W=_.n.apply(this,arguments)||this;W.answerExpanded=!1;return W};
_.R(Mj,_.n);Mj.prototype.toggleAnswer_=function(W){var O=_.Md(W);O&&O.classList.contains("yt-simple-endpoint")||(W.preventDefault(),W.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Mj.prototype.toggleAnswer_=Mj.prototype.toggleAnswer_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Mj.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Mj.prototype,"answerExpanded",void 0);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Mj.prototype,"toggleAnswer_",null);
Mj=_.t([_.sl({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Mj);
_.H(Mj,"yt-generic-faq-question-renderer",function(){if($M1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;tt5===void 0&&(tt5=document.createElement("template"));var T=tt5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);$M1=W}W=$M1;return W},{mode:2});_.Bs("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var uI=function(){return _.n.apply(this,arguments)||this};
_.R(uI,_.n);uI.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uI.prototype,"data",void 0);uI=_.t([_.sl({is:"yt-faq-section-renderer",disableElementRegistration:!0})],uI);
_.H(uI,"yt-faq-section-renderer",function(){if(HC7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;GrP===void 0&&(GrP=document.createElement("template"));var T=GrP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);HC7=W}W=HC7;return W},{mode:2});var VtZ;var Nfg;_.Bs("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var J2=function(){return _.n.apply(this,arguments)||this};
_.R(J2,_.n);
J2.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],J2.prototype,"data",void 0);J2=_.t([_.sl({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],J2);
_.H(J2,"yt-offer-item-expanded-renderer",function(){if(Nfg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;VtZ===void 0&&(VtZ=document.createElement("template"));var T=VtZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Nfg=W}W=Nfg;return W},{mode:2});var MtP;var uAU;_.Bs("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var cc=function(){return _.n.apply(this,arguments)||this};
_.R(cc,_.n);
cc.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"}}}}};
cc.prototype.computeFullWidthMode=function(W){return!(!W||!W.fullWidthMode)};
cc.prototype.computeBorderlessMode=function(W){return!(!W||!W.borderlessMode)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cc.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.N("design:type",Boolean)],cc.prototype,"fullWidthMode",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.N("design:type",Boolean)],cc.prototype,"borderlessMode",void 0);cc=_.t([_.sl({is:"yt-offer-item-renderer",disableElementRegistration:!0})],cc);
_.H(cc,"yt-offer-item-renderer",function(){if(uAU===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;MtP===void 0&&(MtP=document.createElement("template"));var T=MtP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);uAU=W}W=uAU;return W},{mode:2});var JK2;var cKR;_.Bs("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Fc=function(){return _.n.apply(this,arguments)||this};
_.R(Fc,_.n);Fc.prototype.computeAriaLevel_=function(W){return this.getLevelID_(W)};
Fc.prototype.getLevelID_=function(W){return(W=W.match(/[0-9]+$/))&&W.length==1?W[0]:"1"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fc.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fc.prototype,"data",void 0);_.t([_.C({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.N("design:type",String)],Fc.prototype,"ariaLevel",void 0);_.t([_.C({value:"heading",reflectToAttribute:!0}),_.N("design:type",String)],Fc.prototype,"role",void 0);
_.t([_.C({value:-1,reflectToAttribute:!0}),_.N("design:type",Number)],Fc.prototype,"tabindex",void 0);Fc=_.t([_.sl({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Fc);
_.H(Fc,"yt-subscription-product-header-renderer",function(){if(cKR===void 0){var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;JK2===void 0&&(JK2=document.createElement("template"));var T=JK2;b.call(O,T.content.cloneNode(!0),W.content.firstChild);cKR=W}W=cKR;return W},{mode:2});var FE9;var yKN;_.Bs("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var yW=function(){return _.n.apply(this,arguments)||this};
_.R(yW,_.n);yW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.rd("menuRenderer"),events:!0}}};
yW.prototype.onStampFinished_=function(){_.Q(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
yW.prototype.onStampFinished_=yW.prototype.onStampFinished_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yW.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yW.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yW.prototype,"data",void 0);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yW.prototype,"onStampFinished_",null);
yW=_.t([_.sl({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],yW);
_.H(yW,"yt-subscription-product-renderer",function(){if(yKN===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;FE9===void 0&&(FE9=document.createElement("template"));var T=FE9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);yKN=W}W=yKN;return W},{mode:2});var WbR;var OLU;_.Bs("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var WJ=function(){return _.n.apply(this,arguments)||this};
_.R(WJ,_.n);WJ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
WJ.prototype.imageScrimColorValuesChanged_=function(){var W,O=(W=this.data)==null?void 0:W.imageScrimColorValues;_.Q(this.hostElement).querySelector("#scrim").style.backgroundColor=O?_.C_(O[0]):"transparent"};
WJ.prototype.imageScrimColorValuesChanged_=WJ.prototype.imageScrimColorValuesChanged_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],WJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],WJ.prototype,"data",void 0);
_.t([_.m5("data.imageScrimColorValues"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WJ.prototype,"imageScrimColorValuesChanged_",null);WJ=_.t([_.sl({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],WJ);
_.H(WJ,"yt-subscription-product-upsell-offer-renderer",function(){if(OLU===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;WbR===void 0&&(WbR=document.createElement("template"));var T=WbR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);OLU=W}W=OLU;return W},{mode:2});var iLk;var bL8;var j0k;var TsU;var Lb5;var d_R;var OD=function(){return _.n.apply(this,arguments)||this};
_.R(OD,_.n);OD.prototype.onYtServiceRequestError_=function(W){_.yU(this.hostElement,W.detail.error.message)};
OD.prototype.onYtServiceRequestError_=OD.prototype.onYtServiceRequestError_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],OD.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],OD.prototype,"collapsible",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],OD.prototype,"isManageRed",void 0);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],OD.prototype,"onYtServiceRequestError_",null);OD=_.t([_.sl({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],OD);
_.H(OD,"yt-single-ypc-offer-renderer",function(){if(d_R===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Lb5===void 0&&(Lb5=document.createElement("template"));var T=Lb5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);d_R=W}W=d_R;return W},{mode:2});var ia=function(){return _.n.apply(this,arguments)||this};
_.R(ia,_.n);ia.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ia.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ia.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ia.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ia.prototype,"isManageRed",void 0);ia=_.t([_.sl({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],ia);
_.H(ia,"yt-single-ypc-offer-list-renderer",function(){if(TsU===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;j0k===void 0&&(j0k=document.createElement("template"));var T=j0k;b.call(O,T.content.cloneNode(!0),W.content.firstChild);TsU=W}W=TsU;return W},{mode:2});var hnB;var S72;_.Bs("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ba=function(){return _.n.apply(this,arguments)||this};
_.R(ba,_.n);ba.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ba.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ba.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],ba.prototype,"isManageRed",void 0);ba=_.t([_.sl({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ba);
_.H(ba,"yt-ypc-offers-list-renderer",function(){if(S72===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;hnB===void 0&&(hnB=document.createElement("template"));var T=hnB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);S72=W}W=S72;return W},{mode:2});_.Bs("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var jg=function(){return _.n.apply(this,arguments)||this};
_.R(jg,_.n);
jg.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],jg.prototype,"data",void 0);jg=_.t([_.sl({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],jg);
_.H(jg,"yt-unlimited-manage-subscription-page-renderer",function(){if(bL8===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;iLk===void 0&&(iLk=document.createElement("template"));var T=iLk;b.call(O,T.content.cloneNode(!0),W.content.firstChild);bL8=W}W=bL8;return W},{mode:2});var ZLg;var Io1;var T6=function(){return _.n.apply(this,arguments)||this};
_.R(T6,_.n);_.d=T6.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.d.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.onKeypress_=function(W){W.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.d.handleHeaderTap_=function(W){W.preventDefault();W.stopPropagation();this.expandOffers_()};
_.d.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.d.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
T6.prototype.dataChanged_=T6.prototype.dataChanged_;_.t([_.D(_.wc),_.N("design:type",Object)],T6.prototype,"ironA11yKeysBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],T6.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],T6.prototype,"offersVisible_",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],T6.prototype,"dataChanged_",null);T6=_.t([_.sl({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],T6);
_.H(T6,"yt-collapsible-ypc-offer-renderer",function(){if(Io1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ZLg===void 0&&(ZLg=document.createElement("template"));var T=ZLg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Io1=W}W=Io1;return W},{mode:2});var aoB;var m_g;_.Bs("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Li=function(){return _.n.apply(this,arguments)||this};
_.R(Li,_.n);_.d=Li.prototype;_.d.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.d.dataChanged_=function(){if(this.data.backgroundImage){var W=_.bn(this.data.backgroundImage.thumbnails,screen.width),O=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=O?"linear-gradient(180deg, "+O+"), url("+W+")":"url("+W+")";this.data.gtmId&&_.eu(this.data.gtmId,_.Cv("GL",""))}};
_.d.onYtServiceRequestError_=function(W){_.yU(this.hostElement,W.detail.error.message)};
_.d.getScrimLayerColorStops_=function(){var W,O,b=(W=this.data.unlimitedHeaderV2Data)==null?void 0:(O=W.unlimitedHeaderV2Data)==null?void 0:O.scrimLayerColors;if(!b)return null;var T=100/b.length;return b.map(function(L,h){h*=T;return _.C_(L)+" "+h+"%"}).join(",")};
_.d.computeLogoWithPadding=function(W){var O,b,T;return(W=(O=W.unlimitedLogoImage)==null?void 0:(b=O.thumbnails)==null?void 0:(T=b[0])==null?void 0:T.height)&&W%31===0?!0:!1};
Li.prototype.onYtServiceRequestError_=Li.prototype.onYtServiceRequestError_;Li.prototype.dataChanged_=Li.prototype.dataChanged_;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Li.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.t([_.C({computed:"computeLogoWithPadding(data)"}),_.N("design:type",Boolean)],Li.prototype,"logoWithPadding",void 0);
_.t([_.C(),_.N("design:type",Object)],Li.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Li.prototype,"dataChanged_",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Li.prototype,"onYtServiceRequestError_",null);Li=_.t([_.sl({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Li);
_.H(Li,"yt-unlimited-page-header-renderer",function(){if(m_g===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;aoB===void 0&&(aoB=document.createElement("template"));var T=aoB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);m_g=W}W=m_g;return W},{mode:2});var Y7Z;var EW9;_.Bs("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var dz=function(){return _.n.apply(this,arguments)||this};
_.R(dz,_.n);dz.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dz.prototype,"data",void 0);dz=_.t([_.sl({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],dz);
_.H(dz,"yt-unlimited-user-notification-renderer",function(){if(EW9===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Y7Z===void 0&&(Y7Z=document.createElement("template"));var T=Y7Z;b.call(O,T.content.cloneNode(!0),W.content.firstChild);EW9=W}W=EW9;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.vX2=_.J1(function(W){var O=_.um(W,{numberOfChips:5}).numberOfChips;return _.E("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.E(_.pv,{each:function(){return Array(O==null?void 0:O())}},function(){return _.E("div",{class:"ytGhostChipShelfChip"})}))},"cg");_.gXB=_.J1(function(W){var O=_.I4(),b=_.iq().resolve(_.VE);_.oW(function(){requestAnimationFrame(function(){var L;(L=O.lottieEl)==null||L.addEventListener("DOMLoaded",function(){var h;(h=W.onLottieLoaded)==null||h.call(W)})})});
var T={};return _.E("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var L;return((L=W.data)==null?void 0:L.call(W).targetId)||""}},_.E(_.E1,{className:_.YS((T.ytChatLoadingViewModelRtl=b==="rtl",T)),
animationName:"YOUCHAT_LOADER",data:function(){var L;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((L=W.data)==null?void 0:L.call(W).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:O}))},"dg");
}catch(e){_._DumpException(e)}
try{
var uyZ,Jv9,cvD,Fj2,yv8,WIR,OI2,cp,F_,bIB,jD7,TbZ,dE7,EaU,yO,YK2,ZI9,mE5,ah7,Ih8,SKN,wGP,AxB,XGB,UE5,Wr,lhg,evU,PNB,ga7,va7,KIP,pGP,Rv9,oaU,QD8,k8Z,sDg,BbD,zv7,na2,fh9,G8D,tPB,VPB,MP5,up7,Jx1,cxR,yxD,Wqk,Owg,iw8,bwN,jG9,T47,dGU,II1,Zw1,h52,aI9,SM8,mG9,AU7,wQg,YMk,E3U,bx,XQk,UGN,e5N,R52,kKk,sGg,B4B,rUk,DG8,xG2,z57,Ci1,qMR,n37,GKU,Hw1,tp1,iIU,g3B;
_.u0=function(W){var O=new _.pu("Error accessing DB");return _.od2().then(function(b){return new Promise(function(T,L){try{var h=b.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(W);h.onsuccess=function(){var Z=h.result;T(Z?Z.value:null)};
h.onerror=function(){O.params={key:W,source:"onerror"};L(O)}}catch(Z){O.params={key:W,
thrownError:String(Z)},L(O)}})},function(){return null})};
_.ML1=function(W,O){var b=_.wMX(O);b!=="javascript:"&&b!=="data:"&&W.setAttribute("href",O)};
uyZ=function(W,O){return _.IJ(W.entities,"flowStateEntity",O)};
Jv9=function(W){return(W=W.getOption("captions","track"))?!!W.displayName:!1};
cvD=function(W,O){O=O.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(O==null||!O.length)return W;var b=O.filter(function(Z){return Z});
O=W.filter(function(Z){return Z.languageCode.startsWith("en")});
b=_.S(b);for(var T=b.next();!T.done;T=b.next())if(T=T.value,O.length){var L=O[0],h=Object.assign({},L);L.languageCode!==T.languageCode&&(h.displayName=L.languageName+" >> "+T.languageName,h.translationLanguage=T,W.push(h))}return W};
Fj2=function(W){var O,b=(O=W.getOption("captions","tracklist",{includeAsr:!0}))!=null?O:[];_.e("mweb_watch_captions_enable_auto_translate")&&(b=cvD(b,W));return b};
yv8=function(W){return _.qP(W,function(O){return O.languageCode==="en"})};
WIR=function(W){var O=Jw;if(Jv9(W))W.setOption("captions","stickyLoading",{}),W.setOption("captions","track",{});else{var b=_.qP(Fj2(W),function(T){return T.displayName===O});
W.setOption("captions","track",b)}};
OI2=function(W){if(!W)return 0;var O=W.getPresentingPlayerType(),b=W.getVideoData();return b&&b.isLive?(W=W.getProgressState(O),W.seekableEnd-W.seekableStart):W.getDuration(O)};
cp=function(W,O){_.sQ(O,W,function(){return iIU[O]},function(b){iIU[O]=b;
if(!_.e("mweb_player_ve_show_ks")){var T=_.Bb(0);T&&b&&_.Hg(T,b)}})};
F_=function(W){(W=iIU[W])&&_.LK(_.A4(),W)};
bIB=function(W,O){for(var b=_.S(Object.keys(W)),T=b.next();!T.done;T=b.next())if(T=T.value,W[T]!==O[T])return!1;return!0};
jD7=function(){return document.getElementById("player-control-overlay")};
TbZ=function(W){W!==-1&&!_.e("player_controls_log_creation_killswitch")&&jD7()&&(_.Bg("pcu_cs",W),_.Bg("pcu_ce"))};
dE7=function(W){return _.E("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(W.subscribeButton?[W.subscribeButton,W.channelAccess]:[W.channelAccess]).map(function(O){return _.E("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.E("div",{class:"yt-profile-identity-info-view-model-wiz--button"},LIN(O)))}))};
_.hvg=function(W){var O=W.data;W=W.hideDivider;var b={};b=(b["yt-profile-identity-info-view-model-wiz__frame"]=!0,b["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!O.channelBanner,b);b={class:_.wd(b)};var T,L={imageBannerViewModel:{image:(T=O.channelBanner)==null?void 0:T.image,style:"IMAGE_BANNER_STYLE_INSET"}};T=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},O.channelBanner?_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
LIN(L,{imageBannerViewModel:{isPositionRelative:!0}})):null);L=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},LIN(O.avatar));var h;var Z=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},O.channelDisplayName),O.verifiedOrOacBadge?_.E("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.E(_.uj,{data:{thumbnails:[{url:(h=O.verifiedOrOacBadge)==null?void 0:h.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);h=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},Z,LIN(O.threeDotMenu));Z=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.E("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.E("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},O.channelHandle),O.channelPronouns&&O.channelHandle?_.E("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.E("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},O.channelPronouns)),_.E("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.E("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},O.leftOfBulletInfo),O.leftOfBulletInfo&&O.rightOfBulletInfo?_.E("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.E("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},O.rightOfBulletInfo)));h=_.E("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},h,Z);return _.E("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.E("div",b,T,_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},L,h),O.channelDescription?_.E("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},O.channelDescription):
null,dE7(O),W?null:_.E("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
EaU=function(W,O){var b=_.Me(W,{}),T=SKN("top",O),L=SKN("bottom",O),h=SKN("left",O),Z=SKN("right",O);return _.eE({top:function(){return yO(b().position,T)},
bottom:function(){return yO(b().position,L)},
left:function(){return yO(b().position,h)},
right:function(){return yO(b().position,Z)},
position:function(){return yO(b().positionType,ZI9)},
height:function(){return yO(b().height,Wr)},
width:function(){return yO(b().width,Wr)},
"min-width":function(){return yO(b().minWidth,Wr)},
"min-height":function(){return yO(b().minHeight,Wr)},
"max-width":function(){return yO(b().maxWidth,Wr)},
"max-height":function(){return yO(b().maxHeight,Wr)},
"aspect-ratio":function(){return yO(b().aspectRatio,String)},
"margin-top":function(){return yO(b().margin,T)},
"margin-bottom":function(){return yO(b().margin,L)},
"margin-left":function(){return yO(b().margin,h)},
"margin-right":function(){return yO(b().margin,Z)},
"padding-top":function(){return yO(b().padding,T)},
"padding-bottom":function(){return yO(b().padding,L)},
"padding-left":function(){return yO(b().padding,h)},
"padding-right":function(){return yO(b().padding,Z)},
"flex-direction":function(){return yO(b().flexDirection,Ih8)},
"justify-content":function(){return yO(b().justifyContent,ah7)},
"align-items":function(){return yO(b().alignItems,mE5)},
"flex-grow":function(){return yO(b().flexGrow,String)},
"flex-shrink":function(){return yO(b().flexShrink,String)},
"flex-basis":function(){return yO(b().flexBasis,Wr)},
"align-self":function(){return yO(b().alignSelf,mE5)},
"flex-wrap":function(){return yO(b().flexWrap,YK2)},
"align-content":function(){return yO(b().alignContent,mE5)}})};
yO=function(W,O){return W!==void 0?O(W):void 0};
YK2=function(W){switch(W){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
ZI9=function(W){switch(W){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
mE5=function(W){switch(W){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"}};
ah7=function(W){switch(W){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"}};
Ih8=function(W){switch(W){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"}};
SKN=function(W,O){var b=O==="rtl";switch(W){case "top":var T=wGP;break;case "bottom":T=AxB;break;case "left":T=XGB;break;default:T=UE5}return function(L){return yO(T(L,b),Wr)}};
wGP=function(W){var O=W.top;var b=W.vertical;W=W.all;var T;return(T=O!=null?O:b)!=null?T:W};
AxB=function(W){var O=W.bottom;var b=W.vertical;W=W.all;var T;return(T=O!=null?O:b)!=null?T:W};
XGB=function(W,O){var b=W.left;var T=W.end;var L=W.start;var h=W.horizontal;W=W.all;var Z,a;return(a=(Z=b!=null?b:O?T:L)!=null?Z:h)!=null?a:W};
UE5=function(W,O){var b=W.right;var T=W.end;var L=W.start;var h=W.horizontal;W=W.all;var Z,a;return(a=(Z=b!=null?b:O?L:T)!=null?Z:h)!=null?a:W};
Wr=function(W){var O=W.value;switch(W.unit){case "YPC_DIMENSION_UNIT_POINT":return O+"px";case "YPC_DIMENSION_UNIT_FRACTION":return O+"%";default:return""+O}};
lhg=function(W){switch(W){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"}};
evU=function(W){var O=W!=null?W:{};W=O.fontRole;var b=O.fontSize;O=O.fontWeight;if(W!==null&&b!==null)switch(W){case "YPC_FONT_ROLE_DISPLAY":switch(b){case "YPC_FONT_SIZE_L":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(b){case "YPC_FONT_SIZE_L":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return O===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(b){case "YPC_FONT_SIZE_XL":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return O==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
PNB=function(W,O){return _.IJ(W.entities,"pdpStateEntity",O)};
ga7=function(W,O,b){function T(w){return Object.values(w).map(function(A){var X=A.productId;A=A.pricingOptionIndex;return pGP(L(X).pricingOptions,A).pricingOptionId})}
function L(w){return a().get(w)}
function h(w){w=T(w);b(w)}
var Z=Rv9([W,O],function(w,A){var X=w==null?void 0:w.selectedPricingOptions;w={};var l=!0;if(X&&A.length)for(var p=_.S(A),K=p.next();!K.done;K=p.next()){K=K.value;var k=KIP(K.pricingOptions,function(r){a:{r=r.pricingOptionId;for(var q=_.S(X),f=q.next();!f.done;f=q.next())if(f.value===r){r=!0;break a}r=!1}return r});
k>=0&&(l=!1,w[K.groupId]={productId:K.productId,pricingOptionIndex:k})}l&&A.length&&(w[A[0].groupId]={productId:A[0].productId,pricingOptionIndex:0});return w}),a=Rv9([O],function(w){return new Map(w.map(function(A){return[A.productId,
A]}))}),m=Rv9([O],function(w){var A=new Map;
w=_.S(w);for(var X=w.next();!X.done;X=w.next()){var l=X.value;X=l.groupId;var p=l.productId;l=_.S(va7(l.pricingOptions));for(var K=l.next();!K.done;K=l.next()){var k=_.S(K.value);K=k.next().value;k=k.next().value;A.set(k.pricingOptionId,{groupId:X,productId:p,index:K,pricingOption:k})}}return A});
return{getProductById:L,isProductSelected:function(w){var A=L(w);if(!A)return!1;var X;return((X=Z()[A.groupId])==null?void 0:X.productId)===w},
getSelectedPricingOptions:function(){return Object.values(Z()).map(function(w){var A=w.productId;w=w.pricingOptionIndex;return pGP(L(A).pricingOptions,w)})},
getSelectedProductByGroupId:function(w){var A;return(w=(A=Z()[w])==null?void 0:A.productId)?L(w):void 0},
onProductSelected:function(w){var A=L(w);if(A){var X=Z(),l;if(((l=X[A.groupId])==null?void 0:l.productId)!==w){var p,K;l=(K=(p=X[A.groupId])==null?void 0:p.pricingOptionIndex)!=null?K:0;p=0;for(K=A.pricingOptions[Symbol.iterator]();!K.next().done;)++p;p<=l&&(l=0);p={};h(Object.assign({},X,(p[A.groupId]={productId:w,pricingOptionIndex:l},p)))}}},
onPricingOptionSelected:function(w){var A=m().get(w);if(A){w=A.groupId;var X=A.productId;A=A.index;var l=Z(),p,K;if(((p=l[w])==null?void 0:p.productId)!==X||((K=l[w])==null?void 0:K.pricingOptionIndex)!==A)p={},h(Object.assign({},l,(p[w]={productId:X,pricingOptionIndex:A},p)))}},
onClearGroupSelected:function(w){var A=Z();A[w]&&(A=Object.fromEntries(Object.entries(A).filter(function(X){return _.S(X).next().value!==w})),h(A))}}};
va7=function(W){return function b(){var T,L,h,Z,a;return _.SHP(b,function(m){switch(m.nextAddress){case 1:_.SP(m,2),T=0,L=_.S(W),h=L.next();case 4:if(h.done){m.jumpTo(2);break}Z=h.value;a=_.Za8;return _.Y(m,[T++,Z],7);case 7:a(m.yieldResult);h=L.next();m.jumpTo(4);break;case 2:_.hx(m),_.Zh(m,0)}})}()};
KIP=function(W,O){W=_.S(va7(W));for(var b=W.next();!b.done;b=W.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;if(O(T))return b}return-1};
pGP=function(W,O){W=_.S(va7(W));for(var b=W.next();!b.done;b=W.next()){var T=_.S(b.value);b=T.next().value;T=T.next().value;if(b===O)return T}};
Rv9=function(W,O){var b,T;return function(){for(var L=W.map(function(Z){return Z()}),h=0;h<L.length;h++)if(!b||L[h]!==b[h]){b=L;
T=O.apply(null,_.PG(L));break}return T}};
oaU=function(W){var O;return!!(W.productId&&W.groupId&&((O=W.pricingOptions)==null?0:O.length)&&W.pricingOptions.every(function(b){return b.pricingOptionId}))};
QD8=function(W,O,b){return ga7(W,Rv9([O],function(T){return T.filter(oaU)}),b)};
k8Z=function(W,O){return O.length===0?[W]:[W.slice(0,O[0]),W.slice(O[0])].filter(function(b){return b.length>0})};
sDg=function(W){switch(W){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""}};
BbD=function(W,O,b,T){T=Object.assign({},T);_.ky(T,OI,{selectedOptionId:W,primaryButtonOverride:b});_.$I().dispatch(_.AI("flowStateEntity",O,T))};
_.xE5=function(){if(!rx7){var W=_.S(_.wu(new Map,void 0,"UJImUe"));rx7=W.next().value;DEk=W.next().value}return rx7};
zv7=function(W){if(W)return _.xE5()().get(W)};
_.CNk=function(W,O){if(W&&O){var b=_.xE5();b().set(W,O);W=b();DEk(new Map(W))}};
_.qK5=function(W){return{onSubmit:function(){var O;(O=zv7(W()))==null||O.onSubmit()},
isValid:function(){var O=zv7(W());return O?O.isValid():!0},
isSubmitting:function(){var O,b;return!!((O=zv7(W()))==null?0:(b=O.isSubmitting)==null?0:b.call(O))}}};
na2=function(W,O){return _.IJ(W.entities,"contextNoteFeedEntityPayload",O)};
fh9=function(W){W.style.height="auto";W.style.height=W.scrollHeight+"px"};
G8D=function(W){return[W.syncStep,W.asyncStep].filter(function(O){return O!==void 0})};
tPB=function(W){var O,b,T;if(W=(O=W.structuredContextNoteFormSchema)==null?void 0:(b=O.fieldSchemas)==null?void 0:(T=b.noteBody)==null?void 0:T.validationSchema)for(O=_.S(G8D(W)),b=O.next();!b.done;b=O.next()){b=b.value.rules;if(!b)break;b=_.S(b);for(b=b.next();!b.done;b=b.next())return _.P(b.value,_.HI8)}};
VPB=function(W){if(W){W=_.S(G8D(W));for(var O=W.next();!O.done;O=W.next()){O=O.value.rules;if(!O)break;O=_.S(O);for(O=O.next();!O.done;O=O.next())return _.P(O.value,$EU)}}};
MP5=function(W){if(W){W=_.S(G8D(W));for(var O=W.next();!O.done;O=W.next()){O=O.value.rules;if(!O)break;O=_.S(O);for(O=O.next();!O.done;O=O.next())return _.P(O.value,Nb1)}}};
up7=function(W){W=/^https?:\/\//.test(W)?W:"http://"+W;try{var O=_.tV(W)}catch(b){return!1}if(O.toString()!==W)return!1;W=O.JSC$8032_domain_.split(".");return W.length>1&&W.every(function(b){return!!b})};
Jx1=function(W,O,b,T){var L;T=(L=T.structuredContextNoteData)==null?void 0:L.createCommentEndpoint;if(L=_.P(T,_.E25))return L.commentText=_.VV(W),L.videoPositionMention=O,L.sources=b,T};
cxR=function(W){return W==null?void 0:W.stringValue};
yxD=function(W,O,b){W=W.map(function(T,L){return{listItemViewModel:{title:T.title,subtitle:T.subtitle,leadingImage:T.leadingImage,trailingImage:L===O?FIP:void 0,rendererContext:{commandContext:{onTap:T.onTap}}}}});
return Object.assign({},b&&{header:{panelHeaderViewModel:{title:b}}},{content:{listViewModel:{listItems:W}}})};
Wqk=function(W,O){if(W&&O)switch(O){case "SELECTION_TYPE_BOOL":return W.boolValue;case "SELECTION_TYPE_INT":return W.intValue;case "SELECTION_TYPE_STRING":return W.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return W.privacyStatusValue}};
Owg=function(W){var O;W=(O=W.options)==null?void 0:O.findIndex(function(b){return b.isSelected});
return W===void 0?-1:W};
iw8=function(W,O,b){var T=function(){return W().label},L={},h=_.YS("ytDropdownViewModelLabel",(L.ytDropdownViewModelLabelError=O,L));
return _.E(_.U,{cond:function(){return W().label&&!(b()===-1&&W().label&&!W().placeholderText)},
then:function(){return _.E("div",{class:h},_.E(_.uw,{text:T}))}})};
bwN=function(W,O){var b={};b=_.YS("ytDropdownViewModelTitle",(b.ytDropdownViewModelTitlePlaceholder=function(){return O()===-1},b));
return _.E("div",{class:b},_.E(_.uw,{text:function(){var T=W();var L=O();if(L===-1)T=T.placeholderText?T.placeholderText:T.label;else{var h,Z;T=(h=T.options)==null?void 0:(Z=h[L])==null?void 0:Z.title}return T}}))};
jG9=function(W,O){var b=function(){return W().hint};
return _.E(_.TT,null,_.E(_.U,{cond:function(){return b()&&!O()},
then:function(){return _.E("div",{class:_.YS("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.E(_.uw,{text:b,className:"ytDropdownViewModelSupportText"}))}}),_.E(_.U,{cond:O,
then:function(){return _.E("div",{id:"dropdown-view-model-error",role:"alert",class:_.YS("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.E(_.Ps,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.E(_.uw,{text:O,className:"ytDropdownViewModelSupportText"}))}}))};
T47=function(W,O){var b=_.iq().resolve(_.$F$);_.kX(function(){var T=W().id;T&&b!=null&&b.dropdownMap.set(T,O)})};
dGU=function(W){W=_.P(W.scheduleButton,LqN);W=_.P(W==null?void 0:W.primaryButton,_.Kp);W=_.P(W==null?void 0:W.onTap,_.D6);var O,b,T=((b=_.P(W,_.I5))==null?void 0:b.commands)||[W];b=_.S(T);for(W=b.next();!W.done&&!(O=_.P(W.value,_.mVn));W=b.next());var L;O=(L=O)==null?void 0:L.createBroadcastRequest;if(!O)throw Error("Hj");return O};
II1=function(W,O,b){b=b===void 0?{}:b;var T,L;return _.I(function(h){if(T=h52(O))return h.return(T);(L=SM8(W,O,b))&&Zw1(O,L);return h.return(L)})};
Zw1=function(W,O){var b=aI9(W);b&&O.then(function(T){_.iq().resolve(_.TO).put(b,new _.L1({innertubeResponse:T}))})};
h52=function(W){if(W=aI9(W)){var O=_.iq().resolve(_.TO);if(O.has(W))return O.get(W).then(function(b){return b==null?void 0:_.LD(b)})}return null};
aI9=function(W){var O=_.P(W.endpoint,_.V3);if(O!=null&&O.videoId)return O={videoId:O.videoId},_.e("web_imp_player_mute_params")&&(O.mutedAtStart=W.startPlaybackInMutedState),_.$J("inline_playback",O)};
SM8=function(W,O,b){W=_.tP(W,O.endpoint,mG9(O,b)).then(function(T){return T});
return Promise.resolve(W)};
mG9=function(W,O){O=_.e("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!W.startPlaybackInMutedState},O):Object.assign({},{vis:5,autonav:"1"},O);var b;O={contentPlaybackContext:_.p_(O,(b=_.P(W.endpoint.commandMetadata,_.F9))==null?void 0:b.url,window.location.href)};_.e("web_imp_player_mute_params")&&(O.overrideMutedAtStart=!W.startPlaybackInMutedState);return O};
AU7=function(W,O){var b=window.MutationObserver;b&&(ix=new b(function(T,L){T=_.S(T);for(var h=T.next();!h.done;h=T.next()){h=h.value;var Z;if(Z=h.type==="childList"&&h.target)a:{Z=W;h=YMk(h.target);Z=YMk(Z);for(var a=null,m=0;m<h.length;m++)if(Z.includes(h[m])){if(m===0){Z=!1;break a}a=h[m];break}a?(h=E3U(h,a),Z=E3U(Z,a),Z=h<Z):Z=!1}if(Z){O();L.disconnect();break}}}),(b=wQg())&&ix.observe(b,{childList:!0,
subtree:!0}))};
wQg=function(){var W=document.getElementsByTagName("ytd-rich-grid-renderer");if(W.length>0)return W[0];W=document.getElementsByTagName("ytd-section-list-renderer");return W.length>0?W[0]:null};
YMk=function(W){for(var O=[];W;)O.push(W),W=W.parentElement;return O};
E3U=function(W,O){var b=Array.from(O.children);O=W.indexOf(O);return O>0?b.indexOf(W[O-1]):-1};
bx=function(W,O,b){b=b===void 0?{}:b;return _.EO(W,b,O)};
XQk=function(W){switch(W){case "MUSIC":return!0;default:return!1}};
UGN=function(W){return W==null?void 0:W.filter(function(O){return O.premiereTrailerBadgeRenderer})};
e5N=function(W){var O,b=W==null?void 0:(O=W.find(function(X){return X.thumbnailOverlayTimeStatusRenderer}))==null?void 0:O.thumbnailOverlayTimeStatusRenderer,T,L;
if((b==null?0:(T=b.icon)==null?0:T.iconType)&&XQk(b==null?void 0:(L=b.icon)==null?void 0:L.iconType)){var h;return{icon:b==null?void 0:(h=b.icon)==null?void 0:h.iconType}}var Z,a;var m=(W=(Z=W==null?void 0:(m=W.find(function(X){return X.thumbnailBottomOverlayViewModel}))==null?void 0:m.thumbnailBottomOverlayViewModel)==null?void 0:(a=Z.badges)==null?void 0:a.find(function(X){var l,p;
return((l=_.P(X,lI1))==null?void 0:(p=l.inlinePlaybackBadgeData)==null?void 0:p.replicateAsTimestamp)===!0}))?_.P(W,lI1):void 0;
if(m==null?0:m.icon){var w,A;if((m=(w=_.hSi(m==null?void 0:m.icon))==null?void 0:(A=w.clientResource)==null?void 0:A.imageName)&&XQk(m))return{icon:m}}return{}};
R52=function(W,O){var b="",T="";switch(W){case -1:case 0:b=O?"VOLUME_OFF":"VOLUME_OFF_FILLED";T=PiP;break;case 1:b=O?"VOLUME_UP_OUTLINE":"VOLUME_UP";T=pQ2;break;default:_.SB(W)}return{iconName:b,ariaLabel:T}};
kKk=function(W,O){var b=Kqg,T=_.S(_.wu(v3g(new g3B(function(){},b,O)),void 0,"PAnyd")),L=T.next().value,h=T.next().value,Z=new g3B(function(a){h(a)},b,O);
_.kb(function(){Promise.resolve().then(function(){var a,m=(a=W())!=null?a:{};Z.playerControlsData=m;_.e("player_controls_skip_double_signal_old")&&(Z.lastSeenPlayerApi=_.DL(m.playerApi));_.e("player_controls_skip_double_signal_old")||(Z.lastSeenPlayerApi=_.DL(m.playerApi));o31(Z)});
_.so(function(){QG9(Z)})});
_.so(function(){QG9(Z)});
return function(){return L()}};
sGg=function(W){return function(O){var b=W(),T={playerState:O};if(O===1){var L;(L=b.playerApi)==null||L.loadModule("captions")}if(O===0){var h;(h=b.playerApi)==null||h.unloadModule("captions")}(O!==-1||_.e("web_imp_controls_set_player_state_killswitch"))&&b.setState(T)}};
B4B=function(W){return function(O){W().setState({playbackRate:O})}};
rUk=function(W){return function(O){var b=W(),T=b.playerApi,L=T==null?void 0:T.getVideoData(),h=(L==null?void 0:L.isLive)||!1;L=L==null?void 0:L.video_id;h={videoDuration:OI2(T||void 0),isLive:h,videoId:L};h.videoId!==b.videoId&&(h=Object.assign({},_.EM8(T),h));if(O==null?0:O.playertype)h.playerType=O.playertype;if(T){h.captionsAvailable=!!T.getOptions("captions");O=h;var Z;L=(Z=T.getStoryboardLevel(T.getNumberOfStoryboardLevels()-1))==null?void 0:Z.intervalMs;O.storyboardInterval=L?L/1E3:void 0;h.captionsAvailable&&
(h.captionsEnabled=Jv9(T))}h.volumeMuted=!(T==null||!T.isMuted());b.setState(h)}};
DG8=function(W){return function(O){var b=W(),T=b.playerApi;if(T){var L=T.getPresentingPlayerType();O={playedTime:O||0,percentLoaded:T.getVideoLoadedFraction(),playerType:L};b.playerState===0&&(O.playedTime=b.videoDuration);b.isLive&&(L=T.getProgressState(L),O.playedTime-=L.seekableStart,O.videoDuration=OI2(T));if(b.playerType===1)T=!1;else{var h;if((h=b.uxConfig)==null?0:h.showCuedOverlay){var Z;T=!((Z=b.playerApi)==null?0:Z.getPlayerStateObject(b.playerType).isDomPaused)}else T=!0}T&&delete O.playedTime;
b.setState(O)}}};
xG2=function(W){return function(){var O=W(),b,T,L,h={volume:(L=(b=O.playerApi)==null?void 0:b.getVolume())!=null?L:0,volumeMuted:!((T=O.playerApi)==null||!T.isMuted())};O.setState(h)}};
z57=function(W){return function(){var O=W(),b=O.playerApi;if(b){var T={captionsAvailable:!!b.getOptions("captions")};T.captionsAvailable&&(T.captionsEnabled=Jv9(b));O.setState(T)}}};
Ci1=function(W){return function(){var O=W();if(O.playerApi&&!(O.volumeMuted||O.controlsVisible&&O.isProbablyAScreenreaderUser)){O.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var b;(b=document.querySelector(".player-control-play-pause-icon"))==null||b.focus()}}};
qMR=function(W){return{appApi:Object.assign({},_.hae(),{showCaptionsToggleToast:function(O){var b,T;(T=(b=W()).showCaptionsToggleToast)==null||T.call(b,O)},
openInMiniplayer:function(){var O,b;(b=(O=W()).openInMiniplayer)==null||b.call(O)}})}};
n37=function(W,O){var b,T,L;return!!(W==null?0:(b=W.playerResponse)==null?0:(T=b.playerConfig)==null?0:(L=T.inlinePlaybackConfig)==null?0:L.showScrubbingControls)&&!(O==null?0:O.hideScrubbingControls)};
_.fIU=function(W){var O=!W.miniplayerIsActive;return[5,2,0].includes(W.miniplayerPlaybackState)||O};
GKU={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Hw1=function(W,O){var b,T,L,h,Z;_.I(function(a){if(!O.length)return a.return([]);b=[];T=_.S(O);for(L=T.next();!L.done;L=T.next())h=L.value,(Z=W.resolveIcon(h))&&!W.iconCache[Z.url]&&b.push(_.jq9(W,Z).then(function(){}).catch(function(){}));
return a.return(Promise.all(b))})};
tp1=function(W,O){var b=[];O=(new Set(O)).values();O=_.S(O);for(var T=O.next();!T.done;T=O.next()){T=T.value;for(var L=_.S(Object.values(GKU)),h=L.next();!h.done;h=L.next())b.push({iconName:T,iconStyle:h.value})}Hw1(W.iconManager,b)};
_.$GP=function(W,O,b){var T=b!=null?b:W.iconsToFetch;T!=null&&T.length?O!==void 0&&O>=0?_.KB(_.sF,function(){tp1(W,T)},O):tp1(W,T):Promise.resolve()};
iIU={};
g3B=function(W,O,b){var T=this;this.renderFn=W;this.listeners=O;this.context=b;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var L;this.lastSeenPlayerApi=_.DL((L=this.playerControlsData)==null?void 0:L.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.EM8(),void 0);_.e("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){v3g(T).setState({playerState:-1});T.resetRecentlyNavigatedJobId&&_.sF.cancelJob(T.resetRecentlyNavigatedJobId);T.recentlyNavigated=
!0;T.resetRecentlyNavigatedJobId=_.sF.addJob(function(){T.recentlyNavigated=!1},8,1E4)})};
g3B.prototype.setState=function(W){if(!_.e("mweb_player_skip_no_op_state_changes")||!bIB(W,this.state))if(this.state=Object.assign({},this.state,W),!_.e("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)W=-1,_.e("player_controls_log_creation_killswitch")||jD7()||(W=(0,_.WO)()),_.Bg("pcu_s"),_.Bg("pcu_se"),_.Bg("pcu_rs"),this.renderFn(v3g(this)),_.Bg("pcu_re"),TbZ(W),_.sF.addJob(function(){_.Bg("pcu_ap")},8)};
var v3g=function(W){var O;var b=_.DL((O=W.playerControlsData)==null?void 0:O.playerApi);return Object.assign({},W.state,{setState:W.boundSetState,domMeasurements:{progressBarLineRect:W.progressBarLineRect},playerApi:b,appApi:W.context.appApi,playerContainer:W.context.playerContainer,playerControlContainer:W.context.playerControlContainer,uxConfig:W.context.uxConfig})},o31=function(W){W.listeners.forEach(function(O){W.eventListenerCleanupFunctions.push(O.register(function(){return v3g(W)},function(){return W.getData()}))})},
QG9=function(W){W.eventListenerCleanupFunctions.forEach(function(O){O()});
W.eventListenerCleanupFunctions.length=0};
g3B.prototype.getData=function(){return this.playerControlsData};
var jR=new _.J("abuseReportFlowState");var VpN=new _.J("feedbackFormFlowState");var N4D=new _.J("inputBoxViewModel");var MpN=new _.J("flowNextStepCommand");var uHR=new _.J("flowPrevStepCommand");var JUR=new _.J("updateFlowCommand");_.cU1=new _.J("flowStepRenderer");_.HI8=new _.J("lengthValidationRule");var $EU=new _.J("regexValidationRule");var Nb1=new _.J("selectedValidationRule");var FqR=new _.J("talkToRecsViewModel");var yU1=new _.J("creatorGoalSetUpFlowDropdownItemViewModel");var WlU=new _.J("creatorGoalSetUpFlowDropdownViewModel");var lI1=new _.J("thumbnailBadgeViewModel");_.O5U=new _.J("radioButtonGroupViewModel");var LqN=new _.J("panelFooterViewModel");var i5D=new _.J("ypcCancelRecurrenceCommand");var b5U=new _.J("cancellationFlowState");var OI=new _.J("premiumPurchaseFlowState");var j87=new _.J("surveyAnswerCardRenderer");var TDP=new _.J("showMoreButtonRenderer");var Ll7;var d9U,hp8=function(){if(d9U!==void 0)return d9U;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Ll7===void 0&&(Ll7=document.createElement("template"));var T=Ll7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return d9U=W};var T$=function(){var W=_.n.apply(this,arguments)||this;W.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";W.goalDescription="";W.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";W.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";W.startButtonId="start-button";W.exampleButtonId="example-button";return W};
_.R(T$,_.n);_.d=T$.prototype;_.d.getGoalDropdownItems=function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.purchaseTargetDropdown,WlU))==null?void 0:O.dropdownItems};
_.d.getTimerDropdownItems=function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.timerDropdown,WlU))==null?void 0:O.dropdownItems};
_.d.getColorDropdownItems=function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.colorDropdown,WlU))==null?void 0:O.dropdownItems};
_.d.getDropdownItemText=function(W){var O;return(O=_.P(W,yU1))==null?void 0:O.itemLabel};
_.d.getDropdownItemValue=function(W){W=_.P(W,yU1);return(W==null?void 0:W.timeLimit)||(W==null?void 0:W.purchaseTarget)||(W==null?void 0:W.eligiblePurchaseType)};
_.d.updateFlowState=function(W){_.jx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:W}])};
_.d.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.d.updateGoalValue=function(W){this.goal=W.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.d.onTextValueChanged=function(W){this.goalDescription=W.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.d.updateTimerValue=function(W){this.timer=W.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.d.updateTierValue=function(W){this.tier=W.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.d.getButtonViewModel=function(W){W=(W==null?void 0:W.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var O,b=_.P((O=this.data)==null?void 0:O.startGoalButton,_.Kp);return Object.assign({},b,{state:W})};
_.Jq.Object.defineProperties(T$,{template:{configurable:!0,enumerable:!0,get:function(){return hp8()}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"goal",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"goalDescription",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"timer",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"tier",void 0);
_.t([_.C(),_.N("design:type",Object)],T$.prototype,"startButtonId",void 0);_.t([_.C(),_.N("design:type",Object)],T$.prototype,"exampleButtonId",void 0);T$=_.t([_.sl({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],T$);_.H(T$,"yt-creator-goal-set-up-flow-view-model",function(){return hp8()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var SVP;var Z5N;var IN8;var Ll=function(){return _.n.apply(this,arguments)||this};
_.R(Ll,_.n);_.t([_.C(),_.N("design:type",Object)],Ll.prototype,"data",void 0);Ll=_.t([_.sl({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Ll);
_.H(Ll,"yt-survey-answer-card-renderer",function(){if(IN8===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Z5N===void 0&&(Z5N=document.createElement("template"));var T=Z5N;b.call(O,T.content.cloneNode(!0),W.content.firstChild);IN8=W}W=IN8;return W},{mode:2});var aN9;var m9k;var dS=function(){return _.n.apply(this,arguments)||this};
_.R(dS,_.n);_.d=dS.prototype;_.d.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.d.selectedItemChanged=function(W){_.jx(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[W.feedbackToken||""]}])};
_.d.surveyAnswerCardRendererClicked=function(W){if(W.target&&_.P(W.model.item,j87)){var O=W.target;W=_.P(W.model.item,j87);W.onTapCommand?_.Sx(O,[W.onTapCommand],O):this.data.onTapCommand&&_.Sx(O,[this.data.onTapCommand],O);this.selectedItemChanged(W)}};
_.d.checkIsCancellationStyle=function(W){return W==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.d.updateSelectedItemFromBinding=function(W){this.selectedItem=W.detail.value};
dS.prototype.onSelectedItemChanged=dS.prototype.onSelectedItemChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dS.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],dS.prototype,"selectedItem",void 0);_.t([_.C({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],dS.prototype,"isCancellationStyle",void 0);
_.t([_.m5("selectedItem"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dS.prototype,"onSelectedItemChanged",null);dS=_.t([_.sl({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],dS);
_.H(dS,"yt-survey-flow-step-renderer",function(){if(m9k===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;aN9===void 0&&(aN9=document.createElement("template"));var T=aN9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);m9k=W}W=m9k;return W},{mode:2});var hr=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return W};
_.R(hr,_.n);hr.prototype.handleSurveyFlowStepOptionChanged=function(W){this.ytdReduxBehavior.dispatch(_.Tc({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:W}));_.jx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],hr.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],hr.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hr.prototype,"data",void 0);hr=_.t([_.G({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],hr);
_.H(hr,"ytd-survey-flow-step-renderer",function(){if(SVP!==void 0)return SVP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return SVP=W},{mode:1});var LIN;LIN=_.lw({avatarViewModel:_.KF,buttonViewModel:_.DO,subscribeButtonViewModel:_.K1,imageBannerViewModel:_.I05});_.YV8=_.AP(_.hvg);_.bO(_.hvg);var E6g;var SR=function(){return _.n.apply(this,arguments)||this};
_.R(SR,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],SR.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],SR.prototype,"data",void 0);SR=_.t([_.G({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],SR);
_.H(SR,"ytd-channel-history-renderer",function(){if(E6g!==void 0)return E6g;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return E6g=W},{mode:1});var w58;var Zj=function(){return _.n.apply(this,arguments)||this};
_.R(Zj,_.n);_.t([_.C(),_.N("design:type",Object)],Zj.prototype,"data",void 0);Zj=_.t([_.G({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Zj);
_.H(Zj,"ytd-feature-enablement-info-renderer",function(){if(w58!==void 0)return w58;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return w58=W},{mode:1});var AV1;var X5D;var Ic=function(){var W=_.n.apply(this,arguments)||this;W.textBoxMaxLength=_.e("enable_tvod_campaign_code_integration")?15:12;return W};
_.R(Ic,_.n);_.d=Ic.prototype;_.d.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.d.onSubmit=function(){var W=this.data.serviceEndpoint,O=_.P(W,_.i3);O&&W&&(O.couponCode=this.userInput,_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}}))};
_.d.validate=function(){var W=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=W&&!this.data.errorMessage;this.showErrorMessage=W&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.e("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.d.computeStyle=function(W){return W};
_.d.computeShowValidationBelowInput=function(W){return W!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.d.updateUserInputFromBinding=function(W){this.userInput=W.currentTarget.value};
_.d.updateShowErrorMessageFromBinding=function(W){this.showErrorMessage=W.detail.value};
_.Jq.Object.defineProperties(Ic.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
Ic.prototype.dataChanged=Ic.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ic.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Ic.prototype,"userInput",void 0);_.t([_.C(),_.N("design:type",Boolean)],Ic.prototype,"disableApplyButton",void 0);_.t([_.C(),_.N("design:type",Boolean)],Ic.prototype,"hideApplyButton",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Ic.prototype,"hideErrorMessage",void 0);_.t([_.C(),_.N("design:type",Boolean)],Ic.prototype,"showTick",void 0);_.t([_.C(),_.N("design:type",Boolean)],Ic.prototype,"showErrorMessage",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Ic.prototype,"couponStyle",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.N("design:type",Boolean)],Ic.prototype,"showValidationBelowInput",void 0);_.t([_.C(),_.N("design:type",Object)],Ic.prototype,"textBoxMaxLength",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ic.prototype,"dataChanged",null);
_.t([_.x("showTick","showErrorMessage","userInput"),_.N("design:type",String),_.N("design:paramtypes",[])],Ic.prototype,"validationState",null);Ic=_.t([_.G({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],Ic);
_.H(Ic,"ytd-ypc-coupon-renderer",function(){if(X5D!==void 0)return X5D;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return X5D=W},{mode:1});var ac=function(){return _.n.apply(this,arguments)||this};
_.R(ac,_.n);ac.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"}}}};
ac.prototype.computeStyle=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ac.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ac.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],ac.prototype,"buttonStyle",void 0);ac=_.t([_.G({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],ac);
_.H(ac,"ytd-flow-bottom-bar-renderer",function(){if(AV1!==void 0)return AV1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return AV1=W},{mode:1});var U98;var lNk;var ep9;var m$=function(){return _.n.apply(this,arguments)||this};
_.R(m$,_.n);m$.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
m$.prototype.focus=function(W){this.title&&_.uP(this.title,W)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],m$.prototype,"data",void 0);_.t([_.El("#title"),_.N("design:type",HTMLElement)],m$.prototype,"title",void 0);m$=_.t([_.G({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],m$);
_.H(m$,"ytd-flow-top-bar-renderer",function(){if(ep9!==void 0)return ep9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ep9=W},{mode:1});var PJR;var p55;var RpB;var YQ=function(){return _.n.apply(this,arguments)||this};
_.R(YQ,_.n);YQ.prototype.freeTextValueChanged=function(){_.jx(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
YQ.prototype.updateFreeTextValueFromBinding=function(W){this.freeTextValue=W.detail.value};
_.Jq.Object.defineProperties(YQ.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(O=(W=this.data)==null?void 0:W.responseMaxLength)!=null?O:500,T;return((T=this.freeTextValue)!=null?T:"").length>=b?"maxed-out":""}}});
YQ.prototype.freeTextValueChanged=YQ.prototype.freeTextValueChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],YQ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],YQ.prototype,"freeTextValue",void 0);_.t([_.El("#user-input"),_.N("design:type",HTMLTextAreaElement)],YQ.prototype,"input",void 0);
_.t([_.x("freeTextValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],YQ.prototype,"characterLimitClass",null);_.t([_.m5("freeTextValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YQ.prototype,"freeTextValueChanged",null);YQ=_.t([_.sl({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],YQ);
_.H(YQ,"yt-free-text-input-flow-step-renderer",function(){if(RpB===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;p55===void 0&&(p55=document.createElement("template"));var T=p55;b.call(O,T.content.cloneNode(!0),W.content.firstChild);RpB=W}W=RpB;return W},{mode:2});var EI=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return W};
_.R(EI,_.n);EI.prototype.handleFreeTextFlowStepInputChanged=function(W){_.jx(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:W}}])};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],EI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],EI.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],EI.prototype,"data",void 0);EI=_.t([_.G({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],EI);
_.H(EI,"ytd-free-text-input-flow-step-renderer",function(){if(PJR!==void 0)return PJR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return PJR=W},{mode:1});var Klg;var v68;var wS=function(){return _.n.apply(this,arguments)||this};
_.R(wS,_.n);_.t([_.C(),_.N("design:type",Object)],wS.prototype,"data",void 0);wS=_.t([_.G({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],wS);
_.H(wS,"ytd-metadata-line-renderer",function(){if(v68!==void 0)return v68;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return v68=W},{mode:1});var Ar=function(){return _.n.apply(this,arguments)||this};
_.R(Ar,_.n);Ar.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ar.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ar.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ar.prototype,"isMasthead",void 0);Ar=_.t([_.G({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Ar);
_.H(Ar,"ytd-media-product-renderer",function(){if(Klg!==void 0)return Klg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Klg=W},{mode:1});var g6B;var XQ=function(){return _.n.apply(this,arguments)||this};
_.R(XQ,_.n);XQ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
XQ.prototype.onBillboardImageLoaded=function(){_.bX(this.hostElement,"yt-refit")};
XQ.prototype.onBillboardImageLoaded=XQ.prototype.onBillboardImageLoaded;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],XQ.prototype,"data",void 0);_.t([_.El("#billboardImage"),_.N("design:type",Object)],XQ.prototype,"billboardImage",void 0);_.t([_.ai("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XQ.prototype,"onBillboardImageLoaded",null);
XQ=_.t([_.G({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],XQ);
_.H(XQ,"ytd-billboard-masthead-renderer",function(){if(g6B!==void 0)return g6B;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return g6B=W},{mode:1});var o65;var UI=function(){var W=_.n.apply(this,arguments)||this;W.smallSize=!1;return W};
_.R(UI,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],UI.prototype,"ytComponentBehaviorType",void 0);_.t([_.C(),_.N("design:type",Object)],UI.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],UI.prototype,"smallSize",void 0);UI=_.t([_.G({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],UI);
_.H(UI,"ytd-bullet-formatted-string",function(){if(o65!==void 0)return o65;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return o65=W},{mode:1});var Q8k;var lx=function(){return _.n.apply(this,arguments)||this};
_.R(lx,_.n);lx.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lx.prototype,"data",void 0);lx=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],lx);
_.H(lx,"ytd-offer-detail-renderer",function(){if(Q8k!==void 0)return Q8k;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Q8k=W},{mode:1});var kPg;var eR=function(){return _.n.apply(this,arguments)||this};
_.R(eR,_.n);eR.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eR.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],eR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],eR.prototype,"data",void 0);eR=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],eR);
_.H(eR,"ytd-offer-detail-step-renderer",function(){if(kPg!==void 0)return kPg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kPg=W},{mode:1});var s8g;var Pr=function(){var W=_.n.apply(this,arguments)||this;W.isInOfferModule=!1;return W};
_.R(Pr,_.n);_.d=Pr.prototype;_.d.computeHasEndpoint=function(){var W;return!((W=this.data)==null||!W.onClickCommand)};
_.d.dataChanged=function(){var W;if((W=this.data)==null?0:W.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")};
_.d.detached=function(){var W;if((W=this.data)==null?0:W.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.d.handleClickEvent=function(){var W;if((W=this.data)==null?0:W.onClickCommand){var O;this.componentBehavior.resolveCommand((O=this.data)==null?void 0:O.onClickCommand)}};
_.d.onContentKeyDown=function(W){W.key==="Enter"?this.handleClickEvent(W):W.key===" "&&W.preventDefault()};
_.d.onContentKeyUp=function(W){W.key===" "&&this.handleClickEvent(W)};
Pr.prototype.dataChanged=Pr.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Pr.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pr.prototype,"data",void 0);_.t([_.C({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Pr.prototype,"hasEndpoint",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pr.prototype,"isInOfferModule",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pr.prototype,"dataChanged",null);Pr=_.t([_.G({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Pr);
_.H(Pr,"ytd-channel-masthead-renderer",function(){if(s8g!==void 0)return s8g;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return s8g=W},{mode:1});var BD2;var pl=function(){var W=_.n.apply(this,arguments)||this;W.thumbnailObjectFit="CONTAIN";W.thumbnailObjectPosition="LEFT";W.isExpanded=!1;return W};
_.R(pl,_.n);_.d=pl.prototype;_.d.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.d.dataChanged=function(){this.resetStates()};
_.d.computeisTapOnOfferInfoContainerEnabled=function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.d.onExpandBtnClick=function(){var W,O=_.P((W=this.data)==null?void 0:W.showMoreButtonRenderer,TDP);O&&_.dk(_.A4(),O.trackingParams);this.isExpanded=!this.isExpanded};
_.d.onOfferInfoClick=function(W){this.isTapOnOfferInfoContainerEnabled&&(_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.JP(_.Nd(W)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.d.onBottomBarClick=function(){this.executeTapCommand()};
_.d.executeTapCommand=function(){var W,O=(W=this.data)==null?void 0:W.tapCommand;O&&this.ytComponentBehavior.resolveCommand(O)};
_.d.resetStates=function(){this.isExpanded=!1};
_.Jq.Object.defineProperties(pl.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var W=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),O,b,T;return((O=this.data)==null?void 0:O.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&W&&!!((b=this.data)==null?0:(T=b.benefits)==null?0:T.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((O=_.P((W=this.data)==null?void 0:W.showMoreButtonRenderer,TDP))==null?void 0:O.showMoreButtonTitle)||((b=this.data)==null?void 0:b.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((O=_.P((W=this.data)==null?void 0:W.showMoreButtonRenderer,TDP))==null?void 0:O.showLessButtonTitle)||((b=this.data)==null?void 0:b.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var W;return(W=this.showLessButtonTitle)!=null?W:""}var O;return(O=this.showMoreButtonTitle)!=null?O:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?void 0:W.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((O=this.data)==null?0:O.footerTitle)||((b=this.data)==null?0:b.footerSubtitle))}}});
pl.prototype.dataChanged=pl.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],pl.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",String)],pl.prototype,"thumbnailObjectFit",void 0);
_.t([_.C(),_.N("design:type",String)],pl.prototype,"thumbnailObjectPosition",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.N("design:type",Boolean)],pl.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.t([_.C(),_.N("design:type",Object)],pl.prototype,"isExpanded",void 0);_.t([_.C(),_.N("design:type",Object)],pl.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.footerIcon)"}),_.N("design:type",String)],pl.prototype,"icon",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pl.prototype,"dataChanged",null);_.t([_.x("data.thumbnail"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pl.prototype,"hasThumbnail",null);_.t([_.x("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pl.prototype,"enableExpandButton",null);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pl.prototype,"enableOfferContentIcon",null);_.t([_.x("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],pl.prototype,"showMoreButtonTitle",null);_.t([_.x("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.N("design:type",Object),_.N("design:paramtypes",[])],pl.prototype,"showLessButtonTitle",null);
_.t([_.x("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.N("design:type",String),_.N("design:paramtypes",[])],pl.prototype,"expandedBtnText",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pl.prototype,"enableBottomBar",null);pl=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],pl);
_.H(pl,"ytd-offer-card-renderer",function(){if(BD2!==void 0)return BD2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BD2=W},{mode:1});var rV5;var Rc=function(){return _.n.apply(this,arguments)||this};
_.R(Rc,_.n);Rc.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"}}}};
Rc.prototype.onClick=function(W){if(!_.un(W.composedPath()||[],this.hostElement,["A".toString()])){var O,b;if((W=(b=_.P((O=this.data)==null?void 0:O.actionButton,_.s2))==null?void 0:b.command)&&!this.ytComponentBehavior.resolveCommand(W)){var T;(T=_.A4())==null||T.clickCommand(W);_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})}}};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Rc.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rc.prototype,"data",void 0);Rc=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Rc);
_.H(Rc,"ytd-offer-content-renderer",function(){if(rV5!==void 0)return rV5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return rV5=W},{mode:1});var D95;var Kl=function(){return _.n.apply(this,arguments)||this};
_.R(Kl,_.n);Kl.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Jq.Object.defineProperties(Kl.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.title)||!((O=this.data)==null||!O.description)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Kl.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Kl.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kl.prototype,"hasHeaderData",null);Kl=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],Kl);
_.H(Kl,"ytd-offer-section-renderer",function(){if(D95!==void 0)return D95;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return D95=W},{mode:1});var x92;var vr=function(){return _.n.apply(this,arguments)||this};
_.R(vr,_.n);
vr.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vr.prototype,"data",void 0);vr=_.t([_.G({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],vr);
_.H(vr,"ytd-offer-selection-step-renderer",function(){if(x92!==void 0)return x92;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return x92=W},{mode:1});var zpg;var gS=function(){return _.n.apply(this,arguments)||this};
_.R(gS,_.n);gS.prototype.computeStyle=function(W){return W};
gS.prototype.computeImageWidth=function(W){return W==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.t([_.C({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],gS.prototype,"containerStyle",void 0);_.t([_.C({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.N("design:type",String)],gS.prototype,"imageWidth",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gS.prototype,"data",void 0);
gS=_.t([_.G({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],gS);
_.H(gS,"ytd-confirmation-masthead-renderer",function(){if(zpg!==void 0)return zpg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zpg=W},{mode:1});var CJg;var oc=function(){return _.n.apply(this,arguments)||this};
_.R(oc,_.n);oc.prototype.computeStyle=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oc.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.N("design:type",String)],oc.prototype,"containerStyle",void 0);oc=_.t([_.G({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],oc);
_.H(oc,"ytd-purchase-complete-detail-renderer",function(){if(CJg!==void 0)return CJg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return CJg=W},{mode:1});var qV9;var Qi=function(){var W=_.n.apply(this,arguments)||this;W.scriptsAppended=!1;return W};
_.R(Qi,_.n);Qi.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"}}}};
Qi.prototype.onDataChanged=function(){var W=this.get("data.gtmId");W&&(_.eu(W,_.Cv("GL","")),this.setupConversionTracking())};
Qi.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
Qi.prototype.onDataChanged=Qi.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qi.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Qi.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Qi.prototype,"scriptsAppended",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qi.prototype,"onDataChanged",null);Qi=_.t([_.G({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],Qi);
_.H(Qi,"ytd-purchase-complete-step-renderer",function(){if(qV9!==void 0)return qV9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qV9=W},{mode:1});var n6D;var kQ=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(kQ,_.n);kQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kQ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kQ.prototype,"darkerDarkTheme",void 0);kQ=_.t([_.G({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],kQ);
_.H(kQ,"ytd-ypc-transaction-error-message-renderer",function(){if(n6D!==void 0)return n6D;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return n6D=W},{mode:1});var fN7;var GPR;var sI=function(){var W=_.n.apply(this,arguments)||this;W.handlePhoneVerificationSuccess=function(O){if(W.isValidPhoneVerificationCompletionMessageEvent(O)){var b;((b=W.data)==null?0:b.nextStepCommand)&&W.ytComponentBehavior.resolveCommand(W.data.nextStepCommand)}};
return W};
_.R(sI,_.n);sI.prototype.isValidPhoneVerificationCompletionMessageEvent=function(W){if(W.data!=="yt-phone-verification-complete")return!1;W=_.cU(W.origin);return W!==null&&W.includes("youtube.com")};
sI.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
sI.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],sI.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sI.prototype,"data",void 0);sI=_.t([_.sl({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],sI);
_.H(sI,"yt-feature-enablement-soft-entry-renderer",function(){if(GPR===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;fN7===void 0&&(fN7=document.createElement("template"));var T=fN7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);GPR=W}W=GPR;return W},{mode:1});var H5k;var trN;var $92;var Vr8;var Br=function(){return _.n.apply(this,arguments)||this};
_.R(Br,_.n);_.t([_.C(),_.N("design:type",Object)],Br.prototype,"data",void 0);Br=_.t([_.sl({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Br);
_.H(Br,"yt-benefits-item-renderer",function(){if(Vr8===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;$92===void 0&&($92=document.createElement("template"));var T=$92;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Vr8=W}W=Vr8;return W},{mode:2});var ND8;var MrZ;var rS=function(){return _.n.apply(this,arguments)||this};
_.R(rS,_.n);rS.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
rS.prototype.computeisWithoutPadding=function(){var W;return((W=this.data)==null?void 0:W.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rS.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.N("design:type",Boolean)],rS.prototype,"isWithoutPadding",void 0);rS=_.t([_.sl({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],rS);
_.H(rS,"yt-benefits-section-renderer",function(){if(MrZ===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;ND8===void 0&&(ND8=document.createElement("template"));var T=ND8;b.call(O,T.content.cloneNode(!0),W.content.firstChild);MrZ=W}W=MrZ;return W},{mode:2});var Dj=function(){return _.n.apply(this,arguments)||this};
_.R(Dj,_.n);Dj.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Dj.prototype.computeisUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Dj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Dj.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.N("design:type",Boolean)],Dj.prototype,"isUsingLargeWidth",void 0);Dj=_.t([_.sl({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],Dj);
_.H(Dj,"yt-benefits-flow-step-renderer",function(){if(trN===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;H5k===void 0&&(H5k=document.createElement("template"));var T=H5k;b.call(O,T.content.cloneNode(!0),W.content.firstChild);trN=W}W=trN;return W},{mode:2});var uu1;var JV5;var xQ=function(){return _.n.apply(this,arguments)||this};
_.R(xQ,_.n);xQ.prototype.checkIsUsingLargeWidth=function(){var W;return((W=this.data)==null?void 0:W.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.t([_.C(),_.N("design:type",Object)],xQ.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xQ.prototype,"ytRendererBehavior",void 0);_.t([_.C({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.N("design:type",Boolean)],xQ.prototype,"isUsingLargeWidth",void 0);xQ=_.t([_.sl({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],xQ);
_.H(xQ,"yt-confirmation-flow-step-renderer",function(){if(JV5===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;uu1===void 0&&(uu1=document.createElement("template"));var T=uu1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);JV5=W}W=JV5;return W},{mode:2});var cVg;var Flk;var z$=function(){return _.n.apply(this,arguments)||this};
_.R(z$,_.n);_.t([_.C(),_.N("design:type",Object)],z$.prototype,"data",void 0);z$=_.t([_.sl({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],z$);
_.H(z$,"yt-info-flow-step-renderer",function(){if(Flk===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;cVg===void 0&&(cVg=document.createElement("template"));var T=cVg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Flk=W}W=Flk;return W},{mode:2});var yVU;var WCP;var Cl=function(){return _.n.apply(this,arguments)||this};
_.R(Cl,_.n);_.t([_.C(),_.N("design:type",Object)],Cl.prototype,"data",void 0);Cl=_.t([_.sl({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],Cl);
_.H(Cl,"yt-info-list-flow-step-renderer",function(){if(WCP===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;yVU===void 0&&(yVU=document.createElement("template"));var T=yVU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);WCP=W}W=WCP;return W},{mode:2});var OS5=_.J1(function(W){var O=W.data;return _.E("styled-text-view-model",{class:_.YS("ytStyledTextViewModelHost",function(){return evU(O().fontAttributes)},function(){return lhg(O().color)})},_.E(_.uw,{text:function(){return O().text},
ariaLabel:function(){var b,T,L;return(L=(b=O().accessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)!=null?L:""}}))},"Re");
OS5.idomCompat=!0;var iSg=_.J1(function(W){var O=function(){var L,h,Z,a;return(a=(Z=(L=W.alt)==null?void 0:L.call(W))!=null?Z:(h=W.data().accessibilityData)==null?void 0:h.label)!=null?a:""},b=function(){return W.data().imageWidth},T=function(){return W.data().imageHeight};
return _.E("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.E(_.U,{cond:function(){var L=W.data();if(L){var h,Z,a;var m=((h=_.iq().resolve(_.OT(_.t4)))==null?0:h())?(Z=L.imageDark)!=null?Z:L.imageLight:(a=L.imageLight)!=null?a:L.imageDark}else m=void 0;return m},
then:function(L){return _.E(_.uj,Object.assign({},W,{data:L,alt:O,targetWidth:b,targetHeight:T,preserveHeight:!0,preserveWidth:!0}))}}))},"Se");
iSg.idomCompat=!0;var qW=_.J1(function(W){var O=W.data;W=_.Me(function(){return O().slots},[]);
var b=_.Me(function(){return O().layoutProperties},{}),T=_.iq().resolve(_.VE);
return _.E("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:EaU(b,T)},_.E(_.pv,{each:W,keyBy:"INDEX"},function(L){return _.E("div",{class:"ytContainerLayoutViewModelSlot",style:EaU(function(){return L().layoutProperties},T)},_.E(_.R4,{data:function(){return L().contents}},{containerLayoutViewModel:qW,
badgeViewModel:_.cd,buttonViewModel:_.DO,styledTextViewModel:OS5,contentPreviewImageViewModel:function(h){return _.E(_.Fi,{data:h.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(h){return _.E(iSg,{data:h.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Te");
qW.idomCompat=!0;var bS8=_.J1(function(W){var O=W.data;var b=W.stateFns;var T=function(){var w=O(),A=w.productId;return!(!w.clearGroupId&&!A)},L=function(){var w=O(),A=w.clearGroupId;
return(w=w.productId)?b().isProductSelected(w):A?b().getSelectedProductByGroupId(A)==null:!1},h=function(){var w=O(),A=w.clearGroupId;
if(w=w.productId)b().onProductSelected(w);else if(A)b().onClearGroupSelected(A)},Z=function(){var w=O(),A=w.clearGroupId;
if(w=w.productId){var X;return"group:"+(((X=b().getProductById(w))==null?void 0:X.groupId)||"")}return A?"group:"+A:""},a=_.Me(function(){return O().header},[]),m=_.Me(function(){return O().body},[]);
return _.E("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.E(_.U,{cond:function(){return a().length>0||T()},
then:function(){return _.E("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.E("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.E(_.R4,{data:a},{containerLayoutViewModel:function(w){return _.E("div",{class:"ytPdpCardSectionViewModelContentItem"},_.E(qW,{data:w.data}))},
styledTextViewModel:function(w){return _.E("div",{class:"ytPdpCardSectionViewModelContentItem"},_.E(OS5,{data:w.data}))}})),_.E(_.U,{cond:T,
then:function(){return _.E("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.E(_.K8,{checked:L,name:Z,onChange:h}))}}))}}),_.E(_.U,{cond:function(){return m().length>0},
then:function(){return _.E("div",null,_.E(_.R4,{data:m},{containerLayoutViewModel:function(w){return _.E("div",{class:"ytPdpCardSectionViewModelContentItem"},_.E(qW,{data:w.data}))}}))}}))},"Ue");
bS8.idomCompat=!0;var jvR=_.J1(function(W){var O=W.data;var b=W.stateFns;return _.E("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.E(_.U,{cond:function(){return O().banner},
then:function(T){return _.E("div",{class:"ytPdpCardViewModelBanner"},_.E(_.uw,{text:T}))}}),_.E(_.R4,{data:function(){return O().sections}},{pdpCardSectionViewModel:function(T){T=T.data;
var L={};return _.E("div",{class:_.YS("ytPdpCardViewModelSectionContainer",(L.ytPdpCardViewModelShowDividers=function(){return O().showDividers},L))},_.E(bS8,{data:T,
stateFns:b}))}}))},"Ve");
jvR.idomCompat=!0;var TuP=_.J1(function(W){var O=W.data;var b=W.isOverlay;W={};return _.E("pdp-masthead-view-model",{class:_.YS("ytPdpMastheadViewModelHost",(W.ytPdpMastheadViewModelIsOverlay=b,W))},_.E(_.R4,{data:function(){return O().image}},{contentPreviewImageViewModel:_.Fi,
themedImageViewModel:function(T){return _.E(iSg,{data:T.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.E(_.U,{cond:function(){return O().title},
then:function(T){return _.E("h1",{class:"ytPdpMastheadViewModelHeading"},_.E(_.uw,{text:T,isOverlay:b}))}}),_.E(_.pv,{each:function(){var T;
return(T=O().finePrint)!=null?T:[]}},function(T){return _.E("div",{class:"ytPdpMastheadViewModelFinePrint"},_.E(_.uw,{text:T,
isOverlay:b}))}))},"We");
TuP.idomCompat=!0;var LC5=_.J1(function(W){var O=W.data;var b=W.stateFns;return _.E("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.E(_.pv,{each:function(){var T=b().getSelectedPricingOptions().map(function(h){return h.pricingOptionId}),L=b().getSelectedProductByGroupId(O().groupId);
return L?L.pricingOptions.map(function(h){return{pricingOption:h,isSelected:T.includes(h.pricingOptionId)}}):(_.xG(Error("Gj`"+O().groupId)),[])},
keyBy:"INDEX"},function(T){return _.E("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.E("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.E(_.R4,{data:function(){return T().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:qW})),_.E("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.E(_.K8,{checked:function(){return T().isSelected},
onClick:function(){b().onPricingOptionSelected(T().pricingOption.pricingOptionId);var L=T().pricingOption.onSelectPricingOption;if(L=_.xy(L)){var h;(h=_.iq().resolve(_.bq))==null||h.resolveCommand(L)}}})))}))},"Xe");
LC5.idomCompat=!0;var drR=_.J1(function(W){var O=W.data;var b=W.stateFns;return _.E("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.E(_.R4,{data:function(){var T,L;return(L=(T=b().getSelectedPricingOptions()[0])==null?void 0:T.primaryButton)!=null?L:O().emptyStateButton}},{buttonViewModel:_.DO}))},"Ye");
drR.idomCompat=!0;var h09=_.J1(function(W){var O=W.stateFns;return _.E("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.E(_.R4,{data:function(){return O().getSelectedPricingOptions().flatMap(function(b){return b.summaryLines}).filter(function(b){return!!b})}},{containerLayoutViewModel:function(b){return _.E("div",{class:"ytPdpSummaryViewModelLineItem"},_.E(qW,{data:b.data}))}}))},"Ze");
h09.idomCompat=!0;var So8=_.J1(function(W){function O(r){var q=Z();_.Ne(_.o4("pdpStateEntity",q,{key:q,selectedPricingOptions:r}))}
var b=W.data;var T=W.internalScrolling;var L=W.stateFnsForTesting;var h=_.Me(function(){return b().allProducts},[]),Z=_.Me(function(){return b().pdpStateEntityKey},""),a=_.wt(PNB,Z),m=_.Pj(function(){_.ru(!0);
var r;return(r=L==null?void 0:L())!=null?r:QD8(a,h,O)},void 0,"POBqwe"),w=_.Me(function(){return b().body},[]),A=_.Me(function(){return b().columnBreakHints},[]),X=function(){return b().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},l=function(){return X()||b().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},p=_.Pj(function(){var r=_.ML(b().background),q;
if(r==null?0:(q=r.sources)==null?0:q.length){var f=f===void 0?!0:f;r=_.IKT(void 0,r.sources,void 0,f,f?1E3:void 0,f?void 0:1E3)}else r=null;return r},void 0,"BkCmEd");
W=_.eE({"--pdp-view-model-background":function(){return p()?"url("+p()+")":void 0}});
var K={};T=_.YS("ytPdpViewModelHost",(K.ytPdpViewModelHasBackground=function(){return l()||!!p()},K.ytPdpViewModelHasDarkBackground=l,K.ytPdpViewModelHasScrim=X,K.ytPdpViewModelInternalScrolling=_.Me(T,!1),K));
var k=function(r){var q={};return _.YS("ytPdpViewModelItem",(q.ytPdpViewModelFullBleed=function(){return _.nWT(r())==="dividerViewModel"||_.nWT(r())==="sectionHeaderViewModel"},q.ytPdpViewModelNoVerticalPadding=function(){return _.nWT(r())==="sectionHeaderViewModel"},q))};
_.kX(function(){var r=b().onStartCommand;if(r&&(r=_.xy(r))){var q;(q=_.iq().resolve(_.bq))==null||q.resolveCommand(r)}});
return _.E("pdp-view-model",{class:T,style:W},_.E("div",{class:"ytPdpViewModelColumnContainer"},_.E(_.pv,{each:function(){return k8Z(w(),A())},
keyBy:"INDEX"},function(r){return _.E("div",{class:"ytPdpViewModelColumn"},_.E(_.R4,{data:r},{containerLayoutViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(qW,{data:q}))},
dividerViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(_.UHL,{data:q}))},
pdpCardViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(jvR,{data:q,
stateFns:m}))},
pdpMastheadViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(TuP,{data:q,
isOverlay:l}))},
pdpPricingOptionSelectorViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(LC5,{data:q,
stateFns:m}))},
pdpPrimaryButtonViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(drR,{data:q,
stateFns:m}))},
pdpSummaryViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(h09,{data:q,
stateFns:m}))},
sectionHeaderViewModel:function(q,f){q=q.data;return _.E("div",{class:k(function(){return r()[f()]})},_.E(_.j9,{data:q}))}}))})))},"$e");
So8.idomCompat=!0;_.O1(So8,"pdp-view-model",{props:{data:_.te,stateFnsForTesting:_.Ws,internalScrolling:_.Ws}});var ZS1=_.J1(function(W){var O=W.data;var b=W.className;var T=_.wt(_.OQ,function(){return O().flowStateEntityKey});
return _.E("ytm-premium-purchase-button-renderer",{class:_.YS("yt-premium-purchase-button-renderer",b)},_.E(_.R4,{data:function(){var L;return(L=_.P(T(),OI))==null?void 0:L.primaryButtonOverride}},{buttonRenderer:function(L){return _.E(_.fA,{data:L.data,
className:b})},
buttonViewModel:function(L){return _.E(_.DO,{data:L.data,className:b})}}))},"af");
ZS1.idomCompat=!0;var Iq2=_.J1(function(W){var O=W.data;var b=function(){return sDg(O().style)},T=_.YS("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b),L=_.YS("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",b);
return _.E("yt-flow-bottom-bar-renderer",{class:_.YS("yt-flow-bottom-bar-renderer",W.className,b)},_.E(_.R4,{data:function(){return O().secondaryButton}},{buttonRenderer:function(h){return _.E(_.fA,{data:h.data,
className:L})},
buttonViewModel:function(h){return _.E(_.DO,{data:h.data,className:L})},
premiumPurchaseButtonRenderer:function(h){return _.E(ZS1,{data:h.data,className:L})}}),_.E(_.R4,{data:function(){return O().primaryButton}},{buttonRenderer:function(h){return _.E(_.fA,{data:h.data,
className:T})},
buttonViewModel:function(h){return _.E(_.DO,{data:h.data,className:T})},
premiumPurchaseButtonRenderer:function(h){return _.E(ZS1,{data:h.data,className:T})}}))},"bf");
Iq2.idomCompat=!0;_.O1(Iq2,"yt-flow-bottom-bar-renderer",{props:{data:_.te,className:_.te}});var aq7=_.J1(function(W){return _.E("yt-offer-summary-renderer",{class:_.YS(W.className,"ytOfferSummaryRendererHost")},_.E("div",{class:"ytOfferSummaryRendererTextContainer"},_.E("div",{class:"ytOfferSummaryRendererEyebrowText"},_.E(_.uw,{text:function(){return W.data().eyebrowText}})),_.E("div",{class:"ytOfferSummaryRendererTitle"},_.E(_.uw,{text:function(){return W.data().title}})),_.E("div",{class:"ytOfferSummaryRendererSubtitle"},_.E(_.uw,{text:function(){return W.data().subtitle}})),_.E("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.E(_.pv,{each:function(){var O;
return(O=W.data().featureListData)!=null?O:[]}},function(O){var b;
return _.E("div",{class:"ytOfferSummaryRendererFeatureList"},_.E(_.Ps,{icon:(b=O.icon)==null?void 0:b.iconType,className:O.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.E("div",{class:"ytOfferSummaryRendererFeatureListText"},_.E(_.uw,{text:O.text})))})),_.E("div",{class:"ytOfferSummaryRendererDescription"},_.E(_.uw,{text:function(){return W.data().description}}))))},"cf");_.O1(_.J1(function(W){var O={};O=_.YS("ytOfferSummaryFlowStepRendererHost",(O.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=W.shouldDisableHeaderTopMargin,O));return _.E("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:O},_.E("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.E("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.E(_.uw,{text:function(){return W.data().header}})),_.E("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.E(_.uw,{text:function(){return W.data().subtitle}}))),_.E("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.E(_.R4,{data:function(){return W.data().offerSummary}},{offerSummaryRenderer:function(b){return _.E(aq7,{data:b.data,
className:W.flowClassName})}})))},"df"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Ws,
flowClassName:_.Ws,flowStateEntityKey:_.Ws,shouldDisableHeaderTopMargin:_.Ws}});var mr2=_.J1(function(W){var O=W.data;var b=W.className;var T=W.flowStateEntityKey;var L=W.selectionStepStyle;W=_.XL(function(m){var w=O(),A=T==null?void 0:T();m.target&&(m.stopPropagation(),m=A||"",A=_.OQ(_.$I().getState(),m),w=Object.assign({},A,{premiumPurchaseFlowState:{selectedOptionId:w.optionId,primaryButtonOverride:w.primaryButtonOverride}}),_.$I().dispatch(_.AI("flowStateEntity",m,w)));return!1});
var h=function(){return(T==null?void 0:T())||""},Z=_.wt(_.OQ,h);
_.kX(function(){var m=O(),w=h(),A=Z();!_.P(A,OI)&&m.defaultSelected&&w!==""&&m.primaryButtonOverride&&BbD(m.optionId||"",w,m.primaryButtonOverride,A)});
var a={};return _.E("ytm-option-item-renderer",{"on:click":W,class:_.YS(b,"ytm-option-item-renderer",(a["ytm-option-item-renderer--lp2-style"]=function(){return(L==null?void 0:L())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},a))},_.E("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.E("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var m=O(),w=h(),A=Z();A=_.P(A,OI);return(A?(A==null?void 0:A.selectedOptionId)||"":m.defaultSelected&&w!==""?(m==null?void 0:m.optionId)||"":"")===O().optionId},
name:("input"+_.gN(_.p8)).toString()})),_.E("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.E(_.U,{cond:function(){return O().eyebrowText},
then:function(){return _.E("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.E(_.uw,{text:function(){return O().eyebrowText}}))}}),_.E("div",{class:"ytm-option-item-renderer__option-item-title"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.E(_.uw,{text:function(){return O().subtitle}})),_.E("div",{class:"ytm-option-item-renderer__option-item-description"},_.E(_.uw,{text:function(){return O().description}}))))},
"ef");var YoN=_.J1(function(W){var O=W.data;var b=W.flowClassName;var T=W.flowStateEntityKey;var L=W.selectionStepStyle;return _.E("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.E("div",{class:"yt-option-section-renderer__option-section-header-section"},_.E("div",{class:"yt-option-section-renderer__option-section-header"},_.E(_.uw,{text:function(){return O().title}}),_.E(_.R4,{data:function(){return O().titleBadge}},{badgeViewModel:function(h){return _.E(_.cd,
{data:h.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.E(_.U,{cond:function(){return O().subtitle},
then:function(){return _.E("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.E(_.uw,{text:function(){return O().subtitle}}))}}),_.E(_.U,{cond:function(){return O().featureListData},
then:function(h){return _.E("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.E(_.pv,{each:h},function(Z){var a;return _.E("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.E(_.Ps,{icon:(a=Z.icon)==null?void 0:a.iconType,className:Z.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.E("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.E(_.uw,{text:Z.text})))}))}}),_.E(_.pv,{each:function(){return O().sectionDisclaimers||[]}},function(h){return _.E("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.E(_.uw,{text:h}))})),_.E(_.R4,{data:function(){return O().optionItems}},{optionItemRenderer:function(h){return _.E("div",{class:"yt-option-section-renderer__option-item"},_.E(mr2,{data:h.data,
className:b,flowStateEntityKey:T,selectionStepStyle:L}))}}),_.E(_.U,{cond:function(){return O().offerText},
then:function(){return _.E("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.E(_.uw,{text:function(){return O().offerText}}))}}))},"ff");
YoN.idomCompat=!0;var Eb7=_.J1(function(W){var O=W.data;var b=W.flowClassName;var T=W.flowStateEntityKey;W=W.isDesktop;var L=function(){var w;return(w=O().flowStateEntityKey)!=null?w:T==null?void 0:T()},h=function(){return(L==null?void 0:L())||""},Z=function(){return O().style},a=_.wt(_.OQ,h);
_.kX(function(){var w=O(),A=h(),X=a();!_.P(X,OI)&&w.noPreselect&&A!==""&&w.defaultButtonOverride&&BbD("default",A,w.defaultButtonOverride,X)});
var m={};return _.E("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.YS("ytm-option-selection-flow-step-renderer",(m["ytm-option-selection-flow-step-renderer--desktop"]=W,m["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return O().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},m))},_.E("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"},
_.E("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.E(_.uw,{text:function(){return O().header}})),_.E("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.E(_.uw,{text:function(){return O().subtitle}}))),_.E(_.R4,{data:function(){return O().optionItems||[]}},{optionItemRenderer:function(w){return _.E("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.E(mr2,{data:w.data,
className:b,flowStateEntityKey:L,selectionStepStyle:Z}))},
optionSectionRenderer:function(w){return _.E("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.E(YoN,{data:w.data,flowClassName:b,flowStateEntityKey:L,selectionStepStyle:Z}))}}))},"gf");
Eb7.idomCompat=!0;_.O1(Eb7,"yt-option-selection-flow-step-renderer",{props:{data:_.te,flowClassName:_.te,flowStateEntityKey:_.te,isDesktop:_.te}});var rx7,DEk;_.nl=_.J1(function(W){var O=_.um(W,{type:1,disablePadding:!1,disablePrimaryButton:!1}),b=O.data,T=O.type;W=O.disablePadding;var L=O.disablePrimaryButton,h=O.onClickPrimaryButton,Z=function(){return b().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},a=function(){return{disabled:L(),
state:L()?"disabled":"active"}},m=function(){return b().leadingLabel||b().trailingLabel};
O={};return _.E("yt-panel-footer-view-model",{class:_.YS("yt-panel-footer-view-model-wiz",(O["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return b().shouldHideDivider},O["yt-panel-footer-view-model-wiz--disable-padding"]=W,O))},_.E(_.U,{cond:m,
then:function(){var w={},A={};return _.E("div",{class:_.YS("yt-panel-footer-view-model-wiz__text-row",(w["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var X=b();return!(!X.leadingLabel&&!X.trailingLabel||!X.primaryButton&&!X.secondaryButton)},w))},_.E(_.uw,{text:function(){return b().leadingLabel},
className:_.YS((A["yt-panel-footer-view-model-wiz--text-padding"]=m,A))}),_.E(_.uw,{text:function(){return b().trailingLabel}}))}}),_.E(_.U,{cond:Z,
then:function(){var w={};return _.E("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.E("div",{class:_.YS("yt-panel-footer-view-model-wiz__primary-button",(w["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return b().secondaryButton},w))},_.E(_.R4,{data:function(){return b().primaryButton}},{buttonViewModel:function(A){return _.E(_.DO,{data:A.data,
buttonOverrides:a,onClick:h})}})),_.E(_.R4,{data:function(){return b().secondaryButton}},{buttonViewModel:_.DO}))}}),_.E(_.U,{cond:function(){return!Z()},
then:function(){var w={},A={},X={};return _.E("div",{class:_.YS("yt-panel-footer-view-model-wiz__button-row",(w["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===T()},w))},_.E("div",{class:_.YS("yt-panel-footer-view-model-wiz__button-row--left-button",(A["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===T()},A["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!b().secondaryButton||0===T()},A["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===T()},A))},_.E(_.R4,{data:function(){return b().secondaryButton}},{buttonViewModel:_.DO})),_.E("div",{class:_.YS("yt-panel-footer-view-model-wiz__primary-button",(X["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===T()||1===T()},X["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===T()},X))},_.E(_.R4,{data:function(){return b().primaryButton}},{buttonViewModel:function(l){return _.E(_.DO,{data:l.data,
buttonOverrides:a,onClick:h})}})))}}))},"hf");
_.nl.idomCompat=!0;_.wjR=_.J1(function(W){W=_.um(W,{disablePadding:!1});var O=W.data,b=W.disablePadding;W=_.qK5(function(){return O().formId});
var T=W.onSubmit,L=W.isValid,h=W.isSubmitting;return _.E("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.E(_.R4,{data:function(){return O().panelFooter}},{panelFooterViewModel:function(Z){return _.E(_.nl,{data:Z.data,
onClickPrimaryButton:function(){T()},
disablePrimaryButton:function(){return!L()||h()},
disablePadding:b})}}))},"jf");_.O1(_.wjR,"yt-form-footer-view-model",{props:{data:_.te,disablePadding:_.te}});_.O1(_.J1(function(W){return _.E("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.E("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.E(_.U,{cond:function(){var O;return(O=W.data())==null?void 0:O.image},
then:function(O){return _.E(_.uj,{data:O,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.E("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.E(_.uw,{text:function(){var O;
return(O=W.data())==null?void 0:O.title}})),_.E("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.E(_.uw,{text:function(){var O;
return(O=W.data())==null?void 0:O.subtitle}})),_.E("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.E(_.R4,{data:function(){var O;
return(O=W.data())==null?void 0:O.viewTipsButton}},{buttonViewModel:_.DO}))))},"kf"),"yt-contributor-zero-state-view-model",{props:{data:_.te}});var AtR=_.J1(function(W){var O=_.wt(na2,_.Me(function(){var b;return(b=W.data())==null?void 0:b.noteFeedEntityKey},""));
return _.E("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.E("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.E("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.E(_.U,{cond:function(){var b,T;return(b=W.data())==null?void 0:(T=b.noteData)==null?void 0:T.isPinned},
then:function(){return _.E(_.Ps,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.E(_.uw,{text:function(){var b,T;
return(b=W.data())==null?void 0:(T=b.noteData)==null?void 0:T.headerText}}),_.E("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.E(_.uw,{text:function(){var b,T;
return(b=W.data())==null?void 0:(T=b.noteData)==null?void 0:T.delimiter}})),_.E(_.uw,{text:function(){var b,T;
return(b=O())==null?void 0:(T=b.contributorNote)==null?void 0:T.publishedTimeText}})),_.E(_.R4,{data:function(){var b,T,L,h=(b=W.data())==null?void 0:b.noteData;
b=(T=O())==null?void 0:(L=T.contributorNote)==null?void 0:L.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:h.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:h.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:h.deleteDialogTitle}]},dialogMessages:[{runs:[{text:h.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.deleteActionText}]},command:{performCommentActionEndpoint:{action:b}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:h.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.E("div",{class:"ytNoteViewModelNoteContent"},_.E(_.uw,{text:function(){var b,T;
return(b=O())==null?void 0:(T=b.contributorNote)==null?void 0:T.text}})))},"lf");
AtR.idomCompat=!0;_.O1(AtR,"yt-note-view-model",{props:{data:_.te}});var fl=_.J1(function(W){var O=_.um(W,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),b=O.label,T=O.text,L=O.placeholder,h=O.hint;W=O.rows;var Z=O.overflowStyle,a=O.outline,m=O.disabled,w=O.disableNewLines,A=O.characterLimit,X=O.validation,l=O.onInput,p=_.uy();O=_.S(_.ln(function(){return T()}));
var K=O.next().value,k=O.next().value;O=_.S(_.wu(!1,void 0,"fXvinf"));var r=O.next().value,q=O.next().value,f=function(){q(!0)},M=function(){q(!1)};
_.kX(function(){var nE=p.value,tX=Z(),yh=K();tX==="expand-vertically"&&yh&&fh9(nE);p.value.addEventListener("focusin",f);p.value.addEventListener("focusout",M)});
_.so(function(){p.value.removeEventListener("focusin",f);p.value.removeEventListener("focusout",M)});
var V=function(){var nE;return(nE=X())==null?void 0:nE.validate(K())},jQ=function(){return A()&&!V()&&K().length>A().maxChars},y=function(){return!!V()||jQ()};
O=_.XL(function(nE){if(!nE.currentTarget)return!1;nE=nE.currentTarget;k(nE.value);Z()==="expand-vertically"&&fh9(nE);l==null||l(nE.value);return!0});
var d8=_.XL(function(nE){w()&&nE.key==="Enter"&&nE.preventDefault();return!1}),pE=_.XL(function(){p.value.focus()}),Qh=function(){return L()||b()},KE={},fE={},r8={};
return _.E("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.E("div",{class:_.YS("ytStandardsTextareaShapeTextareaContainer",(KE.ytStandardsTextareaShapeTextareaContainerOutline=a,KE.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=m,KE.ytStandardsTextareaShapeTextareaContainerOutlineError=y,KE)),"on:click":pE},_.E("label",{class:_.YS("ytStandardsTextareaShapeLabel",(fE.ytStandardsTextareaShapeLabelFocused=r,fE.ytStandardsTextareaShapeLabelDisabled=m,fE.ytStandardsTextareaShapeLabelError=
function(){return y()&&!m()},fE.ytStandardsTextareaShapeLabelHidden=function(){return!r()&&!K()&&!!Qh()},fE))},b),_.E("div",{class:_.YS("ytStandardsTextareaShapePlaceholder",(r8.ytStandardsTextareaShapePlaceholderVisible=function(){return!r()&&!K()},r8)),
"aria-hidden":"true"},Qh),_.E("textarea",{el:p,class:"ytStandardsTextareaShapeTextarea",rows:W,disabled:m,placeholder:Qh,"on:input":O,"on:keydown":d8},K)),_.E(_.U,{cond:function(){return h()&&!y()},
then:function(){var nE={};return _.E("div",{class:_.YS("ytStandardsTextareaShapeHint",(nE.ytStandardsTextareaShapeHintDisabled=m,nE))},_.E("div",{class:"ytStandardsTextareaShapeHintHintMessage"},h))}}),_.E(_.U,{cond:V,
then:function(){return _.E(Xjk,{disabled:m},_.E("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.E(_.U,{cond:A,
then:function(nE){return _.E(_.U,{cond:jQ,then:function(){return _.E(Xjk,{disabled:m},_.E("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return nE().errorMessage}),_.E("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return K().length+"/"+nE().maxChars}))}})}}))},"mf");
fl.idomCompat={callbacks:{onInput:!0}};var Xjk=_.J1(function(W){var O={};return _.E("div",{class:_.YS("ytStandardsTextareaShapeError",(O.ytStandardsTextareaShapeErrorDisabled=W.disabled,O)),role:"alert"},_.E(_.Ps,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),W.children)},"nf");_.Ur5=_.J1(function(W){var O=W.data;return _.E("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.E(fl,{text:W.text,label:function(){var b;return(b=O().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=O().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=O().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=O().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=O().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:W.disabled,disableNewLines:function(){var b;return(b=O().displayProperties)==null?void 0:b.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var b;return(b=O().displayProperties)==null?void 0:b.rows}}))},"of");_.lqU=_.J1(function(W){var O=W.data;return _.E("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.E(fl,{text:W.text,label:function(){var b;return(b=O().contentProperties)==null?void 0:b.labelText},
placeholder:function(){var b;return(b=O().contentProperties)==null?void 0:b.placeholderText},
hint:function(){var b;return(b=O().contentProperties)==null?void 0:b.hintText},
outline:function(){var b;return!((b=O().displayProperties)==null?0:b.hideBorder)},
overflowStyle:function(){var b;return((b=O().displayProperties)==null?0:b.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var b;return(b=O().displayProperties)==null?void 0:b.disableNewLines},
onInput:W.onInput,characterLimit:W.characterLimit,validation:W.validation,rows:function(){var b;return(b=O().displayProperties)==null?void 0:b.rows}}))},"pf");var e0N=_.J1(function(W){var O=_.S(_.ln(function(){var Qh,KE;return((Qh=W.data().structuredContextNoteFormSchema)==null?0:(KE=Qh.initialValues)==null?0:KE.noteBody)?W.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),b=O.next().value,T=O.next().value;
O=_.S(_.ln(function(){W.data();return!1}));
var L=O.next().value,h=O.next().value;O=_.S(_.ln(function(){W.data();return!1}));
var Z=O.next().value,a=O.next().value;O=_.S(_.ln(function(){var Qh,KE;return((Qh=W.data().structuredContextNoteFormSchema)==null?0:(KE=Qh.initialValues)==null?0:KE.timestamp)?W.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var m=O.next().value,w=O.next().value;O=_.S(_.ln(function(){W.data();return!1}));
var A=O.next().value,X=O.next().value;O=_.S(_.ln(function(){var Qh,KE;return((Qh=W.data().structuredContextNoteFormSchema)==null?0:(KE=Qh.initialValues)==null?0:KE.sources)?[W.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var l=O.next().value,p=O.next().value;O=_.S(_.ln(function(){W.data();return!1}));
var K=O.next().value,k=O.next().value;O=_.S(_.ln(function(){return!1}));
var r=O.next().value,q=O.next().value;_.kX(function(){var Qh;_.CNk((Qh=W.data().structuredContextNoteFormSchema)==null?void 0:Qh.id,{isSubmitting:r,onSubmit:function(){q(!0);var KE=Jx1(b(),m(),l(),W.data()),fE=_.iq().resolve(_.bq);KE&&fE&&fE.resolveCommand(KE,{commandController:{onSuccess:function(){q(!1)}}})},
isValid:function(){return L()&&!Z()&&!A()&&!K()}})});
var f=function(Qh){if(Qh!==void 0&&(T(Qh),!L()&&Qh.length>0&&h(!0),L())){var KE=tPB(W.data());if(KE){var fE=KE.minLength;KE=KE.maxLength;fE&&Qh.length<fE?a(!0):KE&&Qh.length>KE?a(!0):a(!1)}}},M=function(Qh){if(Qh!==void 0){w(Qh);
if(Qh.length>0){var KE,fE,r8,nE,tX=VPB((KE=W.data())==null?void 0:(fE=KE.structuredContextNoteFormSchema)==null?void 0:(r8=fE.fieldSchemas)==null?void 0:(nE=r8.timestamp)==null?void 0:nE.validationSchema);if(tX&&(KE=tX.regex)&&!(new RegExp(KE)).test(Qh)){X(!0);return}}X(!1)}},V=function(Qh){if(Qh!==void 0){var KE=Qh.split(/[ \n]/).map(function(fE){return fE.trim()});
p(KE);if(Qh.length>0)for(Qh=_.S(KE),KE=Qh.next();!KE.done;KE=Qh.next())if(!up7(KE.value)){k(!0);return}k(!1)}},jQ=function(){return{validate:function(Qh){if(L()){var KE=tPB(W.data());
if(KE){var fE=KE.minLength;KE=KE.translations;if(fE&&Qh.length<fE)return KE==null?void 0:KE.minLengthErrorMessage}}}}},y=function(){var Qh=tPB(W.data()),KE=Qh==null?void 0:Qh.maxLength,fE;
Qh=Qh==null?void 0:(fE=Qh.translations)==null?void 0:fE.maxLengthErrorMessage;if(KE&&Qh)return{maxChars:KE,errorMessage:Qh}},d8=function(){return{validate:function(Qh){if(Qh){var KE,fE,r8,nE,tX=VPB((KE=W.data())==null?void 0:(fE=KE.structuredContextNoteFormSchema)==null?void 0:(r8=fE.fieldSchemas)==null?void 0:(nE=r8.timestamp)==null?void 0:nE.validationSchema);
if(tX&&(KE=tX.regex,tX=tX.translations,KE&&!(new RegExp(KE)).test(Qh)))return tX==null?void 0:tX.regexErrorMessage}}}},pE=function(){return{validate:function(Qh){if(Qh){var KE,fE,r8,nE,tX=MP5((KE=W.data())==null?void 0:(fE=KE.structuredContextNoteFormSchema)==null?void 0:(r8=fE.fieldSchemas)==null?void 0:(nE=r8.sources)==null?void 0:nE.validationSchema);
if(tX&&(KE=tX.translations,KE==null?0:KE.selectedErrorMessage))for(Qh=Qh.split(/[ \n]/).map(function(yh){return yh.trim()}),Qh=_.S(Qh),fE=Qh.next();!fE.done;fE=Qh.next())if(!up7(fE.value))return Qh=void 0,(Qh=KE)==null?void 0:Qh.selectedErrorMessage}}}};
return _.E("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.E("div",{class:"ytStructuredContextNoteViewModelTextField"},_.E(_.R4,{data:function(){var Qh;return(Qh=W.data())==null?void 0:Qh.noteContents}},{textFormFieldViewModel:function(Qh){return _.E(_.lqU,{data:Qh.data,
onInput:f,validation:jQ,characterLimit:y})},
textFieldViewModel:function(Qh){return _.E(_.Ur5,{data:Qh.data,onInput:f,validation:jQ,characterLimit:y})}})),_.E("div",{class:"ytStructuredContextNoteViewModelTextField"},_.E(_.R4,{data:function(){var Qh;
return(Qh=W.data())==null?void 0:Qh.noteTimestamp}},{textFormFieldViewModel:function(Qh){return _.E(_.lqU,{data:Qh.data,
onInput:M,validation:d8})},
textFieldViewModel:function(Qh){return _.E(_.Ur5,{data:Qh.data,onInput:M,validation:d8})}})),_.E("div",{class:"ytStructuredContextNoteViewModelTextField"},_.E(_.R4,{data:function(){var Qh;
return(Qh=W.data())==null?void 0:Qh.noteSources}},{textFormFieldViewModel:function(Qh){return _.E(_.lqU,{data:Qh.data,
onInput:V,validation:pE})},
textFieldViewModel:function(Qh){return _.E(_.Ur5,{data:Qh.data,onInput:V,validation:pE})}})))},"qf");
e0N.idomCompat=!0;_.O1(e0N,"yt-structured-context-note-view-model",{props:{data:_.te}});var Pt8=_.J1(function(W){var O=_.S(_.ln(function(){var h;if((h=W.controlled)==null?0:h.call(W))return[];var Z;return(((Z=W.data())==null?void 0:Z.chips)||[]).map(function(a){a=_.P(a,_.xV);if(a==null?0:a.selected)return cxR(a.chipValue)}).filter(function(a){return a!==void 0})})),b=O.next().value,T=O.next().value,L=function(h){var Z=cxR(h.chipValue);
if(Z!==void 0){var a;if((a=W.controlled)==null?0:a.call(W))return void W.controlled().onTap(Z);h=b().includes(Z)?[].concat(_.PG(b().filter(function(w){return w!==Z}))):[].concat(_.PG(b()),[Z]);
T(h);var m;if((m=W.uncontrolled)==null?0:m.call(W))W.uncontrolled().onUpdate(h)}};
return _.E("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.E(_.pv,{each:function(){return W.data().chips||[]}},function(h){return _.E("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.E(_.Aa$,{data:function(){return _.P(h,_.xV)},
selected:function(){var Z;if(Z=_.P(h,_.xV)){var a=cxR(Z.chipValue);if(a!==void 0){var m;Z=((m=W.controlled)==null?0:m.call(W))?W.controlled().selectedValues.includes(a):b().includes(a)}else Z=void 0}else Z=!1;return Z},
callback:L}))}))},"rf");var pj9=_.J1(function(W){var O=W.data;var b=function(){var a;return((a=O())==null?void 0:a.flowStateKey)||""},T=_.wt(_.OQ,b),L=function(){var a;
return(a=_.P(T(),VpN))==null?void 0:a.chips},h=function(a){if(a!==void 0){var m=L()||[];
m=m.find(function(w){return w===a})?m.filter(function(w){return w!==a}):[].concat(_.PG(m),[a]);
m=Object.assign({},T(),{feedbackFormFlowState:Object.assign({},_.P(T(),VpN),{chips:m})});_.Ne(_.AI("flowStateEntity",b(),m))}},Z=function(){var a;
return _.P((a=O())==null?void 0:a.inputBox,N4D)};
W=_.Ei(function(a){var m=Z();m=!(m==null?0:m.maxChars)||a.length<=m.maxChars;a=Object.assign({},T(),{feedbackFormFlowState:Object.assign({},_.P(T(),VpN),{detail:a}),abuseReportFlowState:Object.assign({},_.P(T(),jR),{navigationEnabled:m})});_.Ne(_.AI("flowStateEntity",b(),a))},150);
return _.E("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.E("div",{class:"ytFeedbackFormViewModelChips"},_.E(_.R4,{data:function(){var a;return(a=O())==null?void 0:a.chipSelection}},{chipSelectionFormFieldViewModel:function(a){return _.E(Pt8,{data:a.data,
controlled:function(){return{selectedValues:L()||[],onTap:h}}})}})),_.E("div",{class:"ytFeedbackFormViewModelInputBox"},_.E(fl,{text:function(){var a;
return(a=_.P(T(),VpN))==null?void 0:a.detail},
placeholder:function(){var a;return((a=Z())==null?void 0:a.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var a=Z();if(a&&a.maxChars)return{maxChars:a.maxChars,errorMessage:a.maxCharsExceededErrorMessage||""}},
onInput:W})),_.E("div",{class:"ytFeedbackFormViewModelFooterText"},_.E(_.uw,{text:function(){return O().footerText}})))},"sf");
pj9.idomCompat=!0;_.O1(pj9,"yt-feedback-form-view-model",{props:{data:_.te}});var R0Z=_.J1(function(W){var O=W.data;var b=function(){return O().flowStateKey||""},T=_.wt(uyZ,b),L=function(){return _.P(T(),jR)},h=function(){if(_.e("enable_gff_accessibility_fix")){var Z=!0,a;
if((a=L())==null?0:a.navigationEnabled){var m;_.nb((m=L())==null?void 0:m.navigationCommand);Z=!1}a=Object.assign({},T(),{abuseReportFlowState:Object.assign({},L(),{isReportFormDirty:Z})});_.Ne(_.AI("flowStateEntity",b(),a))}else _.nb((Z=L())==null?void 0:Z.navigationCommand)};
return _.E("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.E("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.E(_.R4,{data:function(){return O().cancelButton}},{buttonViewModel:function(Z){return _.E(_.DO,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}}),_.E(_.R4,{data:function(){var Z;
if(O().navButton){var a=Object;var m=a.assign,w=_.P(O().navButton,_.Kp),A=((Z=L())==null?0:Z.navigationEnabled)||_.e("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",X,l;Z=_.P((X=L())==null?void 0:X.navigationCommand,_.D6);X=(l=_.P(Z,_.t8))==null?void 0:l.url;a={buttonViewModel:m.call(a,{},w,{state:A,iconName:X?"OPEN_IN_NEW":""})}}else a=void 0;return a}},{buttonViewModel:function(Z){return _.E(_.DO,{data:Z.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:h})}})))},"tf");
R0Z.idomCompat=!0;_.O1(R0Z,"yt-report-form-bottom-bar-view-model",{props:{data:_.te}});var KCP=_.J1(function(W){var O=W.nextStep;return _.E("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.E("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.E(_.Ps,{icon:function(){return O().iconName||""}})),_.E("div",null,_.E(_.uw,{text:function(){return O().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"uf"),vbg=_.J1(function(W){var O=W.data;
var b,T=(b=_.iq().resolve(_.OT(_.t4)))==null?void 0:b(),L=_.wt(_.OQ,function(){return O().flowStateKey||""});
return _.E("yt-report-form-confirmation-page-view-model",{class:function(){var h;return((h=_.P(L(),jR))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.E("div",{class:function(){var h;
return((h=_.P(L(),jR))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.E(_.uj,{data:function(){return T&&O().imageDark?O().imageDark:O().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.E("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.E("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return O().confirmationHeader}),_.E("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.E(_.uw,{text:function(){return O().confirmationText}})),_.E("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.E(_.uw,{text:function(){return O().lawEnforcementText}})),
_.E("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return O().whatToExpectHeader}),_.E(_.U,{cond:function(){return O().nextSteps},
then:function(h){return _.E("div",null,_.E(_.pv,{each:h},function(Z){return _.E(KCP,{nextStep:Z})}))}}),_.E(_.U,{cond:function(){return O().legalReportText},
then:function(h){return _.E("div",null,_.E(_.uw,{text:h,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vf");
vbg.idomCompat=!0;_.O1(vbg,"yt-report-form-confirmation-page-view-model",{props:{data:_.te}});var gbB=_.J1(function(W){var O=W.data;var b=function(){var h;return((h=_.P(O().inputBox,N4D))==null?void 0:h.maxChars)||500},T=function(){return O().flowStateKey||""},L=_.wt(_.OQ,T);
W=_.Ei(function(h){h=Object.assign({},L(),{flowFormState:{isValid:h.length<=b()},abuseReportFlowState:{userComments:h,navigationEnabled:!(h.length>b()),isReportFormDirty:!0}});_.$I().dispatch(_.o4("flowStateEntity",T(),h))},150);
_.kX(function(){var h=Object.assign({},L(),{flowFormState:{isValid:!0}});_.$I().dispatch(_.o4("flowStateEntity",T(),h))});
return _.E("yt-report-form-details-page-view-model",{class:function(){var h;return((h=_.P(L(),jR))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.E("h1",{class:function(){var h;
return((h=_.P(L(),jR))==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return O().detailsPageHeader}),_.E("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.E(_.uw,{text:function(){return O().bodyText}})),_.E("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.E(fl,{label:function(){var h;
return((h=_.P(O().inputBox,N4D))==null?void 0:h.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var h;return{errorMessage:((h=_.P(O().inputBox,N4D))==null?void 0:h.maxCharsExceededErrorMessage)||"",maxChars:b()}},
onInput:W})))},"wf");
gbB.idomCompat=!0;_.O1(gbB,"yt-report-form-details-page-view-model",{props:{data:_.te}});var obk=_.J1(function(W){var O=W.data;var b=W.selectedKey;var T=W.onSelected;var L=W.groupName;var h=function(){return O().text},Z=function(){return O().attributedText},a=function(){return O().subtext},m=function(){return O().attributedSubtext},w=_.E("div",{class:"ytRadioButtonItemViewModelLabel"},_.E(_.U,{cond:h,
then:function(){return _.E("div",null,h)}}),_.E(_.U,{cond:Z,
then:function(){return _.E(_.uw,{text:Z})}}),_.E(_.U,{cond:a,
then:function(){return _.E("div",{class:"ytRadioButtonItemViewModelSubText"},a)}}),_.E(_.U,{cond:m,
then:function(){return _.E("div",{class:"ytRadioButtonItemViewModelSubText"},_.E(_.uw,{text:m}))}})),A=function(){if(Z()){var l;
return(l=Z())==null?void 0:l.content}return h()},X=function(){if(m()){var l;
return(l=m())==null?void 0:l.content}return a()};
W={};return _.E("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.E(_.K8,{name:L,checked:function(){return!(b==null||!b()||O().key!==(b==null?void 0:b()))},
onChange:function(l){T==null||T(l.target,O(),L==null?void 0:L())},
labelRenderable:function(){return w},
ariaLabel:function(){return X()?A()+", "+X():A()},
className:_.YS((W.ytRadioButtonItemViewModelSubTitle=function(){return!!O().subtext},W))}))},"xf");_.Qvg=_.J1(function(W){var O=W.data;var b=W.onSelected;var T=W.selectedKey;var L=W.groupName;return _.E("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.E("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.E(_.R4,{data:function(){return O().radioButtons}},{radioButtonItemViewModel:function(h){return _.E(obk,{data:h.data,
onSelected:b,selectedKey:T,groupName:function(){return(L==null?void 0:L())||O().key}})}})))},"yf");var kxD=_.J1(function(W){var O=W.data;var b=_.J8(),T=function(){return O().flowStateKey||""},L=_.wt(_.OQ,T),h=function(){return _.P(L(),jR)};
_.kb(function(){var Z,a;if(((Z=h())==null?0:Z.isReportFormDirty)&&((a=h())==null||!a.navigationEnabled)&&_.e("enable_gff_accessibility_fix")){var m;if(((m=h())==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var w;(w=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||w.scrollIntoView()}else{var A;(A=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||A.scrollIntoView()}}});
return _.E("yt-report-form-reason-select-page-view-model",{class:function(){var Z;return((Z=h())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.E("h1",{class:function(){var Z;
return((Z=h())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return O().pageHeader}),_.E("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.E(_.uw,{text:function(){return O().bodyText}})),_.E("div",{class:function(){var Z;
return((Z=h())==null?void 0:Z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.E(_.U,{cond:function(){var Z,a;
return((Z=h())==null?void 0:Z.isReportFormDirty)&&!((a=h())==null?0:a.navigationEnabled)&&_.e("enable_gff_accessibility_fix")},
then:function(){return _.E("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:b},_.E(_.Ps,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.E("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return O().emptyReasonSelectErrorMessage}))}}),_.E(_.Qvg,{data:function(){return _.P(O().radioButtonGroup,_.O5U)},
onSelected:function(Z,a){Z=Object.assign({},L(),{abuseReportFlowState:Object.assign({},h(),{reasonKey:a.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:a.command})});_.Ne(_.AI("flowStateEntity",T(),Z))},
selectedKey:function(){var Z;return(Z=h())==null?void 0:Z.reasonKey},
groupName:"report-form-reason-select-page"})))},"zf");
kxD.idomCompat=!0;_.O1(kxD,"yt-report-form-reason-select-page-view-model",{props:{data:_.te}});var sv7=_.J1(function(W){var O=W.data;var b,T=(b=_.iq().resolve(_.OT(_.t4)))==null?void 0:b();return _.E("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.E("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.E(_.uj,{data:function(){return T&&O().imageDark?O().imageDark:O().image},
alt:""})),_.E("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.E("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return O().header}),_.E(_.uw,{text:function(){return O().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Af");
sv7.idomCompat=!0;_.O1(sv7,"yt-report-form-sign-in-page-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=function(){var w;return(w=O().textInputPlaceholder)==null?void 0:w.content},T=function(w){w=w.target.value.trim();
var A=O().onUpdateText;A&&_.nb(A,{form:{userQuery:w}});O().userQuery=w},L=_.Ei(function(w){T(w)},150),h=_.XL(function(w){L(w);
return!1}),Z=_.XL(function(w){w.key==="Enter"&&(T(w),(w=O().onNextStepCommand)&&_.nb(w,{}));
return!1}),a=_.uy(),m=function(){if(_.e("web_hide_explore_hub_until_user_navigates_back_to_home")){var w,A,X;
(X=(A=(w=a.value)==null?void 0:w.closest("ytd-flow-step-renderer"))==null?void 0:A.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||X.click()}};
return _.E("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:a},_.E("div",{class:"ytwTalkToRecsTopCornerButton"},_.E(_.R4,{data:function(){return O().topCornerButton}},{buttonViewModel:_.DO})),_.E("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.E("div",{class:"ytwTalkToRecsTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytwTalkToRecsSubtitle"},_.E(_.uw,{text:function(){return O().subtitle}})),_.E("div",{class:"ytwTalkToRecsChipsShelf"},_.E(_.R4,{data:function(){return O().answersShelf}},
{chipsShelfViewModel:function(w){return _.E(_.vjv,{data:w.data,
callback:m})}})),_.E(_.U,{cond:function(){return O().showOpenTextInput&&!_.e("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.E("div",{class:"ytwTalkToRecsUserInputBox"},_.E("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:b,value:function(){return O().userQuery},
"on:input":h,"on:keyup":Z}))}})))},"Bf"),"yt-talk-to-recs-view-model",{props:{data:_.te}});var FIP={sources:[{clientResource:{imageName:"CHECK"}}]};_.Bu2=_.J1(function(W){var O=_.uy();W=_.um(W,{error:void 0});var b=W.data,T=W.error,L=W.onSelected;W=_.S(_.ln(function(){return Owg(b())}));
var h=W.next().value,Z=W.next().value;T47(b,function(X){Z(X);var l,p,K=Wqk((l=b().options)==null?void 0:(p=l[X])==null?void 0:p.value,b().type);L==null||L(K);O.value.focus()});
W=_.XL(function(){if(!b().disabled){var X=b(),l=h(),p=O.value;X.options&&(X=yxD(X.options,l,X.label),_.iq().resolve(_.p1).openSheet({viewModel:X},p))}});
var a=_.u_E(),m=function(){return!!T()},w=function(){return!!b().disabled},A={};
A=_.YS("ytDropdownViewModelDropdownContainer",(A.ytDropdownViewModelDropdownContainerErrorBorder=m,A.ytDropdownViewModelDropdownContainerDisabled=w,A));return _.E("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.E("div",{class:A,"on:click":W,el:O,role:"combobox",tabindex:0,"on:keydown":a,"aria-invalid":m,"aria-disabled":w,"aria-describedby":function(){return m()?"dropdown-view-model-error":void 0}},_.E("div",{class:"ytDropdownViewModelText"},iw8(b,m,h),bwN(b,h)),_.E("div",{class:"ytDropdownViewModelChevronDown"},
_.E(_.Ps,{icon:"CHEVRON_DOWN"}))),jG9(b,T))},"Cf");_.O1(_.J1(function(W){var O=W.data;var b=function(L){var h=dGU(O());h.videoMetadata||(h.videoMetadata={});h.videoMetadata.sponsorshipsMetadata||(h.videoMetadata.sponsorshipsMetadata={});h.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(L)},T=function(L){var h=dGU(O());
h.scheduledRedirectMetadata||(h.scheduledRedirectMetadata={});h.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(L)};
return _.E("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.E("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.E("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.E(_.uw,{text:function(){return O().title}}),_.E(_.Ps,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.E(_.uw,{text:function(){return O().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.E(_.R4,{data:function(){return O().tierChoices}},{dropdownViewModel:function(L){return _.E("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.E(_.Bu2,{data:L.data,
onSelected:b}))}}),_.E(_.R4,{data:function(){return O().startTimeChoices}},{dropdownViewModel:function(L){return _.E("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.E(_.Bu2,{data:L.data,
onSelected:T}))}}),_.E(_.uw,{text:function(){return O().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.E("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.E(_.R4,{data:function(){return O().scheduleButton}},{panelFooterViewModel:_.nl})))},"Df"),"ytfz-schedule-fanzone-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;W=W.className===void 0?"":W.className;var b=_.wt(uyZ,function(){return O().flowStateEntityKey||""}),T={};
T=_.YS("ytFlowBottomBarViewModelFlowBottomBarButtons",(T.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},T));
var L={},h=_.YS("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",T,(L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},L));
L={};var Z=_.YS("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",T,(L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},L.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},L));
T={};T=_.YS("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},T.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return O().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
T));
return _.E("yt-flow-bottom-bar-view-model",{class:_.YS("ytFlowBottomBarViewModelHost",W)},_.E(_.U,{cond:function(){var a;return(a=O())==null?void 0:a.textSection},
then:function(a){return _.E("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.E(_.uw,{text:a}))}}),_.E("div",{class:T},_.E(_.R4,{data:function(){return O().secondaryButton}},{buttonViewModel:function(a){return _.E(_.DO,{data:a.data,
className:Z})}}),_.E(_.R4,{data:function(){return O().primaryButton}},{buttonViewModel:function(a){return _.E(_.DO,{data:a.data,
className:h,buttonOverrides:function(){var m;return{disabled:!((m=b())==null||!m.primaryButtonDisabled)}}})}})))},"Ef"),"yt-flow-bottom-bar-view-model",{props:{data:_.te,
className:_.Ws}});var rtB="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),G$=function(){var W=_.n.apply(this,arguments)||this;W.enableScrollingFix=!0;W.bottomBar=!1;W.hideBottomBar=!1;W.fitContent=!1;return W};
_.R(G$,_.n);_.d=G$.prototype;_.d.ready=function(){_.e("enable_pdp_icon_prefetch")&&_.$GP(_.iq().resolve(_.d2),0,rtB)};
_.d.focus=function(W){this.topBar?_.uP(this.topBar,W):this.paperDialog.focus(W)};
_.d.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16816_scroller&&(this.JSC$16816_scroller.dialogElement=this.paperDialog,this.JSC$16816_scroller.attached&&typeof this.JSC$16816_scroller.attached==="function"&&this.JSC$16816_scroller.attached())};
_.d.onDataChanged=function(){var W;this.fitContent=!((W=this.data)==null||!W.fitContent);var O;this.bottomBar=!((O=this.data)==null||!O.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.d.onProgressChanged=function(){var W,O,b=((O=(W=this.data)==null?void 0:W.progress)!=null?O:0)*100;this.progressElement.style.width=b+"%"};
_.d.isProgressHidden=function(){var W;return!((W=this.data)==null?0:W.progress)};
_.d.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(W){return _.e("enable_wiz_next_lp2_msof")&&W&&!W.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Jq.Object.defineProperties(G$.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var W;return _.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.P((W=this.data)==null?void 0:W.content,FqR)}}});
G$.prototype.onProgressChanged=G$.prototype.onProgressChanged;G$.prototype.onDataChanged=G$.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],G$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],G$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],G$.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],G$.prototype,"enableScrollingFix",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],G$.prototype,"bottomBar",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],G$.prototype,"hideBottomBar",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],G$.prototype,"containsExploreHub",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],G$.prototype,"fitContent",void 0);_.t([_.El("#progress"),_.N("design:type",HTMLElement)],G$.prototype,"progressElement",void 0);
_.t([_.El("#scroller"),_.N("design:type",Object)],G$.prototype,"JSC$16816_scroller",void 0);_.t([_.El("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],G$.prototype,"topBar",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G$.prototype,"onDataChanged",null);_.t([_.m5("data.progress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G$.prototype,"onProgressChanged",null);
G$=_.t([_.G({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],G$);
_.H(G$,"ytd-flow-step-renderer",function(){if(lNk!==void 0)return lNk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lNk=W},{mode:1});var Dr9=function(W){this.resolveCommand=W;this.steps={}},xrU=function(W,O){O=_.S(O||[]);
for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=Object.values(b)[0],L=void 0;if((L=T)==null?0:L.stepId)W.steps[T.stepId]=b}},qo7=function(W,O){var b,T,L,h,Z;
return _.I(function(a){if((b=W.state)==null||!b.currentStepId)return a.return(void 0);T=z0Z(W);if(!T)return a.return(Ct2(W));if(L=_.P(T,_.cU1)){var m;((m=L.screenLoggingData)==null?0:m.screenVeType)&&_.bh(_.A4(),L.screenLoggingData.screenVeType);((h=L)==null?0:h.onStepStartCommand)&&W.resolveCommand((Z=L)==null?void 0:Z.onStepStartCommand,{})}if(L&&O){m=L;var w,A,X,l;((w=O.flowLoggingData)==null?0:w.eventNamespace)&&((A=m.flowEventData)==null?0:A.eventType)&&((X=m.flowEventData)==null?0:X.eventMetadata)&&
((l=O.flowLoggingData)==null?0:l.flowType)&&(w=_.Zr(O.flowLoggingData.eventNamespace,m.flowEventData.eventType,m.flowEventData.eventMetadata),_.Iu(_.au(),w,O.flowLoggingData.flowType));O.steps&&!O.steps.includes(T)&&O.steps.push(T)}return a.return(T)})};
Dr9.prototype.back=function(){var W;(W=this.state)!=null&&W.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
Dr9.prototype.handleUpdateFlowCommand=function(W){W.steps&&xrU(this,W.steps);W.entityUpdateCommand&&this.resolveCommand(W.entityUpdateCommand,{});W.flowContinuationCommand&&(W=W.flowContinuationCommand)&&(this.getFlowContinuationCommand=W);this.awaitFlowContinuation&&(this.awaitFlowContinuation(z0Z(this)),this.awaitFlowContinuation=void 0)};
Dr9.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var Ct2=function(W){return _.I(function(O){return W.getFlowContinuationCommand?O.return(new Promise(function(b){W.awaitFlowContinuation=b;W.getFlowContinuationCommand&&W.resolveCommand(W.getFlowContinuationCommand,{flow_state:W.state})})):O.return(Promise.resolve(void 0))})},z0Z=function(W){var O;
if((O=W.state)!=null&&O.currentStepId)return W.steps[W.state.currentStepId]};var Hr=function(){var W=_.n.apply(this,arguments)||this;W.flowState=new Dr9(function(O,b){b=b===void 0?{}:b;_.ax.instance.resolveCommand(O,{form:{form:b,element:W.hostElement}})});
W.initialState=!0;W.isLoading=!1;W.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return W};
_.R(Hr,_.n);_.d=Hr.prototype;_.d.onPopupClosed=function(W){W&&this.hostElement!==W.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.d.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.d.focus=function(W){var O=this;_.qe(function(){var b=_.Q(O.hostElement).querySelector("ytd-flow-step-renderer");(b==null?0:b.topBar)?b.focus(W):O.topBar&&_.uP(O.topBar,W)},1)};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.d.computeTopBarHidden=function(W){var O;return!((O=_.P(W,_.cU1))==null||!O.topBarOverride)};
_.d.dataChanged=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1){((O=W.data)==null?0:O.steps)&&xrU(W.flowState,W.data.steps);if((b=W.data)==null?0:b.flowContinuationCommand){var L=W.flowState,h=W.data.flowContinuationCommand;h&&(L.getFlowContinuationCommand=h)}return _.Y(T,qo7(W.flowState,W.data),2)}W.currentFlowStep=T.yieldResult;_.aD(T)})};
_.d.flowChanged=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1){if(!W.flow)return b.return();W.flowState.state=W.flow;W.isLoading=!0;return _.Y(b,qo7(W.flowState,W.data),2)}O=b.yieldResult;if(!O||W.flow.isLoading)return b.return();W.currentFlowStep=O;W.initialState=!1;W.isLoading=!1;W.autofocusAndRefit();_.aD(b)})};
_.d.autofocusAndRefit=function(){var W=this,O=_.iq().resolve(_.OT(_.bD)),b=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),T=document.querySelector("yt-report-form-confirmation-page-view-model"),L=document.querySelector("yt-report-form-details-page-view-model"),h=document.querySelector("yt-report-form-reason-select-page-view-model"),Z=document.querySelector("yt-contributor-zero-state-view-model"),
a=document.querySelector("yt-structured-context-note-view-model"),m=document.querySelector("yt-note-view-model");(!b&&O&&O.isKeyBoardInUse()||T||!b&&L||!b&&h||Z||a||m)&&_.JS(this.hostElement);_.My(this,function(){_.bX(W.hostElement,"yt-refit")})};
_.d.handleUpdateFlowCommand=function(W){this.data&&(W=_.P(W,JUR),W.targetId===this.data.targetId&&(W.flowContinuationCommand&&(this.data.flowContinuationCommand=W.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(W),this.autofocusAndRefit()))};
_.d.handleFlowNextStepCommand=function(W){this.data&&this.flow&&this.flow.key&&(W=_.P(W,MpN),W.targetId===this.data.targetId&&(W=W.stepId||"",this.ytdReduxBehavior.dispatch(_.o4("flowStateEntity",this.flow.key,{currentStepId:W,stepIdStack:(this.flow.stepIdStack||[]).concat(W)}))))};
_.d.handleFlowPrevStepCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.P(W,uHR),W.targetId===this.data.targetId)){var O=[].concat(_.PG(this.flow.stepIdStack||[]));O.length>1?(O.pop(),this.ytdReduxBehavior.dispatch(_.o4("flowStateEntity",this.flow.key,{currentStepId:O[O.length-1],stepIdStack:O}))):W.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(W.onFirstStepCommand)}};
_.d.handleYpcCancelRecurrenceCommand=function(W){if(this.data&&this.flow&&this.flow.key&&(W=_.P(W,i5D),W.targetId===this.data.targetId&&W.endpointCommand)){var O=_.P(this.flow,b5U);O&&_.P(W.endpointCommand,_.uZw)&&(_.P(W.endpointCommand,_.uZw).feedbackData=O.surveyFeedback);this.ytComponentBehavior.resolveCommand(W.endpointCommand)}};
_.d.handlePartialUpdateFlowStateEntity=function(W){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.o4("flowStateEntity",this.flow.key,W,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Hr.prototype.flowChanged=Hr.prototype.flowChanged;Hr.prototype.dataChanged=Hr.prototype.dataChanged;Hr.prototype.onPopupClosed=Hr.prototype.onPopupClosed;_.t([_.D(_.sh),_.N("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Hr.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Hr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Hr.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Hr.prototype,"initialState",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Hr.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Object)],Hr.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],Hr.prototype,"currentFlowStep",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Hr.prototype,"onPopupClosed",null);_.t([_.C({selectorArgs:["data.flowStateEntityKey"],selector:uyZ}),_.N("design:type",Object)],Hr.prototype,"flow",void 0);_.t([_.El("ytd-flow-top-bar-renderer"),_.N("design:type",HTMLElement)],Hr.prototype,"topBar",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Hr.prototype,"dataChanged",null);_.t([_.Ul("flow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Hr.prototype,"flowChanged",null);Hr=_.t([_.G({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Hr);
_.nbk=_.TH()(Hr,"ytd-flow-root-renderer",function(){if(U98!==void 0)return U98;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return U98=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var fq5;var ix=null;_.O1(_.J1(function(W){return _.E("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.E("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.E(_.uw,{text:function(){return W.data().text}}),_.E("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ff"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.te}});var GxU=_.J1(function(W){var O=W.playerControlsProps;var b=W.isShortsPage;return _.E("yt-bigboard",null,_.E(_.U,{cond:function(){return O().isDragging},
then:function(){return _.E("div",{class:"ytBigboardStoryboardHost"},_.E(_.QNN,{progressBarProps:O,isShortsPage:b}))}}))},"Gf");
GxU.idomCompat=!0;_.tr={ACCOUNT_LABEL:bx("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:bx("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:bx("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:bx("AD_BADGE_HINT"),AD_BADGE_TEXT:bx("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:bx("ALL_CHANNELS_LABEL"),AMBIENT_MODE:bx("AMBIENT_MODE"),AMBIENT_MODE_OFF:bx("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:bx("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:bx("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:bx("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:bx("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:bx("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:bx("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:bx("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:bx("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:bx("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:bx("AUTOPLAY_UP_NEXT_IN"),BACK:bx("BACK"),CANCEL:bx("CANCEL"),CHANNEL_SWITCHER_LABEL:bx("CHANNEL_SWITCHER_LABEL"),CLOSE:bx("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:bx("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:bx("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:bx("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:bx("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:bx("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:bx("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:bx("COMMENT_MODAL_CONTENT"),CONFIRM_OK:bx("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:bx("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:bx("COPIED_TO_CLIPBOARD"),COPY:bx("COPY"),COPY_DEBUG_INFO:bx("COPY_DEBUG_INFO"),COPY_EMBED_CODE:bx("COPY_EMBED_CODE"),COPY_LINK_LABEL:bx("COPY_LINK_LABEL"),
COPY_VIDEO_URL:bx("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:bx("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:bx("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:bx("DELETE_FROM_DOWNLOADS"),DIALOG:bx("DIALOG"),DONE:bx("DONE"),DOWNLOAD:bx("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:bx("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:bx("FLAG_CONFIRM"),FLAG_CONTENT:bx("FLAG_CONTENT"),FLAG_LABEL:bx("FLAG_LABEL"),FLAG_TITLE:bx("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:bx("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:bx("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:bx("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:bx("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:bx("HIDE_SEARCH_FILTERS_LABEL"),HOME:bx("HOME","Home"),INVALID_RESPONSE_RECEIVED:bx("INVALID_RESPONSE_RECEIVED"),LIBRARY:bx("LIBRARY","Library"),LISTENING:bx("LISTENING"),LOADING:bx("LOADING"),LONG_PRESS_MIC_TO_SPEAK:bx("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:bx("LOOP"),MENU_DESKTOP:bx("MENU_DESKTOP"),MENU_EXIT:bx("MENU_EXIT"),
MENU_FEEDBACK:bx("MENU_FEEDBACK"),MENU_HELP:bx("MENU_HELP"),MENU_IMPRESSUM:bx("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:bx("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:bx("MENU_SETTINGS"),MENU_SIGN_IN:bx("MENU_SIGN_IN"),MENU_TITLE:bx("MENU_TITLE"),MENU_YOUR_DATA:bx("MENU_YOUR_DATA"),MORE_INFO:bx("MORE_INFO"),MORE_OPTIONS:bx("MORE_OPTIONS"),MUTE_VOLUME:bx("MUTE_VOLUME"),NEW_PLAYLIST:bx("NEW_PLAYLIST"),NEXT_VIDEO:bx("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:bx("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:bx("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:bx("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:bx("NOT_FOUND_TITLE"),NO_DOWNLOADS:bx("NO_DOWNLOADS"),NO_MIC_INPUT:bx("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:bx("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:bx("OOPS_MESSAGE"),OPEN_APP:bx("OPEN_APP"),OPEN_YOUTUBE:bx("OPEN_YOUTUBE"),PAUSE:bx("PAUSE"),PLAY:bx("PLAY"),PLAYER_CAPTION:bx("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:bx("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:bx("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:bx("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:bx("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:bx("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:bx("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:bx("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:bx("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:bx("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:bx("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:bx("PLAYER_MINIMIZE"),PLAYER_NEXT:bx("PLAYER_NEXT"),PLAYER_PAUSE:bx("PLAYER_PAUSE"),PLAYER_PLAY:bx("PLAYER_PLAY"),
PLAYER_PREVIOUS:bx("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:bx("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:bx("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:bx("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:bx("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:bx("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:bx("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:bx("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:bx("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:bx("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:bx("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:bx("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:bx("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:bx("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:bx("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:bx("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:bx("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:bx("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:bx("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:bx("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:bx("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:bx("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:bx("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:bx("PLAY_ALL"),PLEASE_FIX_ERRORS:bx("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:bx("PREVIOUS_VIDEO"),PRIVACY_POLICY:bx("PRIVACY_POLICY"),RELOAD:bx("RELOAD"),REQUIRED_LABEL:bx("REQUIRED_LABEL"),SAVE_PLAYLIST:bx("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:bx("SCRUB_SLIDE_USER_EDU"),SEARCH:bx("SEARCH","Search"),SEARCH_APPEND_LABEL:bx("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:bx("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:bx("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:bx("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:bx("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:bx("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:bx("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:bx("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:bx("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:bx("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:bx("SEEK_SLIDER"),SETTINGS_LABEL:bx("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:bx("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:bx("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:bx("SHOW_LESS"),SHOW_MORE:bx("SHOW_MORE"),SHOW_PLAYER_CONTROLS:bx("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:bx("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:bx("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:bx("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:bx("SIGN_IN_ON_WEB"),STABLE_VOLUME:bx("STABLE_VOLUME"),
STABLE_VOLUME_OFF:bx("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:bx("STABLE_VOLUME_ON"),STATS_FOR_NERDS:bx("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:bx("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:bx("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:bx("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:bx("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:bx("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:bx("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:bx("TIMESTAMP_SECONDS"),TOGGLE_OFF:bx("TOGGLE_OFF"),
TOGGLE_ON:bx("TOGGLE_ON"),TRENDING:bx("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:bx("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:bx("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:bx("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:bx("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:bx("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:bx("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:bx("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:bx("VIDEO_LINK_LABEL")};var HSN=_.J1(function(W){var O=W.playerApi;W=_.uy(function(L){cp(L,36843)});
var b=bx("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),T=_.XL(function(){F_(36843);O&&O().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.E("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.E("button",{el:W,class:"ytPlayerControlsJumpForwardButtonButton",title:b,"aria-label":b,"on:click":T},_.E("span",null,_.E(_.Ps,{icon:"FAST_FORWARD"}))))},"Hf");var tzU=_.J1(function(W){var O=W.appApi;W=_.uy(function(L){cp(L,62946)});
var b=bx("OPEN_IN_MINIPLAYER"),T=_.XL(function(){F_(62946);var L,h;(h=(L=O()).openInMiniplayer)==null||h.call(L);return!1});
return _.E("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.E("button",{el:W,class:"ytMiniplayerButtonButton",title:b,"aria-label":b,"on:click":T},_.E(_.Ps,{icon:"PICTURE_IN_PICTURE",active:!1})))},"If");var $rR=_.J1(function(W){var O=W.playerApi;W=_.uy(function(Z){cp(Z,142812)});
var b=_.S(_.wu(!1,void 0,"I3VCyb")),T=b.next().value,L=b.next().value;b=function(){return bx("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(T()?1:2)})};
var h=_.XL(function(){F_(142812);if(O){var Z=O(),a=T();Z.setPlaybackRate(a?1:2);L(!T())}return!1});
return _.E("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.E("button",{el:W,class:"ytPlaybackSpeedButtonButton",title:b,"aria-label":b,"on:click":h},_.E("span",null,_.E(_.Ps,{icon:function(){return T()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Jf");var Vz8=_.J1(function(W){var O=W.title;var b=W.ariaLabel;var T=W.icon;var L=W.command;var h=W.veType;W=_.uy(function(a){h&&cp(a,h())});
var Z=_.XL(function(){h&&F_(h());L&&_.iq().resolve(_.bq).resolveCommand(L())});
return _.E("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.E("button",{el:W,class:"ytdThumbnailOverlayButtonButton",title:O,"aria-label":b,"on:click":Z},_.E(_.Ps,{icon:T})))},"Kf");var NuN=["en-CA","en","es-MX","fr-CA"];var Mzg=_.J1(function(W){var O=_.um(W,{isOverlay:!1}),b=O.captionIconType,T=O.onClick;W=O.ariaLabel;var L=O.ariaPressed,h=O.isOverlay;O=_.uy(function(m){cp(m,127299)});
var Z=_.XL(function(m){F_(127299);T==null||T(m);return!1}),a={};
return _.E("ytm-closed-captioning-button",{class:_.YS("ytmClosedCaptioningButtonHost",(a.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return b()===-1&&h()},a.ytmClosedCaptioningButtonIconDisabled=function(){return b()===-1&&!h()},a))},_.E("button",{el:O,
class:"ytmClosedCaptioningButtonButton",title:W,"aria-label":W,"aria-pressed":L,"on:click":Z},_.E(_.Ps,{icon:function(){var m="";var w=_.Xt().get("hl");w=!w||NuN.includes(w)?"CLOSED_CAPTION":"SUBTITLES";var A=b();switch(A){case -1:case 0:m=w;break;case 1:m=w+"_FILLED";break;default:_.SB(A)}return m}})))},"Lf");
Mzg.idomCompat={callbacks:{onClick:!0}};var Jw="";var ud9=_.J1(function(W){var O=W.playerControlsProps,b=W.onClickFn;W=_.Pj(function(){var h=O(),Z=-1;h.captionsAvailable&&(Z=h.captionsEnabled?1:0);return Z},void 0,"WecR8e");
var T=_.Pj(function(){var h=O();return h.captionsAvailable?_.EO(h.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.EO("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),L=_.Pj(function(){var h=O();
h=h.captionsAvailable?h.captionsEnabled:void 0;return h},void 0,"Q17ly");
return _.E("yt-closed-captions-toggle-button",null,_.E(Mzg,{captionIconType:W,ariaLabel:T,ariaPressed:L,onClick:function(h){var Z=O();if(Z.captionsAvailable){var a=Z.playerApi;if(a){var m=Z.playerApi;if(m){var w=Jw;if(w){m=m.getOption("captions","track");var A;Jw=(A=m?m.displayName:null)!=null?A:w}else m.getOptions("captions")?(w=Fj2(m),Jw=w.length?(A=yv8(w))?A.displayName:w[0].displayName:""):Jw=""}WIR(a);_.e("mweb_disable_set_state_captions_killswitch")&&Z.setState({captionsEnabled:!Z.captionsEnabled})}}var X,
l;(l=(X=Z.appApi).showCaptionsToggleToast)==null||l.call(X,Z);b==null||b(h)},
isOverlay:!0}))},"Mf");var Jt2=_.J1(function(W){var O=W.data;return _.E("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.E(_.NL,{data:function(){return{type:16,text:_.XFE(O().label)}}}))},"Nf");var ct9=_.J1(function(W){var O=_.YS("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return W.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return W.size()==="small"?W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
W.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.E("animated-seek-arrows",{class:_.YS("ytPlayerControlsAnimatedSeekArrowsHost")},_.E("span",{class:O}),_.E("span",{class:O}),_.E("span",{class:O}))},"Of");
ct9.idomCompat=!0;var FCZ=_.J1(function(){var W=_.EO("PLAYER_SECONDS",{seconds_placeholder:"30"}),O=_.S(_.wu(!1,void 0,"Yj8msb")),b=O.next().value,T=O.next().value,L=_.S(_.wu(!1,void 0,"r9Z50e"));O=L.next().value;var h=L.next().value;L={};var Z=_.YS("jumpForwardOverlayOverlay",(L.jumpForwardOverlayOverlayHidden=O,L));_.kX(function(){var a=null,m=null,w=function(){a!==null&&_.KD().cancelJob(a);m!==null&&_.KD().cancelJob(m);h(!0);T(!0);_.dd(_.KD(),function(){h(!1)});
a=_.dd(_.KD(),function(){h(!0);m=_.dd(_.KD(),function(){T(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",w);_.so(function(){window.removeEventListener("jump-forward-clicked",w)})});
return _.E("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.E(_.U,{cond:b,then:function(){return _.E("div",{class:Z},_.E(ct9,{direction:1,size:"large"}),_.E("div",null,W))}}))},"Pf");var pQ2=_.tr.MUTE_VOLUME,PiP=_.tr.UNMUTE_VOLUME,ytD=_.J1(function(W){var O=W.muteIconType;var b=W.onClick;var T=W.useOutlineIcon;W=_.uy(function(Z){cp(Z,28662)});
var L=function(){return R52(O(),T==null?void 0:T()).ariaLabel},h=_.XL(function(Z){F_(28662);
b==null||b(Z);return!1});
return _.E("ytm-mute-button",{class:"ytmMuteButtonHost"},_.E("button",{el:W,class:"ytmMuteButtonButton",title:L,"aria-label":L,"on:click":h},_.E("span",null,_.E(_.Ps,{icon:function(){return R52(O(),T==null?void 0:T()).iconName}}))))},"Qf");var W39=_.J1(function(W){var O=W.volumeProps;var b=W.onClickFn;var T=W.useOutlineIcon;return _.E("yt-mute-toggle-button",null,_.E(ytD,{muteIconType:function(){var L=O(),h=!_.e("mweb_treat_zero_volume_as_muted_killswitch")&&L.volume===0;return L.volumeMuted||h?0:1},
onClick:function(L){var h=O().playerApi;h&&(h.isMuted()?h.unMute():h.mute(!1));b==null||b(L)},
useOutlineIcon:function(){return!(T==null||!T())}}))},"Rf");
W39.idomCompat=!0;var Ov2=_.J1(function(W){var O=W.data;var b=_.uy();W=_.XL(function(){b.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.E("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:b,"on:animationend":W},_.E(_.jf,{command:function(){return O().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.E(_.U,{cond:function(){var T;return(T=O().icon)==null?void 0:T.iconType},
then:function(){return _.E("span",null,_.E(_.Ps,{icon:function(){var T;return(T=O().icon)==null?void 0:T.iconType}}))}}),_.E("div",{class:"ytmPaidContentOverlayText"},_.E(_.uw,{text:function(){return O().text}})),_.E(_.U,{cond:function(){return O().navigationEndpoint},
then:function(){return _.E(_.Ps,{icon:"CHEVRON_RIGHT"})}})))},"Sf");
Ov2.idomCompat=!0;var Kqg=[].concat(_.PG([{register:function(W){var O=xG2(W),b;(b=W().playerApi)==null||b.addEventListener("onVolumeChange",O);return function(){}}},
{register:function(W){var O=z57(W);W=W().playerApi;W==null||W.addEventListener("captionschanged",O);W==null||W.addEventListener("captionssettingschanged",O);W==null||W.addEventListener("onCaptionsTrackListChanged",O);return function(){}}},
{register:function(W){if(!_.e("mweb_screenreader_accessible_player"))return function(){};
var O=Ci1(W),b=document.querySelector("video");b==null||b.addEventListener("touchend",O);return function(){b==null||b.removeEventListener("touchend",O)}}},
{register:function(W){if(!_.e("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var O=Ci1(W),b=document.querySelector("video");b==null||b.addEventListener("focus",O);return function(){b==null||b.removeEventListener("focus",O)}}}]),[{register:function(W){var O=sGg(W),b;
(b=W().playerApi)==null||b.addEventListener("onStateChange",O);return function(){}}},
{register:function(W){var O=B4B(W),b;(b=W().playerApi)==null||b.addEventListener("onPlaybackRateChange",O);return function(){}}},
{register:function(W){var O=rUk(W),b;(b=W().playerApi)==null||b.addEventListener("onVideoDataChange",O);return function(){}}},
{register:function(W){var O=DG8(W),b,T;(b=W())==null||(T=b.playerApi)==null||T.addEventListener("onVideoProgress",O);return function(){}}}]);var ivP=_.J1(function(W){var O=W.data;var b=function(){return _.EO("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+O().playbackRate})};
return _.E(_.U,{cond:function(){return O().playbackRate&&O().playbackRate!==1},
then:function(){return _.E("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.E("div",{class:"ytPlaybackRateOverlayOverlay"},_.E(ct9,{direction:1,size:"small"}),_.E("div",{class:"ytPlaybackRateOverlayLabel"},b)))}})},"Tf");var bv2=_.J1(function(W){var O=W.data;return _.E("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.E(_.U,{cond:function(){var b,T=(b=O())==null?void 0:b.playerResponse,L;return T==null?void 0:(L=T.paidContentOverlay)==null?void 0:L.paidContentOverlayRenderer},
then:function(b){return _.E(Ov2,{data:b})}}))},"Vf"),jW8=_.J1(function(W){var O=W.props;
var b=W.data;var T=W.options;var L=function(){var w,A,X,l;return(w=b())==null?void 0:(A=w.playerResponse)==null?void 0:(X=A.playerConfig)==null?void 0:(l=X.inlinePlaybackConfig)==null?void 0:l.showAudioControls},h=function(){var w,A;
if(L()&&((w=T())==null?void 0:(A=w.additionalButton)==null?void 0:A.button)!==void 0){var X,l,p;w=(X=b())==null?void 0:(l=X.playerApi)==null?void 0:(p=l.getSize())==null?void 0:p.height;if(!(w===void 0||w<180)){var K,k;return(K=T())==null?void 0:(k=K.additionalButton)==null?void 0:k.button}}},Z=function(){var w,A;
return(w=T())==null?void 0:(A=w.additionalButton)==null?void 0:A.thumbnailOverlayButtonRenderers},a=function(){var w,A;
return(w=T())==null?void 0:(A=w.additionalButton)==null?void 0:A.thumbnailOverlayButtonViewModels},m=function(){var w=[_.E(W39,{volumeProps:O}),
_.E(ud9,{playerControlsProps:O})];h()===1&&w.push(_.E(HSN,{playerApi:function(){return O().playerApi}}));
h()===2&&w.push(_.E(tzU,{appApi:function(){return O().appApi}}));
h()===3&&w.push(_.E($rR,{playerApi:function(){return O().playerApi}}));
var A=Z();if(h()===4&&A){A=_.S(A);for(var X=A.next(),l={};!X.done;l={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$568:void 0},X=A.next()){X=X.value;l.tooltip$jscomp$2=X.tooltip;var p=void 0,K=void 0;l.ariaLabel$jscomp$20=((p=X.accessibility)==null?void 0:(K=p.accessibilityData)==null?void 0:K.label)||l.tooltip$jscomp$2;p=void 0;l.icon$jscomp$51=(p=X.icon)==null?void 0:p.iconType;l.command$jscomp$568=X.command;l.tooltip$jscomp$2&&l.ariaLabel$jscomp$20&&l.icon$jscomp$51&&
w.push(_.E(Vz8,{title:function(k){return function(){return k.tooltip$jscomp$2}}(l),
ariaLabel:function(k){return function(){return k.ariaLabel$jscomp$20}}(l),
icon:function(k){return function(){return k.icon$jscomp$51}}(l),
command:function(k){return function(){return k.command$jscomp$568}}(l)}))}}A=a();
if(h()===4&&A)for(A=_.S(A),X=A.next(),l={};!X.done;l={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},X=A.next())X=X.value,l.tooltip$jscomp$3=X.title,l.ariaLabel$jscomp$21=X.accessibilityText||l.tooltip$jscomp$3,l.icon$jscomp$52=X.iconName,l.command$jscomp$569=_.xy(X.onTap),l.tooltip$jscomp$3&&l.ariaLabel$jscomp$21&&l.icon$jscomp$52&&w.push(_.E(Vz8,{title:function(k){return function(){return k.tooltip$jscomp$3}}(l),
ariaLabel:function(k){return function(){return k.ariaLabel$jscomp$21}}(l),
icon:function(k){return function(){return k.icon$jscomp$52}}(l),
command:function(k){return function(){return k.command$jscomp$569}}(l)}));
return w};
return _.E(_.U,{cond:L,then:function(){return _.E("div",{class:"ytInlinePlayerControlsTopRightControls"},_.E(_.pv,{each:m},function(w){return _.E("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.E("div",{class:"ytInlinePlayerControlsButtonIcon"},w))}))}})},"Wf"),dCN=_.J1(function(W){var O=W.props;
var b=W.data;var T=W.options;W={};W=_.YS("ytInlinePlayerControlsBottomRightControls",(W.ytInlinePlayerControlsBottomRightControlsHidden=function(){var L;return n37(b(),T())&&((L=T())==null?void 0:L.insetProgressBar)&&(O().isHovering||O().isDragging)},W));
return _.E("div",{class:W},_.E(T0B,{data:b}),_.E(_.U,{cond:function(){var L;return!((L=T())==null?0:L.hideTimeDisplay)},
then:function(){return _.E(L3k,{props:O,data:b})}}))},"Xf"),T0B=_.J1(function(W){var O=W.data;
return _.E(_.R4,{data:function(){var b;return UGN((b=O())==null?void 0:b.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Jt2})},"Yf"),L3k=_.J1(function(W){var O=W.props;
var b=W.data;return _.E(_.U,{cond:function(){return O().isLive},
then:function(){return _.E(hh1,null)},
else:function(){return _.E(SCB,{props:O,data:b})}})},"Zf"),SCB=_.J1(function(W){var O=W.props;
var b=W.data;var T=_.Pj(function(){var L;return e5N((L=b())==null?void 0:L.thumbnailOverlays)},void 0,"kUmuA");
return _.E("div",{class:_.YS("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.tr.PLAYER_TIME_ELAPSED+" "+_.CI2(O().playedTime)}},_.E(_.NL,{data:function(){var L=_.CI2(O().videoDuration-O().playedTime);
return Object.assign({},{type:16,text:L},T())}}))},"$f"),hh1=_.J1(function(){return _.E("div",{class:_.YS("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.E(_.NL,{data:{type:17,
text:_.tr.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ag"),ZvD=_.J1(function(W){var O=W.props;
var b=W.data;var T=W.options;return _.E(_.xZ2,{progressBarProps:O,config:function(){var L,h=_.P((L=b())==null?void 0:L.multiMarkersPlayerBar,_.lm5),Z;L=((Z=T())==null?0:Z.insetProgressBar)?2:1;var a;Z=(a=T())==null?void 0:a.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:L,chapterData:h,isInlinePlayback:!0,doSeekOnClick:Z,playheadDotBehavior:Z?1:0}}})},"bg");_.O1(_.J1(function(W){var O=W.data;var b=W.appApi;var T=W.options;var L=kKk(O,qMR(b));W={};b={};return _.E("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.E("div",{class:_.YS("ytInlinePlayerControlsDarkenedOverlay",(W.ytInlinePlayerControlsDarkenedOverlayShow=function(){return L().isHovering},W))}),_.E(FCZ,null),_.E(ivP,{data:L}),_.E(bv2,{data:O}),_.E(GxU,{playerControlsProps:L,
isShortsPage:!1}),_.E("div",{class:_.YS((b.ytInlinePlayerControlsControlsHidden=function(){return L().isDragging},b))},_.E(jW8,{props:L,
data:O,options:T}),_.E(dCN,{props:L,data:O,options:T})),_.E(_.U,{cond:function(){return n37(O(),T())},
then:function(){return _.E(ZvD,{props:L,data:O,options:T})}}))},"Uf"),"yt-inline-player-controls",{props:{data:_.te,
appApi:_.Ws,options:_.te}});var $Q=function(){var W=_.n.apply(this,arguments)||this;W.opts=null;W.playerControlsData=null;W.playerControlsAppApi={openInMiniplayer:function(){W.openInMiniplayer()}};
W.playerControlsOptions={};W.noAnimation=!1;W.playbackIntentTriggered=!1;W.positionData=null;W.hidden=!0;W.active=!1;W.playing=!1;W.videoPreviewDataIndex=0;W.JSC$16874_playerPromise=null;W.player=null;W.enableAudioControls=!1;W.hasBeenUnmuted=!1;W.captionsHaveBeenTurnedOff=!1;W.JSC$16874_playerEvents=new Map;W.videoPreviewFetchRequest=null;W.scheduledPreviewEndJobId=null;W.JSC$16874_preventProgressSaveTimer=null;W.watchEndpointStartTimeUpdaterInterval=null;W.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};W.windowOnBlurFn=function(){W.deactivate()};
return W};
_.R($Q,_.n);_.d=$Q.prototype;
_.d.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.e("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.d.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16874_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16874_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16874_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16874_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.Ii(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.Ii(this,this.onScroll))};
_.d.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.Ii(this,this.onScroll))};
_.d.onPageTypeChange=function(){this.deactivate()};
_.d.onWindowResized=function(){this.deactivate()};
_.d.onCaptionsChanged=function(W){W=!!W.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!W);this.setCaptionSize()};
_.d.setCaptionSize=function(){var W;if(this.active&&!this.captionsHaveBeenTurnedOff&&((W=this.player)==null?0:W.getCaptionWindowContainerId())){var O;(O=this.player)==null||O.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.d.currentPageAllowed=function(){return!this.isWatchPage};
_.d.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var W=this.positionData,O=W.initialTopPosition,b=W.initialHorizontalPosition;_.Sl(this.hostElement,{"--ytd-video-preview-translate-left":W.finalHorizontalPosition-b+"px","--ytd-video-preview-translate-top":W.finalTopPosition-O+"px","--ytd-video-preview-original-top-position":O+"px","--ytd-video-preview-original-horizontal-position":b+"px",
"--ytd-video-preview-initial-scale":"scale("+W.initialScale+")","--ytd-video-preview-width":W.videoPreviewWidth+"px","--ytd-video-preview-height":W.videoPreviewHeight+"px"});return!0};
_.d.handleOpenVideoPreviewAction=function(W){var O=this,b;return _.I(function(T){if(!O.currentPageAllowed())return T.return(0);O.opts=W;return(b=O.alignVideoPreviewForAnimation(W.thumbnail))?T.return(O.activate()):T.return(0)})};
_.d.onMouseLeave=function(W){this.shouldDeactivateOnMouseLeave(W)&&this.deactivate()};
_.d.onScroll=function(){var W,O;((W=this.opts)==null?0:W.isAutoplay)&&((O=this.opts)==null?0:O.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.d.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.sF.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.d.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.d.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",$Q.JSC$16873_DEFAULT_CLICK_LOCATION_BEHAVIOR,$Q.JSC$16873_CLICK_LOCATION_ID_MAP)};
_.d.shouldDeactivateOnMouseLeave=function(W){W=W.relatedTarget;if(!W)return!0;var O;return(O=this.opts)!=null&&O.mediaRenderer?!_.T0(this.opts.mediaRenderer).contains(W):!0};
_.d.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.d.onPlaybackStart=function(){var W=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$16874_preventProgressSaveTimer=
_.dd(_.sF,function(){W.resetPreventProgressSaveTimer()},1E4);
var O;if((O=this.opts)==null?0:O.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.dd(_.sF,function(){W.hasMultipleVideoPreviews()?W.startPlaybackForNextVideo():W.deactivate()},this.opts.videoPreviewDurationMs);
var b;this.player.setGlobalCrop(((b=this.opts)==null?0:b.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.d.getRoundedCornersSize=function(){var W;if((W=this.opts)==null?0:W.roundedCornersSize){var O;return(O=this.opts)==null?void 0:O.roundedCornersSize}var b;if((b=this.opts)==null?0:b.enableRounding){var T;if(((T=this.opts)==null?void 0:T.thumbnailSize)==="small")return 1;var L;if(((L=this.opts)==null?void 0:L.thumbnailSize)==="medium")return 2;var h;if(((h=this.opts)==null?void 0:h.thumbnailSize)==="large")return 3}return _.e("web_imp_inset_progress_bar")?3:0};
_.d.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.d.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.d.onMediaContainerClick=function(W){this.isShortcutClick(W)||(this.navigateToWatch(W),W.preventDefault(),W.stopPropagation())};
_.d.activate=function(){var W=this,O,b,T,L,h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:if(!W.currentPageAllowed())return A.return(0);b=(O=W.videoPreviewData)==null?void 0:O.inlinePlaybackEndpoint;T=_.GB.instance;if(!b||!T)return A.return(0);W.playbackIntentTriggered=!0;((L=W.opts)==null?0:L.mediaRenderer)&&((h=W.opts)==null||!h.isAutoplay)&&AU7(W.opts.mediaRenderer,function(){W.deactivate()});
_.My(W,function(){W.revealPreviewUi()});
Z={};_.e("enable_unknown_lact_fix_on_html5")&&(_.iq().resolve(_.Qa),Z.lact=_.by());W.videoPreviewFetchRequest=II1(T,W.getInlinePlaybackRequestData(W.videoPreviewData),Z);_.LI(A,2);return _.Y(A,W.videoPreviewFetchRequest,4);case 4:a=A.yieldResult;if(((m=a)==null?void 0:(w=m.playabilityStatus)==null?void 0:w.status)==="OK")return A.return(W.handlePlayerResponse(a));throw Error("Ij");case 2:_.ID(A),W.deactivate();case 3:return A.return(1)}})};
_.d.getInlinePlaybackRequestData=function(W){var O,b=_.e("web_imp_player_mute_params")?((O=this.opts)==null?void 0:O.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:W.inlinePlaybackEndpoint,startPlaybackInMutedState:b}};
_.d.handlePlayerResponse=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X;return _.I(function(l){if(l.nextAddress==1){b=O.getInlinePlaybackVideoId();if(!(((T=W)==null?0:(L=T.videoDetails)==null?0:L.videoId)&&O.currentPageAllowed()&&O.playbackIntentTriggered&&O.opts&&b))return O.deactivate(),l.return(0);if(W.videoDetails.videoId!==b)return l.return(0);O.enableAudioControls=!!((h=W.playerConfig)==null?0:(Z=h.inlinePlaybackConfig)==null?0:Z.showAudioControls);W.trackingParams=O.getInlinePlaybackTrackingParams();
if(!O.inlinePlayer)return l.return(0);a={};if(w=_.P((m=O.videoPreviewData)==null?void 0:m.inlinePlaybackEndpoint,_.V3))a.watch_endpoint=w;if(O.videoPreviewData){var p,K=(p=_.P(O.videoPreviewData.inlinePlaybackEndpoint,_.V3))==null?void 0:p.startTimeSeconds;K!==void 0&&(W.playerConfig||(W.playerConfig={}),W.playerConfig.playbackStartConfig||(W.playerConfig.playbackStartConfig={}),W.playerConfig.playbackStartConfig.startPosition||(W.playerConfig.playbackStartConfig.startPosition={}),W.playerConfig.playbackStartConfig.startSeconds=
K,W.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(K*1E3))}O.inlinePlayer.loadVideoWithPlayerResponse(W,a);if(O.JSC$16874_playerPromise)return l.jumpTo(2);O.JSC$16874_playerPromise=O.inlinePlayer.getPlayerPromise();return _.Y(l,O.JSC$16874_playerPromise,3)}l.nextAddress!=2&&(A=l.yieldResult,A.setInlinePreview(!0),A.setSizeStyle(!1,!0),O.ytPlayerListenerBehavior.listenToPlayerEvents(A,O.JSC$16874_playerEvents),O.player=A,_.bX(O.hostElement,"player-api-ready"));((X=O.opts)==
null?0:X.showPlayerControls)&&O.videoPreviewData&&O.player&&(O.playerControlsData={playerResponse:W,isInlinePlayback:!0,thumbnailOverlays:O.videoPreviewData.thumbnailOverlays,playerApi:O.player},O.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!O.unroundCornersForPlayback,additionalButton:O.getAdditionalButtonType(O.videoPreviewData.thumbnailOverlays)});return l.return(2)})};
_.d.revealPreviewUi=function(){var W=this;this.playbackIntentTriggered&&_.oNP(this,function(){W.hasThumbnailPositionChangedSinceTriggered()||(W.updateActiveState(!0),W.noAnimation=!1)})};
_.d.hasThumbnailPositionChangedSinceTriggered=function(){var W=this.positionData,O=this.getThumbnailPositionData();return(W==null?void 0:W.initialTopPosition)!==(O==null?void 0:O.initialTopPosition)||(W==null?void 0:W.initialHorizontalPosition)!==(O==null?void 0:O.initialHorizontalPosition)};
_.d.getThumbnailPositionData=function(){var W,O;if((O=this.opts)==null||!O.thumbnail)return null;O=this.opts.thumbnail;var b=((W=this.opts)==null?0:W.cropPlayerToFillThumbnailHorizontally)?!1:!0;var T=O.getBoundingClientRect();W=T.width;O=T.height;var L=T.top+window.scrollY;T=T.left+window.scrollX;var h=b?Math.ceil(W):W;b=b?Math.ceil(O):O;var Z=W/h;W={initialScale:Z,initialTopPosition:L-12*Z,finalTopPosition:L-12-(b-O)/2,initialHorizontalPosition:T-(12+(h-W)/2),finalHorizontalPosition:T-12-(h-W)/
2,videoPreviewWidth:h,videoPreviewHeight:b};return W};
_.d.updateActiveState=function(W){this.active=W;this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:W}))};
_.d.stopPlayer=function(W){W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(W)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.sF.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.d.deactivate=function(W){W=W===void 0?{}:W;W=W.resetWatchEndpointStartTime===void 0?!1:W.resetWatchEndpointStartTime;ix&&(ix.disconnect(),ix=null);this.stopPlayer({resetWatchEndpointStartTime:W});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.d.isValidThumbnailOverlayButton=function(W,O){W=W.thumbnailOverlayButtonRenderer;var b;return!!W&&!!W.tooltip&&!((b=W.icon)==null||!b.iconType)&&O.includes(W.icon.iconType)};
_.d.isValidThumbnailOverlayButtonViewModel=function(W,O){var b;W=_.P((b=W.thumbnailOverlayButtonViewModel)==null?void 0:b.overlayButton,_.Kp);return!!W&&!!W.title&&!!W.iconName&&O.includes(W.iconName)};
_.d.getAdditionalButtonType=function(W){var O=this;if(_.e("web_imp_fastforward_button"))return{button:1};if(_.e("web_imp_miniplayer_button"))return{button:2};if(_.e("web_imp_playback_speed_button"))return{button:3};var b=["AUTO_AWESOME"],T=(W||[]).filter(function(h){return O.isValidThumbnailOverlayButton(h,b)}).map(function(h){return h.thumbnailOverlayButtonRenderer});
if(T.length)return{button:4,thumbnailOverlayButtonRenderers:T};var L=["AUTO_AWESOME"];W=(W||[]).filter(function(h){return O.isValidThumbnailOverlayButtonViewModel(h,L)}).map(function(h){return _.P(h.thumbnailOverlayButtonViewModel.overlayButton,_.Kp)});
if(W.length)return{button:4,thumbnailOverlayButtonViewModels:W}};
_.d.allowCaptions=function(){var W;return!((W=this.opts)==null?0:W.forceCaptionsOff)};
_.d.allowUnmuting=function(){var W;return this.enableAudioControls&&!((W=this.opts)==null?0:W.forceMutedVolume)};
_.d.beginStartTimeUpdater=function(){var W=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.Ie(function(){W.updateWatchEndpointStartTime()},1E3)};
_.d.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.d.resetPreventProgressSaveTimer=function(){this.JSC$16874_preventProgressSaveTimer!==null&&(_.sF.cancelJob(this.JSC$16874_preventProgressSaveTimer),this.JSC$16874_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.d.updateWatchEndpointStartTime=function(W){var O=this.videoPreviewData;if(this.player&&O!=null&&O.inlinePlaybackEndpoint&&!this.JSC$16874_preventProgressSaveTimer){W=W?0:Math.floor(this.player.getCurrentTime());var b=_.P(O.navigationEndpoint,_.V3);b&&(b.startTimeSeconds=W);if(O=_.P(O.inlinePlaybackEndpoint,_.V3))O.startTimeSeconds=W}};
_.d.isShortcutClick=function(W){return!!W&&(W.ctrlKey||W.shiftKey||W.metaKey)};
_.d.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.d.openInMiniplayer=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1){b=(O=W.videoPreviewData)==null?void 0:O.navigationEndpoint;if(!b)return T.return();_.IT().lockupActivation=!0;return _.Y(T,_.dKw(_.iq().resolve(_.xq),b),2)}_.IT().userActivation=!0;_.aD(T)})};
_.d.navigateToWatch=function(W){var O,b=(O=this.videoPreviewData)==null?void 0:O.navigationEndpoint;if(b){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(b,W,!0);else{if(_.e("web_thumbnail_to_watch_transition")){var T,L;(T=this.opts)==null||(L=T.onNavigateToWatchCallback)==null||L.call(T)}_.bX(this.hostElement,"yt-navigate",{endpoint:b})}this.deactivate()}};
_.d.getInlinePlaybackVideoId=function(){var W,O;return(O=_.P((W=this.videoPreviewData)==null?void 0:W.inlinePlaybackEndpoint,_.V3))==null?void 0:O.videoId};
_.d.getInlinePlaybackTrackingParams=function(){var W,O;return(W=this.videoPreviewData)==null?void 0:(O=W.inlinePlaybackEndpoint)==null?void 0:O.clickTrackingParams};
_.d.hasMultipleVideoPreviews=function(){var W;return!!(((W=this.opts)==null?0:W.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.d.startPlaybackForNextVideo=function(){var W;(W=this.opts)!=null&&W.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())};
_.Jq.Object.defineProperties($Q.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null?0:W.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.opts)==null||!W.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 W;if(Array.isArray((W=this.opts)==null?void 0:W.videoPreviewData)){var O;return(O=this.opts)==null?void 0:O.videoPreviewData[this.videoPreviewDataIndex]}var b;return(b=this.opts)==null?void 0:b.videoPreviewData}}});
$Q.prototype.onIsAdsVideoChange=$Q.prototype.onIsAdsVideoChange;$Q.prototype.onInlinePreviewIsEnabledChange=$Q.prototype.onInlinePreviewIsEnabledChange;$Q.prototype.optsChanged=$Q.prototype.optsChanged;$Q.prototype.onMouseLeave=$Q.prototype.onMouseLeave;$Q.JSC$16873_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);$Q.JSC$16873_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"}];
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],$Q.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],$Q.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],$Q.prototype,"componentBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],$Q.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F4.YtSparklesClickLocationBehavior),_.N("design:type",Object)],$Q.prototype,"ytSparklesClickLocationBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$Q.prototype,"opts",void 0);_.t([_.C(),_.N("design:type",Object)],$Q.prototype,"playerControlsData",void 0);
_.t([_.C(),_.N("design:type",Object)],$Q.prototype,"playerControlsAppApi",void 0);_.t([_.C(),_.N("design:type",Object)],$Q.prototype,"playerControlsOptions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$Q.prototype,"noAnimation",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$Q.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$Q.prototype,"active",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$Q.prototype,"playing",void 0);_.t([_.C({selector:_.Y2X}),_.N("design:type",Boolean)],$Q.prototype,"inlinePreviewIsEnabled",void 0);_.t([_.C(),_.N("design:type",String)],$Q.prototype,"pagePath",void 0);_.t([_.C({selector:_.rm}),_.N("design:type",Boolean)],$Q.prototype,"isWatchPage",void 0);_.t([_.x("videoPreviewData"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Q.prototype,"thumbnailData",null);
_.t([_.x("opts","active"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"hidePlayerControls",null);_.t([_.x("opts"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"isAdsVideo",null);_.t([_.x("opts"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"roundedCornersSmall",null);
_.t([_.x("opts"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"roundedCornersMedium",null);_.t([_.x("opts"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"roundedCornersLarge",null);_.t([_.x("opts"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$Q.prototype,"unroundCornersForPlayback",null);
_.t([_.x("opts","videoPreviewDataIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],$Q.prototype,"videoPreviewData",null);_.t([_.C(),_.N("design:type",Object)],$Q.prototype,"videoPreviewDataIndex",void 0);_.t([_.El("#inline-player"),_.N("design:type",Object)],$Q.prototype,"inlinePlayer",void 0);_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[MouseEvent]),_.N("design:returntype")],$Q.prototype,"onMouseLeave",null);
_.t([_.Ul("opts"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Q.prototype,"optsChanged",null);_.t([_.Ul("inlinePreviewIsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Q.prototype,"onInlinePreviewIsEnabledChange",null);_.t([_.m5("isAdsVideo"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$Q.prototype,"onIsAdsVideoChange",null);
$Q=_.t([_.G({is:"ytd-video-preview",disableElementRegistration:!0})],$Q);
_.H($Q,"ytd-video-preview",function(){if(fq5!==void 0)return fq5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fq5=W},{mode:2});
}catch(e){_._DumpException(e)}
try{
var SB7;var ZzZ;/*

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
*/
_.v_({_template:function(){if(ZzZ!==void 0)return ZzZ;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;SB7===void 0&&(SB7=document.createElement("template"));var T=SB7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return ZzZ=W},
is:"tp-yt-paper-checkbox",behaviors:[_.nS1],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.My(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var W=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),O="px",b=W.match(/[A-Za-z]+$/);b!==null&&(O=b[0]);W=parseFloat(W);b=8/3*W;O==="px"&&(b=Math.floor(b),b%2!==W%2&&b++);this.updateStyles({"--paper-checkbox-ink-size":b+
O})}})},
_computeCheckboxClass:function(W,O){var b="";W&&(b+="checked ");O&&(b+="invalid");return b},
_computeCheckmarkClass:function(W){return W?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.Cnz._createRipple.call(this)}});var Id7=new _.J("radioButtonSurveyOptionRenderer"),adP=new _.J("checkboxSurveyOptionRenderer");var mI1;var YBZ;var E41=0,Dl=function(){var W=_.n.call(this)||this;W.selected=!1;W.isOverlay=!1;W.inputId="toggle-option-"+E41;E41++;return W};
_.R(Dl,_.n);Dl.prototype.onTap=function(){_.bX(this.hostElement,"ytd-toggle-option-clicked")};
_.t([_.C(),_.N("design:type",String)],Dl.prototype,"label",void 0);_.t([_.C(),_.N("design:type",String)],Dl.prototype,"inputId",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Dl.prototype,"selected",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Dl.prototype,"isOverlay",void 0);Dl=_.t([_.G({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.N("design:paramtypes",[])],Dl);
_.H(Dl,"ytd-toggle-option-renderer",function(){if(YBZ!==void 0)return YBZ;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return YBZ=W},{mode:1});var xC=function(){var W=_.n.apply(this,arguments)||this;W.isToggleOption=!1;W.isOverlay=!1;return W};
_.R(xC,_.n);xC.prototype.onTap=function(W){W.preventDefault();this.data&&(W=!this.data.checked,this.set("data.checked",W),_.bX(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:W,value:this.data.value}))};
_.Jq.Object.defineProperties(xC.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
xC.prototype.onTap=xC.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xC.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xC.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],xC.prototype,"isToggleOption",void 0);_.t([_.C(),_.N("design:type",Object)],xC.prototype,"isOverlay",void 0);_.t([_.x("data.responseText"),_.N("design:type",String),_.N("design:paramtypes",[])],xC.prototype,"label",null);
_.t([_.ai("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],xC.prototype,"onTap",null);xC=_.t([_.G({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],xC);
_.H(xC,"ytd-checkbox-survey-option-renderer",function(){if(mI1!==void 0)return mI1;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mI1=W},{mode:1});var wDZ;var Av2;var zf=function(){var W=_.n.apply(this,arguments)||this;W.checked=!1;W.isToggleOption=!1;return W};
_.R(zf,_.n);zf.prototype.onTap=function(){this.data&&(this.checked?_.jx(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.jx(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
zf.prototype.onTap=zf.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zf.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],zf.prototype,"checked",void 0);_.t([_.C(),_.N("design:type",Object)],zf.prototype,"isToggleOption",void 0);_.t([_.ai("ytd-toggle-option-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zf.prototype,"onTap",null);
zf=_.t([_.G({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],zf);
_.H(zf,"ytd-radio-button-survey-option-renderer",function(){if(Av2!==void 0)return Av2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Av2=W},{mode:1});var Cy=function(){var W=_.n.apply(this,arguments)||this;W.disableAnimation=!1;W.isToggleOption=!0;W.followUpSurveyCommand=null;W.selectedRatingEndpoint=null;W.isSlimlineSurveyFollowUp=!1;W.isShortsStyle=!1;W.styleOverrideAttribute=!0;W.isDarkMode=!1;W.isSubmitted=!1;W.roundedContainer=!0;W.improveShortsResponseRate=_.e("web_improve_shorts_response_rate");W.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 W};
_.R(Cy,_.n);_.d=Cy.prototype;
_.d.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"}}}}};
_.d.attached=function(){var W=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(b){var T;if((T=b[0])!=null&&T.isIntersecting){_.Ez().reportShown(W.hostElement);var L;(L=W.intersectionObserver)==null||L.unobserve(W.hostElement)}},{rootMargin:"0px",
threshold:.6});var O;(O=this.intersectionObserver)==null||O.observe(this.hostElement)};
_.d.onDarkModeToggledAction=function(W){this.isDarkMode=W};
_.d.dataChanged=function(){var W;if(((W=this.data)==null?void 0:W.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var O;((O=this.data)==null?void 0:O.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var b,T,L,h;this.darkColorPalette=(b=this.data)==null?void 0:(T=b.inlineContent)==null?void 0:(L=T.compactVideoRenderer)==null?void 0:(h=L.thumbnail)==null?
void 0:h.darkColorPalette;var Z,a,m,w;this.lightColorPalette=(Z=this.data)==null?void 0:(a=Z.inlineContent)==null?void 0:(m=a.compactVideoRenderer)==null?void 0:(w=m.thumbnail)==null?void 0:w.lightColorPalette;var A,X;if(((A=this.data)==null?0:(X=A.inlineContent)==null?0:X.compactVideoRenderer)&&this.isShortsStyle){var l,p,K,k;W=_.jE((l=this.data)==null?void 0:(p=l.inlineContent)==null?void 0:(K=p.compactVideoRenderer)==null?void 0:(k=K.thumbnail)==null?void 0:k.thumbnails);_.Sl(this.hostElement,
{"--yt-background-url":"url("+W+")"})}};
_.d.handleRequestCompletion=function(){this.hostElement.hidden&&_.bX(this.hostElement,"yt-dismissible-item-dismissed")};
_.d.onPopupClosed=function(W){var O;((O=W.detail)==null?void 0:O.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.jx(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.d.handleInlineSurveyRatingSelect=function(W,O){var b=this;this.selectedRatingEndpoint=W;this.followUpSurveyCommand=O;this.expanded=!!W;this.getOptionRenderers().forEach(function(T,L){b.notifyPath("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked");b.set("followUpSurveyCommand.followUpOptions."+L+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),W=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.jx(this.hostElement,"yt-reel-non-video-content-dismissal-command",[W]))};
_.d.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.jx(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var W,O=(W=this.data)==null?void 0:W.dismissalEndpoint;O&&this.ytComponentBehavior.resolveCommand(O)}};
_.d.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.jx(this.hostElement,"yt-close-popup-action"))};
_.d.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var W=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{W=this.getOptionRenderers().filter(function(T){return T.checked});
if(W.length===0)return;W=W.map(function(T){return T.responseEndpoint})}var O=[];
W.forEach(function(T,L){L!==0&&(T=_.P(T,_.QG))&&T.feedbackToken&&O.push(T.feedbackToken)});
if(W=W[0]){var b={};O.length>0&&(b.extra_feedback_tokens=O);this.ytComponentBehavior.resolveCommand(W,{form:b})}}};
_.d.getOptionRenderers=function(){var W=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(O){W.isSingleSelect=!!_.P(O,Id7);return W.isSingleSelect?_.P(O,Id7):_.P(O,adP)}):[]};
_.d.handleInlineSurveyOptionSelect=function(W){W=this.optionSelector.indexOf(W);W!==-1&&this.optionSelector.selectIndex(W)};
_.d.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.d.maybeGetBackgroundColor=function(W){return this.isDarkMode?W.section2Color:W.section3Color};
_.d.colorPaletteChanged=function(){var W=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;W=W&&this.maybeGetBackgroundColor(W);this.dismissibleEl.style.backgroundColor=!W||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.zF(W)};
_.Jq.Object.defineProperties(Cy.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Cy.prototype.colorPaletteChanged=Cy.prototype.colorPaletteChanged;Cy.prototype.onPopupClosed=Cy.prototype.onPopupClosed;Cy.prototype.handleRequestCompletion=Cy.prototype.handleRequestCompletion;Cy.prototype.dataChanged=Cy.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Cy.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Cy.prototype,"actionHandlerBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Cy.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Cy.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.El("#follow-up-survey-options"),_.N("design:type",Object)],Cy.prototype,"optionSelector",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"disableAnimation",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"isToggleOption",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"followUpSurveyCommand",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"selectedRatingEndpoint",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],Cy.prototype,"expanded",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cy.prototype,"isSlimlineSurveyFollowUp",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cy.prototype,"isShortsStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cy.prototype,"styleOverrideAttribute",void 0);_.t([_.C(),_.N("design:type",Boolean)],Cy.prototype,"isSingleSelect",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"isDarkMode",void 0);
_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"lightColorPalette",void 0);_.t([_.C(),_.N("design:type",Object)],Cy.prototype,"darkColorPalette",void 0);_.t([_.x("selectedRatingEndpoint","isShortsStyle"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Cy.prototype,"isOptionSelected",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cy.prototype,"roundedContainer",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cy.prototype,"improveShortsResponseRate",void 0);_.t([_.El("#dismissible"),_.N("design:type",HTMLElement)],Cy.prototype,"dismissibleEl",void 0);_.t([_.El("#dismiss-button yt-icon-button"),_.N("design:type",HTMLElement)],Cy.prototype,"dismissButtonEl",void 0);_.t([_.El("#inline-survey-header yt-icon-button"),_.N("design:type",HTMLElement)],Cy.prototype,"inlineHeaderDismissButtonEl",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cy.prototype,"dataChanged",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cy.prototype,"handleRequestCompletion",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Cy.prototype,"onPopupClosed",null);
_.t([_.m5("darkColorPalette","lightColorPalette","isDarkMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cy.prototype,"colorPaletteChanged",null);Cy=_.t([_.G({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Cy);
_.H(Cy,"ytd-inline-survey-renderer",function(){if(wDZ!==void 0)return wDZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return wDZ=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var NI2,McN,uPg;NI2=function(W){return _.e("kevlar_watch_cinematics_invisible")||W.fullscreen&&_.e("kevlar_watch_cinematics_invisible_in_fullscreen")||W.theater&&!W.fullscreen&&_.e("kevlar_watch_cinematics_invisible_in_theater")};
McN=function(){var W=document.createElement("canvas"),O=W.getContext("2d");if(!O)throw Error("Xl");_.kl(W,{position:"absolute",width:"100%",height:"100%"});return{element:W,context:O}};
uPg=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.e("kevlar_watch_cinematics_css_blur")};
_.JQP=function(W,O,b){return Math.abs(W-O)<=(b||1E-6)};
_.cQD=function(W,O){return W==O?!0:W&&O?W.width==O.width&&W.height==O.height:!1};_.FW9=new _.J("notificationActionRenderer");var yQP=function(W){var O=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.S4;this.element.addEventListener("load",function(){O.loaded=!0;O.resolver.resolve(O.element)});
this.element.addEventListener("error",function(){O.failed=!0});
this.element.src=W};var WeP=function(W,O){this.image=W;this.frame=O};
WeP.prototype.drawToCanvas=function(W,O){var b=this.frame.width/this.frame.columns,T=this.frame.height/this.frame.rows,L=O.offsetX,h=O.offsetY;NI2(O)?(W.fillStyle=O.fullscreen?"#000":"#0f0f0f",W.fillRect(L,h,(O==null?void 0:O.width)||b,(O==null?void 0:O.height)||T)):W.drawImage(this.image,this.frame.column*b,this.frame.row*T,b,T,L,h,(O==null?void 0:O.width)||b,(O==null?void 0:O.height)||T)};
var ORB=function(W){this.color=W};
ORB.prototype.drawToCanvas=function(W,O){var b=O.offsetX,T=O.offsetY,L=O.width,h=O.height;W.fillStyle=NI2(O)?O.fullscreen?"#000":"#0f0f0f":this.color;W.fillRect(b,T,L,h)};var WC=function(W,O){_.Jr.call(this);this.playerApi=O;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.hU(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();iR9(this,W);bR5(this);this.update()};
_.R(WC,_.Jr);WC.prototype.addEventListeners=function(){var W=this,O=function(){W.update()},b=function(L){W.paused||(L.type==="newdata"&&(W.mosaics.clear(),jZ2(W),ON(W)),bR5(W),W.update())},T=function(){W.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",O);this.playerApi.addEventListener("onVideoDataChange",b);this.playerApi.addEventListener("onStateChange",T);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoProgress",O);W.playerApi.removeEventListener("onVideoDataChange",b);W.playerApi.removeEventListener("onStateChange",T)})};
var iR9=function(W,O){W.cinematicContainerRenderer!==O&&(W.cinematicContainerRenderer=O,jZ2(W),ON(W),W.colorStoreUpdateJobId=_.sF.addLowPriorityJob(function(){var b;if((b=W.cinematicContainerRenderer.colorStore)!=null&&b.sampledColors){b=Infinity;for(var T=_.S(W.cinematicContainerRenderer.colorStore.sampledColors),L=T.next();!L.done;L=T.next()){L=L.value;var h=Number(L.key);h!==0&&h<b&&(b=h);h=_.C_(L.value);W.colorStore.set(L.key,h)}W.colorStoreTimeInterval=b}}))},jZ2=function(W){W.colorStoreUpdateJobId&&
(_.sF.cancelJob(W.colorStoreUpdateJobId),W.colorStoreUpdateJobId=void 0);
W.colorStore.clear();W.currentStoryboardColor=void 0},TXR=function(W,O){var b;
return(b=W.getStoryboardFrame(O))==null?void 0:b.url};
WC.prototype.onPlayerStateChange=function(){this.update()};
WC.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var bR5=function(W){var O=W.getStoryboardFrame(0);O&&(O=new _.hU(O.width/O.columns,O.height/O.rows),_.cQD(W.currentStoryboardSize,O)||(W.currentStoryboardSize=O,W.publish("STORYBOARD_SIZE_CHANGED",W.currentStoryboardSize)))},LeB=function(W,O){W.currentStoryboardIndex=O;
W.pendingStoryboardIndex=NaN;O=W.getStoryboardFrame(W.currentStoryboardIndex);W.currentStoryboard=new WeP(W.mosaics.get(O.url).element,O);W.publish("STORYBOARD_CHANGED",W.currentStoryboard);W.lastUpdateTime=(0,_.WO)()};
WC.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var ON=function(W){W.currentStoryboardIndex=NaN;W.pendingStoryboardIndex=NaN;W.currentStoryboard&&(W.currentStoryboard=void 0,W.publish("STORYBOARD_CHANGED",void 0));W.lastUpdateTime=NaN};
WC.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)ON(this);else{var W=this.playerApi.getPlayerState(1);if(W===-1||W===5||W===0)ON(this);else if(isNaN(this.lastUpdateTime)||!((0,_.WO)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(W=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){W=""+Math.round(W*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var O=this.colorStore.get(W);O?O!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=O,this.currentStoryboard=new ORB(O),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.WO)()):(_.z5(new _.pu("Could not find color for timestamp: "+W,this.cinematicContainerRenderer)),ON(this))}else ON(this);else dwU(this,W)}};
var dwU=function(W,O){var b=W.getStoryboardFrameIndex(O);if(b!==W.currentStoryboardIndex&&b!==W.pendingStoryboardIndex){O=TXR(W,b);var T=W.mosaics.get(O);T?T.loaded&&LeB(W,b):(W.pendingStoryboardIndex=b,b=new yQP(O),W.mosaics.set(O,b),b.resolver.promise.then(function(){if(!W.isDisposed()&&!W.paused&&!isNaN(W.pendingStoryboardIndex)){var L=TXR(W,W.pendingStoryboardIndex);if(L){var h;(h=W.mosaics.get(L))!=null&&h.loaded&&LeB(W,W.pendingStoryboardIndex)}else ON(W)}}))}};
WC.prototype.getStoryboardFrameIndex=function(W){var O=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(W,O)};
WC.prototype.getStoryboardFrame=function(W){var O=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,b,T;return((T=(b=this.playerApi).getStoryboardFrame)==null?void 0:T.call(b,W,O))||null};
WC.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var bA=function(W,O,b,T){T=T===void 0?!1:T;_.R8.call(this);this.cinematicContainerRenderer=O;this.playerApi=b;this.theater=this.fullscreen=!1;var L;this.ambientLightThemeEnabled=!T&&!!(O==null?0:(L=O.config)==null?0:L.enableInLightTheme);this.ambientFullscreenEnabled=T&&_.e("web_cinematic_fullscreen");this.container=document.createElement("div");W.appendChild(this.container);var h;if(_.e("web_cinematic_theater_mode")||_.e("web_cinematic_fullscreen")||(O==null?0:(h=O.config)==null?0:h.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);h28(this);W=this.ambientV2Container||this.container;this.backCanvas=McN();this.frontCanvas=McN();W.appendChild(this.backCanvas.element);W.appendChild(this.frontCanvas.element);this.storyboardManager=new WC(O,this.playerApi);_.a8(this,this.storyboardManager);this.addEventListeners();Sf2(this)?ZRk(this,100+iA(this)*3*2,100+iA(this)*3*2):ITU(this);aT7(this,this.storyboardManager.currentStoryboard)};
_.R(bA,_.R8);var h28=function(W){W.ambientV2Container?mwg(W):(_.kl(W.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+Yfg(W)+", "+Exg(W)+")"}),uPg()&&_.kl(W.container,"filter","blur("+_.Lu("cinematic_watch_css_filter_blur_strength",40)+"px)"))},mwg=function(W){if(W.ambientV2Container){var O=W.playerApi.getVideoAspectRatio();
_.kl(W.container,{"aspect-ratio":""+O,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.kl(W.ambientV2Container,{"aspect-ratio":""+O,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+Yfg(W)+", "+Exg(W)+")"});uPg()&&_.kl(W.ambientV2Container,"filter","blur("+_.Lu("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
bA.prototype.setFullscreen=function(W,O){this.fullscreen=W;this.theater=!!O;h28(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),W=this.storyboardManager.currentStoryboard,wAZ(this),W&&Ab8(this,W)};
bA.prototype.addEventListeners=function(){var W=this,O=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(L){aT7(W,L)}),b=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){ITU(W)});
this.addOnDisposeCallback(function(){W.storyboardManager.unsubscribeByKey(O);W.storyboardManager.unsubscribeByKey(b)});
if(this.ambientV2Container){var T=function(){mwg(W)};
this.playerApi.addEventListener("onVideoDataChange",T);this.addOnDisposeCallback(function(){W.playerApi.removeEventListener("onVideoDataChange",T)})}};
var ITU=function(W){if(!Sf2(W)){var O=W.storyboardManager.currentStoryboardSize;isNaN(O.width)||isNaN(O.height)||ZRk(W,Number(O.width)+iA(W)*3*2,Number(O.height)+iA(W)*3*2)}},ZRk=function(W,O,b){W.backCanvas.element.width=O;
W.backCanvas.element.height=b;W.frontCanvas.element.width=O;W.frontCanvas.element.height=b},Sf2=function(W){return W.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},aT7=function(W,O,b){b=b===void 0?!1:b;
var T=W.frontCanvas.element.getAnimations()[0];T?(T.pause(),W.backCanvas.context.globalAlpha=Number(getComputedStyle(W.frontCanvas.element).opacity),W.frontCanvas.element.style.opacity="0",T.finish()):W.backCanvas.context.globalAlpha=1;W.backCanvas.context.drawImage(W.frontCanvas.element,0,0,W.backCanvas.element.width,W.backCanvas.element.height);wAZ(W);O&&Ab8(W,O);O=O?W.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.Lu("cinematic_watch_fade_out_duration",500);T=_.Lu("cinematic_watch_transition_frame_rate")/
1E3;var L={};T&&(L={easing:"steps("+Math.round(O*T)+")"});(b===void 0?0:b)||W.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:O,iterations:1},L));W.frontCanvas.element.style.opacity="1"},wAZ=function(W){var O=W.ambientLightThemeEnabled,b=W.ambientLightThemeEnabled||W.ambientFullscreenEnabled&&!_.e("web_cinematic_fullscreen_v2");
W.frontCanvas.context.fillStyle=W.theater&&O||W.fullscreen&&b?"#000":"#0f0f0f";uPg()||(W.frontCanvas.context.filter="blur(0)");W.frontCanvas.context.fillRect(0,0,W.frontCanvas.element.width,W.frontCanvas.element.height)},Ab8=function(W,O){uPg()||(W.frontCanvas.context.filter="blur("+iA(W)+"px)");
W.frontCanvas.context.globalAlpha=_.Lu("cinematic_watch_effect_opacity",.4);var b={offsetX:iA(W)*3,offsetY:iA(W)*3,theater:W.theater,fullscreen:W.fullscreen};Sf2(W)&&(b.width=100,b.height=100);O.drawToCanvas(W.frontCanvas.context,b);W.frontCanvas.context.globalAlpha=1},iA=function(W){var O;
return(O=W.cinematicContainerRenderer.config.blurStrength)!=null?O:5},Yfg=function(W){var O,b;
if((W.fullscreen||W.theater)&&((O=W.cinematicContainerRenderer.config)==null?0:(b=O.watchFullscreenConfig)==null?0:b.colorSourceWidthMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var T;return(T=W.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?T:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier},Exg=function(W){var O,b;
if((W.fullscreen||W.theater)&&((O=W.cinematicContainerRenderer.config)==null?0:(b=O.watchFullscreenConfig)==null?0:b.colorSourceHeightMultiplier))return W.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var T;return(T=W.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?T:W.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
bA.prototype.disposeInternal=function(){_.R8.prototype.disposeInternal.call(this);this.container.remove()};
bA.prototype.clear=function(){aT7(this,void 0,!0)};
bA.prototype.pause=function(){this.storyboardManager.pause()};var XAR;XAR=_.Yl(function(){var W,O,b=!((O=(W=document.createElement("canvas")).getContext)==null||!O.call(W,"2d")),T;W=!((T=CSS)==null||!T.supports("filter: blur(0)"));T=!!Element.prototype.animate&&!!Element.prototype.getAnimations;O=_.e("web_cinematic_fullscreen")||_.e("web_cinematic_theater_mode")||_.e("web_cinematic_light_theme")||!1;var L;return b&&W&&T&&(!O||!((L=CSS)==null||!L.supports("aspect-ratio: 1 / 1")))});
_.jM=function(W,O){_.Jr.call(this);this.container=W;this.playerApi=O;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Uw1(this);this.update()};
_.R(_.jM,_.Jr);_.lT2=function(W){var O=document.documentElement.hasAttribute("dark");W.isDarkModeEnabled=O;W.update()};
_.e2k=function(W,O){W.settingEnabled=O;W.update()};
_.jM.prototype.setFullscreen=function(W,O){this.fullscreen=W;this.theater=!!O;this.update()};
_.PC7=function(W,O){W.cinematicContainerRenderer=O;W.cinematicContainerRenderer&&(W.cinematicsVe=_.gd(W.isShorts()?227858:159022),_.jn(_.A4(),W.cinematicsVe),W.loggingClientData={watchCinematicContainerData:{presentationStyle:W.cinematicContainerRenderer.presentationStyle}});W.update()};
_.jM.prototype.isShorts=function(){var W,O;return((W=this.cinematicContainerRenderer)==null?void 0:(O=W.config)==null?void 0:O.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.jM.prototype.isAllowed=function(){var W;if(W=XAR()){var O,b,T;W=((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((T=this.cinematicContainerRenderer)==null||!T.colorStore)||((O=this.cinematicContainerRenderer)==null?void 0:O.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(W)if(_.e("web_cinematics_pausing")){var L,h;W=this.isDarkModeEnabled||!!((L=this.cinematicContainerRenderer)==
null?0:(h=L.config)==null?0:h.enableInLightTheme)}else{var Z,a;L=!!((Z=this.cinematicContainerRenderer)==null?0:(a=Z.config)==null?0:a.enableInLightTheme)&&(_.Cv("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);W=this.isDarkModeEnabled||L}if(Z=W){var m,w;Z=!((w=(m=this.prefersReducedMotionQuery)==null?void 0:m.matches)!=null&&w)}return Z};
_.pAU=function(W){(W=W.currentCinematicEffect)!=null&&(W=W.storyboardManager,W.paused=!1,bR5(W),W.update())};
_.jM.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Uw1=function(W){if(!_.e("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var O=window.matchMedia("(prefers-reduced-motion: reduce)"),b=function(){W.update()};
O.addListener(b);W.addOnDisposeCallback(function(){O.removeListener(b)});
return O}};
_.jM.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var W=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new bA(this.container,W,this.playerApi,this.isDarkModeEnabled),_.a8(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var O=this.currentCinematicEffect;O.cinematicContainerRenderer!==
W&&(O.cinematicContainerRenderer=W,iR9(O.storyboardManager,W),h28(O));W=_.Xt();_.UO(0,194,!0);W.save();W=_.Bb();this.cinematicsVe&&W&&_.t3(W,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(W=_.Bb(),this.cinematicsVe&&W&&_.$0(W,[this.cinematicsVe],!1,this.loggingClientData),_.JU(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Jq.Object.defineProperties(_.jM.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var Pl1;var pEN;_.v_({_template:function(){if(pEN!==void 0)return pEN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=
W.content,b=O.insertBefore;Pl1===void 0&&(Pl1=document.createElement("template"));var T=Pl1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return pEN=W},
is:"tp-yt-iron-pages",behaviors:[_.vL,_.G0],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var AwB;_.XpD=function(){if(_.e("kevlar_home_skeleton")&&!AwB){var W=document.querySelector("#home-page-skeleton");W&&(_.Bg("hgcr"),_.Xu(W),AwB=!0)}};
AwB=!1;_.PJ=new _.J("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Al9,X87,U_k,lo2,eng,Pgk,Kb5,gWU,oW7,vWP,p85,Rng,s0g,BsU;_.w8N=function(W,O,b){O=O===void 0?5:O;if(O!==0){var T=typeof W==="function"?W():document.querySelector(W);T?(b==null?0:b.enableSmartFocus)?_.ytO(T):T.focus():setTimeout(function(){_.w8N(W,O-1,b)},500)}};
Al9=function(W){return _.yW8(_.Fxi(W&16777215))<.5};
X87=function(W,O,b){var T=b.minimumRowsOfVideosBetweenSections===void 0?1:b.minimumRowsOfVideosBetweenSections;return W<(b.minimumRowsOfVideosAtStart===void 0?2:b.minimumRowsOfVideosAtStart)||O!==null&&W-O<=T?!1:!0};
U_k=function(W,O){var b=0,T=0;W=_.S(W);for(var L=W.next();!L.done;L=W.next()){var h=L.value;if(h.richItemRenderer)h.richItemRenderer.rowIndex=T,h.richItemRenderer.colIndex=b++,b===O&&(b=0,T++);else if(h.richGroupRenderer&&h.richGroupRenderer.numColumns!==void 0)h.richGroupRenderer.rowIndex=T,h.richGroupRenderer.colIndex=b,b+=h.richGroupRenderer.numColumns,b===O&&(b=0,T++);else if(h.richSectionRenderer){var Z=L=void 0;if(h=_.P((L=h)==null?void 0:(Z=L.richSectionRenderer)==null?void 0:Z.content,_.$$$))h.rowIndex=
T++}}};
lo2=function(W,O){var b=O.contentElement;O=O.rendererToTagNameMap;if(b&&O&&O.size!==0){for(var T=new Map,L=_.S(b.children),h=L.next();!h.done;h=L.next()){h=h.value;var Z=h.tagName.toLowerCase(),a=T.get(Z);a||(a=[],T.set(Z,a));a.push(h)}if(T.size!==0)for(L=Math.min(W.length,b.children.length),h=new Map,Z=0;Z<L;Z++){a=Object.keys(W[Z])[0];a=O.get(a);if(!a)break;var m=h.get(a);m===void 0&&(m=0,h.set(a,m));var w=T.get(a);if(!w||m>=w.length)break;h.set(a,m+1);a=w[m];m=b.children[Z];m!==a&&(_.H88=!0,_.t9O.set(a,
!0),b.insertBefore(a,m),_.t9O.delete(a),_.H88=!1)}}};
eng=function(W,O,b,T,L,h,Z){T=T===void 0?{}:T;if(!W||!W.length)return[];W=W.slice();var a=[],m=[];L=null;for(var w=0,A=function(q){m.sort(function(V,jQ){return jQ.skippedOnRow-V.skippedOnRow});
for(var f,M=(f=m.shift())==null?void 0:f.content;M;)!M.richSectionRenderer&&q||a.push(M),f=void 0,M=(f=m.shift())==null?void 0:f.content},X=[];W.length>0||m.length>0;){for(var l=[],p=O;p>0;){var K=void 0,k=void 0,r=(k=m[0]&&m[0].skippedOnRow<w?(K=m.shift())==null?void 0:K.content:void 0)!=null?k:W.shift();
if(!r)break;if(r.richItemRenderer)K=r.richItemRenderer.targetId,k=void 0,K&&((k=Z)==null?0:k.has(K))&&X.push(Z.get(K)),l.push(r),p--;else if(r.richGroupRenderer&&r.richGroupRenderer.numColumns!==void 0)r.richGroupRenderer.numColumns<=p?(l.push(r),p-=r.richGroupRenderer.numColumns):p===O&&r.richGroupRenderer.numColumns>O?(l.push({richGroupRenderer:Object.assign({},r.richGroupRenderer,{numColumns:O})}),p=0):m.push({content:r,skippedOnRow:w});else if(r.richSectionRenderer)if(X87(w,L,T)&&p===O){a.push(r);
L=w;w++;continue}else m.push({content:r,skippedOnRow:w});else if(r.continuationItemRenderer){A(!0);a.push(r);p=0;break}if(p===0)a.push.apply(a,_.PG(l));else if(!b&&W.length===0){A(!1);a.push.apply(a,_.PG(l));p=0;break}}w++;X=_.S(X);for(l=X.next();!l.done;l=X.next())a.push(l.value),w++;X=[]}U_k(a,O);h&&lo2(a,h);return a};
Pgk=function(W){return W.talkToRecs};
Kb5=function(W,O){if(O){var b=_.uv().getState().entities.flowStateEntity,T=p85(W),L=[O];T&&T!==O&&L.push(T);var h=!0,Z;if(b&&W.flowStateEntityKey&&((Z=b[W.flowStateEntityKey])==null?void 0:Z.primaryButtonDisabled)!==void 0){var a;h=!((a=b[W.flowStateEntityKey])==null||!a.primaryButtonDisabled)}Rng(W,T!=null?T:O,L,h)}};
gWU=function(W){return _.mr(_.uv(),function(O){return O.entities.flowStateEntity},function(O,b){if(W.flowStateEntityKey){var T,L=O==null?void 0:(T=O[W.flowStateEntityKey])==null?void 0:T.currentStepId,h;
b=b==null?void 0:(h=b[W.flowStateEntityKey])==null?void 0:h.currentStepId;h=_.uv().getState().talkToRecs;if(L&&L!==b){var Z;O=(O==null?void 0:(Z=O[W.flowStateEntityKey])==null?void 0:Z.stepIdStack)||Object.keys(h.stepStates);Z=!vWP(h==null?void 0:h.stepStates[L]);Rng(W,L,O,Z)}}})};
oW7=function(W){return _.mr(_.uv(),Pgk,function(O){var b=p85(W);if(b){var T=Object.keys(O.stepStates);O=!vWP(O==null?void 0:O.stepStates[b]);Rng(W,b,T,O)}})};
vWP=function(W){var O=Object.keys((W==null?void 0:W.selectionStates)||{}).reduce(function(h,Z){return h||(W==null?void 0:W.selectionStates[Z].isSelected)},!1),b,T,L=!!(W==null?0:(b=W.userQuery)==null?0:(T=b.userQuery)==null?0:T.trim());
return O||L};
p85=function(W){if(W.flowStateEntityKey){var O,b,T=(O=_.uv().getState().entities.flowStateEntity)==null?void 0:(b=O[W.flowStateEntityKey])==null?void 0:b.currentStepId;if(T)return T}};
Rng=function(W,O,b,T){_.uv().dispatch(_.AI("flowStateEntity",W.flowStateEntityKey,{currentStepId:O,stepIdStack:b,key:W.flowStateEntityKey,primaryButtonDisabled:T}))};
_.Q08=function(W,O){return _.IJ(W.entities,"youchatPendingResponseEntity",O)};
_.kQ5=function(W){return function(O){_.Ne(_.AI("youchatPendingResponseEntity",W,{entityKey:W,isPendingResponse:O}))}};
s0g=function(W){W==null||W.addEventListener("DOMLoaded",function(){W.goToAndPlay(W.totalFrames-48,!0)})};var rl7;_.v_({_template:function(){if(rl7!==void 0)return rl7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
var O=W.content,b=O.insertBefore;BsU===void 0&&(BsU=document.createElement("template"));var T=BsU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return rl7=W},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var D_5=new _.J("talkToRecsFlowRenderer");var x_N=new _.J("flowRootRenderer");var znU=new _.J("chipsShelfViewModel");var CgU=new _.J("horizontalShelfViewModel");_.q71=new _.J("engagementPanelSectionListRenderer");var nW7=new _.J("conversationResourceViewModel");var fog=function(){this.horizontal=!1},GQ1=function(W,O){W.horizontal=O};
fog.prototype.position=function(W,O,b,T){T=T===void 0?1:T;W=this.delta(W)*T+O;T=Math.max(O,b);return W>=Math.min(O,b)&&W<=T?W:b};
fog.prototype.axis=function(W){W=this.direction(W);return W==="up"||W==="down"?"Y":"X"};var hf=function(W,O,b){O=O===void 0?_.XX():O;this.target=W;this.manager=O;this.touchAction=b;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
hf.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(_.PG(this.events)));for(var W=_.S(this.events),O=W.next();!O.done;O=W.next())this.listen(O.value)}};
hf.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.PG(this.events)));for(var W=_.S(this.events),O=W.next();!O.done;O=W.next())this.unlisten(O.value)}};
hf.prototype.listen=function(W){this.eventMap[W]&&this.target.addEventListener(W,this.eventMap[W])};
hf.prototype.unlisten=function(W){this.eventMap[W]&&this.target.removeEventListener(W,this.eventMap[W])};var Sg=function(){fog.apply(this,arguments)};
_.R(Sg,fog);Sg.prototype.direction=function(W){var O=W.detail;W=O.deltaY;O=O.deltaX;return W&&!this.horizontal?W>0?"down":"up":O&&this.horizontal?O>0?"right":"left":"none"};
Sg.prototype.distance=function(W){return Math.abs(this.delta(W))};
Sg.prototype.delta=function(W){var O=this.direction(W),b=W.detail;W=b.deltaX;b=b.deltaY;return O==="up"||O==="down"?b||0:W||0};
Sg.prototype.velocity=function(W){var O=this.direction(W),b=W.detail;W=b.velocityX;b=b.velocityY;return Math.abs(O==="up"||O==="down"?b||0:W||0)};_.Za=function(W,O,b,T,L,h){L=L===void 0?new Sg:L;h=h===void 0?_.XX():h;hf.call(this,O,h,T);var Z=this;this.element=W;this.target=O;this.config=b;this.input=L;this.manager=h;this.events=["panstart","panmove","panend"];this.onPanStart=function(){Z.config.draggingClass&&Z.element.classList.add(Z.config.draggingClass);Z.config.startAction&&Z.config.startAction()};
this.onPanMove=function(a){var m=HL5(Z,a);if(m){Z.move(a,m);m.fade&&Z.fade(a,m);var w=Z.input.direction(a);m.moveAction&&m.moveAction(tAN(Z,a,m),w)}};
this.onPanEnd=function(a){var m,w,A,X,l,p;return _.I(function(K){if(K.nextAddress==1){Z.animationRequestId&&cancelAnimationFrame(Z.animationRequestId);Z.animationRequestId=void 0;m=HL5(Z,a);if(!m)return K.return();w=m;A=w.triggerAction;X=w.fade;l=w.disableFinish;p=w.translateBack;var k=Z.input.velocity(a),r=Z.input.distance(a),q=Z.threshold(m);return k>.3&&r>10||r>q?l?K.jumpTo(6):X?_.Y(K,$_R(Z,a),6):_.Y(K,VA8(Z,a,m),6):p?_.Y(K,Z.translateBack(a),3):K.jumpTo(3)}K.nextAddress!=3&&A&&A();Z.config.draggingClass&&
Z.element.classList.remove(Z.config.draggingClass);Z.reset();_.aD(K)})};
W=Object.keys(b.triggers);this.directions=new Set(W);GQ1(this.input,this.directions.has("right")||this.directions.has("left"))};
_.R(_.Za,hf);_.Za.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var HL5=function(W,O){O=W.input.direction(O);return W.config.triggers[O]};
_.Za.prototype.move=function(W,O){var b=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var T=b.input.axis(W),L=b.input.position(W,b.config.startPosition,O.endPosition,O.moveRatio||1);b.element.style.transform="translate"+T+"("+L+"px)";b.animationRequestId=void 0}))};
var tAN=function(W,O,b){var T=b.moveRatio||1;b=Math.abs(W.config.startPosition-b.endPosition);return Math.min(W.input.distance(O)*T,b)/b};
_.Za.prototype.fade=function(W,O){var b=O.endOpacity;W=tAN(this,W,O);W>0&&(this.element.style.opacity=""+(((b||0)-1)*W+1))};
_.Za.prototype.threshold=function(W){return W.threshold?W.threshold:Math.abs(W.endPosition-this.config.startPosition)/3};
var VA8=function(W,O,b){var T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return T=W.input.delta(O)+W.config.startPosition,L=W.input.axis(O),h=b,Z=h.endPosition,a=h.transitionEndPosition,w=(m=a)!=null?m:Z,_.Y(A,W.element.animate([{transform:"translate"+L+"("+T+"px)"},{transform:"translate"+L+"("+w+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+L+"("+w+"px)";_.aD(A)})};
_.Za.prototype.translateBack=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1){if(!O.element.style.transform)return L.return();b=O.input.axis(W);T=O.config.startPosition;return _.Y(L,O.element.animate([{transform:O.element.style.transform},{transform:"translate"+b+"("+T+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}O.element.style.transform="translate"+b+"("+T+"px)";_.aD(L)})};
var $_R=function(W,O){var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return b=W.input.delta(O)+W.config.startPosition,T=W.input.axis(O),L=b+70,h=W.element.style.opacity===""?1:W.element.style.opacity,_.Y(Z,W.element.animate([{transform:"translate"+T+"("+b+"px)",opacity:h},{transform:"translate"+T+"("+L+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.element.style.transform="translate"+T+"("+L+"px)";W.element.style.opacity="0";_.aD(Z)})};var I9=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.scrollRate=3;W.autoScrollAnimationStart=0;W.autoScrollPaused=!1;W.autoScrollRafId=0;return W};
_.R(I9,_.A1);_.d=I9.prototype;_.d.created=function(){var W=this;this.boundAutoScrollHandler=function(O){W.autoScroll(O)}};
_.d.detached=function(){this.hostElement.removeEventListener("mouseout",_.Ii(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.Ii(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.Ii(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.d.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.Ii(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.Ii(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.Ii(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.Ii(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.Ii(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.Ii(this,this.endAutoScroll)),this.endAutoScroll())};
_.d.autoScroll=function(W){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=W);var O;if(O=!this.autoScrollPaused&&this.scrollTarget)O=this.scrollTarget,O=O.scrollHeight-O.scrollTop!==O.clientHeight;O&&(O=1E3/this.scrollRate,W-=this.autoScrollAnimationStart,W>O&&(this.scrollTarget.scrollTop+=Math.ceil(W/O),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.d.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.d.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
I9.prototype.autoScrollEnabledChanged=I9.prototype.autoScrollEnabledChanged;_.t([_.C(),_.N("design:type",Object)],I9.prototype,"scrollRate",void 0);_.t([_.C(),_.N("design:type",Object)],I9.prototype,"scrollTarget",void 0);_.t([_.C(),_.N("design:type",Boolean)],I9.prototype,"autoScrollEnabled",void 0);_.t([_.m5("autoScrollEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],I9.prototype,"autoScrollEnabledChanged",null);I9=_.t([_.XT()],I9);_.Ns1=[I9.prototype];var MAR;var a9=function(){var W=_.n.apply(this,arguments)||this;W.buttonUpdate=_.e("web_button_rework");W.dismissButtonOverrides=_.e("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;W.forceDarkTheme=!1;W.forceLightTheme=!1;W.dynamicTextHeight=94;W.hasOverflowButton=!1;W.isInfeedModernization=!1;return W};
_.R(a9,_.n);_.d=a9.prototype;_.d.computeUrlImg=function(W){if(W)return _.jE(W.thumbnails)};
_.d.getLogoHeight=function(W){return this.logoWithPadding(W)?"31":"24"};
_.d.getLogoClassName=function(W){return this.logoWithPadding(W)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.d.logoWithPadding=function(W){var O,b;return(W=(O=W.thumbnails)==null?void 0:(b=O[0])==null?void 0:b.height)&&W%31===0?!0:!1};
_.d.sendImpressionEndpoints=function(W){W.impressionEndpoints&&_.da(this.hostElement,W.impressionEndpoints)};
_.d.observeBasicPalette=function(){var W,O,b=(W=this.data)==null?void 0:(O=W.colorData)==null?void 0:O.basicColorPaletteData;b?_.kS(this.hostElement,b):_.kS(this.hostElement,{})};
_.d.observeDataChanged=function(){var W;this.dynamicTextHeight=((W=this.data)==null?0:W.supplementalText)?74:94;var O;this.hasSupplementalText=!((O=this.data)==null||!O.supplementalText);if(_.e("web_button_rework")){var b,T,L,h;W=(b=this.data)==null?void 0:(T=b.actionButton)==null?void 0:(L=T.buttonRenderer)==null?void 0:(h=L.colorData)==null?void 0:h.basicColorPaletteData;var Z,a,m;if(!((Z=this.data)==null?0:(a=Z.actionButton)==null?0:(m=a.buttonRenderer)==null?0:m.style)&&W){this.computeIsInfeedModernization(this.data)||
(W.borderColor=W.foregroundTitleColor);var w,A;this.set("data.actionButton.buttonRenderer",_.PQ.unsafeClone((w=this.data)==null?void 0:(A=w.actionButton)==null?void 0:A.buttonRenderer))}}};
_.d.observeDataForCounterfactual=function(){if(_.e("kevlar_banner_cf_extra_logging")){var W;((W=this.data)==null?0:W.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.d.computeSupplementalStyle=function(){var W;if((W=this.data)!=null&&W.supplementalText){var O,b,T;if((O=this.data)==null?0:(b=O.colorData)==null?0:(T=b.basicColorPaletteData)==null?0:T.foregroundActivatedColor)return W=_.zF(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+W+"; --yt-endpoint-hover-color:"+W+"; --yt-endpoint-visited-color:"+W+"; --yt-formatted-string-bold-font-weight:700;"}};
_.d.computeForcedDarkTheme=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.actionButton)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.style,L,h,Z;W=Al9(((L=this.data)==null?void 0:(h=L.colorData)==null?void 0:(Z=h.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return T&&W};
_.d.computeForcedLightTheme=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.actionButton)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.style,L,h,Z;W=!Al9(((L=this.data)==null?void 0:(h=L.colorData)==null?void 0:(Z=h.basicColorPaletteData)==null?void 0:Z.backgroundColor)||0);return T&&W};
_.d.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.d.computeHasTitle=function(W){return!!W.title};
_.d.computeTitleMaxFontSize=function(W){return this.computeHasOverflowButton(W)?28:64};
_.d.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.d.computeIsInfeedModernization=function(){var W,O,b,T,L=(W=this.data)==null?void 0:(O=W.actionButton)==null?void 0:(b=O.buttonRenderer)==null?void 0:(T=b.colorData)==null?void 0:T.basicColorPaletteData;return(L==null?void 0:L.backgroundColor)===452984831||(L==null?void 0:L.backgroundColor)===218103808};
a9.prototype.observeDataForCounterfactual=a9.prototype.observeDataForCounterfactual;a9.prototype.observeDataChanged=a9.prototype.observeDataChanged;a9.prototype.observeBasicPalette=a9.prototype.observeBasicPalette;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],a9.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],a9.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],a9.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],a9.prototype,"buttonUpdate",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],a9.prototype,"hasSupplementalText",void 0);_.t([_.C(),_.N("design:type",Object)],a9.prototype,"dismissButtonOverrides",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.N("design:type",Boolean)],a9.prototype,"hasTitle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.N("design:type",Object)],a9.prototype,"forceDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.N("design:type",Object)],a9.prototype,"forceLightTheme",void 0);_.t([_.C(),_.N("design:type",Object)],a9.prototype,"dynamicTextHeight",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Object)],a9.prototype,"hasOverflowButton",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.N("design:type",Object)],a9.prototype,"isInfeedModernization",void 0);_.t([_.m5("data.colorData.basicColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a9.prototype,"observeBasicPalette",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a9.prototype,"observeDataChanged",null);_.t([_.m5("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],a9.prototype,"observeDataForCounterfactual",null);a9=_.t([_.G({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],a9);
_.H(a9,"ytd-banner-promo-renderer",function(){if(MAR!==void 0)return MAR;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return MAR=W},{mode:1});var uRg;var JlN;var cl2;var ma=function(){return _.n.apply(this,arguments)||this};
_.R(ma,_.n);_.t([_.C(),_.N("design:type",Object)],ma.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);ma=_.t([_.G({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],ma);
_.H(ma,"ytd-hashtag-grid-tile-renderer",function(){if(cl2!==void 0)return cl2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return cl2=W},{mode:1});var YL=function(){return _.n.apply(this,arguments)||this};
_.R(YL,_.n);YL.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
YL.prototype.updateRichGridTrendingHashtagsVisibility=function(){var W,O;if(((W=this.data)==null||!W.isExpanded)&&(O=this.data)!=null&&O.tiles){W=this.data.tiles.length;O=W>this.richGridItemsPerRow?this.richGridItemsPerRow+1:W;var b=Math.ceil(W/O);this.fullyVisibleRows=W%O===1&&b===2?1:Math.min(b,2);this.isShowMoreVisible=this.fullyVisibleRows<b}};
YL.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
YL.prototype.updateRichGridTrendingHashtagsVisibility=YL.prototype.updateRichGridTrendingHashtagsVisibility;_.t([_.C(),_.N("design:type",Object)],YL.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Number)],YL.prototype,"fullyVisibleRows",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],YL.prototype,"isShowMoreVisible",void 0);_.t([_.C({selector:_.sr,value:0}),_.N("design:type",Number)],YL.prototype,"richGridItemsPerRow",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],YL.prototype,"ytdReduxBehavior",void 0);_.t([_.m5("data","richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],YL.prototype,"updateRichGridTrendingHashtagsVisibility",null);
YL=_.t([_.G({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],YL);
_.H(YL,"ytd-hashtag-grid-shelf-renderer",function(){if(JlN!==void 0)return JlN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return JlN=W},{mode:1});var Fb1;var ylg;var ED=function(){var W=_.n.apply(this,arguments)||this;W.visibleVideos=[];W.hiddenVideos=[];W.modern=_.e("web_modern_buttons");W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(ED,_.n);_.d=ED.prototype;_.d.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.d.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"}}}};
_.d.dataChanged=function(){var W=this;this.requestElementsPerRow();var O,b;this.currentColorPalette=this.isDarkTheme?(O=this.data)==null?void 0:O.darkColorData:(b=this.data)==null?void 0:b.lightColorData;var T;if((T=this.currentColorPalette)==null?0:T.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.My(this,function(){W.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.d.computeIsFirstFeedItem=function(W){return W};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.d.getCurrentLogo=function(W,O){if(W)return O?W.darkLogoImage:W.lightLogoImage};
_.d.computeTitleStyle=function(W){var O;if((O=this.data)!=null&&O.title&&W&&W.textPrimary!==void 0)return"color:"+_.zF(W.textPrimary)+";"};
_.d.computeSubtitleStyle=function(W){var O;if((O=this.data)!=null&&O.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.zF(W.textSecondary)+";"};
_.d.computeDismissIconStyle=function(W){if(this.data&&this.data.dismissButton&&W&&W.textPrimary!==void 0)return"--yt-button-color:"+_.zF(W.textPrimary)+";"};
_.d.computeOverflowButtonStyle=function(W){if(this.data&&this.data.overflowButton&&W&&W.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.zF(W.textPrimary)+";--yt-spec-icon-active-other:"+_.zF(W.textPrimary)+";"};
_.d.computeBackgroundStyle=function(W){if(W&&this.data){var O="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var b=_.jE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);b&&(O+='background-image:url("'+b+'");')}W.backgroundColor!==void 0&&(O+="background-color:"+_.C_(W.backgroundColor)+";");return O}};
_.d.computeButton=function(){var W,O=Object.assign({},_.P((W=this.data)==null?void 0:W.showMoreButton,_.s2));if(this.modern&&O){O.style="STYLE_MONO_OUTLINE";var b;if(W=(b=this.currentColorPalette)==null?void 0:b.textPrimary)O.colorData={basicColorPaletteData:{foregroundTitleColor:W,borderColor:W}}}return O};
_.d.shouldShowBottomButton=function(W,O){return!(W==null?0:W.header)&&!(W==null||!W.primaryButton)&&O<3};
_.d.checkExpanded=function(W){this.isExpanded=W&&W.content?this.hiddenVideos.length===0:!0};
_.d.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.d.getLogoHeight=function(W){return this.logoWithPadding(W)?"26":"20"};
_.d.getLogoImageId=function(W){return this.logoWithPadding(W)?"logo-image-with-padding":"logo-image"};
_.d.computeHasSectionHeader=function(W){return!!W.header};
_.d.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var W;if((W=this.data.primaryButton)==null?0:W.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 O;((O=this.data.dismissButton)==null?0:O.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var b,T;((b=this.data)==null?0:(T=b.primaryButton)==null?0:T.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.d.setVisibleVideos=function(W){if(this.data&&this.data.content)if(this.data.content.length){var O=this.data.content.length;this.data.header?W?(this.visibleVideos=this.data.content.slice(0,Math.min(O,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(O,this.slimItemsPerRow),O)):(this.visibleVideos=this.data.content.slice(0,Math.min(O,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(O,this.elementsPerRow),O)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(O,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(O,this.elementsPerRow),O)):(this.visibleVideos=this.data.content.slice(0,Math.min(O,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(O,this.elementsPerRow-1),O))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.d.setHasMovieRenderer=function(){var W;if((W=this.data)!=null&&W.content){var O;this.hasMovieRenderer=!!_.P((O=this.data)==null?void 0:O.content[0],_.l8H)}else this.hasMovieRenderer=!1};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
_.d.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var W=_.S(this.hiddenMediaRenderers),O=W.next();!O.done;O=W.next())O.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(W=_.Q(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&W.focus()}};
_.d.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.d.logoWithPadding=function(W){var O,b,T;return(W=(O=this.getCurrentLogo(W,this.isDarkTheme))==null?void 0:(b=O.thumbnails)==null?void 0:(T=b[0])==null?void 0:T.height)&&W%31===0?!0:!1};
_.d.onUpdateElementsPerRowAction=function(W,O,b){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W);b&&this.slimItemsPerRow!==b&&(this.slimItemsPerRow=b)};
ED.prototype.slimItemsPerRowChanged=ED.prototype.slimItemsPerRowChanged;ED.prototype.elementsPerRowChanged=ED.prototype.elementsPerRowChanged;ED.prototype.dataChanged=ED.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],ED.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ED.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ED.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ED.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ED.prototype,"currentColorPalette",void 0);_.t([_.C(),_.N("design:type",Array)],ED.prototype,"visibleVideos",void 0);_.t([_.C(),_.N("design:type",Array)],ED.prototype,"hiddenVideos",void 0);
_.t([_.C(),_.N("design:type",Object)],ED.prototype,"primaryButton",void 0);_.t([_.C({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],ED.prototype,"elementsPerRow",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ED.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ED.prototype,"isExpanded",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ED.prototype,"largeTitle",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],ED.prototype,"hasMovieRenderer",void 0);_.t([_.C(),_.N("design:type",Number)],ED.prototype,"slimItemsPerRow",void 0);_.t([_.C(),_.N("design:type",Boolean)],ED.prototype,"showLightVideoMetadata",void 0);_.t([_.C(),_.N("design:type",Boolean)],ED.prototype,"showDarkVideoMetadata",void 0);_.t([_.C(),_.N("design:type",Number)],ED.prototype,"videoMetadataColor",void 0);
_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],ED.prototype,"miniMode",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],ED.prototype,"isFirstFeedItem",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.N("design:type",Boolean)],ED.prototype,"hasSectionHeader",void 0);
_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],ED.prototype,"roundedContainer",void 0);_.t([_.wi("#visible-video-container ytd-rich-grid-media"),_.N("design:type",Array)],ED.prototype,"visibleMediaRenderers",void 0);_.t([_.wi("#hidden-video-container ytd-rich-grid-media"),_.N("design:type",Array)],ED.prototype,"hiddenMediaRenderers",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ED.prototype,"modern",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ED.prototype,"dataChanged",null);_.t([_.m5("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ED.prototype,"elementsPerRowChanged",null);_.t([_.m5("slimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ED.prototype,"slimItemsPerRowChanged",null);
ED=_.t([_.G({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],ED);
_.H(ED,"ytd-brand-video-shelf-renderer",function(){if(ylg!==void 0)return ylg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ylg=W},{mode:1});var Wvg;var wz=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(wz,_.n);_.d=wz.prototype;_.d.attached=function(){var W=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",W);this.onDarkModeToggledAction(W)};
_.d.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"}}}};
_.d.dataChanged=function(){this.requestElementsPerRow();var W,O;this.currentColorPalette=this.isDarkTheme?(W=this.data)==null?void 0:W.darkColorData:(O=this.data)==null?void 0:O.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.d.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.d.computeIsFirstFeedItem=function(W){return W};
_.d.onDarkModeToggledAction=function(W){W!==this.isDarkTheme&&this.set("isDarkTheme",W);this.data&&(this.currentColorPalette=W?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(W),this.updateButtonPalette())};
_.d.shouldShowThumbnailInMetadata=function(W){return W<=1};
_.d.computeVideoMetadataColor=function(){if(this.data){var W;if((W=this.currentColorPalette)==null?0:W.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.d.computeTitleStyle=function(W){var O;if((O=this.data)!=null&&O.title&&W&&W.textPrimary!==void 0)return"color:"+_.zF(W.textPrimary)+";"};
_.d.computeSubtitleStyle=function(W){var O;if((O=this.data)!=null&&O.subtitle&&W&&W.textSecondary!==void 0)return"color:"+_.zF(W.textSecondary)+";"};
_.d.computeOverflowButtonStyle=function(W){var O;if(this.data&&this.data.overflowButton&&(W==null?0:(O=W.dismissButtonColorData)==null?0:O.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.zF(W.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.zF(W.dismissButtonColorData.foregroundTitleColor)+";"};
_.d.computeBackgroundStyle=function(W){if(W&&this.data){var O="";W.backgroundColor!==void 0&&(O+="background-color:"+_.C_(W.backgroundColor)+";");return O}};
_.d.computeHasOverflowButton=function(W){return!!W.overflowButton};
_.d.updateButtonPalette=function(){if(this.data){var W;if((W=this.data.primaryButton)==null?0:W.buttonRenderer){var O;if((O=this.currentColorPalette)==null?0:O.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var b;((b=this.currentColorPalette)==null?0:b.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
_.d.updateTitleSpec=function(){var W;(W=this.data)!=null&&W.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")};
_.d.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
wz.prototype.elementsPerRowChanged=wz.prototype.elementsPerRowChanged;wz.prototype.dataChanged=wz.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],wz.prototype,"ytdDismissibleItemBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],wz.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],wz.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wz.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],wz.prototype,"currentColorPalette",void 0);_.t([_.C(),_.N("design:type",Object)],wz.prototype,"primaryButton",void 0);
_.t([_.C({reflectToAttribute:!0,value:3}),_.N("design:type",Number)],wz.prototype,"elementsPerRow",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],wz.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],wz.prototype,"titleSize",void 0);_.t([_.C(),_.N("design:type",Number)],wz.prototype,"videoMetadataColor",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],wz.prototype,"miniMode",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.N("design:type",Boolean)],wz.prototype,"isFirstFeedItem",void 0);_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],wz.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.N("design:type",Boolean)],wz.prototype,"hasOverflowButton",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wz.prototype,"dataChanged",null);_.t([_.m5("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wz.prototype,"elementsPerRowChanged",null);wz=_.t([_.G({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],wz);
_.H(wz,"ytd-brand-video-singleton-renderer",function(){if(Wvg!==void 0)return Wvg;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Wvg=W},{mode:_.Lb("kevlar_poly_si_batch_j070")?1:2});var Oy9;var iyZ=_.J1(function(W){var O=W.data;return _.E(_.uj,{data:function(){return O().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(O().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var b=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":b=88;break a;default:b=88}return b},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return O().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"fi"),jgD=_.J1(function(W){var O=W.metadataRow;
var b=W.delimiter;return _.E(_.pv,{each:function(){return O().textParts||[]},
keyBy:"INDEX"},function(T,L){return _.E(_.TT,null,_.E(_.uw,{text:T,noWrap:!0,userInput:!0}),_.E(by9,{delimiter:b,max:function(){return O().textParts.length},
index:L}))})},"gi"),by9=_.J1(function(W){var O=W.delimiter;
var b=W.max;var T=W.index;return _.E(_.U,{cond:function(){return(O==null?void 0:O())&&b()-1>T()},
then:function(){return _.E("span",null,O)}})},"hi"),T2g=_.J1(function(W){var O=W.data;
W={};return _.E("yt-profile-page-header-information-view-model",{class:_.YS("profile-page-header-information-view-model-wiz",(W["profile-page-header-information-view-model-wiz--mobile"]=!1,W))},_.E(_.U,{cond:function(){return O().onTap},
then:function(){return _.E(_.jf,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.xy(O().onTap)}},_.E(_.R4,{data:function(){return O().thumbnail}},{profilePageHeaderThumbnailViewModel:iyZ}))},
else:function(){return _.E("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.E(_.R4,{data:function(){return O().thumbnail}},{profilePageHeaderThumbnailViewModel:iyZ}))}}),_.E("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.E(_.U,{cond:function(){return O().onTap},
then:function(){return _.E(_.R4,{data:function(){return O().title}},{profilePageHeaderTitleViewModel:function(b){var T=b.data;
return _.E(_.jf,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.xy(T().onTap)}},_.E(_.uw,{text:function(){return T().title}}))}})},
else:function(){return _.E(_.R4,{data:function(){return O().title}},{profilePageHeaderTitleViewModel:function(b){var T=b.data;
return _.E(_.uw,{text:function(){return T().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.E(_.R4,{data:function(){return O().metadata}},{profilePageHeaderMetadataViewModel:function(b){var T=b.data;
return _.E(_.U,{cond:function(){return T().metadataRows},
then:function(L){return _.E("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.E(_.pv,{each:L,keyBy:"INDEX"},function(h,Z){return _.E(_.TT,null,_.E(jgD,{metadataRow:h,delimiter:" \u2022 "}),_.E(by9,{delimiter:" \u2022 ",max:function(){return L().length},
index:Z}))}))}})}})))},"ii");
T2g.idomCompat=!0;_.O1(T2g,"yt-profile-page-header-information-view-model",{props:{data:_.te}});var Af=function(){return _.n.apply(this,arguments)||this};
_.R(Af,_.n);Af.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Af.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Af.prototype,"data",void 0);Af=_.t([_.G({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Af);
_.H(Af,"ytd-effect-pivot-header-view-model",function(){if(Oy9!==void 0)return Oy9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Oy9=
W},{mode:1});var LvR;var X7=function(){return _.n.apply(this,arguments)||this};
_.R(X7,_.n);X7.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],X7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],X7.prototype,"data",void 0);X7=_.t([_.G({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],X7);
_.H(X7,"ytd-source-pivot-header-renderer",function(){if(LvR!==void 0)return LvR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return LvR=W},{mode:1});_.dSU=_.J1(function(W){var O=W.data;W=_.uy();_.GJ(W,function(){return O().rendererContext});
var b=function(){var T;return _.fp((T=O())==null?void 0:T.rendererContext)};
return _.E("content-list-item-view-model",{el:W,class:"ytContentListItemViewModelHost",role:function(){return b()?"listitem":void 0},
tabindex:function(){return b()?0:void 0}},_.E("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.E("div",{class:"ytContentListItemViewModelImageContainer"},_.E(_.U,{cond:function(){return O().image},
then:function(T){return _.E(_.uj,{data:T,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.E(_.R4,{data:function(){var T;
return(T=O())==null?void 0:T.avatar}},{avatarViewModel:_.KF})),_.E("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.E("div",{class:"ytContentListItemViewModelTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytContentListItemViewModelMetadata"},_.E(_.R4,{data:function(){return O().metadata}},{contentMetadataViewModel:function(T){return _.E(_.Arw,{data:T.data,
layout:1})}})))),_.E("div",{class:"ytContentListItemViewModelActionButton"},_.E(_.R4,{data:function(){var T;
return(T=O())==null?void 0:T.actionButton}},{buttonViewModel:_.DO,
toggleButtonViewModel:_.gt})))},"ji");_.O1(_.J1(function(W){var O={},b={},T={},L={};return _.E("yt-card-view-model",{class:_.YS("ytCardViewModelHost",W.className,(O.ytCardViewModelOutline=function(){return W.data().cardStyle==="CARD_STYLE_OUTLINE"},O),(b.ytCardViewModelRaised=function(){return W.data().cardStyle==="CARD_STYLE_RAISED"||W.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},b),(T.ytCardViewModelTonal=function(){return W.data().cardStyle==="CARD_STYLE_TONAL"},T),(L.ytCardViewModelInverted=function(){return W.data().cardStyle===
"CARD_STYLE_INVERSE"},L))},_.E(_.R4,{data:function(){return W.data().background}},{cinematicContainerViewModel:function(h){return _.E(_.jSN,{data:h.data})}}),_.E("div",{class:"ytCardViewModelContentWrapper"},_.E(_.R4,{data:function(){return W.data().content}},{contentListItemViewModel:function(h){return _.E(_.dSU,{data:h.data})}})),_.E(_.R4,{data:function(){return W.data().dismissAction}},{buttonViewModel:function(h){return _.E(_.DO,{data:h.data})}}))},"ki"),"yt-card-view-model",{props:{data:_.te,
className:_.te}});_.O1(_.J1(function(W){var O=function(){return _.P(W.data().flowRoot,x_N)};
_.kX(function(){var b=O(),T=function(){},L=function(){};
if(b){var h,Z,a=(Z=_.P((h=b.steps)==null?void 0:h[0],_.cU1))==null?void 0:Z.stepId;Kb5(b,a||"");T=gWU(b);L=oW7(b)}_.so(function(){T();T=function(){};
L();L=function(){}})});
return _.E("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.E(_.esq,{contentId:function(){return W.data().contentId}},function(){return _.E("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.E(_.U,{cond:O,
then:function(b){return _.E(_.nbk,{data:b})}}))}))},"li"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.te}});_.O1(_.J1(function(){return _.E("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.E("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.E("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.E(_.vX2,null)),_.E(_.Plw,{data:{rows:1},isExploreHub:!0}))},"mi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.O1(_.J1(function(W){var O=W.data;var b=W.standardUnitMinWidth;W=_.uy();var T=_.S((0,_.vez)(O)),L=T.next().value,h=T.next().value,Z=function(){var m,w=(m=L())==null?void 0:m.contents;return w==null||w.length===0},a=function(){h(Object.assign({},L(),{contents:[]}))};
_.iO(W,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var m=_.P(O().chipsShelf,znU);if(m!=null&&m!=null&&m.autoselectChipOnVisible){var w,A,X=_.P(m==null?void 0:(w=m.contents)==null?void 0:w[(A=m.autoselectedChipIndex)!=null?A:0],_.xV);X&&X.tapCommand&&_.nb(X.tapCommand)}}});
return _.E("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:W},_.E(_.esq,{contentId:function(){return O().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.E("div",null,_.E("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.E(_.R4,{data:function(){return O().header}},{sectionHeaderViewModel:function(m){return _.E(_.j9,{data:m.data,
disableHorizontalPadding:!0})}})),_.E("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.E(_.R4,{data:function(){return O().chipsShelf}},{chipsShelfViewModel:function(m){return _.E(_.vjv,{data:m.data,
callback:a,enableSingleChipSelection:!0})}})),_.E("div",null,_.E(_.U,{cond:Z,
then:function(){return _.E("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.E(_.Plw,{data:{rows:1},isExploreHub:!0}))}}),_.E(_.R4,{data:function(){var m;
return(m=L())==null?void 0:m.contents}},{richShelfRenderer:function(m){return _.E(_.Kk9,{data:m.data,
isInnerShelf:!0,standardUnitMinWidth:b})}})))}))},"ni"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.te,
standardUnitMinWidth:_.te}});var UD=function(){return _.n.apply(this,arguments)||this};
_.R(UD,_.n);
UD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
UD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.t([_.D(_.sh),_.N("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],UD.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],UD.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Number)],UD.prototype,"standardUnitMinWidth",void 0);UD=_.t([_.G({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],UD);
_.H(UD,"ytd-rich-section-renderer",function(){if(Fb1!==void 0)return Fb1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Fb1=W},{mode:_.Lb("kevlar_poly_si_batch_j029")?
1:2});_.O1(_.YV8,"yt-profile-identity-info-view-model",{props:{data:_.te,hideDivider:_.te}});_.O1(_.mtf,"yt-page-header-view-model",{props:{data:_.te,noPadding:_.te,enableBanner:_.te,cinematicContainerTopbarOffset:_.te,allowCinematicContainerOverflow:_.te,displayAsSidebar:_.te,displayAsPanel:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=function(){var L;return(L=O().numColumns)!=null?L:2},T=function(){return b()>1?3:2};
W={};return _.E("ytd-rich-grid-group",{class:_.YS("ytdRichGridGroupHost",(W.ytdRichGridGroupHostFirstColumn=function(){return O().colIndex===0},W)),
style:_.eE({"--ytd-rich-grid-group-num-columns":b,"--ytd-rich-grid-items-per-group":T})},_.E("div",{class:"ytdRichGridGroupContents"},_.E(_.R4,{data:function(){var L;return(L=O().contents)==null?void 0:L.slice(0,T())}},{richItemRenderer:function(L){return _.E(_.p6L,{data:L.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"oi"),"ytd-rich-grid-group",{props:{data:_.te}});var la=function(){var W=_.n.apply(this,arguments)||this;W.resizeOnObserverInit=!1;W.isInlinePreviewDisabled=_.e("web_disable_inline_preview");W.disableStickyFilterBar=!1;W.transparentBackgroundChipsBar=!1;W.hideChipsBar=!1;W.isWatchDefaultLayout=!0;W.continuationShowButton=!1;W.rowReducedHorizontalMargin=!1;W.useCompactList=!1;W.manualDownloadsPresent=!1;W.smartDownloadsPresent=!1;W.shouldRenderDownloadsBanner=!1;W.hasOptedIntoSmartDownloads=!1;W.elementsPerRow=4;W.typographyBump=!1;W.showGnomeContents=
!1;W.showExploreHubContents=!1;W.slimItemsPerRow=1;W.pageLoadingFromNavigation=!1;W.loggingRefactor=_.e("kevlar_rich_grid_logging_fix");W.resizeObserver=null;W.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"};W.rendererToTagNameMap=
new Map(Object.entries(W.contentMapping()).map(function(O){var b=_.S(O);O=b.next().value;b=b.next().value;return[O,b.component]}));
W.insertedContent=new Map;return W};
_.R(la,_.n);_.d=la.prototype;_.d.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var W=_.S(_.Q(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),O=W.next();!O.done;O=W.next())O.value.useCompactList=this.useCompactList};
_.d.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var W=_.S(_.Q(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),O=W.next();!O.done;O=W.next())O=O.value,O.sizing=this.sizing,O.typographyBump=this.typographyBump};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.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]]"}}}};
_.d.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.d.attached=function(){document.addEventListener("yt-page-type-changed",_.Ii(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.JI(this.resizeObserved,_.Lu("rich_grid_resize_delay_ms",50),this)};
_.d.detached=function(){var W;(W=this.resizeObserver)==null||W.disconnect();document.removeEventListener("yt-page-type-changed",_.Ii(this,this.onPageChange))};
_.d.insertRichSection=function(W){var O=W.richItemTargetId;W=W.richSectionRendererToInsert;O&&W&&(this.insertedContent.set(O,W),this.reflowContent())};
_.d.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.d.computeIsInlinePreviewEnabled=function(W,O,b){return _.e("web_disable_inline_preview")?!1:!b&&_.fIU({miniplayerIsActive:W,miniplayerPlaybackState:O})};
_.d.computeSizing=function(){var W=_.WW8(this.data);if(W||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return W?this.useCompactList?"COMPACT":W:this.miniMode?"COMPACT":_.e("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.d.updateItemMinAndMaxWidth=function(){var W=_.Lu("rich_grid_max_item_width",500);W>0&&_.Sl(this.hostElement,{"--ytd-rich-grid-item-max-width":W+"px"});var O;W=this.getRichItemMinWidth((O=this.hostElement)==null?void 0:O.clientWidth);W>0&&_.Sl(this.hostElement,{"--ytd-rich-grid-item-min-width":W+"px"})};
_.d.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.d.resizeObserved=function(){_.TU(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.d.navigateBackToHome=function(){_.e("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var W=_.iq().resolve(_.cs).isOnWatch(),O,b=((O=_.Y1(location.pathname))==null?void 0:O.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(b)||W)&&this.gnomeContents&&_.e("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);W&&this.exploreHubContents&&_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.uv().dispatch(_.Tc({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.d.onPageChange=function(){var W=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.e("disable_chip_select_on_nav")||_.TU(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.sF.addJob(function(){W.pageLoadingFromNavigation=!1;_.e("disable_chip_select_on_nav")&&_.e("h5_reset_cache_and_filter_before_update_masthead")&&W.resetCacheAndIsFilteredFeed();W.setMasthead();W.maybeSetBigYoodle();W.forceRefreshAndLog();W.terminateVideoPreview();_.e("web_hide_gnome_until_user_navigates_back_to_home")&&
(W.dataChanged(),_.My(W,function(){if(W.showGnomeContents){var O=Array.from(_.Q(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(T){T=_.Q(T).querySelector("ytd-rich-shelf-renderer");return!!T&&T.isGnomeShelf()});
if(O){O=O.offsetTop-W.contentsElement.offsetTop;var b=_.iq().resolve(_.cs).getCurrentPage();b&&b.getPageScrollingElement().scrollTo({top:O,behavior:"smooth"})}}}));
_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&(W.dataChanged(),_.My(W,function(){if(W.showExploreHubContents&&!_.e("web_explore_hub_no_scroll")){var O=Array.from(_.Q(W.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(T){return!!T.querySelector("ytd-talk-to-recs-flow-renderer")});
if(O){O=O.offsetTop-W.contentsElement.offsetTop;var b=_.iq().resolve(_.cs).getCurrentPage();b&&b.getPageScrollingElement().scrollTo({top:O,behavior:"smooth"})}}}))},8)):((_.e("web_hide_gnome_until_user_navigates_back_to_home")||_.e("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.d.dataChanged=function(){var W=this,O=_.Lu("web_rich_grid_row_margin",0);O>0&&_.Sl(this.hostElement,{"--ytd-rich-grid-row-margin":O+"px"});_.TU(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.My(this,function(){W.updateRichItemGridPositions();W.contentsElement&&_.Sl(W.hostElement,{"--ytd-rich-grid-content-offset-top":W.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.d.initResizeObserver=function(){var W=this;if(window.ResizeObserver){var O;(O=this.resizeObserver)==null||O.disconnect();var b=!1;this.resizeObserver=new ResizeObserver(function(){if(b){var T;(T=W.resizeObserver)==null||T.disconnect();var L;(L=W.throttledOnResize)==null||L.fire();requestAnimationFrame(function(){var Z;(Z=W.throttledOnResize)==null||Z.fire();W.initResizeObserver()})}else if(b=!0,W.resizeOnObserverInit){var h;
(h=W.throttledOnResize)==null||h.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.d.contentLengthChanged=function(){if(_.e("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.TU(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.updateElementsPerRow=function(){_.TU(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.d.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.d.onRichShelfRendererCollapse=function(W){if(this.shownItems){var O=W.detail;W=this.shownItems.findIndex(function(T){var L,h;return((h=_.P(T==null?void 0:(L=T.richSectionRenderer)==null?void 0:L.content,_.$$$))==null?void 0:h.trackingParams)===O});
var b=W+1;W<0||b>=this.contentsElement.children.length||!this.shownItems[b].richItemRenderer||this.contentsElement.children[b].scrollIntoView({behavior:"smooth",block:"start"})}};
_.d.onSoftReloadPage=function(){this.scrollUpToTop()};
_.d.handleRerenderDownloadsData=function(){_.e("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.d.handlePlaylistRemoveVideosAction=function(W){var O;if(((O=_.P(W,_.Zfv))==null?0:O.setVideoIds)&&this.data&&this.data.contents){W=_.P(W,_.Zfv).setVideoIds;for(O=this.data.contents.length-1;O>=0;){var b=_.P(this.data.contents[O],_.KN);(b=b&&_.P(b.content,_.kV))&&b.setVideoId&&W.includes(b.setVideoId)&&this.splice("data.contents",O,1);O--}this.updateIndices()}};
_.d.updateIndices=function(){if(this.data&&this.data.contents)for(var W=0;W<this.data.contents.length;W++)this.set("data.contents."+W+".richItemRenderer.index",_.VV(String(W+1)))};
_.d.hasTopRowInlinePlayableVideoWithEndorsement=function(W){var O;return!((O=W.slice(0,this.getItemsPerRow()))==null||!O.some(function(b){var T;b=_.P(b==null?void 0:(T=b.richItemRenderer)==null?void 0:T.content,_.r5);var L;return(b==null?void 0:b.inlinePlaybackEndpoint)&&(b==null?void 0:(L=b.thumbnailOverlays)==null?void 0:L.some(function(h){return h.thumbnailOverlayEndorsementRenderer}))}))};
_.d.refreshGridLayoutNew=function(W,O,b,T){var L=T.postsPerRow;var h=T.slimItemsPerRow;var Z=T.gameCardsPerRow;T=T.miniGameCardsPerRow;var a;if((a=this.data)==null||!a.contents||!this.containerWidth)return!1;var m;if((m=this.data.responsiveContainerConfiguration)==null?0:m.responsiveSize){var w=_.tvX(this.data.responsiveContainerConfiguration,this.containerWidth),A;a=_.VU(Object.assign({},w,{standardUnitMinWidth:(A=this.data)==null?void 0:A.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&w.isCompactList)}else a=_.VU({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(w=this.data)==null?void 0:w.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=a.typographyBump;A=!1;if(W||this.elementsPerRow!==a.numItems||this.postsPerRow!==L||this.slimItemsPerRow!==h||this.gameCardsPerRow!==
Z||this.miniGameCardsPerRow!==T||this.gutter!==a.gutter)A=this.elementsPerRow!==a.numItems,this.elementsPerRow=a.numItems,this.postsPerRow=L,this.slimItemsPerRow=h,this.gameCardsPerRow=Z,this.miniGameCardsPerRow=T,this.gutter=a.gutter,this.itemWidth=a.itemWidth,this.reflowContent(O),_.Sl(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(b);this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:a.maxContainerWidth}));return A};
_.d.refreshGridLayout=function(W,O){var b,T=(b=this.hostElement)==null?void 0:b.clientWidth;this.containerWidth=this.adjustRichGridWidth(T,!0);var L;if((L=this.data)==null||!L.contents||!this.containerWidth)return W&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.e("rg_pending_reflow_ks")&&(W=!0,this.pendingForceReflow=!1);b=this.getRichItemMinWidth(T);var h=this.isShortsPanel?146:194,Z=this.getMiniGameCardMinWidth(),a=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
T=b=this.calcElementsPerRow(b,a);(L=b<=3&&this.miniModeAllowed())&&(b=this.calcElementsPerRow(240,4));var m=this.calcMaxSlimElementsPerRow(b,a,this.isDefaultGrid);a=this.calcElementsPerRow(h,m);var w=this.calcElementsPerRow(this.isCompactGrid?h:154,m);h=this.calcElementsPerRow(this.isCompactGrid?h:Z,m);Z=!1;if(this.sizing)return this.refreshGridLayoutNew(W,O,L,{postsPerRow:T,slimItemsPerRow:a,gameCardsPerRow:w,miniGameCardsPerRow:h});if(W||this.elementsPerRow!==b||this.postsPerRow!==T||this.slimItemsPerRow!==
a||this.gameCardsPerRow!==w||this.miniGameCardsPerRow!==h)Z=this.elementsPerRow!==b,this.elementsPerRow=b,this.postsPerRow=T,this.slimItemsPerRow=a,this.gameCardsPerRow=w,this.miniGameCardsPerRow=h,this.reflowContent(O),this.updateElementsPerRow(),_.Sl(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)&&_.Sl(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(L);_.TU(this.hostElement,"yt-rich-grid-layout-refreshed");return Z};
_.d.getRichItemMinWidth=function(W){var O=_.Lu("rich_grid_min_item_width",310);if(!_.e("kevlar_disable_min_width_override")){var b,T;O=(T=(b=this.data)==null?void 0:b.minItemWidth)!=null?T:O}return O+_.NS8(W)};
_.d.calcMaxSlimElementsPerRow=function(W,O,b){return(b===void 0?0:b)?W===1?2:W%2===0?_.e("web_shorts_2_by_3_reduce_items_per_row")&&W>=4?W/2*3-1:W/2*3:_.e("web_shorts_2_by_3_reduce_items_per_row")&&W>=3?W+1:W+2:O*2};
_.d.adjustRichGridWidth=function(W,O){var b=_.e("disable_rich_grid_guide_compensation");if(!this.isWatch&&!b){b=_.iq().resolve(_.OT(_.zl));var T=b==null?void 0:b.guideElement;if(!(!b||b.getData()||T!=null&&T.opened||b.getMiniGuideVisible()))if(b.canFitPersistentGuide(W)&&b.getGuideExpandsAutomatically()){var L,h,Z=Number((L=window.getComputedStyle(this.hostElement))==null?void 0:(h=L.getPropertyValue("--app-drawer-width"))==null?void 0:h.replace("px",""));W-=Z||0}else if(b.canFitMiniGuide(W)){var a;
L=Number((Z=window.getComputedStyle(this.hostElement))==null?void 0:(a=Z.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:a.replace("px",""));W-=L||0}}W>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(W-=O?32:48));return W};
_.d.calcElementsPerRow=function(W,O){var b=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),T=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((b+T)/(W+T))||1,O)};
_.d.reflowContent=function(W){var O=this;if(!this.isReflowing){this.isReflowing=!0;var b,T,L=!!((b=this.data)==null?0:(T=b.contents)==null?0:T.some(function(p){return _.P(p,_.bU)}));
b=this.getItemsPerRow();var h;T=(h=this.data)==null?void 0:h.reflowOptions;W&&(_.Bg("rgr_s"),_.My(this,function(){_.Bg("rgr_nrf")}));
W={};(h=_.Q(this.hostElement).querySelector("#contents"))&&(W={contentElement:h,rendererToTagNameMap:this.rendererToTagNameMap});h=(h=this.data.contents)?h.slice():[];var Z=(_.e("web_hide_gnome_behind_feed_filter_chip")||_.e("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,a=_.e("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,m=-1,w=-1;if(this.isHomePage&&a){for(a=0;a<h.length;a++){var A=void 0,X=void 0;_.P((A=h[a])==null?void 0:
(X=A.richSectionRenderer)==null?void 0:X.content,D_5)&&(w=a)}w>-1&&(this.exploreHubContents=h.splice(w,1))}if(this.isHomePage&&Z){for(w=0;w<h.length;w++)X=A=void 0,(a=_.P((A=h[w])==null?void 0:(X=A.richSectionRenderer)==null?void 0:X.content,_.$$$))&&Z&&(X=A=void 0,a=_.P((A=a)==null?void 0:(X=A.contents)==null?void 0:X[0],_.KN),A=void 0,_.P((A=a)==null?void 0:A.content,_.N7n)&&(m=w));m>-1&&(this.gnomeContents=h.splice(m,1))}var l=eng(h,b,L,T,this.getRichGridStyle(),W,this.insertedContent);L=function(){O.shownItems=
l;O.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(l),_.My(this,L)):L()}};
_.d.getFirstRowItems=function(W){for(var O=[],b=0;b<W.length;b++){var T=void 0,L=void 0,h=void 0,Z=void 0,a=void 0,m=void 0;if(((T=W[b])==null?void 0:(L=T.richItemRenderer)==null?void 0:L.rowIndex)===0||((h=W[b])==null?void 0:(Z=h.richGroupRenderer)==null?void 0:Z.rowIndex)===0||((a=W[b])==null?void 0:(m=a.richSectionRenderer)==null?void 0:m.rowIndex)===0)O.push(W[b]);else break}return O};
_.d.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.d.handleChipCloudChipSelectAction=function(W,O){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.e("web_hide_gnome_behind_feed_filter_chip")&&(O?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.d.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.e("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.d.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.e("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.d.terminateVideoPreview=function(){_.TU(this.hostElement,"yt-terminate-video-preview-action")};
_.d.updateRichItemGridPositions=function(){var W={gridData:{gridColumnCount:this.elementsPerRow}},O;if((O=this.data)==null?0:O.trackingParams)this.loggingRefactor?_.A4().stateChanged(this.data.trackingParams,W):(O=_.Bb())&&_.Mk(O,_.Pi(this.data.trackingParams),W);_.TU(this.hostElement,"ytd-rich-item-index-update-action")};
_.d.miniModeAllowed=function(){return _.e("disable_channels_mini_mode")?!1:this.isChannelPage};
_.d.getMiniGameCardMinWidth=function(){return 154};
_.d.updateMiniMode=function(W){this.miniMode=this.miniModeAllowed()&&W;this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_RICH_GRID_MINI_MODE",payload:W}))};
_.d.isCurrentPage=function(){return location.pathname===this.pagePath};
_.d.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var W=_.iq().resolve(_.cs).getCurrentPage();W&&W.setScrollTop(0)}};
_.d.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.d.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.d.maybeSetBigYoodle=function(){var W,O=(W=this.data)==null?void 0:W.bigYoodle;this.bigYoodleData!==O&&(this.bigYoodleData=O)};
_.d.setMasthead=function(){var W;((W=this.data)==null?0:W.masthead)?this.mastheadData=this.data.masthead:_.e("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.d.getRichGridStyle=function(){var W,O;return(O=(W=this.data)==null?void 0:W.style)!=null?O:"RICH_GRID_STYLE_UNKNOWN"};
_.d.onIsShortsGridChange=function(){var W=this.ytdReduxBehavior,O=W.dispatch,b=this.getRichGridStyle();O.call(W,_.Tc({type:"SET_RICH_GRID_STYLE",payload:b}))};
_.Jq.Object.defineProperties(la.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var W=_.iq().resolve(_.cs).getCurrentPage(),O,b,T;return(((O=this.data)==null?void 0:O.targetId)==="browse-feedFEsfv_audio_pivot"||_.e("web_enable_channel_pivot_panel")&&((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_channel_pivot"||_.e("web_enable_effect_pivot_panel")&&((T=this.data)==null?void 0:T.targetId)==="browse-feedFEsfv_effect_pivot")&&(W==null?void 0:W.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.e("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 W;return!((W=this.data)==null?0:W.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.iq().resolve(_.cs).getCurrentPage())==null?void 0:W.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var W;return((W=_.iq().resolve(_.cs).getCurrentPage())==null?void 0:W.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var W;return this.hideChipsBar||(((W=this.data)==null?void 0:W.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.e("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.targetId)||"")==="watch-next-feed"&&!_.e("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?0:W.enableContentSpecificAspectRatio)||((O=this.data)==null?0:(b=O.responsiveContainerConfiguration)==null?0:b.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.Lu("web_continuation_handler_margin",0):0}}});
la.prototype.onIsShortsGridChange=la.prototype.onIsShortsGridChange;la.prototype.onReloadContinuationFinish=la.prototype.onReloadContinuationFinish;la.prototype.reflowContent=la.prototype.reflowContent;la.prototype.handleRerenderDownloadsData=la.prototype.handleRerenderDownloadsData;la.prototype.onRichShelfRendererCollapse=la.prototype.onRichShelfRendererCollapse;la.prototype.onRequestElementsPerRow=la.prototype.onRequestElementsPerRow;la.prototype.contentLengthChanged=la.prototype.contentLengthChanged;
la.prototype.dataChanged=la.prototype.dataChanged;la.prototype.onSizingChange=la.prototype.onSizingChange;la.prototype.onUseCompactListChange=la.prototype.onUseCompactListChange;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],la.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],la.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],la.prototype,"ironResizableBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],la.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],la.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],la.prototype,"componentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],la.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],la.prototype,"miniMode",void 0);_.t([_.C({value:[]}),_.N("design:type",Array)],la.prototype,"shownItems",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],la.prototype,"isReflowing",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],la.prototype,"isFilteredFeed",void 0);_.t([_.C({selector:_.ZNQ}),_.N("design:type",Boolean)],la.prototype,"guideIsExpanded",void 0);
_.t([_.C({selectorArgs:["entitySelectorType"],selector:function(W,O){if(_.e("kevlar_modern_downloads_page")&&O&&O!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(O){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var b=W.entities;O=_.vS(b);var T=_.gm(b),L=_.oVT(W),h=_.gVO(W);W=_.QPX(W);var Z=_.iN1(b),a=_.eK(O);b=_.oJ(b);return _.zdQ(O,T,Z,L,h,a,b,W);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return O=_.vS(W.entities),_.qaQ(O);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return O=
_.FQX(W.entities),_.nch(O);default:_.z5(new _.pu("Error: entitySelectorType defined but not matched in selector.",W,O))}}}),
_.N("design:type",Object)],la.prototype,"entityDrivenRichGridData",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"resizeOnObserverInit",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"bigYoodleData",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"mastheadData",void 0);_.t([_.C(),_.N("design:type",Boolean)],la.prototype,"isInlinePreviewDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"disableStickyFilterBar",void 0);
_.t([_.C(),_.N("design:type",Object)],la.prototype,"transparentBackgroundChipsBar",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"hideChipsBar",void 0);_.t([_.C(),_.N("design:type",Object)],la.prototype,"isWatchDefaultLayout",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"continuationShowButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"rowReducedHorizontalMargin",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"useCompactList",void 0);_.t([_.C({selector:function(W){return _.gm(W.entities).length>0}}),
_.N("design:type",Object)],la.prototype,"manualDownloadsPresent",void 0);_.t([_.C({selector:function(W){return _.vS(W.entities).length>0}}),
_.N("design:type",Object)],la.prototype,"smartDownloadsPresent",void 0);_.t([_.C({selector:_.gVO}),_.N("design:type",Object)],la.prototype,"shouldRenderDownloadsBanner",void 0);_.t([_.C({selector:_.oVT}),_.N("design:type",Object)],la.prototype,"hasOptedIntoSmartDownloads",void 0);_.t([_.m5("useCompactList"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onUseCompactListChange",null);
_.t([_.m5("sizing","typographyBump"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onSizingChange",null);_.t([_.C({selector:_.EVX}),_.N("design:type",Number)],la.prototype,"miniplayerPlaybackState",void 0);_.t([_.C({selector:_.BS}),_.N("design:type",Boolean)],la.prototype,"miniplayerIsActive",void 0);
_.t([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],la.prototype,"isInlinePreviewEnabled",void 0);_.t([_.C({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.N("design:type",String)],la.prototype,"sizing",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],la.prototype,"elementsPerRow",void 0);
_.t([_.C(),_.N("design:type",Object)],la.prototype,"typographyBump",void 0);_.t([_.C(),_.N("design:type",Number)],la.prototype,"itemWidth",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],la.prototype,"headerElement",void 0);_.t([_.El("#contents"),_.N("design:type",HTMLElement)],la.prototype,"contentsElement",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"dataChanged",null);
_.t([_.Ul("data.contents.length"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"contentLengthChanged",null);_.t([_.ai("yt-request-elements-per-row"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onRequestElementsPerRow",null);
_.t([_.ai("yt-rich-shelf-renderer-collapse"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],la.prototype,"onRichShelfRendererCollapse",null);_.t([_.Ul("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"handleRerenderDownloadsData",null);
_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],la.prototype,"entitySelectorType",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isSub",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isWatch",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isShortsPanel",null);_.t([_.C({reflectToAttribute:!0}),_.x("isWatch"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"reducedTopMargin",null);_.t([_.C({reflectToAttribute:!0}),_.x("data","isWatch","isWatchDefaultLayout"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"noTopMargin",null);
_.t([_.C({reflectToAttribute:!0}),_.x("isInlinePreviewEnabled","shownItems"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"topRowEndorsement",null);_.t([_.x("data.header"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"hideHeader",null);_.t([_.ai("yt-rich-grid-reflow"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],la.prototype,"reflowContent",null);
_.t([_.ai("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onReloadContinuationFinish",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isSlimGrid",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isShortsGrid",null);
_.t([_.x("data","isSlimGrid","isShortsGrid"),_.C(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"noRichItemGutterMargins",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isShortsGridSlim",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isCompactGrid",null);
_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"isDefaultGrid",null);_.t([_.x("data.targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"hideChipsBarOnHome",null);_.t([_.x("data.targetId"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"hideChipsBarOnWatch",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],la.prototype,"onIsShortsGridChange",null);_.t([_.x("data.enableContentSpecificAspectRatio"),_.C(),_.N("design:type",Boolean),_.N("design:paramtypes",[])],la.prototype,"force16By9ThumbnailAspectRatio",null);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],la.prototype,"continuationTriggerOffset",null);la=_.t([_.G({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],la);
_.H(la,"ytd-rich-grid-renderer",function(){if(uRg!==void 0)return uRg;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return uRg=W},{mode:2});var h1k=_.J1(function(W){var O=W.thumbsUp;W=W.thumbsDown;var b=_.S(_.wu(!1,void 0,"OxPsH")),T=b.next().value,L=b.next().value;b=_.S(_.wu(!1,void 0,"V5vWne"));var h=b.next().value,Z=b.next().value;return _.E("div",{class:"ytwThumbsUpDownThumbs"},_.E(_.gt,{data:O,onToggle:function(a){L(a);h()&&Z(!1)},
buttonShapeOverrides:function(){return{toggled:T()}}}),_.E(_.gt,{data:W,
onToggle:function(a){Z(a);T()&&L(!1)},
buttonShapeOverrides:function(){return{toggled:h()}}}))},"pi");
h1k.idomCompat=!0;var Zy8=_.J1(function(W){var O=function(){return W.data().pendingStateEntityKey||""},b=_.wt(_.Q08,O),T=function(){var L;
if(!(L=W.disabled())){var h;L=!((h=b())==null||!h.isPendingResponse)}return L};
return _.E("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.E(_.pv,{each:function(){return W.data().chipData||[]},
keyBy:"REFERENCE"},function(L){return _.E(SGP,{data:L,disabled:T,pendingStateKey:O,onError:W.onError})}))},"qi"),SGP=_.J1(function(W){var O=_.uy(),b=_.S(_.wu(!0,void 0,"HBREAe")),T=b.next().value,L=b.next().value,h=function(){return W.data().text.content},Z=_.XL(function(a){var m,w,A,X,l,p,K,k;
return _.I(function(r){switch(r.nextAddress){case 1:a.stopPropagation();if(W.disabled())return r.return();w=String(Math.floor(((m=_.ZO())==null?void 0:m.getCurrentTime())||0)*1E3);A="youchat-"+Date.now();X=function(){_.zH(W.data().onClick||{});var q={continuationCommand:{token:W.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},f={inputComposerFormData:{clientMessageId:A,playerOffsetMs:w}};return new Promise(function(M,V){_.zH(q,{form:{formData:f},commandController:{onSuccess:function(jQ,
y){M(y)},
onServerError:function(jQ,y){V(y.error)}}})})};
l=_.kQ5(W.pendingStateKey());l(!0);_.w8N("#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");L(!1);_.LI(r,2);return _.Y(r,X(),4);case 4:_.H3(r,3);break;case 2:p=_.ID(r),(k=(K=W).onError)==null||k.call(K,p);case 3:l(!1),_.aD(r)}})});
return _.E(_.U,{cond:T,then:function(){return _.E("div",{class:"ytwYouChatChipsDataChipWrapper"},_.E("button",{el:O,class:"ytwYouChatChipsDataChip","data-disabled":W.disabled,"on:click":Z,tabindex:0},h))}})},"ri");var Il2=_.J1(function(W){var O=W.data;return _.E("yt-conversation-resource-view-model",{class:_.YS("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.E(_.U,{cond:function(){var b;return(b=O().conversationResourceData)==null?void 0:b.learningGuideData},
then:function(b){return _.E(_.pv,{each:function(){return b().sectionData||[]}},function(T){return _.E("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.E(_.uw,{text:function(){return T.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.E("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.E(_.uw,{text:function(){return T.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.E(_.uw,{text:function(){return T.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"si");
Il2.idomCompat=!0;var alk=_.J1(function(W){var O=function(){var q;return(q=W.data().text)==null?void 0:q.content},b=function(){var q,f;
return(q=W.data().webData)==null?void 0:(f=q.textResult)==null?void 0:f.content},T=_.iq().resolve(_.VE),L=_.I4(),h=function(){return W.data().chatResponseStyle},Z=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:W.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},a=function(){var q;
return W.data().webData||((q=W.data().text)==null?void 0:q.content)||W.data().videoResultsData||W.data().conversationResourceViewModel},m=function(){var q;
return(q=W.data().videoResultsData)==null?void 0:q.videoShelf},w=function(){var q;
return _.P(((q=W.data().videoResultsData)==null?void 0:q.videoShelf)||{},CgU)},A=function(){var q;
return(q=W.data().webData)==null?void 0:q.sourcesShelf},X=function(){var q;
return _.P(((q=W.data().webData)==null?void 0:q.sourcesShelf)||{},CgU)},l=function(){return _.P(W.data().conversationResourceViewModel||{},nW7)},p=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:W.data().thumbsDownViewModel&&W.data().thumbsUpViewModel},K=function(){return _.P(W.data().thumbsUpViewModel,_.vm)},k=function(){return _.P(W.data().thumbsDownViewModel,_.vm)};
_.oW(function(){requestAnimationFrame(function(){var q;(q=W.shouldAnimateIcon)!=null&&q.call(W)&&s0g(L.lottieEl)})});
var r={};return _.E("you-chat-item-view-model",{class:_.YS("ytwYouChatItemViewModelYouChatItemViewModel",(r.ytwYouChatItemViewModelHostNoPadding=function(){return!1},r)),
"data-target-id":function(){return W.data().id||""}},_.E(_.U,{cond:a,
then:function(){var q={};return _.E("div",{"aria-hidden":"true"},_.E(_.E1,{className:_.YS("ytwYouChatItemViewModelIcon",(q.ytwYouChatItemViewModelRtl=T==="rtl",q.ytwYouChatItemViewModelHidden=function(){return!(W.data().hideIcon||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:a())},q)),
animationName:"YOUCHAT_ICON",data:Z,animationRef:L}))}}),_.E(_.U,{cond:a,
then:function(){var q={};return _.E("div",{class:_.YS("ytwYouChatItemViewModelHost",(q.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},q.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},q.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return h()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},q)),
role:"alert"},_.E(_.U,{cond:O,then:function(f){return _.E(_.kt,{text:f})}}),_.E(_.U,{cond:b,
then:function(f){return _.E(_.kt,{text:f})}}),_.E(_.U,{cond:m,
then:function(){return _.E("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.E(_.oF,{data:w,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.E(_.U,{cond:A,
then:function(){return _.E("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.E(_.oF,{data:X,hasPeek:!0,disableArrows:!1}))}}),_.E(_.U,{cond:l,
then:function(){return _.E(Il2,{data:l})}}),_.E(_.U,{cond:p,
then:function(){return _.E(h1k,{thumbsUp:K,thumbsDown:k})}}))}}),_.E(_.U,{cond:function(){return W.data().chipsData},
then:function(q){return _.E(Zy8,{data:q,disabled:W.pending,onError:W.onError})}}))},"ti");
alk.idomCompat={callbacks:{onError:!0,onSend:!0}};var mSZ=_.J1(function(W){var O=function(){return W.data().choiceSelectedText};
return _.E("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.E(_.U,{cond:O,then:function(){return _.E("div",{class:"ytYouChatUserTurnChoiceSelected"},_.E(_.uw,{text:O}))}}),_.E("div",{class:"ytYouChatUserTurnUserMessage"},function(){return W.data().text}))},"ui");var YG7=_.J1(function(W){var O=_.S((0,_.QXn)(W.data)).next().value;return _.E("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return W.data().targetId||""}},_.E(_.R4,{data:function(){return W.data().header}},{chipBarViewModel:_.Xn7}),_.E(_.R4,{data:function(){return O().contents}},{accordionViewModel:_.F0L,
alertBannerViewModel:_.K01,chatLoadingViewModel:_.gXB,chatUserTurnViewModel:mSZ,learningJourneyLoaderViewModel:_.Miz,lockupViewModel:_.Og,youChatItemViewModel:function(b){return _.E(alk,{data:b.data,pending:!1})}}))},"vi");_.O1(_.J1(function(W){var O=_.S((0,_.QXn)(W.data)).next().value;return _.E("yt-section-list-renderer",{class:_.YS("ytSectionListRendererHost",W.className),"data-target-id":function(){return W.data().targetId||""}},_.E(_.R4,{data:function(){return O().contents}},{itemSectionRenderer:YG7}))},"wi"),"yt-section-list-renderer",{props:{data:_.te,
className:_.Ws}});var ECk;var wpP;var eg=function(){return _.n.apply(this,arguments)||this};
_.R(eg,_.n);_.t([_.C(),_.N("design:type",Object)],eg.prototype,"data",void 0);eg=_.t([_.sl({is:"yt-alert-renderer",disableElementRegistration:!0})],eg);
_.H(eg,"yt-alert-renderer",function(){if(wpP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ECk===void 0&&(ECk=document.createElement("template"));var T=ECk;b.call(O,T.content.cloneNode(!0),W.content.firstChild);wpP=W}W=wpP;return W},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.cAB=function(W,O){var b,T;O=O===void 0?{}:O;var L,h,Z,a,m,w,A,X,l,p,K,k;return _.I(function(r){switch(r.nextAddress){case 1:L=O;h=L.shouldWrap===void 0?!0:L.shouldWrap;Z=L.skipTransitionTimeoutMs===void 0?300:L.skipTransitionTimeoutMs;a=L.beforeTransition;m=L.afterTransition;if(!h||!document.startViewTransition||document.visibilityState==="hidden")return r.return(W());b=window.innerWidth;T=window.innerHeight;w=!1;(A=a)==null||A();_.LI(r,2);X=document.startViewTransition(W);l=setTimeout(function(){X.skipTransition();
w=!0},Z);
return _.Y(r,X.ready,4);case 4:return clearTimeout(l),_.Y(r,X.finished,5);case 5:clearTimeout(l);(p=m)==null||p();_.H3(r,0);break;case 2:K=_.ID(r),(k=m)==null||k(),K&&!w&&document.visibilityState!=="hidden"&&b===window.innerWidth&&T===window.innerHeight&&_.Dt(K),_.aD(r)}})};
_.vp=function(W){return W!=null&&W.watch?W.watch.isTheaterMode:!1};
_.g2=function(){for(var W=Array(36),O=0,b,T=0;T<36;T++)T==8||T==13||T==18||T==23?W[T]="-":T==14?W[T]="4":(O<=2&&(O=33554432+Math.random()*16777216|0),b=O&15,O>>=4,W[T]=_.hbq[T==19?b&3|8:b]);return W.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var F7Z=_.ts(['<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>']),
yAP=_.JqN(F7Z);yAP.setAttribute("style","display: none;");document.head.appendChild(yAP.content);_.og=_.lkT(function(W){var O=_.AV("DIV");W&&(O.className=W);O.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";W=_.AV("DIV");_.dz9(W,"200px","200px");O.appendChild(W);document.body.appendChild(O);W=O.offsetWidth-O.clientWidth;_.Xu(O);return W});var Wj9;var Ozg;var QO=function(){var W=_.n.apply(this,arguments)||this;W.icon=null;return W};
_.R(QO,_.n);QO.prototype.dismiss=function(){_.bX(this.hostElement,"yt-live-chat-error-message-dismiss")};
QO.prototype.computeIcon=function(W){return W&&W.iconType?"yt-icons:"+W.iconType.toLowerCase():"yt-icons:close"};
_.t([_.C(),_.N("design:type",Object)],QO.prototype,"data",void 0);_.t([_.C({computed:"computeIcon(data.icon)"}),_.N("design:type",Object)],QO.prototype,"icon",void 0);QO=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],QO);
_.H(QO,"yt-live-chat-error-message-renderer",function(){if(Ozg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Wj9===void 0&&(Wj9=document.createElement("template"));var T=Wj9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Ozg=W}W=Ozg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var wF9,AmU,XFU,UB1,K2B,vc8,gcU,ocB,QpB,vC,kuk,spB,gj,BJU,rmR,DBZ,xBD,zdB,C2P,qaB,nc2,f9g,Gu9,HkN,tvg,$Bg,VvU,NJg,Mv8,uwR,Jmk,cm1,oU,F29,ymZ,WLg,bt8,jI2,TK5,LL7,d01,heN,OtZ,itk,Zt9,IER,aE5,m0R,Yb7,SbP,w4g;wF9=function(W,O){return _.IJ(W.entities,"timedMarkersListSyncEntity",O)};
AmU=function(W,O){return _.IJ(W.entities,"liveReactionsDataEntity",O)};
XFU=function(W,O){W=_.IJ(W.entities,"booleanEntity",O);return!(!W||!W.value)};
UB1=function(W,O){var b=_.Bb();b&&W&&_.fV(b,_.Pi(W),O)};
_.l9Z=function(){_.e("web_watch_log_theater_mode")&&_.z1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.ed8=function(W,O,b){if(!W.includes("START_TIME_PLACEHOLDER")||!W.includes("END_TIME_PLACEHOLDER"))return W;var T=new Date(0),L=new Date(0);T.setUTCMilliseconds(O);L.setUTCMilliseconds(b);return W.replace("START_TIME_PLACEHOLDER",_.Gc(T,7)).replace("END_TIME_PLACEHOLDER",_.Gc(L,7))};
_.P2U=function(W){return W.watch.isWatchActive};
_.RU=function(W){return W!=null&&W.watch?W.watch.isWatchFullscreen:!1};
_.pFg=function(W){return _.vp(W)||_.RU(W)||_.flh(W)};
_.Rd1=function(W){return!_.pFg(W)};
_.Ks=function(W){return W.watch.watchScrollTop};
K2B=function(W){return W.watch.isLiveChatCollapsed};
vc8=function(W){return W.watch.openEngagementPanels};
gcU=function(W,O){return _.IJ(W.entities,"booleanEntity",O)};
ocB=function(){return function(W){_.Ne(_.AI("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:W}))}};
QpB=function(W){switch(W){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}};
vC=function(W,O,b){var T=_.xy(b);W&&O&&T&&W.getPlayerPromise().then(function(L){_.aW8(T)&&_.re();(new _.Aj(L)).executeCommand(T,O);_.e("continue_playback_on_desktop_companion_click")||L.pauseVideo()})};
kuk=function(W){var O=_.ya(),b;if(b=_.GT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;b=(T=b())==null?void 0:T.layoutId}else b=null;vC(O,b,W)};
spB=function(W){var O=_.ya(),b;if(b=_.GT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;b=(T=b())==null?void 0:T.layoutId}else b=null;vC(O,b,W)};
gj=function(W,O){var b=W<0?"-":"";W=Math.abs(W);var T=Math.floor(W/3600),L=Math.floor(W)%3600,h=Math.floor(L/60);L=Math.floor(L)%60;var Z="";(O===void 0?0:O)&&(Z="."+Math.round((W-Math.floor(W))*10));return T>0?b+T+":"+(h<10?"0"+h:""+h)+":"+(L<10?"0"+L:""+L)+Z:b+h+":"+(L<10?"0"+L:""+L)+Z};
BJU=function(W){var O=W.match(/[^0-9:\.]/g);if(O&&O.length>0)return null;W=W.split(":");if(W.length===0||W.length>3)return null;O=1;for(var b=0;W.length>0;){var T=W.pop();if(T===void 0)break;var L=Number(T);if(T===""||isNaN(L))return null;b+=L*O;O*=60}return b};
rmR=function(W,O,b,T){W=Math.max(b,W);O=Math.min(O,T-b);W+O>T?(b=T,W=b-O):b=W+O;return{start:W,end:b}};
DBZ=function(W,O,b,T,L,h){W<b?W=b:W+L>T&&(W=T-L);O>T&&(O=T);O=Math.min(W+h,Math.max(W+L,O));return{start:W,end:O}};
xBD=function(W,O,b,T,L,h){O>T?O=T:O-L<b&&(O=b+L);W<b&&(W=b);W=Math.min(O-L,Math.max(O-h,W));return{start:W,end:O}};
zdB=function(W){return _.e("web_transcript_cue_id_killswitch")?String(W):"ytd-transcript-renderer_"+W};
C2P=function(W){return _.e("web_transcript_cue_id_killswitch")?!0:W.startsWith("ytd-transcript-renderer")};
qaB=function(W){var O=_.ya(),b;if(b=_.GT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var T;b=(T=b())==null?void 0:T.layoutId}else b=null;vC(O,b,W)};
nc2=function(W){W.style.height="auto";W.style.height=Math.min(W.scrollHeight||20,80)+"px"};
f9g=function(W,O){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:O}}],insertByPositionInSection:{sectionTargetId:W,position:"INSERTION_POSITION_LAST"}}}]}}}};
Gu9=function(W){var O=_.ya(),b;b=(b=_.GT("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;vC(O,b,W)};
HkN=function(W){var O=_.ya(),b;b=(b=_.GT("yt.www.ads.eventcache.getLastCompanionData"))?(b=b())&&b.layoutId:null;vC(O,b,W)};
tvg=function(W,O){O=O===void 0?!1:O;if(W.simpleText)W=[{text:W.simpleText}];else{var b;W=((b=W.runs)!=null?b:[]).map(function(T){return Object.assign({},T)})}if(O)for(O=_.S(W),b=O.next();!b.done;b=O.next())b.value.bold=!0;
return W};
$Bg=function(W){var O=W.startEndTimeTemplate,b=W.startTimeUtcMillis;W=W.endTimeUtcMillis;if(O&&b&&W)return _.VV(_.ed8(_.NX(O),Number(b),Number(W)))};
VvU=function(W,O){var b,T,L=W==null?void 0:(b=W.viewCount)==null?void 0:(T=b.videoViewCountRenderer)==null?void 0:T.shortViewCount;if(!O&&L)return L;var h,Z;return W==null?void 0:(h=W.viewCount)==null?void 0:(Z=h.videoViewCountRenderer)==null?void 0:Z.viewCount};
NJg=function(W,O){var b=W==null?void 0:W.relativeDateText;return!O&&b?[b,!0]:[W==null?void 0:W.dateText,!1]};
Mv8=function(W,O,b,T,L){T=T===void 0?!0:T;L=L===void 0?"":L;var h=VvU(W,O),Z=_.S(NJg(W,O)),a=Z.next().value;Z=Z.next().value;O=O?W==null?void 0:W.sponsorsOnlyFirstTimeLongText:W==null?void 0:W.sponsorsOnlyFirstTimeShortText;var m=[];b&&h&&m.push(h);!b&&Z||!a||m.push(a);W=[].concat(_.PG(m),[O,W==null?void 0:W.stationName,W==null?void 0:W.rating,W?$Bg(W):void 0,W==null?void 0:W.upNextProgramText,W==null?void 0:W.superTitleLink]).filter(function(w){return!!w});
b={runs:[]};for(h=0;h<W.length;h++)b.runs.push.apply(b.runs,_.PG(tvg(W[h],T))),h<W.length-1&&b.runs.push({text:" "+L+" ",bold:T});return b};
uwR=function(W){if(W)return{runs:[{text:W,bold:!0}]}};
Jmk=function(W){var O,b,T,L;if(W=W==null?void 0:(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.results)==null?void 0:(L=T.results)==null?void 0:L.contents){var h,Z;return(Z=(h=W.find(function(a){return!!a.videoPrimaryInfoRenderer}))==null?void 0:h.videoPrimaryInfoRenderer)==null?void 0:Z.updatedMetadataEndpoint}};
cm1=function(W,O){var b;return(b=W.sourceConfigs)==null?void 0:b.find(function(T){return T.videoId===O})};
oU=function(W){return W==="End of video"||W==="End of playlist"};
F29=function(W){var O,b,T,L;return(O=W.getWatchNextResponse())==null?void 0:(b=O.contents)==null?void 0:(T=b.twoColumnWatchNextResults)==null?void 0:(L=T.playlist)==null?void 0:L.playlist};
ymZ=function(W){var O,b,T,L,h,Z;return(O=F29(W))==null?void 0:(b=O.playlistButtons)==null?void 0:(T=b.menuRenderer)==null?void 0:(L=T.topLevelButtons)==null?void 0:(h=L[0])==null?void 0:(Z=h.playlistLoopButtonRenderer)==null?void 0:Z.playlistLoopStateEntityKey};
WLg=function(W){var O=_.iq().resolve(_.kP),b;return(O=(b=_.P(O.getAutoplayEndpoint(),_.V3))==null?void 0:b.playlistId)&&O===W};
bt8=function(W,O,b,T,L){function h(){_.sF.cancelJob(Qo);var Z=OtZ(O,b/W.getPlaybackRate()),a=Z.hours,m=Z.minutes;Z=(Z.seconds*1E3||6E4)/W.getPlaybackRate();W.setVideoTimeLeft(itk(a,m));T&&W.getPlayerState()!==0&&W.setSleepTimerTimeLeft(itk(a,m,!0));(a>0||m>0)&&!L&&(Qo=_.Xg(_.sF,h,Z))}
_.sF.cancelJob(Qo);Qo=_.Xg(_.sF,h)};
jI2=function(W,O,b){function T(){_.sF.cancelJob(k5);var L=OtZ(O,b),h=L.hours;L=L.minutes;var Z=6E4/W.getPlaybackRate();if(h>0||L>0)W.setSleepTimerTimeLeft(itk(h,L,!0)),k5=_.Xg(_.sF,T,Z)}
_.sF.cancelJob(k5);k5=_.Xg(_.sF,T)};
TK5=function(W,O){var b=W.getVolume()/(O/500),T=function(L){_.sF.cancelJob(sN);var h=Math.floor(L-b);W.setVolume(h,!1);h>0&&(sN=_.Xg(_.sF,function(){T(h)},500))};
_.sF.cancelJob(sN);sN=_.Xg(_.sF,function(){T(W.getVolume())})};
LL7=function(W,O){_.sF.cancelJob(sN);O&&W.syncVolume()};
d01=function(){var W={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.EO("SLEEP_TIMER_DISRUPTED")}}}}};_.iq().resolve(_.bq).resolveCommand(W)};
heN=function(W){return(W.getDuration()-W.getProgressState().current)*1E3};
OtZ=function(W,O){W=W+O-(0,_.WO)();if(W<=0)return{hours:0,minutes:0,seconds:0};var b=new SbP(0,0,0,0,0,0,W);W=b.getHours();O=b.getMinutes();b=b.getSeconds();b!==0&&O++;O!==0&&O%60===0&&(W++,O=0);return{hours:W,minutes:O,seconds:b}};
itk=function(W,O,b){return W>0&&O>0?b?_.EO("TIME_LEFT_HOURS_MINUTES",{hours:W.toString(),minutes:O.toString()}):_.EO("TIME_HOURS_MINUTES",{hours:W.toString(),minutes:O.toString()}):W>0?b?_.wa("TIME_LEFT_HOURS",W):_.wa("TIME_HOURS",W):b?_.EO("TIME_LEFT_MINUTES",{minutes:O.toString()}):_.EO("TIME_MINUTES",{minutes:O.toString()})};
Zt9=function(W,O){if(W.timelyActions)return W.timelyActions.find(function(b){var T;return((T=_.P(b,BC))==null?void 0:T.cueRangeId)===O})};
IER=function(W){var O=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.iB(W);W.keyMap_.forEach(function(b,T){_.Vh(O,T)||this.remove(T)},W)};
aE5=function(W,O){W.reloadContinuationItemsCommandMatcher=O};
_.rj=function(W,O){W.insertBefore(O,W.childNodes[0]||null)};
m0R=function(W){if(W>=48&&W<=57||W>=96&&W<=106||W>=65&&W<=90||_.Lf&&W==0)return!0;switch(W){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 _.TR;default:return!1}};
Yb7=function(W){if(W.altKey&&!W.ctrlKey||W.metaKey||W.keyCode>=112&&W.keyCode<=123)return!1;if(m0R(W.keyCode))return!0;switch(W.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!_.TR;default:return W.keyCode<166||W.keyCode>183}};
SbP=function(W,O,b,T,L,h,Z){this.date=typeof W==="number"?new Date(W,O||0,b||1,T||0,L||0,h||0,Z||0):new Date(W&&W.getTime?W.getTime():_.yG())};
_.Wk(SbP,_.Ac);_.d=SbP.prototype;_.d.getHours=function(){return this.date.getHours()};
_.d.getMinutes=function(){return this.date.getMinutes()};
_.d.getSeconds=function(){return this.date.getSeconds()};
_.d.getMilliseconds=function(){return this.date.getMilliseconds()};
_.d.getUTCDay=function(){return this.date.getUTCDay()};
_.d.getUTCHours=function(){return this.date.getUTCHours()};
_.d.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.d.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.d.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.d.setHours=function(W){this.date.setHours(W)};
_.d.setMinutes=function(W){this.date.setMinutes(W)};
_.d.setSeconds=function(W){this.date.setSeconds(W)};
_.d.setMilliseconds=function(W){this.date.setMilliseconds(W)};
_.d.setUTCHours=function(W){this.date.setUTCHours(W)};
_.d.setUTCMinutes=function(W){this.date.setUTCMinutes(W)};
_.d.setUTCSeconds=function(W){this.date.setUTCSeconds(W)};
_.d.setUTCMilliseconds=function(W){this.date.setUTCMilliseconds(W)};
_.d.add=function(W){_.Ac.prototype.add.call(this,W);W.hours&&this.setUTCHours(this.date.getUTCHours()+W.hours);W.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+W.minutes);W.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+W.seconds)};
_.d.JSC$9234_toIsoString=function(W){var O=_.Ac.prototype.JSC$9234_toIsoString.call(this,W);return W?O+"T"+_.FS(this.getHours(),2)+":"+_.FS(this.getMinutes(),2)+":"+_.FS(this.getSeconds(),2):O+"T"+_.FS(this.getHours(),2)+_.FS(this.getMinutes(),2)+_.FS(this.getSeconds(),2)};
_.d.equals=function(W){return this.getTime()==W.getTime()};
_.d.toString=function(){return this.JSC$9234_toIsoString()};
_.d.clone=function(){var W=new SbP(this.date);W.firstDayOfWeek_=this.firstDayOfWeek_;W.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return W};
_.EKN=function(W){return _.Tc({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:W}})};
w4g=new _.J("imageTileRenderer");var AJg=new _.J("adGridCardCollectionViewModel");var X49=new _.J("carouselTitleViewModel");var U09=new _.J("ctaCarouselItemViewModel");var lE1=new _.J("textFieldViewModel");_.eeN=new _.J("engagementPanelHeaderShowNavigationButtonCommand");var PbB=new _.J("hideEngagementPanelScrimAction");var p4g=new _.J("setActivePanelItemAction");var ReD=new _.J("showEngagementPanelScrimAction");var KL9=new _.J("updateEngagementPanelAction");var vK1=new _.J("updateSearchInVideoResultsAction");var gKU=new _.J("transcriptCueGroupRenderer");var oKZ=new _.J("transcriptCueRenderer");var QI8=new _.J("transcriptFooterRenderer");var kdB=new _.J("engagementPanelAdSubtitleRenderer");var sIR=new _.J("videoDescriptionFantasySectionViewModel");var BKN=new _.J("deleteClipEngagementPanelCommand");var rJ1=new _.J("loopCommand");var D0g=new _.J("changeCreatorEndscreenVisibilityCommand");var x0N=new _.J("liveChatCallForQuestionsRenderer");var zek=new _.J("updateTimedMarkersSyncObserverCommand");var BC=new _.J("timelyActionViewModel");var CbU=new _.J("timelyActionsOverlayViewModel");var qbN=new _.J("repeatChapterCommand");var nKZ=new _.J("watchPlayerOverflowMenuCommand");var fE8=new _.J("compositeVideoOverlayRenderer");var Gd9=new _.J("sortFilterSubMenuRenderer");var HtB=new _.J("switchListItemViewModel");var tGU=new _.J("inputComposerViewModel");var $01=new _.J("transcriptEditSegmentCommand");var VGD=new _.J("transcriptUpdateSegmentTextCommand");var NKk=new _.J("transcriptSearchBoxRenderer");var MG8=new _.J("transcriptSegmentListRenderer");var uxN=new _.J("transcriptSegmentRenderer");_.JJP=new _.J("updateDateTextAction");var cJ9=new _.J("updateTitleAction");var FLB=new _.J("updateViewershipAction");var yJ8=new _.J("carouselLockupRenderer");var WkU=new _.J("expandableVideoDescriptionBodyRenderer");var Ox1=new _.J("videoDescriptionYouchatSectionViewModel");_.Dn=_.Lu("kevlar_watch_page_horizontal_margin",24);_.ixg=_.Lu("kevlar_watch_page_columns_top_padding",24);_.bx8=426+_.Dn*2;_.x5=_.Lu("kevlar_watch_two_column_width_threshold",1E3);_.jtZ=_.Dn*2;_.TRU=_.Lu("kevlar_watch_secondary_width",402);_.LkN=_.Lu("kevlar_watch_max_player_width",1280);_.dO2=_.Lu("kevlar_watch_flexy_metadata_height",136);_.hJU=_.jtZ+310+_.Dn;_.Sdg=_.jtZ+360+_.Dn;var Zx2={PAUSE_CHAT:18};var IV5;var aVR;var zm=function(){return _.n.apply(this,arguments)||this};
_.R(zm,_.n);zm.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
zm.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var W=_.P(this.data.button,_.Kp);W&&(W.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Jq.Object.defineProperties(zm,{template:{configurable:!0,enumerable:!0,get:function(){if(aVR===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;IV5===void 0&&(IV5=document.createElement("template"));var T=IV5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);aVR=W}W=aVR;return W}}});
_.t([_.D(_.rB),_.N("design:type",Object)],zm.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],zm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({selectorArgs:["data.enabledEntityKey"],selector:XFU,observer:"onEnabledChange"}),_.N("design:type",Boolean)],zm.prototype,"enabled",void 0);_.t([_.C(),_.N("design:type",Object)],zm.prototype,"data",void 0);zm=_.t([_.sl({is:"yt-disableable-button-view-model",noInjection:!0})],zm);var mOU;var Yd5;var Ef5=["transVert01","transVert02","transVert03"],w6U="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),Cs=function(){var W=_.n.apply(this,arguments)||this;W.emojiManager=_.rw;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};W.reactionBuckets=[];W.noEmojiIdentifier="NO_EMOJI";return W};
_.R(Cs,_.n);_.d=Cs.prototype;_.d.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.d.desktopFountainEmojiSizePxChanged=function(){_.Sl(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.d.createUserReactionAnimation=function(W){this.createEmojiAnimation(W,!0)};
_.d.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var W;((W=this.data)==null?0:W.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.AI("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.PG(this.emojiContainer.children)).forEach(function(O){O.remove()})};
_.d.detached=function(){this.cleanupFountain()};
_.d.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var W;this.reactionBuckets=_.PQ.unsafeClone((W=this.emojiFountainData)==null?void 0:W.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.d.processEmojiBucket=function(W){var O=this;if(this.reactionBuckets&&!(W>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var b=this.reactionBuckets[W];this.generateEmojiAnimations(b);if(W<this.reactionBuckets.length-1){var T;if(b==null?0:(T=b.duration)==null?0:T.seconds)this.emojiBucketTimerId=setTimeout(function(){O.processEmojiBucket(W+1)},Number(b.duration.seconds)*1E3)}}};
_.d.generateEmojiAnimations=function(W){var O=this,b=this.getRandomEmojiIdFromBucketWithOverride(W);if(b&&b!==this.noEmojiIdentifier){var T=0;W.targetEps?(T=this.linearInterpolateBounded(1,20,100,12,W.emojiSizeIndex||0),this.createEmojiAnimation(b,!1,W.emojiAnimationMs,T),T=this.getEmojiDelayMsFromTargetEps(W.targetEps)):(this.createEmojiAnimation(b),T=this.getEmojiDelayMsFromDistribution(W.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){O.generateEmojiAnimations(W)},T)}};
_.d.getRandomEmojiIdFromBucketWithOverride=function(W){if(!(W&&W.reactionsData&&W.reactionsData.length&&W.totalReactions))return this.noEmojiIdentifier;for(var O=W.totalReactions,b=1,T=_.S(W.reactionsData),L=T.next();!L.done;L=T.next())L=L.value,(L.reactionWeightOverride||L.reactionWeightOverride===0)&&L.reactionCount&&(O-=L.reactionCount,b-=L.reactionWeightOverride);T=!0;b<0&&(T=!1,O=W.totalReactions,b=1);if(T&&b>0&&O===0)if(b===1){L=0;for(var h=_.S(W.reactionsData),Z=h.next();!Z.done;Z=h.next())Z=
Z.value,Z.reactionCount&&Z.reactionCount>0&&L++;L=1/L;h=_.S(W.reactionsData);for(Z=h.next();!Z.done;Z=h.next())Z.value.reactionWeightOverride=L}else for(L=1/(1-b),h=_.S(W.reactionsData),Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z.reactionWeightOverride&&(Z.reactionWeightOverride*=L);L=Math.random();h=0;Z=_.S(W.reactionsData);for(var a=Z.next();!a.done;a=Z.next())if(a=a.value,a.reactionCount&&(h=(a.reactionWeightOverride||a.reactionWeightOverride===0)&&T?h+a.reactionWeightOverride:h+b*a.reactionCount/
O,h>L&&(a.reactionCount--,W.totalReactions--,a=this.reactionItemToEmojiString(a),a!==this.noEmojiIdentifier)))return a;return this.noEmojiIdentifier};
_.d.reactionItemToEmojiString=function(W){if(W.unicodeEmojiId)return W.unicodeEmojiId;if(W.emoteId)return W.emoteId;if(W.videoReactionType)switch(W.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.d.createEmojiAnimation=function(W,O,b,T){O=O===void 0?!1:O;this.lastEmojiRequestedForTesting=W;var L=W.startsWith("yt-icons:"),h=_.s6(this.emojiManager,W);if(h||L){var Z=document.createElement("emoji");Z.classList.add("yt-emoji-fountain-view-model");Z.classList.add(Ef5[Math.floor(Math.random()*Ef5.length)]);var a=document.createElement("div");a.classList.add("yt-emoji-fountain-view-model");a.classList.add("horizontal-container");a.classList.add(w6U[Math.floor(Math.random()*w6U.length)]);O?(b=document.createElement("div"),
b.classList.add("user-reaction-bubble"),b.classList.add("yt-emoji-fountain-view-model"),a.appendChild(b)):(b&&(Z.style.animationDuration=b+"ms",a.style.animationDuration=b+"ms"),T&&(Z.style.width=T+"px",Z.style.height=T+"px"));L?(L=document.createElement("yt-icon"),L.polymerController.icon=W,T&&(L.style.width=T+"px",L.style.height=T+"px"),W=L):W=this.emojiManager.createEmoji(h,!1);W.classList.add("yt-emoji-fountain-view-model");a.appendChild(W);Z.appendChild(a);this.emojiContainer.appendChild(Z);
Z.addEventListener("animationend",function(){Z.remove()});
var m,w;if((m=this.data)==null?0:(w=m.loggingDirectives)==null?0:w.trackingParams)O=O?_.gd(183501):_.gd(183500),UB1(this.data.loggingDirectives.trackingParams,O),_.lD1(O);setTimeout(function(){Z&&Z.remove()},2E3)}};
_.d.getEmojiDelayMsFromDistribution=function(W){return Math.random()*(W||1)*1E3};
_.d.getEmojiDelayMsFromTargetEps=function(W){return Math.random()*2*(1/W)*1E3};
_.d.linearInterpolateBounded=function(W,O,b,T,L){L=Math.min(Math.max(L,W),b);return(O*(b-L)+T*(L-W))/(b-W)};
Cs.prototype.onEmojiFountainDataEntityUpdate=Cs.prototype.onEmojiFountainDataEntityUpdate;Cs.prototype.desktopFountainEmojiSizePxChanged=Cs.prototype.desktopFountainEmojiSizePxChanged;Cs.prototype.isActiveChanged=Cs.prototype.isActiveChanged;_.t([_.C(),_.N("design:type",_.kd)],Cs.prototype,"emojiManager",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],Cs.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Cs.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Cs.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(W,O){return _.IJ(W.entities,"emojiFountainDataEntity",O)}}),
_.N("design:type",Object)],Cs.prototype,"emojiFountainData",void 0);_.t([_.C(),_.N("design:type",Boolean)],Cs.prototype,"isActive",void 0);_.t([_.m5("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cs.prototype,"isActiveChanged",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Cs.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",String)],Cs.prototype,"lastEmojiRequestedForTesting",void 0);
_.t([_.C({value:function(){return _.Lu("desktop_fountain_emoji_size_px",20)}}),
_.N("design:type",Number)],Cs.prototype,"desktopFountainEmojiSizePx",void 0);_.t([_.m5("desktopFountainEmojiSizePx"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cs.prototype,"desktopFountainEmojiSizePxChanged",null);_.t([_.El("#emoji-container"),_.N("design:type",HTMLElement)],Cs.prototype,"emojiContainer",void 0);
_.t([_.m5("emojiFountainData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cs.prototype,"onEmojiFountainDataEntityUpdate",null);Cs=_.t([_.sl({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Cs);
_.H(Cs,"yt-emoji-fountain-view-model",function(){if(Yd5===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;mOU===void 0&&(mOU=document.createElement("template"));var T=mOU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Yd5=W}W=Yd5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var AOR;var X6R;var qF=function(){return _.n.apply(this,arguments)||this};
_.R(qF,_.n);qF.prototype.onChoiceChanged=function(){this.data&&_.Sl(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
qF.prototype.onChoiceChanged=qF.prototype.onChoiceChanged;_.t([_.C(),_.N("design:type",Object)],qF.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qF.prototype,"onChoiceChanged",null);qF=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],qF);
_.H(qF,"yt-live-chat-banner-poll-choice",function(){if(X6R===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;AOR===void 0&&(AOR=document.createElement("template"));var T=AOR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);X6R=W}W=X6R;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var UOg;var lV5;var ns=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework_with_live");W.small=!1;return W};
_.R(ns,_.n);ns.prototype.computeIsSmall=function(){var W;return((W=this.buttonOverrides)==null?void 0:W.size)==="S"};
ns.prototype.computeId=function(){return this.data&&this.data.targetId};
_.t([_.D(_.Dz.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],ns.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",String)],ns.prototype,"id",void 0);_.t([_.C(),_.N("design:type",Object)],ns.prototype,"buttonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],ns.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ns.prototype,"modern",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.N("design:type",Object)],ns.prototype,"small",void 0);ns=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-button"})],ns);
_.H(ns,"yt-live-chat-button",function(){if(lV5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;UOg===void 0&&(UOg=document.createElement("template"));var T=UOg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);lV5=W}W=lV5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var eJD;var P4R;var fs=function(){var W=_.n.apply(this,arguments)||this;W.inCollapsedBanner=!1;W.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};W.questionButtonOverrides={style:"mono",type:"filled"};return W};
_.R(fs,_.n);_.d=fs.prototype;_.d.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]]"}}}}}};
_.d.onContextMenuButtonClick=function(W){this.ytLiveChatItemBehavior.showContextMenu(W)};
_.d.onYtRendererstamperFinished=function(){this.menuButton=_.Q(this.hostElement).querySelector("#menu-button")};
_.d.dataChanged=function(){var W,O;if((O=_.P((W=this.data)==null?void 0:W.overflowMenuButton,_.s2))==null?0:O.command)this.data.contextMenuEndpoint=_.P(this.data.overflowMenuButton,_.s2).command};
_.d.onButtonClick=function(){var W,O=_.P((W=this.data)==null?void 0:W.askQuestionButton,_.s2);if(O){if(O.trackingParams&&(W=_.Pi(O.trackingParams))){var b=_.Bb();b&&_.Vw(b,W)}_.bX(this.hostElement,"innertube-command",O.command)}};
fs.prototype.onYtRendererstamperFinished=fs.prototype.onYtRendererstamperFinished;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],fs.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],fs.prototype,"ytLiveChatItemBehavior",void 0);_.t([_.C({observer:"dataChanged"}),_.N("design:type",Object)],fs.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],fs.prototype,"inCollapsedBanner",void 0);_.t([_.C(),_.N("design:type",Object)],fs.prototype,"buttonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],fs.prototype,"questionButtonOverrides",void 0);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fs.prototype,"onYtRendererstamperFinished",null);
fs=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],fs);
_.H(fs,"yt-live-chat-call-for-questions-renderer",function(){if(P4R===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;eJD===void 0&&(eJD=document.createElement("template"));var T=eJD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);P4R=W}W=P4R;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var p6R={};p6R.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 W=this;window.requestAnimationFrame(function(){W.restoreFocusNode_||(W.restoreFocusNode_=document.activeElement);var O=_.Xsz(W.hostElement);O.length&&O[O.length-1].focus()})},
isAttachedChanged_:function(W,O){W?this.focusChild_():O&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(W){this.hidden||_.Nd(W).indexOf(this.hostElement)!==-1||(W.stopPropagation(),this.focusChild_())}};var RJN;var Kkg;var Gm=function(){return _.n.apply(this,arguments)||this};
_.R(Gm,_.n);Gm.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Gm.prototype.onClick=function(W){W.target!==this.confirmButton&&W.target!==this.cancelButton&&(this.hidden=!0)};
_.t([_.El("#confirm_button"),_.N("design:type",Object)],Gm.prototype,"confirmButton",void 0);_.t([_.El("#cancel_button"),_.N("design:type",Object)],Gm.prototype,"cancelButton",void 0);_.t([_.C(),_.N("design:type",vfU)],Gm.prototype,"data",void 0);_.t([_.C({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],Gm.prototype,"hidden",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(p6R.YtLiveChatDialogBehavior),_.N("design:type",Object)],Gm.prototype,"ytLiveChatDialogBehavior",void 0);Gm=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Gm);
var vfU=_.H(Gm,"yt-live-chat-dialog-renderer",function(){if(Kkg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;RJN===void 0&&(RJN=document.createElement("template"));var T=RJN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Kkg=W}W=Kkg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var gf9;var of8,Qt1=function(){if(of8!==void 0)return of8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;gf9===void 0&&(gf9=document.createElement("template"));var T=gf9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return of8=W};var kWP;var stk;var HC=function(){var W=_.n.apply(this,arguments)||this;W.tooltip=null;W.data=null;W.id="";W.active=!1;W.icon="";W.disabled=!1;W.showTooltip=!1;W.useToggledActiveState=!0;W.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return W};
_.R(HC,_.n);_.d=HC.prototype;
_.d.dataChanged=function(){var W;((W=this.data)==null?0:W.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,_.h1)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var O;if((O=this.data)==null?0:O.disabled)this.disabled=!0};
_.d.computeId=function(W){return W};
_.d.computeIcon=function(W,O){if(!W)return"";if(this.useToggledActiveState)return"yt-icons:"+W.toLowerCase();var b,T;return O&&((b=this.data)==null?0:(T=b.toggledIcon)==null?0:T.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+W.toLowerCase()};
_.d.logPDGEntryPoint=function(){_.ceX(_.Zr("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")};
_.d.immediatelyShowTooltip=function(){var W=_.Q(this.hostElement).querySelector("#tooltip");W.animationDelay=0;W.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};W.show()};
_.d.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.d.onClick=function(W){var O;((O=this.data)==null?0:O.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(),W.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.bX(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.d.computeShowTooltip=function(W,O){return!!(W&&W.tooltip&&O)};
_.d.maybeUpdateTooltipText=function(){var W=this,O;if((O=this.data)==null?0:O.tooltip){var b=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.h1)(W.tooltip).textContent=b},250)}};
_.d.handleLiveChatActions=function(W){var O=this;W.length&&(this.id!=="creator"&&this.id!=="product-picker"||W.forEach(function(b){(b=O.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",b))&&b.durationSec===b.fullDurationSec&&O.startBubble(O.colorFromDecimal(b.startBackgroundColor))}))};
_.d.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.d.startBubble=function(W){_.Sl(this.hostElement,{"--yt-live-chat-monetization-button-glow":W});this.hostElement.setAttribute("bubble","")};
_.d.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.d.colorFromDecimal=function(W){typeof W==="string"&&(W=Number(W));return"rgba("+[W>>16&255,W>>8&255,W&255,(W>>24&255)/255].join()+")"};
HC.prototype.onAnimationEnd=HC.prototype.onAnimationEnd;HC.prototype.disabledChanged=HC.prototype.disabledChanged;HC.prototype.dataChanged=HC.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],HC.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.Dz.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],HC.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],HC.prototype,"data",void 0);_.t([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],HC.prototype,"id",void 0);_.t([_.C({notify:!0,reflectToAttribute:!0}),_.N("design:type",Object)],HC.prototype,"active",void 0);
_.t([_.C({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.N("design:type",Object)],HC.prototype,"icon",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HC.prototype,"disabled",void 0);_.t([_.C({computed:"computeShowTooltip(data, disabled)"}),_.N("design:type",Object)],HC.prototype,"showTooltip",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HC.prototype,"useToggledActiveState",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HC.prototype,"dataChanged",null);_.t([_.m5("disabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HC.prototype,"disabledChanged",null);_.t([_.ai("animationend"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],HC.prototype,"onAnimationEnd",null);
HC=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],HC);
_.H(HC,"yt-live-chat-icon-toggle-button-renderer",function(){if(stk===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;kWP===void 0&&(kWP=document.createElement("template"));var T=kWP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);stk=W}W=stk;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var BRZ;var rOD;var tB=function(){return _.n.apply(this,arguments)||this};
_.R(tB,_.n);tB.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.t([_.C(),_.N("design:type",Object)],tB.prototype,"data",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tB.prototype,"ytRendererstamperBehavior",void 0);tB=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],tB);
_.H(tB,"yt-live-chat-message-input-prompt-header-renderer",function(){if(rOD===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;BRZ===void 0&&(BRZ=document.createElement("template"));var T=BRZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);rOD=W}W=rOD;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var DOZ;var xOg;var zJ1;var C45;var qdN;var nfk;var $5=function(){return _.n.apply(this,arguments)||this};
_.R($5,_.n);_.t([_.C(),_.N("design:type",Object)],$5.prototype,"data",void 0);$5=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],$5);
_.H($5,"yt-live-chat-message-subtext-renderer",function(){if(nfk===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;qdN===void 0&&(qdN=document.createElement("template"));var T=qdN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);nfk=W}W=nfk;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Vo=function(){var W=_.n.apply(this,arguments)||this;W.subtextOnBottom=!1;W.buttonOverrides={style:"mono",type:"tonal"};return W};
_.R(Vo,_.n);Vo.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Vo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vo.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vo.prototype,"subtextOnBottom",void 0);_.t([_.C(),_.N("design:type",Object)],Vo.prototype,"buttonOverrides",void 0);
Vo=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Vo);
_.H(Vo,"yt-live-chat-message-renderer",function(){if(C45===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;zJ1===void 0&&(zJ1=document.createElement("template"));var T=zJ1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);C45=W}W=C45;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var fVR;var GW1;var NF=function(){var W=_.n.apply(this,arguments)||this;W.isRemovable=!1;W.hasPrefilledText=!1;W.isInputDirty=!1;W.overCharacterLimit=!1;W.underCharacterLimit=!1;W.showErrorMessage=!1;return W};
_.R(NF,_.n);_.d=NF.prototype;_.d.computeId=function(){return this.data.id};
_.d.computeInputData=function(){return this.data.inputData};
_.d.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.d.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.d.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.d.getLiveChatRichMessageInput=function(){return _.Q(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.d.clearInput=function(){_.Q(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.d.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.d.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.d.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.d.handleTextInputCharCountChanged=function(W){W=W.detail&&W.detail.characterCount;W!==void 0&&(this.characterCount=W,W!==0&&(this.isInputDirty=!0))};
_.d.onInputFocusOut=function(){this.isInputDirty=!0};
_.d.onClickCloseButton=function(){_.bX(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
NF.prototype.handleTextInputCharCountChanged=NF.prototype.handleTextInputCharCountChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],NF.prototype,"data",void 0);_.t([_.C({computed:"computeId(data.id)"}),_.N("design:type",String)],NF.prototype,"id",void 0);_.t([_.C({computed:"computeInputData(data.inputData)"}),_.N("design:type",Object)],NF.prototype,"inputData",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.N("design:type",Object)],NF.prototype,"isRemovable",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.N("design:type",Object)],NF.prototype,"hasPrefilledText",void 0);_.t([_.C({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.N("design:type",Number)],NF.prototype,"charactersRemaining",void 0);
_.t([_.C(),_.N("design:type",Number)],NF.prototype,"characterCount",void 0);_.t([_.C(),_.N("design:type",Object)],NF.prototype,"isInputDirty",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.N("design:type",Object)],NF.prototype,"overCharacterLimit",void 0);_.t([_.C({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.N("design:type",Object)],NF.prototype,"underCharacterLimit",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.N("design:type",Object)],NF.prototype,"showErrorMessage",void 0);_.t([_.ai("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],NF.prototype,"handleTextInputCharCountChanged",null);
NF=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],NF);
_.H(NF,"yt-live-chat-poll-editor-input",function(){if(GW1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;fVR===void 0&&(fVR=document.createElement("template"));var T=fVR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);GW1=W}W=GW1;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Hxg;var t2D;var $O9={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},MF=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_button_rework_with_live");W.closeButtonOverrides={iconPosition:"icon-only"};W.startButtonOverrides={style:"mono",type:"filled"};W.addOptionButtonOverrides={style:"mono",type:"text"};return W};
_.R(MF,_.n);_.d=MF.prototype;
_.d.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"}}}}};
_.d.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var W;_.P((W=this.data)==null?void 0:W.startButton,_.s2)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.computeId=function(){return this.data&&this.data.id||""};
_.d.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.d.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.d.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.d.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.d.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var W=0;W<this.pollEditorInfoWithDefaults.minPollOptions;W++)this.addPollOptionData()};
_.d.getIsValidPoll=function(){var W=this;if(!this.pollEditorInfoWithDefaults)return!1;var O=this.pollEditorInfoWithDefaults,b=O.minPollOptionChars,T=O.maxPollOptionChars,L=O.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>O.maxPollQuestionChars)return!1;O=_.Q(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(O).every(function(h,Z){h=h.characterCount;!h&&L[Z]&&(h=W.ytRendererBehavior.getSimpleString(L[Z]).length);return h!==void 0&&h>=b&&h<=T})};
_.d.isValidPollChanged=function(){var W;_.P((W=this.data)==null?void 0:W.startButton,_.s2)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.d.addPollOptionData=function(){var W=this.pollEditorInfoWithDefaults,O=W.maxPollOptionChars,b=W.optionPlaceholderText,T=W.customOptionPlaceholderText,L=W.pollOptionData;this.currentNumPollOptions>=W.maxPollOptions||(W={liveChatPollOptionInput:{inputData:{placeholder:T[this.currentNumPollOptions]||b,maxCharacterLimit:O},maxCharacterLimit:O,minCharacterLimit:W.minPollOptionChars,hasPrefilledText:!!T[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=W.minPollOptions}},L.charCountErrorText&&
(W.liveChatPollOptionInput.charCountErrorText=L.charCountErrorText),L.charsRemainingAltLabel&&(W.liveChatPollOptionInput.charsRemainingAltLabel=L.charsRemainingAltLabel),L.removeOptionAltText&&(W.liveChatPollOptionInput.removeOptionAltText=L.removeOptionAltText),this.push("pollOptionsData",W),L=Array.from(_.Q(_.Q(this.hostElement).querySelector("#poll-options")).children),L.forEach(function(h,Z){h.polymerController.set("data.id",Z)}),_.Q(L[L.length-1]).querySelector("#input").focus())};
_.d.getPollOptionInputValues=function(){var W=this,O=[],b=_.Q(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),T=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(b).forEach(function(L,h){var Z=null;L=L.getLiveChatRichMessageInput();var a;(L==null?0:(a=L.textSegments)==null?0:a.length)?Z=_.qf(L):T[h]&&(Z=W.formattedStringToLiveChatRichMessageInput(T[h]));O.push(Z)});
return O};
_.d.requestCreateAndStartPoll=function(W){var O=this.getPollOptionInputValues();if(!O.some(function(T){return!T})){O={optionText:O};
var b=_.Q(_.Q(this.hostElement).querySelector("#poll-question")).firstChild;b&&b.liveChatRichMessageInput&&(O.questionText=_.qf(b.liveChatRichMessageInput));_.da(this.hostElement,[W,O])}};
_.d.selectedChanged=function(){if(this.selected){var W=_.Q(_.Q(this.hostElement).querySelector("#start-button")).firstElementChild;if(W){var O;(O=_.Q(W).querySelector("#button")||_.T0(W).querySelector("button"))==null||O.focus()}}};
_.d.handleTextInputChanged=function(W){var O;((O=W.target)==null?void 0:O.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=W.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.d.handleStartButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),(W=W.detail.args[1])&&this.requestCreateAndStartPoll(W))};
_.d.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(W){this.createPollRequestInFlight=!1;(W=W.detail&&W.detail.data)&&W.success&&(_.bX(this.hostElement,"picker-cancelled"),_.jx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.d.onCloseClick=function(){_.bX(this.hostElement,"picker-cancelled");_.jx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.d.handlePollEditorInputClosed=function(W){var O=this.pollOptionsData.findIndex(function(b){return b.liveChatPollOptionInput.id===W.detail.id});
this.splice("pollOptionsData",O,1);this.isValidPoll=this.getIsValidPoll()};
_.d.onPickerCancelled=function(){this.reset()};
_.d.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var W=_.Q(_.Q(this.hostElement).querySelector("#poll-question")).firstChild;W&&W.setLiveChatRichMessageInput(null);if(W=_.Q(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){W=_.S(Array.from(W));for(var O=W.next();!O.done;O=W.next())O.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.d.formattedStringToLiveChatRichMessageInput=function(W){return W.simpleText?{text_segments:[W.simpleText]}:{text_segments:W.runs}};
_.Jq.Object.defineProperties(MF.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($O9,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
MF.prototype.onPickerCancelled=MF.prototype.onPickerCancelled;MF.prototype.handlePollEditorInputClosed=MF.prototype.handlePollEditorInputClosed;MF.prototype.handleServiceRequestCompleted=MF.prototype.handleServiceRequestCompleted;MF.prototype.handleServiceRequestSent=MF.prototype.handleServiceRequestSent;MF.prototype.handleTextInputChanged=MF.prototype.handleTextInputChanged;MF.prototype.selectedChanged=MF.prototype.selectedChanged;MF.prototype.isValidPollChanged=MF.prototype.isValidPollChanged;
MF.prototype.shouldInitializePollChanged=MF.prototype.shouldInitializePollChanged;MF.prototype.dataChanged=MF.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],MF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],MF.prototype,"modern",void 0);
_.t([_.C(),_.N("design:type",Object)],MF.prototype,"closeButtonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],MF.prototype,"startButtonOverrides",void 0);_.t([_.C(),_.N("design:type",Object)],MF.prototype,"addOptionButtonOverrides",void 0);_.t([_.C({computed:"computeId(data.id)",reflectToAttribute:!0}),_.N("design:type",String)],MF.prototype,"id",void 0);_.t([_.C({value:function(){return[]}}),
_.N("design:type",Array)],MF.prototype,"pollOptionsData",void 0);_.t([_.x("pollEditorInfoWithDefaults"),_.N("design:type",Object),_.N("design:paramtypes",[])],MF.prototype,"pollQuestionData",null);_.t([_.C({value:0}),_.N("design:type",Number)],MF.prototype,"pollQuestionCharacterCount",void 0);_.t([_.x("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],MF.prototype,"pollQuestionCharactersRemaining",null);
_.t([_.C({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.N("design:type",Boolean)],MF.prototype,"overQuestionCharacterLimit",void 0);_.t([_.x("data.pollEditorInfo"),_.N("design:type",Object),_.N("design:paramtypes",[])],MF.prototype,"pollEditorInfoWithDefaults",null);_.t([_.C({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.N("design:type",Number)],MF.prototype,"currentNumPollOptions",void 0);
_.t([_.C({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.N("design:type",Boolean)],MF.prototype,"hasMaxNumPollOptions",void 0);_.t([_.x("pollEditorInfoWithDefaults","pollOptionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],MF.prototype,"shouldInitializePoll",null);_.t([_.C(),_.N("design:type",Object)],MF.prototype,"isValidPoll",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],MF.prototype,"createPollRequestInFlight",void 0);_.t([_.C(),_.N("design:type",Object)],MF.prototype,"selected",void 0);_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.N("design:type",Boolean)],MF.prototype,"showQuestionErrorMessage",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"dataChanged",null);_.t([_.m5("shouldInitializePoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"shouldInitializePollChanged",null);_.t([_.m5("isValidPoll"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"isValidPollChanged",null);
_.t([_.m5("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"selectedChanged",null);_.t([_.ai("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],MF.prototype,"handleTextInputChanged",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"handleServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],MF.prototype,"handleServiceRequestCompleted",null);
_.t([_.ai("yt-live-chat-poll-editor-input-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],MF.prototype,"handlePollEditorInputClosed",null);_.t([_.ai("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MF.prototype,"onPickerCancelled",null);MF=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],MF);
_.H(MF,"yt-live-chat-poll-editor-panel-renderer",function(){if(t2D===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Hxg===void 0&&(Hxg=document.createElement("template"));var T=Hxg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);t2D=W}W=t2D;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var V2k;var NRP;var uA=function(){return _.n.apply(this,arguments)||this};
_.R(uA,_.n);uA.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
uA.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Jq.Object.defineProperties(uA.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var W,O;return(W=this.data)==null?void 0:(O=W.title)==null?void 0:O.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var W;return _.xy((W=this.data)==null?void 0:W.onTapCommand)}}});
_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],uA.prototype,"ytEndpointBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uA.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uA.prototype,"itemId",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uA.prototype,"hasPromotion",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],uA.prototype,"innertubeCommand",null);uA=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],uA);
_.H(uA,"yt-live-chat-product-picker-panel-item-view-model",function(){if(NRP===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;V2k===void 0&&(V2k=document.createElement("template"));var T=V2k;b.call(O,T.content.cloneNode(!0),W.content.firstChild);NRP=W}W=NRP;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var M28;var umU;var JB=function(){var W=_.n.apply(this,arguments)||this;W.id="product-picker";W.selected=!1;W.closeButtonId="close-button";W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.R(JB,_.n);_.d=JB.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var W=_.Q(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");W.length&&W[0].focus()};
_.d.onCloseBuyFlow=function(){_.bX(this.hostElement,"picker-cancelled")};
_.d.onCloseClick=function(){_.bX(this.hostElement,"picker-cancelled");var W;((W=this.data)==null?0:W.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.P(this.data.closeButton,_.Kp))};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.bX(this.hostElement,"picker-cancelled")};
JB.prototype.observeSelected=JB.prototype.observeSelected;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],JB.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],JB.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],JB.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],JB.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],JB.prototype,"id",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],JB.prototype,"selected",void 0);_.t([_.C(),_.N("design:type",Object)],JB.prototype,"closeButtonId",void 0);_.t([_.m5("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JB.prototype,"observeSelected",null);
JB=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],JB);
_.H(JB,"yt-live-chat-product-picker-panel-view-model",function(){if(umU===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;M28===void 0&&(M28=document.createElement("template"));var T=M28;b.call(O,T.content.cloneNode(!0),W.content.firstChild);umU=W}W=umU;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var JO5;var cO5;var cC=function(){var W=_.n.apply(this,arguments)||this;W.iconId="";W.icon="";W.disabled=!1;W.systemIcons=_.e("kevlar_system_icons");return W};
_.R(cC,_.n);_.d=cC.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.d.computeIconId=function(W){return W&&W.icon&&W.icon.iconType?W.icon.iconType.toLowerCase():""};
_.d.computeIcon=function(W){return W&&W.icon&&W.icon.iconType?(W=W.icon.iconType.toLowerCase(),(W.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+W):""};
_.d.computeDisabled=function(W){return!!W};
_.d.computeCommand=function(W,O){return O?void 0:W};
_.d.computeTooltip=function(W,O){return O&&W?W:""};
_.d.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],cC.prototype,"ytEndpointBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cC.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cC.prototype,"data",void 0);_.t([_.C({computed:"computeIconId(data)",reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"iconId",void 0);
_.t([_.C({computed:"computeIcon(data)",reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"icon",void 0);_.t([_.C({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"disabled",void 0);_.t([_.C({computed:"computeCommand(data.command, disabled)"}),_.N("design:type",Object)],cC.prototype,"command",void 0);_.t([_.C({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.N("design:type",String)],cC.prototype,"tooltip",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cC.prototype,"systemIcons",void 0);cC=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],cC);
_.H(cC,"yt-live-chat-product-button-renderer",function(){if(cO5===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;JO5===void 0&&(JO5=document.createElement("template"));var T=JO5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);cO5=W}W=cO5;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Fk2;var yO9;var FJ=function(){var W=_.n.apply(this,arguments)||this;W.selected=!1;W.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return W};
_.R(FJ,_.n);_.d=FJ.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.computeId=function(W){return W.id||""};
_.d.onCloseClick=function(){_.bX(this.hostElement,"picker-cancelled")};
_.d.observeSelected=function(){this.selected&&this.hostElement.focus();var W=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");W.length&&W[0].focus()};
_.d.onCloseBuyFlow=function(){_.bX(this.hostElement,"picker-cancelled")};
_.d.onCloseEngageWithAudienceEditorPanels=function(){_.bX(this.hostElement,"picker-cancelled")};
FJ.prototype.observeSelected=FJ.prototype.observeSelected;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],FJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],FJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],FJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],FJ.prototype,"data",void 0);
_.t([_.C({computed:"computeId(data)",reflectToAttribute:!0}),_.N("design:type",String)],FJ.prototype,"id",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],FJ.prototype,"selected",void 0);_.t([_.m5("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FJ.prototype,"observeSelected",null);FJ=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],FJ);
_.H(FJ,"yt-live-chat-product-picker-renderer",function(){if(yO9===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Fk2===void 0&&(Fk2=document.createElement("template"));var T=Fk2;b.call(O,T.content.cloneNode(!0),W.content.firstChild);yO9=W}W=yO9;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Wdg;var Ojg;var ijN;var bjg;var yo=function(){return _.n.apply(this,arguments)||this};
_.R(yo,_.n);yo.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()};
yo.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
yo.prototype.created=function(){this.ids={background:_.g2(),maskOne:_.g2(),maskTwo:_.g2(),gradient:_.g2(),largeBackground:_.g2(),largeGradientOne:_.g2(),largeGradientTwo:_.g2(),largeGradientPath:_.g2()}};
yo.prototype.maybeLoadAnimationBackground=yo.prototype.maybeLoadAnimationBackground;_.t([_.C({value:!1}),_.N("design:type",Boolean)],yo.prototype,"useLargeBackground",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],yo.prototype,"useAnimationBackground",void 0);_.t([_.C({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.N("design:type",Boolean)],yo.prototype,"useRegularBackground",void 0);
_.t([_.C(),_.N("design:type",Object)],yo.prototype,"ids",void 0);_.t([_.C(),_.N("design:type",Object)],yo.prototype,"lottieAnimation",void 0);_.t([_.El("#animation-background"),_.N("design:type",HTMLDivElement)],yo.prototype,"animationBackground",void 0);_.t([_.m5("useAnimationBackground"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yo.prototype,"maybeLoadAnimationBackground",null);
yo=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],yo);
_.H(yo,"yt-live-interactivity-component-background",function(){if(bjg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ijN===void 0&&(ijN=document.createElement("template"));var T=ijN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);bjg=W}W=bjg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var WK=function(){var W=_.n.apply(this,arguments)||this;W.characterCount=0;W.showInputErrorMessage=!1;W.startQnaRequestInFlight=!1;W.modern=_.e("web_button_rework_with_live");W.buttonOverrides={style:"mono",type:"filled"};W.closeButtonOverrides={iconPosition:"icon-only"};W.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return W};
_.R(WK,_.n);_.d=WK.prototype;
_.d.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]]"}}}}}};
_.d.onCharacterCountChanged=function(W){var O,b,T,L,h=(b=_.P(this==null?void 0:(O=this.data)==null?void 0:O.creatorCallForQuestions,x0N))==null?void 0:(T=b.inputField)==null?void 0:(L=T.liveChatTextInputFieldRenderer)==null?void 0:L.maxCharacterLimit,Z,a;h!=null&&(W==null?void 0:(Z=W.detail)==null?void 0:Z.characterCount)!=null&&_.P(this==null?void 0:(a=this.data)==null?void 0:a.startButton,_.s2)&&(O=W.detail.characterCount>h,this.set("data.startButton.buttonRenderer.isDisabled",W.detail.characterCount===
0||O),this.showInputErrorMessage=O)};
_.d.onCloseClick=function(){_.bX(this.hostElement,"picker-cancelled");_.jx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.onPickerCancelled=function(){var W=_.Q(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.setLiveChatRichMessageInput(null)};
_.d.handleOpenQnaStartPanel=function(){var W=_.Q(this.hostElement).querySelector("#qna-creator-text-input-field");W&&W.focus()};
_.d.handleStartButtonAction=function(W){var O=this;if(W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),W=W.detail.args[1])){var b=_.Q(this.hostElement).querySelector("#qna-creator-text-input-field"),T;(b==null?0:(T=b.liveChatRichMessageInput)==null?0:T.textSegments)&&b.liveChatRichMessageInput.textSegments.length!==0&&(T={rich_message:_.qf(b.liveChatRichMessageInput)},_.da(this.hostElement,[W,T]).then(function(){_.bX(O.hostElement,"picker-cancelled")}))}};
_.d.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.d.handleServiceRequestCompleted=function(W){var O;W=W==null?void 0:(O=W.detail)==null?void 0:O.data;(W==null?0:W.actions)&&W.actions.length>0?this.startQnaRequestInFlight=!1:_.jx(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.d.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
WK.prototype.handleServiceRequestError=WK.prototype.handleServiceRequestError;WK.prototype.handleServiceRequestCompleted=WK.prototype.handleServiceRequestCompleted;WK.prototype.handleServiceRequestSent=WK.prototype.handleServiceRequestSent;WK.prototype.onPickerCancelled=WK.prototype.onPickerCancelled;WK.prototype.onCharacterCountChanged=WK.prototype.onCharacterCountChanged;_.t([_.C(),_.N("design:type",Object)],WK.prototype,"characterCount",void 0);
_.t([_.C(),_.N("design:type",Object)],WK.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"showInputErrorMessage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"startQnaRequestInFlight",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],WK.prototype,"modern",void 0);_.t([_.C(),_.N("design:type",Object)],WK.prototype,"buttonOverrides",void 0);
_.t([_.C(),_.N("design:type",Object)],WK.prototype,"closeButtonOverrides",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],WK.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.D(_.Dx.YtLiveChatItemBehavior),_.N("design:type",_.xd)],WK.prototype,"ytLiveChatItemBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],WK.prototype,"ytActionHandlerBehavior",void 0);_.t([_.ai("yt-live-chat-text-input-field-renderer-character-count-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WK.prototype,"onCharacterCountChanged",null);_.t([_.ai("picker-cancelled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"onPickerCancelled",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],WK.prototype,"handleServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WK.prototype,"handleServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],WK.prototype,"handleServiceRequestError",null);WK=_.t([_.G({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],WK);
_.H(WK,"yt-live-chat-qna-start-panel-renderer",function(){if(Ojg===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Wdg===void 0&&(Wdg=document.createElement("template"));var T=Wdg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Ojg=W}W=Ojg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var jEU;var TFg;var O4=function(){return _.n.apply(this,arguments)||this};
_.R(O4,_.n);O4.prototype.dismiss=function(){_.bX(this.hostElement,"yt-live-chat-error-message-dismiss")};
O4.prototype.edit=function(){_.bX(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.t([_.C(),_.N("design:type",Object)],O4.prototype,"data",void 0);O4=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],O4);
_.H(O4,"yt-live-chat-text-actions-error-message-renderer",function(){if(TFg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;jEU===void 0&&(jEU=document.createElement("template"));var T=jEU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);TFg=W}W=TFg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var Ldk;var dK1;var hCk;var SJ9;var ic=function(){var W=_.n.apply(this,arguments)||this;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.R(ic,_.n);ic.prototype.sendReaction=function(){var W,O,b=((W=this.data)==null?void 0:W.emojiId)||((O=this.data)==null?void 0:O.emoteId),T;b&&((T=this.data)==null?0:T.shouldTriggerAnimation)&&_.jx(this.hostElement,"yt-create-user-reaction-animation",[b]);var L;(W=_.xy((L=this.data)==null?void 0:L.onTap))&&_.mw(W,this.hostElement);this.showNewnessDot&&_.jx(this.hostElement,"yt-hide-newness-dot")};
ic.prototype.onClick=function(W){(!W||W.clientX||W.clientY)&&this.sendReaction()};
ic.prototype.onKeyDown=function(W){W.key!=="Enter"&&W.key!==" "||W.repeat||this.sendReaction()};
_.Jq.Object.defineProperties(ic.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!(((W=this.data)==null?0:W.emojiId)||((O=this.data)==null?0:O.emoteId))}}});
_.t([_.C(),_.N("design:type",Object)],ic.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ic.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],ic.prototype,"newnessDotEligible",void 0);_.t([_.x("data.maybeShowNewnessDot"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ic.prototype,"showNewnessDot",null);_.t([_.x("data.emojiId","data.emoteId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ic.prototype,"useYtImage",null);
ic=_.t([_.sl({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],ic);
_.H(ic,"yt-reaction-control-panel-button-view-model",function(){if(SJ9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;hCk===void 0&&(hCk=document.createElement("template"));var T=hCk;b.call(O,T.content.cloneNode(!0),W.content.firstChild);SJ9=W}W=SJ9;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var ZjD;var IYg;var bc=function(){var W=_.n.apply(this,arguments)||this;W.reactionControlPanelExpanded=!1;W.isDarkTheme=document.documentElement.hasAttribute("dark");W.newnessDotEligible=!1;return W};
_.R(bc,_.n);_.d=bc.prototype;_.d.expandedButtonsChanged=function(){var W,O;_.Sl(this.hostElement,{"--expanded-buttons-height":((O=(W=this.expandedButtonsData)==null?void 0:W.length)!=null?O:0)*36+"px"})};
_.d.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}}};
_.d.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.d.onMouseLeave=function(){var W=this;this.collapseTimer=setTimeout(function(){W.reactionControlPanelExpanded=!1},500)};
_.d.onFocusIn=function(){this.onMouseEnter()};
_.d.onFocusOut=function(){this.onMouseLeave()};
_.d.onCollapsedButtonFocusIn=function(){var W=this;setTimeout(function(){var O;(O=W.expandedButtons.querySelector("button"))==null||O.focus()},100)};
_.d.onCollapsedButtonFocusOut=function(W){W.stopPropagation()};
_.Jq.Object.defineProperties(bc.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var W,O;return _.PQ.unsafeClone((W=this.liveReactionsData)==null?void 0:W.emojiButtonData)||((O=this.data)==null?void 0:O.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var W;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((W=this.data)==null||!W.maybeShowNewnessDot)}}});
bc.prototype.expandedButtonsChanged=bc.prototype.expandedButtonsChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],bc.prototype,"ytLiveChatReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bc.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bc.prototype,"reactionControlPanelExpanded",void 0);_.t([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:AmU}),_.N("design:type",Object)],bc.prototype,"liveReactionsData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bc.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],bc.prototype,"newnessDotEligible",void 0);
_.t([_.x("liveReactionsData","data.expandedButtons"),_.N("design:type",Object),_.N("design:paramtypes",[])],bc.prototype,"expandedButtonsData",null);_.t([_.x("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.C({reflectToAttribute:!0}),_.N("design:type",Object),_.N("design:paramtypes",[])],bc.prototype,"showNewnessDot",null);_.t([_.El("#expanded-buttons"),_.N("design:type",HTMLElement)],bc.prototype,"expandedButtons",void 0);
_.t([_.m5("expandedButtonsData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],bc.prototype,"expandedButtonsChanged",null);bc=_.t([_.sl({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],bc);
_.H(bc,"yt-reaction-control-panel-view-model",function(){if(IYg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;ZjD===void 0&&(ZjD=document.createElement("template"));var T=ZjD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);IYg=W}W=IYg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var jj=new _.z7("yt-live-chat"),aYk=Date.parse("2024-7-24"),Tq=function(){var W=_.n.apply(this,arguments)||this;W.emojiManager=_.rw;W.newnessDotEligible=!1;W.newnessDotImpressionCounted=!1;W.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return W};
_.R(Tq,_.n);_.d=Tq.prototype;_.d.emojiCustomizationEnabledChanged=function(){var W;((W=this.data)==null?0:W.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((W=jj.getCreationTime("emoji-customization-count"))&&W<aYk&&jj.set("emoji-customization-count","0"),W=Number(jj.get("emoji-customization-count"))||0,W<3&&(this.newnessDotEligible=!0,jj.set("emoji-customization-count",(W+1).toString())),this.newnessDotImpressionCounted=!0)};
_.d.hideNewnessDot=function(){this.newnessDotEligible=!1;jj.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.d.handleReactionsMute=function(W){var O=_.Bb(),b=_.gd(206221),T={checkboxData:{state:W?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};O&&_.Vw(O,b,T);this.reactionsMuted=W};
_.d.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.d.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}}};
_.Jq.Object.defineProperties(Tq.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return(!((W=this.liveReactionsData)==null||!W.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Tq.prototype.liveReactionsSettingChanged=Tq.prototype.liveReactionsSettingChanged;Tq.prototype.emojiCustomizationEnabledChanged=Tq.prototype.emojiCustomizationEnabledChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rB),_.N("design:type",Object)],Tq.prototype,"ytLiveChatReduxBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Tq.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Tq.prototype,"data",void 0);_.t([_.C(),_.N("design:type",_.kd)],Tq.prototype,"emojiManager",void 0);_.t([_.C(),_.N("design:type",Object)],Tq.prototype,"newnessDotEligible",void 0);_.t([_.C(),_.N("design:type",Object)],Tq.prototype,"newnessDotImpressionCounted",void 0);
_.t([_.C({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:XFU}),_.N("design:type",Boolean)],Tq.prototype,"liveReactionsSetting",void 0);_.t([_.C({selectorArgs:["data.liveReactionsDataEntityKey"],selector:AmU}),_.N("design:type",Object)],Tq.prototype,"liveReactionsData",void 0);_.t([_.C({value:function(){var W=_.e("enable_lwe_web_mute"),O=jj.get("allow-reactions");return O===void 0?!1:!O&&W}}),
_.N("design:type",Boolean)],Tq.prototype,"reactionsMuted",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tq.prototype,"liveReactionsEnabled",null);_.t([_.m5("data.emojiCustomizationEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tq.prototype,"emojiCustomizationEnabledChanged",null);
_.t([_.m5("liveReactionsEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tq.prototype,"liveReactionsSettingChanged",null);Tq=_.t([_.sl({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Tq);
_.H(Tq,"yt-reaction-control-panel-overlay-view-model",function(){if(dK1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Ldk===void 0&&(Ldk=document.createElement("template"));var T=Ldk;b.call(O,T.content.cloneNode(!0),W.content.firstChild);dK1=W}W=dK1;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var mKR={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(W){var O=this.$.pickers.selected;if(O){_.Q(this.hostElement).removeAttribute(O+"-open");var b="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(b="#picker-buttons",O==="emoji"&&_.Q(this.hostElement).querySelector("#emoji-picker-button")&&(b="#emoji-picker-button"));if(b=_.Q(this.hostElement).querySelector(b).querySelector("#"+O))b.active=!1}b=W;O==W&&(b=null);O!=W&&
_.Q(this.hostElement).setAttribute(W+"-open","");this.$.pickers.selected=b;_.jx(this.hostElement,"yt-live-chat-picker-changed",[b])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var LJ=function(){var W=_.n.apply(this,arguments)||this;W.numSentMessages=0;W.timeoutDurationMs=0;W.timeoutMs=0;W.lastTimeoutTimeMs=0;W.pendingMessageId="";W.hasFiredInitialFocusActions=!1;W.isBeforeFocusEnabled=!0;W.id="";W.characterCount=0;W.maxCharacterLimit=0;W.remainingCharacterCount=0;W.inputExpanded=!1;W.buttonOverrides={iconPosition:"icon-only"};W.inReplyPanel=!1;W.countdownRatio=0;W.isTooltipVisible=!1;W.tooltipTimeout=1E4;W.systemIcons=_.e("kevlar_system_icons");W.tallerEmojiPicker=_.e("live_chat_taller_emoji_picker");
W.blockSendMessageWithCountdown=!_.e("live_chat_enable_send_button_in_slow_mode");W.sendReplyMessageInFlight=!1;W.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"};W.onResize=function(){W.maybeToggleCharacterCount()};
return W};
_.R(LJ,_.n);_.d=LJ.prototype;
_.d.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"}}}};
_.d.attached=function(){window.addEventListener("resize",this.onResize)};
_.d.detached=function(){window.removeEventListener("resize",this.onResize)};
_.d.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.d.sendMessage=function(){var W=this,O,b,T,L;return _.I(function(h){if(W.sendDisabled)return h.return();W.isTooltipVisible&&_.jx(W.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(W.data.sendButton&&W.data.sendButton.buttonRenderer){W.input.completeEmojis();O=W.data.sendButton.buttonRenderer.serviceEndpoint;if(!O)return h.return();T=((b=_.P(O,_.EHU))==null?void 0:b.clientIdPrefix)||"";L={client_message_id:T+String(W.numSentMessages++),rich_message:_.qf(W.input.liveChatRichMessageInput)};
W.pendingMessageId=L.client_message_id;W.inReplyPanel&&(W.sendReplyMessageInFlight=!0);_.da(W.hostElement,[O,L]);W.input.setLiveChatRichMessageInput(null)}_.aD(h)})};
_.d.handleSendButtonAction=function(W){W.detail.actionName==="yt-service-request"&&(W.stopPropagation(),this.sendMessage())};
_.d.onSendCompleted=function(W,O){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(W=this.get("timeoutDurationUsec",O.data))&&this.handleTimeout(Number(W)/1E3);this.errorMessage=this.get("errorMessage",O.data);this.pendingMessageId=""};
_.d.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.jx(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.d.handlePickerButtonToggle=function(W){W=W.detail.targetId;this.ytPickerBehavior.togglePicker_(W);if(W==="emoji")this.input.focus();else if(W==="qna-start-panel"){var O,b;(O=_.Q(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(b=O.querySelector("#qna-creator-text-input-field"))==null||b.focus()}};
_.d.onComponentReplaced=function(W){var O,b;W.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((O=W.replacement.liveChatMessageInputRenderer)==null?0:(b=O.headerRenderer)==null?0:b.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.d.onEmojiSelect=function(W){this.input.focus();this.input.insertEmoji(W.detail)};
_.d.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.d.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.jx(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.jx(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.d.onOpenPopupAction=function(W,O){var b=this;O===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.jx(b.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.d.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.d.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.d.focusChanged=function(){this.maybeToggleCharacterCount()};
_.d.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var W=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",W>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.d.computeId=function(){return this.data&&this.data.targetId||""};
_.d.computeSendDisabled=function(W,O,b,T){W=!!(this.blockSendMessageWithCountdown&&b||!W||O&&W>O||T);(O=_.Q(this.hostElement).querySelector("#send-button"))&&O.children.length&&(O.children[0].disabled=W);return W};
_.d.handleTimeout=function(W){this.timeoutDurationMs=this.timeoutMs=W;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.d.updateTimeout=function(W){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(W-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=W,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.d.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.d.onErrorMessageEdit=function(W){this.input.setLiveChatRichMessageInput(W.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.d.errorMessageChanged=function(){var W=this;_.qe(function(){_.jx(W.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.d.computeAuthorNameColor=function(W){var O;if(_.e("live_chat_author_name_color_usernames")&&(W==null?0:(O=W.authorName)==null?0:O.simpleText))return _.mQX(_.Yqh(W.authorName.simpleText));if(_.e("live_chat_seed_color_usernames")&&(W==null?0:W.authorSeedColorArgb))return _.mQX(_.h4(W.authorSeedColorArgb));if(_.e("live_chat_colored_usernames"))return"#cc0000";var b;return _.e("live_chat_simple_color_usernames")&&(W==null?0:(b=W.authorName)==null?0:b.simpleText)&&(W==null?0:W.authorUsernameColorLight)&&
(W==null?0:W.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.h4(W.authorUsernameColorDark):_.h4(W.authorUsernameColorLight):""};
_.d.onIsTooltipVisibleChanged=function(){var W=_.Q(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){W.hidden=!1;W.setAttribute("role","alert")},0):(W.hidden=!0,W.removeAttribute("role"))};
_.d.onFocusedChanged=function(W){this.inputFocused=W.detail.value};
_.Jq.Object.defineProperties(LJ.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 W;return!((W=this.data)==null||!W.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.pickers)==null?void 0:O.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return W?this.ytRendererBehavior.getSimpleString(W):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
LJ.prototype.onIsTooltipVisibleChanged=LJ.prototype.onIsTooltipVisibleChanged;LJ.prototype.errorMessageChanged=LJ.prototype.errorMessageChanged;LJ.prototype.onErrorMessageEdit=LJ.prototype.onErrorMessageEdit;LJ.prototype.onErrorMessageDismiss=LJ.prototype.onErrorMessageDismiss;LJ.prototype.focusChanged=LJ.prototype.focusChanged;LJ.prototype.characterCountChanged=LJ.prototype.characterCountChanged;LJ.prototype.onEmojiSelect=LJ.prototype.onEmojiSelect;LJ.prototype.handlePickerButtonToggle=LJ.prototype.handlePickerButtonToggle;
LJ.prototype.onSendError=LJ.prototype.onSendError;LJ.prototype.onSendCompleted=LJ.prototype.onSendCompleted;LJ.prototype.sendMessage=LJ.prototype.sendMessage;LJ.prototype.dataChanged=LJ.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],LJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(mKR.YtPickerBehavior),_.N("design:type",Object)],LJ.prototype,"ytPickerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Dz.YtLiveChatTooltipTargetingBehavior),_.N("design:type",Object)],LJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"hasFiredInitialFocusActions",void 0);
_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"isBeforeFocusEnabled",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"data",void 0);_.t([_.C({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"id",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"characterCount",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"maxCharacterLimit",void 0);
_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"remainingCharacterCount",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"inputExpanded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],LJ.prototype,"inputFocused",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],LJ.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.t([_.C(),_.N("design:type",_.ql)],LJ.prototype,"participantsManager",void 0);
_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"buttonOverrides",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"inReplyPanel",void 0);_.t([_.x("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"sendDisabled",null);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"countdownRatio",void 0);
_.t([_.x("countdownRatio"),_.N("design:type",Number),_.N("design:paramtypes",[])],LJ.prototype,"countdownStrokeDashOffset",null);_.t([_.x("countdownRatio"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"countdownActive",null);_.t([_.x("data.interactionMessage"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"hasInteractionMessage",null);
_.t([_.x("data.emojiPickerButton"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"hasEmojiPickerButton",null);_.t([_.x("data, characterCount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"showAvatar",null);_.t([_.x("data.pickers"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LJ.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"errorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"genericErrorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"isTooltipVisible",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"tooltipTimeout",void 0);_.t([_.x("data.onInitialFocusCommand"),_.N("design:type",String),_.N("design:paramtypes",[])],LJ.prototype,"tooltipMessage",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"tallerEmojiPicker",void 0);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],LJ.prototype,"authorNameColor",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LJ.prototype,"blockSendMessageWithCountdown",void 0);_.t([_.C(),_.N("design:type",Object)],LJ.prototype,"sendReplyMessageInFlight",void 0);
_.t([_.El("#input"),_.N("design:type",_.zS$)],LJ.prototype,"input",void 0);_.t([_.El("#count"),_.N("design:type",HTMLElement)],LJ.prototype,"count",void 0);_.t([_.El("#input-container"),_.N("design:type",HTMLElement)],LJ.prototype,"inputContainer",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"dataChanged",null);
_.t([_.ai("yt-live-chat-send-message"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],LJ.prototype,"sendMessage",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.Mf]),_.N("design:returntype")],LJ.prototype,"onSendCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"onSendError",null);
_.t([_.ai("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],LJ.prototype,"handlePickerButtonToggle",null);_.t([_.ai("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],LJ.prototype,"onEmojiSelect",null);
_.t([_.m5("characterCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"characterCountChanged",null);_.t([_.m5("inputFocused"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"focusChanged",null);_.t([_.ai("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"onErrorMessageDismiss",null);
_.t([_.ai("yt-live-chat-error-message-edit"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],LJ.prototype,"onErrorMessageEdit",null);_.t([_.m5("errorMessage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"errorMessageChanged",null);_.t([_.m5("isTooltipVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LJ.prototype,"onIsTooltipVisibleChanged",null);
LJ=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],LJ);
_.H(LJ,"yt-live-chat-message-input-renderer",function(){if(xOg===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;DOZ===void 0&&(DOZ=document.createElement("template"));var T=DOZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);xOg=W}W=xOg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var YJ1;var Erg;var d_=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.firedOnClickCommand=!1;W.inReplyPanel=!1;return W};
_.R(d_,_.n);
d_.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"}}}};
d_.prototype.onButtonToggle=function(W){W.target.disabled||this.ytPickerBehavior.togglePicker_(W.detail.targetId)};
d_.prototype.onClick=function(){var W=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.jx(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return W.firedOnClickCommand=!1},5E3))};
_.Jq.Object.defineProperties(d_.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.panels)==null?void 0:O.find(function(b){return b.liveChatProductPickerPanelViewModel}))!==void 0}}});
d_.prototype.onButtonToggle=d_.prototype.onButtonToggle;_.t([_.D(mKR.YtPickerBehavior),_.N("design:type",Object)],d_.prototype,"ytPickerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],d_.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Object)],d_.prototype,"firedOnClickCommand",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],d_.prototype,"inReplyPanel",void 0);_.t([_.x("data.pickers"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d_.prototype,"hasProductPickerPanelViewModel",null);
_.t([_.ai("yt-live-chat-icon-toggle-button-renderer-toggle"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],d_.prototype,"onButtonToggle",null);d_=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],d_);
_.H(d_,"yt-live-chat-restricted-participation-renderer",function(){if(Erg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;YJ1===void 0&&(YJ1=document.createElement("template"));var T=YJ1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Erg=W}W=Erg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var hk=function(){var W=_.n.apply(this,arguments)||this;W.genericErrorMessage=_.VV("Error, try again.");W.inReplyPanel=!1;W.hideBorder=!1;return W};
_.R(hk,_.n);hk.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}}}}}};
_.Jq.Object.defineProperties(hk,{template:{configurable:!0,enumerable:!0,get:function(){return Qt1()}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hk.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],hk.prototype,"genericErrorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],hk.prototype,"inReplyPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hk.prototype,"hideBorder",void 0);
hk=_.t([_.sl({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],hk);_.H(hk,"yt-live-chat-engagement-panel-input-renderer",function(){return Qt1()},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var wog,AF9;wog=_.gd(115994);AF9=_.gd(115993);_.Sj=function(W,O,b){var T=this;var L=b.dragDownAction;this.layer=0;this.JSC$19907_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.JSC$19907_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.fullscreen=!1;var h=_.A4();_.Tn(h,wog,this.layer);_.Tn(h,AF9,this.layer);this.dragDownAction=function(){L();_.fd(h,{visualElement:T.fullscreen?wog:AF9})};
this.gesture=new _.Za(W,O,this.JSC$19907_watchConfig,"pandown");this.attach()};
_.Sj.prototype.attach=function(){this.gesture.attach()};
_.Sj.prototype.detach=function(){this.gesture.detach()};
_.Sj.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$19907_watchFullScreenConfig:this.JSC$19907_watchConfig};var Xo1={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(W){if(W&&W.length==1&&Array.isArray(W[0].loggingUrls)){W=_.PQ.unsafeClone(W[0]);var O=this.macros||{},b=this.getAdModuleClient_();if(!b)return _.ZM();W.loggingUrls.forEach(function(T){if(T.baseUrl){var L=T.baseUrl;var h=O;h=h===void 0?{}:h;L=b.getOptions().includes("replaceUrlMacros")?_.MRH(b,"replaceUrlMacros",{url:L,additionalMapping:h}):L;T.baseUrl=L}},this);
W=[W]}return _.da(this.hostElement,W)},
getAdModuleClient_:function(){var W=_.ya(this);return W?(W=W.getPlayer())?new _.Aj(W):null:null}}]};var UKk;var ZJ=function(){var W=_.n.apply(this,arguments)||this;W.isCollapsed=!1;W.modernPanels=_.e("kevlar_watch_modern_panels");W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return W};
_.R(ZJ,_.n);_.d=ZJ.prototype;_.d.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.onDonateTap=function(){var W=this.get("data.donateButton.buttonRenderer.command");if(W){var O=_.Bb(),b=this.get("data.donateButton.buttonRenderer.trackingParams");O&&b&&_.Vw(O,_.Pi(b));this.ytOpenPopupBehavior.openPopup(W)}};
_.d.onShowMore=function(){this.isCollapsed=!1;var W=_.Bb(),O=this.get("data.expandButton.buttonRenderer.trackingParams");W&&O&&_.Vw(W,_.Pi(O))};
_.d.onShowLess=function(){this.isCollapsed=!0};
_.d.dataChanged=function(){_.Sl(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.handleUpdate=function(W){if(W=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",W))this.set("data.startLabel",W.startLabel),this.set("data.endLabel",W.endLabel),this.set("data.progress",W.progress),this.set("data.amountRaisedLabel",W.amountRaisedLabel),this.dataChanged()};
_.d.handleOpenPopupAction=function(W){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",W)&&_.jx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.d.computeHeaderBackgroundUrl=function(W,O){if(W)return O?W.headerBackgroundDarkUrl:W.headerBackgroundUrl};
_.d.isProgressBarVisible=function(W){return!(!W||W.progress===void 0)};
_.d.headerBackgroundClass=function(){return _.Cv("HTML_DIR")==="rtl"?"flip":""};
ZJ.prototype.dataChanged=ZJ.prototype.dataChanged;_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],ZJ.prototype,"ytOpenPopupBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ZJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],ZJ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ZJ.prototype,"isCollapsed",void 0);_.t([_.C({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.N("design:type",String)],ZJ.prototype,"headerBackgroundUrl",void 0);_.t([_.C(),_.N("design:type",Boolean)],ZJ.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ZJ.prototype,"modernPanels",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZJ.prototype,"dataChanged",null);ZJ=_.t([_.G({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],ZJ);
_.H(ZJ,"ytd-donation-shelf-renderer",function(){if(UKk!==void 0)return UKk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UKk=W},{mode:1});var lYD;var Ih=function(){return _.n.apply(this,arguments)||this};
_.R(Ih,_.n);_.t([_.C(),_.N("design:type",Object)],Ih.prototype,"data",void 0);Ih=_.t([_.G({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Ih);
_.H(Ih,"ytd-donation-unavailable-renderer",function(){if(lYD!==void 0)return lYD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lYD=W},{mode:1});var eCB;var ah=function(){return _.n.apply(this,arguments)||this};
_.R(ah,_.n);ah.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ah.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ah.prototype,"data",void 0);ah=_.t([_.G({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],ah);
_.H(ah,"ytd-limited-state-message-renderer",function(){if(eCB!==void 0)return eCB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return eCB=W},{mode:1});var PuN;var my=function(){return _.n.apply(this,arguments)||this};
_.R(my,_.n);my.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
my.prototype.onTap=function(W){var O=this.data&&this.data.endpoint;O&&!_.un(_.Nd(W),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.bX(this.hostElement,"yt-navigate",{endpoint:O})};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],my.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],my.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],my.prototype,"data",void 0);my=_.t([_.G({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],my);
_.H(my,"ytd-autotagging-metadata-renderer",function(){if(PuN!==void 0)return PuN;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return PuN=W},{mode:1});var poZ;var Yk=function(){return _.n.apply(this,arguments)||this};
_.R(Yk,_.n);Yk.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yk.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yk.prototype,"data",void 0);Yk=_.t([_.G({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Yk);
_.H(Yk,"ytd-autotagging-metadata-row-renderer",function(){if(poZ!==void 0)return poZ;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return poZ=W},{mode:1});var RCB;var Kd7;var E4=function(){var W=_.n.apply(this,arguments)||this;W.engagementPanelContent=!1;return W};
_.R(E4,_.n);E4.prototype.computeHasDividerLine=function(W,O){return W&&!O};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],E4.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.N("design:type",Boolean)],E4.prototype,"hasDividerLine",void 0);_.t([_.C(),_.N("design:type",Object)],E4.prototype,"engagementPanelContent",void 0);
E4=_.t([_.G({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],E4);
_.H(E4,"ytd-metadata-row-header-renderer",function(){if(Kd7!==void 0)return Kd7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Kd7=W},{mode:1});var vr8;var w_=function(){return _.n.apply(this,arguments)||this};
_.R(w_,_.n);w_.prototype.computeHasDividerLine=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],w_.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],w_.prototype,"hasDividerLine",void 0);w_=_.t([_.G({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],w_);
_.H(w_,"ytd-metadata-row-renderer",function(){if(vr8!==void 0)return vr8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return vr8=W},{mode:1});var grN;var Ak=function(){return _.n.apply(this,arguments)||this};
_.R(Ak,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ak.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ak.prototype,"data",void 0);Ak=_.t([_.G({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ak);
_.H(Ak,"ytd-metadata-with-image-row-renderer",function(){if(grN!==void 0)return grN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return grN=W},{mode:1});var org;var X3=function(){var W=_.n.apply(this,arguments)||this;W.rounded=!0;W.fixie=!1;W.fullWidth=!1;return W};
_.R(X3,_.n);_.d=X3.prototype;_.d.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.onDataChanged=function(){var W=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(O){W.onEndpointLinkKeyPress(O)}))};
_.d.onEndpointLinkKeyPress=function(W){W.target===this.endpointLink&&W.keyCode===13&&_.bX(this.hostElement,"click")};
_.d.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var W;if((W=this.data)==null?0:W.endpoint)_.Sx(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.d.onYtNavigate=function(W){this.endpointHref||(W.stopPropagation(),W.preventDefault())};
_.d.onInformationButtonContainerClick=function(W){W.target.id!=="information-button-container"&&(W.stopPropagation(),W.preventDefault())};
_.d.computeStyle=function(W){return W};
_.d.computeIsThumbnailStyle=function(W){return W==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.d.computeThumbnailWidth=function(W){switch(W){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}};
_.d.computeThumbnailObjectFit=function(W){switch(W){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Jq.Object.defineProperties(X3.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?0:W.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
X3.prototype.onYtNavigate=X3.prototype.onYtNavigate;X3.prototype.onClick=X3.prototype.onClick;X3.prototype.onDataChanged=X3.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],X3.prototype,"componentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],X3.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],X3.prototype,"componentStyle",void 0);_.t([_.C({computed:"computeIsThumbnailStyle(data.style)"}),_.N("design:type",Boolean)],X3.prototype,"isThumbnailStyle",void 0);_.t([_.C({computed:"computeThumbnailObjectFit(data.style)"}),_.N("design:type",String)],X3.prototype,"thumbnailObjectFit",void 0);
_.t([_.C({computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],X3.prototype,"thumbnailWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],X3.prototype,"rounded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],X3.prototype,"fixie",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],X3.prototype,"fullWidth",void 0);_.t([_.El("#endpoint-link"),_.N("design:type",HTMLAnchorElement)],X3.prototype,"endpointLink",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X3.prototype,"onDataChanged",null);_.t([_.x("data.endpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],X3.prototype,"endpointHref",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],X3.prototype,"onClick",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],X3.prototype,"onYtNavigate",null);X3=_.t([_.G({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],X3);
_.H(X3,"ytd-rich-metadata-renderer",function(){if(org!==void 0)return org;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return org=W},{mode:_.Lb("kevlar_poly_si_batch_j075")?1:2});var QE5;var U4=function(){var W=_.n.apply(this,arguments)||this;W.fixie=!1;W.fullWidth=!1;return W};
_.R(U4,_.n);U4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
U4.prototype.computeHasDividerLine=function(W){return W};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],U4.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.N("design:type",Boolean)],U4.prototype,"hasDividerLine",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],U4.prototype,"fixie",void 0);_.t([_.C(),_.N("design:type",Object)],U4.prototype,"fullWidth",void 0);
U4=_.t([_.G({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],U4);
_.H(U4,"ytd-rich-metadata-row-renderer",function(){if(QE5!==void 0)return QE5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return QE5=W},{mode:1});var lc=function(){var W=_.n.apply(this,arguments)||this;W.engagementPanelContent=!1;W.fixie=!1;W.fullWidth=!1;return W};
_.R(lc,_.n);
lc.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"}}}};
lc.prototype.computeCollapsibleItems=function(W,O,b){return W===void 0||O===void 0||b===void 0||b?[]:W.slice(O)};
lc.prototype.computeAlwaysShownItems=function(W,O){return W&&W.length?W.slice(0,O):[]};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lc.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],lc.prototype,"collapsed",void 0);
_.t([_.C({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.N("design:type",Array)],lc.prototype,"alwaysShownItems",void 0);_.t([_.C({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.N("design:type",Array)],lc.prototype,"collapsibleItems",void 0);_.t([_.C(),_.N("design:type",Object)],lc.prototype,"engagementPanelContent",void 0);_.t([_.C(),_.N("design:type",Object)],lc.prototype,"fixie",void 0);
_.t([_.C(),_.N("design:type",Object)],lc.prototype,"fullWidth",void 0);lc=_.t([_.G({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],lc);
_.H(lc,"ytd-metadata-row-container-renderer",function(){if(RCB!==void 0)return RCB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return RCB=W},{mode:1});var kag;var ej=function(){var W=_.n.apply(this,arguments)||this;W.currentPageUrl="";W.baseUrl="";W.isHiddenByUser=null;W.hidden=!1;W.showAboveScrim=!1;W.watchNextGrid=_.e("kevlar_watch_grid");W.modernButtons=_.e("web_modern_buttons");W.roundedContainer=!0;W.noBorder=!1;W.roundBackground=!_.e("live_chat_round_background_killswitch");W.overflowHideChat=_.e("live_chat_overflow_hide_chat");W.forceDarkTheme=!1;W.theaterWatchWhile=!1;W.isListeningForPlayerProgress=!1;W.JSC$19943_playerEvents=new Map;W.isFrameReady=
!1;W.player=null;W.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 W};
_.R(ej,_.n);_.d=ej.prototype;_.d.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.TU(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.d.created=function(){var W=this;this.handleIframeEventListener=function(O){W.handleIframeEvent(O)};
this.handleKeyboardEventListener=function(O){W.handleKeyboardEvent(O)};
this.JSC$19943_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19943_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19943_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19943_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19943_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.d.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()};
_.d.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};
_.d.computeBaseUrl=function(W){var O="/live_chat";this.isChatReplay()&&(O="/live_chat_replay");return _.cx(_.JY(_.uE(_.tV(W),O),null),"").toString()};
_.d.dataChanged=function(){_.e("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.d.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var W=this.url;if(this.isChatReplay()&&this.player){var O=Math.floor(this.player.getProgressState().current*1E3);W=_.VC(_.tV(W),"playerOffsetMs",O.toString()).toString()}O=this.chatframe;try{var b=W==="about:blank"?_.ZoO:_.l7(W),T=O.contentDocument.location,L=_.Kz(b);L!==void 0&&T.replace(L)}catch(h){O.src=W}}};
_.d.collapsedChanged=function(){_.bX(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.d.handleIframeEvent=function(W){if(W&&this.baseUrl.startsWith(W.origin)&&W.source===this.chatframe.contentWindow&&_.LH(W.data))if(W.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(W);else if(W.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(W.data["yt-show-feedback-dialog"]){var O=_.iq().resolve(_.OT(_.xxq));if(O){var b=W.ports,T;b&&b.length&&(T=function(){b[0].postMessage({})});
W=W.data["yt-show-feedback-dialog"];O.showFeedbackDialog(W.customProductData,W.feedbackContent,T,W.bucket)}}else if(W.data["yt-show-survey"])_.bX(this.hostElement,"yt-show-survey",W.data["yt-show-survey"]);else if(W.data["yt-purchase-membership"])_.iq().resolve(_.bq).resolveCommand(W.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(W.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(W.data["yt-tunnel-out-live-service-request"]);else if(W.data["yt-user-activity"])_.iy();
else if(W.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(W.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(W.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(W.data["yt-open-popup"]);else if(W.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(W.data["yt-log-flow-logging-event-command"]);else if(W.data["yt-hide-live-chat"])this.onShowHideChat();else W.data["yt-report-moderation-state-log"]&&
this.player&&(O={cpn:this.player.getVideoData().cpn},_.BZ("liveChatBeingModerated",O))};
_.d.attachLiveChatResponseVeTrackingParams=function(W){W=_.Pi(W);var O=_.Bb(),b=_.GT("liveChatRenderer.trackingParams",this.data);O&&b&&_.fV(O,_.Pi(b),W)};
_.d.handleBuyflowMessages=function(W){var O=W.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,b=W.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,T=W.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.hZ8(_.j6(_.VB),O.replace(/-/g,"+").replace(/_/g,"/"),function(L){W.ports[0].postMessage({success:!0,buyFlowResponse:L})},void 0,function(L){W.ports[0].postMessage({success:!1,
error:L&&L.message||"Buyflow rejected without error."})},_.Xt().get("hl"),void 0,function(){W.ports[0].postMessage({closed:!0})},b,T)};
_.d.setupPlayerProgressRelay=function(){var W=this;if(!this.isListeningForPlayerProgress){var O=_.Wm();O!=null&&O.getPlayerPromise&&(O.getPlayerPromise().then(function(b){W.playerApiReady(b)}),this.isListeningForPlayerProgress=!0)}};
_.d.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.d.playerApiReady=function(W){this.setPlayer(W)};
_.d.playerProgressHandler=function(){if(this.player){var W=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":W.current})}};
_.d.playerAdStartHandler=function(W){this.postToContentWindow({"yt-player-ad-start":W})};
_.d.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.d.playerStateChangeHandler=function(W){this.postToContentWindow({"yt-player-state-change":W})};
_.d.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19943_playerEvents);W&&(this.player=W,this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19943_playerEvents),_.bX(this.hostElement,"player-api-ready"))};
_.d.liveChatPageUrl=function(W,O,b,T){return!b||O?"about:blank":b.liveChatRenderer?(O=_.tV(this.currentPageUrl).JSC$8032_queryData_,IER(O),W=_.tV(W),O.add("continuation",b.liveChatRenderer.continuations[0].reloadContinuationData.continuation),b=_.K_()==="USER_INTERFACE_THEME_DARK",(T||b)&&O.add("dark_theme","true"),_.JY(W,O),T=_.tV(W.toString()),b=T.JSC$8032_queryData_,"SESSION_INDEX"in _.Dk&&(b.add("authuser",_.Cv("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Dk&&b.add("pageId",_.Cv("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Dk&&b.add("sdc",_.Cv("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),T.toString()):""};
_.d.isCollapsed=function(W,O){return O!==null?O:this.isChatReplay()||W&&W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!0:W?W.liveChatRenderer?W.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.e("live_chat_hide_premiere_replay_message")||W.conversationBarRenderer&&W.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.d.isHidden=function(W,O,b){var T=O&&O.conversationBarRenderer&&O.conversationBarRenderer.availabilityMessage,L=O&&O.liveChatRenderer&&O.liveChatRenderer.showHideButton,h=O&&O.liveChatRenderer&&O.liveChatRenderer.showButton;return b&&W&&!T&&!h||!b&&W&&!T&&!L?!0:O&&O.liveChatRenderer&&O.liveChatRenderer.initialDisplayState?O.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.d.computeButtonOverride=function(W,O){if(W&&O)return{type:"outline"}};
_.d.setCollapsedState=function(W){_.P(W,_.OOH)&&(this.isHiddenByUser=!!_.P(W,_.OOH).collapsed,!this.isHiddenByUser&&_.e("enable_teaser_framework_web_client")&&_.jx(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.d.forwardReduxActionToIframe=function(W){this.postToContentWindow({"yt-live-chat-forward-redux-action":W})};
_.d.onLoopRangeChange=function(W){this.showAboveScrim=!(W==null||!W.postId)};
_.d.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.d.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.d.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.d.sendDarkThemePostMessage=function(W){this.postToContentWindow({"yt-live-chat-set-dark-theme":W})};
_.d.onLiveChatBuyFlowCallback=function(W){this.postToContentWindow({"yt-live-chat-buy-flow-callback":W})};
_.d.handleKeyboardEvent=function(W){(0,_.PQ.containsValue)(Zx2,W.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:W.type,keyCode:W.keyCode}})};
_.d.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.d.postToContentWindow=function(W){if(this.isFrameReady)try{var O=window.location.protocol+"//"+window.location.host,b;(b=this.chatframe)!=null&&b.contentWindow?this.chatframe.contentWindow.postMessage(W,O):_.z5(new _.pu("Tried posting a message to an iframe with no content window",W))}catch(T){_.Dt(T)}};
_.d.shouldHideChatFrame=function(W){return W&&_.e("hide_live_chat_button_when_collapsed")};
_.Jq.Object.defineProperties(ej.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.e("live_chat_overflow_hide_chat")||_.e("web_watch_chat_hide_button_killswitch"))return _.e("live_chat_overflow_hide_chat");var W,O,b,T;return!!((W=this.data)==null?0:(O=W.liveChatRenderer)==null?0:(b=O.header)==null?0:(T=b.liveChatHeaderRenderer)==null?0:T.collapseButton)}}});
ej.prototype.collapsedChanged=ej.prototype.collapsedChanged;ej.prototype.urlChanged=ej.prototype.urlChanged;ej.prototype.dataChanged=ej.prototype.dataChanged;ej.prototype.onShowHideChat=ej.prototype.onShowHideChat;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ej.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ej.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],ej.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],ej.prototype,"ytOpenPopupBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ej.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ej.prototype,"currentPageUrl",void 0);
_.t([_.C({computed:"computeBaseUrl(currentPageUrl,data)"}),_.N("design:type",Object)],ej.prototype,"baseUrl",void 0);_.t([_.C({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.N("design:type",String)],ej.prototype,"url",void 0);_.t([_.C(),_.N("design:type",Object)],ej.prototype,"isHiddenByUser",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.N("design:type",Object)],ej.prototype,"hidden",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.N("design:type",Boolean)],ej.prototype,"collapsed",void 0);_.t([_.C({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.N("design:type",Boolean)],ej.prototype,"hideChatFrame",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"showAboveScrim",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"watchNextGrid",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ej.prototype,"modernButtons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"noBorder",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ej.prototype,"roundBackground",void 0);
_.t([_.C({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.N("design:type",Object)],ej.prototype,"toggleButtonOverride",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],ej.prototype,"overflowHideChat",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"forceDarkTheme",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ej.prototype,"enableShowWithoutHideChatButton",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ej.prototype,"theaterWatchWhile",void 0);_.t([_.El("#chatframe"),_.N("design:type",HTMLIFrameElement)],ej.prototype,"chatframe",void 0);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"onShowHideChat",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"dataChanged",null);
_.t([_.m5("url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"urlChanged",null);_.t([_.m5("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ej.prototype,"collapsedChanged",null);ej=_.t([_.G({is:"ytd-live-chat-frame",disableElementRegistration:!0})],ej);
_.H(ej,"ytd-live-chat-frame",function(){if(kag!==void 0)return kag;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kag=W},{mode:1});var sE9;var PK=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_modern_buttons");W.buttonOverrides={style:"call-to-action",type:"filled"};return W};
_.R(PK,_.n);PK.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=_.zF(this.data.backgroundColor)))};
PK.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var W=this.getFormattedStringLoggingDirectives(this.data.headline);W&&this.rendererBehavior.logExplicitClick(W)}};
PK.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var W=this.getFormattedStringLoggingDirectives(this.data.description);W&&this.rendererBehavior.logExplicitClick(W)}};
PK.prototype.getFormattedStringLoggingDirectives=function(W){return W&&W.runs&&W.runs.length>0&&W.runs[0]&&W.runs[0].loggingDirectives?W.runs[0].loggingDirectives:null};
PK.prototype.dataChanged=PK.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PK.prototype,"rendererBehavior",void 0);_.t([_.D(Xo1.YtMacroReplacementBehavior),_.N("design:type",Object)],PK.prototype,"macroReplacementBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PK.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],PK.prototype,"navigationEndpoint",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],PK.prototype,"enableColors",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],PK.prototype,"modern",void 0);_.t([_.C(),_.N("design:type",Object)],PK.prototype,"buttonOverrides",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PK.prototype,"dataChanged",null);PK=_.t([_.G({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],PK);
_.H(PK,"ytd-action-basic-immersive-content-renderer",function(){if(sE9!==void 0)return sE9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return sE9=W},{mode:1});var BFU;var rFU;var pJ=function(){return _.n.apply(this,arguments)||this};
_.R(pJ,_.n);pJ.prototype.dataChanged=function(){var W;((W=this.data)==null?void 0:W.backgroundColor)!==void 0&&_.Sl(this.hostElement,{"--bgu-color":_.zF(this.data.backgroundColor)})};
pJ.prototype.onImageTileClick=function(){var W;((W=this.data)==null?0:W.navigationEndpoint)&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var O;((O=this.data)==null?0:O.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Jq.Object.defineProperties(pJ.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.data)==null?void 0:W.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 W;return((W=this.data)==null?void 0:W.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var W,O,b;if(((W=this.data)==null?void 0:(O=W.detailsLine)==null?void 0:O.texts)!=null&&((b=this.data)==null?void 0:b.detailsLine.texts.length)>0){var T;return(T=this.data)==null?void 0:T.detailsLine.texts.map(function(L){return L.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var W,O,b;if(((W=this.data)==null?void 0:(O=W.optionalDetailsLine)==null?void 0:O.texts)!=null&&((b=this.data)==null?void 0:b.optionalDetailsLine.texts.length)>0){var T;return(T=this.data)==null?void 0:T.optionalDetailsLine.texts.map(function(L){return L.text}).join("")}return null}}});
pJ.prototype.dataChanged=pJ.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pJ.prototype,"rendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],pJ.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pJ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.backgroundColor"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pJ.prototype,"hasBackgroundColor",null);
_.t([_.x("data.objectFit"),_.N("design:type",Object),_.N("design:paramtypes",[])],pJ.prototype,"getObjectFit",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.tileRenderingStyle"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],pJ.prototype,"hasTileMetadata",null);_.t([_.x("data.detailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],pJ.prototype,"getSecondaryDetails",null);
_.t([_.x("data.optionalDetailsLine"),_.N("design:type",Object),_.N("design:paramtypes",[])],pJ.prototype,"getOptionalDetails",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pJ.prototype,"dataChanged",null);pJ=_.t([_.G({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],pJ);
_.H(pJ,"ytd-image-tile-renderer",function(){if(rFU!==void 0)return rFU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rFU=W},{mode:1});var DK2;var Rh=function(){return _.n.apply(this,arguments)||this};
_.R(Rh,_.n);Rh.prototype.getOpenLinkIcon=function(){return _.e("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Rh.prototype.onSitelinkTap=function(){_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.e("kevlar_command_handler_migration_killswitch"))_.Sx(this.hostElement,this.data.clickCommands,this.hostElement);else for(var W=_.S(this.data.clickCommands),O=W.next();!O.done;O=W.next())this.ytComponentBehavior.resolveCommand(O.value)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rh.prototype,"rendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rh.prototype,"data",void 0);Rh=_.t([_.G({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Rh);
_.H(Rh,"ytd-sitelink-renderer",function(){if(DK2!==void 0)return DK2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DK2=W},{mode:1});var KJ=function(){var W=_.n.apply(this,arguments)||this;W.paddingFix=_.e("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.R(KJ,_.n);KJ.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"}}}};
KJ.prototype.dataChanged=function(){var W=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;W.ytMacroReplacementBehavior.sendServiceRequestAction([O])})};
KJ.prototype.shouldHideFooter=function(W){return!(W&&_.e("use_ads_engagement_panel_desktop_footer_cta"))};
_.Jq.Object.defineProperties(KJ.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((O=this.data)==null?void 0:O.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var T;return(T=_.P(b,w4g))==null?void 0:T.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.imageTileRenderers)===void 0||((O=this.data)==null?void 0:O.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(b){var T;return((T=_.P(b,w4g))==null?void 0:T.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
KJ.prototype.dataChanged=KJ.prototype.dataChanged;_.t([_.D(Xo1.YtMacroReplacementBehavior),_.N("design:type",Object)],KJ.prototype,"ytMacroReplacementBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KJ.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KJ.prototype,"paddingFix",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KJ.prototype,"removeBorderFromImageTiles",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.imageTileRenderers"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],KJ.prototype,"useFooteredMetadataRenderingStyle",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KJ.prototype,"dataChanged",null);KJ=_.t([_.G({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],KJ);
_.H(KJ,"ytd-action-engagement-panel-content-renderer",function(){if(BFU!==void 0)return BFU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BFU=W},{mode:1});var xKP;var zC5=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});return _.E("ad-grid-card-image-full-metadata-view-model",{class:function(){var T;return((T=O().interaction)==null?0:T.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:W,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(T){return _.E(_.hd,{data:T.data,
customCommandResolver:b})}})),_.E("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.E(_.U,{cond:function(){return O().headline},
then:function(T){return _.E(_.uw,{text:T,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.E(_.U,{cond:function(){return O().detailsLine},
then:function(T){return _.E("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.E(_.R4,{data:T},{adDetailsLineViewModel:function(L){return _.E(_.WV,{data:L.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.E(_.U,{cond:function(){return O().secondaryDetailsLine},
then:function(T){return _.E("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.E(_.R4,{data:T},{adDetailsLineViewModel:function(L){return _.E(_.WV,{data:L.data,customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ci");var Cu5=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});return _.E("ad-grid-card-image-view-model",{class:function(){var T;return((T=O().interaction)==null?0:T.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:W,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(T){return _.E(_.hd,{data:T.data,
customCommandResolver:b})}}),_.E("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.E(_.R4,{data:function(){return O().adCardBadge}},{adCardBadgeViewModel:_.wAz})))},"Di");var qJ7=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});return _.E("ad-grid-card-text-view-model",{class:function(){var T;return((T=O().interaction)==null?0:T.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:W,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.E(_.U,{cond:function(){return O().title},
then:function(T){return _.E(_.uw,{text:T,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.E("div",{class:function(){return _.e("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.E(_.pv,{each:function(){var T;
return((T=O())==null?void 0:T.descriptions)||[]},
keyBy:"INDEX"},function(T){return _.E(_.uw,{text:T,className:function(){return _.e("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.E("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.E(_.R4,{data:function(){return O().moreInfoButton}},{adButtonViewModel:function(T){return _.E(_.JD,{data:T.data,
customCommandResolver:b})}})))},"Ei");var nrN=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;var T=W.adGridCardCollectionStyle;W=_.uy();_.iO(W,{visibilityCallback:function(L){var h,Z=(h=O().interaction)==null?void 0:h.onFirstVisible;L&&Z&&_.nb(Z)},
showOption:_.Mo});return _.E("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:W,style:function(){return"grid-template-columns: repeat("+QpB(T?T():O().style)+", minmax(0, 1fr));"}},_.E(_.R4,{data:function(){var L;
return(L=O())==null?void 0:L.gridCards}},{adGridCardImageViewModel:function(L){return _.E(Cu5,{data:L.data,
customCommandResolver:b})},
adGridCardImageFullMetadataViewModel:function(L){return _.E(zC5,{data:L.data,customCommandResolver:b})},
adGridCardTextViewModel:function(L){return _.E(qJ7,{data:L.data,customCommandResolver:b})}}))},"Fi");_.O1(_.J1(function(W){var O=W.data;W=_.uy();_.$z(W,function(){return O().interaction},kuk);
_.iO(W,{visibilityCallback:function(b){var T,L=(T=O().interaction)==null?void 0:T.onFirstVisible;b&&L&&_.nb(L)},
showOption:_.Mo});return _.E("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:W},_.E("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.E(_.U,{cond:_.HtQ("(min-width: "+((0,_.og)()+_.x5)+"px)"),then:function(){return _.E(_.R4,{data:function(){return O().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.E(nrN,{data:b.data,
customCommandResolver:kuk})}})},
else:function(){return _.E(_.R4,{data:function(){return O().adGridCardCollection}},{adGridCardCollectionViewModel:function(b){return _.E(nrN,{data:b.data,
customCommandResolver:kuk,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.E("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.E(_.R4,{data:function(){return O().adButton}},{adButtonViewModel:function(b){return _.E(_.JD,{data:b.data,
customCommandResolver:kuk})}})))},"Gi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;W=_.uy();_.$z(W,function(){return O().interaction},spB);
_.iO(W,{visibilityCallback:function(b){var T,L=(T=O().interaction)==null?void 0:T.onFirstVisible;b&&L&&_.nb(L)},
showOption:_.Mo});return _.E("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:W},_.E("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.E(_.R4,{data:function(){if(_.HtQ("(min-width: "+((0,_.og)()+_.x5)+"px)")())var b=O().adGridCardCollection;else{b=Object.assign({},_.P(O().adGridCardCollection,AJg));var T;b.gridCards!==void 0&&((T=b.gridCards)==null?void 0:T.length)>1?b.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":b.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";b={adGridCardCollectionViewModel:b}}return b}},{adGridCardCollectionViewModel:function(b){return _.E(nrN,{data:b.data,
customCommandResolver:spB})}})),_.E("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.E(_.R4,{data:function(){return O().adButton}},{adButtonViewModel:function(b){return _.E(_.JD,{data:b.data,
customCommandResolver:spB})}})))},"Hi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.te}});var vK=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return W};
_.R(vK,_.n);_.d=vK.prototype;_.d.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"}}}};
_.d.attached=function(){this.getDataFromPlayerAndRender()};
_.d.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.d.getDataFromPlayerAndRender=function(){var W=this,O=_.ya(this.hostElement);O&&O.getPlayerPromise().then(function(b){W.getCachedDataAndListen(b)})};
_.d.getCachedDataAndListen=function(W){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=W)};
_.d.resolveCachedActions=function(){var W=_.GT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(W=W&&W())&&!_.PQ.isEmpty(W)&&this.sendUpdateEngagementPanelAction(W);(W=(W=_.GT("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&W())&&!_.PQ.isEmpty(W)&&this.sendChangeEngagementPanelVisibilityAction(W);(W=(W=_.GT("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&W())&&!_.PQ.isEmpty(W)&&this.sendScrollToEngagementPanelCommand(W)};
_.d.sendUpdateEngagementPanelAction=function(W){var O;_.jx(this.hostElement,"yt-update-engagement-panel-action",[(O=_.PQ.get(W,"action"))!=null?O:W])};
_.d.sendChangeEngagementPanelVisibilityAction=function(W){_.jx(this.hostElement,"yt-change-engagement-panel-visibility-action",[W])};
_.d.sendScrollToEngagementPanelCommand=function(W){_.jx(this.hostElement,"yt-scroll-to-engagement-panel-command",[W])};
_.d.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.e("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.z5(Error("gm"))};
vK.prototype.dataChanged=vK.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],vK.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],vK.prototype,"componentBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],vK.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vK.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],vK.prototype,"player",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vK.prototype,"dataChanged",null);vK=_.t([_.G({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],vK);
_.H(vK,"ytd-ads-engagement-panel-content-renderer",function(){if(xKP!==void 0)return xKP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return xKP=W},{mode:1});var fYD;var g_=function(){var W=_.n.apply(this,arguments)||this;W.player=null;W.JSC$19980_playerEvents=new Map;W.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return W};
_.R(g_,_.n);_.d=g_.prototype;_.d.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]]"}}}}}};
_.d.created=function(){this.player=null;this.JSC$19980_playerEvents=new Map;this.JSC$19980_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19980_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19980_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19980_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.attached=function(){var W=this,O=_.ya();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));O&&O.getPlayerPromise().then(function(b){W.setPlayer(b);W.set("isPageLoad",!1)})};
_.d.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19980_playerEvents);this.set("player",W);W&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19980_playerEvents),W.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.d.onLoopRangeChange=function(W){var O=_.iq().resolve(_.OT(_.cs));if((!O||O.isOnWatch())&&this.hostElement.clientHeight){var b;!W&&((b=this.data)==null?0:b.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.d.onVideoProgress=function(W){var O,b,T=((O=this.player)==null?void 0:(b=O.getPresentingPlayerType)==null?void 0:b.call(O))===2;this.isAdPlaying!==T&&this.set("isAdPlaying",T);var L;if(!T&&(L=this.player)!=null&&L.getLoopRange()){b=this.player.getLoopRange();O=b.startTimeMs;b=b.endTimeMs;T=this.player.getProgressState(1).seekableStart;var h;O<T*1E3&&((h=this.data)==null?0:h.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
W=b<W*1E3;var Z;((Z=this.player)==null?0:Z.getLoopRange())&&W&&this.player.seekTo(O/1E3)}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onYtDeleteClipEngagementPanelCommand=function(W){_.P(W,BKN).command&&this.ytComponentBehavior.resolveCommand(_.P(W,BKN).command)};
_.Jq.Object.defineProperties(g_.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.voteCount)||_.VV("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],g_.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],g_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],g_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],g_.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],g_.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],g_.prototype,"isAdPlaying",void 0);_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],g_.prototype,"isPageLoad",void 0);_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],g_.prototype,"isDarkTheme",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],g_.prototype,"voteCount",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],g_.prototype,"channelEndpoint",null);_.t([_.x("channelEndpoint"),_.N("design:type",Object),_.N("design:paramtypes",[])],g_.prototype,"channelHref",null);g_=_.t([_.G({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],g_);
_.H(g_,"ytd-clip-attribution-renderer",function(){if(fYD!==void 0)return fYD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return fYD=W},{mode:1});var GaB;var oh=function(){var W=_.n.apply(this,arguments)||this;W.player=null;W.JSC$19985_playerEvents=new Map;return W};
_.R(oh,_.n);_.d=oh.prototype;_.d.created=function(){this.player=null;this.JSC$19985_playerEvents=new Map;this.JSC$19985_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19985_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19985_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.d.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d.attached=function(){var W=this,O=_.ya();O&&O.getPlayerPromise().then(function(b){W.setPlayer(b);W.set("isPageLoad",!1)})};
_.d.setPlayer=function(W){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19985_playerEvents);this.set("player",W);if(W){this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19985_playerEvents);var O;(W==null?void 0:(O=W.getPresentingPlayerType)==null?void 0:O.call(W))===2&&this.playerAdStartHandler()}};
_.d.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.d.onVideoProgress=function(){var W,O,b=((W=this.player)==null?void 0:(O=W.getPresentingPlayerType)==null?void 0:O.call(W))===2;this.isAdPlaying!==b&&this.set("isAdPlaying",b)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oh.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],oh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],oh.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],oh.prototype,"isAdPlaying",void 0);
_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],oh.prototype,"isPageLoad",void 0);oh=_.t([_.G({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],oh);
_.H(oh,"ytd-clip-section-footer-renderer",function(){if(GaB!==void 0)return GaB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return GaB=W},{mode:1});var Hjg;var t$1;var QT=function(){return _.n.apply(this,arguments)||this};
_.R(QT,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],QT.prototype,"data",void 0);QT=_.t([_.G({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],QT);
_.H(QT,"ytd-clip-ad-state-renderer",function(){if(t$1!==void 0)return t$1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return t$1=W},{mode:1});var $K7;var kk=function(){var W=_.n.apply(this,arguments)||this;W.value="";W.valid=!1;W.userChangedValue=!1;W.disabled=!1;W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return W};
_.R(kk,_.n);_.d=kk.prototype;_.d.detached=function(){this.userChangedValue=!1};
_.d.handleKeyDown=function(W){if(_.TR)var O=13;else _.eyh&&_.Lf?O=13:O=13;W.keyCode===O&&W.preventDefault()};
_.d.handleInput=function(){var W=_.Q(this.hostElement).querySelector("#title");if(W){var O=(W.value||"").replace(/\r|\n/g," ");this.set("value",O);W.value=O;this.valid=W.validate();this.userChangedValue=!0}};
_.d.handleBlur=function(){this.valid=_.Q(this.hostElement).querySelector("#title").validate()};
_.d.onValueChanged=function(){_.bX(this.hostElement,"title-changed",{title:this.value})};
_.d.onValidChanged=function(){_.bX(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.d.setInput=function(W,O){var b=_.Q(this.hostElement).querySelector("#title");b&&(b.value=W,this.handleInput(),O&&(b.invalid=!1,this.valid=!0))};
_.d.onClipCreationDisable=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable=function(){this.set("disabled",!1)};
_.d.onClipCreationVisibilityChange=function(W){var O=this;W.visible?requestAnimationFrame(function(){var b;((b=_.Q(O.hostElement).querySelector("#title"))==null?void 0:b.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
kk.prototype.onValidChanged=kk.prototype.onValidChanged;kk.prototype.onValueChanged=kk.prototype.onValueChanged;kk.prototype.handleBlur=kk.prototype.handleBlur;kk.prototype.handleInput=kk.prototype.handleInput;kk.prototype.handleKeyDown=kk.prototype.handleKeyDown;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kk.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],kk.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],kk.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],kk.prototype,"value",void 0);_.t([_.C(),_.N("design:type",Object)],kk.prototype,"valid",void 0);_.t([_.C(),_.N("design:type",Object)],kk.prototype,"userChangedValue",void 0);_.t([_.C(),_.N("design:type",Object)],kk.prototype,"disabled",void 0);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],kk.prototype,"handleKeyDown",null);
_.t([_.ai("input"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kk.prototype,"handleInput",null);_.t([_.ai("blur"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kk.prototype,"handleBlur",null);_.t([_.m5("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kk.prototype,"onValueChanged",null);
_.t([_.m5("valid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kk.prototype,"onValidChanged",null);kk=_.t([_.G({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],kk);
_.H(kk,"ytd-clip-creation-text-input-renderer",function(){if($K7!==void 0)return $K7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $K7=W},{mode:1});var V$2;var NFB;var M$9;var uzk;var JF9;var s4=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};W.pendingStoryboardImages_={};W.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];W.tickLabelInterval=30;W.mediumTickInterval=5;W.largeTickInterval=15;W.aboveRulerHeight=32;W.rulerHeight=50;W.smallTickHeight=4;W.mediumTickHeight=8;W.largeTickHeight=16;W.mediaListeners_=
{};return W};
_.R(s4,_.n);_.d=s4.prototype;_.d.attached=function(){var W=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(O){O=_.S(["screen and (min-resolution: "+O+")","screen and (max-resolution: "+O+")"]);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=window.matchMedia(b);T&&(W.mediaListeners_[b]=W.updatePixelRatio_.bind(W),T.addEventListener?T.addEventListener("change",W.mediaListeners_[b]):T.addListener?T.addListener(W.mediaListeners_[b]):delete W.mediaListeners_[b])}})};
_.d.detached=function(){this.setPlayer(null);for(var W=_.S(Object.keys(this.mediaListeners_)),O=W.next();!O.done;O=W.next()){var b=O.value;O=this.mediaListeners_[b];(b=window.matchMedia(b))&&(b.removeEventListener?b.removeEventListener("change",O):b.removeListener&&b.removeListener(O))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.d.onVisibilityChangedAction_=function(W){var O=this;W.visible&&!this.player_&&(W=_.ya())&&W.getPlayerPromise().then(function(b){O.setPlayer(b)})};
_.d.setPlayer=function(W){W&&this.set("player_",W)};
_.d.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.d.setUpCanvas_=function(){var W=this.rulerWidth,O=this.devicePixelRatio_,b=this.visible;this.set("canvasReady_",!1);if(b&&O!==0){b=this.aboveRulerHeight+this.rulerHeight;var T=_.Q(this.hostElement).querySelector("#ticks");T.width=W*O;T.height=b*O;T.style.width=W+"px";T.style.height=b+"px";T.getContext("2d").scale(O,O);this.set("canvasReady_",!0)}};
_.d.drawRuler_=function(W,O,b,T,L,h,Z,a,m,w,A,X){W&&b&&O&&(W=_.Q(this.hostElement).querySelector("#ticks"),O=W.getContext("2d"),O.clearRect(0,0,W.width,W.height),O.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),O.lineWidth=2,O.beginPath(),O.moveTo(0,this.aboveRulerHeight),O.lineTo(W.width,this.aboveRulerHeight),O.moveTo(0,W.height),O.lineTo(W.width,W.height),O.stroke(),this.drawRulerTicks_(W,h,L,T),this.drawStoryboardImages_(W,b,h,L,T),O.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
O.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(Z-h,T,!1),this.rulerHeight),b=this.timeToPixels_(a-h,T,!1),O.fillRect(b,this.aboveRulerHeight,W.width-b,this.rulerHeight),this.drawSpeedLines_(W,h,X))};
_.d.drawRulerTicks_=function(W,O,b,T){var L=W.getContext("2d");L.save();L.lineWidth=1;for(var h=Math.floor(Math.max(0,O-this.tickLabelInterval));h<O+b;h++){L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var Z=(h-O)*T;L.beginPath();L.moveTo(Z,W.height);var a=this.smallTickHeight;h%this.largeTickInterval===0?a=this.largeTickHeight:h%this.mediumTickInterval===0&&(a=this.mediumTickHeight);L.lineTo(Z,W.height-a);L.stroke();h%this.tickLabelInterval===0&&(L.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),L.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),L.fillText(gj(h),Z+4,12),L.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),L.moveTo(Z,0),L.lineTo(Z,this.aboveRulerHeight),L.stroke())}L.restore()};
_.d.percentToHex_=function(W){W=Math.round(W*255).toString(16);W.length<2&&(W="0"+W);return W};
_.d.drawSpeedLines_=function(W,O,b){var T=W.getContext("2d");T.save();var L=Math.min(25,Math.abs(b)-15)/25,h=W.width*.3*L,Z=W.width*-.3,a=W.width*1.3,m=this.aboveRulerHeight;W=W.height;var w=Math.round(4*L),A=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");A.length<7&&(A="#"+A.substring(1,4).repeat(2));var X=this.percentToHex_(.5+L/2);X=A+X;A+="00";if(L>0)for(L=0;L<w;L++){var l=Z+Math.random()*(a-Z),p=m+Math.random()*(W-m),K=h+O%h,k=T.createLinearGradient(l,p,l+K,p);
b<0?(k.addColorStop(0,X),k.addColorStop(.4,X),k.addColorStop(.9,A)):(k.addColorStop(.1,A),k.addColorStop(.6,X),k.addColorStop(1,X));T.strokeStyle=k;T.lineWidth=1;T.beginPath();T.moveTo(l,p);T.lineTo(l+K,p);T.stroke()}T.restore()};
_.d.getStoryboardForTime_=function(W,O,b){b===void 0&&(b=O.getNumberOfStoryboardLevels()-1);W=O.getStoryboardFrameIndex(W,b);return O.getStoryboardFrame(W,b)};
_.d.drawStoryboardImages_=function(W,O,b,T,L){if(!this.disabled){W=W.getContext("2d");var h=this.getStoryboardForTime_(0,O);if(h){var Z=h.width/h.columns;h=h.height/h.rows;var a=Z/h,m=this.rulerHeight*a;m=this.tickLabelInterval*(a<this.tickLabelInterval*L/this.rulerHeight?1/Math.floor(this.tickLabelInterval*L/m):Math.round(m/(this.tickLabelInterval*L)));var w=m*L,A=this.rulerHeight,X=w/this.rulerHeight,l=Math.floor(Math.max(0,b-m));for(l-=l%m;l<b+T;l+=m){var p=this.getStoryboardForTime_(l,O),K=this.getPreloadedStoryboard_(p.url);
if(K){var k=(l-b)*L,r=this.aboveRulerHeight,q=p.column*Z,f=p.row*h;if(a<X){var M=A/(w/a);p=Z;M*=h;f+=(h-M)/2}else p=w/(A*a)*Z,M=h,q+=(Z-p)/2;W.drawImage(K,q,f,p,M,k,r,w,A)}else this.fetchStoryboardImage_(p)}}}};
_.d.getPreloadedStoryboard_=function(W){return this.storyboardImages_.find(function(O){if(O.src==W)return!0;var b=O.src.indexOf(W);return b!=-1&&b==O.src.length-W.length})};
_.d.fetchStoryboardImage_=function(W){var O=this,b=this.getPreloadedStoryboard_(W.url),T=this.pendingStoryboardImages_[W.url];b||T!==void 0||(b=new Promise(function(L){var h=new Image(W.width,W.height);h.src=W.url;h.onload=function(){L(h)};
h.onerror=function(){L(null)}}),this.pendingStoryboardImages_[W.url]=b,b.then(function(L){L&&O.push("storyboardImages_",L);
return L}).finally(function(){delete O.pendingStoryboardImages_[W.url]}))};
_.d.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.d.timeToPixels_=function(W,O,b){W*=O;return b===void 0||b?W+"px":W};
_.d.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
s4.prototype.drawRuler_=s4.prototype.drawRuler_;s4.prototype.setUpCanvas_=s4.prototype.setUpCanvas_;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],s4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],s4.prototype,"start",void 0);_.t([_.C({value:30}),_.N("design:type",Number)],s4.prototype,"end",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],s4.prototype,"visible",void 0);_.t([_.C(),_.N("design:type",Object)],s4.prototype,"player_",void 0);_.t([_.C(),_.N("design:type",Number)],s4.prototype,"tickSpacing",void 0);_.t([_.C(),_.N("design:type",Number)],s4.prototype,"windowSizeSec",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],s4.prototype,"rulerWidth",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],s4.prototype,"rulerShift",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],s4.prototype,"canvasReady_",void 0);_.t([_.C({value:function(){return[]}}),
_.N("design:type",Array)],s4.prototype,"storyboardImages_",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],s4.prototype,"disabled",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],s4.prototype,"forceRender_",void 0);_.t([_.C({value:1}),_.N("design:type",Number)],s4.prototype,"devicePixelRatio_",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],s4.prototype,"windowSpeed",void 0);
_.t([_.m5("visible","devicePixelRatio_","rulerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],s4.prototype,"setUpCanvas_",null);
_.t([_.m5("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.N("design:returntype")],s4.prototype,"drawRuler_",null);s4=_.t([_.sl({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],s4);
_.H(s4,"yt-clip-creation-scrubber-canvas",function(){if(JF9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);JF9=W}W=JF9;return W},
{mode:2});var cF9;var Fd9;var BK=function(){var W=_.n.apply(this,arguments)||this;W.start=0;W.end=30;W.visible=!1;W.draggingLeft_=!1;W.draggingRight_=!1;W.draggingRuler_=!1;W.draggingWindow_=!1;W.seekableStart=0;W.seekableEnd=0;W.rulerWidth_=0;W.rulerShift_=0;W.windowSlideSpeed=0;W.disabled=!1;W.initialized=!1;W.durationAccessibilityLabel="";W.activeLoopRange_=!1;W.rulerDragMouseStart_=0;W.rulerDragRulerStart_=0;W.rulerDragStartTime_=0;W.rulerDragEndTime_=0;W.dragMouseLastX_=0;W.scrollInterval_=null;W.scrubberVe_=null;W.boundHandlers_=
{};W.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.R(BK,_.n);_.d=BK.prototype;
_.d.created=function(){var W=this;this.JSC$19998_playerEvents=new Map;this.JSC$19998_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19998_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19998_playerEvents.set("onStateChange",this.onStateChange_);var O={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(O).forEach(function(b){W.boundHandlers_[b]=O[b].bind(W)})};
_.d.attached=function(){this.activeLoopRange_=!1;_.Q(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Q(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.gd(156731)};
_.d.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Q(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Q(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.d.onVisibilityChangedAction_=function(W){var O=this;W.visible&&!this.player_&&(W=_.ya())&&W.getPlayerPromise().then(function(b){O.setPlayer(b)})};
_.d.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19998_playerEvents);W&&(this.set("player_",W),this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$19998_playerEvents))};
_.d.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.d.beginHandleDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=W.clientX,W.target===_.Q(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():W.target===_.Q(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.d.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.d.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.d.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.d.beginRulerDrag_=function(W){this.disabled||(W.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=W.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.d.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.d.beginWindowScroll_=function(){var W=this;this.scrollInterval_=setInterval(function(){var O=W.windowSlideSpeed;if(O=_.JQP(W.start,W.boundedRulerStartLimit_())?O-.1:_.JQP(W.end,W.boundedRulerEndLimit_())?O+.1:0){var b=W.capRulerOffset_(W.rulerShift_+O);b==W.rulerShift_?O=0:(W.set("rulerShift_",b),_.bX(W.hostElement,"set-fixed-length-range",{start:W.start+O,duration:W.end-W.start}))}W.set("windowSlideSpeed",O)},33)};
_.d.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.d.endDrag_=function(){this.logClick();var W=void 0;this.draggingRight_?W=this.end-1:this.draggingLeft_&&(W=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,W);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))};
_.d.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.d.updateRulerSize_=function(){this.set("rulerWidth_",_.Q(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.d.handleMouseDrag_=function(W){W.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(W):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(W):this.draggingWindow_&&this.handleWindowDrag_(W))};
_.d.handleRulerDrag_=function(W){W=this.pixelsToTime_(W.clientX-this.rulerDragMouseStart_);W=this.capRulerOffset_(this.rulerDragRulerStart_-W);this.set("rulerShift_",W);var O=this.rulerDragStartTime_-(this.rulerDragRulerStart_-W);_.bX(this.hostElement,"set-fixed-length-range",{start:O,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-W)-O})};
_.d.handleWindowDrag_=function(W){var O=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(O);_.bX(this.hostElement,"set-fixed-length-range",{start:this.start+W,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.capRulerOffset_=function(W){var O=this.seekableStart-this.pixelsToTime_(16),b=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(O,W),b)};
_.d.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.d.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.d.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.d.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.d.handleWindowHandleDrag_=function(W){var O=W.clientX-this.dragMouseLastX_;this.dragMouseLastX_=W.clientX;W=this.pixelsToTime_(O);if(this.draggingLeft_){var b=this.start+W;var T=this.end}else this.draggingRight_&&(b=this.start,T=this.end+W);_.bX(this.hostElement,"set-range",{start:b,end:T,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.d.onVideoProgress_=function(W){this.disabled||(W=this.timeToPixels_(W-this.rulerShift_,this.tickSpacing_),_.Q(this.hostElement).querySelector("#playhead").style.transform="translateX("+W+")")};
_.d.onClipCreationDisable_=function(){this.endDrag_()};
_.d.timeToPixels_=function(W,O,b){W*=O;return b===void 0||b?W+"px":W};
_.d.pixelsToTime_=function(W){return W/this.tickSpacing_};
_.d.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.centerRuler_=function(W,O,b){this.set("rulerShift_",this.capRulerOffset_(W+(O-W)/2-b/2))};
_.d.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.d.updateLoopRange_=function(W,O,b,T,L,h,Z){W&&(O&&T&&!b?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(W.pauseVideo(),W.seekTo(L,!1,void 0,void 0,50)):this.draggingRight_?(W.pauseVideo(),W.seekTo(h-.1,!1,void 0,void 0,50)):(Z!==void 0?W.seekTo(Z,!0,void 0,void 0,50):(O=W.getCurrentTime(),O<L||O>h?W.seekTo(L,!0,void 0,void 0,50):W.seekTo(O,!0,void 0,void 0,50)),W.playVideo()),W.setLoopRange({startTimeMs:L*1E3,endTimeMs:h*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(W.getCurrentTime())):
this.activeLoopRange_&&(W.setLoopRange(null),this.activeLoopRange_=!1))};
_.d.updateHandles_=function(){_.Q(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Q(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.d.updateRuler_=function(){var W=this.end,O=this.start,b=this.draggableStartLimit_(),T=this.draggableEndLimit_();(O<b-.001||W>T+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.d.computeDurationLabel_=function(W,O){return W?W.replace("$clip_length",parseFloat(O).toFixed(1)):""};
_.d.computeDuration_=function(W,O){return this.isValidTime_(W)&&this.isValidTime_(O)&&W<O?O-W:0};
_.d.isValidTime_=function(W){return isNaN(parseFloat(W))||W<0?!1:this.player_?W>=this.seekableStart&&W<=this.seekableEnd:!0};
_.d.computeWindowSizeSec_=function(W,O,b){return Math.min((W||12E4)/1E3,b-O)};
_.d.computeTickSpacing_=function(W,O){return O?O/W:1};
_.d.onDragStateChanged_=function(){_.bX(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.d.centerRangeOnTime_=function(W){var O=this.duration;W=rmR(W-O/2,O,this.seekableStart,this.seekableEnd);_.bX(this.hostElement,"set-fixed-length-range",{start:W.start,duration:W.end-W.start})};
_.d.nearlyLessThan_=function(W,O,b){return W+(b===void 0?1E-6:b)<O};
_.d.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var W=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(W,this.start)||this.nearlyLessThan_(this.end,W))&&this.centerRangeOnTime_(W)}};
_.d.onStateChange_=function(W){this.visible&&!this.disabled&&W==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.d.computeDragState_=function(W,O,b,T){return W?"left":O?"right":b?"ruler":T?"window":"none"};
_.d.logClick=function(){var W=_.Bb(),O=_.sk();W&&O&&this.scrubberVe_&&(_.e("combine_ve_grafts")?_.jn(_.A4(),this.scrubberVe_,O):_.fV(W,O,this.scrubberVe_),_.Vw(W,this.scrubberVe_))};
BK.prototype.onDragStateChanged_=BK.prototype.onDragStateChanged_;BK.prototype.updateRuler_=BK.prototype.updateRuler_;BK.prototype.updateHandles_=BK.prototype.updateHandles_;BK.prototype.onUpdateLoopRange=BK.prototype.onUpdateLoopRange;BK.prototype.onInitializedChanged_=BK.prototype.onInitializedChanged_;BK.prototype.onVisibleChanged_=BK.prototype.onVisibleChanged_;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],BK.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",Object)],BK.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"start",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"end",void 0);_.t([_.C({computed:"computeDuration_(start, end)"}),_.N("design:type",Number)],BK.prototype,"duration",void 0);
_.t([_.C(),_.N("design:type",String)],BK.prototype,"lengthTemplate",void 0);_.t([_.C({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.N("design:type",String)],BK.prototype,"durationLabel",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"visible",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"player_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"draggingLeft_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"draggingRight_",void 0);
_.t([_.C(),_.N("design:type",Object)],BK.prototype,"draggingRuler_",void 0);_.t([_.C({value:!1}),_.N("design:type",Object)],BK.prototype,"draggingWindow_",void 0);_.t([_.C({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.N("design:type",Number)],BK.prototype,"tickSpacing_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"seekableStart",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"seekableEnd",void 0);
_.t([_.C(),_.N("design:type",Number)],BK.prototype,"windowSizeMs",void 0);_.t([_.C({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.N("design:type",Number)],BK.prototype,"windowSizeSec_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"rulerWidth_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"rulerShift_",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"windowSlideSpeed",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],BK.prototype,"disabled",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"initialized",void 0);_.t([_.C(),_.N("design:type",Object)],BK.prototype,"durationAccessibilityLabel",void 0);_.t([_.C({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.N("design:type",String)],BK.prototype,"dragState",void 0);
_.t([_.m5("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"onVisibleChanged_",null);_.t([_.m5("initialized"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"onInitializedChanged_",null);_.t([_.m5("player_","visible","disabled","initialized","start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"onUpdateLoopRange",null);
_.t([_.m5("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"updateHandles_",null);_.t([_.m5("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"updateRuler_",null);
_.t([_.m5("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],BK.prototype,"onDragStateChanged_",null);BK=_.t([_.sl({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],BK);
_.H(BK,"yt-clip-creation-scrubber-view",function(){if(Fd9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;cF9===void 0&&(cF9=document.createElement("template"));var T=cF9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Fd9=W}W=Fd9;return W},{mode:2});var r_=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};W.startHighlightTimeout=0;W.endHighlightTimeout=0;return W};
_.R(r_,_.n);_.d=r_.prototype;_.d.attached=function(){var W=this;this.startInput.addEventListener("input",function(O){return W.handleStartInput_(O)});
this.endInput.addEventListener("input",function(O){return W.handleEndInput_(O)});
this.startInput.addEventListener("focusout",function(O){return W.handleStartBlur_(O)});
this.endInput.addEventListener("focusout",function(O){return W.handleEndBlur_(O)})};
_.d.setPlayer=function(W){this.set("player_",W)};
_.d.onSetFixedLengthRange_=function(W){var O=W.detail;W=O.start;var b=O.duration,T=O.startLimit;O=O.endLimit;T||(T=this.seekableStart_);O||(O=this.seekableEnd_);W=rmR(W,b,T,O);this.start=W.start;this.end=W.end};
_.d.onSetRange_=function(W){var O=W.detail;W=O.start;var b=O.end,T=O.startLimit;O=O.endLimit;T||(T=this.seekableStart_);O||(O=this.seekableEnd_);if(W=DBZ(W,b,T,O,this.minLengthSec,this.maxLengthSec))this.start=W.start,this.end=W.end};
_.d.updateInputs_=function(){var W=this.end,O=this.start;this.startInput.focused||(this.startInput.value=gj(O,!0));this.endInput.focused||(this.endInput.value=gj(W,!0))};
_.d.handleStartInput_=function(W){W=BJU(W.target.value);if(W===null)this.set("startValid",!1);else{var O=this.end,b=DBZ(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("endWillUpdate",b.end!==O),this.set("startValid",b.start===W)):this.set("startValid",!1)}};
_.d.handleEndInput_=function(W){W=BJU(W.target.value);if(W===null)this.set("endValid",!1);else{var O=this.start,b=xBD(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);b?(this.set("startWillUpdate",b.start!==O),this.set("endValid",b.end===W)):this.set("endValid",!1)}};
_.d.handleStartBlur_=function(W){W=BJU(W.target.value);W===null?this.startInput.value=gj(this.start,!0):this.forceUpdateInputs_(DBZ(W,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.handleEndBlur_=function(W){W=BJU(W.target.value);W===null?this.endInput.value=gj(this.end,!0):this.forceUpdateInputs_(xBD(this.start,W,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.d.forceUpdateInputs_=function(W){W&&(this.start=W.start,this.end=W.end);this.startInput.value=gj(this.start,!0);this.endInput.value=gj(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.d.initializeClipRange_=function(){var W=this.seekableEnd_,O=this.seekableStart_,b=this.visible_,T=this.player_;if(!T||!b||O===null||!W)this.set("initialized",!1);else if(!this.initialized){var L=T.getCurrentTime(),h=this.getDefaultLengthSec_();b=T.getVideoData();var Z=T.getPlayerState()==1,a=b.isLive;h=Math.min(h,W-O);L=Math.max(0,L);W=a?xBD(L-h,L,O,W,this.minLengthSec,this.maxLengthSec):Z?rmR(L-h/2,h,O,W):rmR(L,h,O,W);this.start=W.start;this.end=W.end;this.set("initialized",!0);b.isLive&&T.seekTo(W.start);
this.startInput.value=gj(this.start,!0);this.endInput.value=gj(this.end,!0)}};
_.d.onStartChanged_=function(){var W=this;_.bX(this.hostElement,"start-changed",{start:this.start});var O;isNaN((O=this.oldStart)!=null?O:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){W.set("highlightStart",!1);W.startHighlightTimeout=0;W.oldStart=W.start},3E3))};
_.d.onEndChanged_=function(){var W=this;_.bX(this.hostElement,"end-changed",{end:this.end});var O;isNaN((O=this.oldEnd)!=null?O:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){W.set("highlightEnd",!1);W.endHighlightTimeout=0;W.oldEnd=W.end},3E3))};
_.d.onVisibilityChangedAction_=function(W){var O=this;this.set("visible_",W.visible);this.visible_&&!this.player_&&(W=_.ya())&&W.getPlayerPromise().then(function(b){O.setPlayer(b)})};
_.d.computeMinLengthSec_=function(W){return W/1E3||5};
_.d.computeMaxLengthSec_=function(W){return W/1E3||60};
_.d.computeDefaultLengthSec_=function(W){return W/1E3};
_.d.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.d.computeSeekableStart_=function(W,O){return W&&O?W.getProgressState(1).seekableStart:0};
_.d.computeSeekableEnd_=function(W,O){return W&&O?W.getProgressState(1).seekableEnd:0};
_.d.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.d.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.d.onDragState_=function(W){this.set("highlightStart",W.detail.startChanging);this.set("highlightEnd",W.detail.endChanging)};
r_.prototype.onDragState_=r_.prototype.onDragState_;r_.prototype.onEndChanged_=r_.prototype.onEndChanged_;r_.prototype.onStartChanged_=r_.prototype.onStartChanged_;r_.prototype.initializeClipRange_=r_.prototype.initializeClipRange_;r_.prototype.updateInputs_=r_.prototype.updateInputs_;r_.prototype.onSetRange_=r_.prototype.onSetRange_;r_.prototype.onSetFixedLengthRange_=r_.prototype.onSetFixedLengthRange_;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],r_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],r_.prototype,"data",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],r_.prototype,"start",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],r_.prototype,"startValid",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],r_.prototype,"startWillUpdate",void 0);_.t([_.C({value:30}),_.N("design:type",Number)],r_.prototype,"end",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],r_.prototype,"endValid",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],r_.prototype,"endWillUpdate",void 0);_.t([_.C({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.N("design:type",Number)],r_.prototype,"minLengthSec",void 0);
_.t([_.C({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.N("design:type",Number)],r_.prototype,"maxLengthSec",void 0);_.t([_.C({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.N("design:type",Number)],r_.prototype,"defaultLengthSec",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],r_.prototype,"visible_",void 0);_.t([_.C(),_.N("design:type",Object)],r_.prototype,"player_",void 0);
_.t([_.C({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.N("design:type",Number)],r_.prototype,"seekableStart_",void 0);_.t([_.C({computed:"computeSeekableEnd_(player_, visible_)"}),_.N("design:type",Number)],r_.prototype,"seekableEnd_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],r_.prototype,"initialized",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],r_.prototype,"disabled",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],r_.prototype,"highlightStart",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],r_.prototype,"highlightEnd",void 0);_.t([_.El("#start"),_.N("design:type",HTMLInputElement)],r_.prototype,"startInput",void 0);_.t([_.El("#end"),_.N("design:type",HTMLInputElement)],r_.prototype,"endInput",void 0);
_.t([_.ai("set-fixed-length-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],r_.prototype,"onSetFixedLengthRange_",null);_.t([_.ai("set-range"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],r_.prototype,"onSetRange_",null);_.t([_.m5("start","end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"updateInputs_",null);
_.t([_.m5("player_","visible_","seekableStart_","seekableEnd_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"initializeClipRange_",null);_.t([_.m5("start"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"onStartChanged_",null);_.t([_.m5("end"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],r_.prototype,"onEndChanged_",null);
_.t([_.ai("clips-drag-state"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],r_.prototype,"onDragState_",null);r_=_.t([_.sl({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],r_);
_.H(r_,"yt-clip-creation-scrubber-renderer",function(){if(uzk===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;M$9===void 0&&(M$9=document.createElement("template"));var T=M$9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);uzk=W}W=uzk;return W},{mode:2});var DJ=function(){var W=_.n.apply(this,arguments)||this;W.player_=null;W.JSC$20012_playerEvents=new Map;W.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return W};
_.R(DJ,_.n);_.d=DJ.prototype;_.d.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"}}}};
_.d.created=function(){this.JSC$20012_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20012_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20012_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20012_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.d.detached=function(){this.setPlayer(null)};
_.d.onVisibilityChangedAction_=function(W){var O=this,b;if((b=this.data)==null?0:b.externalVideoId){var T;this.videoId=(T=this.data)==null?void 0:T.externalVideoId}this.getPlayer().then(function(L){if(W.visible)O.returnTime=L.getCurrentTime(),O.isAtLiveHead=L.getProgressState().isAtLiveHead;else{var h=O.returnTime;O.isAtLiveHead&&(h=Number.POSITIVE_INFINITY);L.seekTo(h,void 0,void 0,void 0,51)}})};
_.d.getPlayer=function(){var W=this;if(!this.player_){var O=_.ya();if(O)return O.getPlayerPromise().then(function(b){W.setPlayer(b);return b})}return Promise.resolve(this.player_)};
_.d.setPlayer=function(W){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20012_playerEvents);if(W){this.player_=W;var O;((O=this.data)==null?0:O.externalVideoId)||this.set("videoId",W.getVideoData().video_id||"");var b;(W==null?void 0:(b=W.getPresentingPlayerType)==null?void 0:b.call(W))===2&&(this.set("isAdPlaying",!0),_.jx(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(W,this.JSC$20012_playerEvents)}};
_.d.ready=function(){_.Q(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.d.onTitleChanged_=function(W){this.set("titleValue",W.detail.title)};
_.d.onStartChanged_=function(W){this.set("start",W.detail.start)};
_.d.onEndChanged_=function(W){this.set("end",W.detail.end)};
_.d.onTitleValidChanged_=function(W){this.set("titleValid",W.detail.valid)};
_.d.onStartValidChanged_=function(W){this.set("startValid",W.detail.valid)};
_.d.onEndValidChanged_=function(W){this.set("endValid",W.detail.valid)};
_.d.onVideoDataChange_=function(){var W;if((W=this.data)==null||!W.externalVideoId){var O;this.set("videoId",((O=this.player_)==null?void 0:O.getVideoData().video_id)||"")}};
_.d.computeFormValid_=function(W,O,b,T){return!!(W&&O&&b&&T)};
_.d.computeCancelButton_=function(W,O,b){return W&&_.P(W,_.s2)?{buttonRenderer:Object.assign({},_.P(W,_.s2),{isDisabled:O||b})}:null};
_.d.computeSubmitButton_=function(W,O,b){return W&&_.P(W,_.s2)?{buttonRenderer:Object.assign({},_.P(W,_.s2),{command:void 0,isDisabled:!this.formValid||O||b})}:null};
_.d.computeSubmitCommand_=function(W){return W||null};
_.d.onSubmit_=function(W){var O=this;W.stopPropagation();W.preventDefault();this.submitCommand_&&(W={},W.comment_text=this.titleValue,W.clip_external_video_id=this.videoId,W.clip_offset_ms=parseInt(this.start*1E3,10),W.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.da(this.hostElement,[this.submitCommand_,W]).then(function(){O.set("isLoading_",!1)},function(){O.set("isLoading_",!1)}))};
_.d.playerAdStartHandler_=function(){_.jx(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.d.playerAdEndHandler_=function(){_.jx(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.d.onVideoProgress_=function(){var W=this;this.getPlayer().then(function(O){var b,T=(O==null?void 0:(b=O.getPresentingPlayerType)==null?void 0:b.call(O))===2;W.isAdPlaying!==T&&(T?W.playerAdStartHandler_():W.playerAdEndHandler_())})};
DJ.prototype.onEndValidChanged_=DJ.prototype.onEndValidChanged_;DJ.prototype.onStartValidChanged_=DJ.prototype.onStartValidChanged_;DJ.prototype.onTitleValidChanged_=DJ.prototype.onTitleValidChanged_;DJ.prototype.onEndChanged_=DJ.prototype.onEndChanged_;DJ.prototype.onStartChanged_=DJ.prototype.onStartChanged_;DJ.prototype.onTitleChanged_=DJ.prototype.onTitleChanged_;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",Object)],DJ.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],DJ.prototype,"data",void 0);_.t([_.C({value:""}),_.N("design:type",String)],DJ.prototype,"titleValue",void 0);
_.t([_.C({value:!1}),_.N("design:type",Boolean)],DJ.prototype,"titleValid",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],DJ.prototype,"start",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],DJ.prototype,"startValid",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],DJ.prototype,"end",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],DJ.prototype,"endValid",void 0);_.t([_.C({value:""}),_.N("design:type",String)],DJ.prototype,"videoId",void 0);
_.t([_.C({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.N("design:type",Boolean)],DJ.prototype,"formValid",void 0);_.t([_.C({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.N("design:type",Object)],DJ.prototype,"submitButton_",void 0);_.t([_.C({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.N("design:type",Object)],DJ.prototype,"submitCommand_",void 0);
_.t([_.C({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.N("design:type",Object)],DJ.prototype,"cancelButton_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],DJ.prototype,"isLoading_",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],DJ.prototype,"isAdPlaying",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],DJ.prototype,"returnTime",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],DJ.prototype,"isAtLiveHead",void 0);
_.t([_.ai("title-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onTitleChanged_",null);_.t([_.ai("start-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onStartChanged_",null);_.t([_.ai("end-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onEndChanged_",null);
_.t([_.ai("title-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onTitleValidChanged_",null);_.t([_.ai("start-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onStartValidChanged_",null);_.t([_.ai("end-valid-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],DJ.prototype,"onEndValidChanged_",null);
DJ=_.t([_.sl({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],DJ);
_.H(DJ,"yt-clip-creation-renderer",function(){if(NFB===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;V$2===void 0&&(V$2=document.createElement("template"));var T=V$2;b.call(O,T.content.cloneNode(!0),W.content.firstChild);NFB=W}W=NFB;return W},{mode:2});var xk=function(){return _.n.apply(this,arguments)||this};
_.R(xk,_.n);xk.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"}}}};
xk.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(W){return W.hasOwnProperty("clipCreationRenderer")})&&_.jx(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
xk.prototype.onPanelContentVisibleChanged=xk.prototype.onPanelContentVisibleChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xk.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],xk.prototype,"ytVisibilityBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],xk.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],xk.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],xk.prototype,"panelContentVisible",void 0);_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xk.prototype,"onPanelContentVisibleChanged",null);xk=_.t([_.G({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],xk);
_.H(xk,"ytd-clip-section-renderer",function(){if(Hjg!==void 0)return Hjg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Hjg=W},{mode:1});var yF9;var zq=function(){return _.n.apply(this,arguments)||this};
_.R(zq,_.n);_.d=zq.prototype;
_.d.onKeyDown=function(W){if(this.snippetElements.length!==0&&(W=W.keyCode,W===38||W===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);W===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.kq(this.highlightedIndex,-1,this.snippetElements.length);W=this.snippetElements.length;var O=this.highlightedIndex%W;this.highlightedIndex=O*W<0?O+W:O;W=this.snippetElements[this.highlightedIndex];this.highlightSnippet(W);this.ensureVisible(W)}};
_.d.onKeyUp=function(W){var O=this;Yb7(W)&&(W.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.sF.cancelJob(this.inputTimerId),this.inputTimerId=_.sF.addLowPriorityJob(function(){O.typedValue&&(O.fetchSnippets(O.typedValue),O.logInputGesture(O.data))},1E3))};
_.d.onClick=function(W){(W=_.bH9(W.target,null,"snippet-item"))&&this.selectSnippet(W)};
_.d.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.d.ready=function(){var W=this;this.inputElement.addEventListener("focus",function(){W.snippetsWrapper.style.removeProperty("display")})};
_.d.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.d.getSourceTimelines=function(){if(!this.data)return[];var W=[];if(this.data.searchInVideoSources)for(var O=_.S(this.data.searchInVideoSources),b=O.next();!b.done;b=O.next())b=b.value,b==="SEARCH_IN_VIDEO_SOURCE_ASR"?W.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):b==="SEARCH_IN_VIDEO_SOURCE_OCR"&&W.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return W};
_.d.fetchSnippets=function(W){var O=_.jx(this.hostElement,"yt-get-current-video-id-action")[0],b=this.getSourceTimelines();W={getSearchInVideoCommand:{externalVideoId:O,query:W!=null?W:"",sourceTimelines:b},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})};
_.d.filterSnippets=function(W,O){var b=this;if(O){this.filteredSnippets=(0,_.PQ.unsafeClone)(W);var T=RegExp(_.x$2(O),"i");this.filteredSnippets=this.filteredSnippets.filter(function(Z){return T.test(b.ytRendererBehavior.getSimpleString(Z.snippet))});
W=_.S(this.filteredSnippets);for(var L=W.next();!L.done;L=W.next()){L=L.value;var h=this.ytRendererBehavior.getSimpleString(L.snippet);L.snippet={runs:[{text:h.substring(0,h.toLowerCase().indexOf(O))},{text:h.substring(h.toLowerCase().indexOf(O),h.toLowerCase().indexOf(O)+O.length),bold:!0},{text:h.substring(h.toLowerCase().indexOf(O)+O.length,h.length)}]}}}else this.filteredSnippets=W};
_.d.onUpdateSearchInVideoResults=function(W){if(!(this.snippets.length>0)){var O,b,T;if((T=(O=_.P(W,vK1))==null?void 0:(b=O.results)==null?void 0:b.length)!=null&&T){var L;this.filteredSnippets=this.snippets=((L=_.P(W,vK1))==null?void 0:L.results).map(function(h){var Z,a,m;return{startMs:h==null?void 0:(Z=h.searchInVideoResultRenderer)==null?void 0:Z.startMs,startTimeText:h==null?void 0:(a=h.searchInVideoResultRenderer)==null?void 0:a.startTimeText,snippet:h==null?void 0:(m=h.searchInVideoResultRenderer)==
null?void 0:m.snippet}})}}};
_.d.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};
_.d.highlightSnippet=function(W){W.classList.add("highlighted")};
_.d.removeSnippetHighlight=function(W){W.classList.remove("highlighted")};
_.d.selectSnippet=function(W){this.typedValue=String(W.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(W);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.d.ensureVisible=function(W){var O=this.snippetsWrapper.scrollTop,b=O+this.snippetsWrapper.clientHeight,T=W.offsetTop-this.snippetsWrapper.offsetTop;W=T+W.clientHeight;T<O?this.snippetsWrapper.scrollTop-=O-T:W>b&&(this.snippetsWrapper.scrollTop+=W-b)};
_.d.seekPlayer=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1){if(!W)return T.jumpTo(0);O=Number(W.dataset.startOffset);return _.Y(T,_.Wm().getPlayerPromise(),3)}b=T.yieldResult;b.seekTo(O/1E3,!0);b.wakeUpControls();_.aD(T)})};
_.d.logInputGesture=function(W){var O=_.Bb();O&&(W==null?0:W.trackingParams)&&_.Nk(O,_.Pi(W.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.d.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("typed-value-changed",this.typedValue))};
_.d.updateTypedValueFromBinding=function(W){this.typedValue=W.currentTarget.value};
zq.prototype.typedValueChangedForBinding=zq.prototype.typedValueChangedForBinding;zq.prototype.dataChanged=zq.prototype.dataChanged;zq.prototype.panelContentVisibleChanged=zq.prototype.panelContentVisibleChanged;zq.prototype.onClick=zq.prototype.onClick;zq.prototype.onKeyUp=zq.prototype.onKeyUp;zq.prototype.onKeyDown=zq.prototype.onKeyDown;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],zq.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zq.prototype,"data",void 0);_.t([_.C({value:[]}),_.N("design:type",Array)],zq.prototype,"snippets",void 0);_.t([_.C({value:[]}),_.N("design:type",Array)],zq.prototype,"filteredSnippets",void 0);_.t([_.C({value:[]}),_.N("design:type",Array)],zq.prototype,"snippetElements",void 0);
_.t([_.El("#siv-input"),_.N("design:type",HTMLElement)],zq.prototype,"inputElement",void 0);_.t([_.El("#siv-snippets-wrapper"),_.N("design:type",HTMLElement)],zq.prototype,"snippetsWrapper",void 0);_.t([_.C(),_.N("design:type",String)],zq.prototype,"typedValue",void 0);_.t([_.C({value:-1}),_.N("design:type",Number)],zq.prototype,"highlightedIndex",void 0);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[_.IK]),_.N("design:returntype")],zq.prototype,"onKeyDown",null);
_.t([_.ai("keyup"),_.N("design:type",Function),_.N("design:paramtypes",[_.IK]),_.N("design:returntype")],zq.prototype,"onKeyUp",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],zq.prototype,"onClick",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],zq.prototype,"panelContentVisible",void 0);
_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zq.prototype,"panelContentVisibleChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zq.prototype,"dataChanged",null);_.t([_.m5("typedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zq.prototype,"typedValueChangedForBinding",null);
zq=_.t([_.G({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],zq);
_.H(zq,"ytd-search-in-video-renderer",function(){if(yF9!==void 0)return yF9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return yF9=W},{mode:1});var W0P;var CJ=function(){return _.n.apply(this,arguments)||this};
_.R(CJ,_.n);CJ.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
CJ.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]]"}}}}}};
CJ.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var W,O,b,T,L=(O=_.P((W=this.data)==null?void 0:W.onClickCommand,_.h9$))==null?void 0:(b=O.item)==null?void 0:(T=b.notificationTextRenderer)==null?void 0:T.successResponseText;L&&_.NIh(this.hostElement,L)}};
_.Jq.Object.defineProperties(CJ.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return this.isProductPlaceholder&&((W=this.data)==null?void 0:(O=W.hiddenProductOptions)==null?void 0:O.showDropCountdown)&&!!((b=this.data)==null?0:(T=b.hiddenProductOptions)==null?0:T.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isProductPlaceholder&&!((W=this.data)==null?0:W.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null?0:W.priceReplacementText)&&!((O=this.data)==null||!O.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],CJ.prototype,"componentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CJ.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"useCenterLayoutContainer",null);_.t([_.C({computed:"computeButtonOverride(data)"}),_.N("design:type",Object)],CJ.prototype,"buttonOverride",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"isProductPlaceholder",null);
_.t([_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"showDropCountdown",null);_.t([_.x("isProductPlaceholder","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"showBrandName",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"showPriceReplacementText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"showPrice",null);
_.t([_.x("isProductPlaceholder"),_.N("design:type",Object),_.N("design:paramtypes",[])],CJ.prototype,"showMetadata",null);CJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],CJ);
_.H(CJ,"ytd-product-list-item-renderer",function(){if(W0P!==void 0)return W0P;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return W0P=W},{mode:1});var OT1;var q7=function(){return _.n.apply(this,arguments)||this};
_.R(q7,_.n);q7.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
q7.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
q7.prototype.panelContentVisibleChanged=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return W.playerApi?b.jumpTo(2):_.Y(b,_.Wm().getPlayerPromise(),3);b.nextAddress!=2&&(W.playerApi=b.yieldResult);(O=W.playerApi)==null||O.productsInVideoVisibilityUpdated(!!W.panelContentVisible);_.aD(b)})};
q7.prototype.panelContentVisibleChanged=q7.prototype.panelContentVisibleChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],q7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],q7.prototype,"panelContentVisible",void 0);_.t([_.C(),_.N("design:type",Object)],q7.prototype,"data",void 0);
_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],q7.prototype,"panelContentVisibleChanged",null);q7=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],q7);
_.H(q7,"ytd-product-list-renderer",function(){if(OT1!==void 0)return OT1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return OT1=W},{mode:1});var iTk;var nJ=function(){var W=_.n.apply(this,arguments)||this;W.hideTimestamps=!!_.Tz("hide-transcript-timestamps");W.currentCueIndex=-1;W.flatCues=[];W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};W.TEST_ONLY={getFlatCues:function(){return W.flatCues}};
return W};
_.R(nJ,_.n);_.d=nJ.prototype;_.d.hideTimestampsChanged=function(){_.ju("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.dataChanged=function(){var W;if((W=this.data)!=null&&W.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;W=_.S(this.data.cueGroups);for(var O=W.next();!O.done;O=W.next()){O=_.S(_.P(O.value,gKU).cues);for(var b=O.next();!b.done;b=O.next())this.flatCues.push(Number(_.P(b.value,oKZ).startOffsetMs))}}};
_.d.onYtPlayerTimeChanged=function(W){if(!(W<0)){for(var O=this.currentCueIndex,b=O;;){var T=b>=0?this.flatCues[b]/1E3:-1;if(W+.5<T)--b;else if(T=b+1<this.flatCues.length?this.flatCues[b+1]/1E3:Infinity,W+.5>T)b+=1;else break}b!==O&&(O>=0&&((W=this.getCueElement(O))&&W.classList.remove("active"),(O=this.getCueGroupElement(O))&&O.classList.remove("active")),(O=this.getCueElement(b))&&O.classList.add("active"),(O=this.getCueGroupElement(b))&&O.classList.add("active"),this.currentCueIndex=b,this.isHovered||
this.scrollElementToTop(b))}};
_.d.scrollElementToTop=function(W){W=this.getCueElement(W>=3?W-3:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.getCueElement=function(W){return _.Q(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[W]+'"]')};
_.d.getCueGroupElement=function(W){return(W=this.getCueElement(W))&&W.parentElement?W.parentElement.parentElement:null};
_.d.onTap=function(W){var O=_.Md(W);W.target.classList.contains("cue")&&this.seekCueElement(O)};
_.d.onKeyPress=function(W){W.keyCode==13&&(W=_.bH9(W.target,null,"cue"))&&this.seekCueElement(W)};
_.d.seekCueElement=function(W){W=Number(W.getAttribute("start-offset"));_.jx(this.hostElement,"yt-transcript-player-seek",[W/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
nJ.prototype.onMouseLeave=nJ.prototype.onMouseLeave;nJ.prototype.onMouseEnter=nJ.prototype.onMouseEnter;nJ.prototype.onKeyPress=nJ.prototype.onKeyPress;nJ.prototype.onTap=nJ.prototype.onTap;nJ.prototype.dataChanged=nJ.prototype.dataChanged;nJ.prototype.hideTimestampsChanged=nJ.prototype.hideTimestampsChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],nJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],nJ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nJ.prototype,"hideTimestamps",void 0);_.t([_.C(),_.N("design:type",Boolean)],nJ.prototype,"isHovered",void 0);_.t([_.m5("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nJ.prototype,"hideTimestampsChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nJ.prototype,"dataChanged",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],nJ.prototype,"onTap",null);_.t([_.ai("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],nJ.prototype,"onKeyPress",null);
_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nJ.prototype,"onMouseEnter",null);_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nJ.prototype,"onMouseLeave",null);nJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],nJ);
_.H(nJ,"ytd-transcript-body-renderer",function(){if(iTk!==void 0)return iTk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return iTk=W},{mode:1});var bT5;var fJ=function(){var W=_.n.apply(this,arguments)||this;W.darkerPanels=_.e("web_watch_darker_panels");return W};
_.R(fJ,_.n);fJ.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fJ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],fJ.prototype,"darkerPanels",void 0);fJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],fJ);
_.H(fJ,"ytd-transcript-footer-renderer",function(){if(bT5!==void 0)return bT5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return bT5=W},{mode:1});var jkD;var T$1;var Gq=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.showClearButton=!1;return W};
_.R(Gq,_.n);_.d=Gq.prototype;_.d.handleInput=function(W){var O=this;W.target.value.length?_.n2(this,"ytdTranscriptSearchBoxSearch",function(){O.emitSearchEvent(W)},500):(_.lyT(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=W.target.value.length>0};
_.d.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.d.handleClick=function(){var W,O=(W=this.data)==null?void 0:W.trackingParams;O&&_.dk(_.A4(),O)};
_.d.handleClear=function(){_.lyT(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var W,O,b=(O=_.P((W=this.data)==null?void 0:W.clearButton,_.s2))==null?void 0:O.trackingParams;b&&_.dk(_.A4(),b);this.clear()};
_.d.emitSearchEvent=function(W){_.bX(this.hostElement,"yt-transcript-search-box-search",{query:W.target.value});var O,b;(W=(b=_.P((O=this.data)==null?void 0:O.searchButton,_.s2))==null?void 0:b.trackingParams)&&_.dk(_.A4(),W)};
_.d.emitClearEvent=function(){_.bX(this.hostElement,"yt-transcript-search-box-clear")};
_.Jq.Object.defineProperties(Gq.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Gq.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Gq.prototype,"systemIcons",void 0);Gq=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],Gq);
_.H(Gq,"ytd-transcript-search-box-renderer",function(){if(T$1!==void 0)return T$1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return T$1=W},{mode:1});var L0g;var dH2;var HK=function(){return _.n.apply(this,arguments)||this};
_.R(HK,_.n);HK.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var W,O;this.sectionHeaderAriaLabel=(W=this.data)==null?void 0:(O=W.accessibility)==null?void 0:O.accessibilityData.label}};
HK.prototype.fireSelectedEvent=function(W){_.bX(this.hostElement,"ytd-transcript-section-header",{startMs:W})};
HK.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
HK.prototype.handleKeyPress=function(W){this.data&&W.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Jq.Object.defineProperties(HK.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.data)==null?void 0:W.enableTappableTranscriptHeader)!=null?O:!1}}});
HK.prototype.dataChanged=HK.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],HK.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],HK.prototype,"sectionHeaderAriaLabel",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],HK.prototype,"enableTappableTranscriptHeader",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HK.prototype,"dataChanged",null);
HK=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],HK);
_.H(HK,"ytd-transcript-section-header-renderer",function(){if(dH2!==void 0)return dH2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dH2=W},{mode:1});var hZg;var Suk;var tk=function(){var W=_.n.apply(this,arguments)||this;W.isEditMode=!1;W.touchCaptionsEnabled=!1;W.deleteCaptionCorrectionPopupCommand=null;W.voteCaptionCorrectionPopupCommand=null;W.roundedContainer=!0;W.mouseOver=!1;W.textChanged=!1;W.messages={suggest_correction:_.EO("suggest_correction",void 0,"Edit caption"),suggested_caption:_.EO("suggested_caption",void 0,"Suggested caption"),submit_correction:_.EO("submit_correction",void 0,"Submit for review"),cancel_correction:_.EO("cancel_correction",
void 0,"Cancel"),replay_segment:_.EO("replay_segment",void 0,"Re-play segment"),delete_correction:_.EO("delete_correction",void 0,"Delete correction")};W.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return W};
_.R(tk,_.n);_.d=tk.prototype;_.d.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)};
_.d.handleDelete=function(W){if(this.deleteCaptionCorrectionPopupCommand){var O=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);O&&this.ytdOpenPopupBehavior.openPopup(O);W.stopPropagation()}};
_.d.handleSubmit=function(W){if(this.data&&this.data.submitCaptionCorrectionCommand&&(W.stopPropagation(),this.textChanged)){var O;W=(O=_.P(this.data.submitCaptionCorrectionCommand,_.am1))==null?void 0:O.params;O=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:W,correctionText:String(this.ironTextAreaElement.value),originalText:_.NX(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(O);this.isEditMode=!1}};
_.d.handleUpdateSegmentText=function(W){(W=_.P(W,VGD))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&(W.userCorrection&&(this.editedText=W.userCorrection),W.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.NX(this.data.snippet)),W.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=W.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=W.voteCaptionCorrectionPopupCommand?
W.voteCaptionCorrectionPopupCommand:null,W.accessibility&&(this.segmentAriaLabel=W.accessibility.accessibilityData.label))};
_.d.handleCancel=function(W){this.isEditMode=!1;W.stopPropagation();this.logClientVe(159409)};
_.d.handleEditSegmentCommand=function(W){(W=_.P(W,$01))&&W.targetId&&this.data&&W.targetId===this.data.targetId&&this.handleEdit()};
_.d.handleEditButtonClick=function(W){this.data&&(this.handleEdit(),W.stopPropagation())};
_.d.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var W;(W=this.ironTextAreaElement.textarea)==null||W.focus();this.logClientVe(159407)}};
_.d.handleMouseEnter=function(){this.mouseOver=!0};
_.d.handleMouseLeave=function(){this.mouseOver=!1};
_.d.handleReplay=function(W){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),W.stopPropagation(),this.logClientVe(159408))};
_.d.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()))};
_.d.handleKeypress=function(W){this.data&&(this.isEditMode?W.stopPropagation():this.isEnterPress(W)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(W)&&this.logClientVe(138758))};
_.d.handleTextboxClick=function(W){W.stopPropagation()};
_.d.handleTextboxKeydown=function(W){this.isControlEnterPress(W)?this.handleSubmit(W):W.key==="Escape"&&this.handleCancel(W)};
_.d.handleTextboxKeyup=function(){this.textChanged=_.NX(this.latestText)!==String(this.ironTextAreaElement.value)};
_.d.fireSelectedEvent=function(W){_.bX(this.hostElement,"yt-transcript-segment-selected",{startMs:W})};
_.d.fireReplayEvent=function(W,O){_.bX(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(W-100,0),endMs:O})};
_.d.fireEditEvent=function(W,O){_.bX(this.hostElement,"yt-transcript-segment-edit",{startMs:W,endMs:O})};
_.d.isEnterPress=function(W){return W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13?!0:!1};
_.d.isControlEnterPress=function(W){var O=W.key==="Enter"||W.code==="Enter"||W.code==="NumpadEnter"||W.keyCode===13;return(W.ctrlKey||W.metaKey)&&O};
_.d.isCopyPress=function(W){var O=W.ctrlKey;return W.key==="c"&&O};
_.d.logClick=function(){var W,O=(W=this.data)==null?void 0:W.trackingParams;O&&_.dk(_.A4(),O)};
_.d.logClientVe=function(W){_.LK(_.A4(),_.gd(W))};
_.Jq.Object.defineProperties(tk.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}}});
tk.prototype.handleMouseLeave=tk.prototype.handleMouseLeave;tk.prototype.handleMouseEnter=tk.prototype.handleMouseEnter;tk.prototype.dataChanged=tk.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],tk.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],tk.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],tk.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],tk.prototype,"isEditMode",void 0);_.t([_.C(),_.N("design:type",Object)],tk.prototype,"touchCaptionsEnabled",void 0);_.t([_.C(),_.N("design:type",Object)],tk.prototype,"editedText",void 0);_.t([_.C(),_.N("design:type",Object)],tk.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.t([_.C(),_.N("design:type",Object)],tk.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.t([_.C(),_.N("design:type",String)],tk.prototype,"segmentAriaLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],tk.prototype,"roundedContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],tk.prototype,"mouseOver",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],tk.prototype,"textChanged",void 0);_.t([_.C(),_.N("design:type",Object)],tk.prototype,"messages",void 0);
_.t([_.El("#suggestion"),_.N("design:type",Object)],tk.prototype,"ironTextAreaElement",void 0);_.t([_.x("data","editedText"),_.N("design:type",Object),_.N("design:paramtypes",[])],tk.prototype,"latestText",null);_.t([_.x("touchCaptionsEnabled","isEditMode"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tk.prototype,"enableEditButton",null);
_.t([_.x("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tk.prototype,"enableUndoButton",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tk.prototype,"dataChanged",null);_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tk.prototype,"handleMouseEnter",null);
_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],tk.prototype,"handleMouseLeave",null);tk=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],tk);
_.H(tk,"ytd-transcript-segment-renderer",function(){if(Suk!==void 0)return Suk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Suk=W},{mode:1});var $k=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};W.isError=!1;W.darkerPanels=_.e("web_watch_darker_panels");W.segmentOffsets=[];W.segmentIndex=-1;return W};
_.R($k,_.n);_.d=$k.prototype;_.d.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"}}}}};
_.d.segmentsChanged=function(){this.updateOffsets()};
_.d.onYtPlayerTimeChanged=function(W){for(var O=this.segmentIndex,b=O;;){if(b>=0){var T=this.segmentOffsets[b].start;var L=this.segmentOffsets[b].isAutoScrollable}else T=-1,L=!0;var h=W+.5;if(!L){T=b+1<this.segmentOffsets.length?this.segmentOffsets[b+1].start:Infinity;if(h>=T){b+=1;continue}b=-1;break}if(h<T)T=b-1>=0&&this.segmentOffsets[b-1].isAutoScrollable,L=b===0||T?1:2,b-=L;else if(L=b+1<this.segmentOffsets.length&&this.segmentOffsets[b+1].isAutoScrollable?1:2,T=b+L<this.segmentOffsets.length?
this.segmentOffsets[b+L].start:Infinity,h>T)b+=L;else{if(b<0)break;b<this.segmentOffsets.length&&h>this.segmentOffsets[b].end&&(b=-1);break}}if(O!==b){if(O>=0){var Z;(Z=this.getSegmentElement(O))==null||Z.classList.remove("active")}this.segmentIndex=b;if(!(b<0)){var a;(a=this.getSegmentElement(b))==null||a.classList.add("active");this.isHovered||this.scrollElementToTop(b)}}};
_.d.handleSegmentEdit=function(W){W.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=W.target,_.jx(this.hostElement,"yt-transcript-player-edit",[W.detail.startMs/1E3,W.detail.endMs/1E3]))};
_.d.handleSegmentSelected=function(W){_.jx(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.d.handleSegmentReplay=function(W){_.jx(this.hostElement,"yt-transcript-player-replay",[W.detail.startMs/1E3,W.detail.endMs/1E3])};
_.d.handleSectionHeaderSelected=function(W){_.jx(this.hostElement,"yt-transcript-player-seek",[W.detail.startMs/1E3])};
_.d.onMouseEnter=function(){this.isHovered=!0};
_.d.onMouseLeave=function(){this.isHovered=!1};
_.d.onRetryButtonClick=function(){_.bX(this.hostElement,"transcript-retry-button-click")};
_.d.getSegmentElement=function(W){return _.Q(this.hostElement).querySelector(":nth-child("+(W+1)+")")};
_.d.scrollElementToTop=function(W){W=this.getSegmentElement(W>=2?W-2:0);this.hostElement.scrollTop=Math.min(W.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.d.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(W){var O,b=(O=W.transcriptSegmentRenderer)!=null?O:W.transcriptSectionHeaderRenderer;return{start:Number(b.startMs)/1E3,end:Number(b.endMs)/1E3,isAutoScrollable:W.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.d.clearHighlightedSegments=function(){var W=_.Q(this.hostElement);W=_.S(W.querySelectorAll("ytd-transcript-segment-renderer"));for(var O=W.next();!O.done;O=W.next())O.value.classList.remove("active")};
_.Jq.Object.defineProperties($k.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.searchResultSegments)||((O=this.data)==null?void 0:O.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
$k.prototype.onMouseLeave=$k.prototype.onMouseLeave;$k.prototype.onMouseEnter=$k.prototype.onMouseEnter;$k.prototype.handleSectionHeaderSelected=$k.prototype.handleSectionHeaderSelected;$k.prototype.handleSegmentReplay=$k.prototype.handleSegmentReplay;$k.prototype.handleSegmentSelected=$k.prototype.handleSegmentSelected;$k.prototype.handleSegmentEdit=$k.prototype.handleSegmentEdit;$k.prototype.segmentsChanged=$k.prototype.segmentsChanged;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],$k.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$k.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$k.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$k.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],$k.prototype,"isError",void 0);
_.t([_.C(),_.N("design:type",Object)],$k.prototype,"noResultLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],$k.prototype,"darkerPanels",void 0);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],$k.prototype,"segments",null);_.t([_.x("segments","noResultLabel"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$k.prototype,"displayNoResults",null);
_.t([_.m5("segments"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$k.prototype,"segmentsChanged",null);_.t([_.ai("yt-transcript-segment-edit"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$k.prototype,"handleSegmentEdit",null);_.t([_.ai("yt-transcript-segment-selected"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$k.prototype,"handleSegmentSelected",null);
_.t([_.ai("yt-transcript-segment-replay"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$k.prototype,"handleSegmentReplay",null);_.t([_.ai("ytd-transcript-section-header"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],$k.prototype,"handleSectionHeaderSelected",null);_.t([_.ai("mouseenter"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$k.prototype,"onMouseEnter",null);
_.t([_.ai("mouseleave"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$k.prototype,"onMouseLeave",null);$k=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],$k);
_.H($k,"ytd-transcript-segment-list-renderer",function(){if(hZg!==void 0)return hZg;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hZg=W},{mode:1});var VT=function(){var W=_.n.apply(this,arguments)||this;W.hideTimestamps=!!_.Tz("hide-transcript-timestamps");W.isLoadingTranscripts=!1;W.darkerPanels=_.e("web_watch_darker_panels");W.isError=!1;W.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return W};
_.R(VT,_.n);_.d=VT.prototype;_.d.headerChanged=function(){var W,O;this.baseGetTranscriptsCommand=(O=_.P((W=this.data)==null?void 0:W.header,NKk))==null?void 0:O.onTextChangeCommand};
_.d.bodyChanged=function(){var W=this.getBodyRenderer();W&&(W.initialSegments&&(this.initialTranscriptsRenderer=W),W.noResultLabel&&(this.noResultLabel=W.noResultLabel),W.retryLabel&&(this.retryLabel=W.retryLabel))};
_.d.detached=function(){this.clearSearchBoxText()};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.d.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"}}}};
_.d.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.d.fireSearch=function(W){var O=this;if(W){var b=W.detail.query;if(this.baseGetTranscriptsCommand){var T;W=(T=_.P(this.baseGetTranscriptsCommand,_.FDw))==null?void 0:T.params;var L;T=_.P((L=this.data)==null?void 0:L.footer,QI8);var h;if((L=(h=_.P(T==null?void 0:T.languageMenu,Gd9))==null?void 0:h.subMenuItems)&&L.length>0&&(h=L.find(function(m){return m.selected}))){var Z,a;
W=(Z=h.continuation)==null?void 0:(a=Z.reloadContinuationData)==null?void 0:a.continuation}Z=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:W,searchQuery:b}});this.ytComponentBehavior.resolveCommand(Z,{commandController:{onServerError:function(){O.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});aE5(this.ytContinuationHandlerBehavior,function(){return b===O.getCurrentSearchBoxText()})}}};
_.d.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.d.onRetryButtonClick=function(){this.isError=!1;var W={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:W}))};
_.d.hideTimestampsChanged=function(){_.ju("hide-transcript-timestamps",this.hideTimestamps)};
_.d.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.d.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.d.handleSignalActionCopyTranscript=function(){var W=this,O=this.getBodyRenderer();O&&(O=((O==null?void 0:O.searchResultSegments)||(O==null?void 0:O.initialSegments)||[]).map(function(b){return _.P(b,uxN)}).filter(function(b){return!!b}).map(function(b){return{snippet:b.snippet||{runs:[{text:""}]},
startTimeText:b.startTimeText||{simpleText:""}}}).map(function(b){var T=(b.snippet.runs||[]).reduce(function(L,h){return L+h.text},"");
return W.hideTimestamps?T:b.startTimeText.simpleText+" "+T}).join("\n"),this.copyToClipboard(O))};
_.d.copyToClipboard=function(W){navigator.clipboard&&navigator.clipboard.writeText(W)};
_.d.getCurrentSearchBoxText=function(){var W;return(W=this.searchBox)==null?void 0:W.value};
_.d.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.d.getBodyRenderer=function(){var W;return _.P((W=this.data)==null?void 0:W.body,MG8)};
_.d.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Jq.Object.defineProperties(VT.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
VT.prototype.hideTimestampsChanged=VT.prototype.hideTimestampsChanged;VT.prototype.searchCleared=VT.prototype.searchCleared;VT.prototype.fireSearch=VT.prototype.fireSearch;VT.prototype.onReloadContinuationFinish=VT.prototype.onReloadContinuationFinish;VT.prototype.bodyChanged=VT.prototype.bodyChanged;VT.prototype.headerChanged=VT.prototype.headerChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],VT.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],VT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],VT.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VT.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],VT.prototype,"hideTimestamps",void 0);
_.t([_.C(),_.N("design:type",Object)],VT.prototype,"isLoadingTranscripts",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],VT.prototype,"darkerPanels",void 0);_.t([_.C(),_.N("design:type",Object)],VT.prototype,"isError",void 0);_.t([_.m5("data.header"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"headerChanged",null);
_.t([_.Ul("data.body"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"bodyChanged",null);_.t([_.ai("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"onReloadContinuationFinish",null);_.t([_.ai("yt-transcript-search-box-search"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],VT.prototype,"fireSearch",null);
_.t([_.ai("yt-transcript-search-box-clear"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"searchCleared",null);_.t([_.m5("hideTimestamps"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],VT.prototype,"hideTimestampsChanged",null);VT=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],VT);
_.H(VT,"ytd-transcript-search-panel-renderer",function(){if(L0g!==void 0)return L0g;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return L0g=W},{mode:1});var N7=function(){var W=_.n.apply(this,arguments)||this;W.player=null;W.playerPollJobId=0;return W};
_.R(N7,_.n);_.d=N7.prototype;_.d.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.d.onLoadReloadContinuation=function(W){_.e("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:W.target.data.continuation}}):(W={clickTrackingParams:W.target.data.clickTrackingParams,getTranscriptEndpoint:{params:W.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}}))};
_.d.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"}}}};
_.d.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.d.attached=function(){this.updatePlayerListening()};
_.d.detached=function(){this.updatePlayerListening()};
_.d.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.d.startPlayerListening=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return(O=_.ya())?_.Y(b,O.getPlayerPromise(),2):b.return();W.player=b.yieldResult;W.playerPollJobId=_.sF.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3);
W.player.addEventListener("onCueRangeEnter",function(T){W.onCueRangeEnter(T)});
W.player.addEventListener("onCueRangeExit",function(T){W.onCueRangeExit(T)});
W.player.addEventListener("onStateChange",function(T){W.onPlayerStateChange(T)});
W.player.addEventListener("SEEK_TO",function(T){W.onPlayerSeek(T)});
_.aD(b)})};
_.d.getPlayerVideoProgress=function(){var W=this;_.sF.cancelJob(this.playerPollJobId);if(this.player){var O=this.player.getCurrentTime();_.jx(this.hostElement,"yt-player-time-changed",[O])}this.playerPollJobId=_.sF.addLowPriorityJob(function(){W.getPlayerVideoProgress()},1E3)};
_.d.stopPlayerListening=function(){this.player=null;_.sF.cancelJob(this.playerPollJobId)};
_.d.onPlayerStateChange=function(W){W===2&&this.removePendingCue()};
_.d.onPlayerSeek=function(W){var O;if(O=this.pendingReplayCueId)O=this.pendingReplayCueId,O=W===(_.e("web_transcript_cue_id_killswitch")?Number(O):Number(O.split("_")[1]));O||this.removePendingCue()};
_.d.onCueRangeEnter=function(W){C2P(W)&&(this.pendingReplayCueId=W)};
_.d.onCueRangeExit=function(W){C2P(W)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.d.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.d.onYtTranscriptPlayerSeek=function(W){this.player&&this.player.seekTo(W,!0)};
_.d.onYtTranscriptPlayerReplay=function(W,O){this.player&&(this.player.addCueRange(zdB(W),W,O),this.player.seekTo(W,!0),this.player.playVideo())};
_.d.onYtTranscriptPlayerEdit=function(W,O){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(zdB(W),W,O),this.player.seekTo(W,!0))};
N7.prototype.onLoadReloadContinuation=N7.prototype.onLoadReloadContinuation;N7.prototype.panelContentVisibleChanged=N7.prototype.panelContentVisibleChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],N7.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],N7.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],N7.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],N7.prototype,"panelContentVisible",void 0);_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],N7.prototype,"panelContentVisibleChanged",null);
_.t([_.ai("yt-load-reload-continuation"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],N7.prototype,"onLoadReloadContinuation",null);N7=_.t([_.G({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],N7);
_.H(N7,"ytd-transcript-renderer",function(){if(jkD!==void 0)return jkD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return jkD=W},{mode:1});var ZTB;var I48;var M7=function(){return _.n.apply(this,arguments)||this};
_.R(M7,_.n);M7.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.Sx(this.hostElement,[this.data.clickCommand],this.hostElement))};
M7.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.og)()+_.x5)+"px)"};
M7.prototype.updateShouldHideFromBinding=function(W){this.shouldHide=W.detail.value};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],M7.prototype,"rendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],M7.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],M7.prototype,"shouldHide",void 0);M7=_.t([_.G({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],M7);
_.H(M7,"ytd-ad-engagement-panel-banner-renderer",function(){if(I48!==void 0)return I48;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return I48=W},{mode:_.Lb("kevlar_poly_si_batch_j070")?1:2});var a42;var uc=function(){var W=_.n.apply(this,arguments)||this;W.modernPanels=_.e("kevlar_watch_modern_panels");W.buttonUpdate=_.e("web_modern_buttons");W.adsSemanticText=_.e("enable_ads_web_ep_buenos_aires_and_padding_fix");return W};
_.R(uc,_.n);uc.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.t([_.C(),_.N("design:type",Object)],uc.prototype,"data",void 0);_.t([_.C({computed:"computeHideDefaultAdBadge(data)"}),_.N("design:type",Boolean)],uc.prototype,"hideDefaultAdBadge",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],uc.prototype,"modernPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],uc.prototype,"buttonUpdate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],uc.prototype,"adsSemanticText",void 0);
uc=_.t([_.G({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],uc);
_.H(uc,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(a42!==void 0)return a42;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return a42=W},{mode:1});var mHP;var Jk=function(){var W=_.n.apply(this,arguments)||this;W.darkerPanels=_.e("web_watch_darker_panels");W.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");W.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");W.modernPanels=_.e("kevlar_watch_modern_panels");W.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return W};
_.R(Jk,_.n);_.d=Jk.prototype;_.d.computeAdsInfoButton=function(){if(_.e("web_modern_buttons")){var W,O;return(O=_.P((W=this.data)==null?void 0:W.subtitleComplex,kdB))==null?void 0:O.adInfoRenderer}};
_.d.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}}}}}};
_.d.collapsedChanged=function(){var W;(W=this.data)!=null&&W.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.e("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.d.focus=function(W){this.titleElement&&_.uP(this.titleElement,W)};
_.d.computeTitleAriaLabel=function(W){var O=[];if(W.title){var b,T;O.push(this.ytRendererBehavior.getSimpleString(W.title)||((b=W.title.accessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label))}W.contextualInfo&&O.push(this.ytRendererBehavior.getSimpleString(W.contextualInfo));return O.join(" ")};
_.d.onHeaderClick=function(W){this.shouldTriggerHeaderClick(W)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.Sx(this.hostElement,[this.data.onClickCommand],this.hostElement)):(W=this.getVisibilityToggleButton())&&W.click())};
_.d.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var W=_.P(this.data.visibilityButton,_.s2)||_.P(this.data.visibilityButton,_.BX);W&&this.ytRendererBehavior.logExplicitClick(W)}};
_.d.getVisibilityToggleButton=function(){var W=_.Q(this.hostElement).querySelector("#visibility-button").firstElementChild;return(W==null?void 0:W.is)==="ytd-toggle-button-renderer"?W:null};
_.d.shouldTriggerHeaderClick=function(W){return!_.un(_.Nd(W),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.d.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(W){W=_.P(W,_.eeN);this.targetId&&(W==null?void 0:W.targetId)===this.targetId&&(W=W.navigationButton)&&this.set("data.navigationButton",W)};
_.Jq.Object.defineProperties(Jk.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!!(((W=this.entity)==null?0:W.isActionButtonHidden)||this.hideActionButton)}}});
Jk.prototype.collapsedChanged=Jk.prototype.collapsedChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Jk.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Jk.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Jk.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Jk.prototype,"targetId",void 0);_.t([_.C(),_.N("design:type",Boolean)],Jk.prototype,"collapsed",void 0);_.t([_.C(),_.N("design:type",Boolean)],Jk.prototype,"hideActionButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jk.prototype,"shortsPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Jk.prototype,"liveChatEngagementPanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Jk.prototype,"darkerPanels",void 0);_.t([_.El("#title"),_.N("design:type",HTMLElement)],Jk.prototype,"titleElement",void 0);_.t([_.C({computed:"computeAdsInfoButton(data)"}),_.N("design:type",Object)],Jk.prototype,"adsInfoButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Jk.prototype,"enableSqueezebackPanels",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Jk.prototype,"enableAnchoredPanel",void 0);_.t([_.C({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(W,O){return _.IJ(W.entities,"engagementPanelTitleHeaderEntity",O)}}),
_.N("design:type",Object)],Jk.prototype,"entity",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Jk.prototype,"modernPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("targetId"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jk.prototype,"adsSemanticText",null);_.t([_.Ul("collapsed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jk.prototype,"collapsedChanged",null);
_.t([_.x("entity","hideActionButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Jk.prototype,"isActionButtonHidden",null);Jk=_.t([_.G({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Jk);
_.H(Jk,"ytd-engagement-panel-title-header-renderer",function(){if(mHP!==void 0)return mHP;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mHP=W},{mode:1});var YuD;var cK=function(){return _.n.apply(this,arguments)||this};
_.R(cK,_.n);cK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cK.prototype,"data",void 0);cK=_.t([_.G({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],cK);
_.H(cK,"ytd-macro-markers-info-item-renderer",function(){if(YuD!==void 0)return YuD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return YuD=W},{mode:1});var Ej9;var XnN=function(W,O,b,T,L,h){_.R8.call(this);var Z=this;this.JSC$20114_containerElement=W;this.hostElement=O;this.supportedSyncItems=b;this.syncEntityKey=T;this.options=L;this.renderLazyListItems=h;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;wn7(this);Aa7(this);this.JSC$20114_scrollAnimation=new _.BY(function(a){W.scrollTop=a});
_.a8(this,this.JSC$20114_scrollAnimation);this.addOnDisposeCallback(function(){Z.exitBrowsingMode(!1);Z.activeItem&&Z.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.R(XnN,_.R8);var wn7=function(W){var O=_.mr(_.iq().resolve(_.sZ),function(b){return b.entities.markersEngagementPanelSyncEntity||{}},function(b,T){var L;
b[W.syncEntityKey]!==T[W.syncEntityKey]&&((L=b[W.syncEntityKey])==null?void 0:L.activeItemIndex)!==void 0&&W.updatePanelActiveItem(b[W.syncEntityKey].activeItemIndex)});
W.unsubscribeFromTimedMarkersListSyncEntity=O;W.addOnDisposeCallback(O);UHR(W)},UHR=function(W){var O=_.iq().resolve(_.sZ);
O=_.UDT(O.getState(),W.syncEntityKey);(O==null?void 0:O.activeItemIndex)!==void 0&&(O=W.getItemByIndex(O.activeItemIndex))&&W.setActiveItem(O)},Aa7=function(W){var O=new _.JI(W.onScroll,50,W);
_.a8(W,O);var b=function(){O.fire()};
W.JSC$20114_containerElement.addEventListener("scroll",b);W.addOnDisposeCallback(function(){W.JSC$20114_containerElement.removeEventListener("scroll",b)})};
_.d=XnN.prototype;
_.d.updatePanelActiveItem=function(W){var O=this.getItemByIndex(W);if(O){if(this.setActiveItem(O),this.contentVisible)if(this.browsingMode){var b;((b=this.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(W=l42(this),O.offsetTop<this.JSC$20114_containerElement.clientHeight+this.JSC$20114_containerElement.scrollTop&&W&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));eZU(this)}else this.scrollToItem(O)}else _.z5(new _.pu("Could not find "+this.supportedSyncItems+
" sync child to set active.",W,this.JSC$20114_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.d.getItemByIndex=function(W){var O;(O=this.renderLazyListItems)==null||O.call(this,W);O=this.JSC$20114_containerElement.querySelectorAll(this.supportedSyncItems);if(O.length>W)return O[W]};
_.d.setActiveItem=function(W){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));W.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=W};
_.d.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.JSC$20114_containerElement.scrollTop!==W&&this.JSC$20114_scrollAnimation.start(this.JSC$20114_containerElement.scrollTop,W,300)};
_.d.getScrollPositionForItem=function(W){if(this.JSC$20114_containerElement.querySelectorAll(this.supportedSyncItems)[0]===W)return 0;var O,b=((O=this.options)==null?0:O.percentOffset)?this.JSC$20114_containerElement.clientHeight*this.options.percentOffset:0;W=_.Qr(W).y+this.JSC$20114_containerElement.scrollTop-(_.Qr(this.JSC$20114_containerElement).y+b);return Math.max(0,Math.min(W,this.JSC$20114_containerElement.scrollHeight-this.JSC$20114_containerElement.offsetHeight))};
_.d.onScroll=function(){this.activeItemBelowSyncPosition=l42(this);if(this.activeItem&&!this.JSC$20114_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20114_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var W;switch((W=this.options)==null?void 0:W.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!Pz8(this));eZU(this);break;default:this.enterBrowsingMode(!0)}}};
_.d.enterBrowsingMode=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1){if(O.browsingMode)return L.return();O.browsingMode=!0;W&&O.hostElement.classList.add("browsing-mode");O.playerExitBrowsingModeListener=function(){O.exitBrowsingMode(!1)};
return _.Y(L,_.Sk(),2)}b=L.yieldResult;(T=b)==null||T.addEventListener("SEEK_TO",O.playerExitBrowsingModeListener);_.aD(L)})};
_.d.exitBrowsingMode=function(W){W=W===void 0?!0:W;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),W&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.d.removePlayerSeekListener=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1)return W.playerExitBrowsingModeListener?_.Y(T,_.Sk(),3):T.jumpTo(0);O=T.yieldResult;(b=O)==null||b.removeEventListener("SEEK_TO",W.playerExitBrowsingModeListener);W.playerExitBrowsingModeListener=void 0;_.aD(T)})};
var eZU=function(W){var O;((O=W.options)==null?void 0:O.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Pz8(W)?W.hostElement.classList.remove("browsing-mode"):W.activeItem&&W.hostElement.classList.add("browsing-mode"))},l42=function(W){if(!W.activeItem)return!1;
var O,b=((O=W.options)==null?0:O.percentOffset)?W.JSC$20114_containerElement.clientHeight*W.options.percentOffset:0;return W.activeItem.offsetTop>=W.JSC$20114_containerElement.scrollTop+b},Pz8=function(W){if(!W.activeItem)return!1;
var O=W.activeItem.offsetTop+14<=W.JSC$20114_containerElement.scrollTop+W.JSC$20114_containerElement.clientHeight;return W.activeItem.offsetTop+W.activeItem.clientHeight-14>=W.JSC$20114_containerElement.scrollTop&&O};
XnN.prototype.panelContentVisibleChanged=function(W){(this.contentVisible=W)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var pnk=function(W,O){W.syncEntityKey=O;var b;(b=W.unsubscribeFromTimedMarkersListSyncEntity)==null||b.call(W);wn7(W)},RZD=function(W,O){W.options=O};var F3=function(){var W=_.n.apply(this,arguments)||this;W.browsingMode=!1;W.modern=_.e("web_button_rework");W.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return W};
_.R(F3,_.n);_.d=F3.prototype;_.d.activeItemChanged=function(){if(!_.e("synced_panel_scrolling_controller")){var W;((W=this.syncEntity)==null?void 0:W.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.d.created=function(){var W=this;_.e("synced_panel_scrolling_controller")||(this.JSC$20118_scrollAnimation=new _.BY(function(O){W.contents.scrollTop=O}),this.boundExitBrowsingMode=function(){W.exitBrowsingMode(!1)})};
_.d.detached=function(){if(_.e("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.d.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"}}}};
_.d.dataChanged=function(){var W=this;_.e("synced_panel_scrolling_controller")?_.My(this,function(){if(W.scrollController){var O;(O=W.scrollController)==null||O.exitBrowsingMode(!1);var b,T,L;(T=W.scrollController)==null||pnk(T,(L=(b=W.data)==null?void 0:b.syncModelEntityKey)!=null?L:"default-macro-markers-list-renderer-entity-key");var h,Z,a;(a=W.scrollController)==null||RZD(a,{percentOffset:(h=W.data)==null?void 0:h.selectedItemAlignmentPercentOffset,floatingPillType:(Z=W.data)==null?void 0:Z.floatingPillType})}else{var m,
w,A,X;W.scrollController=new XnN(W.contents,W.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(X=(m=W.data)==null?void 0:m.syncModelEntityKey)!=null?X:"default-macro-markers-list-renderer-entity-key",{percentOffset:(w=W.data)==null?void 0:w.selectedItemAlignmentPercentOffset,floatingPillType:(A=W.data)==null?void 0:A.floatingPillType},function(l){W.renderLazyListItems(l)})}W.scrollController.panelContentVisibleChanged(!!W.panelContentVisible)}):this.exitBrowsingMode()};
_.d.computeButtonShape=function(){var W=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){W.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.d.computeSyncEnabled=function(W){return!(W==null||!W.syncButtonLabel)};
_.d.renderLazyListItems=function(W){for(var O=this.contents.children,b=0,T=0;T<O.length;T++){var L=void 0;(L=O[T].ytLazyListBehavior)==null||L.fillRemainingListItems();var h=void 0,Z=void 0;L=_.P((h=this.data)==null?void 0:(Z=h.contents)==null?void 0:Z[T],_.jzN);Z=h=void 0;if((h=L)==null?0:(Z=h.contents)==null?0:Z.length)b+=L.contents.length;if(b>=W)break}};
_.d.getItemByIndex=function(W){this.renderLazyListItems(W);var O=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(O.length>W)return O[W]};
_.d.setActiveItem=function(W){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);W.active!==void 0&&(W.active=!0);this.currentActiveItem=W};
_.d.handleSetActivePanelItemAction=function(W){if((W=_.P(W,p4g))&&this.panelTargetId===W.panelTargetId){W=W.itemIndex;if(_.e("synced_panel_scrolling_controller")){var O,b;var T=(b=(O=this.data)==null?void 0:O.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key"}else{var L;T=(L=this.data)==null?void 0:L.syncModelEntityKey}if(T){var h;((h=this.syncEntity)==null?void 0:h.activeItemIndex)!==W&&this.ytdReduxBehavior.dispatch(_.AI("markersEngagementPanelSyncEntity",T,{key:T,activeItemIndex:W}))}else this.updatePanelActiveItem(W)}};
_.d.updatePanelActiveItem=function(W){var O=this.getItemByIndex(W);O?(this.setActiveItem(O),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(O)):_.z5(new _.pu("Could not find ytd-macro-markers-list-renderer sync child to set active.",W,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.d.scrollToItem=function(W){W=this.getScrollPositionForItem(W);this.contents.scrollTop!==W&&this.JSC$20118_scrollAnimation.start(this.contents.scrollTop,W,300)};
_.d.getScrollPositionForItem=function(W){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===W)return 0;W=_.Qr(W).y+this.contents.scrollTop-_.Qr(this.contents).y-this.getStickyHeaderHeight(W);return Math.min(W,this.contents.scrollHeight-this.contents.offsetHeight)};
_.d.getStickyHeaderHeight=function(W){if(W.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var O,b,T;return(T=(O=W.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(b=O.header)==null?void 0:b.offsetHeight)!=null?T:0}return 0};
_.d.onScroll=function(){_.e("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20118_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.d.enterBrowsingMode=function(){var W=this;return _.I(function(O){if(O.nextAddress==1){if(W.browsingMode)return O.return();W.browsingMode=!0;return _.Y(O,_.Wm().getPlayerPromise(),2)}W.player=O.yieldResult;W.player.addEventListener("SEEK_TO",W.boundExitBrowsingMode);_.aD(O)})};
_.d.exitBrowsingMode=function(W){this.browsingMode&&(this.browsingMode=!1,(W===void 0||W)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.d.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.d.onSyncClick=function(){if(_.e("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.exitBrowsingMode()}else this.exitBrowsingMode()};
_.d.panelContentVisibleChanged=function(){if(_.e("synced_panel_scrolling_controller")){var W;(W=this.scrollController)==null||W.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
F3.prototype.panelContentVisibleChanged=F3.prototype.panelContentVisibleChanged;F3.prototype.dataChanged=F3.prototype.dataChanged;F3.prototype.activeItemChanged=F3.prototype.activeItemChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],F3.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],F3.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],F3.prototype,"useCustomColors",void 0);_.t([_.C({computed:"computeSyncEnabled(data)"}),_.N("design:type",Boolean)],F3.prototype,"syncEnabled",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],F3.prototype,"panelTargetId",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],F3.prototype,"panelContentVisible",void 0);_.t([_.El("#contents"),_.N("design:type",HTMLElement)],F3.prototype,"contents",void 0);_.t([_.El("#sync-container"),_.N("design:type",HTMLElement)],F3.prototype,"syncContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F3.prototype,"browsingMode",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],F3.prototype,"modern",void 0);_.t([_.C({selectorArgs:["data.syncModelEntityKey"],selector:_.UDT}),_.N("design:type",Object)],F3.prototype,"syncEntity",void 0);_.t([_.m5("syncEntity.activeItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F3.prototype,"activeItemChanged",null);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F3.prototype,"dataChanged",null);_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F3.prototype,"panelContentVisibleChanged",null);F3=_.t([_.G({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],F3);
_.H(F3,"ytd-macro-markers-list-renderer",function(){if(Ej9!==void 0)return Ej9;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ej9=W},{mode:1});var K0g;var yT=function(){return _.n.apply(this,arguments)||this};
_.R(yT,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],yT.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yT.prototype,"data",void 0);yT=_.t([_.G({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],yT);
_.H(yT,"ytd-error-corrections-section-item-renderer",function(){if(K0g!==void 0)return K0g;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return K0g=W},{mode:1});var vj5;var Wz=function(){return _.n.apply(this,arguments)||this};
_.R(Wz,_.n);Wz.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Wz.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Wz.prototype,"data",void 0);Wz=_.t([_.G({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],Wz);
_.H(Wz,"ytd-error-corrections-section-renderer",function(){if(vj5!==void 0)return vj5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return vj5=W},{mode:1});var gjP;var Oy=function(){return _.n.apply(this,arguments)||this};
_.R(Oy,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Oy.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Oy.prototype,"data",void 0);Oy=_.t([_.G({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],Oy);
_.H(Oy,"ytd-topic-link-renderer",function(){if(gjP!==void 0)return gjP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gjP=W},{mode:1});var oj5;var iT=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("kevlar_modern_sd_v2");W.modernLockupV2=_.e("modernize_structured_description_playlist_lockups_v2");W.modernTypography=_.e("web_modern_typography");return W};
_.R(iT,_.n);iT.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],iT.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iT.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iT.prototype,"modernLockupV2",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iT.prototype,"modernTypography",void 0);iT=_.t([_.G({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],iT);
_.H(iT,"ytd-video-description-course-section-renderer",function(){if(oj5!==void 0)return oj5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return oj5=W},{mode:1});var Qk1;var bT=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("kevlar_modern_sd_v2");W.modernTypography=_.e("web_modern_typography");return W};
_.R(bT,_.n);bT.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bT.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bT.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bT.prototype,"modernTypography",void 0);
bT=_.t([_.G({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],bT);
_.H(bT,"ytd-video-description-files-section-renderer",function(){if(Qk1!==void 0)return Qk1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Qk1=W},{mode:1});var kAg;var ja=function(){return _.n.apply(this,arguments)||this};
_.R(ja,_.n);ja.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ja.prototype,"data",void 0);ja=_.t([_.G({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],ja);
_.H(ja,"ytd-video-description-gaming-section-renderer",function(){if(kAg!==void 0)return kAg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return kAg=W},{mode:1});var sk5;var Tt=function(){var W=_.n.apply(this,arguments)||this;W.isExpanded=!1;return W};
_.R(Tt,_.n);Tt.prototype.computeHasDefaultMetadataEndpoint=function(W){var O;W=W==null?void 0:(O=W.defaultMetadata)==null?void 0:O.runs;return!(!W||W.length!==1||!W[0].navigationEndpoint)};
Tt.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Jq.Object.defineProperties(Tt.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Tt.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Tt.prototype,"isExpanded",void 0);_.t([_.C({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Tt.prototype,"hasDefaultMetadataEndpoint",void 0);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tt.prototype,"isExpandable",null);_.t([_.x("data","isExpandable","isExpanded"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Tt.prototype,"showExpandedMetadata",null);Tt=_.t([_.G({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Tt);
_.H(Tt,"ytd-info-row-renderer",function(){if(sk5!==void 0)return sk5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return sk5=W},{mode:1});var B$k;var Lo=function(){var W=_.n.apply(this,arguments)||this;W.currentIndex=0;W.supportComponentResize=!0;W.modern=_.e("kevlar_modern_sd_v2");W.JSC$20144_lastScrollContainerWidth=NaN;return W};
_.R(Lo,_.n);_.d=Lo.prototype;
_.d.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"}}}};
_.d.getItemsPath=function(){return"videoLockups"};
_.d.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.d.onIronResize=function(){this.updateVideoLockupStyles()};
_.d.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.d.updateVideoLockupStyles=function(){var W;this.JSC$20144_scrollContainer!==void 0&&(W=this.videoLockups)!=null&&W.length&&(W=this.JSC$20144_scrollContainer.clientWidth,W!==this.JSC$20144_lastScrollContainerWidth&&(this.JSC$20144_lastScrollContainerWidth=W,_.Sl(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(W*.8,415)+"px"}),_.bX(this.hostElement,"iron-resize")))};
_.Jq.Object.defineProperties(Lo.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var W=[],O;if((O=this.data)==null||!O.carouselLockups)return W;O=_.S(this.data.carouselLockups);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;((T=_.P(b,yJ8))==null?0:T.videoLockup)&&W.push(_.P(b,yJ8).videoLockup)}return W}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoLockups)==null||!W.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var W=[],O;if((O=this.data)==null||!O.carouselLockups)return W;var b;return(b=_.P(this.data.carouselLockups[this.scrollCount],yJ8))==null?void 0:b.infoRows}}});
Lo.prototype.dataChanged=Lo.prototype.dataChanged;Lo.prototype.onIronResize=Lo.prototype.onIronResize;Lo.prototype.hiddenChanged=Lo.prototype.hiddenChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Lo.prototype,"componentBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],Lo.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Lo.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Lo.prototype,"inlineStructuredDescription",void 0);_.t([_.C({value:2}),_.N("design:type",Number)],Lo.prototype,"initialCount",void 0);_.t([_.C(),_.N("design:type",Object)],Lo.prototype,"currentIndex",void 0);
_.t([_.C(),_.N("design:type",Number)],Lo.prototype,"scrollCount",void 0);_.t([_.C(),_.N("design:type",Object)],Lo.prototype,"supportComponentResize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Lo.prototype,"contentHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Lo.prototype,"modern",void 0);_.t([_.El("#scroll-container"),_.N("design:type",HTMLDivElement)],Lo.prototype,"JSC$20144_scrollContainer",void 0);
_.t([_.m5("contentHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lo.prototype,"hiddenChanged",null);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],Lo.prototype,"videoLockups",null);_.t([_.x("videoLockups"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Lo.prototype,"hasVideoLockups",null);
_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lo.prototype,"onIronResize",null);_.t([_.x("data","scrollCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lo.prototype,"infoRows",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lo.prototype,"dataChanged",null);Lo=_.t([_.G({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Lo);
_.H(Lo,"ytd-video-description-music-section-renderer",function(){if(B$k!==void 0)return B$k;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return B$k=W},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var raB;var dh=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("kevlar_modern_sd_v2");W.modernTypography=_.e("web_modern_typography");return W};
_.R(dh,_.n);dh.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);_.t([_.C({}),_.N("design:type",Object)],dh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dh.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dh.prototype,"modernTypography",void 0);
dh=_.t([_.G({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],dh);
_.H(dh,"ytd-video-description-transcript-section-renderer",function(){if(raB!==void 0)return raB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return raB=W},{mode:1});var DHU;_.O1(_.J1(function(W){var O=_.wt(_.ppX,function(){return W.data().firstProviderLinkStatusEntityKey}),b=_.wt(_.ppX,function(){return W.data().secondProviderLinkStatusEntityKey}),T=function(){var L,h;
return((L=O())==null?void 0:L.linked)||((h=b())==null?void 0:h.linked)};
return _.E("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.E(_.uw,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return W.data().sectionTitle}}),_.E(_.uw,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return T()?W.data().connectedMessage:W.data().notConnectedMessage}}),_.E(_.U,{cond:T,
then:function(){return _.E(_.R4,{data:function(){return W.data().connectedButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.E(_.U,{cond:function(){return!T()},
then:function(){return _.E(_.R4,{data:function(){return W.data().notConnectedButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Ii"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;return _.E("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.E("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.E(_.uw,{text:function(){return O().sectionTitle}})),_.E("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.E(_.uw,{text:function(){return O().bodyHeader}})),_.E("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.E(_.uw,{text:function(){return O().bodyText}})),_.E(_.U,
{cond:function(){return O().attributionText},
then:function(){return _.E("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.E(_.uw,{text:function(){return O().attributionText}}))}}))},"Ji"),"how-this-was-made-section-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){return _.E("yt-video-description-youchat-section-view-model",{class:_.YS("ytVideoDescriptionYouchatSectionViewModelHost")},_.E("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.E(_.uw,{text:function(){return W.data().sectionTitle}})),_.E("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.E(_.uw,{text:function(){return W.data().subHeaderText}})),_.E("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.E(_.DO,{data:function(){return _.P(W.data().primaryButton,
_.Kp)}})))},"Ki"),"yt-video-description-youchat-section-view-model",{props:{data:_.te}});var hi=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("kevlar_modern_sd_v2");W.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return W};
_.R(hi,_.n);_.d=hi.prototype;
_.d.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}}}}}};
_.d.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.d.dataChanged=function(){var W,O;this.hasDescriptionOnly=!(((W=this.data)==null?void 0:(O=W.items)==null?void 0:O.length)!==1||!_.P(this.data.items[0],WkU))};
_.d.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.d.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.d.autoFocusDescription=function(){var W;((W=_.iq().resolve(_.OT(_.bD)))==null?0:W.isKeyBoardInUse())&&this.description&&_.JS(this.description)};
_.d.resize=function(){if(_.e("kevlar_disable_sd_resize"))this.JSC$20152_cardList&&_.bX(this.JSC$20152_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.bX(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.bX(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.d.scrollToSection=function(W){if(W=this.getSectionElement(W))_.jx(this.hostElement,"yt-scroll-to-watch-element",[W]),W.focus()};
_.d.getSectionElement=function(W){switch(W){case "infocards-item-section":var O;return(O=this.infocardsSection)!=null?O:null;case "transcript-item-section":var b;return(b=this.transcriptSection)!=null?b:null;case "how-this-was-made-section-item-section":var T;return(T=this.howThisWasMadeSection)!=null?T:null;case "files-item-section":var L;return(L=this.filesSection)!=null?L:null;default:return null}};
_.d.handleSetActiveItemAction=function(W){var O=_.P(W,p4g),b=O&&(O==null?void 0:O.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20152_cardList;if(O&&b){W=this.currentActiveChapter;var T=this.currentActiveProblem;O=b==null?void 0:b.getItemByIndex(O.itemIndex);var L=b=!0;O&&(O.active=!0,O.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(b=W!==O,L=!1,this.currentActiveChapter=O):(O==null?void 0:O.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(b=!1,L=T!==O,this.currentActiveProblem=O));W&&b&&(W.active=!1);T&&L&&(T.active=!1)}};
_.Jq.Object.defineProperties(hi.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.e("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
hi.prototype.onYtExpanderMoreTapped=hi.prototype.onYtExpanderMoreTapped;hi.prototype.onHiddenChanged=hi.prototype.onHiddenChanged;hi.prototype.dataChanged=hi.prototype.dataChanged;hi.prototype.panelContentVisibleChanged=hi.prototype.panelContentVisibleChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hi.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],hi.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],hi.prototype,"ironResizableBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hi.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],hi.prototype,"panelContentVisible",void 0);_.t([_.C(),_.N("design:type",Boolean)],hi.prototype,"hasDescriptionOnly",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hi.prototype,"inlineStructuredDescription",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hi.prototype,"hidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hi.prototype,"shortsPanel",void 0);_.t([_.C(),_.N("design:type",Object)],hi.prototype,"videoSummary",void 0);_.t([_.C(),_.N("design:type",Object)],hi.prototype,"merchShelf",void 0);
_.t([_.x("videoSummary"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],hi.prototype,"showVideoSummary",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hi.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hi.prototype,"engagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],hi.prototype,"watchWhileSdp",void 0);
_.t([_.El("ytd-expandable-video-description-body-renderer"),_.N("design:type",Object)],hi.prototype,"description",void 0);_.t([_.El("ytd-horizontal-card-list-renderer"),_.N("design:type",Object)],hi.prototype,"JSC$20152_cardList",void 0);_.t([_.El("ytd-horizontal-card-list-renderer[center-items]"),_.N("design:type",Object)],hi.prototype,"problemWalkthroughCardList",void 0);_.t([_.El("ytd-shelf-renderer"),_.N("design:type",Object)],hi.prototype,"shelfSection",void 0);
_.t([_.El("ytd-video-description-music-section-renderer"),_.N("design:type",Object)],hi.prototype,"musicMetadataSection",void 0);_.t([_.El("ytd-video-description-infocards-section-renderer"),_.N("design:type",Object)],hi.prototype,"infocardsSection",void 0);_.t([_.El("ytd-video-description-transcript-section-renderer"),_.N("design:type",Object)],hi.prototype,"transcriptSection",void 0);
_.t([_.El("how-this-was-made-section-view-model"),_.N("design:type",Object)],hi.prototype,"howThisWasMadeSection",void 0);_.t([_.El("ytd-video-description-files-section-renderer"),_.N("design:type",Object)],hi.prototype,"filesSection",void 0);_.t([_.m5("panelContentVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hi.prototype,"panelContentVisibleChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hi.prototype,"dataChanged",null);_.t([_.m5("hidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hi.prototype,"onHiddenChanged",null);_.t([_.ai("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hi.prototype,"onYtExpanderMoreTapped",null);
hi=_.t([_.G({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],hi);
_.H(hi,"ytd-structured-description-content-renderer",function(){if(DHU!==void 0)return DHU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DHU=W},{mode:2});var xHR;var zZ2;var Sa=function(){return _.n.apply(this,arguments)||this};
_.R(Sa,_.n);Sa.prototype.computeAriaLabel=function(W){var O,b;return(W==null?void 0:(O=W.accessibility)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label)||_.EO("LOADING",void 0,"Loading")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Sa.prototype,"data",void 0);_.t([_.C({computed:"computeAriaLabel(data)"}),_.N("design:type",String)],Sa.prototype,"ariaLabel",void 0);Sa=_.t([_.sl({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Sa);
_.H(Sa,"yt-content-loading-renderer",function(){if(zZ2===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;xHR===void 0&&(xHR=document.createElement("template"));var T=xHR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zZ2=W}W=zZ2;return W},{mode:_.Lb("kevlar_poly_si_batch_j043")?1:2});_.O1(_.J1(function(W){var O=_.S(_.wu(!1,void 0,"WbYeXc")),b=O.next().value,T=O.next().value;O=_.S(_.wu(!1,void 0,"msXkzc"));var L=O.next().value,h=O.next().value;_.kX(function(){var m=_.P(W.data().collaboratePlaylistCollaborationSetting,HtB);m&&T(m.switchedOnByDefault);var w=_.P(W.data().allowNewCollaboratorsPlaylistCollaborationSetting,HtB);w&&h(w.switchedOnByDefault);if(!m&&!w||!m&&W.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")T(!0),h(!0)});
var Z=function(m){T(m);h(m);var w=W.data().playlistCollaborationEntityKey||"";var A=_.$I().getState();(A=_.IJ(A.entities,"playlistCollaborationEntity",w))&&(A==null?void 0:A.isCollaborative)===m||_.$I().dispatch(_.AI("playlistCollaborationEntity",w,Object.assign({},A,{isCollaborative:m})))},a=function(m){h(m)};
return _.E("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.E("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.E(_.R4,{data:function(){return W.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(m){return _.E(_.xHL,{data:m.data,
onSwitch:Z})}})),_.E(_.U,{cond:b,
then:function(){return _.E("div",null,_.E("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.E(_.R4,{data:function(){return W.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(m){return _.E(_.xHL,{data:m.data,
onSwitch:a,overrideDisabled:!1})}})),_.E(_.U,{cond:L,
then:function(){return _.E("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.E(_.R4,{data:function(){return W.data().copyLinkButton}},{buttonViewModel:_.DO}))}}),_.E("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.E(_.R4,{data:function(){return W.data().playlistCollaborators}},{contentListItemViewModel:_.dSU})))}}))},"Li"),"playlist-collaboration-view-model",{props:{data:_.te}});var Cz9=_.J1(function(W){var O=W.data;var b=W.customCommandResolver;return _.E(_.TT,null,_.E("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.E(_.R4,{data:function(){return O().adAvatar}},{adAvatarViewModel:function(T){return _.E(_.Pxn,{data:T.data,
customCommandResolver:b})}})),_.E("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.E(_.U,{cond:function(){return O().headline},
then:function(T){return _.E(_.uw,{text:T,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.E("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.E(_.R4,{data:function(){return O().adBadge}},{adBadgeViewModel:function(T){return _.E(_.y9,{data:T.data,
hasDot:function(){return O().primaryDetailsLine!==void 0},
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.E(_.R4,{data:function(){return O().primaryDetailsLine}},{adDetailsLineViewModel:function(T){return _.E(_.WV,{data:T.data,
customCommandResolver:b,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Mi"),qu2=_.J1(function(W){var O=W.data;
var b=W.customCommandResolver;W=_.uy();_.$z(W,function(){return O().interaction},b);
_.iO(W,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});return _.E("ad-avatar-lockup-view-model",{class:function(){var T;return((T=O().interaction)==null?0:T.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:W,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E(_.vU,null,_.E(_.RW,{when:function(){return O().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.E(Cz9,{data:O,
customCommandResolver:b})}),_.E(_.Kv,null,function(){return null})))},"Ni");_.O1(_.J1(function(W){var O=W.data;var b=W.panelContentVisibility;W=_.uy();_.$z(W,function(){return O().interaction},qaB);
_.iO(W,{visibilityCallback:function(L){var h,Z=(h=O().interaction)==null?void 0:h.onFirstVisible;L&&Z&&_.nb(Z)},
showOption:_.Mo});_.Dq(function(){var L,h;if(h=_.GT("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var Z;h=(Z=h())==null?void 0:Z.onLayoutVisibleCallback}else h=null;(L=h)==null||L()});
var T=function(){return b()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.E("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:W},_.E("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.E("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.E(_.U,{cond:_.HtQ("(min-width: "+((0,_.og)()+_.x5)+"px) or (max-width: 600px)"),then:function(){return _.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(L){return _.E(_.hd,{data:L.data,
targetHeight:80,customCommandResolver:qaB})}})}})),_.E("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.E("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.E(_.R4,{data:function(){return O().adAvatarLockup}},{adAvatarLockupViewModel:function(L){return _.E(qu2,{data:L.data,
customCommandResolver:qaB})}})),_.E(_.U,{cond:T,
then:function(){return _.E(_.R4,{data:function(){return O().adButton}},{adButtonViewModel:function(L){return _.E(_.JD,{data:L.data,
customCommandResolver:qaB})}})},
else:function(){return _.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:_.DO})}}),_.E("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.E(_.R4,{data:function(){var L=_.P(O().toggleButton,_.vm);
return{toggleButtonViewModel:Object.assign({},L,{isTogglingDisabled:!0,isToggled:T()})}}},{toggleButtonViewModel:_.gt})))))},"Oi"),"panel-ad-header-image-lockup-view-model",{props:{data:_.te,
panelContentVisibility:_.te}});_.O1(_.J1(function(W){var O=function(){return _.P(W.data().inputComposerViewModel,tGU)},b=function(){var r;
return((r=O())==null?void 0:r.youchatPendingResponseEntityKey)||""},T=_.wt(_.Q08,b),L=function(){var r;
return!((r=T())==null||!r.isPendingResponse)},h=_.S(_.wu(!0,void 0,"DR0q1d")),Z=h.next().value,a=h.next().value,m=function(){return O().sectionTargetId||"youchat_messages_section"};
h=_.J8();var w=_.uy(),A=_.wt(gcU,"chat_input_view_model_state"),X=ocB(),l=function(){var r;return!((r=A())==null||!r.value)};
_.kX(function(){var r;!l()&&((r=O())==null?0:r.welcomeFeatureContinuation)&&(r={continuationCommand:{token:O().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.zH(r),X(!0));var q=m(),f;(f=_.iq().resolve(_.OT(_.wB)))==null||f.addEventListener("yt-navigate-start",function(){_.ek.remove(q);X(!1)},{once:!0})});
var p=_.XL(function(r){var q=L()||!1;nc2(w.value);q||r.key!=="Enter"||r.shiftKey||(r.preventDefault(),k());return!1}),K=_.XL(function(){a(w.value.value.length===0);
return!1}),k=function(){var r,q,f,M,V,jQ,y,d8,pE;
return _.I(function(Qh){r=w.value.value;w.value.value="";nc2(w.value);q=f9g(m(),r);_.zH(q);f=_.kQ5(b());_.nb(((M=O())==null?void 0:M.onSubmitCommand)||{});f(!0);jQ=String(Math.floor(((V=_.ZO())==null?void 0:V.getCurrentTime())||0)*1E3);d8={continuationCommand:{token:(y=O())==null?void 0:y.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};pE={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:r,playerOffsetMs:jQ}};_.zH(d8,{form:{formData:pE},commandController:{onSuccess:function(){f(!1)},
onServerError:function(){var KE=m();_.zH({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:KE}}]}}});f(!1)}}});
_.aD(Qh)})};
return _.E("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:h},_.E("div",{class:"chatInputViewModelChatInputWrapper"},_.E("form",{class:"chatInputViewModelChatInputForm"},_.E("textarea",{class:"chatInputViewModelChatInput",el:w,"on:keydown":p,"on:keyup":K,placeholder:function(){var r,q;var f=_.P((q=O())==null?void 0:q.inputFormField,lE1);return f==null?void 0:(r=f.contentProperties)==null?void 0:r.placeholderText},
rows:1}),_.E(_.DO,{data:function(){return _.P(W.data().sendButton,_.Kp)},
onClick:function(r){r.preventDefault();k();a(w.value.value.length===0)},
buttonOverrides:function(){return{disabled:Z()||L()}}})),_.E(_.uw,{className:"chatInputViewModelChatDisclaimer",
text:function(){var r;return(r=_.P(W.data().disclaimer,_.Tc9))==null?void 0:r.text}})))},"Pi"),"yt-chat-input-view-model",{props:{data:_.te}});var njP=["engagement-panel-clip-create","engagement-panel-clip-view"],f47=0,Z2=function(){var W=_.n.apply(this,arguments)||this;var O;W.headerData=(O=W.data)==null?void 0:O.header;W.darkerPanels=_.e("web_watch_darker_panels");W.matchContentTheme=_.e("web_watch_panel_content_match_theme");W.disableAutoFill=!1;W.isFullscreen=!1;W.isTheaterMode=!1;W.modernPanels=_.e("kevlar_watch_modern_panels");W.liveChatReplyPanel=!1;W.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");W.disableBackdropFilter=
_.e("web_disable_backdrop_filter");W.trackEngagementPanelVisibility=_.e("web_watch_track_engagement_panel_visibility");W.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 W};
_.R(Z2,_.n);_.d=Z2.prototype;
_.d.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(W){var O;
return(W==null?void 0:(O=W.webComponentHint)==null?void 0:O.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.d.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var W;if((W=this.hostElement.parentElement)==null?0:W.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.d.detached=function(){this.updateTheaterDisablement()};
_.d.showPanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.sF.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.d.maybeScrollToItemSection=function(W){var O=this,b,T=W==null?void 0:(b=W.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;T&&_.sF.addJob(function(){var L;(L=O.sectionListRendererElement)==null||L.scrollToItemSection(T)},8)};
_.d.hidePanel=function(){var W=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.sF.addJob(function(){W.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.d.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.d.updatePanel=function(W,O,b,T){var L=this;if((W=W==null?void 0:W.engagementPanelSectionListRenderer)||T){if(W){T=W.header;var h=W.content,Z=W.footer;(W=W.targetId)&&this.set("data.targetId",W);T&&this.set("data.header",T);h&&this.set("data.content",h);Z&&this.set("data.footer",Z)}else T&&(W=T.content,h=T.secondaryHeaderContent,(T=T.targetId)&&this.set("data.targetId",T),W&&this.set("data.content",W),h&&(this.secondaryHeaderData=h));this.updateChildVisibilityProperties();if(O){var a;_.e("kevlar_update_panel_focus_scroll_killswitch")||
(a={preventScroll:!0});this.focus(a)}_.My(this,function(){_.bX(L.hostElement,"yt-refit");L.maybeScrollToItemSection(b)})}};
_.d.computeHeaderData=function(){var W,O=(0,_.PQ.unsafeClone)((W=this.data)==null?void 0:W.header);if(O){W=new _.J(Object.keys(O)[0]);var b=_.P(O,W),T=_.P(this.secondaryHeaderData,W);T&&_.ky(O,W,Object.assign({},T,b))}return O};
_.d.getReloadContinuation=function(){var W,O,b,T=_.S(((W=this.data)==null?void 0:(O=W.content)==null?void 0:(b=O.sectionListRenderer)==null?void 0:b.continuations)||[]);for(W=T.next();!W.done;W=T.next())if(W=W.value,W.reloadContinuationData)return W.reloadContinuationData.continuation};
_.d.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var W;((W=this.data)==null?0:W.targetId)&&(W=this.contentElement.firstElementChild)&&W.setAttribute("panel-target-id",this.data.targetId)};
_.d.forwardPopupClosedToFlowRootRenderer=function(){var W=_.Q(this.hostElement).querySelector("ytd-flow-root-renderer");if(W)W.onPopupClosed()};
_.d.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var W=_.e("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.e("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;if(_.e("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||W){var O;this.visibility=
(O=this.data)==null?void 0:O.visibility;var b;this.trackEngagementPanelVisibility&&((b=this.data)==null?void 0:b.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var T,L,h,Z;this.contentEmpty=!!(((T=this.data)==null?0:(L=T.content)==null?0:L.structuredDescriptionContentRenderer)&&Object.keys((h=this.data)==null?void 0:(Z=h.content)==null?void 0:Z.structuredDescriptionContentRenderer).length===0);(O=_.iq().resolve(_.P$))&&O.registerPanel(this.getIdentifier(),
this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.d.isTheaterModeChanged=function(){_.e("web_watch_imax_theater_mode")&&this.hidePanel()};
_.d.isFullscreenChanged=function(){_.e("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.d.focus=function(W){if(this.header)this.header.focus(W);else{var O;(O=_.Q(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||O.focus(W)}};
_.d.visibilityChanged=function(){if(!_.e("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var W=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",T=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",L=T||!this.lastVisibility,h,Z,a=(h=this.data)==null?void 0:(Z=h.identifier)==null?void 0:Z.tag,
m;if(((m=this.data)==null?0:m.onShowCommands)&&W&&L)_.Sx(this.hostElement,this.data.onShowCommands,this.hostElement),a&&_.uv().dispatch(_.Tc({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:a}}));else{var w;((w=this.data)==null?0:w.onHideCommands)&&O&&b&&(_.Sx(this.hostElement,this.data.onHideCommands,this.hostElement),a&&_.uv().dispatch(_.Tc({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:a}})))}W&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*f47++));_.e("kevlar_watch_focus_on_engagement_panels")&&
W&&T&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.d.notifyVisibilityChanged=function(W){var O;_.TU(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,W,(O=this.data)==null?void 0:O.targetId])};
_.d.updateTheaterDisablement=function(){if(!_.e("kevlar_watch_theater_disablement_killswitch")){var W=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&njP.includes(W)&&!_.e("watch_next_grid_ignore_disallowed_panels")){var O=_.vp(_.uv().getState()),b=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";W!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():b?(this.originalTheaterState===void 0&&(this.originalTheaterState=O,this.theaterDisablementPanelIdentifier=
W),O&&_.jx(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.d.clearTheaterDisablement=function(){_.jx(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.d.updateChildVisibilityProperties=function(){this.hostElement||_.e("kevlar_panel_property_init_killswitch")||this._enableProperties();var W=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=W);var O,b=(O=this.headerElement)==null?void 0:O.firstElementChild;if(b&&!this.adHeaderImageLockupViewModel){O=W==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";b.collapsed=O;b=_.Q(b).querySelector("#visibility-button");if(!b)return;(b=b.firstElementChild)&&
b.polymerController.is==="ytd-toggle-button-renderer"&&b.polymerController.data.isToggled!==O&&b.polymerController.set("data.isToggled",O)}var T;if(O=(T=this.contentElement)==null?void 0:T.firstElementChild)if(W&&W!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")O.removeAttribute("panel-content-visible");else{O.setAttribute("panel-content-visible","");var L;(L=O.markDirty)==null||L.call(O)}};
_.d.onYtChangeEngagementPanelVisibilityAction=function(W){var O=this,b,T=(b=this.data)==null?void 0:b.targetId,L,h,Z;b=((L=this.data)==null?void 0:(h=L.identifier)==null?void 0:h.tag)||((Z=this.data)==null?void 0:Z.panelIdentifier);var a=_.P(W,_.d$n),m;W=T&&(a==null?void 0:a.targetId)===T||b&&(a==null?void 0:(m=a.panelIdentifier)==null?void 0:m.tag)===b;this.dialog&&W&&(a==null?void 0:a.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(T==="engagement-panel-comments-section"?_.jx(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.jx(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",b]));!_.e("kevlar_use_engagement_panel_management_component")&&W&&(T=a.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!T?_.sF.addJob(function(){O.visibility=a.visibility},2,this.hideDelayMs):this.visibility=a.visibility,a.visibility&&this.notifyVisibilityChanged(a.visibility))};
_.d.onYtScrollToEngagementPanelCommand=function(W){var O,b=(O=this.data)==null?void 0:O.targetId,T,L,h;O=((T=this.data)==null?void 0:(L=T.identifier)==null?void 0:L.tag)||((h=this.data)==null?void 0:h.panelIdentifier);W=_.P(W,_.Xkw);var Z;(b&&(W==null?void 0:W.targetId)===b||O&&(W==null?void 0:(Z=W.panelIdentifier)==null?void 0:Z.tag)===O)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.jx(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.d.attachVEs=function(W){var O,b;(W==null?0:(O=W.content)==null?0:(b=O.productListRenderer)==null?0:b.trackingParams)&&_.A4().graftServerVe(W.content.productListRenderer.trackingParams);var T,L;(W==null?0:(T=W.content)==null?0:(L=T.transcriptRenderer)==null?0:L.trackingParams)&&_.A4().graftServerVe(W.content.transcriptRenderer.trackingParams)};
_.d.onYtUpdateEngagementPanelAction=function(W){var O,b=(O=this.data)==null?void 0:O.targetId;W=_.P(W,KL9);b&&(W==null?void 0:W.targetId)===b&&(this.updatePanel({engagementPanelSectionListRenderer:{header:W==null?void 0:W.header,content:W==null?void 0:W.content}},!1),this.attachVEs(W))};
_.d.onYtShowEngagementPanelScrimAction=function(W){var O,b=(O=this.data)==null?void 0:O.targetId;W=_.P(W,ReD);b&&(W==null?void 0:W.engagementPanelTargetId)===b&&(this.scrimmed=!0)};
_.d.onYtHideEngagementPanelScrimAction=function(W){var O,b=(O=this.data)==null?void 0:O.targetId;W=_.P(W,PbB);b&&(W==null?void 0:W.engagementPanelTargetId)===b&&(this.scrimmed=!1)};
_.d.getIdentifier=function(){var W,O,b;return((W=this.data)==null?void 0:W.panelIdentifier)||((O=this.data)==null?void 0:(b=O.identifier)==null?void 0:b.tag)};
_.d.getSurface=function(){var W,O;return(W=this.data)==null?void 0:(O=W.identifier)==null?void 0:O.surface};
_.Jq.Object.defineProperties(Z2.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var W=this.getIdentifier();return W==="engagement-panel-youchat"||W==="PAyouchat"}}});
Z2.prototype.visibilityChanged=Z2.prototype.visibilityChanged;Z2.prototype.isFullscreenChanged=Z2.prototype.isFullscreenChanged;Z2.prototype.isTheaterModeChanged=Z2.prototype.isTheaterModeChanged;Z2.prototype.dataChanged=Z2.prototype.dataChanged;Z2.prototype.forwardPopupClosedToFlowRootRenderer=Z2.prototype.forwardPopupClosedToFlowRootRenderer;Z2.prototype.onYtRendererstamperFinished=Z2.prototype.onYtRendererstamperFinished;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Z2.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Z2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Z2.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Z2.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"data",void 0);
_.t([_.C({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.N("design:type",Object)],Z2.prototype,"headerData",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"secondaryHeaderData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"visibility",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"contentEmpty",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"scrimmed",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"dialog",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"dropdown",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"darkerPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"matchContentTheme",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"disableAutoFill",void 0);
_.t([_.C({reflectToAttribute:!0,value:_.e("optimal_reading_width_comments_ep")}),_.N("design:type",Boolean)],Z2.prototype,"optimalReadingWidthComments",void 0);_.t([_.C(),_.N("design:type",Number)],Z2.prototype,"hideDelayMs",void 0);_.t([_.C({selector:_.RU,reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"isFullscreen",void 0);_.t([_.C({selector:_.vp,reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"isTheaterMode",void 0);
_.t([_.C(),_.N("design:type",Number)],Z2.prototype,"showDelayMs",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.targetId"),_.N("design:type",Object),_.N("design:paramtypes",[])],Z2.prototype,"targetId",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Z2.prototype,"webSize",null);_.t([_.C(),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Z2.prototype,"hideFooterBorder",null);
_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"isWatch",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"originalTheaterState",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"theaterDisablementPanelIdentifier",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"modernPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"isWatchWhilePanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"shortsPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Z2.prototype,"liveChatEngagementPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"liveChatReplyPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"enableAnchoredPanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Z2.prototype,"disableBackdropFilter",void 0);_.t([_.C(),_.N("design:type",Object)],Z2.prototype,"trackEngagementPanelVisibility",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],Z2.prototype,"headerElement",void 0);_.t([_.El("#header > *"),_.N("design:type",HTMLElement)],Z2.prototype,"header",void 0);_.t([_.El("ytd-section-list-renderer"),_.N("design:type",Object)],Z2.prototype,"sectionListRendererElement",void 0);
_.t([_.El("panel-ad-header-image-lockup-view-model"),_.N("design:type",HTMLElement)],Z2.prototype,"adHeaderImageLockupViewModel",void 0);_.t([_.El("#content"),_.N("design:type",HTMLElement)],Z2.prototype,"contentElement",void 0);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"onYtRendererstamperFinished",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.t([_.Ul("data","isFullscreen","isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"dataChanged",null);_.t([_.m5("isTheaterMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"isTheaterModeChanged",null);
_.t([_.m5("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"isFullscreenChanged",null);_.t([_.m5("visibility"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z2.prototype,"visibilityChanged",null);Z2=_.t([_.G({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Z2);
_.H(Z2,"ytd-engagement-panel-section-list-renderer",function(){if(ZTB!==void 0)return ZTB;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ZTB=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var GA8;var IY=function(){var W=_.n.apply(this,arguments)||this;W.lastRenderedPanelIds=new Set;W.visiblePanels=[];W.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.R(IY,_.n);_.d=IY.prototype;_.d.dataChanged=function(){if(this.data){for(var W=[],O=_.S(this.data),b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0,L=void 0,h=(T=b)==null?void 0:(L=T.engagementPanelSectionListRenderer)==null?void 0:L.visibility;L=T=void 0;((T=b)==null?0:(L=T.engagementPanelSectionListRenderer)==null?0:L.targetId)&&h!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&W.push(b)}this.visiblePanels=W}else this.visiblePanels=[]};
_.d.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}}};
_.d.withoutVisiblePanelById=function(W){return this.visiblePanels.filter(function(O){var b;return((b=O.engagementPanelSectionListRenderer)==null?void 0:b.targetId)!==W})};
_.d.onYtChangeEngagementPanelVisibilityAction=function(W){var O=this,b=_.P(W,_.d$n);if(this.data&&(b==null?0:b.targetId)&&(b==null?0:b.visibility)){var T,L=(T=this.data.find(function(Z){var a;return((a=Z.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===b.targetId}))==null?void 0:T.engagementPanelSectionListRenderer;
if(L){var h=this.withoutVisiblePanelById(b.targetId);b.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(W=this.data.find(function(Z){var a;return((a=Z.engagementPanelSectionListRenderer)==null?void 0:a.targetId)===b.targetId}))&&(h=[W].concat(_.PG(h)));
this.hideDelayMs&&b.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&h.length===0?_.sF.addJob(function(){L.visibility=b.visibility;O.visiblePanels=h},10,this.hideDelayMs):(L.visibility=b.visibility,this.visiblePanels=h);
_.TU(this.hostElement,"yt-engagement-panels-visible-changed",[h])}}};
_.d.onRendererstamperFinished=function(){var W=new Set(this.visiblePanels.map(function(O){var b;return(b=O.engagementPanelSectionListRenderer)==null?void 0:b.targetId}));
this.handlePanelVisibilityChange(W,this.lastRenderedPanelIds);this.lastRenderedPanelIds=W};
_.d.handlePanelVisibilityChange=function(W,O){W=W===void 0?new Set:W;O=O===void 0?new Set:O;if(this.data)for(var b=_.S(this.data),T=b.next();!T.done;T=b.next()){T=T.value;var L=void 0,h=void 0,Z=(L=T)==null?void 0:(h=L.engagementPanelSectionListRenderer)==null?void 0:h.targetId;if(Z&&(L=O.has(Z),h=W.has(Z),Z=void 0,!L&&h?(h=L=void 0,Z=(L=T)==null?void 0:(h=L.engagementPanelSectionListRenderer)==null?void 0:h.onShowCommands):L&&!h&&(h=L=void 0,Z=(L=T)==null?void 0:(h=L.engagementPanelSectionListRenderer)==
null?void 0:h.onHideCommands),Z))for(T=_.S(Z),Z=T.next();!Z.done;Z=T.next())this.ytComponentBehavior.resolveCommand(Z.value)}};
IY.prototype.onRendererstamperFinished=IY.prototype.onRendererstamperFinished;IY.prototype.dataChanged=IY.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],IY.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],IY.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],IY.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],IY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],IY.prototype,"lastRenderedPanelIds",void 0);_.t([_.C(),_.N("design:type",Number)],IY.prototype,"hideDelayMs",void 0);_.t([_.C(),_.N("design:type",Array)],IY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],IY.prototype,"visiblePanels",void 0);_.t([_.C(),_.N("design:type",Boolean)],IY.prototype,"isWatchWhilePanel",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"dataChanged",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],IY.prototype,"onRendererstamperFinished",null);IY=_.t([_.G({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],IY);
_.H(IY,"ytd-watch-engagement-panels",function(){if(GA8!==void 0)return GA8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return GA8=W},{mode:1});var HT9;var aY=function(){return _.n.apply(this,arguments)||this};
_.R(aY,_.n);aY.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Gb(_.Q(this.hostElement).querySelector("#text"),_.AXf(_.liN,this.data.companionLegalText))};
aY.prototype.computeAutoScrollEnabled=function(W,O){return W&&!O};
aY.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
aY.prototype.onToggleTap=function(){this.expanded=!this.expanded};
aY.prototype.expandedChanged=aY.prototype.expandedChanged;aY.prototype.dataChanged=aY.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Ns1),_.N("design:type",Object)],aY.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],aY.prototype,"expanded",void 0);
_.t([_.C({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.N("design:type",Boolean)],aY.prototype,"autoScrollEnabled",void 0);_.t([_.C(),_.N("design:type",String)],aY.prototype,"expanderIcon",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"dataChanged",null);
_.t([_.m5("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aY.prototype,"expandedChanged",null);aY=_.t([_.G({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],aY);
_.H(aY,"ytd-companion-legal-text-renderer",function(){if(HT9!==void 0)return HT9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return HT9=W},{mode:1});var ti8;var mi=function(){var W=_.n.apply(this,arguments)||this;W.buttonUpdate=_.e("web_modern_buttons");W.kevlarWatchGrid=_.e("kevlar_watch_grid");W.centerAlignDescription=_.e("action_companion_center_align_description");W.truncateDomain=_.e("action_companion_truncate_domain");return W};
_.R(mi,_.n);_.d=mi.prototype;_.d.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.d.getOnLayoutVisibleCallback=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.d.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",mi.JSC$20198_DEFAULT_AD_BADGE_RENDERER);var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.d.getButtonRenderer=function(W){return W.actionButton&&_.P(W.actionButton,_.s2)?(delete _.P(W.actionButton,_.s2).navigationEndpoint,_.P(W.actionButton,_.s2)):{}};
_.d.onClick=function(W){var O=this;if((!_.e("web_modern_buttons")||!_.un(_.Nd(W),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){W=_.ya();var b=this.getLayoutId();W&&b&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(T){(new _.Aj(T)).executeCommand(O.data.navigationEndpoint,b)}):_.e("kevlar_companion_resolve_command_killswitch")?_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.jx(this.hostElement,"yt-companion-ad-clicked",["action-companion",b])}};
_.Jq.Object.defineProperties(mi.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?0:(O=W.detailsLine)==null?0:(b=O.adRating)==null?0:b.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return((W=this.data)==null?0:(O=W.detailsLine)==null?0:(b=O.adRating)==null?0:(T=b.ratingIcon)==null?0:T.iconType)?_.Z6(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return((W=this.data)==null?0:(O=W.detailsLine)==null?0:(b=O.texts)==null?0:(T=b[0])==null?0:T.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 W,O;return((W=this.data)==null?0:(O=W.description)==null?0:O.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var W=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return W?W.indexOf("/default_banner")!==-1:!0}}});
mi.prototype.onClick=mi.prototype.onClick;mi.prototype.dataChanged=mi.prototype.dataChanged;mi.JSC$20198_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.EO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],mi.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mi.prototype,"rendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mi.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mi.prototype,"buttonUpdate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mi.prototype,"kevlarWatchGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mi.prototype,"centerAlignDescription",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],mi.prototype,"truncateDomain",void 0);
_.t([_.C({computed:"computeButtonOverride(buttonUpdate)"}),_.N("design:type",Object)],mi.prototype,"buttonOverride",void 0);_.t([_.x("data.detailsLine.adRating.ratingText"),_.N("design:type",Object),_.N("design:paramtypes",[])],mi.prototype,"getRating",null);_.t([_.x("getRating"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mi.prototype,"computeRatingHidden",null);
_.t([_.x("data.detailsLine.adRating.ratingIcon.iconType"),_.N("design:type",Object),_.N("design:paramtypes",[])],mi.prototype,"iconType",null);_.t([_.x("data.detailsLine.texts.0.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],mi.prototype,"getDetailsLine",null);_.t([_.x("getDetailsLine"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mi.prototype,"computeDetailsLineHidden",null);
_.t([_.x("data.description.text"),_.N("design:type",Object),_.N("design:paramtypes",[])],mi.prototype,"getDescriptionText",null);_.t([_.x("getDescriptionText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mi.prototype,"computeDescriptionTextHidden",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],mi.prototype,"interactionLoggingClientData",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],mi.prototype,"hideBanner",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],mi.prototype,"dataChanged",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],mi.prototype,"onClick",null);mi=_.t([_.G({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],mi);
_.H(mi,"ytd-action-companion-ad-renderer",function(){if(ti8!==void 0)return ti8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ti8=W},{mode:_.Lb("kevlar_poly_si_batch_j067")?1:2});var $HU;var Vi1;var Ym=function(){var W=_.n.apply(this,arguments)||this;W.buttonUpdate=_.e("web_modern_buttons");W.hideLegacyBanner=_.e("enable_dsa_one_click_ata_translators_infeed_elements");W.adInfoButtonStyle="mono";W.adInfoButtonType="text";W.noDotAdBadge=!0;return W};
_.R(Ym,_.n);_.d=Ym.prototype;_.d.getOnLayoutVisibleCallback=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.d.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 W=this.data.image.thumbnail.thumbnails[0];this.imageSrc=W.url?_.l7(W.url):void 0;this.imageWidth=W.width||0;this.imageHeight=W.height||0}this.data.clickthroughEndpoint&&_.P(this.data.clickthroughEndpoint,_.t8)&&(W=_.P(this.data.clickthroughEndpoint,_.t8).url,_.e("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
W||"":W?(W=_.l7(W),this.clickThroughUrl=_.EB(W)):this.clickThroughUrl=void 0);(W=this.getOnLayoutVisibleCallback())&&W()}};
_.d.onClick=function(W){_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(W)};
_.d.handleClick=function(){var W=this;this.data&&this.data.clickthroughEndpoint&&(_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(O){W.macroReplacementBehavior.sendServiceRequestAction([O])}),_.jx(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.d.onLoad=function(){_.TU(this.hostElement,"yt-refit-popups-action")};
_.Jq.Object.defineProperties(Ym.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
Ym.prototype.onLoad=Ym.prototype.onLoad;Ym.prototype.onClick=Ym.prototype.onClick;Ym.prototype.dataChanged=Ym.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ym.prototype,"rendererBehavior",void 0);_.t([_.D(Xo1.YtMacroReplacementBehavior),_.N("design:type",Object)],Ym.prototype,"macroReplacementBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ym.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ym.prototype,"buttonUpdate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ym.prototype,"hideLegacyBanner",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ym.prototype,"adInfoButtonStyle",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Ym.prototype,"adInfoButtonType",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ym.prototype,"macros",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ym.prototype,"interactionLoggingClientData",null);_.t([_.C(),_.N("design:type",String)],Ym.prototype,"clickThroughUrl",void 0);_.t([_.C(),_.N("design:type",_.aQ)],Ym.prototype,"imageSrc",void 0);_.t([_.C(),_.N("design:type",Number)],Ym.prototype,"imageWidth",void 0);_.t([_.C(),_.N("design:type",Number)],Ym.prototype,"imageHeight",void 0);_.t([_.C(),_.N("design:type",Object)],Ym.prototype,"noDotAdBadge",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ym.prototype,"dataChanged",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ym.prototype,"onClick",null);_.t([_.ai("load"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ym.prototype,"onLoad",null);Ym=_.t([_.G({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],Ym);
_.H(Ym,"ytd-image-companion-renderer",function(){if(Vi1!==void 0)return Vi1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Vi1=W},{mode:_.Lb("kevlar_poly_si_batch_j067")?1:2});var N$5;var Ey=function(){return _.n.apply(this,arguments)||this};
_.R(Ey,_.n);_.d=Ey.prototype;_.d.dataChanged=function(){this.set("data.adBadge",Ey.JSC$20207_DEFAULT_AD_BADGE_RENDERER);if(this.data){var W=this.getOnLayoutVisibleCallback();W&&W()}};
_.d.getOnLayoutVisibleCallback=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.onLayoutVisibleCallback:null};
_.d.getLayoutId=function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.layoutId:null};
_.d.onCompanionClicked=function(W){this.data&&(W.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.jx(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.d.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var W=_.ya(),O=this.getLayoutId(),b=this.data.clickToAdvSiteEndpoint;W&&O&&_.e("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?W.getPlayerPromise().then(function(T){(new _.Aj(T)).executeCommand(b,O)}):_.bX(this.hostElement,"yt-navigate",{endpoint:b})}};
_.d.sendTrackingPings=function(W){if(W&&W.length!==0&&W[0].loggingUrls&&(W=W[0].loggingUrls.map(this.getBaseUrl)))for(var O=0;O<W.length;O++)_.G7(W[O])};
_.d.getBaseUrl=function(W){return W.baseUrl||""};
_.Jq.Object.defineProperties(Ey.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var W=_.GT("yt.www.ads.eventcache.getLastCompanionData");return W?(W=W())&&W.interactionLoggingClientData:null}}});
Ey.prototype.onCompanionClicked=Ey.prototype.onCompanionClicked;Ey.prototype.dataChanged=Ey.prototype.dataChanged;Ey.JSC$20207_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.EO("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ey.prototype,"data",void 0);_.t([_.El("#title"),_.N("design:type",HTMLElement)],Ey.prototype,"shopTitle",void 0);
_.t([_.Ul("data.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ey.prototype,"dataChanged",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ey.prototype,"interactionLoggingClientData",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Ey.prototype,"onCompanionClicked",null);
Ey=_.t([_.G({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Ey);
_.H(Ey,"ytd-shopping-companion-renderer",function(){if(N$5!==void 0)return N$5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return N$5=W},{mode:1});_.O1(_.J1(function(W){var O=W.data;var b=_.uy();_.$z(b,function(){return O().interaction},Gu9);
_.iO(b,{visibilityCallback:function(T){var L,h=(L=O().interaction)==null?void 0:L.onFirstVisible;T&&h&&_.nb(h)},
showOption:_.Mo});_.Dq(function(){var T,L;L=(L=_.GT("yt.www.ads.eventcache.getLastCompanionData"))?(L=L())&&L.onLayoutVisibleCallback:null;(T=L)==null||T()});
W=_.XL(function(){_.TU(b.value,"yt-refit-popups-action")});
return _.E("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":W,el:b,"aria-label":function(){var T,L;return(T=O().interaction)==null?void 0:(L=T.accessibility)==null?void 0:L.label}},_.E("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(T){return _.E(_.hd,{data:T.data,
targetHeight:80,customCommandResolver:Gu9})}})),_.E("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.E("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.E(_.R4,{data:function(){return O().adBadge}},{adBadgeViewModel:function(T){return _.E(_.y9,{data:T.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.E("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:_.DO}))))},"Qi"),"banner-image-layout-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;W=_.uy();_.$z(W,function(){return O().interaction},HkN);
_.iO(W,{visibilityCallback:function(b){var T,L=(T=O().interaction)==null?void 0:T.onFirstVisible;b&&L&&_.nb(L)},
showOption:_.Mo});_.Dq(function(){var b,T;T=(T=_.GT("yt.www.ads.eventcache.getLastCompanionData"))?(T=T())&&T.onLayoutVisibleCallback:null;(b=T)==null||b()});
return _.E("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:W},_.E("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.E(_.R4,{data:function(){return O().adImage}},{adImageViewModel:function(b){return _.E(_.hd,{data:b.data,
targetHeight:80,customCommandResolver:HkN})}})),_.E("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.E("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.E(_.R4,{data:function(){return O().adAvatarLockup}},{adAvatarLockupViewModel:function(b){return _.E(qu2,{data:b.data,
customCommandResolver:HkN})}})),_.E(_.R4,{data:function(){return O().adButton}},{adButtonViewModel:function(b){return _.E(_.JD,{data:b.data,
customCommandResolver:HkN})}}),_.E("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.E(_.R4,{data:function(){return O().menu}},{buttonViewModel:_.DO}))))},"Ri"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.te}});var MiZ={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"},wh=function(){var W=_.n.apply(this,arguments)||this;W.updateCompanionDataJobId=0;W.contentVideoId=null;W.player=null;W.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return W};
_.R(wh,_.n);_.d=wh.prototype;_.d.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:MiZ}}};
_.d.attached=function(){var W=this,O=_.ya();O&&O.getPlayerPromise().then(function(b){W.getCachedDataAndListen(b)})};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.d.updateRendererStamper=function(){var W={};if(this.data)for(var O in MiZ)if(this.data[O]){W[O]=this.data[O];break}if(this.oneofRenderer!=void 0||Object.keys(W).length)this.oneofRenderer=W};
_.d.getCachedDataAndListen=function(W){var O=this.retrieveCachedCompanionData();O&&Object.keys(O).length&&this.receiveCompanionData(O);this.ytPlayerListenerBehavior.listenToPlayerEvent(W,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=W};
_.d.retrieveCachedCompanionData=function(){return _.i1.yt&&_.i1.yt.www&&_.i1.yt.www.ads&&_.i1.yt.www.ads.eventcache&&_.i1.yt.www.ads.eventcache.getLastCompanionData?_.i1.yt.www.ads.eventcache.getLastCompanionData():null};
_.d.receiveCompanionData=function(W){W&&Object.keys(W).length?(this.contentVideoId=W.contentVideoId,this.setCompanionData(W)):this.setCompanionData(W)};
_.d.setCompanionData=function(W){this.cancelPendingCompanionAdJobs();if(W){this.updateCompanionDataJobId=0;for(var O in MiZ)MiZ.hasOwnProperty(O)&&(this.data[O]=void 0);W.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",W.shoppingCompanionCarouselRenderer):W.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",W.imageCompanionAdRenderer):W.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",W.actionCompanionAdRenderer),_.TU(this.hostElement,
"yt-hide-unlimited-offer-module"),_.TU(this.hostElement,"yt-hide-tvfilm-offer-module")):W.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",W.bannerImageLayoutViewModel):W.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",W.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.d.dataChanged=function(){var W=this,O=_.ya();O?O.getPlayerPromise().then(function(b){W.contentVideoId&&b.getVideoUrl().includes("v="+W.contentVideoId)||(W.cancelPendingCompanionAdJobs(),W.updateRendererStamper())}):_.HU(Error("hm"))};
_.d.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.sF.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.d.handleCompanionAdClicked=function(W,O){this.player.onAdUxClicked(W,O);this.player.pauseVideo()};
wh.prototype.dataChanged=wh.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],wh.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],wh.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],wh.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wh.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],wh.prototype,"oneofRenderer",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wh.prototype,"dataChanged",null);wh=_.t([_.G({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],wh);
_.H(wh,"ytd-companion-slot-renderer",function(){if($HU!==void 0)return $HU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return $HU=W},{mode:_.Lb("kevlar_poly_si_batch_j067")?
1:2});var ubg;var Ai=function(){return _.n.apply(this,arguments)||this};
_.R(Ai,_.n);Ai.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ai.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Ai.prototype,"companionSlotData",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ai.prototype,"dataChanged",null);
Ai=_.t([_.G({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],Ai);
_.H(Ai,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(ubg!==void 0)return ubg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ubg=W},{mode:1});var Jag;var X6=function(){var W=_.n.apply(this,arguments)||this;W.skinnyMode=!1;W.COMPACT_EVENT_COUNT=4;W.onShelfToggleButtonTap=function(){W.logTap(W.data);W.showingMore=!W.showingMore};
W.onShelfToggleButtonFocus=function(){W.showingMore||(W.logTap(W.data),W.showingMore=!0,_.My(W,function(){var O=W.COMPACT_EVENT_COUNT-1,b;(b=_.Q(W.hostElement).querySelector("#event-"+O))==null||b.focus()}))};
return W};
_.R(X6,_.n);_.d=X6.prototype;_.d.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.d.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.d.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.Ii(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.Ii(this.infoTooltip,this.infoTooltip.hide))};
_.d.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.Ii(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.Ii(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.Ii(this.infoTooltip,this.infoTooltip.hide))};
_.d.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)};
_.d.onShowingMoreChanged=function(){var W;this.showingMoreChanged((W=this.showingMore)!=null?W:!1)};
_.d.showingMoreChanged=function(W){var O=this.get("data.events")||[];this.set("restEvents",O.slice(1,W?O.length:this.COMPACT_EVENT_COUNT).map(function(b){return b.ticketEventRenderer}));
O.slice(0,W?O.length:this.COMPACT_EVENT_COUNT).forEach(function(b){var T=_.Bb();b=b.ticketEventRenderer.trackingParams;_.sk()&&T&&b&&(b=_.Pi(b),T&&_.Hg(T,b))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.d.computeAriaLabel=function(W){return W.subtitle1+", "+W.subtitle2};
_.d.logTap=function(W){_.sk()&&this.ytRendererBehavior.logExplicitClick(W)};
_.d.isKeyboardAction=function(W){return this.get("detail.x",W)===0&&this.get("detail.y",W)===0};
_.d.onFirstEventTap=function(W){W.target&&this.handleTap(W.target,this.firstEvent,this.isKeyboardAction(W))};
_.d.onTicketLinkTap=function(W){W.target&&this.handleTap(W.target,W.model.item,this.isKeyboardAction(W))};
_.d.handleTap=function(W,O,b){if(O.buttonCommand)if(O.hasMultipleOffers)Object.assign(_.P(O.buttonCommand,_.pN),{properties:{source:b?"keyboard":"tap"}}),this.logTap(O),this.popupPositionTarget=W,_.Sx(this.hostElement,[O.buttonCommand],this.hostElement);else{var T;if((T=_.P(O.buttonCommand,_.t8))==null?0:T.url)this.logTap(O),_.BD(window,_.P(O.buttonCommand,_.t8).url)}};
X6.prototype.onShowingMoreChanged=X6.prototype.onShowingMoreChanged;X6.prototype.dataChanged=X6.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],X6.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],X6.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],X6.prototype,"firstEvent",void 0);_.t([_.C(),_.N("design:type",Object)],X6.prototype,"restEvents",void 0);_.t([_.C(),_.N("design:type",String)],X6.prototype,"imageUrl",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],X6.prototype,"showingMore",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],X6.prototype,"canShowMore",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],X6.prototype,"skinnyMode",void 0);_.t([_.C(),_.N("design:type",HTMLElement)],X6.prototype,"popupPositionTarget",void 0);_.t([_.El("#banner-info-tooltip"),_.N("design:type",Object)],X6.prototype,"infoTooltip",void 0);
_.t([_.El("#info-container"),_.N("design:type",HTMLElement)],X6.prototype,"infoContainer",void 0);_.t([_.El("#shelf-toggler"),_.N("design:type",HTMLElement)],X6.prototype,"shelfToggleButton",void 0);_.t([_.El("#separator"),_.N("design:type",HTMLDivElement)],X6.prototype,"separator",void 0);_.t([_.C(),_.N("design:type",String)],X6.prototype,"shelfTogglerLabelText",void 0);_.t([_.C(),_.N("design:type",String)],X6.prototype,"shelfTogglerIcon",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X6.prototype,"dataChanged",null);_.t([_.Ul("showingMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],X6.prototype,"onShowingMoreChanged",null);X6=_.t([_.G({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],X6);
_.H(X6,"ytd-ticket-shelf-renderer",function(){if(Jag!==void 0)return Jag;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Jag=W},{mode:1});var caU;var F0R;var Uy=function(){return _.n.apply(this,arguments)||this};
_.R(Uy,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Uy.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Uy.prototype,"data",void 0);Uy=_.t([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Uy);
_.H(Uy,"ytd-comments-entry-point-message-renderer",function(){if(F0R!==void 0)return F0R;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return F0R=W},{mode:1});var ya2;var lT=function(){return _.n.apply(this,arguments)||this};
_.R(lT,_.n);_.Jq.Object.defineProperties(lT.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.teaserAvatar)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lT.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],lT.prototype,"hasAvatar",null);lT=_.t([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],lT);
_.H(lT,"ytd-comments-entry-point-teaser-renderer",function(){if(ya2!==void 0)return ya2;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ya2=W},{mode:1});var Wtg;var ea=function(){return _.n.apply(this,arguments)||this};
_.R(ea,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ea.prototype,"data",void 0);ea=_.t([_.G({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],ea);
_.H(ea,"ytd-comments-simplebox-renderer",function(){if(Wtg!==void 0)return Wtg;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Wtg=W},{mode:1});var Pz=function(){var W=_.n.apply(this,arguments)||this;W.fullHeight=!_.e("comment_teaser_full_height_kill_switch")&&_.e("kevlar_watch_grid");return W};
_.R(Pz,_.n);Pz.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"}}}};
Pz.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Pz.prototype.onTap=function(){var W=this.tapCommand;W&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(W))};
Pz.prototype.onKeyUp=function(W){if(W.keyCode===13)this.onTap()};
_.Jq.Object.defineProperties(Pz.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.onTap)return this.data.onTap;var O,b;if(((O=this.data)==null?0:O.teaserContent)||((b=this.data)==null?0:b.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)!=null&&W.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Pz.prototype.onKeyUp=Pz.prototype.onKeyUp;Pz.prototype.onTap=Pz.prototype.onTap;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Pz.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pz.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pz.prototype,"fullHeight",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"tapCommand",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"simpleboxPlaceholder",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pz.prototype,"hasSimpleboxPlaceholder",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"simpleboxAvatar",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"teaserContent",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pz.prototype,"hasTeaserContent",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"teaserAvatar",null);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pz.prototype,"hasTeaserAvatar",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"messageText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Pz.prototype,"contentRenderer",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pz.prototype,"hasContents",null);
_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Pz.prototype,"hasContentRenderer",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pz.prototype,"onTap",null);_.t([_.ai("keypress"),_.N("design:type",Function),_.N("design:paramtypes",[_.IK]),_.N("design:returntype")],Pz.prototype,"onKeyUp",null);Pz=_.t([_.G({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Pz);
_.H(Pz,"ytd-comments-entry-point-header-renderer",function(){if(caU!==void 0)return caU;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return caU=W},{mode:1});var OaU;_.Z3(_.$Di,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var iag=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),ba8={numberText:"",heightPx:2*iag,shouldAnimate:!1},po=function(){var W=_.n.apply(this,arguments)||this;W.usingAnimatedComponents=!0;W.wasDetailed=!1;W.JSC$20244_browserSupportsAnimation=_.e("web_supports_animations_api");W.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};W.detailed=!1;W.shouldAnimate=!1;W.viewCountProps=ba8;W.dateTextProps=
ba8;W.metadataBadgesInDescription=_.e("web_metadata_badges_in_description");return W};
_.R(po,_.n);_.d=po.prototype;_.d.resetAnimationState=function(){this.shouldAnimate=!1};
_.d.updateDynamicMetadata=function(){if(this.JSC$20244_browserSupportsAnimation){if(!this.detailed){var W,O,b,T;var L=(W=this.videoPrimaryInfoRenderer)==null?void 0:(O=W.viewCount)==null?void 0:(b=O.videoViewCountRenderer)==null?void 0:(T=b.extraShortViewCount)==null?void 0:T.simpleText;var h,Z,a,m;var w=(h=this.videoPrimaryInfoRenderer)==null?void 0:(Z=h.viewCount)==null?void 0:(a=Z.videoViewCountRenderer)==null?void 0:(m=a.shortViewCount)==null?void 0:m.simpleText}if(!w){var A,X,l,p;L=(A=this.videoPrimaryInfoRenderer)==
null?void 0:(X=A.viewCount)==null?void 0:(l=X.videoViewCountRenderer)==null?void 0:(p=l.unlabeledViewCountValue)==null?void 0:p.simpleText;var K,k,r,q;w=(K=this.videoPrimaryInfoRenderer)==null?void 0:(k=K.viewCount)==null?void 0:(r=k.videoViewCountRenderer)==null?void 0:(q=r.viewCount)==null?void 0:q.simpleText}var f,M,V;W=Number((f=this.videoPrimaryInfoRenderer)==null?void 0:(M=f.viewCount)==null?void 0:(V=M.videoViewCountRenderer)==null?void 0:V.originalViewCount);var jQ,y;f=(jQ=this.videoPrimaryInfoRenderer)==
null?void 0:(y=jQ.relativeDateText)==null?void 0:y.simpleText;var d8;jQ=!((d8=this.videoPrimaryInfoRenderer)==null||!d8.relativeDateText);if(L&&w&&W&&(f||!jQ)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;d8=w.split(new RegExp("("+L+")"));L=uwR(d8[0]);var pE;w={numberText:(pE=d8[1])!=null?pE:"",numberValue:W,heightPx:2*iag,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Qh;pE=((Qh=d8[2])!=null?Qh:"")+"  ";this.setViewCount(w,L,uwR(pE));
if(!this.detailed&&jQ){L=f.split(/(\d+)/);Qh=uwR(L[0]);var KE;pE={numberText:(KE=L[1])!=null?KE:"",heightPx:2*iag,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var fE;KE=((fE=L[2])!=null?fE:"")+"  ";this.setDateText(pE,Qh,uwR(KE))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.d.setViewCount=function(W,O,b){_.NX(O)!==_.NX(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=O);this.viewCountProps.numberText!==(W==null?void 0:W.numberText)&&(this.viewCountProps=W||ba8);_.NX(b)!==_.NX(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=b)};
_.d.setDateText=function(W,O,b){_.NX(O)!==_.NX(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=O);this.dateTextProps.numberText!==(W==null?void 0:W.numberText)&&(this.dateTextProps=W||ba8);_.NX(b)!==_.NX(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=b)};
_.d.onYtUpdateViewershipAction=function(W){this.videoPrimaryInfoRenderer&&(_.P(W,FLB).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.P(W,FLB).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.P(W,FLB).viewCount)))};
_.d.onYtUpdateDateTextAction=function(W){if(this.videoPrimaryInfoRenderer){W=_.P(W,_.JJP).dateText;this.shouldAnimate=!0;var O;((O=this.videoPrimaryInfoRenderer)==null?0:O.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",W):this.set("videoPrimaryInfoRenderer.dateText",W)}};
_.Jq.Object.defineProperties(po.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return Mv8(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.NX(Mv8(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.NX(this.viewCountPreNumberText),this.viewCountProps.numberText,_.NX(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.NX(this.dateTextPreNumberText),this.dateTextProps.numberText,_.NX(this.dateTextPostNumberText)].join("")}}});
po.prototype.updateDynamicMetadata=po.prototype.updateDynamicMetadata;po.prototype.resetAnimationState=po.prototype.resetAnimationState;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],po.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],po.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],po.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"detailed",void 0);_.t([_.C(),_.N("design:type",Object)],po.prototype,"shouldAnimate",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"viewCountPreNumberText",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"viewCountProps",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"viewCountPostNumberText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"dateTextPreNumberText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"dateTextProps",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"dateTextPostNumberText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],po.prototype,"metadataBadgesInDescription",void 0);_.t([_.x("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.N("design:type",Object),_.N("design:paramtypes",[])],po.prototype,"infoText",null);
_.t([_.x("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.N("design:type",String),_.N("design:paramtypes",[])],po.prototype,"descriptionInfoTooltipText",null);_.t([_.x("detailed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],po.prototype,"showDescriptionInfoTooltip",null);
_.t([_.x("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],po.prototype,"animatedViewCountAccessibilityLabel",null);_.t([_.x("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.N("design:type",String),_.N("design:paramtypes",[])],po.prototype,"animatedDateTextAccessibilityLabel",null);
_.t([_.m5("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],po.prototype,"resetAnimationState",null);_.t([_.m5("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],po.prototype,"updateDynamicMetadata",null);po=_.t([_.G({disableElementRegistration:!0,is:"ytd-watch-info-text"})],po);
_.H(po,"ytd-watch-info-text",function(){if(OaU!==void 0)return OaU;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return OaU=W},{mode:1});var jS9;var Tr5=_.J1(function(W){var O=W.data;var b=W.setTapCommand;_.kb(function(){var T=_.xy(O().onTap);b(T)});
return _.E("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.E(_.R4,{data:function(){return O().avatar}},{avatarViewModel:_.KF}),_.E("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.E("span",null,function(){return O().simpleboxText})))},"Si");var Lt5=_.J1(function(W){return _.E("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.E(_.U,{cond:function(){return _.P(W.data().avatar,_.Hm)},
then:function(O){return _.E(_.KF,{data:O,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.E("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.E(_.uw,{text:function(){return W.data().teaserText}})))},"Ti");var dtP=_.J1(function(W){var O=W.data;var b=W.setTapCommand;_.kb(function(){var T=_.xy(O().onTap);b(T)});
return _.E("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.E(_.R4,{data:function(){return O().teasers}},{commentsEntryPointTeaserViewModel:Lt5}))},"Ui");var hx5=_.J1(function(W){var O=W.data;var b=W.setTapCommand;_.kb(function(){var T=_.xy(O().onTap);b(T)});
return _.E("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.E(_.uw,{text:function(){return O().messageText}}))},"Vi");var SHZ=_.J1(function(W){var O=W.data;var b=W.setTapCommand;var T=W.isDisabled;_.kb(function(){var L=(T==null?0:T())?void 0:_.xy(O().onTap);b(L)});
return _.E("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.E(_.Ps,{icon:function(){return O().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.E(_.U,{cond:function(){return O().image},
then:function(L){return _.E(_.uj,{data:L,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.E(_.uw,{text:function(){return O().text},
className:function(){return O().image||O().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.E(_.R4,{data:function(){return O().button}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:T==null?void 0:T()}}})}}))},"Wi");var Zag=_.J1(function(W){var O=W.data;var b=W.itemIndex;var T=W.selectedIndex;var L=W.indexUpdatedCallback;var h=W.observer;W=W.title;var Z=_.uy(),a=function(X){b()===T()&&L(X)},m=_.D3(K2B),w=_.D3(vc8),A=function(){var X,l,p;
return((X=O())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!m()||((l=O())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&w().includes("PAposts_by_host")||((p=O())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&w().includes("PAyouchat")};
_.kX(function(){h&&h().observe(Z.value)});
return _.E("yt-carousel-item-view-model",{el:Z,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":W},_.E(_.R4,{data:function(){var X,l;return(l=(X=_.P(O().carouselItem,U09))==null?void 0:X.textCarousel)!=null?l:O().carouselItem}},{textCarouselItemViewModel:function(X){return _.E(SHZ,{data:X.data,
setTapCommand:a,isDisabled:A})},
commentTeaserCarouselItemViewModel:function(X){return _.E(dtP,{data:X.data,setTapCommand:a})},
commentInputBoxCarouselItemViewModel:function(X){return _.E(Tr5,{data:X.data,setTapCommand:a})},
commentsEntryPointMessageViewModel:function(X){return _.E(hx5,{data:X.data,setTapCommand:a})}}))},"Xi");var I0B=_.J1(function(W){var O=W.numDots;var b=W.activeIndex;return _.E("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.E(_.pv,{each:function(){return Array.from({length:O()})},
keyBy:"INDEX"},function(T,L){return _.E("div",{class:function(){var h={};return _.wd("ytCarouselDotsShapeDot",(h.ytCarouselDotsShapeDotActive=L===b(),h))}})}))},"Yi");var a05=_.J1(function(W){var O=W.data;var b=W.handleCarouselNavigation;var T=W.numItems;var L=W.selectedIndex;var h=function(){return{disabled:L()===0}},Z=function(){return{disabled:L()===T()-1}};
return _.E("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.E("div",null,_.E("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return O().title}),_.E(_.U,{cond:function(){return O().subtitle},
then:function(a){return _.E("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return O().subtitleAccessibilityText}},a)}})),_.E(_.U,{cond:function(){return T()>1},
then:function(){return _.E("div",{class:"ytCarouselTitleViewModelNavigation"},_.E(I0B,{numDots:T,activeIndex:L}),_.E(_.U,{cond:function(){return O().previousButton},
then:function(a){return _.E(_.R4,{data:a},{buttonViewModel:function(m){return _.E(_.DO,{data:m.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(-1)},
buttonOverrides:h})}})}}),_.E(_.U,{cond:function(){return O().nextButton},
then:function(a){return _.E(_.R4,{data:a},{buttonViewModel:function(m){return _.E(_.DO,{data:m.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return b(1)},
buttonOverrides:Z})}})}}))}}))},"Zi");_.O1(_.J1(function(W){var O=W.data;var b=_.uy(),T=_.uy(),L=_.Cv("HTML_DIR")==="rtl",h=!1,Z=0,a=0;W=_.S(_.wu(0,void 0,"m0dtIf"));var m=W.next().value,w=W.next().value;W=_.S(_.wu(0,void 0,"fL6I6"));var A=W.next().value,X=W.next().value;W=_.S(_.wu(!1,void 0,"ZPrwNb"));var l=W.next().value,p=W.next().value,K=function(){var d8,pE,Qh;return(Qh=(d8=O())==null?void 0:(pE=d8.carouselTitles)==null?void 0:pE.length)!=null?Qh:0},k=function(){T.value&&T.value.scrollLeft!==Z&&w((L?T.value.scrollLeft<Z:T.value.scrollLeft>
Z)?Math.min(m()+1,K()-1):Math.max(m()-1,0))},r;
window.IntersectionObserver&&(r=new IntersectionObserver(function(d8){d8=_.S(d8);for(var pE=d8.next();!pE.done;pE=d8.next())if(pE.value.isIntersecting){if(h){h=!1;break}k()}else w(a)},{threshold:.2}));
_.kb(function(){if(T.value){var d8=(L?-1:1)*(A()/K()+12)*(l()&&r?a:m());typeof T.value.scrollTo==="function"?T.value.scrollTo({left:d8,behavior:"smooth"}):T.value.scrollLeft=d8;Z=d8;a=l()&&r?a:m()}});
var q,f=function(d8){q=d8};
_.kX(function(){var d8=function(){var Qh=T.value.offsetWidth*K(),KE=24*(K()-1);X(Qh+KE)};
d8();if(window.ResizeObserver){var pE=new ResizeObserver(d8);pE.observe(T.value);_.so(function(){pE.disconnect();r&&r.disconnect()})}});
W=_.XL(function(d8){if(_.JwP(_.qL(d8),b.value,["BUTTON".toString()])||!q)return!1;_.iq().resolve(_.bq).resolveCommand(q,{forceClickLogging:!0});return!1});
var M=function(d8){d8=m()+d8;d8>=0&&d8<K()&&(h=!0,w(d8))},V=_.XL(function(){p(!0);
return!1}),jQ=_.XL(function(){r||k();
p(!1);return!1}),y={};
return _.E("yt-video-metadata-carousel-view-model",{class:_.YS("ytVideoMetadataCarouselViewModelHost",(y.ytVideoMetadataCarouselViewModelShortMode=_.e("mweb_video_metadata_carousel_short_mode"),y)),el:b,"on:click":W,"on:touchstart":V,"on:touchend":jQ,hidden:function(){var d8,pE;return!((d8=O())==null?0:(pE=d8.carouselItems)==null?0:pE.length)}},_.E("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.E(_.U,{cond:function(){return O().carouselTitles},
then:function(d8){return _.E(_.R4,{data:function(){return d8()[l()&&r?a:m()]}},{carouselTitleViewModel:function(pE){return _.E(a05,{data:pE.data,
handleCarouselNavigation:M,numItems:K,selectedIndex:m})}})}})),_.E("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:T},_.E("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+A()+"px;"}},_.E(_.U,{cond:function(){return O().carouselItems},
then:function(d8){return _.E(_.pv,{each:d8},function(pE,Qh){return _.E(_.R4,{data:function(){return pE}},{carouselItemViewModel:function(KE){return _.E(Zag,{data:KE.data,
itemIndex:Qh,selectedIndex:m,indexUpdatedCallback:f,observer:r,title:function(){a:{var fE=Qh();var r8,nE=(r8=O())==null?void 0:r8.carouselTitles;if(nE&&(fE=nE[fE])){var tX;fE=(tX=_.P(fE,X49))==null?void 0:tX.title;break a}fE=void 0}return fE}})}})})}}))))},"$i"),"yt-video-metadata-carousel-view-model",{props:{data:_.te}});var mtk=_.e("web_action_buttons_update_owner_width")?32:12,RY=function(){var W=_.n.apply(this,arguments)||this;W.metadataBadgesInDescription=_.e("web_metadata_badges_in_description");W.descriptionCollapsed=!0;W.useFadedScrimDescription=_.e("kevlar_enable_faded_scrim_on_description");W.skinnyMode=!1;W.playlist=!1;W.isDark=document.documentElement.hasAttribute("dark");W.disableVideoOwnerOnTap=_.e("swatchie_video_owner_on_tap_ks");W.swatcherooDelayLoad=_.e("swatcheroo_enable_ghost_cards");W.primaryMenuWidth=
0;W.videoId="";W.titleHeadlineXs=_.e("web_watch_typography_title_headline_xs");W.titleHeadlineS=_.e("web_watch_typography_title_headline_s");W.titleHeadlineM=_.e("web_watch_typography_title_headline_m");W.titleHashtagBlackLinkified=_.e("web_title_hashtag_black_linkified");W.titleHashtagGreyLinkified=_.e("web_title_hashtag_grey_linkified");W.actionButtonsUpdateOwnerWidth=_.e("web_action_buttons_update_owner_width");W.shouldForceIconOnly=!1;W.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};W.isFullscreen=!1;W.isTheaterMode=!1;return W};
_.R(RY,_.n);_.d=RY.prototype;_.d.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.d.updateOwnerAndDescriptionPosition=function(){_.e("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.rj(this.bottomRowElement,this.ownerElement)):(_.rj(this.bottomRowElement,this.descriptionElement),_.rj(this.topRowElement,this.ownerElement)))};
_.d.titleOnTap=function(W){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var O;((O=window.getSelection())==null?0:O.toString().length)||this.handleExpandDescriptionCommands()}};
_.d.videoOwnerOnTap=function(W){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.d.detached=function(){var W=this,O;return _.I(function(b){(O=W.resizeObserver)==null||O.disconnect();_.aD(b)})};
_.d.maybeAttachResizeObserver=function(){var W=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.JI(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){W.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.d.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var W=this.hostElement.clientWidth,O=Math.max(this.largerItemWrap?400:350,W/2-mtk);if(_.e("web_action_buttons_update_owner_width")){var b;O=(((b=document.getElementById("owner"))==null?void 0:b.clientWidth)||0)+mtk}this.actionsOnSeparateLine=this.primaryMenuWidth>W-O?!0:!1}};
_.d.stripAttributedDescription=function(W){return{content:W.content.replace(/[\r\n]{2,}/g,"\n")}};
_.d.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.e("web_modern_buttons"),forceIconButton:!_.e("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:_.e("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.d.videoPrimaryInfoRendererChanged=function(){var W;if((W=this.videoPrimaryInfoRenderer)==null?0:W.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.d.videoSecondaryInfoRendererChanged=function(){var W,O;(O=(W=this.descriptionInlineExpander).collapse)==null||O.call(W);this.descriptionExpandClientVe=_.gd(110509);this.descriptionCollapseClientVe=_.gd(110510);W=_.Bb();O=_.sk();W&&O&&(_.e("combine_ve_grafts")?(_.jn(_.A4(),this.descriptionExpandClientVe,O),_.jn(_.A4(),this.descriptionCollapseClientVe,O)):_.GU(W,O,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.d.structuredDescriptionContentRendererChanged=function(){_.e("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.d.updateTopLevelIconsOnly=function(){var W=this;_.e("top_level_update_killswitch")||this.menu&&_.sF.addLowPriorityJob(function(){W.menu.topLevelIconsOnly=W.skinnyMode},_.Lu("swathceroo_delay_flexible_menu_update",100))};
_.d.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.e("web_action_buttons_minimize_subscribe")};
_.d.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.d.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.d.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.d.onYtTextInlineExpanderExpandedChanged=function(){if(!_.e("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var W,O;(O=(W=this.structuredDescriptionContentRendererElement).resize)==null||O.call(W)}};
_.d.onRenderStamperFinished=function(W){(W==null?void 0:W.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.d.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.d.onYtExpanderLessTapped=function(){var W,O=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showLessCommand;O&&this.ytComponentBehavior.resolveCommand(O)};
_.d.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.d.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.d.onDescriptionClick=function(W){if(!_.un(_.Nd(W)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var O;((O=window.getSelection())==null?0:O.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.e("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.d.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.d.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.d.logCollapseClick=function(){var W=_.Bb();W&&this.descriptionCollapseClientVe&&_.Vw(W,this.descriptionCollapseClientVe)};
_.d.logExpandClick=function(){var W=_.Bb();W&&this.descriptionExpandClientVe&&_.Vw(W,this.descriptionExpandClientVe)};
_.d.collapseDescription=function(){this.descriptionCollapsed=!0};
_.d.scrollToTopOfContainer=function(){_.jx(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.d.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.d.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.d.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.d.resize=function(){if(this.descriptionInlineExpander){var W,O;(O=(W=this.descriptionInlineExpander).resize)==null||O.call(W)}else _.z5(new _.pu("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var b;(b=this.menu)==null||b.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.e("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.d.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var W,O,b,T,L=_.e("web_action_buttons_update_owner_width")?(b=(W=_.Q(this.menu).querySelector("#button-shape"))==null?void 0:W.clientWidth)!=null?b:0:(T=(O=_.Q(this.menu).querySelector("#button"))==null?void 0:O.clientWidth)!=null?T:0,h,Z;W=((Z=(h=_.Q(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:h.clientWidth)!=null?Z:0)+8+L;var a,m;L=(m=(a=_.Q(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:a.children.length)!=null?m:2;W<=8*L||(this.primaryMenuWidth=W)}};
_.d.onYtUpdateTitleAction=function(W){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.P(W,cJ9).title)};
_.d.onYtUpdateDescriptionAction=function(W){if(W=_.P(W,_.A6q)){var O,b=!((O=this.videoSecondaryInfoRenderer)==null||!O.attributedDescription);W.isEmpty||!W.description&&!W.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):W.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",W.attributedDescription):W.description&&(b?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.sz(W.description)):this.set("videoSecondaryInfoRenderer.description",W.description))}};
_.d.onYtDarkModeToggledAction=function(W){this.isDark=W};
_.d.registerPanel=function(){if(!_.e("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var W=_.e("web_watch_imax_theater_mode")&&this.isTheaterMode;W=_.e("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||W;var O=_.iq().resolve(_.P$);O&&!W&&O.registerPanel("engagement-panel-structured-description",this)}};
_.d.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.d.showPanel=function(W){this.expandDescription();var O=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;O.resize();var b,T=W==null?void 0:(b=W.sectionListEngagementPanelExtras)==null?void 0:b.scrollToItemSectionIdentifier;T?_.sF.addJob(function(){O==null||O.scrollToSection(T)},8):this.scrollToTopOfContainer()};
_.d.isVisible=function(){return!this.descriptionCollapsed};
_.d.getReloadContinuation=function(){};
_.d.hidePanel=function(){};
_.d.updatePanel=function(){};
_.Jq.Object.defineProperties(RY.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.structuredDescriptionContentRenderer)!=null&&W.items){var O;W=_.S((O=this.structuredDescriptionContentRenderer)==null?void 0:O.items);for(O=W.next();!O.done;O=W.next())if(O=_.P(O.value,_.Xy5))return O}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoPrimaryInfoRenderer)==null?0:W.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!!((W=this.videoSecondaryInfoRenderer)==null?0:(O=W.owner)==null?0:(b=O.videoOwnerRenderer)==null?0:b.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.e("swatchie_sd_new_line_strip_ks")){var W,O;if((W=this.videoSecondaryInfoRenderer)==null?0:(O=W.attributedDescription)==null?0:O.content){var b,T;return(T=this.stripAttributedDescription((b=this.videoSecondaryInfoRenderer)==null?void 0:b.attributedDescription))!=null?T:{runs:[]}}}var L,h,Z,a;return(a=(Z=(L=this.videoSecondaryInfoRenderer)==null?void 0:L.description)!=null?Z:(h=this.videoSecondaryInfoRenderer)==null?
void 0:h.attributedDescription)!=null?a:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.videoSecondaryInfoRenderer)==null?void 0:W.headerRuns)!=null?O:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.commentsEntryPointHeaderRenderer)==null||!W.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.videoMetadataCarousel)==null||!W.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.Lu("swatchie_desc_lines",3):this.hasTeaserCarousel?_.Lu("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var W,O,b=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(O=W.metadataRowContainer)==null?void 0:O.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0&&!(b.rows.length<=b.collapsedItemCount))return b.rows=b.rows.slice(b.collapsedItemCount),b.collapsedItemCount=0,b}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var W,O,b=Object.assign({},(W=this.videoSecondaryInfoRenderer)==null?void 0:(O=W.metadataRowContainer)==null?void 0:O.metadataRowContainerRenderer);if(b&&b.rows&&b.collapsedItemCount!==void 0)return b.rows=b.rows.slice(0,b.collapsedItemCount),b.collapsedItemCount=b.rows.length,b}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!((W=this.structuredDescriptionContentRenderer)==null?0:(O=W.items)==null?0:O.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var W;return(W=this.videoSecondaryInfoRenderer)==null?void 0:W.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.videoSecondaryInfoRenderer)==null?0:(O=W.owner)==null?0:(b=O.videoOwnerRenderer)==null?0:b.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return!!((W=this.videoPrimaryInfoRenderer)==null?0:(O=W.videoActions)==null?0:(b=O.menuRenderer)==null?0:(T=b.flexibleItems)==null?0:T.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.$y(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.$y(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var W=this;if(_.e("web_title_hashtag_grey_delinkified")){var O,b=_.PQ.unsafeClone((O=this.videoPrimaryInfoRenderer)==null?void 0:O.title);(O=b==null?void 0:b.runs)&&O.forEach(function(T){if(T==null?0:T.navigationEndpoint)T.textColor=4284506208,W.isDark&&(T.textColor=4289374890)});
return b}return(b=this.videoPrimaryInfoRenderer)==null?void 0:b.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.e("web_title_hashtag_black_delinkified")||_.e("web_title_hashtag_grey_delinkified")}}});
RY.prototype.resetDescriptionState=RY.prototype.resetDescriptionState;RY.prototype.registerPanel=RY.prototype.registerPanel;RY.prototype.onYtExpanderLessTapped=RY.prototype.onYtExpanderLessTapped;RY.prototype.onYtExpanderMoreTapped=RY.prototype.onYtExpanderMoreTapped;RY.prototype.onRenderStamperFinished=RY.prototype.onRenderStamperFinished;RY.prototype.onYtTextInlineExpanderExpandedChanged=RY.prototype.onYtTextInlineExpanderExpandedChanged;RY.prototype.onYtTextInlineExpanderCollapseClicked=RY.prototype.onYtTextInlineExpanderCollapseClicked;
RY.prototype.onYtTextInlineExpanderExpandClicked=RY.prototype.onYtTextInlineExpanderExpandClicked;RY.prototype.moveActionsElement=RY.prototype.moveActionsElement;RY.prototype.updateShouldForceIconOnly=RY.prototype.updateShouldForceIconOnly;RY.prototype.updateTopLevelIconsOnly=RY.prototype.updateTopLevelIconsOnly;RY.prototype.structuredDescriptionContentRendererChanged=RY.prototype.structuredDescriptionContentRendererChanged;RY.prototype.videoSecondaryInfoRendererChanged=RY.prototype.videoSecondaryInfoRendererChanged;
RY.prototype.videoPrimaryInfoRendererChanged=RY.prototype.videoPrimaryInfoRendererChanged;RY.prototype.maybeUpdateActionsOnSeparateLine=RY.prototype.maybeUpdateActionsOnSeparateLine;RY.prototype.updateOwnerAndDescriptionPosition=RY.prototype.updateOwnerAndDescriptionPosition;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],RY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],RY.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],RY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],RY.prototype,"ytdReduxBehavior",void 0);_.t([_.El("#above-the-fold"),_.N("design:type",HTMLElement)],RY.prototype,"aboveTheFoldContainer",void 0);_.t([_.El("#menu ytd-menu-renderer"),_.N("design:type",Object)],RY.prototype,"menu",void 0);
_.t([_.El("#description-inline-expander"),_.N("design:type",Object)],RY.prototype,"descriptionInlineExpander",void 0);_.t([_.El("#faded-structured-description"),_.N("design:type",Object)],RY.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.t([_.El("#structured-description"),_.N("design:type",Object)],RY.prototype,"structuredDescriptionContentRendererElement",void 0);_.t([_.El("#title"),_.N("design:type",HTMLElement)],RY.prototype,"titleElement",void 0);
_.t([_.El("#description"),_.N("design:type",HTMLElement)],RY.prototype,"descriptionElement",void 0);_.t([_.El("#description-interaction"),_.N("design:type",Object)],RY.prototype,"descriptionInteraction",void 0);_.t([_.El("#owner"),_.N("design:type",HTMLElement)],RY.prototype,"ownerElement",void 0);_.t([_.El("#top-row"),_.N("design:type",HTMLElement)],RY.prototype,"topRowElement",void 0);_.t([_.El("#bottom-row"),_.N("design:type",HTMLElement)],RY.prototype,"bottomRowElement",void 0);
_.t([_.El("#actions"),_.N("design:type",HTMLElement)],RY.prototype,"actionsElement",void 0);_.t([_.El("#bottom-actions"),_.N("design:type",HTMLElement)],RY.prototype,"bottomActionsElement",void 0);_.t([_.El("#ytd-watch-info-text"),_.N("design:type",Object)],RY.prototype,"watchInfoTextElement",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"videoPrimaryInfoRenderer",void 0);
_.t([_.C(),_.N("design:type",Object)],RY.prototype,"videoSecondaryInfoRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"commentsEntryPointHeaderRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"videoMetadataCarousel",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"videoSummary",void 0);
_.t([_.C(),_.N("design:type",Object)],RY.prototype,"merchShelf",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"infoPanelBelowMetadata",void 0);_.t([_.x("structuredDescriptionContentRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"productShelf",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"metadataBadgesInDescription",void 0);
_.t([_.x("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"shouldHideBadges",null);_.t([_.x("productShelf","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"shouldShowProductShelf",null);_.t([_.C(),_.N("design:type",Boolean)],RY.prototype,"isWatchFlexy",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"descriptionCollapsed",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],RY.prototype,"useFadedScrimDescription",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"skinnyMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"largerItemWrap",null);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"playlist",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"clarifyBox",void 0);
_.t([_.C(),_.N("design:type",Object)],RY.prototype,"playerAds",void 0);_.t([_.C(),_.N("design:type",Boolean)],RY.prototype,"isDark",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],RY.prototype,"actionsOnSeparateLine",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"disableVideoOwnerOnTap",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"swatcherooDelayLoad",void 0);
_.t([_.C(),_.N("design:type",Boolean)],RY.prototype,"suppressTopLevelMetadataRows",void 0);_.t([_.C(),_.N("design:type",Object)],RY.prototype,"primaryMenuWidth",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"videoId",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"titleHeadlineXs",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"titleHeadlineS",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"titleHeadlineM",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"titleHashtagBlackLinkified",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"titleHashtagGreyLinkified",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.t([_.C(),_.N("design:type",Object)],RY.prototype,"shouldForceIconOnly",void 0);_.t([_.Ul("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"updateOwnerAndDescriptionPosition",null);_.t([_.Ul("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.t([_.x("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"descriptionText",null);_.t([_.x("videoSecondaryInfoRenderer.headerRuns"),_.N("design:type",Array),_.N("design:paramtypes",[])],RY.prototype,"headerRuns",null);_.t([_.C({value:!1}),_.x("commentsEntryPointHeaderRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"hasTeaser",null);
_.t([_.C({value:!1,reflectToAttribute:!0}),_.x("videoMetadataCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"hasTeaserCarousel",null);_.t([_.C({value:3}),_.x("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"descriptionMaxLines",null);_.t([_.x("videoSecondaryInfoRenderer.metadataRowContainer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"collapsibleMetadataRows",null);
_.t([_.x("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"alwaysVisibleMetadataRows",null);_.t([_.x("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"hasInlineStructuredDescription",null);
_.t([_.x("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"showInlineStructuredDescription",null);_.t([_.x("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"descriptionExpandCommand",null);
_.t([_.x("videoSecondaryInfoRenderer.owner"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"videoOwnerCommand",null);_.t([_.C({reflectToAttribute:!0}),_.x("videoPrimaryInfoRenderer.videoActions"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"flexMenuEnabled",null);_.t([_.C({selector:_.RU,reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"isFullscreen",void 0);
_.t([_.C({selector:_.vp,reflectToAttribute:!0}),_.N("design:type",Object)],RY.prototype,"isTheaterMode",void 0);_.t([_.x("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"showAttributedStringDescription",null);_.t([_.x("descriptionText","useFadedScrimDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"showFormattedStringDescription",null);
_.t([_.x("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RY.prototype,"showFadedStructuredDescription",null);_.t([_.Ul("videoPrimaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"videoPrimaryInfoRendererChanged",null);_.t([_.x("videoPrimaryInfoRenderer.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"videoTitle",null);
_.t([_.x("videoPrimaryInfoRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],RY.prototype,"noEndpoints",null);_.t([_.Ul("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"videoSecondaryInfoRendererChanged",null);
_.t([_.m5("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"structuredDescriptionContentRendererChanged",null);_.t([_.m5("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"updateTopLevelIconsOnly",null);
_.t([_.m5("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"updateShouldForceIconOnly",null);_.t([_.m5("skinnyMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"moveActionsElement",null);_.t([_.ai("yt-text-inline-expander-expand-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.t([_.ai("yt-text-inline-expander-collapse-clicked"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.t([_.ai("yt-text-inline-expander-expanded-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],RY.prototype,"onRenderStamperFinished",null);_.t([_.ai("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onYtExpanderMoreTapped",null);_.t([_.ai("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"onYtExpanderLessTapped",null);
_.t([_.m5("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"registerPanel",null);_.t([_.m5("videoSecondaryInfoRenderer"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RY.prototype,"resetDescriptionState",null);RY=_.t([_.G({disableElementRegistration:!0,is:"ytd-watch-metadata"})],RY);
_.H(RY,"ytd-watch-metadata",function(){if(jS9!==void 0)return jS9;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return jS9=W},{mode:2});_.exk=function(W){_.R8.call(this);this.JSC$20267_watchApi=W;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;YHZ(this);En7(this);wIP(this);AZ9(this);XI9(this);UtR(this);l0D(this)};
_.R(_.exk,_.R8);var wIP=function(W){var O=function(){_.e("kevlar_is_pupi_enabled")||Ko(W)};
W.JSC$20267_watchApi.getRoot().addEventListener("yt-player-updated",O);W.addOnDisposeCallback(function(){W.JSC$20267_watchApi.getRoot().removeEventListener("yt-player-updated",O)})},XI9=function(W){if(_.e("kevlar_endscreen_auto_theater_mode")){var O=W.JSC$20267_watchApi.subscribeToActiveChanged(function(){P5k(W)},!1);
W.addOnDisposeCallback(O)}},YHZ=function(W){var O,b,T,L,h;
_.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,W.JSC$20267_watchApi.playerApi,2);O=Z.yieldResult;b=function(a){a=!!a;vz(W)&&(a=a?2:1,_.NN.getInstance().setState(a,!0,!1))};
T=function(a){a&&_.Rd1(_.uv().getState())&&(_.jx(W.JSC$20267_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),W.temporaryTheaterMode=!0)};
L=function(a){_.e("kevlar_player_update_autonav_on_new_data")&&a.type==="newdata"&&(_.e("kevlar_is_pupi_enabled")||Ko(W))};
h=function(a){W.onPlayerStateChange(a)};
_.e("kevlar_endscreen_auto_theater_mode")&&O.addEventListener("onAutonavCancelled",T);O.addEventListener("onAutonavChangeRequest",b);O.addEventListener("onVideoDataChange",L);O.addEventListener("onStateChange",h);W.addOnDisposeCallback(function(){O.removeEventListener("onAutonavChangeRequest",b);O.removeEventListener("onVideoDataChange",L);O.removeEventListener("onStateChange",h);_.e("kevlar_endscreen_auto_theater_mode")&&O.removeEventListener("onAutonavCancelled",T)});
_.aD(Z)})},En7=function(W){W.JSC$20267_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){W.autonavCancelledBySignal=!0;
_.e("kevlar_is_pupi_enabled")||Ko(W)});
W.JSC$20267_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(O,b,T){b&&Ko(W,T)});
W.JSC$20267_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){vz(W)&&_.NN.getInstance().setState(2,!0,!0)});
W.JSC$20267_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){vz(W)&&_.NN.getInstance().setState(1,!0,!0)});
W.addOnDisposeCallback(function(){W.JSC$20267_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");W.JSC$20267_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");W.JSC$20267_watchApi.unregisterActionHandler("yt-enable-autoplay-command");W.JSC$20267_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},AZ9=function(W){var O=W.JSC$20267_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){l0D(W)}),b=W.JSC$20267_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){UtR(W)});
W.addOnDisposeCallback(function(){W.JSC$20267_watchApi.unsubscribeByKey(O);W.JSC$20267_watchApi.unsubscribeByKey(b)})},l0D=function(W){W.autonavCancelledBySignal=!1;
_.e("kevlar_is_pupi_enabled")||Ko(W)},UtR=function(W){var O=W.JSC$20267_watchApi.getWatchNextResponse(),b,T;
var L=(O=(T=_.P(O==null?void 0:(L=O.playerOverlays)==null?void 0:(b=L.playerOverlayRenderer)==null?void 0:b.autonavToggle,_.UNU))==null?void 0:T.enabled)?2:1;_.e("kevlar_is_pupi_enabled")?_.NN.getInstance().setState(L,!1,!1):Ko(W);_.e("web_persist_server_autonav_state_on_client")&&typeof O==="boolean"&&_.EBq(L===2)},vz=function(W){if(W.autonavCancelledBySignal)return!1;
var O,b,T,L;return!!((O=W.JSC$20267_watchApi.getWatchNextResponse())==null?0:(b=O.contents)==null?0:(T=b.twoColumnWatchNextResults)==null?0:(L=T.autoplay)==null?0:L.autoplay)};
_.exk.prototype.onPlayerStateChange=function(W){if(W===0){W=!_.NN.getInstance().isAutoplaySetExplicitly();var O=this.JSC$20267_watchApi.getWatchNextResponse(),b,T,L,h;O=_.P(O==null?void 0:(b=O.contents)==null?void 0:(T=b.twoColumnWatchNextResults)==null?void 0:(L=T.autoplay)==null?void 0:(h=L.autoplay)==null?void 0:h.autoplayExplicitChoiceDialogRenderer,_.$29);vz(this)&&W&&O&&_.ax.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:O},popupType:"DIALOG"}})}else P5k(this)};
var P5k=function(W){W.temporaryTheaterMode&&(W.temporaryTheaterMode=!1,_.jx(W.JSC$20267_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Ko=function(W,O){O=O===void 0?!1:O;
var b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20267_watchApi.playerApi,2);b=T.yieldResult;vz(W)?b.setAutonavState(_.NN.getInstance().getState(),O):b.setAutonavState(1,O);_.aD(T)})};var pI7={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"};_.Ktk=function(W){_.R8.call(this);var O=this;this.JSC$20272_watchApi=W;var b=this.JSC$20272_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Rx2(O)});
this.addOnDisposeCallback(function(){O.JSC$20272_watchApi.unsubscribeByKey(b)});
Rx2(this)};
_.R(_.Ktk,_.R8);var Rx2=function(W){var O=W.JSC$20272_watchApi.getPlayerResponse(),b=W.JSC$20272_watchApi.getWatchNextResponse();if(!_.Tre(O==null?void 0:O.playabilityStatus,b==null?void 0:b.playerOverlays)){var T;var L=O==null?void 0:(T=O.playabilityStatus)==null?void 0:T.errorScreen}W.JSC$20272_watchApi.provideRenderingData("ERROR_SCREEN",L)};var vnR=_.J1(function(W){var O=W.data;W=_.XL(function(){var b=O().onTap;b&&_.iq().resolve(_.bq).resolveCommand(b)});
return _.E("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":W},_.E("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.E(_.R4,{data:function(){return O().channelAvatar}},{avatarViewModel:_.KF}),_.E(_.uw,{text:function(){return O().subtitle}})))},"aj");var gh={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER"},gn9=_.J1(function(W){var O=W.data;return _.E("yt-player-quick-action-buttons",{class:_.YS("ytPlayerQuickActionButtonsHost")},_.E(_.pv,{each:function(){if(_.e("delhi_modern_web_player_icons")&&!_.e("enable_web_delhi_icons")){var b=O();b=JSON.parse(JSON.stringify(b));for(var T=_.S(b),L=T.next();!L.done;L=T.next()){var h=L.value,Z=void 0;L=_.P((Z=_.P(h,_.QU))==null?void 0:Z.toggleButtonViewModel,
_.vm);var a=void 0;Z=_.P((a=_.P(h,_.kz))==null?void 0:a.toggleButtonViewModel,_.vm);h=_.P(h,_.Kp);if(L){Z=_.P(L.defaultButtonViewModel,_.Kp);L=_.P(L.toggledButtonViewModel,_.Kp);h=void 0;if((h=Z)==null?0:h.iconName)Z.iconName=gh[Z.iconName];Z=void 0;if((Z=L)==null?0:Z.iconName)L.iconName=gh[L.iconName]}else if(Z){L=_.P(Z.defaultButtonViewModel,_.Kp);Z=_.P(Z.toggledButtonViewModel,_.Kp);h=void 0;if((h=L)==null?0:h.iconName)L.iconName=gh[L.iconName];L=void 0;if((L=Z)==null?0:L.iconName)Z.iconName=gh[Z.iconName]}else h&&
(h.iconName=gh[h.iconName])}}else b=O();return b}},function(b){return _.E(_.R4,{data:function(){return b}},{buttonViewModel:_.DO,
likeButtonViewModel:function(T){return _.E(_.QJ,{data:T.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.oC})}))},"bj");_.QSk=function(W){_.R8.call(this);var O=this;this.JSC$20275_watchApi=W;W=_.S(_.wu({},void 0,"ufFdVc"));this.quickActionsViewModel=W.next().value;this.setQuickActionsViewModel=W.next().value;W=_.S(_.wu({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=W.next().value;this.setPlayerOverlayVideoDetailsRenderer=W.next().value;var b=this.JSC$20275_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ong(O)});
this.addOnDisposeCallback(function(){O.JSC$20275_watchApi.unsubscribeByKey(b)});
ong(this)};
_.R(_.QSk,_.R8);
var ong=function(W){var O,b,T,L,h,Z,a,m,w,A,X,l,p,K;_.I(function(k){if(k.nextAddress==1)return _.Y(k,W.JSC$20275_watchApi.playerApi,2);O=k.yieldResult;b=W.JSC$20275_watchApi.getWatchNextResponse();h=(T=b)==null?void 0:(L=T.playerOverlays)==null?void 0:L.playerOverlayRenderer;a=_.P((Z=h)==null?void 0:Z.fullscreenQuickActionsBar,_.KcU);(w=(m=W).setQuickActionsViewModel)==null||w.call(m,a||{});a&&kk5(W,O);l=(A=h)==null?void 0:(X=A.videoDetails)==null?void 0:X.playerOverlayVideoDetailsRenderer;(K=(p=
W).setPlayerOverlayVideoDetailsRenderer)==null||K.call(p,l||{});l&&sS5(W,O);_.aD(k)})},kk5=function(W,O){if(!W.quickActionButtonsContainer){W.quickActionButtonsContainer=document.createElement("div");
O.setFullscreenQuickActions(W.quickActionButtonsContainer);var b=function(){return W.quickActionsViewModel().quickActionButtons||[]},T=_.g0(W.quickActionButtonsContainer,function(){return _.E(gn9,{data:b})});
W.addOnDisposeCallback(function(){O.setFullscreenQuickActions(void 0);T()})}},sS5=function(W,O){if(!W.playerOverlayVideoDetailsRendererContainer){W.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
O.setPlayerOverlayVideoDetailsRenderer(W.playerOverlayVideoDetailsRendererContainer);var b=_.g0(W.playerOverlayVideoDetailsRendererContainer,function(){return _.E(vnR,{data:W.playerOverlayVideoDetailsRenderer})});
W.addOnDisposeCallback(function(){O.setPlayerOverlayVideoDetailsRenderer(void 0);b()})}};_.oY=function(W){_.R8.call(this);var O=this;this.JSC$20280_watchApi=W;this.JSC$20280_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;W=_.mr(_.uv(),_.RU,function(b){BrD(O,b)});
this.addOnDisposeCallback(W);W=_.mr(_.uv(),_.Ks,function(b){O.onWatchScroll(b)});
this.addOnDisposeCallback(W);_.e("kevlar_watch_while_v2")&&(W=_.mr(_.uv(),_.BS,function(b){rZD(O,b)}),this.addOnDisposeCallback(W));
DtN(this);xtR(this);zx8();this.onWatchScroll(_.Ks(_.uv().getState()));_.qC("START_IN_FULL_WINDOW_MODE")&&this.JSC$20280_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.R(_.oY,_.R8);var DtN=function(W){W.JSC$20280_watchApi.registerActionHandler("yt-fullscreen-change-action",function(O){var b=W.JSC$20280_watchApi.isActive();O&&!b||_.uv().dispatch(_.Tc({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!O}}))});
W.addOnDisposeCallback(function(){W.JSC$20280_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},xtR=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20280_watchApi.playerApi,2);O=T.yieldResult;b=function(){W.onFullerscreenEduClicked()};
O.addEventListener("onFullerscreenEduClicked",b);W.addOnDisposeCallback(function(){O.removeEventListener("onFullerscreenEduClicked",b)});
_.aD(T)})},BrD=function(W,O){var b;
_.I(function(T){if(T.nextAddress==1)return W.isFullscreen=!!_.y3(),_.Y(T,W.JSC$20280_watchApi.playerApi,2);b=T.yieldResult;W.JSC$20280_miniplayerActive||b.setFauxFullscreen(W.isFullscreen);if(O&&(W.JSC$20280_watchApi.focusOnPlayer(),!W.fullerscreenEduButtonShownThisPlayback)){W.fullerscreenEduButtonShownThisPlayback=!0;var L=_.Tz("yt-fullerscreen-edu-button-shown-count")||0;_.ju("yt-fullerscreen-edu-button-shown-count",L+1,31536E3);W.updateFullerscreenEduButtonSubtleModeState()}_.aD(T)})},rZD=function(W,
O){var b;
_.I(function(T){if(T.nextAddress==1)return W.JSC$20280_miniplayerActive=O,_.Y(T,W.JSC$20280_watchApi.playerApi,2);b=T.yieldResult;b.setFauxFullscreen(!W.JSC$20280_miniplayerActive&&W.isFullscreen);_.aD(T)})};
_.oY.prototype.onWatchScroll=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return _.e("external_fullscreen_with_edu")?_.Y(L,O.JSC$20280_watchApi.playerApi,2):L.return();b=L.yieldResult;T=W<=0;O.shouldShowFullerscreenEdu!==T&&(O.shouldShowFullerscreenEdu=T,b.updateFullerscreenEduButtonVisibility(!O.shouldShowFullerscreenEdu));_.aD(L)})};
_.oY.prototype.onFullerscreenEduClicked=function(){this.JSC$20280_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var W=_.Tz("yt-fullerscreen-edu-button-click-count")||0;_.ju("yt-fullerscreen-edu-button-click-count",W+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.oY.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var W=this,O,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return O=_.Tz("yt-fullerscreen-edu-button-click-count")||0,b=_.Tz("yt-fullerscreen-edu-button-shown-count")||0,T=_.Lu("external_fullscreen_button_click_threshold"),L=_.Lu("external_fullscreen_button_shown_threshold"),h=O>=T||b>=L,_.Y(a,W.JSC$20280_watchApi.playerApi,2);Z=a.yieldResult;Z.updateFullerscreenEduButtonSubtleModeState(h);_.aD(a)})};
_.oY.prototype.disposeInternal=function(){_.R8.prototype.disposeInternal.call(this);var W=_.y3();_.e("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Wg(W)};
var zx8=function(){if(_.e("web_watch_add_viewport_meta_tag")){var W=document.querySelector("meta[name=viewport]"),O=document.head;O&&!W&&(W=document.createElement("meta"),W.name="viewport",W.content="width=device-width, initial-scale=1.0, viewport-fit=cover",O.appendChild(W))}};_.Ql=function(W){_.R8.call(this);var O=this;this.JSC$20284_watchApi=W;this.jobId=0;this.pendingRequestId=void 0;var b=this.JSC$20284_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){C5g(O)});
this.addOnDisposeCallback(function(){O.JSC$20284_watchApi.unsubscribeByKey(b)});
C5g(this)};
_.R(_.Ql,_.R8);var qHP=function(W){_.sF.cancelJob(W.jobId);W.pendingRequestId=void 0},C5g=function(W){qHP(W);
var O=Jmk(W.JSC$20284_watchApi.getWatchNextResponse());if(O){var b=250,T,L=(T=_.P(O,_.g2q))==null?void 0:T.initialDelayMs;_.e("web_watch_updated_metadata_server_initial_delay")&&L&&(b=L);W.jobId=_.sF.addLowPriorityJob(function(){return W.fetchUpdatedMetadata(O)},b)}};
_.Ql.prototype.fetchUpdatedMetadata=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q;return _.I(function(f){switch(f.nextAddress){case 1:O&&(T={continuation:O});if(!_.e("web_get_updated_metadata_fantasy_panel_continuation_params")){f.jumpTo(2);break}L=_.iq().resolve(_.P$);h="PAsports_fantasy";return _.Y(f,L.isVisible(h,!0),3);case 3:f.yieldResult&&(w=(a=(Z=L).getUpdatePanelContinuationData)==null?void 0:(m=a.call(Z,h))==null?void 0:m.updatePanelContinuationRequest)&&(T||(T={}),T.clientParams=
{panelContinuationParams:{panelContinuation:w}});case 2:A=_.iq().resolve(_.sP);if(!A)return _.Dt(Error("im")),f.return();X={};b.pendingRequestId=X;return _.Y(f,_.tP(A,W,T),4);case 4:l=f.yieldResult;if(X!==b.pendingRequestId)return f.return();k=(p=l)==null?void 0:(K=p.continuation)==null?void 0:K.timedContinuationData;((r=k)==null?0:r.continuation)&&((q=k)==null?0:q.timeoutMs)&&(b.jobId=_.sF.addLowPriorityJob(function(){return b.fetchUpdatedMetadata(W,k.continuation)},k.timeoutMs));
_.aD(f)}})};
_.Ql.prototype.disposeInternal=function(){_.R8.prototype.disposeInternal.call(this);qHP(this)};var nnP=_.J1(function(W){var O=_.XL(function(){var T=W.data().videoId;if(W.active())T=_.Or(T),_.iq().resolve(_.bq).resolveCommand(T);else{var L=W.playerApi(),h=L.getAvailableAudioTracks(),Z,a,m=(Z=W.sourceVideoConfig().audioTracks)==null?void 0:(a=Z.find(function(w){return w.isDefaultForSource}))==null?void 0:a.id;
if(h=h.find(function(w){return w.getLanguageInfo().getId()===m}))L.setAudioTrack(h,!0),L.setCompositeParam({activeVideoId:T}),W.setActiveSourceId(T)}}),b={};
return _.E("ytw-composite-source-video-overlay",{class:_.YS("ytwCompositeSourceVideoOverlayHost",(b.ytwCompositeSourceVideoOverlayActive=W.active,b.ytwCompositeSourceVideoOverlayInteracting=W.interacting,b)),style:_.eE({left:function(){var T;return((T=W.data().topLeftCornerX)!=null?T:0)*100+"%"},
top:function(){var T;return((T=W.data().topLeftCornerY)!=null?T:0)*100+"%"},
width:function(){var T;return((T=W.data().width)!=null?T:0)*100+"%"},
height:function(){var T;return((T=W.data().height)!=null?T:0)*100+"%"}}),
"on:click":O},_.E("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"cj");var f0R=_.J1(function(W){var O=_.S(_.ln(function(){var a,m=(a=W.data().sources)==null?void 0:a.find(function(w){return w.isActive});
if(m)return m.videoId})),b=O.next().value,T=O.next().value;
O=_.S(_.wu(!1,void 0,"WI4BUb"));var L=O.next().value,h=O.next().value;O=_.XL(function(){h(!0)});
var Z=_.XL(function(){h(!1)});
return _.E("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":O,"on:mouseout":Z},_.E(_.U,{cond:function(){return W.data().sources},
then:function(a){return _.E(_.pv,{each:a},function(m){return _.E(nnP,{data:m,active:function(){return m.videoId===b()},
setActiveSourceId:T,interacting:L,playerApi:W.playerApi,sourceVideoConfig:function(){return cm1(W.compositeVideoConfig(),m.videoId)}})})}}))},"dj");_.tIU=function(W){_.R8.call(this);this.JSC$20300_watchApi=W;W=_.S(_.wu({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=W.next().value;this.setCompositeVideoOverlayRenderer=W.next().value;W=_.S(_.wu({},void 0,"U5hcq"));this.compositeVideoConfig=W.next().value;this.setCompositeVideoConfig=W.next().value;GkZ(this);Hak(this)};
_.R(_.tIU,_.R8);var GkZ=function(W){var O=W.JSC$20300_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Hak(W)});
W.addOnDisposeCallback(function(){W.JSC$20300_watchApi.unsubscribeByKey(O)})},$tR=function(W){var O;
return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20300_watchApi.playerApi,2);O=b.yieldResult;O.setCompositeVideoOverlayRendererComponent(W.container);_.aD(b)})},VI2=function(W){var O;
return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20300_watchApi.playerApi,2);O=b.yieldResult;O.setCompositeVideoOverlayRendererComponent(void 0);_.aD(b)})},NrD=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20300_watchApi.playerApi,2);O=T.yieldResult;W.container=document.createElement("div");b=_.g0(W.container,function(){return _.E(f0R,{data:W.compositeVideoOverlayRenderer,compositeVideoConfig:W.compositeVideoConfig,playerApi:O})});
W.addOnDisposeCallback(b);_.aD(T)})},Hak=function(W){var O,b,T,L,h,Z,a,m;
_.I(function(w){return w.nextAddress==1?(O=W.JSC$20300_watchApi.getPlayerResponse(),h=_.P((b=O)==null?void 0:(T=b.overlay)==null?void 0:(L=T.playerControlsOverlayRenderer)==null?void 0:L.compositeVideoOverlay,fE8),m=(Z=O)==null?void 0:(a=Z.playerConfig)==null?void 0:a.compositeVideoConfig,h&&W.setCompositeVideoOverlayRenderer(h),m&&W.setCompositeVideoConfig(m),h&&m?W.container?w.jumpTo(6):_.Y(w,NrD(W),6):MIk(W)?_.Y(w,VI2(W),0):w.jumpTo(0)):MIk(W)?w.jumpTo(0):_.Y(w,$tR(W),0)})},MIk=function(W){var O;
return!((O=W.container)==null||!O.parentElement)};
_.tIU.prototype.disposeInternal=function(){MIk(this)&&VI2(this);_.R8.prototype.disposeInternal.call(this)};_.yZD=function(W){_.R8.call(this);var O=this;this.JSC$20306_watchApi=W;var b=this.JSC$20306_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var T=O.JSC$20306_watchApi.getPlayerResponse();if(T){var L,h;if(T=_.P((L=T.endscreen)==null?void 0:(h=L.endscreenRenderer)==null?void 0:h.hideButton,_.vm)){var Z;(Z=O.setEndscreenHideButton)==null||Z.call(O,T);uKg(O)}}});
this.addOnDisposeCallback(function(){O.JSC$20306_watchApi.unsubscribeByKey(b)});
W=_.S(_.wu({},void 0,"PPHRb"));this.endscreenHideButton=W.next().value;this.setEndscreenHideButton=W.next().value;JZg(this);cZ8(this);FtD(this)};
_.R(_.yZD,_.R8);var uKg=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return W.creatorEndscreenHideButtonContainer?T.return():_.Y(T,W.JSC$20306_watchApi.playerApi,2);O=T.yieldResult;W.creatorEndscreenHideButtonContainer=document.createElement("div");_.N9(W.creatorEndscreenHideButtonContainer,!1);O.setCreatorEndscreenHideButton(W.creatorEndscreenHideButtonContainer);b=_.g0(W.creatorEndscreenHideButtonContainer,function(){return _.E(_.gt,{data:W.endscreenHideButton,useOutlinedIcon:!0})});
W.addOnDisposeCallback(function(){b();O.setCreatorEndscreenHideButton(void 0)});
_.aD(T)})},JZg=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20306_watchApi.playerApi,2);O=T.yieldResult;b=function(){W.creatorEndscreenHideButtonContainer&&_.N9(W.creatorEndscreenHideButtonContainer,!0)};
O.addEventListener("endscreenelementshown",b);W.addOnDisposeCallback(function(){O.removeEventListener("endscreenelementshown",b)});
_.aD(T)})},cZ8=function(W){var O=function(){W.creatorEndscreenHideButtonContainer&&_.N9(W.creatorEndscreenHideButtonContainer,!1)},b=W.JSC$20306_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",O),T=W.JSC$20306_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",O);
W.addOnDisposeCallback(function(){W.JSC$20306_watchApi.unsubscribeByKey(b);W.JSC$20306_watchApi.unsubscribeByKey(T)})},FtD=function(W){W.JSC$20306_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(O){var b=_.P(O,D0g);
W.JSC$20306_watchApi.playerApi.then(function(T){T==null||T.setCreatorEndscreenVisibility(!!b.hide)})});
W.addOnDisposeCallback(function(){W.JSC$20306_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.OnU=function(W){_.R8.call(this);this.JSC$20312_watchApi=W;WPN(this)};
_.R(_.OnU,_.R8);var WPN=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20312_watchApi.playerApi,2);O=T.yieldResult;b=function(L){_.uv().dispatch(_.Tc({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:L}}))};
O.addEventListener("onRetroModeChanged",b);W.addOnDisposeCallback(function(){O.removeEventListener("onRetroModeChanged",b)});
_.aD(T)})};var k5=0,Qo=0,sN=0;var in5;in5=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.km=function(W){_.R8.call(this);this.JSC$20325_watchApi=W;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;bn7(this)};
_.R(_.km,_.R8);
var bn7=function(W){var O,b,T;_.I(function(L){if(L.nextAddress==1)return _.Y(L,W.JSC$20325_watchApi.playerApi,2);O=L.yieldResult;if(W.isDisposed())return L.return();W.sessionStorage=_.MQ5("yt-sleep-timer");W.sessionStorage||_.z5(new _.pu("SessionStorage for Sleep Timer is undefined."));((b=W.sessionStorage)==null?void 0:b.get("yt-sleep-timer"))==="true"&&(d01(),(T=W.sessionStorage)==null||T.remove("yt-sleep-timer"),O.syncVolume());jw2(W,O);TUB(W,O);LP9(W,O);_.aD(L)})},jw2=function(W,O){var b=function(w){W.onSleepTimerSettingsChanged(w,
O)},T=function(w){W.onPlayerStateChange(w,O)},L=function(){W.onLoopChange(O)},h=function(){W.onCloseMiniplayer(O)},Z=function(){bt8(O,(0,_.WO)(),heN(O),W.selectedOption==="End of video",O.getPlayerState()!==1)},a=function(){W.onSeekComplete(O)},m=function(){_.sF.cancelJob(Qo);
var w=O.getCurrentTime()>=O.getDuration(),A=W.selectedOption==="End of video"||W.selectedOption==="End of playlist"&&!WLg(W.playlistId);w&&A&&djg(W,O)};
O.addEventListener("onSleepTimerSettingsChanged",b);O.addEventListener("onLoopChange",L);O.addEventListener("onLoopRangeChange",L);O.addEventListener("onStateChange",T);O.addEventListener("onCloseMiniplayer",h);O.addEventListener("onSleepTimerFeatureAvailable",Z);O.addEventListener("SEEK_COMPLETE",a);O.addEventListener("onAdStart",m);W.addOnDisposeCallback(function(){O.removeEventListener("onSleepTimerSettingsChanged",b);O.removeEventListener("onLoopChange",L);O.removeEventListener("onLoopRangeChange",
L);O.removeEventListener("onStateChange",T);O.removeEventListener("onCloseMiniplayer",h);O.removeEventListener("onSleepTimerFeatureAvailable",Z);O.removeEventListener("SEEK_COMPLETE",a);O.removeEventListener("onAdStart",m)})},TUB=function(W,O){var b=W.JSC$20325_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var T=O.getVideoData().video_id,L,h=(L=F29(W.JSC$20325_watchApi))==null?void 0:L.playlistId;
W.pauseAutonavPlayback&&(O.pauseVideo(),O.syncVolume(),W.pauseAutonavPlayback=!1);if(W.selectedOption==="End of video"&&T!==W.videoId)sy(W,O);else{if(W.selectedOption==="End of playlist"){L=WLg(W.playlistId);if(h!==W.playlistId){sy(W,O);break a}L?L&&ha5(W,O):SwD(W,O)}W.videoId=T;W.playlistId=h}}});
W.addOnDisposeCallback(function(){W.JSC$20325_watchApi.unsubscribeByKey(b)})},LP9=function(W,O){var b=_.iq().resolve(_.sZ),T=_.mr(b,_.am8,function(h){h&&W.selectedOption!=="Off"&&sy(W,O)}),L=W.JSC$20325_watchApi.subscribeToActiveChanged(function(h){var Z,a;
return _.I(function(m){if(m.nextAddress==1)return _.Y(m,_.IT().navigationFinishPromise,2);Z=!_.rWn();a=_.iq().resolve(_.xq).isMiniplayerActive();h||!oU(W.selectedOption)||a||Z||sy(W,O);_.aD(m)})},!1);
b=_.mr(b,function(h){return h.entities.playlistLoopStateEntity||{}},function(h){h=h===void 0?{}:h;
var Z=ymZ(W.JSC$20325_watchApi);if(Z){var a;((a=h[Z])==null?void 0:a.state)==="PLAYLIST_LOOP_STATE_ALL"&&oU(W.selectedOption)&&sy(W,O)}});
W.addOnDisposeCallback(T);W.addOnDisposeCallback(b);W.addOnDisposeCallback(L)};
_.km.prototype.onSleepTimerSettingsChanged=function(W,O){switch(W){case "Off":this.selectedOption!=="Off"&&sy(this,O);break;case "End of video":case "End of playlist":ZnZ(this,W,O);break;default:ZnZ(this,W,O,in5.get(W))}};
_.km.prototype.onLoopChange=function(W){(W.getLoopVideo()||W.getLoopRange())&&oU(this.selectedOption)&&sy(this,W)};
_.km.prototype.onCloseMiniplayer=function(W){oU(this.selectedOption)&&sy(this,W)};
var ZnZ=function(W,O,b,T){I$5(W,b);W.selectedOption=O;W.videoId=b.getVideoData().video_id;W.playlistId="";var L;(L=W.sessionStorage)==null||L.set("yt-sleep-timer","true");W.adjustmentsCount++;bt8(b,(0,_.WO)(),heN(b),W.selectedOption==="End of video");if(W.selectedOption==="End of video")SwD(W,b),a$Z(W,b);else if(W.selectedOption==="End of playlist"){a$Z(W,b);var h,Z;W.playlistId=(Z=(h=F29(W.JSC$20325_watchApi))==null?void 0:h.playlistId)!=null?Z:"";WLg(W.playlistId)||SwD(W,b)}else T&&(W.presetFadeSchedulerId=
_.Xg(_.sF,function(){TK5(b,15E3)},T-15E3),W.presetPauseSchedulerId=_.Xg(_.sF,function(){djg(W,b)},T),jI2(b,(0,_.WO)(),T))},djg=function(W,O){if(W.JSC$20325_watchApi.isActive()){var b={dismissDialogEndpoint:{}};
var T={commandExecutorCommand:{commands:[b,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};b={buttonViewModel:{title:_.EO("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:b}}};T={buttonViewModel:{title:_.EO("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:T}}};var L={dialogHeaderViewModel:{headline:{content:_.EO("SLEEP_TIMER_ENDED_TITLE")}}},
h={basicContentViewModel:{paragraphs:[{text:{content:_.EO("SLEEP_TIMER_ENDED_TEXT")}}]}};b={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:L,content:h,footer:{panelFooterViewModel:{primaryButton:b,secondaryButton:T,shouldHideDivider:!0}}}}}}};_.iq().resolve(_.bq).resolveCommand(b,{form:{element:W}})}else d01();mjU(W,!1);YwZ(W,O);O.pauseVideo();_.NN.getInstance().getState()===2&&O.getPlayerState()===5&&(W.pauseAutonavPlayback=!0)},sy=function(W,O){mjU(W,!0);
YwZ(W,O);d01()},YwZ=function(W,O){I$5(W,O);
W.selectedOption="Off";W.videoId="";W.playlistId="";W.adjustmentsCount=0;var b;(b=W.sessionStorage)==null||b.remove("yt-sleep-timer");_.sF.cancelJob(k5);O.resetSleepTimerMenuSettings()},mjU=function(W,O){O={timer_length_adjustment_times_during_session:W.adjustmentsCount-1,
is_session_cancelled:O};switch(W.selectedOption){case "Off":O.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":O.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":O.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:O.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",O.option_duration_in_minutes=in5.get(W.selectedOption)/6E4}_.BZ("sleepTimerSessionFinishEvent",O)};
_.km.prototype.onPlayerStateChange=function(W,O){W===1?bt8(O,(0,_.WO)(),heN(O),this.selectedOption==="End of video"):W===0?(_.sF.cancelJob(Qo),O.setVideoTimeLeft(itk(0,0))):W===2&&_.sF.cancelJob(Qo);this.selectedOption==="End of video"?W===0?djg(this,O):W===2&&LL7(O):this.selectedOption!=="End of playlist"||WLg(this.playlistId)||(W===0?djg(this,O):W===2&&LL7(O))};
_.km.prototype.onSeekComplete=function(W){W.getPlayerState()===2&&bt8(W,(0,_.WO)(),heN(W),this.selectedOption==="End of video",!0)};
_.km.prototype.onCueRangeEnter=function(W,O){W==="sleep-timer-fade-audio"&&TK5(O,(O.getDuration()-O.getProgressState().current)*1E3)};
_.km.prototype.onCueRangeExit=function(W,O){W==="sleep-timer-fade-audio"&&O.getPlayerState()!==0&&LL7(O,!0)};
var SwD=function(W,O){O.addCueRange("sleep-timer-fade-audio",O.getDuration()-15,O.getDuration());O.addEventListener("onCueRangeEnter",function(b){W.onCueRangeEnter(b,O)});
O.addEventListener("onCueRangeExit",function(b){W.onCueRangeExit(b,O)})},ha5=function(W,O){O.removeCueRange("sleep-timer-fade-audio");
O.removeEventListener("onCueRangeEnter",function(b){W.onCueRangeEnter(b,O)});
O.removeEventListener("onCueRangeExit",function(b){W.onCueRangeExit(b,O)})},I$5=function(W,O){oU(W.selectedOption)?ha5(W,O):(_.sF.cancelJob(W.presetPauseSchedulerId),_.sF.cancelJob(W.presetFadeSchedulerId),W.presetPauseSchedulerId=0,W.presetFadeSchedulerId=0);
LL7(O,!0)},a$Z=function(W,O){O.setLoop(!1);
O.setLoopVideo(!1);O.setLoopRange(null);(W=ymZ(W.JSC$20325_watchApi))&&_.iq().resolve(_.sZ).dispatch(_.AI("playlistLoopStateEntity",W,{key:W,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.XcR=function(W){_.R8.call(this);this.JSC$20328_watchApi=W;EMR(this);wcN(this);A2g(this);W=W.getRoot();if(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-grid")W.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.l9Z();_.e("web_watch_log_theater_mode_cookie_state")&&_.Xq.get("wide","0")==="1"&&_.z1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.R(_.XcR,_.R8);var EMR=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20328_watchApi.playerApi,2);O=T.yieldResult;b=function(L){Uj5(W,!!L)};
O.addEventListener("SIZE_CLICKED",b);W.addOnDisposeCallback(function(){O.removeEventListener("SIZE_CLICKED",b)});
_.aD(T)})},wcN=function(W){W.JSC$20328_watchApi.registerActionHandler("yt-toggle-theater-mode",function(O,b){Uj5(W,O,b===void 0?!0:b)});
W.addOnDisposeCallback(function(){W.JSC$20328_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.XcR.prototype.getState=function(){return _.vp(_.uv().getState())};
var Uj5=function(W,O,b){b=b===void 0?!0:b;var T,L,h,Z=_.e("enable_player_resize_transition")&&!!W.JSC$20328_watchApi.getWatchNextResponse()&&!((T=W.JSC$20328_watchApi.getWatchNextResponse())==null?0:(L=T.contents)==null?0:(h=L.twoColumnWatchNextResults)==null?0:h.conversationBar);_.cAB(function(){_.uv().dispatch(_.Tc({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:O}}));_.e("theater_mode_scroll_to_top_killswitch")||W.JSC$20328_watchApi.scrollWatchTo(0,!1);_.y3()&&_.e("external_fullscreen")&&_.Wg(document.documentElement);
A2g(W);b&&_.UT("wide",O?"1":"0",-1);_.jx(W.JSC$20328_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);W.JSC$20328_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:O});O&&_.l9Z()},{shouldWrap:Z})},A2g=function(W){var O;
_.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20328_watchApi.playerApi,2);O=b.yieldResult;O.setSizeStyle(!0,W.getState());_.aD(b)})};var PIN=function(W){_.R8.call(this);var O=this;this.playerApi=W;this.timeToPanelSyncKeyMap={};var b;if(W==null?0:(b=W.isReady)==null?0:b.call(W)){b=_.mr(_.iq().resolve(_.sZ),function(L){return L.entities.timedMarkersListSyncEntity||{}},function(L,h){L=L===void 0?{}:L;
h=h===void 0?{}:h;for(var Z=_.S(Object.keys(h)),a=Z.next();!a.done;a=Z.next())a=a.value,L[a]!==h[a]&&l$B(O,h[a]);h=_.S(Object.keys(L));for(Z=h.next();!Z.done;Z=h.next())Z=Z.value,a=L[Z],O.timeToPanelSyncKeyMap[Z]&&eaB(O,a)});
this.addOnDisposeCallback(b);var T=function(L){O.onCueRangeEnter(L)};
W.addEventListener("onCueRangeEnter",T);this.addOnDisposeCallback(function(){var L;(L=W.removeEventListener)==null||L.call(W,"onCueRangeEnter",T)})}};
_.R(PIN,_.R8);
var eaB=function(W,O){var b,T;if((b=W.playerApi)==null?0:(T=b.isReady)==null?0:T.call(b)){var L;if((b=O==null?void 0:(L=O.timedListData)==null?void 0:L.sections)&&O!=null&&O.key)for(L=_.S(b),b=L.next();!b.done;b=L.next())if(b=b.value,b.timedSyncDataList&&b.sectionId)for(T=0;T<b.timedSyncDataList.length;T++){var h=b.timedSyncDataList[T];h.syncItemId&&W.playerApi.addCueRange(b.sectionId+"_"+O.key+"_"+h.syncItemId,Number(h.videoTimeMs)/1E3,T===b.timedSyncDataList.length-1?0x8000000000000:Number(b.timedSyncDataList[T+
1].videoTimeMs)/1E3)}}},l$B=function(W,O){var b,T;
if((b=W.playerApi)==null?0:(T=b.isReady)==null?0:T.call(b)){var L;if((b=O==null?void 0:(L=O.timedListData)==null?void 0:L.sections)&&O!=null&&O.key)for(L=_.S(b),b=L.next();!b.done;b=L.next())if(b=b.value,b.timedSyncDataList&&b.sectionId){T=_.S(b.timedSyncDataList);for(var h=T.next();!h.done;h=T.next())h=h.value,h.syncItemId&&W.playerApi.removeCueRange(b.sectionId+"_"+O.key+"_"+h.syncItemId)}}};
PIN.prototype.onCueRangeEnter=function(W){for(var O=_.S(Object.keys(this.timeToPanelSyncKeyMap)),b=O.next();!b.done;b=O.next()){b=b.value;var T=_.S(W.split("_"+b+"_")),L=T.next().value;T=T.next().value;if(L&&T){W=_.iq().resolve(_.sZ);O=this.timeToPanelSyncKeyMap[b];var h=_.UDT(W.getState(),O);b=pcg(b,L,T);if(b===-1)break;b={activeSyncId:T,activeItemIndex:b,activeSectionInfo:{sectionIdentifier:L}};h?W.dispatch(_.o4("markersEngagementPanelSyncEntity",O,b)):W.dispatch(_.AI("markersEngagementPanelSyncEntity",
O,Object.assign({},{key:O},b)));break}}};
var pcg=function(W,O,b){var T=_.iq().resolve(_.sZ),L,h;W=(L=wF9(T.getState(),W))==null?void 0:(h=L.timedListData)==null?void 0:h.sections;if(!W)return-1;L=0;h=_.S(W);for(W=h.next();!W.done;W=h.next()){W=W.value;T=W.timedSyncDataList||[];if(W.sectionId===O)return O=T.findIndex(function(Z){return Z.syncItemId===b}),O===-1?O:L+O;
L+=T.length}return-1};_.vM8=function(W){_.R8.call(this);var O=this;this.JSC$20340_watchApi=W;this.unresolvedCommands=[];this.JSC$20340_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(b){Ra8(O,b)});
this.addOnDisposeCallback(function(){O.JSC$20340_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
KP5(this)};
_.R(_.vM8,_.R8);var KP5=function(W){var O;_.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20340_watchApi.playerApi,2);O=b.yieldResult;if(W.isDisposed())return b.return();W.timedSyncObserver=new PIN(O);W.unresolvedCommands.length&&(W.unresolvedCommands.forEach(function(T){return Ra8(W,T)}),W.unresolvedCommands=[]);
_.a8(W,W.timedSyncObserver);_.aD(b)})},Ra8=function(W,O){if(W.timedSyncObserver){var b=_.P(O,zek);
if(b&&b.timedSyncEntityKey&&b.panelSyncEntityKey){W=W.timedSyncObserver;O=b.timedSyncEntityKey;var T=b.panelSyncEntityKey;b=!!b.isEnabled;b=b===void 0?!0:b;var L=_.iq().resolve(_.sZ);L=wF9(L.getState(),O);b?W.timeToPanelSyncKeyMap[O]||(W.timeToPanelSyncKeyMap[O]=T,eaB(W,L)):(delete W.timeToPanelSyncKeyMap[O],l$B(W,L))}}else W.unresolvedCommands.push(O)};var gMk=_.J1(function(W){var O=W.data,b=W.maybeLogSmartSkipClientData,T=_.uy();_.GJ(T,function(){return O().rendererContext},{onTap:function(A,X){X({disableClickTracking:!0})}});
var L=null,h=null,Z=_.e("web_enable_auto_focus_for_timely_action_button"),a=function(){L=document.activeElement},m=function(){O().smartSkipMetadata&&(L=document.activeElement,_.w8N(function(){return h}))},w=function(A){if(O().smartSkipMetadata&&(!A||A.key!=="Enter")){L&&L.isConnected&&(_.w8N(function(){return L}),L=null);
var X;(X=h)==null||X.blur()}};
W=_.XL(function(){b==null||b(!0,O());return!1});
_.iO(T,{visibilityCallback:function(A){if(Z)A?h&&O().smartSkipMetadata&&(m(),document.addEventListener("focusin",a)):(document.removeEventListener("focusin",a),w());else if(A&&_.e("web_ephemeral_actions")){A=_.np(O().rendererContext);var X=Number(O().maxVisibleDurationMilliseconds),l,p=(l=_.P(O().rendererContext,_.A6))==null?void 0:l.label;A&&X&&p&&(l={label:p,command:A,durationMs:X},_.iq().resolve(_.SF).enqueue(l))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.oW(function(){if(Z){var A;if((h=(A=T.value)==null?void 0:A.querySelector("button"))&&O().smartSkipMetadata){var X;(X=T.value)==null||X.addEventListener("keydown",w)}}});
_.so(function(){Z&&(h&&O().smartSkipMetadata&&h.removeEventListener("keydown",w),document.removeEventListener("focusin",a),w())});
return _.E("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:T,"on:click":W},_.E(_.R4,{data:function(){return O().content}},{buttonViewModel:_.DO}))},"ej");var oMD=_.J1(function(W){var O=W.data,b=W.playerApi,T=_.iq().resolve(_.Wyq);W=_.S(_.ln(function(){O()}));
var L=W.next().value,h=W.next().value,Z=function(){return Zt9(O(),L())},a=function(w,A){var X,l,p=(X=_.P(A==null?void 0:A.rendererContext,_.XF))==null?void 0:(l=X.loggingDirectives)==null?void 0:l.trackingParams;
if((A=A==null?void 0:A.smartSkipMetadata)&&A.loggingData&&(l=A.loggingData,A=l.algorithmId,X=l.startMilliseconds,l=l.endMilliseconds,A&&X!==void 0&&l!==void 0)){var K,k;w={smartSkipData:Object.assign({},{versionName:A,startMediaTimeMs:X,endMediaTimeMs:l},w&&{userInteractionMediaTimeMs:(Math.floor(((K=_.ya())==null?void 0:(k=K.getPlayer())==null?void 0:k.getCurrentTime())||0)*1E3).toString()})};K=_.Bb();var r;p&&(r=_.Pi(p));K&&r&&_.Mk(K,r,w)}},m=function(w,A){var X=Zt9(O(),w);
if(X){var l=_.P(X,BC),p;if(p=A)p=b(),X=_.P(X,BC),p=X!=null&&X.smartSkipMetadata?!(p==null?0:p.isSameMarkerTypeVisible((X==null?void 0:X.smartSkipMetadata.markerKey)||"")):!0;if(p){var K,k;(l==null?0:(K=l.smartSkipMetadata)==null?0:(k=K.loggingData)==null?0:k.isCounterfactual)||(a(!1,l),h(w))}else A||L()!==w||h(void 0)}};
_.kb(function(){var w=O().timelyActions;if(w){w=_.S(w);for(var A=w.next();!A.done;A=w.next()){A=_.P(A.value,BC);var X=void 0;(X=A)!=null&&X.cueRangeId&&T.timelyActionsMap.set(A.cueRangeId,m)}_.so(function(){T.timelyActionsMap.clear()})}});
return _.E("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.E(_.R4,{data:Z},{timelyActionViewModel:function(w){return _.E(gMk,{data:w.data,maybeLogSmartSkipClientData:function(){a(!0,_.P(Z(),BC))}})}}))},"fj");_.k47=function(W){_.R8.call(this);this.JSC$20352_watchApi=W;W=_.S(_.wu({},void 0,"pLDp2"));this.timelyActionsOverlay=W.next().value;this.setTimelyActionsOverlay=W.next().value;QwZ(this)};
_.R(_.k47,_.R8);var QwZ=function(W){var O,b,T,L;_.I(function(h){if(h.nextAddress==1)return swZ(W),BUg(W),W.timelyActionsContainer=document.createElement("div"),_.Y(h,W.JSC$20352_watchApi.playerApi,2);O=h.yieldResult;(T=(b=O).insertTimelyActionUi)==null||T.call(b,W.timelyActionsContainer);L=_.g0(W.timelyActionsContainer,function(){return _.E(oMD,{data:W.timelyActionsOverlay,playerApi:O})});
W.addOnDisposeCallback(L);_.aD(h)})},BUg=function(W){var O=W.JSC$20352_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){swZ(W)});
W.addOnDisposeCallback(function(){W.JSC$20352_watchApi.unsubscribeByKey(O)})},swZ=function(W){var O=W.JSC$20352_watchApi.getWatchNextResponse();
if(O){var b,T;if(O=_.P((b=O.playerOverlays)==null?void 0:(T=b.playerOverlayRenderer)==null?void 0:T.timelyActionsOverlayViewModel,CbU)){var L;(L=W.setTimelyActionsOverlay)==null||L.call(W,O)}}};_.Dj7=function(W){_.R8.call(this);this.JSC$20356_watchApi=W;r2k(this)};
_.R(_.Dj7,_.R8);var r2k=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20356_watchApi.playerApi,2);O=T.yieldResult;b=function(L){_.ax.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.P(L,_.FW9)},popupType:"TOAST"}})};
O.addEventListener("onYtShowToast",b);W.addOnDisposeCallback(function(){O.removeEventListener("onYtShowToast",b)});
_.aD(T)})};var xj2,qwU,zag,CI9,Hng,f$g,G48,$j9,V0B;xj2=!1;_.nM5=function(W){_.R8.call(this);this.JSC$20359_watchApi=W;this.fullscreen=this.theater=!1;zag(this);CI9(this);qwU(this)};
_.R(_.nM5,_.R8);qwU=function(W){var O,b,T;_.I(function(L){if(L.nextAddress==1)return _.Y(L,W.JSC$20359_watchApi.playerApi,2);O=L.yieldResult;if(W.isDisposed())return L.return();b=W.JSC$20359_watchApi.getElement("CINEMATICS");if(!b)return L.return();W.JSC$20359_cinematicController=new _.jM(b,O);_.a8(W,W.JSC$20359_cinematicController);_.lT2(W.JSC$20359_cinematicController);f$g(W,_.Z6h());T=W.JSC$20359_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(h){G48(W,h)});
W.addOnDisposeCallback(function(){W.JSC$20359_watchApi.unsubscribeByKey(T)});
Hng(W);G48(W,W.JSC$20359_cinematicController.isAllowed());_.t08(W,W.fullscreen,W.theater);$j9(W);_.aD(L)})};
zag=function(W){var O=W.JSC$20359_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Hng(W)});
W.addOnDisposeCallback(function(){W.JSC$20359_watchApi.unsubscribeByKey(O)})};
CI9=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20359_watchApi.playerApi,2);O=T.yieldResult;b=function(L){f$g(W,L)};
O.addEventListener("cinematicSettingsToggleChange",b);W.addOnDisposeCallback(function(){O.removeEventListener("cinematicSettingsToggleChange",b)});
_.aD(T)})};
Hng=function(W){var O=W.JSC$20359_watchApi.getWatchNextResponse(),b;O=_.P(O==null?void 0:(b=O.pageVisualEffects)==null?void 0:b[0],_.PJ);var T;(T=W.JSC$20359_cinematicController)==null||_.PC7(T,O)};
f$g=function(W,O){var b;(b=W.JSC$20359_cinematicController)==null||_.e2k(b,O);V0B(W)};
G48=function(W,O){var b;_.I(function(T){if(T.nextAddress==1)return _.e("kevlar_watch_cinematics_invisible")&&(O=!1),_.Y(T,W.JSC$20359_watchApi.playerApi,2);b=T.yieldResult;b.updateCinematicSettings(O);V0B(W);_.aD(T)})};
$j9=function(W){var O=_.Xt();if(_.e("kevlar_measure_ambient_mode_idle")&&!O.getFlag(192)&&!xj2){xj2=!0;var b=_.KB(_.sF,function(){_.iq().resolve(_.VQ9).start(1E4)},5E3);
W.addOnDisposeCallback(function(){_.sF.cancelJob(b);_.iq().resolve(_.VQ9).stop()})}};
_.t08=function(W,O,b){W.fullscreen=O;W.theater=b;var T;(T=W.JSC$20359_cinematicController)==null||T.setFullscreen(W.fullscreen,W.theater);if(_.e("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(W.theater||W.fullscreen){var L;(L=W.JSC$20359_cinematicController)==null||_.pAU(L)}else if((W=W.JSC$20359_cinematicController)!=null){var h;(h=W.currentCinematicEffect)==null||h.pause()}};
V0B=function(W){if(_.e("web_cinematic_theater_mode")||_.e("web_cinematic_fullscreen")){var O;W.JSC$20359_watchApi.getRoot().toggleCinematicsActive(!((O=W.JSC$20359_cinematicController)==null||!O.isEnabled()))}};_.J25=function(W){_.R8.call(this);var O=this;this.JSC$20362_watchApi=W;this.commentsReady=!1;this.setCommentsJobId=0;W=_.mr(_.uv(),_.Ks,function(){NUB(O)});
this.addOnDisposeCallback(W);var b=this.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M0P(O)}),T=this.JSC$20362_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){M0P(O)});
this.addOnDisposeCallback(function(){O.JSC$20362_watchApi.unsubscribeByKey(b);O.JSC$20362_watchApi.unsubscribeByKey(T)});
var L=function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&ucN(O,"false")};
this.JSC$20362_watchApi.getRoot().addEventListener("yt-page-data-will-update",L);this.addOnDisposeCallback(function(){O.JSC$20362_watchApi.getRoot().removeEventListener("yt-page-data-will-update",L)});
M0P(this)};
_.R(_.J25,_.R8);var M0P=function(W){W.commentsReady=!1;_.sF.cancelJob(W.setCommentsJobId);W.setCommentsJobId=_.KB(_.sF,function(){NUB(W)},1E3)},NUB=function(W){if(!W.commentsReady){_.Bg("cmi");
_.sF.cancelJob(W.setCommentsJobId);var O,b,T,L,h=(O=W.JSC$20362_watchApi.getWatchNextResponse())==null?void 0:(b=O.contents)==null?void 0:(T=b.twoColumnWatchNextResults)==null?void 0:(L=T.results)==null?void 0:L.results.contents;O=void 0;if(h&&h.length)for(h=_.S(h),b=h.next();!b.done;b=h.next())if(b=b.value,L=T=void 0,((T=b)==null?void 0:(L=T.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section"){_.e("web_watch_provide_undefined_comments")?O=b.itemSectionRenderer:W.JSC$20362_watchApi.provideRenderingData("COMMENTS",
b.itemSectionRenderer);ucN(W,"true");break}_.e("web_watch_provide_undefined_comments")&&W.JSC$20362_watchApi.provideRenderingData("COMMENTS",O);W.commentsReady=!0;W.JSC$20362_watchApi.dispatchEvent("yt-watch-comments-ready")}},ucN=function(W,O){var b;
(b=W.JSC$20362_watchApi.getElement("COMMENTS"))==null||b.setAttribute("canScheduleJobs",O)};_.xm=function(W){_.R8.call(this);var O=this;this.JSC$20365_watchApi=W;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.e("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.e("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.e("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.Lu("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)c2B(this);
else{var b=this.JSC$20365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Bz(O);rh(O)}),T=this.JSC$20365_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D2(O);
rh(O)});
this.JSC$20365_watchApi.getRoot().is==="ytd-watch-grid"&&_.e("swatcheroo_pbs_load_grid")&&(FP9(this),y21(this));this.addOnDisposeCallback(function(){O.JSC$20365_watchApi.unsubscribeByKey(b);O.JSC$20365_watchApi.unsubscribeByKey(T);_.sF.cancelJob(O.provideRichGridJobId)});
Bz(this);D2(this)}};
_.R(_.xm,_.R8);var c2B=function(W){var O=W.JSC$20365_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){W.providePlayerJobId=_.pp(_.sF,function(){Bz(W);rh(W)},W.provideAllDataDelayMs)}),b=W.JSC$20365_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){W.provideWatchNextJobId=_.pp(_.sF,function(){D2(W);
rh(W)},W.provideAllDataDelayMs)}),T=W.JSC$20365_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){W.provideWatchNextJobId=_.pp(_.sF,function(){D2(W);
rh(W)},W.provideAllDataDelayMs)});
W.JSC$20365_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.KB(_.sF,function(){Bz(W);D2(W);rh(W)},100)});
W.JSC$20365_watchApi.addPageDisposeJob(function(){_.sF.cancelJob(W.provideWatchNextJobId);_.sF.cancelJob(W.providePlayerJobId)});
W.addOnDisposeCallback(function(){W.JSC$20365_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");W.JSC$20365_watchApi.unsubscribeByKey(O);W.JSC$20365_watchApi.unsubscribeByKey(b);W.JSC$20365_watchApi.unsubscribeByKey(T);_.sF.cancelJob(W.providePlayerJobId);_.sF.cancelJob(W.provideWatchNextJobId)});
Bz(W);D2(W)},Bz=function(W){var O=W.JSC$20365_watchApi.getPlayerResponse(),b,T,L=(T=O==null?void 0:(b=O.playabilityStatus)==null?void 0:b.messageRenderers)!=null?T:[],h,Z;
O=(Z=O==null?void 0:(h=O.playabilityStatus)==null?void 0:h.messages)!=null?Z:[];h=_.S(O);for(Z=h.next();!Z.done;Z=h.next())L.push({alertRenderer:{text:_.VV(Z.value),type:"WARNING"}});W.JSC$20365_watchApi.provideRenderingData("ALERTS",L)},D2=function(W){var O=[],b,T,L,h=W.JSC$20365_watchApi.getWatchNextResponse(),Z,a,m,w,A=h==null?void 0:(Z=h.contents)==null?void 0:(a=Z.twoColumnWatchNextResults)==null?void 0:(m=a.results)==null?void 0:(w=m.results)==null?void 0:w.contents;
if(A)for(Z=_.S(A),a=Z.next();!a.done;a=Z.next())if(a=a.value,a.videoPrimaryInfoRenderer)var X=a;else if(a.videoSecondaryInfoRenderer){var l=a;w=m=void 0;a=Object.assign({},(m=a.videoSecondaryInfoRenderer)==null?void 0:(w=m.metadataRowContainer)==null?void 0:w.metadataRowContainerRenderer);if(a.rows&&a.collapsedItemCount!==void 0){a.rows=a.rows.slice(0,a.collapsedItemCount).filter(function(Nz){return!!Nz.richMetadataRowRenderer});
a.collapsedItemCount=a.rows.length;var p={metadataRowContainerRenderer:a}}}else if(a.merchandiseShelfRenderer)var K=a;else if(a.ticketShelfRenderer)var k=a;else if(a.expandableMetadataRenderer)var r=a;else if(a.itemSectionRenderer)if(m=a.itemSectionRenderer.contents,w=void 0,W.directlyProvideComments&&((w=a.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section")_.Bg("cmi"),W.JSC$20365_watchApi.provideRenderingData("COMMENTS",a.itemSectionRenderer);else if(m)for(a=_.S(m),m=
a.next();!m.done;m=a.next())if(m=m.value,m.commentsEntryPointHeaderRenderer)var q=m;else if(m.clarificationRenderer||m.infoPanelContainerRenderer||m.infoPanelContentRenderer||m.emergencyOneboxRenderer){O.push(m);var f=f||!!l}else m.limitedStateMessageRenderer?T=m:m.videoMetadataCarouselViewModel&&(L=m);if(_.e("web_watch_merch_in_sd_when_ticket_shelf_present")&&K&&k){var M=K;K=void 0}if(W.provideWatchNextSecondaryResults){var V,jQ,y;W.JSC$20365_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
h==null?void 0:(V=h.contents)==null?void 0:(jQ=V.twoColumnWatchNextResults)==null?void 0:(y=jQ.secondaryResults)==null?void 0:y.secondaryResults)}if(W.JSC$20365_watchApi.getRoot().is==="ytd-watch-grid"){var d8,pE;W.JSC$20365_watchApi.provideRenderingData("LIVE_CHAT",h==null?void 0:(d8=h.contents)==null?void 0:(pE=d8.twoColumnWatchNextResults)==null?void 0:pE.conversationBar)}var Qh,KE,fE,r8;(V=h==null?void 0:(Qh=h.contents)==null?void 0:(KE=Qh.twoColumnWatchNextResults)==null?void 0:(fE=KE.secondaryResults)==
null?void 0:(r8=fE.secondaryResults)==null?void 0:r8.offerModule)&&(V.donationShelfRenderer||V.donationUnavailableRenderer)&&W.JSC$20365_watchApi.getRoot().is!=="ytd-watch-grid"&&(b=V);Qh=W.JSC$20365_watchApi.getPlayerResponse();if(!Qh||!_.Tre(Qh.playabilityStatus,h==null?void 0:h.playerOverlays)){var nE;if(h==null?0:(nE=h.contents)==null?0:nE.singleColumnWatchNextResults){var tX,yh;var Gw=h==null?void 0:(tX=h.contents.singleColumnWatchNextResults.results)==null?void 0:(yh=tX.results)==null?void 0:
yh.contents}else{var KH,h9,I7,T1;nE=!!(A==null?0:(KH=A[0])==null?0:(h9=KH.itemSectionRenderer)==null?0:(I7=h9.contents)==null?0:(T1=I7[0])==null?0:T1.backgroundPromoRenderer);var Y$,aR;KH=!!(h==null?0:(Y$=h.contents)==null?0:(aR=Y$.twoColumnWatchNextResults)==null?0:aR.secondaryResults);nE&&!KH&&(Gw=A)}}A=O[0];Y$=O[1];f&&O.length===1&&(Y$=A,A=void 0);W.JSC$20365_watchApi.provideRenderingData("PRIMARY_INFO",X);W.JSC$20365_watchApi.provideRenderingData("SECONDARY_INFO",l);W.JSC$20365_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
q);W.JSC$20365_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",L);W.JSC$20365_watchApi.provideRenderingData("CLARIFICATION",A);W.JSC$20365_watchApi.provideRenderingData("RICH_METADATA",p);W.JSC$20365_watchApi.provideRenderingData("MERCH_SHELF",K);_.e("web_watch_merch_in_sd_when_ticket_shelf_present")&&W.JSC$20365_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",M);W.JSC$20365_watchApi.provideRenderingData("TICKET_SHELF",k);W.JSC$20365_watchApi.provideRenderingData("LIMITED_STATE",T);W.JSC$20365_watchApi.getRoot().is!==
"ytd-watch-grid"&&W.JSC$20365_watchApi.provideRenderingData("DONATION_SHELF",b);W.JSC$20365_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Gw);W.JSC$20365_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",Y$);W.JSC$20365_watchApi.provideRenderingData("EXPANDABLE_METADATA",r);if(W.swatcherooProvideAllDataOnScheduledJob){var f0,SQ,R7,zw,G1,k$;X=h==null?void 0:(f0=h.contents)==null?void 0:(SQ=f0.twoColumnWatchNextResults)==null?void 0:(R7=SQ.secondaryResults)==null?void 0:(zw=R7.secondaryResults)==
null?void 0:(G1=zw.results)==null?void 0:(k$=G1[0])==null?void 0:k$.richGridRenderer;W.JSC$20365_watchApi.provideRenderingData("RICH_GRID_RENDERER",X)}};
_.xm.prototype.hasCompanionAds=function(W){var O,b;return(b=W==null?void 0:(O=W.adPlacements)==null?void 0:O.some(function(T){var L,h,Z,a;return(T==null?void 0:(L=T.adPlacementRenderer)==null?void 0:(h=L.renderer)==null?void 0:h.actionCompanionAdRenderer)||(T==null?void 0:(Z=T.adPlacementRenderer)==null?void 0:(a=Z.renderer)==null?void 0:a.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?b:!1};
var rh=function(W){if(!_.e("swaterdoo_ps_wn_handle_ks")){W.swatcherooProvideAllDataOnScheduledJob||y21(W,3E3);var O=W.JSC$20365_watchApi.getPlayerResponse(),b,T,L,h,Z,a=(b=W.JSC$20365_watchApi.getWatchNextResponse())==null?void 0:(T=b.contents)==null?void 0:(L=T.twoColumnWatchNextResults)==null?void 0:(h=L.secondaryResults)==null?void 0:(Z=h.secondaryResults)==null?void 0:Z.offerModule;O=W.hasCompanionAds(O);var m,w;b=(a==null?void 0:(m=a.tvfilmOfferModuleRenderer)==null?void 0:m.clientShouldSuppressIfCompanionAdDisplayed)||
(a==null?void 0:(w=a.unlimitedOfferModuleRenderer)==null?void 0:w.suppressIfCompanionAds);m=O&&b;W.JSC$20365_watchApi.getRoot().is==="ytd-watch-grid"&&W.JSC$20365_watchApi.provideRenderingData("OFFER_MODULE",m?void 0:a)}},y21=function(W,O){_.e("swatcheroo_pbs_load_grid")&&(W.provideRichGridJobId&&_.sF.cancelJob(W.provideRichGridJobId),W.provideRichGridJobId=_.pp(_.sF,function(){W.provideRichGridJobId=0;
var b,T,L,h,Z,a,m,w=(b=W.JSC$20365_watchApi.getWatchNextResponse())==null?void 0:(T=b.contents)==null?void 0:(L=T.twoColumnWatchNextResults)==null?void 0:(h=L.secondaryResults)==null?void 0:(Z=h.secondaryResults)==null?void 0:(a=Z.results)==null?void 0:(m=a[0])==null?void 0:m.richGridRenderer;w&&W.JSC$20365_watchApi.provideRenderingData("RICH_GRID_RENDERER",w)},O))},FP9=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20365_watchApi.playerApi,2);O=T.yieldResult;b=function(){W.onPlaybackStart()};
O.addEventListener("onPlaybackStartExternal",b);W.addOnDisposeCallback(function(){O.removeEventListener("onPlaybackStartExternal",b)});
_.aD(T)})};
_.xm.prototype.onPlaybackStart=function(){y21(this)};_.Oik=function(W){_.R8.call(this);var O=this;this.JSC$20375_watchApi=W;W.playerApi.then(function(b){O.player=b});
this.gestures=new _.Sj(this.JSC$20375_watchApi.getRoot(),W.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.P2U(_.uv().getState())&&_.Ks(_.uv().getState())<=0)if(_.RU(_.uv().getState())){var b;(b=O.player)==null||b.toggleFullscreen()}else _.jx(O.JSC$20375_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Wa5(this)};
_.R(_.Oik,_.R8);var Wa5=function(W){var O=_.mr(_.uv(),_.RU,function(b){W.gestures&&W.gestures.update(b)});
W.addOnDisposeCallback(O);O=_.mr(_.uv(),_.Ks,function(b){W.gestures&&(b>0?W.gestures.detach():W.gestures.attach())});
W.addOnDisposeCallback(O)};_.biB=function(W){_.R8.call(this);var O=this;this.JSC$20378_watchApi=W;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(W.subscribeToActiveChanged(function(b){O.onActiveChanged(b)}));
iik(this)};
_.R(_.biB,_.R8);var j9N=function(W){if(_.e("swatcheroo_page_dispose_all_watch_data"))W.pageDisposalDataTypes=Object.values(pI7).filter(function(b){return b!=="PLAYLIST"});
else if(_.e("swatcheroo_page_dispose_rich_grid")){var O;(O=W.pageDisposalDataTypes)==null||O.push("RICH_GRID_RENDERER")}},iik=function(W){_.e("swatcheroo_enable_ghost_cards")&&(j9N(W),W.JSC$20378_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.sF.cancelJob(W.clearDataJobId);
W.clearDataJobId=0}),W.runPageDisposeJob=function(){var O=_.iq().resolve(_.cs).getDestinationPageType()==="watch";
W.clearDataJobId=_.pp(_.sF,W.runClearDataJob,O?0:_.Lu("web_watch_delay_page_dispose_ms",1E4))},W.runClearDataJob=function(){Tzg(W)},W.runOnYtNavigateAwayFinish=function(){W.clearDataJobId&&(_.sF.cancelJob(W.clearDataJobId),W.clearDataJobId=0,Tzg(W))},document.addEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish),W.JSC$20378_watchApi.addPageDisposeJob(W.runPageDisposeJob),W.addOnDisposeCallback(function(){W.JSC$20378_watchApi.removePageDisposeJob(W.runPageDisposeJob);
W.JSC$20378_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",W.runOnYtNavigateAwayFinish)}))},Tzg=function(W){W.pageDisposalDataTypes.forEach(function(O){W.JSC$20378_watchApi.provideRenderingData(O,void 0)});
W.clearDataJobId=0};
_.biB.prototype.onActiveChanged=function(W){W&&((W=document.querySelector("#watch-page-skeleton"))&&_.Xu(W),Lak(this),document.body.removeAttribute("no-y-overflow"),_.qC("IS_SHELL_LOAD")&&_.XpD())};
var Lak=function(W){_.I(function(O){if(O.nextAddress==1)return _.Y(O,W.JSC$20378_watchApi.playerApi,2);_.Ms();_.aD(O)})};var dYR;dYR=_.e("kevlar_watch_while_counterfactual")?0:.25;_.zt=function(W){_.R8.call(this);this.JSC$20381_watchApi=W;this.JSC$20381_watchWhileEnabled=_.e("kevlar_watch_while_v2");this.pipEnabled=_.e("web_enable_pip_on_miniplayer");hr7(this);SD8(this);Zik(this)};
_.R(_.zt,_.R8);var hr7=function(W){W.JSC$20381_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Ia7(W)});
W.addOnDisposeCallback(function(){W.JSC$20381_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},SD8=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20381_watchApi.playerApi,2);O=T.yieldResult;b=function(){Ia7(W)};
O.addEventListener("onCollapseMiniplayer",b);W.addOnDisposeCallback(function(){O.removeEventListener("onCollapseMiniplayer",b)});
_.aD(T)})},Zik=function(W){var O=W.JSC$20381_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&O&&W.JSC$20381_watchWhileEnabled&&(W.playerIntersectionObserver=new IntersectionObserver(function(b){W.handleIntersect(b)},{threshold:[dYR]}),W.playerIntersectionObserver.observe(O),W.addOnDisposeCallback(function(){var b;
(b=W.playerIntersectionObserver)==null||b.disconnect()}))},Ia7=function(W){var O,b,T;
_.I(function(L){if(L.nextAddress==1){O=_.iq().resolve(_.cs);b=O.data;T=_.LP2(b.response,b.playerResponse);_.IT().miniplayerButtonActivation=!0;if(W.pipEnabled)return _.IT().watchPipActivation=!0,L.jumpTo(2);_.iq().resolve(_.xq).collapse();return _.Y(L,_.IT().navigationFinishPromise,2)}if(L.nextAddress!=4)return _.IT().currentEndpoint=T.watchEndpoint||null,_.Y(L,_.iq().resolve(_.xq).activate(W.JSC$20381_watchApi.getElement("PLAYER"),T,b),4);_.IT().userActivation=!0;_.aD(L)})};
_.zt.prototype.handleIntersect=function(W){aak(this,W[W.length-1])};
var aak=function(W,O){W.watchWhileJobId&&_.sF.cancelJob(W.watchWhileJobId);W.watchWhileJobId=_.sF.addLowPriorityJob(function(){var b,T;return _.I(function(L){if(L.nextAddress==1)return W.watchWhileJobId=void 0,b=_.iq().resolve(_.xq),O.intersectionRatio>dYR?b.isMiniplayerActive()?_.Y(L,b.deactivate(),0):L.jumpTo(0):(T=!b.isMiniplayerActive())?_.Y(L,mY5(W),5):L.jumpTo(4);L.nextAddress!=4&&(T=L.yieldResult);if(!T)return L.jumpTo(0);_.IT().watchWhileActivation=!0;return _.Y(L,YD9(W),0)})},100)},mY5=function(W){return _.I(function(O){return O.nextAddress==
1?_.e("kevlar_watch_while_paused")?O.return(!0):_.Y(O,W.isPlayerPlaying(),2):O.return(O.yieldResult)})};
_.zt.prototype.isPlayerPlaying=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20381_watchApi.playerApi,2);O=b.yieldResult;return b.return(O.getPlayerStateObject().isPlaying)})};
var YD9=function(W){var O,b;return _.I(function(T){O=_.iq().resolve(_.cs).data;b=_.LP2(O.response,O.playerResponse);_.IT().currentEndpoint=b.watchEndpoint||null;return _.Y(T,_.iq().resolve(_.xq).activate(W.JSC$20381_watchApi.getElement("PLAYER"),b,O),0)})};_.Af8=function(W){_.R8.call(this);this.JSC$20385_watchApi=W;ELD(this);wJk(this)};
_.R(_.Af8,_.R8);var wJk=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20385_watchApi.playerApi,2);O=T.yieldResult;b=function(L){var h;L.sessionData&&L.sessionData.itct&&(h=L.sessionData.itct);var Z=L.watchEndpoint;if(Z&&L.sessionData&&L.sessionData.autonav)Z=_.gD1(Z,h);else{var a;Z=_.Or(L.videoId,(a=L.listId)!=null?a:void 0,h)}h={endpoint:Z};L.sessionData&&(h.tempData=L.sessionData);W.JSC$20385_watchApi.dispatchEvent("yt-navigate",h)};
O.addEventListener("onPlayVideo",b);W.addOnDisposeCallback(function(){O.removeEventListener("onPlayVideo",b)});
_.aD(T)})},ELD=function(W){var O=function(b){W.onYtNavigate(b)};
W.JSC$20385_watchApi.getRoot().addEventListener("yt-navigate",O);W.addOnDisposeCallback(function(){W.JSC$20385_watchApi.getRoot().removeEventListener("yt-navigate",O)})};
_.Af8.prototype.onYtNavigate=function(W){var O=this,b,T,L,h,Z,a,m,w,A;return _.I(function(X){if(X.nextAddress==1){if(!((b=W.detail)==null?0:(T=b.endpoint)==null?0:T.watchEndpoint))return X.return();L=W.detail.endpoint.watchEndpoint;h=O.JSC$20385_watchApi.getWatchNextResponse();a=_.P((Z=h)==null?void 0:Z.currentVideoEndpoint,_.V3);if(!a)return X.return();if(L.videoId!==a.videoId||L.playlistId&&L.playlistId!==a.playlistId||typeof L.startTimeSeconds!=="number")return X.jumpTo(0);W.stopPropagation();
(m=_.e("kevlar_watch_while_v2")&&!_.e("kevlar_watch_while_counterfactual"))&&_.iq().resolve(_.xq).isMiniplayerActive()||O.JSC$20385_watchApi.scrollWatchTo(0,!0);return _.Y(X,O.JSC$20385_watchApi.playerApi,3)}w=X.yieldResult;A=L.startTimeSeconds;w.seekTo(A,void 0,void 0,void 0,84);w.wakeUpControls();A<w.getDuration()&&w.playVideo();_.aD(X)})};_.UYD=function(W){_.R8.call(this);var O=this;this.JSC$20388_watchApi=W;var b=this.JSC$20388_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){XJg(O)});
this.addOnDisposeCallback(function(){O.JSC$20388_watchApi.unsubscribeByKey(b)});
XJg(this)};
_.R(_.UYD,_.R8);var XJg=function(W){var O=W.JSC$20388_watchApi.getWatchNextResponse();if(O){var b,T=[].concat(_.PG((b=O==null?void 0:O.engagementPanels)!=null?b:[]));T.unshift.apply(T,_.PG(la8(O)));W.JSC$20388_watchApi.provideRenderingData("ENGAGEMENT_PANELS",T)}},erP=function(W){var O,b,T,L=(O=W.engagementPanels)==null?void 0:(b=O.find(function(p){var K;
return((K=p.engagementPanelSectionListRenderer)==null?void 0:K.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(T=b.engagementPanelSectionListRenderer.content)==null?void 0:T.structuredDescriptionContentRenderer,h;
if(_.P(L==null?void 0:(h=L.items)==null?void 0:h.find(function(p){return!!_.P(p,Ox1)}),Ox1))return!0;
var Z,a,m,w;if(W=(((Z=W.contents)==null?void 0:(a=Z.twoColumnWatchNextResults)==null?void 0:(m=a.results)==null?void 0:(w=m.results)==null?void 0:w.contents)||[]).find(function(p){return p.videoPrimaryInfoRenderer})){var A,X,l;
return(((A=W.videoPrimaryInfoRenderer)==null?void 0:(X=A.videoActions)==null?void 0:(l=X.menuRenderer)==null?void 0:l.flexibleItems)||[]).some(function(p){p=_.P(p,_.Nq7);if(!p)return!1;var K,k;p=(K=p.topLevelButton)==null?void 0:(k=K.buttonViewModel)==null?void 0:k.onTap;if(!p)return!1;K=_.xy(p);if(!K)return!1;var r;return((r=_.P(K,_.od))==null?void 0:r.panelIdentifier)==="PAyouchat"})}return!1},la8=function(W){var O=[];
if(!_.e("web_watch_inject_placeholder_fantasy_panel_killswitch")){var b,T,L,h=(b=W.engagementPanels)==null?void 0:(T=b.find(function(a){var m;return((m=a.engagementPanelSectionListRenderer)==null?void 0:m.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(L=T.engagementPanelSectionListRenderer.content)==null?void 0:L.structuredDescriptionContentRenderer,Z;
_.P(h==null?void 0:(Z=h.items)==null?void 0:Z.find(function(a){return!!_.P(a,sIR)}),sIR)&&(b=_.M$2("PAsports_fantasy"),b.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O.push(b))}erP(W)&&(W=_.M$2("PAyouchat"),W.engagementPanelSectionListRenderer.targetId="PAyouchat",W.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",O.push(W));
return O};_.pJ1=function(W){_.R8.call(this);this.JSC$20391_watchApi=W;Pak(this)};
_.R(_.pJ1,_.R8);var Pak=function(W){W.JSC$20391_watchApi.registerActionHandler("yt-loop-command",function(O){Rrg(W,O)});
W.JSC$20391_watchApi.registerActionHandler("yt-repeat-chapter-command",function(O){Ka7(W,O)});
W.addOnDisposeCallback(function(){W.JSC$20391_watchApi.unregisterActionHandler("yt-loop-command");W.JSC$20391_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},Rrg=function(W,O){var b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20391_watchApi.playerApi,2);b=T.yieldResult;_.P(O,rJ1).loop?(b.setLoopRange({startTimeMs:Number(_.P(O,rJ1).startTimeMs),endTimeMs:Number(_.P(O,rJ1).endTimeMs),postId:_.P(O,rJ1).postId,type:"clips"}),b.playVideo()):b.setLoopRange(null);_.aD(T)})},Ka7=function(W,O){var b,T;
_.I(function(L){if(L.nextAddress==1)return _.Y(L,W.JSC$20391_watchApi.playerApi,2);b=L.yieldResult;T=_.P(O,qbN).repeat;T==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(b.setLoopRange({startTimeMs:Number(_.P(O,qbN).startTimeMs),endTimeMs:Number(_.P(O,qbN).endTimeMs),type:"repeatChapter"}),b.playVideo()):T==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&b.setLoopRange(null);_.aD(L)})};_.gL9=function(W){_.R8.call(this);this.JSC$20396_watchApi=W;vL8(this)};
_.R(_.gL9,_.R8);var vL8=function(W){W.JSC$20396_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(O){oLN(W,O)});
W.addOnDisposeCallback(function(){W.JSC$20396_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},oLN=function(W,O){var b,T,L,h,Z,a,m,w,A,X,l;
_.I(function(p){if(p.nextAddress==1)return _.Y(p,W.JSC$20396_watchApi.playerApi,2);b=p.yieldResult;if(h=(L=(T=_.P(O,nKZ))==null?void 0:T.highlightedMenuItemKey)!=null?L:"")(a=(Z=b).highlightSettingsMenuItem)==null||a.call(Z,h);if(A=(w=(m=_.P(O,nKZ))==null?void 0:m.openMenuItemKey)!=null?w:"")(l=(X=b).openSettingsMenuItem)==null||l.call(X,A);_.aD(p)})};var Q91=_.Z5("/youtube/app/watch/player_state","playerStateEntity");_.s9N=function(W){_.R8.call(this);this.JSC$20399_watchApi=W;k65(this)};
_.R(_.s9N,_.R8);var Bzg=function(W){switch(W){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"}},k65=function(W){var O,b;
_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20399_watchApi.playerApi,2);O=T.yieldResult;b=function(L){W.onPlayerStateChange(L)};
O.addEventListener("onStateChange",b);W.addOnDisposeCallback(function(){O.removeEventListener("onStateChange",b)});
_.aD(T)})};
_.s9N.prototype.onPlayerStateChange=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,O.JSC$20399_watchApi.playerApi,2);b=L.yieldResult;T=b.getVideoData().video_id;_.$I().dispatch(_.AI("playerStateEntity",Q91,{key:Q91,playerState:Bzg(W),videoId:T}));_.aD(L)})};_.rfk=function(W){_.R8.call(this);var O=this;this.JSC$20403_watchApi=W;_.iq().resolve(_.kP).setPlayer(this.JSC$20403_watchApi.getElement("PLAYER"));W=this.JSC$20403_watchApi.subscribeToActiveChanged(function(b){O.onActiveChanged(b)});
this.addOnDisposeCallback(W)};
_.R(_.rfk,_.R8);_.rfk.prototype.onActiveChanged=function(W){var O=this,b=_.iq().resolve(_.kP),T=function(){DYg(O)};
W?(W=this.JSC$20403_watchApi.getElement("PLAYLIST_PANEL"))?(b.setPlaylistComponent(W),b.addEventListener("yt-playlist-data-updated",T),this.addOnDisposeCallback(function(){b.removeEventListener("yt-playlist-data-updated",T)}),DYg(this)):_.HU(Error("jm")):(b.removeEventListener("yt-playlist-data-updated",T),b.cancelVideoSkip())};
var DYg=function(W){var O=_.iq().resolve(_.kP);W.JSC$20403_watchApi.provideRenderingData("PLAYLIST",O.getPlaylistData())};_.Co=function(W){_.R8.call(this);var O=this;this.JSC$20406_watchApi=W;this.onPageScroll=function(){O.scrollThrottle.fire();O.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.JI(this.onThrottledScroll,200,this);_.a8(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.JI(this.onMastheadThrottledScroll,50,this);_.a8(this,this.mastheadScrollThrottle);this.animation=new _.BY(function(b){O.JSC$20406_watchApi.getRoot().setScrollTop(b)});
W=_.mr(_.uv(),_.RU,function(){xY1(O)});
this.addOnDisposeCallback(W);zrD(this);CaB(this);this.onThrottledScroll()};
_.R(_.Co,_.R8);
var xY1=function(W){var O=W.JSC$20406_watchApi.getRoot();!W.pageScrollElement&&O.pageScrollElement?(W.pageScrollElement=O.pageScrollElement,O.pageScrollElement.addEventListener("scroll",W.onPageScroll),W.addOnDisposeCallback(function(){W.pageScrollElement&&W.pageScrollElement.removeEventListener("scroll",W.onPageScroll)})):W.pageScrollElement&&!O.pageScrollElement&&(W.pageScrollElement.removeEventListener("scroll",W.onPageScroll),W.pageScrollElement=void 0)},zrD=function(W){window.addEventListener("scroll",W.onPageScroll);
W.addOnDisposeCallback(function(){window.removeEventListener("scroll",W.onPageScroll)})},CaB=function(W){W.JSC$20406_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(O){a:{var b;
if(b=W.JSC$20406_watchApi.getRoot().contains(O)&&!W.animation.isAnimating()){b=O.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var T,L,h=(O==null?void 0:(T=O.parentElement)==null?void 0:(L=T.parentElement)==null?void 0:L.id)==="fixed-secondary";b=!(b&&h)}if(b){if(_.e("kevlar_watch_scroll_manager_absolute_offset_killswitch"))T=O.offsetTop;else for(T=0,L=O;L!==null;)T+=L.offsetTop,T-=L.scrollTop,L=L.offsetParent;L=T;T=L-24;O=L+O.offsetHeight+24;L=W.JSC$20406_watchApi.getRoot().getPageScrollingElement();
b=W.JSC$20406_watchApi.getRoot().getScrollTop();h=b+L.clientHeight-56;if(T<b+56)O=T-56;else if(O>h)O-=L.clientHeight;else break a;W.scrollWatchTo(Math.max(0,O),!0)}}});
W.addOnDisposeCallback(function(){W.JSC$20406_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.Co.prototype.onThrottledScroll=function(){var W=_.uv(),O=W.dispatch,b=this.JSC$20406_watchApi.getRoot().getScrollTop();O.call(W,_.Tc({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:b}}))};
_.Co.prototype.onMastheadThrottledScroll=function(){this.JSC$20406_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20406_watchApi.getRoot().getScrollTop())};
_.Co.prototype.scrollWatchTo=function(W,O){(O===void 0?0:O)?this.animation.start(this.JSC$20406_watchApi.getRoot().getScrollTop(),Math.max(0,W),500):this.JSC$20406_watchApi.getRoot().setScrollTop(W)};_.fag=function(W){_.R8.call(this);var O=this;this.JSC$20409_watchApi=W;var b=this.JSC$20409_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qD8(O)}),T=this.JSC$20409_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){nLg(O)});
this.addOnDisposeCallback(function(){O.JSC$20409_watchApi.unsubscribeByKey(b);O.JSC$20409_watchApi.unsubscribeByKey(T)});
qD8(this);nLg(this)};
_.R(_.fag,_.R8);
var qD8=function(W){var O,b,T,L=(T=(O=W.JSC$20409_watchApi.getPlayerResponse())==null?void 0:(b=O.videoDetails)==null?void 0:b.title)!=null?T:"";W.JSC$20409_watchApi.dispatchEvent("yt-update-title",L)},nLg=function(W){var O,b,T,L,h,Z,a,m=(a=((Z=(O=W.JSC$20409_watchApi.getWatchNextResponse())==null?void 0:(b=O.contents)==null?void 0:(T=b.twoColumnWatchNextResults)==null?void 0:(L=T.results)==null?void 0:(h=L.results)==null?void 0:h.contents)!=null?Z:[]).find(function(w){return!!w.videoPrimaryInfoRenderer}))==null?
void 0:a.videoPrimaryInfoRenderer;
(O=_.NX(m==null?void 0:m.title))&&W.JSC$20409_watchApi.dispatchEvent("yt-update-title",O)};_.Hi5=function(W){_.R8.call(this);this.JSC$20412_watchApi=W;G67(this)};
_.R(_.Hi5,_.R8);var G67=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$20412_watchApi.playerApi,2);O=T.yieldResult;b=function(){W.onYpcContentRequest()};
O.addEventListener("onYpcContentRequest",b);W.addOnDisposeCallback(function(){O.removeEventListener("onYpcContentRequest",b)});
_.aD(T)})};
_.Hi5.prototype.onYpcContentRequest=function(){var W,O,b,T,L,h=(W=this.JSC$20412_watchApi.getWatchNextResponse())==null?void 0:(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.secondaryResults)==null?void 0:(L=T.secondaryResults)==null?void 0:L.offerModule,Z,a,m,w;W=(w=(m=(a=(Z=h==null?void 0:h.episodeOfferModuleRenderer)!=null?Z:h==null?void 0:h.movieOfferModuleRenderer)!=null?a:h==null?void 0:h.unlimitedOfferModuleRenderer)!=null?m:h==null?void 0:h.liveOfferModuleRenderer)!=
null?w:h==null?void 0:h.tvfilmOfferModuleRenderer;var A,X,l;h=(l=h==null?void 0:(A=h.tvfilmOfferModuleRenderer)==null?void 0:(X=A.actionButtons)==null?void 0:X.length)!=null?l:0;X=Math.max(h-1,0);var p,K,k;A=(k=W==null?void 0:(p=W.offerButton)==null?void 0:p.buttonRenderer)!=null?k:W==null?void 0:(K=W.actionButtons)==null?void 0:K[X].buttonRenderer;var r,q;(p=(q=(r=A==null?void 0:A.navigationEndpoint)!=null?r:A==null?void 0:A.serviceEndpoint)!=null?q:A==null?void 0:A.command)&&_.ax.instance.resolveCommand(p)};
}catch(e){_._DumpException(e)}
try{
var A_g,YC5,akg;_.mCZ=function(){var W=_.PQ.clone(Ik7),O;return(new _.mJ(function(b,T){W.onSuccess=function(L){_.ksP(L)?b(new akg(L)):T(new _.Vi("Request failed, status="+_.SJ(L),"net.badstatus",L))};
W.onError=function(L){T(new _.Vi("Unknown request error","net.unknown",L))};
W.onTimeout=function(L){T(new _.Vi("Request timed out","net.timeout",L))};
O=_.Yv("//googleads.g.doubleclick.net/pagead/id",W)})).thenCatch(function(b){if(b instanceof _.$N){var T;
(T=O)==null||T.abort()}return _.vi(b)})};
_.EXD=function(W){a:{var O="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(O="EMBEDDED_PLAYER_MODE_PFL");var b=W.raw_embedded_player_response;if(!b&&(W=W.embedded_player_response))try{b=JSON.parse(W)}catch(L){break a}if(b)b:for(var T in YC5)if(YC5[T]==b.embeddedPlayerMode){O=YC5[T];break b}}return O==="EMBEDDED_PLAYER_MODE_PFL"};
_.wUR=function(){if(_.e("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("of");if(!_.JYX())return Error("pf");var W=_.Cv("PLAYER_VARS",{});if(_.PQ.get(W,"privembed",!1)=="1")return Error("qf");if(_.EXD(W))return Error("rf")};
A_g=function(W){switch(W){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:_.SB(W,"unknown result type")}};
_.XU8=function(W,O,b){O=_.uXX[O];b={detected:W===0,source:O.nUv,detectionResult:A_g(W),contentCpn:b};_.BZ("biscottiBasedDetection",b);_.Ron.increment(O.nUv,W);O.a8I!==void 0&&_.zT("CATSTAT",_.NBO(W,O))};
_.NW=function(W,O){var b={};b.key=W;b.value=O;return _.od2().then(function(T){return new Promise(function(L,h){try{var Z=T.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(b);Z.onsuccess=function(){L()};
Z.onerror=function(){h()}}catch(a){h(a)}})})};
_.lk7=function(){var W=_.Lu("user_engagement_experiments_rate_limit_ms"),O=UCU.get("last-user-engagement-exp-trigger-timestamp");return!O||(0,_.WO)()>=O+W?(UCU.set("last-user-engagement-exp-trigger-timestamp",(0,_.WO)()),!0):!1};
_.MW=function(W,O,b,T,L){O=O===void 0?null:O;b=b===void 0?null:b;T=T===void 0?null:T;L=L===void 0?null:L;W={youThereEventType:W};b&&(W.lactThresholdMs=b.lactThresholdMs,W.mediaPosSec=b.promptDelaySec,W.lactServerRequestMs=b.lactServerRequestMs,W.triggerReason=b.triggerReason);L!=null&&(W.renderingMediaPosSec=Math.round(L));O||(O=_.Bb());O&&(W.clientScreenNonce=O);T&&(W.clientPlaybackNonce=T);_.BZ("youThere",W)};
YC5={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"};akg=function(W){this.xhr=W};
_.Vi=function(W,O,b){_.W2.call(this,W+", errorCode="+O);this.errorCode=O;this.xhr=b;this.name="PromiseAjaxError"};
_.R(_.Vi,_.W2);var Ik7={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var UCU=new _.z7("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.NCU=function(W){return _.Tc({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:W})};
}catch(e){_._DumpException(e)}
try{
var Gt,WSN,iX8,bXU,jog,TxU,dxZ,Ew1,wf7,Ah2,LSP,OX7,IgP,ZXD,lg1;_.yfU=function(){var W=window.location.hash;W.charAt(0)==="#"&&(W=W.charAt(1)==="!"?W.substring(2):W.substring(1));return _.VP(W)};
Gt=function(W,O,b){var T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,O(),2);T=L.yieldResult;b(T,W);_.aD(L)})};
WSN=function(){return _.I(function(W){return W.nextAddress==1?_.Y(W,(_.wUR()!==void 0?_.vi(Error("sf")):_.mCZ()).then(function(){return 1},function(O){if(O.message==="Biscotti id is disabled")return 3;
_.z5("Failed fetching bid");return 0}),2):W.return(W.yieldResult)})};
iX8=function(){var W=_.yV("cGxheWVyIzV1YmhneG1uZGM0aHl0LWhhdmVuLWVtYmVkLQ=="),O=_.yV("bWUjd2l5bTc4OTJ4NjgzaWZyYQ==");return document.querySelector(O+OX7+W)?0:1};
bXU=function(){return _.reX(_.qg)};
jog=function(){return _.Dh1()===0?0:_.xhX()};
TxU=function(){return _.fzq(_.im8([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"]]]))};
dxZ=function(){return _.Kg1(LSP)};
_.hyg=function(W){_.I(function(O){switch(O.nextAddress){case 1:return _.Y(O,Gt("b.f_",WSN,W),2);case 2:return _.Y(O,Gt("j.s_",_.p0X,W),3);case 3:return _.Y(O,Gt("r.s_",_.lzX,W),4);case 4:return _.Y(O,Gt("e.h_",dxZ,W),5);case 5:if(!_.e("ab_det_sc_inj")){O.jumpTo(6);break}return _.Y(O,Gt("s.i_",_.sLX,W),6);case 6:if(_.e("ab_deg_unex_thr")){O.jumpTo(8);break}return _.Y(O,Gt("a.o_",_.QLX,W),8);case 8:if(_.e("ks_get_o_pp")){O.jumpTo(10);break}return _.Y(O,Gt("g.o_",_.o_O,W),10);case 10:if(_.e("ks_det_gpbl")){O.jumpTo(12);
break}return _.Y(O,Gt("p.i_",_.g_O,W),12);case 12:return _.Y(O,Gt("f.i_",_.SZe,W),14);case 14:return _.Y(O,Gt("a.b_",_.X0E,W),15);case 15:return _.Y(O,Gt("p.m_",_.azq,W),16);case 16:if(!_.e("ab_det_el_h_v2")){O.jumpTo(17);break}return _.Y(O,Gt("n.h_",TxU,W),17);case 17:return _.Y(O,Gt("o.p_",bXU,W),19);case 19:return _.Y(O,Gt("e.i_",iX8,W),20);case 20:if(_.e("ab_det_apm"))return _.Y(O,Gt("o.a_",jog,W),0);O.jumpTo(0)}})};
_.SE5=function(W,O){W={videoId:W};O&&(W.playlistId=O);return W};
_.ag7=function(){if(_.JYX()){var W=_.Cv("PLAYER_VARS",{});if(_.PQ.get(W,"privembed",!1)!="1"&&!_.EXD(W)){var O=function(){ZXD=!0;"google_ad_status"in window?_.zT("DCLKSTAT",1):_.zT("DCLKSTAT",2)};
try{_.qp("//static.doubleclick.net/instream/ad_status.js",O)}catch(b){}IgP.push(_.sF.addLowPriorityJob(function(){if(!(ZXD||"google_ad_status"in window)){try{_.GyE("//static.doubleclick.net/instream/ad_status.js",O)}catch(b){}ZXD=!0;_.zT("DCLKSTAT",3)}},5E3))}}};
_.Hz=function(W,O,b){b=b===void 0?!1:b;var T=Math.max(W.width,_.bx8);if(_.e("kevlar_watch_feed_big_thumbs")&&W.width>=1550-_.og()&&W.height>=800)T-=_.Sdg;else if(W.width>=_.x5){var L=_.jtZ+_.TRU+_.Dn;_.e("kevlar_watch_feed_big_thumbs")&&(L=_.hJU);T-=L}else T-=_.jtZ;T=Math.min(T,_.LkN);L=240;b&&(L=380);O<.5624||(!_.e("kevlar_watch_flexy_disable_small_window_sizing")&&(W.height<630&&W.width>=657||W.height>=630&&W.width>=_.x5&&W.width<1327)?L=360:!_.e("kevlar_watch_flexy_disable_large_window_sizing")&&
W.height>=630&&W.width>=1327&&(L=480));var h=Math.min(T*O,W.height-(56+_.ixg+_.dO2));h=Math.max(h,L);O<1?T=h/O:W.width>=_.x5&&(T=_.Hz(W,.5625,b).width);return new _.hU(Math.round(T),Math.round(h))};
_.mx2=function(W){var O=0;W.indexOf("h")!=-1&&(W=W.split("h"),O=W[0]*60*60,W=W[1]);W.indexOf("m")!=-1&&(W=W.split("m"),O=W[0]*60+O,W=W[1]);W.indexOf("s")!=-1?(W=W.split("s"),O=W[0]*1+O):O=W*1+O;return O};
_.YE2=function(){_.Lu("service_worker_push_logged_out_prompt_watches")!=-1&&_.u0("WatchCount").then(function(W){W>=100||_.NW("WatchCount",W+1)})};
Ew1=function(W){var O=W.externalVideoId||"";return O?W.isShortsEligible?"https://www.youtube.com/shorts/"+O:"https://www.youtube.com/watch?v="+O:""};
wf7=function(W){var O=[];W.viewCount&&O.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:W.viewCount});W.likeCount&&O.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:W.likeCount});return O};
Ah2=function(W){var O,b,T={"@context":"https://schema.org","@type":"VideoObject",description:_.NX(W.description),duration:"PT"+(W.lengthSeconds||"0")+"S",embedUrl:W.embed?W.embed.iframeUrl:"",name:_.NX(W.title),thumbnailUrl:((O=W.thumbnail)==null?void 0:(b=O.thumbnails)==null?void 0:b.map(function(A){return A&&A.url||""}))||[],
uploadDate:W.publishDate};_.e("mweb_video_schema_id_killswitch")||(T["@id"]=Ew1(W));O=wf7(W);O.length&&(T.interactionStatistic=O);W.category&&(T.genre=W.category);W.ownerChannelName&&(T.author=W.ownerChannelName);W.liveBroadcastDetails&&(T.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:W.liveBroadcastDetails.startTimestamp,endDate:W.liveBroadcastDetails.endTimestamp}]);if(W.learningResource){W=W.learningResource;T["@type"]=["VideoObject","LearningResource"];var L;if((L=W.learningResourceType)==
null?0:L.length)T.learningResourceType=W.learningResourceType[0];var h;if((h=W.educationalAlignment)==null?0:h.length)T.educationalAlignment={"@type":"AlignmentObject",targetName:W.educationalAlignment[0]};var Z;if((Z=W.educationalLevel)==null?0:Z.length){L=W.educationalLevel[0];var a;if((a=W.educationalLevelCountry)==null?0:a.length)L+=" ("+W.educationalLevelCountry+")";T.educationalLevel=L}var m,w;if(((m=W.learningResourceType)==null?0:m.length)&&W.learningResourceType[0]==="Problem walkthrough"&&
((w=W.problemDescriptions)==null?0:w.length))for(T.hasPart=[],a=_.S(W.problemDescriptions),m=a.next();!m.done;m=a.next())L=m.value,m=L.problemDescriptionText,w=L.startOffset,L=L.url,m&&w!==void 0&&L&&T.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:m,text:m,startOffset:w,url:L})}return T};
_.Xf8=function(W){return _.Tc({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:W}})};
LSP=[[["I216c3E4bWJudXZ0YnByaW1hcnk=",null],[null,["YXR5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciNxYWp1OGJ5Zm14","emM4MXQ3cnN0eWxlLXNjb3BlI3U4eWE="]],["bGp5OXRtYXN0aGVhZC1hZCNhenJ5MWYx",["ZGVyZXIjZWo4ZXkzNnFydHF2eXRkLXJpY2gtZ3JpZC1yZW4="]],[null,["ZGVyZXIjd2QwenNtZHMwNjJteXRkLXJpY2gtZ3JpZC1yZW4=","aGJ4dWdzdHlsZS1zY29wZSN0dG43cTNu"]],[null,["ZXIjcWR6MW9tNWwwemVqeXRkLWJhbm5lci1wcm9tby1yZW5kZXI=","a2ptcWNzdHlsZS1zY29wZSNyZ2VnMmM4"]],[null,["ZW5kZXJlciNmazU3OXJpY2kwMjV5dGQtYWQtc2xvdC1y"]]],[["b2lla3k4dnBsYXllci1hZHMjY21wNDQ=",
null]]];OX7="#";IgP=[];ZXD=!1;_.Ux2=["engagement-panel-ads"];lg1=new _.J("updateSentimentBarStateCommand");_.ey2=new _.J("showSurveyCommand");_.ti=new _.J("changeMarkersVisibilityCommand");var pfN,Ryg,ow2,gwB,vwR,$m;_.PYB=function(W,O){this.playerProvider_=W;this.actionSenderElement_=O;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.PYB.prototype.reset=function(){pfN(this);this.isUserPredictedAbsent_=!1};
pfN=function(W,O){!W.youThereData_||W.showWarningJob_||O!==void 0&&O||(_.MW("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Bb(),W.youThereData_,W.clientPlaybackNonce_),_.re());_.sF.cancelJob(W.showWarningJob_);W.showWarningJob_=0;_.sF.cancelJob(W.showBlockingWarningJob_);W.showBlockingWarningJob_=0;_.sF.cancelJob(W.pausePlaybackJob_);W.pausePlaybackJob_=0;W.youThereData_=null;W.clientPlaybackNonce_=void 0;W.inYouThereFlow_=!1};
_.KSP=function(W,O){var b,T,L;_.I(function(h){if(h.nextAddress==1)return W.reset(),_.Y(h,W.playerProvider_().getPlayerPromise(),2);b=h.yieldResult;W.clientPlaybackNonce_=b.getVideoData().cpn;W.youThereData_=O.configData.youThereData;if(!W.youThereData_)return h.return();if(W.youThereData_.triggerReason&&W.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.lk7())return _.MW("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Bb(),W.youThereData_,W.clientPlaybackNonce_),h.return();T=W.youThereData_.promptDelaySec;
L=b.getCurrentTime();W.showWarningJob_=_.sF.addLowPriorityJob(function(){return _.I(function(Z){W.showWarningJob_=0;return _.Y(Z,Ryg(W),0)})},Math.max(T-L,0)*1E3);
_.aD(h)})};
Ryg=function(W){var O,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return _.Y(a,W.playerProvider_().getPlayerPromise(),2);if(a.nextAddress!=3)return O=a.yieldResult,b=O.getCurrentTime(),_.Y(a,vwR(W),3);T=a.yieldResult;if(!T||!W.youThereData_)return a.return();if(_.e("check_user_lact_at_prompt_shown_time_on_web")&&(L=parseInt(W.youThereData_.lactThresholdMs,10),_.by()<L))return _.MW("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Bb(),W.youThereData_,W.clientPlaybackNonce_),a.return();if(W.youThereData_.playbackPauseDelayMs<=
0)return gwB(W),a.return();!_.e("external_fullscreen")&&(h=_.y3())&&(W.ignoreFullscreenExitUserActivity_=!0,_.sF.addLowPriorityJob(function(){W.ignoreFullscreenExitUserActivity_=!1},2E3),_.Wg(h));
W.youThereData_.showToastWarningPrompt&&($m(W,W.youThereData_.showWarningActions),W.inYouThereFlow_=!0,_.MW("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Bb(),W.youThereData_,W.clientPlaybackNonce_,b),_.MW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Bb(),W.youThereData_,W.clientPlaybackNonce_,b));Z=0;W.youThereData_.blockingPromptDelayMs&&(Z=W.youThereData_.blockingPromptDelayMs);W.showBlockingWarningJob_=_.sF.addLowPriorityJob(function(){return _.I(function(m){W.showBlockingWarningJob_=0;return _.Y(m,
ow2(W),0)})},Z);
_.aD(a)})};
ow2=function(W){var O,b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,vwR(W),2);O=L.yieldResult;if(!W.youThereData_)return L.return();O&&(W.youThereData_.showBlockingWarningAction&&(_.MW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Bb(),W.youThereData_,W.clientPlaybackNonce_),(b=_.P(W.youThereData_.showBlockingWarningAction,_.I5))?$m(W,b.commands):$m(W,[W.youThereData_.showBlockingWarningAction]),W.inYouThereFlow_=!0),T=W.youThereData_.playbackPauseDelayMs,W.pausePlaybackJob_=
_.sF.addLowPriorityJob(function(){return _.I(function(h){W.pausePlaybackJob_=0;return _.Y(h,gwB(W),0)})},T));
_.aD(L)})};
gwB=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,vwR(W),2);O=b.yieldResult;if(!W.youThereData_)return b.return();O&&(_.MW("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Bb(),W.youThereData_,W.clientPlaybackNonce_),$m(W,W.youThereData_.showPausedActions),W.inYouThereFlow_=!0);_.aD(b)})};
_.PYB.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var W=_.P(this.youThereData_.userActiveDuringFlowAction,_.I5);W?$m(this,W.commands):$m(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.MW("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Bb(),this.youThereData_,this.clientPlaybackNonce_),_.re());pfN(this,!0)}_.QoR(this,!1)};
_.kvR=function(W){_.MW("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Bb(),W.youThereData_,W.clientPlaybackNonce_)};
vwR=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.playerProvider_().getPlayerPromise(),2);O=T.yieldResult;b=O.getPlayerState();return T.return(b==-1||b==1||b==3)})};
_.QoR=function(W,O){var b;_.I(function(T){if(T.nextAddress==1){if(W.isUserPredictedAbsent_==O)return T.jumpTo(0);W.isUserPredictedAbsent_=O;return _.Y(T,W.playerProvider_().getPlayerPromise(),3)}b=T.yieldResult;b.setUserEngagement(O);O&&_.MW("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Bb(),W.youThereData_,W.clientPlaybackNonce_);_.aD(T)})};
$m=function(W,O){if(_.e("handle_service_request_actions")||_.e("kevlar_youthere_service_endpoint_actions_killswitch"))_.Sx(W.actionSenderElement_,O,W.actionSenderElement_);else{O=_.S(O);for(var b=O.next();!b.done;b=O.next())b=b.value,b.commandMetadata&&b.commandMetadata.webCommandMetadata&&b.commandMetadata.webCommandMetadata.sendPost?_.da(W.actionSenderElement_,[b]):_.Sx(W.actionSenderElement_,[b],W.actionSenderElement_)}};var so1;var BxB;var Vl=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return W};
_.R(Vl,_.n);Vl.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var W=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(W=this.data.percentIfLiked||0,this.activated=!0):(W=this.data.percentIfIndifferent||0,this.activated=!1);_.Q(this.hostElement).querySelector("#like-bar").style.width=W+"%"}};
Vl.prototype.handleUpdateSentimentBarStateCommand=function(W){this.data&&this.set("data.likeStatus",_.P(W,lg1).likeStatus)};
Vl.prototype.observeLikeStatus=Vl.prototype.observeLikeStatus;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Vl.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vl.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Vl.prototype,"activated",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Vl.prototype,"systemIcons",void 0);_.t([_.m5("data.likeStatus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vl.prototype,"observeLikeStatus",null);Vl=_.t([_.G({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Vl);
_.H(Vl,"ytd-sentiment-bar-renderer",function(){if(BxB!==void 0)return BxB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BxB=W},{mode:1});var rhR;var N4=function(){var W=_.n.apply(this,arguments)||this;W.small=!0;return W};
_.R(N4,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],N4.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],N4.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],N4.prototype,"small",void 0);N4=_.t([_.G({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],N4);
_.H(N4,"ytd-video-view-count-renderer",function(){if(rhR!==void 0)return rhR;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rhR=W},{mode:_.Lb("kevlar_poly_si_batch_j080")?1:2});var M4=function(){var W=_.n.apply(this,arguments)||this;W.infoFormattedStrings=[];W.wrapVideoActions=_.e("kevar_watch_wrap_video_actions");W.hideSentimentBar=_.e("kevlar_watch_hide_sentiment_bar");W.actionMap={};return W};
_.R(M4,_.n);_.d=M4.prototype;_.d.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.e("web_modern_buttons"),forceIconButton:!_.e("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.d.dataChanged=function(){_.e("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.d.computeInfoFormattedStrings=function(W){if(!W)return[];var O=[];W.dateText&&O.push(W.dateText);W.stationName&&O.push(W.stationName);W.rating&&O.push(W.rating);W.startEndTimeTemplate&&W.startTimeUtcMillis&&W.endTimeUtcMillis&&O.push(_.VV(_.ed8(_.NX(W.startEndTimeTemplate),Number(W.startTimeUtcMillis),Number(W.endTimeUtcMillis))));W.upNextProgramText&&O.push(W.upNextProgramText);return O};
_.d.scheduleInitialUpdatedMetadataRequest=function(){var W,O=(W=this.data)==null?void 0:W.updatedMetadataEndpoint;if(O){var b;W=Number((b=_.P(O,_.g2q))==null?void 0:b.initialDelayMs);b=isNaN(W)?250:W;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),b)}};
_.d.setSentimentBarWidth=function(){var W=this;_.My(this,function(){var O=_.Q(W.hostElement).querySelector("ytd-menu-renderer");if(O){O=O.topLevelButtons;for(var b=0,T=0;T<O.length;T++){var L=O[T],h=W.get("toggleButtonSupportedData.toggleButtonIdData.id",L.data);if(h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||h==="TOGGLE_BUTTON_ID_TYPE_LIKE")b+=L.clientWidth+8;else break}b&&(W.sentiment.style.width=b-8+" px")}})};
_.d.fetchUpdatedMetadata=function(W){var O;W&&(O={continuation:W});var b;(W=(b=this.data)==null?void 0:b.updatedMetadataEndpoint)&&_.iq().resolve(_.bq).resolveCommand(W,{form:Object.assign({},O,{element:this.hostElement})})};
_.d.onYtServiceRequestSent=function(W,O){O.endpoint&&_.P(O.endpoint,_.tT)&&(this.hasUpdateSentimentBarStateCommands()&&!_.e("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.P(O.endpoint,_.tT).status),this.setSentimentBarWidth())};
_.d.hasUpdateSentimentBarStateCommands=function(){var W,O,b,T,L=(T=(W=this.data)==null?void 0:(O=W.videoActions)==null?void 0:(b=O.menuRenderer)==null?void 0:b.topLevelButtons)!=null?T:[];W=_.S(L);for(O=W.next();!O.done;O=W.next()){O=O.value;L=T=b=void 0;var h=(b=O.toggleButtonRenderer)==null?void 0:(T=b.toggleButtonSupportedData)==null?void 0:(L=T.toggleButtonIdData)==null?void 0:L.id;if(h==="TOGGLE_BUTTON_ID_TYPE_LIKE"||h==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){T=b=void 0;O=(T=_.P((b=O.toggleButtonRenderer)==
null?void 0:b.defaultServiceEndpoint,_.I5))==null?void 0:T.commands;if(!O)break;O=_.S(O);for(b=O.next();!b.done;b=O.next())if(_.P(b.value,lg1))return!0}}return!1};
_.d.onYtServiceRequestCompleted=function(W,O){var b;(W=(b=O.data)==null?void 0:b.loggingDirectives)&&_.ll8(_.A4(),W);this.get("continuation.timedContinuationData",O.data)&&this.data&&this.data.updatedMetadataEndpoint&&(O=O.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,O.continuation),O.timeoutMs))};
_.d.computeHasDateText=function(W){return!!W&&!!W.dateText};
_.Jq.Object.defineProperties(M4.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return!((T=(W=this.data)==null?void 0:(O=W.videoActions)==null?void 0:(b=O.menuRenderer)==null?void 0:b.flexibleItems)==null||!T.length)}}});
M4.prototype.onYtServiceRequestCompleted=M4.prototype.onYtServiceRequestCompleted;M4.prototype.onYtServiceRequestSent=M4.prototype.onYtServiceRequestSent;M4.prototype.dataChanged=M4.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],M4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],M4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.uH.YtTaskEmitterBehavior),_.N("design:type",Object)],M4.prototype,"ytTaskEmitterBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],M4.prototype,"data",void 0);_.t([_.C({computed:"computeInfoFormattedStrings(data)"}),_.N("design:type",Array)],M4.prototype,"infoFormattedStrings",void 0);
_.t([_.C({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],M4.prototype,"hasDateText",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],M4.prototype,"wrapVideoActions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],M4.prototype,"hideSentimentBar",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],M4.prototype,"flexMenuEnabled",null);
_.t([_.El("#sentiment"),_.N("design:type",Object)],M4.prototype,"sentiment",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],M4.prototype,"dataChanged",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],M4.prototype,"onYtServiceRequestSent",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],M4.prototype,"onYtServiceRequestCompleted",null);
_.H(M4,"ytd-video-primary-info-renderer",function(){if(so1===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);so1=W}W=so1;return W},{mode:1});var Dx8;var uT=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return W};
_.R(uT,_.n);_.d=uT.prototype;_.d.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"}}}};
_.d.dataChanged=function(){var W;this.descriptionToggled=!((W=this.data)==null||!W.defaultExpanded);var O;this.collapsed=this.descriptionAlwaysCollapsed||!((O=this.data)==null?0:O.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.gd(110509);this.showLessClientVe=_.gd(110510);W=_.Bb();O=_.sk();W&&O&&_.GU(W,O,[this.showMoreClientVe,this.showLessClientVe])};
_.d.onYtExpanderMoreTapped=function(){var W,O=(W=this.data)==null?void 0:W.showMoreCommand;O&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(O);(W=_.Bb())&&this.showMoreClientVe&&_.Vw(W,this.showMoreClientVe)};
_.d.onYtExpanderLessTapped=function(){var W=_.Bb();W&&this.showLessClientVe&&_.Vw(W,this.showLessClientVe);var O;(W=(O=this.data)==null?void 0:O.showLessCommand)&&this.componentBehavior.resolveCommand(W)};
_.d.handleUpdateDateTextAction=function(W){this.data&&this.data.dateText&&this.set("data.dateText",_.P(W,_.JJP).dateText)};
_.d.handleUpdateDescriptionAction=function(W){if(W=_.P(W,_.A6q))W.isEmpty||!W.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.sz(W.description)):this.set("data.description",W.description)};
_.d.onYtChangeEngagementPanelVisibilityAction=function(W){if(_.e("web_structured_description_show_more")||_.e("web_engagement_panel_open_description")){var O,b=(O=_.P(W,_.d$n))==null?void 0:O.targetId,T;W=((T=_.P(W,_.d$n))==null?void 0:T.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";b==="engagement-panel-structured-description"&&W&&(this.descriptionToggled=!0)}};
_.d.updateCollapsedFromBinding=function(W){this.collapsed=W.detail.value};
_.d.updateDescriptionToggledFromBinding=function(W){this.descriptionToggled=W.detail.value};
_.d.updateCanCollapseFromBinding=function(W){this.canCollapse=W.detail.value};
_.Jq.Object.defineProperties(uT.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.metadataRowContainer)==null?void 0:O.metadataRowContainerRenderer;return!!b&&!!b.rows&&b.rows.length>b.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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}}});
uT.prototype.onYtExpanderLessTapped=uT.prototype.onYtExpanderLessTapped;uT.prototype.onYtExpanderMoreTapped=uT.prototype.onYtExpanderMoreTapped;uT.prototype.dataChanged=uT.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],uT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],uT.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],uT.prototype,"collapsed",void 0);_.t([_.C(),_.N("design:type",Boolean)],uT.prototype,"descriptionToggled",void 0);
_.t([_.C(),_.N("design:type",Boolean)],uT.prototype,"canCollapse",void 0);_.t([_.C(),_.N("design:type",Object)],uT.prototype,"subscribeButtonData",void 0);_.t([_.C(),_.N("design:type",Number)],uT.prototype,"descriptionCollapsedHeight",void 0);_.t([_.C(),_.N("design:type",Object)],uT.prototype,"structuredDescriptionContentRenderer",void 0);_.t([_.C({value:function(){return _.e("web_watch_description_always_collapsed")}}),
_.N("design:type",Boolean)],uT.prototype,"descriptionAlwaysCollapsed",void 0);_.t([_.El("#description"),_.N("design:type",HTMLDivElement)],uT.prototype,"description",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uT.prototype,"dataChanged",null);_.t([_.ai("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uT.prototype,"onYtExpanderMoreTapped",null);
_.t([_.ai("yt-expander-less-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uT.prototype,"onYtExpanderLessTapped",null);_.t([_.x("data.metadataRowContainer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"metadataCollapsible",null);_.t([_.x("data","structuredDescriptionContentRenderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"hasInlineStructuredDescription",null);
_.t([_.x("data.attributedDescription"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"hasAttributedDescription",null);_.t([_.x("hasInlineStructuredDescription","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"loadStructuredDescription",null);_.t([_.x("data","structuredDescriptionContentRenderer","collapsed"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"showInlineStructuredDescription",null);
_.t([_.x("data","hasInlineStructuredDescription","metadataCollapsible"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],uT.prototype,"descriptionAlwaysCollapsible",null);
_.H(uT,"ytd-video-secondary-info-renderer",function(){if(Dx8===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);Dx8=W}W=Dx8;return W},{mode:2});var xx2;var Ji=function(){return _.n.apply(this,arguments)||this};
_.R(Ji,_.n);Ji.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.e("web_modern_buttons"),forceIconButton:!_.e("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Ji.prototype.activate=function(W){W.appendTo(this.player);W.getPlayerPromise().then(function(O){O.setMinimized(!0)});
this.active=!0};
Ji.prototype.deactivate=function(){var W=this.player.firstElementChild;W.getPlayerPromise().then(function(O){O.setMinimized(!1)});
this.active=!1;return W};
Ji.prototype.onScrollUpTap=function(){var W=_.iq().resolve(_.cs).getCurrentPage();W&&W.setScrollTop(0)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Ji.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ji.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ji.prototype,"active",void 0);
_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.N("design:type",Boolean)],Ji.prototype,"darkLaunch",void 0);_.t([_.El("#player"),_.N("design:type",HTMLDivElement)],Ji.prototype,"player",void 0);Ji=_.t([_.G({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Ji);
_.H(Ji,"ytd-miniplayer-bar-renderer",function(){if(xx2!==void 0)return xx2;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return xx2=W},{mode:1});_.O1(_.J1(function(W){var O=_.uy();_.kb(function(){var b;if(b=JSON)b=Ah2(W.data()),b=_.Cz(JSON.stringify(b).replace(/</g,"\\u003C"));var T=W.data(),L=_.NX(T.title).trim().length===0,h=!T.publishDate||T.publishDate.trim().length===0,Z,a,m,w,A=!((Z=T.thumbnail)==null?0:(a=Z.thumbnails)==null?0:a.length)||!((m=T.thumbnail)==null?0:m.thumbnails[0].url)||((w=T.thumbnail)==null?void 0:w.thumbnails[0].url.trim().length)===0;O.value&&b&&!(L||h||A)&&_.nz(O.value,b)});
return _.E("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.E("script",{el:O,type:"application/ld+json"}))},"gj"),"player-microformat-renderer",{props:{data:_.Ws}});
}catch(e){_._DumpException(e)}
try{
var Jf1;_.tgD=function(W){return W.watch.watchWindowSize};
_.$Y2=function(W){return _.Tc({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:W}})};
Jf1=function(W){_.R8.call(this);var O=this;this.JSC$20416_watchApi=W;W=_.mr(_.uv(),_.flh,function(){VgZ(O)});
this.addOnDisposeCallback(W);W=_.mr(_.uv(),_.tgD,function(){VgZ(O)});
this.addOnDisposeCallback(W);Nzg(this);MgR(this);u7U()};
_.R(Jf1,_.R8);var Nzg=function(W){var O=function(T){_.uv().dispatch(_.EKN(T.matches))},b=window.matchMedia("(max-width: "+(999+_.og())+"px)");
b.addListener(O);W.addOnDisposeCallback(function(){b.removeListener(O)});
O(b)},MgR=function(W){W.JSC$20416_watchApi.registerActionHandler("yt-window-resized",function(){u7U()});
W.addOnDisposeCallback(function(){W.JSC$20416_watchApi.unregisterActionHandler("yt-window-resized")})},u7U=function(){var W=_.UP();
_.uv().dispatch(_.Tc({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:W.width,height:W.height}}}))},VgZ=function(W){var O;
_.I(function(b){if(b.nextAddress==1)return _.Y(b,W.JSC$20416_watchApi.playerApi,2);O=b.yieldResult;O.setSize(NaN,NaN);_.aD(b)})};_.q4=function(W){_.Jr.call(this);var O=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return O.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){O.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.R(_.q4,_.Jr);_.d=_.q4.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(W){return this.rootElement.getElement(W)};
_.d.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(W,O){var b=this;if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var T={};_.Vj(_.$G.getInstance(),(T[W]=O,T),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),T={},_.Vj(_.$G.getInstance(),(T[W]=function(){var L=_.PD.apply(0,arguments);return(b.actionHandlers.get(W)||[]).map(function(h){return h.apply(null,_.PG(L))})},T),this.getRoot())),this.actionHandlers.get(W).push(O)};
_.d.unregisterActionHandler=function(W){if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.NJ(_.$G.getInstance(),(O[W]=!0,O),this.getRoot())}else(O=this.actionHandlers.get(W))?(O.pop(),O.length===0&&(O={},_.NJ(_.$G.getInstance(),(O[W]=!0,O),this.getRoot()),this.actionHandlers.delete(W))):_.z5(new _.pu("Attempted to unregister an action handler which is not registered.",W))};
_.d.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.NP(this.rootElement.pageDisposeJobs,W)};
_.d.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.c2(this.rootElement.pageDisposeJobs,W)};
_.d.dispatchEvent=function(W,O){_.bX(this.rootElement,W,O)};
_.d.provideRenderingData=function(W,O){this.rootElement.provideRenderingData(W,O)};
_.d.scrollWatchTo=function(W,O){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(W,O)};
_.d.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.My(W,function(){if(W&&W.firstElementChild){var O=W.querySelector(".html5-video-player");O&&(_.J5(_.iq().resolve(_.Qa)),O.focus())}else _.z5(Error("km"))})};
_.d.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,O=!!this.rootElement.fullscreen,b;(b=this.watchCinematicManager)==null||_.t08(b,O,W)};
_.d.subscribeToActiveChanged=function(W,O){O=O===void 0?!0:O;var b=_.mr(_.uv(),_.P2U,function(T){W(T)});
O&&W(_.P2U(_.uv().getState()));return b};
_.d.isActive=function(){return _.P2U(_.uv().getState())};
_.d.onAttached=function(){var W=_.e("external_fullscreen");_.e("use_unified_flag_accessor")&&(W=_.iq().resolve(_.oT2).retriever.getFlag(_.G8U));(W||_.qC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var cfN=function(W){return W.getRoot().is==="ytd-watch-flexy"||W.getRoot().is==="ytd-watch-grid"},no=function(W){return W.getRoot().is==="ytd-watch-fixie"};
_.q4.prototype.initPersistentModules=function(){if(no(this)||cfN(this)&&_.e("kevlar_watch_flexy_theater_manager")){var W=new _.XcR(this);_.a8(this,W)}W=new _.biB(this);_.a8(this,W);W=new _.oY(this);_.a8(this,W);W=new _.xm(this);_.a8(this,W);W=new _.s9N(this);_.a8(this,W);W=new _.km(this);_.a8(this,W);if(no(this)||cfN(this)&&_.e("kevlar_watch_flexy_playlist_manager"))W=new _.rfk(this),_.a8(this,W)};
_.q4.prototype.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.Co(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Af8(this)),this.activeModules.push(new _.exk(this)),no(this)&&this.activeModules.push(new Jf1(this)),this.activeModules.push(new _.fag(this)),this.activeModules.push(new _.zt(this)),(no(this)||_.e("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Ktk(this)),this.activeModules.push(new _.pJ1(this)),
(no(this)||_.e("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.Hi5(this)),(no(this)||_.e("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Dj7(this)),_.e("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.nM5(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.e("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gL9(this)),_.e("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Oik(this)),
W=_.e("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.e("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.J25(this)),_.e("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Ql(this)),this.activeModules.push(new _.vM8(this)),this.activeModules.push(new _.UYD(this)),_.e("web_enable_timely_actions")&&this.activeModules.push(new _.k47(this)),_.e("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.yZD(this)),
_.e("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tIU(this)),_.e("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.QSk(this)),_.e("web_player_rtr_ctrls")&&this.activeModules.push(new _.OnU(this))):(_.cQ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.q4.prototype.disposeInternal=function(){_.Jr.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Jq.Object.defineProperties(_.q4.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var llg,R9,e1N,P0U,R19,Kvk,pp8,vC8;llg=function(){var W=_.lX();W.info||(W.info={});return W.info};
R9=function(W){return Math.round(_.R5()+W)};
e1N=function(){var W;if(_.e("csi_use_performance_navigation_timing")){var O,b,T,L=_.pV==null?void 0:(W=_.pV.getEntriesByType)==null?void 0:(O=W.call(_.pV,"navigation"))==null?void 0:(b=O[0])==null?void 0:(T=b.toJSON)==null?void 0:T.call(b);L?(L.requestStart=R9(L.requestStart),L.responseEnd=R9(L.responseEnd),L.redirectStart=R9(L.redirectStart),L.redirectEnd=R9(L.redirectEnd),L.domainLookupEnd=R9(L.domainLookupEnd),L.connectStart=R9(L.connectStart),L.connectEnd=R9(L.connectEnd),L.responseStart=R9(L.responseStart),
L.secureConnectionStart=R9(L.secureConnectionStart),L.domainLookupStart=R9(L.domainLookupStart),L.isPerformanceNavigationTiming=!0,W=L):W=_.pV.timing}else W=_.e("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.pV.timing)):_.pV.timing;return W};
P0U=function(){if(_.pV.getEntriesByType){var W=_.pV.getEntriesByType("paint");if(W=_.qP(W,function(b){return b.name==="first-paint"}))return R9(W.startTime)}var O;
_.e("csi_use_performance_navigation_timing")?O=_.pV.getEntriesByType("first-paint")[0].startTime:O=_.pV.timing.msFirstPaint;return O?Math.max(0,O):0};
R19=function(){var W=window.location.protocol,O=_.pV.getEntriesByType("resource");O=_.iM(O,function(b){return b.name.indexOf(W+"//fonts.gstatic.com/s/")===0});
(O=pp8(O,function(b,T){return T.duration>b.duration?T:b}))&&O.startTime>0&&O.responseEnd>0&&(_.KV("wffs",R9(O.startTime)),_.KV("wffe",R9(O.responseEnd)))};
Kvk=function(W,O){W=document.querySelector(W);if(!W)return!1;var b="",T=W.nodeName;T==="SCRIPT"?(b=W.src,b||(b=W.getAttribute("data-timing-href"))&&(b=window.location.protocol+b)):T==="LINK"&&(b=W.href);_.x4(document)&&W.setAttribute("nonce",_.x4(document));return b?(W=_.pV.getEntriesByName(b))&&W[0]&&(W=W[0],b=_.R5(),_.KV("rsf_"+O,b+Math.round(W.fetchStart)),_.KV("rse_"+O,b+Math.round(W.responseEnd)),W.transferSize!==void 0&&W.transferSize===0)?!0:!1:!1};
_.Ki=function(W,O){_.fv(function(){_.vBT("").info.actionType=W;O&&_.zT("TIMING_AFT_KEYS",O);_.zT("TIMING_ACTION",W);var b=_.HWE(_.Cv("TIMING_INFO",{}));Object.keys(b).length>0&&_.vg(b);b={isNavigation:!0,actionType:_.QnO(_.Cv("TIMING_ACTION"))};var T=_.Cv("PREVIOUS_ACTION");T&&(b.previousAction=_.QnO(T));if(T=_.Cv("CLIENT_PROTOCOL"))b.httpProtocol=T;if(T=_.Cv("CLIENT_TRANSPORT"))b.transportProtocol=T;(T=_.Bb())&&T!=="UNDEFINED_CSN"&&(b.clientScreenNonce=T);T=_.GhP();if(T===1||T===-1)b.isVisible=!0;
T=_.UVq().loadType==="cold";var L=llg();T||(T=L.yt_lt==="cold");if(T){b.loadType="cold";T=llg();L=e1N();var h=_.R5(),Z=_.Cv("CSI_START_TIMESTAMP_MILLIS",0);Z>0&&!_.e("embeds_web_enable_csi_start_override_killswitch")&&(h=Z);h&&(_.KV("srt",L.responseStart),T.prerender!==1&&_.DVP(h));T=P0U();T>0&&_.KV("fpt",T);T=e1N();T.isPerformanceNavigationTiming&&_.vg({performanceNavigationTiming:!0},void 0);_.KV("nreqs",T.requestStart,void 0);_.KV("nress",T.responseStart,void 0);_.KV("nrese",T.responseEnd,void 0);
T.redirectEnd-T.redirectStart>0&&(_.KV("nrs",T.redirectStart,void 0),_.KV("nre",T.redirectEnd,void 0));T.domainLookupEnd-T.domainLookupStart>0&&(_.KV("ndnss",T.domainLookupStart,void 0),_.KV("ndnse",T.domainLookupEnd,void 0));T.connectEnd-T.connectStart>0&&(_.KV("ntcps",T.connectStart,void 0),_.KV("ntcpe",T.connectEnd,void 0));T.secureConnectionStart>=_.R5()&&T.connectEnd-T.secureConnectionStart>0&&(_.KV("nstcps",T.secureConnectionStart,void 0),_.KV("ntcpe",T.connectEnd,void 0));_.pV&&"getEntriesByType"in
_.pV&&R19();T=[];if(document.querySelector&&_.pV&&_.pV.getEntriesByName)for(var a in vC8)vC8.hasOwnProperty(a)&&(L=vC8[a],Kvk(a,L)&&T.push(L));if(T.length>0)for(b.resourceInfo=[],a=_.S(T),T=a.next();!T.done;T=a.next())b.resourceInfo.push({resourceCache:T.value})}_.vg(b);b=_.eQh();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);a=b.preLoggedGelInfos;b=_.PBX();T=void 0;for(L=0;L<a.length;L++)if(h=a[L],h.loadType){T=h.loadType;break}if(_.UVq().loadType==="cold"&&(b.loadType==="cold"||T==="cold")){T=_.l8E();
L=_.eQh();L=L.gelTicks?L.gelTicks:L.gelTicks={};for(var m in T)if(!(m in L))if(typeof T[m]==="number")_.KV(m,_.o5(m));else if(_.e("log_repeated_ytcsi_ticks"))for(h=_.S(T[m]),Z=h.next();!Z.done;Z=h.next())Z=Z.value,_.KV(m.slice(1),Z);m={};T=!1;a=_.S(a);for(L=a.next();!L.done;L=a.next())T=L.value,_.PEE(b,T),_.PEE(m,T),T=!0;T&&_.vg(m)}_.$V8(!0);m=_.Cv("TIMING_ACTION");_.GT("ytglobal.timingready_")&&m&&_.OcX()&&_.tYX()&&_.nBq()})()};
pp8=function(W,O){return Array.prototype.reduce.call(W,O,{duration:0})};
vC8={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var gCg={};gCg.YtVisibilityRootBehavior=[_.Ad5.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.JU(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Cv("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var W=_.Cv("INNERTUBE_CLIENT_NAME")!=="WEB";_.e("kevlar_use_vimio_behavior")&&W&&_.AWU()}}];_.vJ={};_.vJ.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(W){W.detail.contextProvider=this;W.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
gCg.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.$S();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(W){var O=this;this.pageCount+=1;_.e("kevlar_use_vimio_behavior")&&(_.Cv("INNERTUBE_CLIENT_NAME")==="WEB"?_.sF.addJob(function(){O.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(W)},
loadPage_:function(W){this.data=W},
ytPageBehaviorActiveObserver_:function(W){var O=this;_.e("kevlar_use_vimio_behavior")&&(W?_.Cv("INNERTUBE_CLIENT_NAME")==="WEB"?_.sF.addJob(function(){O.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(W){if(!this.setScrollTopJobId_){var O=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){O.setScrollTopJobId_=0;var b=_.iq().resolve(_.OT(_.Qa));b&&_.J5(b);this.getPageScrollingElement().scrollTop=W}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.lQ(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var USD;var pi=function(){var W=_.n.apply(this,arguments)||this;W.playerListenerConfig=null;W.actionMap={"yt-show-watch-page-survey":"openSurvey"};return W};
_.R(pi,_.n);_.d=pi.prototype;_.d.dataChanged=function(){var W=this,O=_.ya();O&&O.getPlayerPromise().then(function(T){W.maybeRemovePlayerListeners(T)});
var b=this.data&&this.data.survey;b&&((b=(b=b.singleOptionSurveyRenderer||b.checkboxSurveyRenderer||b.multiStageSurveyRenderer)&&b.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(O,b):this.openSurvey())};
_.d.triggerWatchPageSurvey=function(W,O){var b=this,T,L,h,Z,a,m,w,A,X;return _.I(function(l){if(l.nextAddress==1)return W?_.Y(l,W.getPlayerPromise(),2):l.return();b.player=l.yieldResult;if(!b.player)return l.return();T={};L=_.S(O);for(h=L.next();!h.done;h=L.next())Z=h.value,a=_.S(b.createEventListenerPair(Z)),m=a.next().value,w=a.next().value,A=m,X=w,A&&X&&(T[A]=X,b.ytPlayerListenerBehavior.listenToPlayerEvent(b.player,A,X));b.playerListenerConfig=T;_.aD(l)})};
_.d.createEventListenerPair=function(W){var O=W.playbackEventTrigger;return O?this.handlePlaybackTrigger(O):(W=W.watchTimeTrigger)?this.handleWatchTimeTrigger(W):[void 0,void 0]};
_.d.handleWatchTimeTrigger=function(W){var O=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var b=W.videoWatchFraction,T=W.watchTimeSec;return T&&b?["onVideoProgress",function(){O.player&&O.isWatchTimeConditionMet(O.player,b,T)&&O.showSurvey()}]:[void 0,
void 0]};
_.d.isWatchTimeConditionMet=function(W,O,b){var T=W.getProgressState(),L=T.current-this.lastKnownPlaybackPosition;L<5&&(this.accumulatedMediaTime+=L);this.lastKnownPlaybackPosition=T.current;T=Math.round(this.accumulatedMediaTime/T.duration*1E3)/1E3;return W.getPresentingPlayerType&&W.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>b||T>O)};
_.d.handlePlaybackTrigger=function(W){var O=this;W=W.playbackEvent;if(W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var b="onStateChange";var T=function(L){L===0&&O.showSurvey()}}else W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(b="onVideoProgress",T=function(L){O.player&&O.player.getPresentingPlayerType&&O.player.getPresentingPlayerType()===1&&L&&O.showSurvey()}):W==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(b="onAdEnd",T=this.showSurvey);
return[b,T]};
_.d.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.d.openSurvey=function(){var W=this,O=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.NCU(!!O));_.sF.addJob(function(){W.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:O}})},0,0)};
_.d.maybeRemovePlayerListeners=function(W){if(this.playerListenerConfig){for(var O=_.S(Object.keys(this.playerListenerConfig)),b=O.next();!b.done;b=O.next())b=b.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(W,b,this.playerListenerConfig[b]);this.playerListenerConfig=null}};
pi.prototype.dataChanged=pi.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pi.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],pi.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],pi.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],pi.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],pi.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pi.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],pi.prototype,"playerListenerConfig",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],pi.prototype,"lastKnownPlaybackPosition",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],pi.prototype,"accumulatedMediaTime",void 0);_.t([_.C(),_.N("design:type",Object)],pi.prototype,"player",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pi.prototype,"dataChanged",null);pi=_.t([_.G({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],pi);
_.H(pi,"ytd-survey-trigger-renderer",function(){if(USD!==void 0)return USD;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return USD=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
var jpg=new _.J("promotedSparklesWebRenderer");var TJ1=new _.J("relatedChipCommand");var L2R;var dBD;var EN=function(){return _.n.apply(this,arguments)||this};
_.R(EN,_.n);EN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],EN.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],EN.prototype,"data",void 0);EN=_.t([_.G({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],EN);
_.H(EN,"ytd-compact-tvfilm-entry-point-renderer",function(){if(dBD!==void 0)return dBD;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return dBD=W},{mode:1});var hdP;var SaR;var Zk1;var wj=function(){return _.n.apply(this,arguments)||this};
_.R(wj,_.n);wj.prototype.ready=function(){this.initializeDefs()};
wj.prototype.initializeDefs=function(){var W=this.meta.byKey("yt-icons"),O=_.Q(W).querySelector("#star"),b=_.Q(W).querySelector("#star_half");W=_.Q(W).querySelector("#star_border");O&&this.defs.appendChild(O.cloneNode(!0));b&&this.defs.appendChild(b.cloneNode(!0));W&&this.defs.appendChild(W.cloneNode(!0))};
wj.prototype.percentChanged=function(){for(var W=this.rating;W.firstChild;)W.removeChild(W.firstChild);var O=Math.round(this.percent/10);W=Math.floor(O/2);O%=2;var b=5-W-O;this.appendStars("star",W,0);this.appendStars("star_half",O,W);this.appendStars("star_border",b,W+O)};
wj.prototype.appendStars=function(W,O,b){for(var T=0;T<O;T++){var L=(18+this.spacing)*(T+b),h=document.createElementNS("http://www.w3.org/2000/svg","use");_.ML1(h,"#"+W);h.setAttribute("x",""+L);h.setAttribute("y","0");this.rating.appendChild(h)}};
wj.prototype.percentChanged=wj.prototype.percentChanged;_.t([_.El("#defs"),_.N("design:type",HTMLElement)],wj.prototype,"defs",void 0);_.t([_.El("#rating"),_.N("design:type",HTMLElement)],wj.prototype,"rating",void 0);_.t([_.C(),_.N("design:type",Number)],wj.prototype,"percent",void 0);_.t([_.C({value:6}),_.N("design:type",Number)],wj.prototype,"spacing",void 0);_.t([_.C({value:_.wp.create("iron-meta",{type:"iconset"})}),_.N("design:type",_.ed)],wj.prototype,"meta",void 0);
_.t([_.m5("percent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wj.prototype,"percentChanged",null);wj=_.t([_.G({disableElementRegistration:!0,is:"ytd-ratings"})],wj);
_.H(wj,"ytd-ratings",function(){if(Zk1!==void 0)return Zk1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Zk1=W},{mode:1});var AB=function(){return _.n.apply(this,arguments)||this};
_.R(AB,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],AB.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],AB.prototype,"data",void 0);AB=_.t([_.G({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],AB);
_.H(AB,"ytd-offer-review-renderer",function(){if(SaR!==void 0)return SaR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return SaR=W},{mode:1});var XJ=function(){var W=_.n.apply(this,arguments)||this;W.badges=[{textBadge:{label:_.VV("CC")}}];return W};
_.R(XJ,_.n);_.d=XJ.prototype;_.d.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.d.dataChanged=function(){var W=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(W&&W.commandMetadata&&_.P(W.commandMetadata,_.RP)&&_.P(W.commandMetadata,_.RP).fireAutomatically)_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}});else{var O;W&&((O=_.P(W,_.RP))==null?0:O.fireAutomatically)&&_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})}};
_.d.isEmptyContent=function(W){return this.isStorefrontEntryPointEmpty(W)&&this.shouldHideOfferModule(W)};
_.d.isStorefrontEntryPointEmpty=function(W){return!W||!W.storefrontEntryPoint};
_.d.shouldHideOfferModule=function(W){return!!W.hideVideoDetails};
_.d.isOfferModuleNavigationInactive=function(W){return!W.navigationEndpoint&&!W.serviceEndpoint};
_.d.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
XJ.prototype.dataChanged=XJ.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],XJ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.N("design:type",Boolean)],XJ.prototype,"hidden",void 0);
_.t([_.C(),_.N("design:type",Object)],XJ.prototype,"badges",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XJ.prototype,"dataChanged",null);XJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],XJ);
_.H(XJ,"ytd-movie-offer-module-renderer",function(){if(hdP!==void 0)return hdP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hdP=W},{mode:1});var I97;var UN=function(){return _.n.apply(this,arguments)||this};
_.R(UN,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],UN.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],UN.prototype,"data",void 0);UN=_.t([_.G({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],UN);
_.H(UN,"ytd-media-masthead-renderer",function(){if(I97!==void 0)return I97;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return I97=W},{mode:1});var a9g;_.O1(_.hxv,"course-metadata-view-model",{props:{data:_.Ws,isOverlay:_.Ws}});var lA=function(){var W=_.n.apply(this,arguments)||this;W.isMetadataVisible=!1;W.modernPanels=_.e("kevlar_watch_modern_panels");W.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return W};
_.R(lA,_.n);_.d=lA.prototype;
_.d.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"}}}}};
_.d.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.d.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.d.expanderChanged=function(){var W;if((W=this.data)==null?0:W.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.d.isExpandButtonToggled=function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.expandMetadataButton,_.vm))==null?void 0:O.isToggled};
_.d.onVisibilityButtonClick=function(){var W;if((W=this.data)==null?0:W.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.d.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
lA.prototype.expanderChanged=lA.prototype.expanderChanged;lA.prototype.dataChanged=lA.prototype.dataChanged;lA.prototype.descriptionChanged=lA.prototype.descriptionChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],lA.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],lA.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],lA.prototype,"isMetadataVisible",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lA.prototype,"modernPanels",void 0);_.t([_.El("#expander"),_.N("design:type",Object)],lA.prototype,"expander",void 0);_.t([_.m5("data.description"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lA.prototype,"descriptionChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lA.prototype,"dataChanged",null);_.t([_.m5("isMetadataVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lA.prototype,"expanderChanged",null);lA=_.t([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],lA);
_.H(lA,"ytd-tvfilm-offer-module-renderer",function(){if(a9g!==void 0)return a9g;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return a9g=W},{mode:2});var mB1;var eM=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return W};
_.R(eM,_.n);eM.prototype.dataChanged=function(){this.hostElement.hidden=!1};
eM.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
eM.prototype.onThumbnailTap=function(W){this.data&&this.data.serviceEndpoint&&(_.iq().resolve(_.bq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),W.stopPropagation())};
eM.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
eM.prototype.dataChanged=eM.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eM.prototype,"rendererBehaviors",void 0);_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],eM.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],eM.prototype,"data",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eM.prototype,"dataChanged",null);eM=_.t([_.G({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],eM);
_.H(eM,"ytd-unlimited-offer-module-renderer",function(){if(mB1!==void 0)return mB1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mB1=W},{mode:1});var YaB;var EcR;var PC=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return W};
_.R(PC,_.n);PC.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
PC.prototype.handleRelatedChipCommand=function(W){W=_.P(W,TJ1);var O=W.contents;O?_.TU(this.hostElement,"yt-item-section-replace-action",[O,W.targetSectionIdentifier]):_.TU(this.hostElement,"yt-item-section-continuation-action",[W.continuationData,W.targetSectionIdentifier])};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],PC.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PC.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],PC.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PC.prototype,"data",void 0);PC=_.t([_.sl({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],PC);
_.H(PC,"yt-related-chip-cloud-renderer",function(){if(EcR===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;YaB===void 0&&(YaB=document.createElement("template"));var T=YaB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);EcR=W}W=EcR;return W},{mode:2});var ps=function(){var W=_.n.apply(this,arguments)||this;W.isTwoColumns=!0;W.hideOfferModules=!1;W.watchFeedBigThumbs=_.e("kevlar_watch_feed_big_thumbs");W.watchNextGridHideChips=_.e("kevlar_watch_grid_hide_chips");W.eligibleToSwitchToGrid=_.e("web_watch_eligible_to_switch_to_grid");W.disableShortsShelfHeightOverride=_.e("web_shorts_wn_shelf_ratio_tuning");W.isWatchNextGrid=!1;W.reuseComponents=!_.e("kevlar_watch_grid");W.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return W};
_.R(ps,_.n);_.d=ps.prototype;
_.d.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.e("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}}};
_.d.getItemsPath=function(){return"data.results"};
_.d.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.d.created=function(){this.ytLazyListBehavior.initialCount=1};
_.d.ready=function(){_.Sl(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.d.resultsChanged=function(){if(this.data&&this.data.results){for(var W=this.data.results,O=null,b=null,T=0;T<W.length;T++)W[T].relatedChipCloudRenderer?O=W[T].relatedChipCloudRenderer:W[T].itemSectionRenderer&&(b=W[T].itemSectionRenderer);if(O&&b)for(this.set("data.continuations",[]),W=_.P(O.content,_.JRS).chips,O=0;O<W.length;O++)if(T=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",W[O]),T.loadCached||!T.contents){T.contents=b.contents;break}}};
_.d.dataChanged=function(){var W=this,O;if((O=this.data)!=null&&O.results&&this.hasAllowedInstreamAd(this.playerData)){if(O=this.data.results.filter(function(a){return!!a.promotedSparklesWebRenderer})){for(var b=0;b<O.length;b++){var T=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",O[b]);
if(T)for(var L=0;L<T.length;L++)T[L]&&T[L].baseUrl&&_.G7(T[L].baseUrl)}this.set("data.results",this.data.results.filter(function(a){return!a.promotedSparklesWebRenderer}))}if(O=this.data.results.filter(function(a){return!!W.getSparklesAd(a)})){O=_.S(O);
for(L=O.next();!L.done;L=O.next())if(T=b=void 0,L=(b=this.getSparklesAd(L.value))==null?void 0:(T=b.errorCommand)==null?void 0:T.loggingUrls)for(b=_.S(L),T=b.next();!T.done;T=b.next())(T=T.value)&&T.baseUrl&&_.G7(T.baseUrl);var h,Z;this.set("data.results",(h=this.data)==null?void 0:(Z=h.results)==null?void 0:Z.filter(function(a){return!a.adSlotRenderer}))}}};
_.d.getSparklesAd=function(W){var O,b;W=_.P((O=W.adSlotRenderer)==null?void 0:(b=O.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.EqU);return _.P(W==null?void 0:W.renderingContent,jpg)};
_.d.hasAllowedInstreamAd=function(W){W=this.get("adPlacements",W)||[];for(var O=0;O<W.length;O++){var b=this.get("adPlacementRenderer.config.adPlacementConfig",W[O]);if(b&&b.suppressDisplayAd)return!0}return!1};
_.d.computeHideUnlimitedOfferModule=function(W,O){return W&&W.offerModule&&O&&W.offerModule.unlimitedOfferModuleRenderer&&W.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(O)?!0:!1};
_.d.hideUnlimitedOfferModuleChanged=function(){var W=_.Q(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");W&&(W.hidden=this.hideUnlimitedOfferModule)};
_.d.updateLockupContainerTypes=function(W){if(this.eligibleToSwitchToGrid){var O;(O=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||O.forEach(function(b){b.containerType=W})}};
_.d.computeHideTvfilmOfferModule=function(W,O){var b,T;return!!((W==null?0:(b=W.offerModule)==null?0:(T=b.tvfilmOfferModuleRenderer)==null?0:T.clientShouldSuppressIfCompanionAdDisplayed)&&O&&this.hasCompanionAds(O))};
_.d.hideTvfilmOfferModuleChanged=function(){var W=_.Q(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");W&&(W.hidden=this.hideTvfilmOfferModule)};
_.d.hasCompanionAds=function(W){W=this.get("adPlacements",W)||[];for(var O=0;O<W.length;O++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",W[O]))return!0;var b=void 0,T=void 0,L=void 0;if(!_.e("web_watch_top_banner_companion_check_killswitch")&&((b=W[O])==null?0:(T=b.adPlacementRenderer)==null?0:(L=T.renderer)==null?0:L.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.d.hasSuppressedResults=function(W){return W==null?!0:W.filter(function(O){return!O.continuationItemRenderer&&!O.compactPromotedVideoRenderer&&!O.promotedSparklesWebRenderer}).length===0};
_.d.computeShowButton=function(W,O){return this.isWatchNextGrid?W:W||this.hasSuppressedResults(O)};
_.d.showButtonChanged=function(){if(this.isWatchNextGrid){var W=_.Q(this.hostElement).querySelector("ytd-rich-grid-renderer");W&&this.showButton!==null&&(W.continuationShowButton=this.showButton)}else{W=_.Q(this.hostElement).querySelector("yt-next-continuation");var O=_.Q(this.hostElement).querySelector("ytd-continuation-item-renderer"),b=_.Q(this.hostElement).querySelector("ytd-item-section-renderer");W&&(W.showButton=this.showButton);O&&(O.showButton=this.showButton);b&&(b.continuationShowButton=
this.showButton)}};
_.d.continuationTap=function(W){var O;if(((O=this.data)==null?void 0:O.continuations)!=null&&W.target.tagName==="TP-YT-PAPER-BUTTON")for(W=this.data.continuations,O=0;O<W.length;O++)W[O].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(W[O].nextContinuationData||{})};
_.d.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("shown-items-changed",this.shownItems))};
_.Jq.Object.defineProperties(ps.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.shownItems)==null||!W.some(function(O){return!!O.lockupViewModel}))}}});
ps.prototype.shownItemsChangedForBinding=ps.prototype.shownItemsChangedForBinding;ps.prototype.showButtonChanged=ps.prototype.showButtonChanged;ps.prototype.hideTvfilmOfferModuleChanged=ps.prototype.hideTvfilmOfferModuleChanged;ps.prototype.updateLockupContainerTypes=ps.prototype.updateLockupContainerTypes;ps.prototype.hideUnlimitedOfferModuleChanged=ps.prototype.hideUnlimitedOfferModuleChanged;ps.prototype.dataChanged=ps.prototype.dataChanged;ps.prototype.resultsChanged=ps.prototype.resultsChanged;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],ps.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.zj.YtNextContinuationBehavior),_.N("design:type",Object)],ps.prototype,"ytNextContinuationBehavior",void 0);
_.t([_.D(_.xE),_.N("design:type",Object)],ps.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ps.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ps.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ps.prototype,"playerData",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],ps.prototype,"autoFill",void 0);_.t([_.C({value:60}),_.N("design:type",Number)],ps.prototype,"targetFramerate",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ps.prototype,"isTwoColumns",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ps.prototype,"hideOfferModules",void 0);_.t([_.C(),_.N("design:type",Object)],ps.prototype,"shownItems",void 0);_.t([_.C({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.N("design:type",Boolean)],ps.prototype,"hideUnlimitedOfferModule",void 0);
_.t([_.C({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.N("design:type",Boolean)],ps.prototype,"hideTvfilmOfferModule",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ps.prototype,"watchFeedBigThumbs",void 0);_.t([_.C(),_.N("design:type",Object)],ps.prototype,"watchNextGridHideChips",void 0);_.t([_.C(),_.N("design:type",Object)],ps.prototype,"eligibleToSwitchToGrid",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ps.prototype,"disableShortsShelfHeightOverride",void 0);_.t([_.C({selector:_.zJ}),_.N("design:type",Object)],ps.prototype,"isGridViewEnabled",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],ps.prototype,"showMoreButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ps.prototype,"isWatchNextGrid",void 0);
_.t([_.C({computed:"computeShowButton(showMoreButton, data.results)"}),_.N("design:type",Boolean)],ps.prototype,"showButton",void 0);_.t([_.Ul("data.results.*"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"resultsChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"dataChanged",null);
_.t([_.m5("hideUnlimitedOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"hideUnlimitedOfferModuleChanged",null);_.t([_.x("isGridViewEnabled","containsLockupViewModel","data"),_.C({reflectToAttribute:!0}),_.N("design:type",Number),_.N("design:paramtypes",[])],ps.prototype,"lockupContainerType",null);
_.t([_.m5("lockupContainerType","data"),_.N("design:type",Function),_.N("design:paramtypes",[Number]),_.N("design:returntype")],ps.prototype,"updateLockupContainerTypes",null);_.t([_.m5("hideTvfilmOfferModule"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"hideTvfilmOfferModuleChanged",null);_.t([_.m5("showButton"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"showButtonChanged",null);
_.t([_.m5("shownItems"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ps.prototype,"shownItemsChangedForBinding",null);_.t([_.x("shownItems"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ps.prototype,"containsLockupViewModel",null);
_.H(ps,"ytd-watch-next-secondary-results-renderer",function(){if(L2R===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);L2R=W}W=L2R;return W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.zyP={};
_.zyP.YtdWatchBehavior=[_.F.YtRendererBehavior,_.Hw.YtPlayerListenerBehavior,_.y4.YtRendererstamperBehavior,_.WP.YtActionHandlerBehavior,_.vJ.YtPageBehavior,_.mx.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.qC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.e("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.e("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.qC("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.e("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, fullscreen, theater)"},richItemMinWidth:{type:Number,
value:function(){return _.Lu("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Lu("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.e("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isTwoColumns_)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.e("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.e("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var W={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:_.sG(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.sG(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.e("swa_prov_panels_ks")?W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(W.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},W.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return W},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.e("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.e("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.e("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.PYB(function(){return _.FL(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.e("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.bs;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;_.e("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.e("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));_.e("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ii(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.e("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.e("kevlar_watch_while_v2")&&!_.e("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.bX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var O=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.k0({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Bg("nw");this.loading=!1;_.KB(_.sF,function(){O.initDclkstatus_();var T,L=((T=O.player)==null?void 0:T.getVideoData().cpn)||"";_.hyg(function(h,Z){_.XU8(h,Z,L)})})},
onPageLoadWithSameData_:function(){_.e("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.e("kevlar_watch_frame0_loading_state")){var O,b,T;W=(O=this.loadingData)==null?void 0:(b=O.endpoint)==null?void 0:(T=b.watchEndpoint)==null?void 0:T.videoId;var L;W&&(L="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.Q(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.Q(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var O,b;(b=(O=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(O);var T,L;(L=(T=this.watchMetadata).resize)==null||L.call(T)}_.e("kevlar_watch_frame0_loading_state")&&(_.Q(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var O=_.Q(this.hostElement).querySelector(W);O?_.OO(O,!1):_.z5(new _.pu("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var O=_.Q(this.hostElement).querySelector(W);O?_.iX(O):_.z5(new _.pu("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var O=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.sF.addLowPriorityJob(function(){O.onWindowResized_(_.UP(!0))})},
updateTheaterModeState_:function(W){if(!_.e("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.l9Z()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var W=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.e("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.Q(this.hostElement).querySelector("#player-full-bleed-container"):_.Q(this.hostElement).querySelector("#player-container-inner");var O=this.getPlayerContainer(),b=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip");O.parentElement!==W&&(b&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.FL(this).appendTo(W,
O),W.appendChild(_.Q(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.iq().resolve(_.xq).deactivate(),2);W.updatePlayerLocation();_.aD(O)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var O=this.getCinematicsLocationContainer();W.parentElement!==O&&O.appendChild(W);var b;(b=this.watchController)==null||b.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Q(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Q(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,O){var b=document.documentElement.hasAttribute("dark"),T=b&&_.e("web_cinematic_theater_mode"),L=b&&_.e("web_cinematic_fullscreen");b=!b&&this.cinematicLightTheme;return W&&T||O&&L||(O||W)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W=this,O;(O=this.watchController)==null||O.setWatchNextResponse(this.data);_.e("kevlar_watch_flexy_comments_manager")||this.initComments_();_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.iq().resolve(_.kP).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.e("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.sF.addLowPriorityJob(function(){_.TU(W.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.e("web_watch_start_chat_in_theater_mode")){var b,T,L;if((b=this.data)==null?0:(T=b.contents)==null?0:(L=T.twoColumnWatchNextResults)==null?0:L.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var h,Z;((h=this.data)==null?0:(Z=h.contents)==null?0:Z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(W){var O;(O=this.watchController)==null||O.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(O=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),O&&!W||_.My(this,function(){_.Bg("pbu")}));
this.setPlayerAds_();_.TU(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(W,O){if((_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"))&&this.playerData&&O)return this.playerData.videoDetails},
watchPageActiveChanged_:function(W){_.uv().dispatch(_.$Y2(this.active));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new _.q4(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);_.e("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var O=_.FL(this);_.e("kevlar_disable_prepare_player")||
O.preparePlayer();_.e("kevlar_watch_flexy_playlist_manager")||_.iq().resolve(_.kP).setPlayer(O);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();O={"--ytd-watch-flexy-scrollbar-width":_.og()+"px"};this.is==="ytd-watch-grid"&&(O["--ytd-watch-flexy-sidebar-width"]=_.TRU+"px",O["--ytd-watch-grid-horizontal-page-margins"]=_.Dn+"px",O["--ytd-watch-grid-columns-top-margins"]=_.ixg+"px",O["--ytd-watch-grid-min-player-height-medium"]="360px");!_.Lu("kv_pl_mx_sz_ks")&&
_.Lu("kevlar_watch_max_player_width")&&(O["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LkN+"px");_.Lu("kevlar_watch_flexy_metadata_height")&&(O["--ytd-watch-flexy-space-below-player"]=_.dO2+"px");this.safeUpdateStyles(O);_.e("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.Sj(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.e("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Q(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.og(),O=_.x5+W,b=O;this.fixedPanels&&(O+=_.TRU);var T=657+W;W=1327+W;_.Q(this.hostElement).querySelector("#two-column-query").query="(min-width: "+O+"px)";_.Q(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(T+"px), (min-height: 630px) and (min-width: ")+(O+"px) and (max-width: ")+(W+"px)");_.Q(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.Q(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+b+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.Q(this.hostElement).querySelector("#miniplayer-bar").firstChild,O=this.squeezeback&&!_.e("web_watch_squeezeback_player_size_killswitch");return W&&W.active||this.theater||_.e("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||O||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.hU(NaN,NaN):_.Hz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Hz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.JU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.UP());_.e("browse_skeleton_removal_on_watch_killswitch")||_.qC("IS_SHELL_LOAD")&&_.XpD();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var O=_.FL(this);O.addEventListener("yt-player-updated",_.Ii(this,this.onPlayerUpdated_));O.getPlayerPromise().then(function(b){W.playerApiReady_(b)});
_.e("kevlar_watch_flexy_playlist_manager")||(O=_.iq().resolve(_.kP),_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&O.addEventListener("yt-navigate",_.Ii(this,this.onYtNavigate_)),O.setPlaylistComponent(_.Q(this.hostElement).querySelector("#playlist")),O.addEventListener("yt-playlist-data-updated",_.Ii(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.sF.addLowPriorityJob(function(){_.bX(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.FL(this).removeEventListener("yt-player-updated",_.Ii(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.e("kevlar_watch_flexy_playlist_manager")){var W=_.iq().resolve(_.kP);_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.Ii(this,this.onYtNavigate_));
W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.Ii(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bX(this.hostElement,"yt-autonav-pause-player",!1);W=_.y3();_.e("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Wg(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,O){O.hasComments?O.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):O.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,O){this.player&&(O?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Ki("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Q(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Q(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.e("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.e("kevlar_unified_player")||_.e("kevlar_player_new_bootstrap_adoption"))&&_.Ms()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,O){O=O===void 0?!0:O;_.y3()&&_.e("external_fullscreen")&&_.Wg(document.documentElement);this.theaterRequested_=W;O&&_.UT("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.jx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bX(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(W){_.CB(W,typeof this.player),this.player&&_.CB(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.jx(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,O){return this.loading?O:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next())O=O.value,O.youThereRenderer&&_.KSP(this.youThereManager_,O.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var O=this.youThereManager_;_.by()<W.lowEngagementThresholdMs||_.QoR(O,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.jx(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,O,b){return!!W&&!this.isVideoPlayable_(W,b)&&!O},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,O){if(!W)return!1;var b=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",T=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var L;O=O==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!b||!!T||!!W||!!O},
hasWatchNextResponseErrorRenderer:function(W){var O=this.getPageContents(W),b,T,L,h,Z;return!(W==null?0:(b=W.contents)==null?0:(T=b.twoColumnWatchNextResults)==null?0:T.secondaryResults)&&!!((L=O[0])==null?0:(h=L.itemSectionRenderer)==null?0:(Z=h.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,O,b){var T=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.e("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&L.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);h==void 0&&(h=!0);!b||this.isVideoPlayable_(W,this.getPlayerOverlays_(O))||
T||L||!h||_.iq().resolve(_.kP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.YE2()},
onPlayerFeedbackStartRequest_:function(W){_.jx(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.jx(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,O,b,T,L,h,Z,a,m=((W=this.data)==null?NaN:(O=W.contents)==null?NaN:(b=O.twoColumnWatchNextResults)==null?NaN:(T=b.secondaryResults)==null?NaN:(L=T.secondaryResults)==null?NaN:(h=L.offerModule)==null?NaN:(Z=h.tvfilmOfferModuleRenderer)==null?NaN:(a=Z.actionButtons)==null?NaN:a.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(m>=0?m:0)+".buttonRenderer."];O=_.S(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=O.next();!b.done;b=O.next())for(b=b.value,T=_.S(W),L=T.next();!L.done;L=T.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.mw(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.bX(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.uv().dispatch(_.klw(W))},
onPlayerSubscribe_:function(W){_.jx(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.jx(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.jx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
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(W){return!_.e("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.e("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.e("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var W,O,b,T;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.secondaryResults)==null?void 0:T.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.e("swatcheroo_pbs_load_grid")&&!_.e("swatcheroo_provide_all_data_on_scheduled_job")){_.sF.cancelJob(this.setRichGridJobId_);var W,O,b,T,L,h,Z;this.setRichGridRendererData((W=this.data)==null?void 0:(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.secondaryResults)==null?void 0:(L=T.secondaryResults)==null?void 0:(h=L.results)==null?void 0:(Z=h[0])==null?
void 0:Z.richGridRenderer)}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,O=(W=this.data)==null?void 0:W.engagementPanels;if(O==null?0:O.length){W=null;O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;if(((T=b.engagementPanelSectionListRenderer)==null?void 0:T.targetId)==="engagement-panel-structured-description"){W=b;break}}var L,h,Z;W=(L=W)==null?void 0:(h=L.engagementPanelSectionListRenderer)==null?void 0:(Z=h.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(W==null?0:W.items){L=
[];h=_.S(W.items);for(Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(!_.e("sd_horizontal_list_show_nav_killswitch")){var a=T=b=O=W=void 0,m=void 0,w=(W=Z.horizontalCardListRenderer)==null?void 0:(O=W.header)==null?void 0:(b=O.richListHeaderRenderer)==null?void 0:(T=b.navigationButton)==null?void 0:(a=T.buttonRenderer)==null?void 0:(m=a.command)==null?void 0:m.commandExecutorCommand;w&&w.commands&&(w.commands=w.commands.filter(function(A){return!_.P(A,_.eeN)}))}Z.expandableVideoDescriptionBodyRenderer||
Z.videoDescriptionHeaderRenderer||L.push(Z)}return{items:L}}}},
constructWarning_:function(W){return{text:_.VV(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.bX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var O=this.getScrollTop()>0;this.gestures_&&(O?this.gestures_.detach():this.gestures_.attach());O!==this.showFullerscreenEdu_&&_.e("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=O,_.FL(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.sF.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.KB(_.sF,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.e("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Bg("cmi");_.sF.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.S(W);for(var O=W.next();!O.done;O=W.next())if(O=O.value,this.get("itemSectionRenderer.sectionIdentifier",O)==="comment-item-section"){this.comments=O.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Bg("cmc")},
doRemoveComments_:function(){this.comments={};_.e("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.sF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.sF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,O){var b=_.P(O.endpoint,_.V3);b&&(!(O=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==O.videoId||b.playlistId&&b.playlistId!==O.playlistId||b.index!==void 0&&b.index!==O.index||typeof b.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.FL(this).getPlayerPromise().then(function(T){var L=b.startTimeSeconds;T.seekTo(L);T.wakeUpControls();L<T.getDuration()&&T.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.yfU();"t"in W&&(W=_.mx2(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var O,b;(W=_.NX(W==null?void 0:(O=W[0])==null?void 0:(b=O.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.bX(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.bX(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,O,b){if(this.active&&this.player){var T=this.player.getVideoData();if(T.video_id===b&&(b=T.list,_.e("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),T.video_id!==W||b!=O)){var L;_.e("kevlar_player_watch_endpoint_navigation")?L=_.gD1(_.SE5(W,O)):L=this.buildWatchEndpoint_(W,O);_.bX(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,O,b){return _.Or(W,O,b)},
initDclkstatus_:function(){_.ag7()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var O=W.querySelector("#primary-info"),b=W.querySelector("#secondary-info"),T=W.querySelector("#related");O&&_.Q(this.hostElement).querySelector("#info-skeleton").appendChild(O);b&&_.Q(this.hostElement).querySelector("#meta-skeleton").appendChild(b);T&&(_.Q(this.hostElement).querySelector("#related-skeleton").appendChild(T),this.watchNextSkeletonEl_=T);_.Xu(W)}},
handlePlayerUpdated_:function(){_.FL(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,O){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof O!=="undefined"){var b=this.watchNextSkeletonEl_.children,T=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,b.length);O||(T=0,W=b.length);for(O=T;O<W;O++)b[O].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.e("external_fullscreen")||_.jx(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var O=_.FL(this);O.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.y3())});
this.updateFullBleedElementLocations();W&&(O.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,O){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!O},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,O){return O&&!!W},
computeResponseHasComments:function(W){var O,b,T,L,h;return!!(W==null?0:(O=W.contents)==null?0:(b=O.twoColumnWatchNextResults)==null?0:(T=b.results)==null?0:(L=T.results)==null?0:(h=L.contents)==null?0:h.some(function(Z){var a;return(Z==null?void 0:(a=Z.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,O,b,T){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&T?!1:!!W&&!!Object.keys(W).length&&!O},
identity:_.GX,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var O=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.FL(this).getPlayerPromise().then(function(b){var T=b.getPlayerState();T!==5&&T!==0&&(b=1/b.getVideoAspectRatio(),O.videoHeightToWidthRatio_!==b&&(O.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(W){var O=this,b=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"),T=function(){if(O.watchMetadata){var L,h;(h=(L=O.watchMetadata).resize)==null||h.call(L)}_.FL(O).getPlayerPromise().then(function(Z){if(_.e("kevlar_set_internal_player_size")){if(!b||!O.isMiniplayerActive()){var a=O.calculateCurrentPlayerSize_();Z.setInternalSize(a.width,a.height)}}else Z.setSize(NaN,NaN);_.e("kevlar_watch_while")&&O.updateWatchWhileScrollThreshold_()})};
W?T():_.pp(_.sF,T)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.P(W,_.ey2).survey)},
onDownloadedVideoDeleted:function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1){if(!O.active||(b=O.playerData)==null||!b.offlineState||O.videoId!==W)return L.return();(T=O.player)==null||T.stopVideo();_.IT().navigatingAwayFromWatchDeletedVideo=!0;_.mw(_.vcX,O.hostElement);return _.Y(L,_.IT().navigationFinishPromise,2)}_.IT().navigatingAwayFromWatchDeletedVideo=!1;_.aD(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.kq(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.Q(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var O=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!W.active&&O&&b>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!O||b<this.watchWhileScrollThreshold_&&!_.y3())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var W=_.Q(this.hostElement).querySelector("#secondary-inner");if(W){var O=_.Q(this.hostElement).querySelector("#below"),b=_.Q(this.hostElement).querySelector("#secondary"),T=_.Q(this.hostElement).querySelector("#comments");T&&b&&O&&(this.defaultTwoColumnLayout?(W.appendChild(T),b.appendChild(W)):(O.appendChild(T),_.rj(O,W)))}}},
isTwoColumnsChanged_:function(W,O){if(W!==!0||O!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(W=_.Q(this.hostElement).querySelector("#secondary-inner"))){O=_.Q(this.hostElement).querySelector("#below");var b=_.Q(this.hostElement).querySelector("#secondary"),T=_.Q(this.hostElement).querySelector("#comments");T&&b&&O&&(this.isTwoColumns_?(W.appendChild(T),b.appendChild(W)):(O.appendChild(T),
_.rj(O,W)))}}else{W=!_.e("live_chat_over_engagement_panels");O=_.Q(this.hostElement).querySelector("#chat-container");b=_.Q(this.hostElement).querySelector("#panels");var L=_.Q(this.hostElement).querySelector("#alerts");T=_.Q(this.hostElement).querySelector("#playlist");var h=_.Q(this.hostElement).querySelector("#related"),Z=_.Q(this.hostElement).querySelector("#donation-shelf"),a=_.Q(this.hostElement).querySelector("#comments");this.isTwoColumns_?(L=_.Q(this.hostElement).querySelector("#secondary-inner"),
W&&L.appendChild(b),L.appendChild(T),_.e("web_watch_theater_chat")||L.appendChild(O),W||L.appendChild(b),L.appendChild(Z),L.appendChild(h)):(W&&_.K4(b,L),_.K4(T,L),_.e("web_watch_theater_chat")||_.K4(O,L),W||_.K4(b,L),_.K4(Z,L),a&&_.K4(h,a));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.e("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.e("web_watch_enable_fs_squeezeback_panels")&&_.e("web_watch_theater_chat")){var W=_.Q(this.hostElement).querySelector("#chat-container"),O=this.theater&&!this.fullscreen||_.e("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&O?_.e("web_watch_theater_chat_beside_player")?(O=_.Q(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==
O&&O.append(W),this.panelsBesidePlayer=!0):_.e("web_watch_theater_fixed_chat")&&(O=_.Q(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==O&&O.append(W),this.fixedPanels=!0):(_.e("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.e("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),O=_.Q(this.hostElement).querySelector("#playlist"),W&&O?_.v1(W,O):_.z5(new _.pu("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!O})));
this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,O){return _.e("sw_metadata_vis_toggle_ks")?!0:!!W||!!O},
computeForceDarkPanelTheme:function(W){return _.e("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.Sl(this.hostElement,W)}catch(O){_.z5(O)}},
videoHeightToWidthRatioChanged_:function(W,O){O&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.FL(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.FL(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kvR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var O=_.Tz(W)||0;_.ju(W,O+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.Tz("yt-fullerscreen-edu-button-click-count")||0,O=_.Tz("yt-fullerscreen-edu-button-shown-count")||0,b=_.Lu("external_fullscreen_button_shown_threshold"),T=W>=_.Lu("external_fullscreen_button_click_threshold")||O>=b;_.FL(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(T)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,O){return O},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.iq().resolve(_.kP).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var W=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.sF.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.sF.addLowPriorityJob(function(){W.fullHeightPanelPositionUpdateJobId=0;var O=_.Q(W.hostElement).querySelector("#secondary"),b=_.Q(W.hostElement).querySelector("#fixed-secondary");O=O.getBoundingClientRect();var T=O.width;W.swatcherooSqueezeback&&
(T+=_.Dn);if(W.swatcherooSqueezeback){var L=_.Q(W.hostElement).querySelector("#squeezeback-constraining-container");L.style.width=T+"px";L.style.flex="0 0 "+T+"px"}b.style.width=T+"px";b.style.left=O.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.sF.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.sF.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var O;!W.isTwoColumns_||W.theater||W.fullscreen?O=460:O=W.calculateNormalPlayerSize_().height;var b=O+"px";_.e("live_chat_taller_height")&&!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.e("live_chat_medium_height")&&!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.e("live_chat_scaled_height")&&!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":O+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":O+"px","--ytd-watch-flexy-comments-panel-max-height":O+"px","--ytd-comments-engagement-panel-content-height":O+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Sx(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var O=_.Q(this.hostElement).querySelector("#engagement-panel-scrim");W?O.addEventListener("tap",_.Ii(this,this.onEngagementPanelScrimClick_)):O.removeEventListener("tap",_.Ii(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var O=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var b=this.getPageScrollingElement(),T=this.getScrollTop(),L=T+b.clientHeight-56;if(O<T+56)O-=56;else if(W>L)O=W-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.e("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.Sp().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,O,b){if(this.active&&this.trackEngagementPanelVisibility&&!_.Ux2.includes(b)){if(O==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback)if(this.onSetPlaylistCollapsed(!0),_.TU(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]),_.e("kevlar_single_panel_fullscreen")){var T=_.iq().resolve(_.P$);this.visiblePanelIdentifiers_.forEach(function(L){L!==b&&T.hidePanel(L)})}this.visiblePanelIdentifiers_.add(b)}O!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&O!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,O,b){return W||O||this.enableFullBleedSingleColumnDefaultPlayer&&!b},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,O){return!W&&O},
updatePanelsLocation:function(){if(_.e("web_watch_enable_fs_squeezeback_panels")){var W=_.Q(this.hostElement).querySelector("#below"),O=_.Q(this.hostElement).querySelector("#panels"),b=_.Q(this.hostElement).querySelector("#chat-container"),T=_.Q(this.hostElement).querySelector("#panels-full-bleed-container"),L=_.Q(this.hostElement).querySelector("#secondary-inner");this.fullscreen||this.theater&&this.iMaxTheaterMode?(T.appendChild(O),T.appendChild(b)):this.isTwoColumns_?(_.rj(L,O),_.rj(L,b)):(W.appendChild(O),
W.appendChild(b))}},
swatcherooUpdatePanelsLocation:function(W,O,b,T,L,h){if(this.is==="ytd-watch-grid"){O=W&&!O;this.swatcherooSplitScroll&&(O?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));b=_.Q(this.hostElement).querySelector("#panels");var Z=_.Q(this.hostElement).querySelector("#playlist"),a=_.Q(this.hostElement).querySelector("#fixed-secondary"),m=_.Q(this.hostElement).querySelector("#fixed-below"),
w=_.Q(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),A=_.Q(this.hostElement).querySelector("#chat-container");h&&(W?a.appendChild(b):m.appendChild(b));L?W?a.appendChild(A):m.appendChild(A):_.v1(A,w);T?W?a.appendChild(Z):m.appendChild(Z):_.v1(Z,w);this.swatcherooSplitScroll&&(W=_.Q(this.hostElement).querySelector("#secondary"),T=_.Q(this.hostElement).querySelector("#columns"),L=_.Q(this.hostElement).querySelector("#fixed-columns-secondary"),O?L.appendChild(W):
T.appendChild(W))}},
computeMetadataSkinnyMode:function(W,O,b){return this.is!=="ytd-watch-grid"?!1:W?b:O},
computeWatchWhilePanelsActive:function(W,O){return W||O},
computeNoBorderOnChat:function(W){return _.e("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,O){return W&&!O},
computePanelExpanded:function(W,O,b){return W||O||b},
computeSqueezeback:function(W,O,b){if(_.e("web_watch_enable_fs_squeezeback_panels")){var T=this.iMaxTheaterMode&&this.theater;return(W||O)&&(b||T)}},
computeSwatcherooSqueezeback:function(W,O,b){return this.is!=="ytd-watch-grid"||_.e("ww_squeezeback_killswitch")?!1:W&&O&&b},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(W){_.FL(this).getPlayerPromise().then(function(O){var b;(b=O.changeMarkerVisibility)==null||b.call(O,_.P(W,_.ti).isVisible||!1,_.P(W,_.ti).entityKeys||[],_.P(W,_.ti).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.uv().dispatch(_.Xf8(W.detail))},
onSetPlaylistCollapsed:function(W){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!W)},
provideRenderingData:function(W,O){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=O;break;case "PRIMARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=O);this.videoPrimaryInfoRendererValue=O==null?void 0:O.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=O);this.videoSecondaryInfoRendererValue=O==null?void 0:O.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
O;break;case "CLARIFICATION":this.clarifyBoxValue=O;break;case "LIVE_CHAT":this.conversationBar=O;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=O;break;case "PLAYLIST":this.externalPlaylistData_=O!=null?O:{};break;case "MERCH_SHELF":this.merchShelfValue=O==null?void 0:O.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=O;break;case "TICKET_SHELF":this.ticket=O;break;case "OFFER_MODULE":this.offerModule=O;break;case "LIMITED_STATE":this.limitedStateValue=
O;break;case "DONATION_SHELF":this.donation=O;break;case "ALERTS":this.alertsValue=O;break;case "COMMENTS":this.comments=O;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=O;break;case "ENGAGEMENT_PANELS":this.engagementPanels=O;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=O;break;case "RICH_GRID_RENDERER":this.richGridRendererData=O;break;case "EXPANDABLE_METADATA":this.expandableMetadata=O;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
O}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.iq().resolve(_.xq).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var PWP;_.ehZ=function(W){return W.shorts.isShortsActive};
_.pU2=function(W){return W.findIndex(function(O){return PWP.indexOf(O.tagName)>-1})>-1};
_.RhR=function(W){return _.Tc({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:W}})};
_.K3B=function(){var W=_.iq().resolve(_.aL);_.ro8(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(W.isFullscreenEnabled()?_.Wg(document.documentElement):_.jn8(document.documentElement))};
PWP=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.cr=new Map;_.cr.set(32,59972);_.cr.set(27,50765);_.cr.set(70,60102);_.cr.set(76,60221);_.cr.set(77,60222);_.cr.set(74,60223);_.cr.set(84,60224);_.cr.set(38,61941);_.cr.set(40,61942);_.cr.set(73,62521);_.cr.set(67,62522);_.cr.set(80,63390);_.cr.set(78,63397);_.cr.set(75,59972);_.cr.set(188,63385);_.cr.set(190,63384);_.cr.set(36,63387);
_.cr.set(35,63386);_.cr.set(37,63388);_.cr.set(39,63389);_.cr.set(79,63423);_.cr.set(87,63424);_.cr.set(107,63426);_.cr.set(109,63425);_.cr.set(65,63428);_.cr.set(83,63430);_.cr.set(68,63429);_.cr.set(221,63431);_.cr.set(219,63432);_.cr.set(97,63439);_.cr.set(98,63440);_.cr.set(99,63441);_.cr.set(100,63442);_.cr.set(101,63443);_.cr.set(102,63444);_.cr.set(103,63445);_.cr.set(104,63446);_.cr.set(105,63447);_.FQ=new Map;_.FQ.set(80,63390);_.FQ.set(78,63397);_.FQ.set(188,63400);_.FQ.set(190,63401);
_.FQ.set(191,60765);_.FQ.set(13,247917);_.yi=new Map;_.WE=new Map;
}catch(e){_._DumpException(e)}
try{
var P75,KjZ,v4k,g42;_.XDZ=function(W){return W.ui.guideIsVisibleButNotPersistent};
_.UI9=function(W){return W.ui.tabGesturesIsActive};
_.ld1=function(){var W=_.dO("service_worker_scope");try{return navigator.serviceWorker.getRegistration(W)}catch(O){return Promise.reject(O)}};
_.eD1=function(W){return!(!W||!W.pushManager)};
P75=function(){return _.ld1().then(_.eD1).catch(function(){return!1})};
_.pD2=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?P75():Promise.resolve(!1)};
_.RD2=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
KjZ=function(){var W,O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,_.lh.getInstance(),2);case 2:W=T.yieldResult;if(!W){O=void 0;T.jumpTo(3);break}return _.Y(T,W.get("lmqf"),4);case 4:O=T.yieldResult;case 3:switch((b=O)||(b="SD"),b){case "HD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return T.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
v4k=function(W){var O,b,T;return _.I(function(L){if(L.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.e("disable_av1_setting")){var h=window.localStorage["yt-player-av1-pref"];h=h==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":h==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else h="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(O=W===h)return L.jumpTo(2);T=b=W;return _.Y(L,KjZ(),3)}L.nextAddress!=2&&(O=T===L.yieldResult);return L.return(O)})};var o48;var QQg=_.U_.IronButtonState,kbU=(0,_.E9)(HTMLElement);
_.v_({_template:function(){if(o48!==void 0)return o48;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;g42===void 0&&(g42=document.createElement("template"));var T=g42;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return o48=W},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[QQg,_.Au,_.ls,_.pr],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(W){var O=(0,_.X2)(this);O.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:W});O.shadowRoot.appendChild(W);return kbU.prototype._attachDom.call(this,W)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var W=this.contentElement;W&&W.selectedItem&&this._setSelectedItem(W.selectedItem)},
get contentElement(){for(var W=_.Rs(this.$.content).getDistributedNodes(),O=0,b=W.length;O<b;O++)if(W[O].nodeType===Node.ELEMENT_NODE)return W[O]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(W){this._setSelectedItem(W.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(W){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(W)===this&&this.open()},
_selectedItemChanged:function(W){var O="";W?O=W.label||W.getAttribute("label")||W.textContent.trim():O="";this.value=O;this._setSelectedItemLabel(O)},
_computeMenuVerticalOffset:function(W,O){return O?O:W?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var W=this.opened?"true":"false",O=this.contentElement;O&&O.setAttribute("aria-expanded",W)}});_.qS=new _.J("navigateAction");var sQR=new _.J("formRenderer");var ny=function(){var W=_.A1.apply(this,arguments)||this;W.showInput=!1;return W};
_.R(ny,_.A1);_.d=ny.prototype;_.d.detached=function(){this.showInput&&window.removeEventListener("click",_.Ii(this,this.closeOnOutsideClick_))};
_.d.stopPropagation_=function(W){this.showInput&&W.stopPropagation()};
_.d.closeOnOutsideClick_=function(W){this.closeOnOutsideClickCondition(W)&&(this.showInput=!1,window.removeEventListener("click",_.Ii(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.d.closeOnOutsideClickCondition=function(){return!0};
_.d.closeOnOutsideClickHandler=function(){};
_.d.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.Ii(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.d.openOnClickHandler=function(){};
_.d.showInputChanged=function(){};
_.d.setShowInput=function(W){this.showInput=W};
ny.prototype.setShowInput=ny.prototype.setShowInput;ny.prototype.showInputChanged=ny.prototype.showInputChanged;ny.prototype.openOnClickHandler=ny.prototype.openOnClickHandler;ny.prototype.openOnClick_=ny.prototype.openOnClick_;ny.prototype.closeOnOutsideClickHandler=ny.prototype.closeOnOutsideClickHandler;ny.prototype.closeOnOutsideClickCondition=ny.prototype.closeOnOutsideClickCondition;ny.prototype.closeOnOutsideClick_=ny.prototype.closeOnOutsideClick_;ny.prototype.stopPropagation_=ny.prototype.stopPropagation_;
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ny.prototype,"showInput",void 0);_.t([_.ai("click"),_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ny.prototype,"stopPropagation_",null);_.t([_.m5("showInput"),_.N("design:type",Function),_.N("design:paramtypes",[Boolean]),_.N("design:returntype")],ny.prototype,"showInputChanged",null);ny=_.t([_.XT()],ny);_.BCP=[ny.prototype];var rvD;var DIP;var fy=function(){return _.n.apply(this,arguments)||this};
_.R(fy,_.n);_.d=fy.prototype;_.d.computePreselectedOption=function(W,O){return O===this.itemSelected_?W:void 0};
_.d.dataChanged_=function(){var W=this;this.preselectedSubreason=this.itemSelected_=-1;var O;(O=this.data)!=null&&O.key&&_.My(this,function(){var b,T=Number((b=W.data)==null?void 0:b.key);!Number.isNaN(T)&&(W.itemSelected_=T,b=(b=(W.data.items||[])[T])&&b.optionSelectableItemRenderer&&b.optionSelectableItemRenderer.preselectedIndex)&&(W.preselectedSubreason=b)})};
_.d.isSubReasonHidden_=function(W,O){return W!=O};
_.d.onTopItemSelected_=function(W,O){for(var b=_.Q(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),T=0,L=b.length;T<L;T++)b[T].select(0);_.jx(this.hostElement,"yt-report-form-update",[O.item.value]);W.stopPropagation()};
_.d.onItemSelected_=function(W,O){_.jx(this.hostElement,"yt-report-form-update",[O.item.value]);W.stopPropagation()};
_.d.getItem_=function(W){return W.serviceItem?W.serviceItem:W.navigationItem?W.navigationItem:W.optionSelectableItemRenderer?W.optionSelectableItemRenderer:null};
_.d.computeText_=function(W){return(W=this.getItem_(W))?this.ytRendererBehavior.getSimpleString(W.text):null};
_.d.validate=function(){return this.itemSelected_!==-1};
_.d.computeAriaLabel_=function(W){var O=_.NX(W.text);(W=W.accessibility&&W.accessibility.accessibilityData&&W.accessibility.accessibilityData.label)&&(O+=". "+W);return O};
_.d.computeItemSelected_=function(W){return W};
_.d.preventSelection_=function(W){W.stopPropagation();this.tooltipTapped=!0};
_.d.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.d.updateItemSelectedFromBinding=function(W){this.itemSelected_=W.detail.value};
_.d.save=function(){var W;this.validate()&&(W=this.data)!=null&&W.items&&(W=this.data.items[this.itemSelected_],W!=null&&W.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(W.optionSelectableItemRenderer.submitEndpoint)||_.da(this.hostElement,[W.optionSelectableItemRenderer.submitEndpoint])))};
fy.prototype.onPaperRippleTransitionEnd_=fy.prototype.onPaperRippleTransitionEnd_;fy.prototype.dataChanged_=fy.prototype.dataChanged_;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],fy.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fy.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fy.prototype,"data",void 0);_.t([_.C({value:-1}),_.N("design:type",Number)],fy.prototype,"itemSelected_",void 0);
_.t([_.C({computed:"computeItemSelected_(itemSelected_)"}),_.N("design:type",Number)],fy.prototype,"value",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],fy.prototype,"restoreFocusOnClose",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],fy.prototype,"tooltipTapped",void 0);_.t([_.C({value:-1}),_.N("design:type",Number)],fy.prototype,"preselectedSubreason",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fy.prototype,"dataChanged_",null);_.t([_.ai("transitionend"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fy.prototype,"onPaperRippleTransitionEnd_",null);fy=_.t([_.sl({is:"yt-options-renderer",disableElementRegistration:!0})],fy);
_.H(fy,"yt-options-renderer",function(){if(DIP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;rvD===void 0&&(rvD=document.createElement("template"));var T=rvD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);DIP=W}W=DIP;return W},{mode:2});var xI9;var zD9;var C7R;var qBg;var n4U;var fd1;var Gf=function(){return _.n.apply(this,arguments)||this};
_.R(Gf,_.n);Gf.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Gf.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Gf.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.LV(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.Q(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:W?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.jx(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Gf.prototype,"ytRendererBehavior",void 0);_.t([_.C({observer:"onDataChanged"}),_.N("design:type",Object)],Gf.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],Gf.prototype,"componentTitle",void 0);_.t([_.El("#thumbnail"),_.N("design:type",Object)],Gf.prototype,"thumbnail",void 0);Gf=_.t([_.sl({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Gf);
_.H(Gf,"yt-enrolled-contact-renderer",function(){if(fd1===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;n4U===void 0&&(n4U=document.createElement("template"));var T=n4U;b.call(O,T.content.cloneNode(!0),W.content.firstChild);fd1=W}W=fd1;return W},{mode:2});var Gbg;var Hzg;var Hp=function(){return _.n.apply(this,arguments)||this};
_.R(Hp,_.n);Hp.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Hp.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Hp.prototype.onTap=function(W){if(this.hostElement.classList.contains("selected")||_.LV(this.hostElement,"yt-share-panel-can-select-contact-action"))W&&W.detail&&(W.detail.x||W.detail.y)&&_.Q(this.hostElement).querySelector("#target").blur(),(W=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),W={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:W?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.jx(this.hostElement,"yt-share-panel-select-contact-action",[W])};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.t([_.C({observer:"onDataChanged"}),_.N("design:type",Object)],Hp.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.N("design:type",String)],Hp.prototype,"componentTitle",void 0);_.t([_.El("#thumbnail"),_.N("design:type",Object)],Hp.prototype,"thumbnail",void 0);Hp=_.t([_.sl({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Hp);
_.H(Hp,"yt-suggested-contact-renderer",function(){if(Hzg===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;Gbg===void 0&&(Gbg=document.createElement("template"));var T=Gbg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Hzg=W}W=Hzg;return W},{mode:2});var tw=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-share-panel-reset-action":"onReset"};return W};
_.R(tw,_.n);tw.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"}}}}}};
tw.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.jx(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
tw.prototype.onReset=function(){for(var W=_.Q(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),O=W.length-1;O>=0;O--)W[O].classList.toggle("selected")};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({observer:"onDataChanged"}),_.N("design:type",Object)],tw.prototype,"data",void 0);
tw=_.t([_.sl({is:"yt-contact-section-renderer",disableElementRegistration:!0})],tw);
_.H(tw,"yt-contact-section-renderer",function(){if(qBg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;C7R===void 0&&(C7R=document.createElement("template"));var T=C7R;b.call(O,T.content.cloneNode(!0),W.content.firstChild);qBg=W}W=qBg;return W},{mode:2});var $C=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return W};
_.R($C,_.n);_.d=$C.prototype;_.d.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"}}}};
_.d.onYtRefreshFormCommand=function(W){var O;(W=_.P((O=_.P(W,_.wkH))==null?void 0:O.formRenderer,sQR))&&this.set("data",W)};
_.d.reset=function(){var W=_.Q(this.hostElement).querySelector("#fields").children;W=_.S(W);for(var O=W.next();!O.done;O=W.next())O=O.value,O.reset&&O.reset()};
_.d.getForm=function(){var W={},O=_.Q(this.hostElement).querySelector("#fields").children;O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;if(!b.validate())return null;W[b.data.key]=b.value}return W};
_.d.submitFormFields=function(){if(this.fields)for(var W=_.S(this.fields),O=W.next();!O.done;O=W.next())O=O.value,O.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?O.save():O.nodeName==="YT-OPTIONS-RENDERER"&&O.save()};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],$C.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$C.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],$C.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$C.prototype,"data",void 0);_.t([_.wi("#fields > *"),_.N("design:type",Array)],$C.prototype,"fields",void 0);
$C=_.t([_.sl({is:"yt-form-renderer",disableElementRegistration:!0})],$C);
_.H($C,"yt-form-renderer",function(){if(zD9===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;xI9===void 0&&(xI9=document.createElement("template"));var T=xI9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zD9=W}W=zD9;return W},{mode:2});var tLk;var VO=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return W};
_.R(VO,_.n);VO.prototype.onCheckboxChange=function(W){this.data&&(W=(this.checked=_.Md(W).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})};
VO.prototype.handleUpdateCheckboxCommand=function(W){(W=_.P(W,_.BQv))&&this.data&&this.data.id===W.id&&(this.set("data.disabled",W.disabled),this.set("data.title",W.title))};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],VO.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VO.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],VO.prototype,"checked",void 0);VO=_.t([_.G({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],VO);
_.H(VO,"ytd-settings-checkbox-renderer",function(){if(tLk!==void 0)return tLk;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return tLk=W},{mode:1});var $IR;var NS=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return W};
_.R(NS,_.n);NS.prototype.dataChanged=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return W.radio.removeAttribute("checked"),!W.data||!W.data.id||W.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.RD2()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(O=W.data&&W.data.id)?_.Y(b,v4k(W.data.id),4):b.jumpTo(3):(W.set("data.hidden",!0),b.jumpTo(0));b.nextAddress!=3&&(O=b.yieldResult);O&&_.jx(W.hostElement,"yt-select-settings-radio-option",[W.data.id]);_.aD(b)})};
NS.prototype.onButtonChanged=function(W){_.Md(W).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.jx(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
NS.prototype.onSelectOption=function(W){this.data&&this.data.id&&(this.data.id===W?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
NS.prototype.dataChanged=NS.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],NS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.El("#radio"),_.N("design:type",Object)],NS.prototype,"radio",void 0);_.t([_.C(),_.N("design:type",Object)],NS.prototype,"data",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],NS.prototype,"dataChanged",null);NS=_.t([_.G({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],NS);
_.H(NS,"ytd-settings-radio-option-renderer",function(){if($IR!==void 0)return $IR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $IR=W},{mode:1});var VLR;var MS=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return W};
_.R(MS,_.n);
MS.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"}}}};
MS.prototype.handleUpdateTextCommand=function(W){(W=_.P(W,_.r$f))&&this.data&&this.data.id===W.id&&this.set("data",W)};
MS.prototype.handleUpdateConnectedAppRendererCommand=function(W){if(_.P(W,_.z6v)&&this.data){var O,b;if(W=(O=_.P(W,_.z6v))==null?void 0:(b=O.newConnectedAppRenderer)==null?void 0:b.connectedAppRenderer)this.data=W}};
MS.prototype.computeConnectedAppStyle=function(W){return W.style?W.style.toLowerCase().replace(/_/g,"-"):""};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],MS.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MS.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.N("design:type",String)],MS.prototype,"connectedAppStyle",void 0);MS=_.t([_.G({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],MS);
_.H(MS,"ytd-connected-app-renderer",function(){if(VLR!==void 0)return VLR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return VLR=W},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.rD("iuT5Oc");

_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("L3n37");
var t1B=function(W){return W.watch.isLearningJourneyActive},$xD=_.gd(115994),V1B=_.gd(115993),Nxk=function(W,O,b){var T=this;
var L=b.dragDownAction;this.layer=0;this.JSC$20479_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.JSC$20479_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return T.dragDownAction()}}}};
this.fullscreen=!1;var h=_.A4();_.Tn(h,$xD,this.layer);_.Tn(h,V1B,this.layer);this.dragDownAction=function(){L();_.fd(h,{visualElement:T.fullscreen?$xD:V1B})};
this.gesture=new _.Za(W,O,this.JSC$20479_watchConfig,"pandown");this.attach()};
Nxk.prototype.attach=function(){this.gesture.attach()};
Nxk.prototype.detach=function(){this.gesture.detach()};
Nxk.prototype.update=function(W){this.fullscreen=W;this.gesture.config=W?this.JSC$20479_watchFullScreenConfig:this.JSC$20479_watchConfig};var M11=function(W){_.Jr.call(this);var O=this;this.rootElement=W;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return O.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(b){O.initOrDisposeActiveModules(b)}));
this.onAttached()};
_.R(M11,_.Jr);_.d=M11.prototype;_.d.getRoot=function(){return this.rootElement};
_.d.getElement=function(W){return this.rootElement.getElement(W)};
_.d.setPlayerResponse=function(W){this.playerResponse=W;this.publish("PLAYER_RESPONSE_UPDATED",W)};
_.d.getPlayerResponse=function(){return this.playerResponse};
_.d.setWatchNextResponse=function(W){this.watchNextResponse===W?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=W,this.publish("WATCH_NEXT_RESPONSE_UPDATED",W))};
_.d.getWatchNextResponse=function(){return this.watchNextResponse};
_.d.registerActionHandler=function(W,O){var b=this;if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var T={};_.Vj(_.$G.getInstance(),(T[W]=O,T),this.getRoot())}else this.actionHandlers.has(W)||(this.actionHandlers.set(W,[]),T={},_.Vj(_.$G.getInstance(),(T[W]=function(){var L=_.PD.apply(0,arguments);return(b.actionHandlers.get(W)||[]).map(function(h){return h.apply(null,_.PG(L))})},T),this.getRoot())),this.actionHandlers.get(W).push(O)};
_.d.unregisterActionHandler=function(W){if(_.e("web_watch_controller_reg_multiple_handlers_killswitch")){var O={};_.NJ(_.$G.getInstance(),(O[W]=!0,O),this.getRoot())}else(O=this.actionHandlers.get(W))?(O.pop(),O.length===0&&(O={},_.NJ(_.$G.getInstance(),(O[W]=!0,O),this.getRoot()),this.actionHandlers.delete(W))):_.z5(new _.pu("Attempted to unregister an action handler which is not registered.",W))};
_.d.addPageDisposeJob=function(W){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.NP(this.rootElement.pageDisposeJobs,W)};
_.d.removePageDisposeJob=function(W){this.rootElement.pageDisposeJobs&&_.c2(this.rootElement.pageDisposeJobs,W)};
_.d.dispatchEvent=function(W,O){_.bX(this.rootElement,W,O)};
_.d.provideRenderingData=function(W,O){this.rootElement.provideRenderingData(W,O)};
_.d.scrollWatchTo=function(W,O){var b;(b=this.watchScrollManager)==null||b.scrollWatchTo(W,O)};
_.d.focusOnPlayer=function(){var W=this.getElement("PLAYER");_.My(W,function(){if(W&&W.firstElementChild){var O=W.querySelector(".html5-video-player");O&&(_.J5(_.iq().resolve(_.Qa)),O.focus())}else _.z5(Error("km"))})};
_.d.updateCinematicFullscreenConfig=function(){var W=!!this.rootElement.theater,O=!!this.rootElement.fullscreen,b;(b=this.watchCinematicManager)==null||_.t08(b,O,W)};
_.d.subscribeToActiveChanged=function(W,O){O=O===void 0?!0:O;var b=_.mr(_.uv(),t1B,function(T){W(T)});
O&&W(t1B(_.uv().getState()));return b};
_.d.isActive=function(){return t1B(_.uv().getState())};
_.d.onAttached=function(){var W=_.e("external_fullscreen");_.e("use_unified_flag_accessor")&&(W=_.iq().resolve(_.oT2).retriever.getFlag(_.G8U));(W||_.qC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.d.initPersistentModules=function(){if(_.e("kevlar_watch_flexy_theater_manager")){var W=new _.XcR(this);_.a8(this,W)}W=new _.biB(this);_.a8(this,W);W=new _.oY(this);_.a8(this,W);W=new _.xm(this);_.a8(this,W);W=new _.s9N(this);_.a8(this,W);W=new _.km(this);_.a8(this,W);_.e("kevlar_watch_flexy_playlist_manager")&&(W=new _.rfk(this),_.a8(this,W))};
_.d.initOrDisposeActiveModules=function(W){W?(this.watchScrollManager=new _.Co(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.Af8(this)),this.activeModules.push(new _.exk(this)),this.activeModules.push(new _.fag(this)),this.activeModules.push(new _.zt(this)),_.e("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Ktk(this)),this.activeModules.push(new _.pJ1(this)),_.e("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.Hi5(this)),
_.e("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Dj7(this)),_.e("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.nM5(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.e("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.gL9(this)),_.e("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Oik(this)),W=_.e("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.e("kevlar_watch_flexy_comments_manager")&&!W&&this.activeModules.push(new _.J25(this)),_.e("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Ql(this)),this.activeModules.push(new _.vM8(this)),this.activeModules.push(new _.UYD(this)),_.e("web_enable_timely_actions")&&this.activeModules.push(new _.k47(this)),_.e("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.yZD(this)),_.e("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tIU(this)),
_.e("web_fullscreen_video_action_bar")&&this.activeModules.push(new _.QSk(this)),_.e("web_player_rtr_ctrls")&&this.activeModules.push(new _.OnU(this))):(_.cQ(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.d.disposeInternal=function(){_.Jr.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Jq.Object.defineProperties(M11.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var uYk={},Jhg=["learning-journey-engagement-panel","PAlearning_chat"];
uYk.YtdLearningJourneyWatchBehavior=[_.F.YtRendererBehavior,_.Hw.YtPlayerListenerBehavior,_.y4.YtRendererstamperBehavior,_.WP.YtActionHandlerBehavior,_.vJ.YtPageBehavior,_.mx.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 _.qC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.e("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 _.qC("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 _.e("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.e("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 _.Lu("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.Lu("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.e("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("web_watch_rounded_player_large")||_.e("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 _.e("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.e("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.e("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 _.e("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.sG(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.sG(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var W=this;this.watchController=void 0;this.pageDisposeJobs=[function(){W.showMetadataPlaceholder_()},
function(){_.e("web_watch_dont_clear_comments")||W.clearComments_()},
function(){W.clearPlayerAds_()},
function(){W.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.e("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.e("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.PYB(function(){return _.FL(W)},this.hostElement);
this.pageDisposeJobs.push(function(){W.youThereManager_.reset()});
_.e("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){W.resetFullerscreenEduButtonForNewPlayback_()}));
_.e("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.bs;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;_.e("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.e("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));_.e("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.Ii(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(W){W&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:W}),W.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(W){_.e("kevlar_watch_flexy_theater_manager")&&(this.theater=W,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.e("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(W){!_.e("kevlar_watch_while_v2")&&!_.e("web_watch_pip")||W||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(W){this.active!==void 0&&(this.fullscreen=W,_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(W){this.active!==void 0&&(_.bX(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.e("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(W>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(W){this.initCsi_();this.updatePageData_(W)},
updatePageData_:function(W){var O=this;if(W)if(this.data===W){this.onPageLoadWithSameData_();var b;(b=this.watchController)==null||b.setWatchNextResponse(this.data)}else this.data=W;this.playlist&&_.k0({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Bg("nw");this.loading=!1;_.KB(_.sF,function(){O.initDclkstatus_();var T,L=((T=O.player)==null?void 0:T.getVideoData().cpn)||"";_.hyg(function(h,Z){_.XU8(h,Z,L)})})},
onPageLoadWithSameData_:function(){_.e("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 W=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!W);this.set("loadingData.playlistLoading",W&&W!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),W=this.watchNextSkeletonEl_.firstElementChild;W;)W.classList.remove("hidden"),W=W.nextElementSibling;if(_.e("kevlar_watch_frame0_loading_state")){var O,b,T;W=(O=this.loadingData)==null?void 0:(b=O.endpoint)==null?void 0:(T=b.watchEndpoint)==null?void 0:T.videoId;var L;W&&(L="https://i.ytimg.com/vi/"+W+"/frame0.jpg");_.Q(this.hostElement).querySelector("#player").style.backgroundImage=L?"url("+L+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var W=_.Q(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&W&&(W.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var O,b;(b=(O=this.watchMetadata).updateSentimentBarWidth)==
null||b.call(O);var T,L;(L=(T=this.watchMetadata).resize)==null||L.call(T)}_.e("kevlar_watch_frame0_loading_state")&&(_.Q(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(W){var O=_.Q(this.hostElement).querySelector(W);O?_.OO(O,!1):_.z5(new _.pu("Overscroll monitor not found for component: ",W))},
removeSplitScrollMouseTrap:function(W){var O=_.Q(this.hostElement).querySelector(W);O?_.iX(O):_.z5(new _.pu("Disposal component for  overscroll monitoring not found: ",W))},
onLoadingChanged_:function(W){W?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(W){var O=this;W?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.sF.addLowPriorityJob(function(){O.onWindowResized_(_.UP(!0))})},
updateTheaterModeState_:function(W){if(!_.e("kevlar_watch_flexy_theater_manager")){W=W||this.fullWindowMode_;if(this.theater!==void 0||W)this.theater=W;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();W&&_.l9Z()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var W=this.theater;_.e("external_fullscreen")&&this.fullscreen&&(W=!0);W=W?_.Q(this.hostElement).querySelector("#player-full-bleed-container"):_.Q(this.hostElement).querySelector("#player-container-inner");var O=this.getPlayerContainer(),b=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip");O.parentElement!==W&&(b&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.FL(this).appendTo(W,O),W.appendChild(_.Q(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var W=this;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.iq().resolve(_.xq).deactivate(),2);W.updatePlayerLocation();_.aD(O)})},
updateCinematicsLocation:function(){var W=this.getElement("CINEMATICS");if(W){var O=this.getCinematicsLocationContainer();W.parentElement!==O&&O.appendChild(W);var b;(b=this.watchController)==null||b.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Q(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Q(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(W,O){var b=document.documentElement.hasAttribute("dark"),T=b&&_.e("web_cinematic_theater_mode"),L=b&&_.e("web_cinematic_fullscreen");b=!b&&this.cinematicLightTheme;return W&&T||O&&L||(O||W)&&b},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data);_.e("kevlar_watch_flexy_comments_manager")||this.initComments_();_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.iq().resolve(_.kP).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.e("web_watch_start_chat_in_theater_mode")){var O,
b,T;if((O=this.data)==null?0:(b=O.contents)==null?0:(T=b.twoColumnWatchNextResults)==null?0:T.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var L,h;((L=this.data)==null?0:(h=L.contents)==null?0:h.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(W){var O;(O=this.watchController)==null||O.setPlayerResponse(this.playerData);W&&W.playabilityStatus&&(O=this.isVideoPlayable_(W.playabilityStatus,this.getPlayerOverlays_(this.data)),W=this.isLiveStreamOffline_(W.playabilityStatus),O&&!W||_.My(this,function(){_.Bg("pbu")}));
this.setPlayerAds_();_.TU(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(W){_.uv().dispatch(_.Tc({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));W?this.activate_():this.deactivate_()},
attached:function(){var W=this;this.watchController=new M11(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.e("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var O=_.FL(this);_.e("kevlar_disable_prepare_player")||O.preparePlayer();_.e("kevlar_watch_flexy_playlist_manager")||_.iq().resolve(_.kP).setPlayer(O);this.updatePageMediaQueries();O={"--ytd-watch-flexy-scrollbar-width":_.og()+
"px"};!_.Lu("kv_pl_mx_sz_ks")&&_.Lu("kevlar_watch_max_player_width")&&(O["--ytd-watch-flexy-max-player-width-wide-screen"]=_.LkN+"px");_.Lu("kevlar_watch_flexy_metadata_height")&&(O["--ytd-watch-flexy-space-below-player"]=_.dO2+"px");this.safeUpdateStyles(O);_.e("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new Nxk(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return W.onPlayerTouchPanDown_()}}));
_.e("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Q(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var W=_.og(),O=_.x5+W,b=O;this.fixedPanels&&(O+=_.TRU);var T=657+W;W=1327+W;_.Q(this.hostElement).querySelector("#two-column-query").query="(min-width: "+O+"px)";_.Q(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(T+"px), (min-height: 630px) and (min-width: ")+(O+"px) and (max-width: ")+(W+"px)");_.Q(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(W+"px)");_.Q(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+b+"px)"},
calculateCurrentPlayerSize_:function(){var W=_.Q(this.hostElement).querySelector("#miniplayer-bar").firstChild;return W&&W.active||this.theater||_.e("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.hU(NaN,NaN):_.Hz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Hz(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.JU(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var W=this;this.onWindowResized_(_.UP());_.e("browse_skeleton_removal_on_watch_killswitch")||_.qC("IS_SHELL_LOAD")&&_.XpD();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var O=_.FL(this);O.addEventListener("yt-player-updated",_.Ii(this,this.onPlayerUpdated_));O.getPlayerPromise().then(function(b){W.playerApiReady_(b)});
_.e("kevlar_watch_flexy_playlist_manager")||(O=_.iq().resolve(_.kP),_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&O.addEventListener("yt-navigate",_.Ii(this,this.onYtNavigate_)),O.setPlaylistComponent(_.Q(this.hostElement).querySelector("#playlist")),O.addEventListener("yt-playlist-data-updated",_.Ii(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.sF.addLowPriorityJob(function(){_.bX(W.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.FL(this).removeEventListener("yt-player-updated",_.Ii(this,this.onPlayerUpdated_));if(!_.e("kevlar_watch_flexy_playlist_manager")){var W=_.iq().resolve(_.kP);_.e("kevlar_watch_observe_playlist_navigations_killswitch")&&W.removeEventListener("yt-navigate",_.Ii(this,this.onYtNavigate_));W.cancelVideoSkip();W.removeEventListener("yt-playlist-data-updated",_.Ii(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.e("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.bX(this.hostElement,"yt-autonav-pause-player",!1);W=_.y3();_.e("kevlar_exit_fullscreen_leaving_watch")&&W&&_.Wg(W)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(W){this.player&&this.player.updateVideoData({rvs:W.rvs})},
getPageContents:function(W){return W&&W.contents&&W.contents.twoColumnWatchNextResults&&W.contents.twoColumnWatchNextResults.results&&W.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(W){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",W)},
onRetrieveLocation_:function(W,O){O.hasComments?O.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):O.locationRetrieved("/related_ajax",void 0);W.stopPropagation()},
onSubscriptionChanged_:function(W,O){this.player&&(O?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.Ki("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Q(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Q(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(W){this.player=W;this.setPlayerState(W.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.e("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.e("kevlar_unified_player")||_.e("kevlar_player_new_bootstrap_adoption"))&&_.Ms()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(W,O){O=O===void 0?!0:O;_.y3()&&_.e("external_fullscreen")&&_.Wg(document.documentElement);this.theaterRequested_=W;O&&_.UT("wide",W?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.jx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.bX(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(W){_.CB(W,typeof this.player),this.player&&_.CB(W,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var W;((W=this.player)==null?0:W.isFullscreen())?this.player.toggleFullscreen():_.jx(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(W,O){return this.loading?O:!!Object.keys(W).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(W){if(W){W=_.S(W);for(var O=W.next();!O.done;O=W.next())O=O.value,O.youThereRenderer&&_.KSP(this.youThereManager_,O.youThereRenderer)}},
setPlaylistData_:function(W){return W||{}},
userEngagementConfigDataChanged_:function(W){if(W)if(W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var O=this.youThereManager_;_.by()<W.lowEngagementThresholdMs||_.QoR(O,!0)}else W.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.jx(this.hostElement,"yt-autonav-pause-user-engagement",[W])},
isPlayerUnavailable_:function(W,O,b){return!!W&&!this.isVideoPlayable_(W,b)&&!O},
getPlayerOverlays_:function(W){return(W==null?void 0:W.playerOverlays)||null},
isVideoPlayable_:function(W,O){if(!W)return!1;var b=W.status==="OK"||W.status==="LIVE_STREAM_OFFLINE",T=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",W)||this.get("errorScreen.ypcTrailerRenderer",W);W=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",W);var L;O=O==null?void 0:(L=O.playerOverlayRenderer)==null?void 0:L.gatedActionsOverlayRenderer;return!!b||!!T||!!W||!!O},
hasWatchNextResponseErrorRenderer:function(W){var O=this.getPageContents(W),b,T,L,h,Z;return!(W==null?0:(b=W.contents)==null?0:(T=b.twoColumnWatchNextResults)==null?0:T.secondaryResults)&&!!((L=O[0])==null?0:(h=L.itemSectionRenderer)==null?0:(Z=h.contents[0])==null?0:Z.backgroundPromoRenderer)},
isLiveStreamOffline_:function(W){return W?W.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(W,O,b){var T=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",O),L=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];L=_.e("web_no_skip_video_on_verification_checks")?(W==null?void 0:W.status)&&L.includes(W.status):W&&W.status==="AGE_CHECK_REQUIRED";var h=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",W);h==void 0&&(h=!0);!b||this.isVideoPlayable_(W,this.getPlayerOverlays_(O))||
T||L||!h||_.iq().resolve(_.kP).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.YE2()},
onPlayerFeedbackStartRequest_:function(W){_.jx(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:W}])},
onPlayerFeedbackArticleRequest_:function(W){_.jx(this.hostElement,"yt-help-dialog-requested",[W])},
onPlayerYpcContentRequest_:function(){var W,O,b,T,L,h,Z,a,m=((W=this.data)==null?NaN:(O=W.contents)==null?NaN:(b=O.twoColumnWatchNextResults)==null?NaN:(T=b.secondaryResults)==null?NaN:(L=T.secondaryResults)==null?NaN:(h=L.offerModule)==null?NaN:(Z=h.tvfilmOfferModuleRenderer)==null?NaN:(a=Z.actionButtons)==null?NaN:a.length)-1;W=[".offerButton.buttonRenderer.",".actionButtons."+(m>=0?m:0)+".buttonRenderer."];O=_.S(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(b=O.next();!b.done;b=O.next())for(b=b.value,T=_.S(W),L=T.next();!L.done;L=T.next())if(L="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+b+L.value,L=this.get(L+"navigationEndpoint",this.data)||this.get(L+"serviceEndpoint",this.data)||this.get(L+"command",this.data)){_.mw(L,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(W){_.bX(this.hostElement,"yt-autonav-pause-player",W)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(W){W()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(W){switch(W){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.bX(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(W)},
setPlayerState:function(W){_.uv().dispatch(_.klw(W))},
onPlayerSubscribe_:function(W){_.jx(this.hostElement,"yt-player-subscribe",[W])},
onPlayerUnsubscribe_:function(W){_.jx(this.hostElement,"yt-player-unsubscribe",[W])},
onPlayerAdYtShowToast_:function(W){_.jx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:W.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(W){if(W)return W},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(W){return!_.e("web_watch_move_summary_to_sd")&&!!W},
computeWatchMetadataRefresh:function(){return _.e("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var W,O,b,T;this.watchNextSecondaryResults=(W=this.data)==null?void 0:(O=W.contents)==null?void 0:(b=O.twoColumnWatchNextResults)==null?void 0:(T=b.secondaryResults)==null?void 0:T.secondaryResults}},
setRichGridRendererData:function(W){this.richGridRendererData=W},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var W,O=(W=this.data)==null?void 0:W.engagementPanels;if(O==null?0:O.length){W=null;O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;if(((T=b.engagementPanelSectionListRenderer)==null?void 0:T.targetId)==="engagement-panel-structured-description"){W=b;break}}var L,h,Z;W=(L=W)==null?void 0:(h=L.engagementPanelSectionListRenderer)==null?void 0:(Z=h.content)==null?void 0:Z.structuredDescriptionContentRenderer;if(W==null?0:W.items){L=
[];h=_.S(W.items);for(Z=h.next();!Z.done;Z=h.next()){Z=Z.value;if(!_.e("sd_horizontal_list_show_nav_killswitch")){var a=T=b=O=W=void 0,m=void 0,w=(W=Z.horizontalCardListRenderer)==null?void 0:(O=W.header)==null?void 0:(b=O.richListHeaderRenderer)==null?void 0:(T=b.navigationButton)==null?void 0:(a=T.buttonRenderer)==null?void 0:(m=a.command)==null?void 0:m.commandExecutorCommand;w&&w.commands&&(w.commands=w.commands.filter(function(A){return!_.P(A,_.eeN)}))}Z.expandableVideoDescriptionBodyRenderer||
Z.videoDescriptionHeaderRenderer||L.push(Z)}return{items:L}}}},
constructWarning_:function(W){return{text:_.VV(W),type:"WARNING"}},
isPlaShelfEnabled_:function(W){if((this.get("adPlacements",W)||[]).length)return!0;W=this.get("playerAds",W)||[];return!(!W.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",W[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var W=this;_.bX(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var O=this.getScrollTop()>0;this.gestures_&&(O?this.gestures_.detach():this.gestures_.attach());O!==this.showFullerscreenEdu_&&_.e("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=O,_.FL(this).getPlayerPromise().then(function(b){b.updateFullerscreenEduButtonVisibility(W.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.bX(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var W=this;this.commentsReady=!1;_.sF.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.KB(_.sF,function(){W.setComments_()},1E3)},
setComments_:function(){if(!_.e("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Bg("cmi");_.sF.cancelJob(this.setCommentsJobId_);var W=this.getPageContents(this.data);if(W&&W.length){W=_.S(W);for(var O=W.next();!O.done;O=W.next())if(O=O.value,this.get("itemSectionRenderer.sectionIdentifier",O)==="comment-item-section"){this.comments=O.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.bX(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.e("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.e("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Bg("cmc")},
doRemoveComments_:function(){this.comments={};_.e("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.sF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.sF.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(W,O){var b=_.P(O.endpoint,_.V3);b&&(!(O=this.get("data.currentVideoEndpoint.watchEndpoint"))||b.videoId!==O.videoId||b.playlistId&&b.playlistId!==O.playlistId||b.index!==void 0&&b.index!==O.index||typeof b.startTimeSeconds!=="number"||(W.stopPropagation(),this.setScrollTop(0),_.FL(this).getPlayerPromise().then(function(T){var L=b.startTimeSeconds;T.seekTo(L);T.wakeUpControls();L<T.getDuration()&&T.playVideo()})))},
updatePlayerStartTime_:function(){var W=_.yfU();"t"in W&&(W=_.mx2(W.t),this.player.seekTo(W,!0))},
updateTitleFromWatchNext:function(W){W=this.getPageContents(W);var O,b;(W=_.NX(W==null?void 0:(O=W[0])==null?void 0:(b=O.videoPrimaryInfoRenderer)==null?void 0:b.title))&&_.bX(this.hostElement,"yt-update-title",W)},
updateTitle_:function(W){W=this.get("videoDetails.title",W)||"";_.bX(this.hostElement,"yt-update-title",W)},
syncWithRemoteVideo_:function(W,O,b){if(this.active&&this.player){var T=this.player.getVideoData();if(T.video_id===b&&(b=T.list,_.e("polymer_enable_mdx_queue")&&b&&b.startsWith("RQ")&&(b=void 0),T.video_id!==W||b!=O)){var L;_.e("kevlar_player_watch_endpoint_navigation")?L=_.gD1(_.SE5(W,O)):L=this.buildWatchEndpoint_(W,O);_.bX(this.hostElement,"yt-navigate",{endpoint:L,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(W,O,b){return _.Or(W,O,b)},
initDclkstatus_:function(){_.ag7()},
attachWatchPageSkeleton_:function(){var W=document.querySelector("#watch-page-skeleton");if(W){var O=W.querySelector("#primary-info"),b=W.querySelector("#secondary-info"),T=W.querySelector("#related");O&&_.Q(this.hostElement).querySelector("#info-skeleton").appendChild(O);b&&_.Q(this.hostElement).querySelector("#meta-skeleton").appendChild(b);T&&(_.Q(this.hostElement).querySelector("#related-skeleton").appendChild(T),this.watchNextSkeletonEl_=T);_.Xu(W)}},
handlePlayerUpdated_:function(){_.FL(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(W,O){if(this.watchNextSkeletonEl_&&typeof O!=="undefined"){var b=this.watchNextSkeletonEl_.children,T=W&&W.indexSplices.length?W.indexSplices[0].index:0;W=Math.min(this.watchNextShownItems.length,b.length);O||(T=0,W=b.length);for(O=T;O<W;O++)b[O].classList.add("hidden")}},
onPlayerFullscreenChange_:function(W){_.e("external_fullscreen")||_.jx(this.hostElement,"yt-player-fullscreen",[W.fullscreen])},
onFullscreenChange_:function(W){this.fullscreen=W;this.gestures_&&this.gestures_.update(this.fullscreen);var O=_.FL(this);O.getPlayerPromise().then(function(b){b.setFauxFullscreen(!!_.y3())});
this.updateFullBleedElementLocations();W&&(O.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(W,O){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!O},
computeIsDonationShelfCollapsed_:function(W){return W},
computeShouldShowMerchShelf:function(W,O){return O&&!!W},
computeResponseHasComments:function(W){var O,b,T,L,h;return!!(W==null?0:(O=W.contents)==null?0:(b=O.twoColumnWatchNextResults)==null?0:(T=b.results)==null?0:(L=T.results)==null?0:(h=L.contents)==null?0:h.some(function(Z){var a;return(Z==null?void 0:(a=Z.itemSectionRenderer)==null?void 0:a.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(W,O){this.responseHasComments=this.computeResponseHasComments(this.data);return!!W&&!!Object.keys(W).length&&!O},
identity:_.GX,onWindowResized_:function(W){this.windowSize_=W;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.e("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(W){var O=this;W&&W.type!=="dataloaded"&&W.type!=="dataupdated"||_.FL(this).getPlayerPromise().then(function(b){var T=b.getPlayerState();T!==5&&T!==0&&(b=1/b.getVideoAspectRatio(),O.videoHeightToWidthRatio_!==b&&(O.videoHeightToWidthRatio_=b))})},
schedulePlayerSizeUpdate_:function(W){var O=this,b=_.e("kevlar_watch_while_v2")||_.e("web_watch_pip"),T=function(){if(O.watchMetadata){var L,h;(h=(L=O.watchMetadata).resize)==null||h.call(L)}_.FL(O).getPlayerPromise().then(function(Z){if(_.e("kevlar_set_internal_player_size")){if(!b||!O.isMiniplayerActive()){var a=O.calculateCurrentPlayerSize_();Z.setInternalSize(a.width,a.height)}}else Z.setSize(NaN,NaN);_.e("kevlar_watch_while")&&O.updateWatchWhileScrollThreshold_()})};
W?T():_.pp(_.sF,T)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(W){this.set("data.survey",W.detail)},
onYtShowSurveyCommand_:function(W){this.set("data.survey",_.P(W,_.ey2).survey)},
onDownloadedVideoDeleted:function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1){if(!O.active||(b=O.playerData)==null||!b.offlineState||O.videoId!==W)return L.return();(T=O.player)==null||T.stopVideo();_.IT().navigatingAwayFromWatchDeletedVideo=!0;_.mw(_.vcX,O.hostElement);return _.Y(L,_.IT().navigationFinishPromise,2)}_.IT().navigatingAwayFromWatchDeletedVideo=!1;_.aD(L)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var W;this.theater?W=_.kq(.5625*this.windowSize_.width,480,this.windowSize_.height-185):W=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==W&&(this.watchWhileScrollThreshold_=W,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var W=_.Q(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&W){var O=this.windowSize_.height>=624,b=this.active?this.getScrollTop():0;!W.active&&O&&b>=this.watchWhileScrollThreshold_?(W.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):W.active&&(!O||b<this.watchWhileScrollThreshold_&&!_.y3())&&(W.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(W,O){if(W!==!0||O!==void 0){W=!_.e("live_chat_over_engagement_panels");O=_.Q(this.hostElement).querySelector("#chat-container");var b=_.Q(this.hostElement).querySelector("#plj-sidebar"),T=_.Q(this.hostElement).querySelector("#panels"),L=_.Q(this.hostElement).querySelector("#plj-panels"),h=_.Q(this.hostElement).querySelector("#plj-playlist"),Z=_.Q(this.hostElement).querySelector("#alerts"),a=_.Q(this.hostElement).querySelector("#playlist"),m=_.Q(this.hostElement).querySelector("#related"),
w=_.Q(this.hostElement).querySelector("#donation-shelf"),A=_.Q(this.hostElement).querySelector("#comments");this.isTwoColumns_?(Z=_.Q(this.hostElement).querySelector("#secondary-inner"),Z.appendChild(b),b.appendChild(h),h.appendChild(a),b.appendChild(L),W&&Z.appendChild(T),_.e("web_watch_theater_chat")||Z.appendChild(O),W||Z.appendChild(T),Z.appendChild(w),Z.appendChild(m)):(W&&_.K4(T,Z),_.K4(a,Z),_.e("web_watch_theater_chat")||_.K4(O,Z),W||_.K4(T,Z),_.K4(w,Z),A&&(L&&_.K4(L,A),_.K4(m,A)));_.e("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.e("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.e("web_watch_theater_chat")){var W=_.Q(this.hostElement).querySelector("#chat-container"),O=this.theater&&!this.fullscreen||_.e("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&O?_.e("web_watch_theater_chat_beside_player")?(O=_.Q(this.hostElement).querySelector("#panels-full-bleed-container"),(W==null?void 0:W.parentElement)!==O&&O.append(W),this.panelsBesidePlayer=!0):_.e("web_watch_theater_fixed_chat")&&
(O=_.Q(this.hostElement).querySelector("#columns"),(W==null?void 0:W.parentElement)!==O&&O.append(W),this.fixedPanels=!0):(_.e("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.e("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),O=_.Q(this.hostElement).querySelector("#playlist"),W&&O?_.v1(W,O):_.z5(new _.pu("Missing element when updating chat location",{"chatContainer defined":!!W,"playlist defined":!!O})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(W,O){return _.e("sw_metadata_vis_toggle_ks")?!0:!!W||!!O},
computeForceDarkPanelTheme:function(W){return _.e("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&W:!1},
safeUpdateStyles:function(W){try{_.Sl(this.hostElement,W)}catch(O){_.z5(O)}},
videoHeightToWidthRatioChanged_:function(W,O){O&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.e("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(W){this.videoHeightToWidthRatio_=1/W},
computeIsVerticalVideo_:function(W){return W>=1},
computeIsFourThreeToSixteenNineVideo_:function(W){return W<=.7501&&W>=.5624},
computeIsExtraWideVideo_:function(W){return W<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.FL(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.FL(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.kvR(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(W){var O=_.Tz(W)||0;_.ju(W,O+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var W=_.Tz("yt-fullerscreen-edu-button-click-count")||0,O=_.Tz("yt-fullerscreen-edu-button-shown-count")||0,b=_.Lu("external_fullscreen_button_shown_threshold"),T=W>=_.Lu("external_fullscreen_button_click_threshold")||O>=b;_.FL(this).getPlayerPromise().then(function(L){L.updateFullerscreenEduButtonSubtleModeState(T)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(W,O){return O},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.iq().resolve(_.kP).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var W=this;this.panelMaxHeightUpdateJob_&&_.sF.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.sF.addLowPriorityJob(function(){W.panelMaxHeightUpdateJob_=0;var O;!W.isTwoColumns_||W.theater||W.fullscreen?O=460:O=W.calculateNormalPlayerSize_().height;var b=O+"px";_.e("live_chat_taller_height")&&!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.e("live_chat_medium_height")&&
!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.e("live_chat_scaled_height")&&!W.theater&&(b="calc(100vh - var(--ytd-toolbar-height) - 238px)");W.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":O+"px","--ytd-watch-flexy-chat-max-height":b,"--ytd-watch-flexy-structured-description-max-height":O+"px","--ytd-watch-flexy-comments-panel-max-height":O+"px","--ytd-comments-engagement-panel-content-height":O+"px"})})},
onYtShowEngagementPanelScrimAction_:function(W){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",W)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.Sx(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(W){var O=_.Q(this.hostElement).querySelector("#engagement-panel-scrim");W?O.addEventListener("tap",_.Ii(this,this.onEngagementPanelScrimClick_)):O.removeEventListener("tap",_.Ii(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(W){if(this.hostElement.contains(W)&&!this.scrollToAnimation_.isAnimating()){var O=W.offsetTop-24;W=W.offsetTop+W.offsetHeight+24;var b=this.getPageScrollingElement(),T=this.getScrollTop(),L=T+b.clientHeight-56;if(O<T+56)O-=56;else if(W>L)O=W-b.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,O),500)}},
onYtSignalActionScrollToComments:function(){var W=this.hostElement.querySelector("#comments");if(W&&!this.scrollToAnimation_.isAnimating()){W=W.offsetTop-56-24;if(_.e("kevlar_comment_teaser_scroll_to_midpoint")&&(W-=_.Sp().height/3,W<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,W),500)}},
onYtEngagementPanelVisibleChanged:function(W,O,b){this.active&&this.trackEngagementPanelVisibility&&!_.Ux2.includes(b)&&(O==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(b),O!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&O!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(b),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(W){return W?"":"watch-active-metadata"},
computeNewMetadataClass:function(W){return W?"watch-active-metadata":""},
computeFullBleedPlayer:function(W,O){return W||O},
computeDefaultLayout:function(W){return!W},
computeDefaultTwoColumnLayout:function(W,O){return!W&&O},
computeWatchWhilePanelsActive:function(W,O){return W||O},
computeNoBorderOnChat:function(W){return _.e("web_watch_theater_chat_no_border")&&W},
computeLiveChatPresentAndExpanded:function(W,O){return W&&!O},
computePanelExpanded:function(W,O,b){return W||O||b},
onChangeMarkersVisibility:function(W){_.FL(this).getPlayerPromise().then(function(O){var b;(b=O.changeMarkerVisibility)==null||b.call(O,_.P(W,_.ti).isVisible||!1,_.P(W,_.ti).entityKeys||[],_.P(W,_.ti).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(W){this.liveChatCollapsed=W.detail;_.uv().dispatch(_.Xf8(W.detail))},
provideRenderingData:function(W,O){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=O;break;case "PRIMARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=O);this.videoPrimaryInfoRendererValue=O==null?void 0:O.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.e("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=O);this.videoSecondaryInfoRendererValue=O==null?void 0:O.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
O;break;case "CLARIFICATION":this.clarifyBoxValue=O;break;case "LIVE_CHAT":this.conversationBar=O;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=O;break;case "PLAYLIST":this.externalPlaylistData_=O!=null?O:{};break;case "MERCH_SHELF":this.merchShelfValue=O==null?void 0:O.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=O;break;case "OFFER_MODULE":this.offerModule=O;break;case "LIMITED_STATE":this.limitedStateValue=O;break;case "DONATION_SHELF":this.donation=O;break;
case "ALERTS":this.alertsValue=O;break;case "COMMENTS":this.comments=O;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=O;break;case "ENGAGEMENT_PANELS":this.engagementPanels=O;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=O;break;case "RICH_GRID_RENDERER":this.richGridRendererData=O;break;case "EXPANDABLE_METADATA":this.expandableMetadata=O;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=O}},
toggleCinematicsActive:function(W){this.cinematicsActive=W},
isMiniplayerActive:function(){return _.iq().resolve(_.xq).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(W){return Jhg.map(function(O){return W.find(function(b){var T;return(b==null?void 0:(T=b.engagementPanelSectionListRenderer)==null?void 0:T.targetId)===O})}).filter(function(O){return O!==void 0})},
getNonLearningJourneyEngagementPanels:function(W){return W.filter(function(O){var b;return!Jhg.includes((O==null?void 0:(b=O.engagementPanelSectionListRenderer)==null?void 0:b.targetId)||"")})}}];var chg;var yl=function(){var W=_.n.apply(this,arguments)||this;W.flexy=!0;W.learningJourney=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.e("enable_player_resize_transition");W.smallerChatMinHeight=_.e("live_chat_smaller_min_height");W.cinematicTheaterMode=_.e("web_cinematic_theater_mode");W.transparentTheaterMode=_.e("web_transparent_theater_mode");W.cinematicFullscreen=_.e("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.e("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.e("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.theaterLargerPlayer=_.e("web_watch_theater_larger_player");W.defaultCollapsePlaylist=_.e("web_watch_default_collapse_playlist");return W};
_.R(yl,_.n);_.d=yl.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var W=this,O=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",O);this.secondary.addEventListener("scroll",O)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(W){_.e("web_watch_update_narrow_width_killswitch")||_.uv().dispatch(_.EKN(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.d.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.d.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20488_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20488_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Jq.Object.defineProperties(yl.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var O=0;O<this.data.pageVisualEffects.length;O++)if(W=_.P(this.data.pageVisualEffects[O],_.PJ))return O=void 0,(O=W.config)==null?void 0:O.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.learningJourneyEngagementPanels)==null?void 0:W.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){window.history.back()}}}}});
_.Jq.Object.defineProperties(yl,{template:{configurable:!0,enumerable:!0,get:function(){if(chg===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n          <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n            <yt-button-shape data="[[backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n          </yt-button-shape></div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);chg=W}W=chg;return W}}});
yl.prototype.updateMiniplayerIsActiveValue=yl.prototype.updateMiniplayerIsActiveValue;yl.prototype.updateScrollTopValue=yl.prototype.updateScrollTopValue;yl.prototype.updateFullscreenValue=yl.prototype.updateFullscreenValue;yl.prototype.updateTheaterValue=yl.prototype.updateTheaterValue;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],yl.prototype,"ytComponentBehavior",void 0);
_.t([_.D(uYk.YtdLearningJourneyWatchBehavior),_.N("design:type",Object)],yl.prototype,"ytdWatchBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],yl.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yl.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],yl.prototype,"playerData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"flexy",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"learningJourney",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"roundedInfoPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"viewTransitionEnabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"smallerChatMinHeight",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"cinematicTheaterMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"transparentTheaterMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"cinematicFullscreen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"useLargerMaxPlayerValue",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"cinematicFullscreenV2",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"isDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yl.prototype,"theaterLargerPlayer",void 0);_.t([_.C(),_.N("design:type",Object)],yl.prototype,"defaultCollapsePlaylist",void 0);_.t([_.C({selector:_.vp}),_.N("design:type",Object)],yl.prototype,"theaterValue",void 0);
_.t([_.C({selector:_.RU}),_.N("design:type",Object)],yl.prototype,"fullscreenValue",void 0);_.t([_.C({selector:_.Ks}),_.N("design:type",Object)],yl.prototype,"scrollTopValue",void 0);_.t([_.C({selector:_.BS}),_.N("design:type",Object)],yl.prototype,"miniplayerIsActiveValue",void 0);_.t([_.El("#ytd-plj-player"),_.N("design:type",HTMLElement)],yl.prototype,"ytdPlayer",void 0);_.t([_.El("#playlist"),_.N("design:type",HTMLElement)],yl.prototype,"JSC$20488_ytdPlaylistPanelRenderer",void 0);
_.t([_.ux("ytd-comments"),_.N("design:type",HTMLElement)],yl.prototype,"ytdComments",void 0);_.t([_.El("#primary"),_.N("design:type",HTMLElement)],yl.prototype,"primary",void 0);_.t([_.El("#secondary"),_.N("design:type",HTMLElement)],yl.prototype,"secondary",void 0);_.t([_.El("#player-container"),_.N("design:type",HTMLElement)],yl.prototype,"playerContainer",void 0);_.t([_.El("#cinematics"),_.N("design:type",HTMLElement)],yl.prototype,"JSC$20488_cinematics",void 0);
_.t([_.m5("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yl.prototype,"updateTheaterValue",null);_.t([_.m5("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yl.prototype,"updateFullscreenValue",null);_.t([_.m5("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yl.prototype,"updateScrollTopValue",null);
_.t([_.m5("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yl.prototype,"updateMiniplayerIsActiveValue",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],yl.prototype,"cinematicLightTheme",null);_.t([_.C({reflectToAttribute:!0}),_.x("learningJourneyEngagementPanels"),_.N("design:type",Object),_.N("design:paramtypes",[])],yl.prototype,"hasLearningJourneyPanels",null);
yl=_.t([_.G({is:"ytd-watch-learning-journey"})],yl);_.W0.registerService(_.La1,yl);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("Tm0L3c");
var qEk;var nwg;var fg9=function(){return _.n.apply(this,arguments)||this};
_.R(fg9,_.n);fg9=_.t([_.G({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],fg9);
_.H(fg9,"ytd-ghost-comments-renderer",function(){if(nwg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);nwg=W}W=nwg;return W},{mode:1});var GvB;var HX7=function(){return _.n.apply(this,arguments)||this};
_.R(HX7,_.n);HX7=_.t([_.G({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],HX7);
_.H(HX7,"ytd-ghost-watch-metadata-renderer",function(){if(GvB===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);GvB=W}W=GvB;return W},{mode:1});var F6=function(){var W=_.n.apply(this,arguments)||this;W.ghostGridRenderer={rows:6};W.roundedInfoPanel=!0;W.hideOfferModules=!0;W.smallerChatMinHeight=_.e("live_chat_smaller_min_height");W.cinematicTheaterMode=_.e("web_cinematic_theater_mode");W.transparentTheaterMode=_.e("web_transparent_theater_mode");W.darkerPanels=_.e("web_watch_darker_panels");W.cinematicFullscreen=_.e("web_cinematic_fullscreen");W.cinematicFullscreenV2=_.e("web_cinematic_fullscreen_v2");W.isDarkTheme=document.documentElement.hasAttribute("dark");
return W};
_.R(F6,_.n);_.d=F6.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.d.ready=function(){var W=this,O=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",O);this.secondary.addEventListener("scroll",O)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(W){this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.d.updateShownItemsFromBinding=function(W){_.e("swatcheroo_direct_use_rich_grid")||(W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value)};
_.d.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20476_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20476_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Jq.Object.defineProperties(F6.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var O=0;O<this.data.pageVisualEffects.length;O++)if(W=_.P(this.data.pageVisualEffects[O],_.PJ))return O=void 0,(O=W.config)==null?void 0:O.enableInLightTheme;return!1}}});
F6.prototype.updateMiniplayerIsActiveValue=F6.prototype.updateMiniplayerIsActiveValue;F6.prototype.updateScrollTopValue=F6.prototype.updateScrollTopValue;F6.prototype.updateFullscreenValue=F6.prototype.updateFullscreenValue;F6.prototype.updateTheaterValue=F6.prototype.updateTheaterValue;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],F6.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.zyP.YtdWatchBehavior),_.N("design:type",Object)],F6.prototype,"ytdWatchBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],F6.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],F6.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],F6.prototype,"ghostGridRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],F6.prototype,"playerData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"roundedInfoPanel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"hideOfferModules",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"smallerChatMinHeight",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"cinematicTheaterMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"transparentTheaterMode",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"darkerPanels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"cinematicFullscreen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"cinematicFullscreenV2",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F6.prototype,"isDarkTheme",void 0);_.t([_.C({selector:_.vp}),_.N("design:type",Object)],F6.prototype,"theaterValue",void 0);
_.t([_.C({selector:_.RU}),_.N("design:type",Object)],F6.prototype,"fullscreenValue",void 0);_.t([_.C({selector:_.Ks}),_.N("design:type",Object)],F6.prototype,"scrollTopValue",void 0);_.t([_.C({selector:_.BS}),_.N("design:type",Object)],F6.prototype,"miniplayerIsActiveValue",void 0);_.t([_.El("#ytd-player"),_.N("design:type",HTMLElement)],F6.prototype,"ytdPlayer",void 0);_.t([_.El("#playlist"),_.N("design:type",HTMLElement)],F6.prototype,"JSC$20476_ytdPlaylistPanelRenderer",void 0);
_.t([_.El("#ytd-comments"),_.N("design:type",HTMLElement)],F6.prototype,"ytdComments",void 0);_.t([_.El("#primary"),_.N("design:type",HTMLElement)],F6.prototype,"primary",void 0);_.t([_.El("#secondary"),_.N("design:type",HTMLElement)],F6.prototype,"secondary",void 0);_.t([_.El("#player-container"),_.N("design:type",HTMLElement)],F6.prototype,"playerContainer",void 0);_.t([_.El("#cinematics"),_.N("design:type",HTMLElement)],F6.prototype,"JSC$20476_cinematics",void 0);
_.t([_.m5("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F6.prototype,"updateTheaterValue",null);_.t([_.m5("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F6.prototype,"updateFullscreenValue",null);_.t([_.m5("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F6.prototype,"updateScrollTopValue",null);
_.t([_.m5("miniplayerIsActiveValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],F6.prototype,"updateMiniplayerIsActiveValue",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],F6.prototype,"cinematicLightTheme",null);
_.H(F6,"ytd-watch-grid",function(){if(qEk===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);qEk=W}W=qEk;return W},{mode:2});_.W0.registerService(_.Tz8,F6);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("CF909");
var CYg;var cz=function(){var W=_.n.apply(this,arguments)||this;W.flexy=!0;W.roundedInfoPanel=!0;W.viewTransitionEnabled=_.e("enable_player_resize_transition");W.smallerChatMinHeight=_.e("live_chat_smaller_min_height");W.cinematicTheaterMode=_.e("web_cinematic_theater_mode");W.transparentTheaterMode=_.e("web_transparent_theater_mode");W.cinematicFullscreen=_.e("web_cinematic_fullscreen");W.useLargerMaxPlayerValue=_.e("kevlar_flexy_use_larger_player_value");W.cinematicFullscreenV2=_.e("web_cinematic_fullscreen_v2");
W.isDarkTheme=document.documentElement.hasAttribute("dark");W.defaultCollapsePlaylist=_.e("web_watch_default_collapse_playlist");W.retroModeReduxValue=!1;return W};
_.R(cz,_.n);_.d=cz.prototype;_.d.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.d.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.d.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.d.updateRetroModeReduxValue=function(){_.e("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.d.ready=function(){var W=this,O=function(){W.onColumnScroll()};
this.primary.addEventListener("scroll",O);this.secondary.addEventListener("scroll",O)};
_.d.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.d.updateIsTwoColumnsFromBinding=function(W){_.e("web_watch_update_narrow_width_killswitch")||_.uv().dispatch(_.EKN(!W.detail.value));this.ytdWatchBehavior.isTwoColumns_=W.detail.value};
_.d.updateFlexySmallWindowFromBinding=function(W){this.ytdWatchBehavior.flexySmallWindow_=W.detail.value};
_.d.updateFlexyLargeWindowFromBinding=function(W){this.ytdWatchBehavior.flexyLargeWindow_=W.detail.value};
_.d.updateWatchWhileWindowSizeSufficientFromBinding=function(W){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=W.detail.value};
_.d.updateWatchNextCanShowMoreFromBinding=function(W){this.ytdWatchBehavior.watchNextCanShowMore=W.detail.value};
_.d.updateShownItemsFromBinding=function(W){W.detail.path?this.set(W.detail.path,W.detail.value):this.ytdWatchBehavior.watchNextShownItems=W.detail.value};
_.d.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20471_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20471_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Jq.Object.defineProperties(cz.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.pageVisualEffects)return!1;for(var O=0;O<this.data.pageVisualEffects.length;O++)if(W=_.P(this.data.pageVisualEffects[O],_.PJ))return O=void 0,(O=W.config)==null?void 0:O.enableInLightTheme;return!1}}});
_.Jq.Object.defineProperties(cz,{template:{configurable:!0,enumerable:!0,get:function(){if(CYg===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);CYg=W}W=CYg;return W}}});
cz.prototype.updateRetroModeReduxValue=cz.prototype.updateRetroModeReduxValue;cz.prototype.updateScrollTopValue=cz.prototype.updateScrollTopValue;cz.prototype.updateFullscreenValue=cz.prototype.updateFullscreenValue;cz.prototype.updateTheaterValue=cz.prototype.updateTheaterValue;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],cz.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.zyP.YtdWatchBehavior),_.N("design:type",Object)],cz.prototype,"ytdWatchBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],cz.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cz.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],cz.prototype,"playerData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"flexy",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"roundedInfoPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"viewTransitionEnabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"smallerChatMinHeight",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"cinematicTheaterMode",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"transparentTheaterMode",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"cinematicFullscreen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"useLargerMaxPlayerValue",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"cinematicFullscreenV2",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],cz.prototype,"isDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],cz.prototype,"defaultCollapsePlaylist",void 0);_.t([_.C({selector:_.vp}),_.N("design:type",Object)],cz.prototype,"theaterValue",void 0);_.t([_.C({selector:_.RU}),_.N("design:type",Object)],cz.prototype,"fullscreenValue",void 0);_.t([_.C({selector:_.Ks}),_.N("design:type",Object)],cz.prototype,"scrollTopValue",void 0);
_.t([_.C({selector:_.BS}),_.N("design:type",Object)],cz.prototype,"miniplayerIsActive",void 0);_.t([_.C({selector:function(W){return W.watch.isWatchRetroMode}}),
_.N("design:type",Object)],cz.prototype,"retroModeReduxValue",void 0);_.t([_.ux("ytd-player"),_.N("design:type",HTMLElement)],cz.prototype,"ytdPlayer",void 0);_.t([_.El("#playlist"),_.N("design:type",HTMLElement)],cz.prototype,"JSC$20471_ytdPlaylistPanelRenderer",void 0);_.t([_.ux("ytd-comments"),_.N("design:type",HTMLElement)],cz.prototype,"ytdComments",void 0);_.t([_.El("#primary"),_.N("design:type",HTMLElement)],cz.prototype,"primary",void 0);
_.t([_.El("#secondary"),_.N("design:type",HTMLElement)],cz.prototype,"secondary",void 0);_.t([_.El("#player-container"),_.N("design:type",HTMLElement)],cz.prototype,"playerContainer",void 0);_.t([_.El("#cinematics"),_.N("design:type",HTMLElement)],cz.prototype,"JSC$20471_cinematics",void 0);_.t([_.m5("theaterValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cz.prototype,"updateTheaterValue",null);
_.t([_.m5("fullscreenValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cz.prototype,"updateFullscreenValue",null);_.t([_.m5("scrollTopValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cz.prototype,"updateScrollTopValue",null);_.t([_.m5("retroModeReduxValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],cz.prototype,"updateRetroModeReduxValue",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cz.prototype,"cinematicLightTheme",null);cz=_.t([_.G({is:"ytd-watch-flexy"})],cz);_.W0.registerService(_.j9q,cz);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("nmfa2d");
var FaR;var fo=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;W.errorScreen=null;W.playlistData={};return W};
_.R(fo,_.n);_.d=fo.prototype;_.d.getPlayer=function(){return this.ytdPlayer};
_.d.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:_.sG(["aa","eocs"])}}};
_.d.onActiveChanged=function(){_.uv().dispatch(_.$Y2(this.ytPageBehavior.active))};
_.d.playerDataChanged=function(){var W;(W=this.watchController)==null||W.setPlayerResponse(this.playerData)};
_.d.dataChanged=function(){var W;(W=this.watchController)==null||W.setWatchNextResponse(this.data)};
_.d.sizeChanged=function(){var W,O;(O=(W=this.metadata).resize)==null||O.call(W)};
_.d.attached=function(){this.watchController=new _.q4(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.d.detached=function(){_.JU(this.watchController);this.watchController=void 0};
_.d.getPlayerContainer=function(){return this.playerContainer};
_.d.getElement=function(W){switch(W){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20423_playlistPanel}};
_.d.provideRenderingData=function(W,O){switch(W){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=O;break;case "ERROR_SCREEN":this.errorScreen=O!=null?O:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=O;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=O;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=O;break;case "RICH_METADATA":this.richMetadataRowContainer=O;break;case "CLARIFICATION":this.clarificationData=O;break;case "PLAYLIST":this.playlistData=
O!=null?O:{};break;case "MERCH_SHELF":this.merchShelf=O;break;case "TICKET_SHELF":this.ticketShelf=O;break;case "LIMITED_STATE":this.limitedState=O;break;case "DONATION_SHELF":this.donationShelf=O;break;case "ALERTS":this.alerts=O}};
_.Jq.Object.defineProperties(fo.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return!this.hidden&&!!((W=this.data)==null?0:(O=W.contents)==null?0:(b=O.twoColumnWatchNextResults)==null?0:b.conversationBar)}}});
fo.prototype.sizeChanged=fo.prototype.sizeChanged;fo.prototype.dataChanged=fo.prototype.dataChanged;fo.prototype.playerDataChanged=fo.prototype.playerDataChanged;fo.prototype.onActiveChanged=fo.prototype.onActiveChanged;_.t([_.D(_.vJ.YtPageBehavior),_.N("design:type",Object)],fo.prototype,"ytPageBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],fo.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],fo.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"playerData",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],fo.prototype,"hidden",void 0);_.t([_.El("#ytd-player"),_.N("design:type",HTMLElement)],fo.prototype,"ytdPlayer",void 0);_.t([_.El("#player-container"),_.N("design:type",HTMLElement)],fo.prototype,"playerContainer",void 0);_.t([_.El("#metadata"),_.N("design:type",Object)],fo.prototype,"metadata",void 0);_.t([_.El("#playlist"),_.N("design:type",HTMLElement)],fo.prototype,"JSC$20423_playlistPanel",void 0);
_.t([_.C({selector:_.Rd1,reflectToAttribute:!0}),_.N("design:type",Object)],fo.prototype,"fixie",void 0);_.t([_.C({selector:_.pFg,reflectToAttribute:!0}),_.N("design:type",Object)],fo.prototype,"singleColumn",void 0);_.t([_.C({selector:function(W){return _.vp(W)&&!_.RU(W)},
reflectToAttribute:!0}),_.N("design:type",Object)],fo.prototype,"theater",void 0);_.t([_.C({selector:_.RU,reflectToAttribute:!0}),_.N("design:type",Object)],fo.prototype,"fullscreen",void 0);_.t([_.C({selector:_.tgD}),_.N("design:type",Object)],fo.prototype,"windowSize",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"singleColumnContents",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"errorScreen",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"playlistData",void 0);
_.t([_.C(),_.N("design:type",Object)],fo.prototype,"videoPrimaryInfoRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"videoSecondaryInfoRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"richMetadataRowContainer",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"clarificationData",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"commentsEntryPointHeaderRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"ticketShelf",void 0);
_.t([_.C(),_.N("design:type",Object)],fo.prototype,"merchShelf",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"donationShelf",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"limitedState",void 0);_.t([_.C(),_.N("design:type",Object)],fo.prototype,"alerts",void 0);_.t([_.x("playlistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],fo.prototype,"hasPlaylistData",null);
_.t([_.x("data","hidden"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fo.prototype,"hasChat",null);_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fo.prototype,"onActiveChanged",null);_.t([_.m5("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fo.prototype,"playerDataChanged",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fo.prototype,"dataChanged",null);_.t([_.m5("windowSize","singleColumn"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fo.prototype,"sizeChanged",null);
_.H(fo,"ytd-watch-fixie",function(){if(FaR===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);FaR=W}W=FaR;return W},{mode:1});_.W0.registerService(_.biQ,fo);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("xwEKAe");
var R25=function(W){var O=_.Xt();if(O.getFlag(202))O=O.getFlag(201);else{var b;O=(W==null?void 0:(b=W.config)==null?void 0:b.settingOnByDefault)!==void 0?W.config.settingOnByDefault:!_.e("web_shorts_cinematics_disabled_by_default")}return O},KeN=function(W){var O=_.Xt();
_.UO(0,201,W);_.UO(0,202,!0);O.save()},vxk=function(W){return(W=_.TVO(W))?_.d3h(W):0},gxU=function(W){return W.shorts.isSmallScreenSqueezeback},oxD=function(W){return W.shorts.isPlaybackStarted},QZD=function(W,O,b,T){W=O-W;
b=T-b;return Math.sqrt(W*W+b*b)},k_g=function(W,O){W&&_.iq().resolve(_.bq).resolveCommand(W,{forceClickLogging:!0,
form:{element:O}})},sZk=function(W){W.unsubscribeFromStore=_.mr(W.storeWithShorts,_.ehZ,function(O){W.initOrDisposeActiveModules(O);
!O&&W.storeWithShorts.getState().shorts.isFullscreen&&(_.Wg(document.documentElement),W.storeWithShorts.dispatch(_.RhR(!1)))});
W.initOrDisposeActiveModules(_.ehZ(W.storeWithShorts.getState()))},BXU=function(W){var O=_.iq().resolve(_.aL);
O.rootElement=W;sZk(O)},rbZ=function(){return _.iq().resolve(_.aL).dismissedIndices},DwB=function(W){return _.Tc({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:W}})},xw7=function(W){return _.Tc({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:W}})},Tm=function(W){return _.Tc({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:W}})},Ls=function(W,O){if(W instanceof Ls)this.array_=W.array_;
else{var b;if(b=_.j5(W))a:{for(var T=b=0;T<W.length;T++){if(!_.j5(W[T])||b>0&&W[T].length!=b){b=!1;break a}for(var L=0;L<W[T].length;L++)if(typeof W[T][L]!=="number"){b=!1;break a}b==0&&(b=W[T].length)}b=b!=0}if(b)this.array_=_.Ov(W);else if(W instanceof _.hU)this.array_=z2R(W.height,W.width);else if(typeof W==="number"&&typeof O==="number"&&W>0&&O>0)this.array_=z2R(W,O);else throw Error("Yl");}this.size_=new _.hU(this.array_[0].length,this.array_.length)},CCR=function(W,O,b){for(var T=0;T<W.getSize().height;T++)for(var L=
0;L<W.getSize().width;L++)O.call(b,W.array_[T][L],T,L,W)},qf8=function(W,O){var b=new Ls(W.getSize());
CCR(W,function(T,L,h){b.array_[L][h]=O.call(void 0,T,L,h,W)});
return b},z2R=function(W,O){for(var b=[],T=0;T<W;T++){b[T]=[];
for(var L=0;L<O;L++)b[T][L]=0}return b};
Ls.prototype.add=function(W){if(!_.cQD(this.size_,W.getSize()))throw Error("Zl");return qf8(this,function(O,b,T){return O+W.array_[b][T]})};
Ls.prototype.equals=function(W,O){if(this.size_.width!=W.size_.width||this.size_.height!=W.size_.height)return!1;O=O||0;for(var b=0;b<this.size_.height;b++)for(var T=0;T<this.size_.width;T++)if(!_.JQP(this.array_[b][T],W.array_[b][T],O))return!1;return!0};
Ls.prototype.getSize=function(){return this.size_};
var dj=function(W,O,b){return O>=0&&O<W.size_.height&&b>=0&&b<W.size_.width?W.array_[O][b]:null};
Ls.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var nxZ=function(W,O,b,T){if(!(O>=0&&O<W.size_.height&&b>=0&&b<W.size_.width))throw Error("$l`"+O+"`"+b+"`"+W.size_.height+"`"+W.size_.width);W.array_[O][b]=T};
Ls.prototype.multiply=function(W){if(W instanceof Ls){if(this.size_.width!=W.getSize().height)throw Error("am");return fTU(this,W)}if(typeof W==="number")return G_g(this,W);throw Error("bm");};
var fTU=function(W,O){var b=new Ls(W.size_.height,O.getSize().width);CCR(b,function(T,L,h){for(var Z=T=0;Z<this.size_.width;Z++)T+=dj(this,L,Z)*dj(O,Z,h);nxZ(b,L,h,T)},W);
return b},G_g=function(W,O){return qf8(W,function(b){return b*O})};var HRg=new _.J("inlineSurveyRenderer");var t8D=new _.J("interstitialViewModel");var $w2=new _.J("reelNavigateCommand");var V88=new _.J("reelNonVideoContentDismissalCommand");var NXD=new _.J("showReelsCommentsOverlayCommand");var M85=new _.J("shortsSuggestedActionViewModel");var ufR=new _.J("videoInteractionPopUpRenderer");var Jbk;var cb9;var Fek;var hB=function(){var W=_.n.apply(this,arguments)||this;W.ctaVisualElement=null;W.currentCsn=null;return W};
_.R(hB,_.n);_.d=hB.prototype;_.d.onDataChanged=function(){this.maybeLogShows()};
_.d.computeButtonShape=function(){var W=this;if(this.data)return{buttonText:_.NX(this.data.text),state:"active",onTap:function(){W.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.d.maybeCreateCtaVe=function(){var W;if((W=this.data)!=null&&W.badgeInteractionLogging){var O;if(W=(O=this.data.badgeInteractionLogging)==null?void 0:O.trackingParams)this.ctaVisualElement=_.Pi(W)}};
_.d.maybeLogClicks=function(){this.currentCsn=_.Bb(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Vw(this.currentCsn,this.ctaVisualElement)};
_.d.maybeLogShows=function(){this.currentCsn=_.Bb(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.t3(this.currentCsn,[this.ctaVisualElement])};
_.d.onTap=function(){var W;if((W=this.data)!=null&&W.onClickCommand){var O;this.ytComponentBehavior.resolveCommand((O=this.data)==null?void 0:O.onClickCommand);this.maybeLogClicks()}};
hB.prototype.onDataChanged=hB.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],hB.prototype,"ytComponentBehavior",void 0);_.t([_.C({}),_.N("design:type",Object)],hB.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hB.prototype,"onDataChanged",null);
hB=_.t([_.G({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],hB);
_.H(hB,"ytd-shopping-overlay-badge-renderer",function(){if(Fek!==void 0)return Fek;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Fek=W},{mode:1});_.O1(_.ci5,"reel-sound-metadata-view-model",{props:{data:_.Ws,overlayDensity:_.Ws}});_.O1(_.q5P,"player-disclosure-view-model",{props:{data:_.te}});_.O1(_.e2f,"pivot-button-view-model",{props:{data:_.Ws,className:_.Ws}});_.O1(_.PC$,"reel-action-bar-view-model",{props:{data:_.te,buttonShapeOverrideables:_.te}});_.O1(_.J1(function(W){function O(){var nE,tX,yh,Gw,KH=(tX=_.P((nE=M())==null?void 0:nE.command,_.h9$))==null?void 0:(yh=tX.item)==null?void 0:(Gw=yh.notificationTextRenderer)==null?void 0:Gw.successResponseText;if(KH)_.jx(T.value,"yt-open-popup-action",[_.cS(KH),T.value]);else if(V())k_g(V(),K.value);else{var h9;k_g((h9=M())==null?void 0:h9.command,K.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var b=W.data;var T=_.uy();W=_.S(_.wu("0px",void 0,"O1N7Ce"));var L=W.next().value,h=W.next().value;W=_.S(_.wu("0px",void 0,"tTDBdb"));var Z=W.next().value,a=W.next().value;W=_.S(_.wu(0,void 0,"fh8Zkc"));var m=W.next().value,w=W.next().value;W=_.S(_.wu(0,void 0,"CUjqGd"));var A=W.next().value,X=W.next().value,l=function(){var nE;if(((nE=_.ZO())==null?void 0:nE.getPlayerState())!==-1){T.value.style.display="inherit";var tX;(tX=_.ZO())==null||tX.removeEventListener("onStateChange",l)}p()},p=function(){var nE=
document.querySelector("video");
if(nE){w(nE.getBoundingClientRect().width);X(nE.getBoundingClientRect().height);var tX;h((nE==null?void 0:(tX=nE.style)==null?void 0:tX.left)||"0px");var yh;a((nE==null?void 0:(yh=nE.style)==null?void 0:yh.top)||"0px")}};
_.kb(function(){var nE,tX,yh;if(((nE=_.ZO())==null?void 0:nE.getPlayerState())===-1&&Math.round(((yh=(tX=_.ZO())==null?void 0:tX.getVideoAspectRatio())!=null?yh:0)*100)!==Math.round(m()/A()*100)){T.value.style.display="none";var Gw,KH;X(m()/((KH=(Gw=_.ZO())==null?void 0:Gw.getVideoAspectRatio())!=null?KH:1))}},"VB5m5");
_.oW(function(){var nE;(nE=_.ZO())==null||nE.addEventListener("onStateChange",l);window.addEventListener("resize",p);p();var tX,yh,Gw;if((Gw=(tX=b())==null?void 0:(yh=tX.regions)==null?void 0:yh[0])==null||!Gw.transformationMatrix)throw Error("fm");var KH;if((KH=b())==null?0:KH.trackingParams){var h9;_.A4().graftServerVe((h9=b().trackingParams)!=null?h9:"")}_.so(function(){var I7;(I7=_.ZO())==null||I7.removeEventListener("onStateChange",l);window.removeEventListener("resize",p)})});
var K=_.uy(),k=_.S(_.wu(!1,void 0,"TPsTce"));W=k.next().value;var r=k.next().value,q=_.S(_.wu(!1,void 0,"Uz6CHf"));k=q.next().value;var f=q.next().value,M=function(){var nE;return _.P((nE=b())==null?void 0:nE.popUp,ufR)},V=function(){var nE;
return(nE=b())==null?void 0:nE.command},jQ=function(){return _.P(V(),_.Kbe)!==void 0};
q=_.XL(function(){jQ()&&r(!0);f(!0);return!1});
var y=_.XL(function(){r(!1);f(!1);return!1}),d8=_.XL(function(){jQ()&&r(!0);
return!1}),pE=_.XL(function(){jQ()&&r(!1);
return!1}),Qh=_.XL(function(){O();
return!1}),KE=_.XL(function(nE){nE.key==="Enter"&&O();
return!1}),fE={},r8={};
return _.E("yt-player-overlay-video-interactions",{el:T},_.E("svg",{"on:mouseover":q,"on:mouseout":y,"on:keydown":KE,"on:focus":d8,"on:blur":pE,el:K,tabindex:0,"aria-label":function(){var nE;return(nE=b())==null?void 0:nE.a11yString},
id:"player-overlay-video-interaction-svg",class:_.YS("yt-player-overlay-video-interactions__interactions-svg",(fE["yt-player-overlay-video-interactions__interactions-svg-hover"]=W,fE),(r8["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=k,r8)),role:"button",style:function(){var nE,tX,yh,Gw=(yh=(nE=b())==null?void 0:(tX=nE.regions)==null?void 0:tX[0].transformationMatrix)!=null?yh:[];nE=m();tX=A();yh=[];for(var KH=0,h9=-1;KH<Gw.length;KH++)KH%3===0&&(h9++,yh[h9]=[]),yh[h9].push(Gw[KH]);
Gw=new Ls(yh);yh=new Ls([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);yh=Gw.multiply(yh);Gw=new Ls([[0,0],[0,0],[0,0],[0,0]]);for(KH=0;KH<yh.getSize().width;KH++){h9=dj(yh,0,KH);var I7=dj(yh,1,KH);if(h9===null||I7===null)throw Error("em`"+(KH+1).toString());nxZ(Gw,KH,0,h9*nE);nxZ(Gw,KH,1,I7*tX)}nE=dj(Gw,0,0);KH=dj(Gw,1,0);tX=dj(Gw,0,1);h9=dj(Gw,1,1);if(nE===null||KH===null||tX===null||h9===null)throw Error("cm");yh=QZD(nE,KH,tX,h9);I7=dj(Gw,3,0);Gw=dj(Gw,3,1);if(I7===null||Gw===null)throw Error("dm");Gw=QZD(nE,
I7,tX,Gw);h9=(Number((h9*-1).toFixed(2))-Number((tX*-1).toFixed(2)))/(Number(KH.toFixed(2))-Number(nE.toFixed(2)));I7=Math.atan(h9)*180/Math.PI;KH=h9===Number.POSITIVE_INFINITY?-90:h9===Number.NEGATIVE_INFINITY?90:Object.is(h9,-0)?180:h9===0?0:h9>0?I7*-1:nE<KH?I7*-1:Math.abs(I7)+180;return"left:calc("+nE+"px + "+L()+"); top:calc("+(tX+"px + "+Z()+"); width:")+(yh+"px; height:")+(Gw+"px; transform:rotate(")+(KH+"deg);")},
"on:click":Qh}))},"Ai"),"yt-player-overlay-video-interactions",{props:{data:_.te}});_.O1(_.tBg,"yt-reel-metapanel-view-model",{props:{data:_.te,overlayDensity:_.te}});var SM=function(){var W=_.n.apply(this,arguments)||this;W.showScrubber=!1;W.isWatchWhileMode=!1;W.enableRemixButton=_.e("web_enable_shorts_remix_handoff_ep");W.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");W.anchoredPanelActive=!1;W.enableLivingroomLayout=_.e("reels_enable_livingroom_layout");W.enablePlayerMetadataContainer=_.e("reels_web_enable_metadata_container");W.enableSqueezebackPanels=_.e("web_shorts_enable_squeezeback_panels");W.isSqueezebackActive=!1;W.smallScreenSqueezeback=
!1;W.isPlayerStarted=!1;W.overlayDensity=0;W.isOverlay=!1;W.isImmersive=!1;W.isImmersiveHorizontal=!1;W.isFullscreen=!1;W.onWindowResized=function(){var O;W.set("isImmersive",((O=window.getComputedStyle(W.hostElement))==null?void 0:O.getPropertyValue("--immersive-mode-on"))==="1");W.set("isImmersiveHorizontal",W.isImmersive&&W.enableLivingroomLayout&&!W.isWatchWhileMode)};
return W};
_.R(SM,_.n);_.d=SM.prototype;_.d.updateIsOverlay=function(W){this.isOverlay=W.detail.value};
_.d.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.e("web_enable_flexible_overlay")||_.e("web_enable_format_first")||_.e("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.d.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.d.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.d.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.d.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.d.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.d.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.d.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.dO("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.dO("reels_action_justified_content")||"flex-start")};
_.d.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.d.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.EO("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.EO("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.EO("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.EO("SHARE_LABEL",
void 0,"Share")}}});_.e("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.EO("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()};
_.d.setEmptyOverlayMetadata=function(){_.e("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}))};
_.Jq.Object.defineProperties(SM.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.infoPanel)}}});
SM.prototype.onIsActiveChanged=SM.prototype.onIsActiveChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],SM.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],SM.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],SM.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],SM.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],SM.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],SM.prototype,"isActive",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],SM.prototype,"hidden",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],SM.prototype,"useShortsIcon",void 0);_.t([_.C({value:"left"}),_.N("design:type",String)],SM.prototype,"buttonTooltipPosition",void 0);
_.t([_.C({value:_.e("reels_enable_livingroom_layout")?"top":"left"}),_.N("design:type",String)],SM.prototype,"likeButtonTooltipPosition",void 0);_.t([_.C({value:"none"}),_.N("design:type",String)],SM.prototype,"textTransform",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"showScrubber",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"isWatchWhileMode",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.infoPanel"),_.N("design:type",Object),_.N("design:paramtypes",[])],SM.prototype,"hasInfoPanel",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"enableRemixButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"enableAnchoredPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"anchoredPanelActive",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"enableLivingroomLayout",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],SM.prototype,"enablePlayerMetadataContainer",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"enableSqueezebackPanels",void 0);_.t([_.C({selector:_.oxO,reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"isSqueezebackActive",void 0);
_.t([_.C({selector:gxU,reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"smallScreenSqueezeback",void 0);_.t([_.C({selector:oxD}),_.N("design:type",Object)],SM.prototype,"isPlayerStarted",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"overlayDensity",void 0);_.t([_.C(),_.N("design:type",Object)],SM.prototype,"isOverlay",void 0);
_.t([_.C({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.N("design:type",Boolean)],SM.prototype,"isShortsOverlay",void 0);_.t([_.C(),_.N("design:type",Object)],SM.prototype,"isImmersive",void 0);_.t([_.C(),_.N("design:type",Object)],SM.prototype,"isImmersiveHorizontal",void 0);_.t([_.C({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.N("design:type",Boolean)],SM.prototype,"isShortsImmersive",void 0);
_.t([_.C({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],SM.prototype,"buttonOverride",void 0);_.t([_.C({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.N("design:type",Object)],SM.prototype,"actionBarButtonOverride",void 0);_.t([_.C({selector:_.ay,reflectToAttribute:!0}),_.N("design:type",Object)],SM.prototype,"isFullscreen",void 0);
_.t([_.m5("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],SM.prototype,"onIsActiveChanged",null);SM=_.t([_.G({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],SM);
_.H(SM,"ytd-reel-player-overlay-renderer",function(){if(cb9!==void 0)return cb9;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return cb9=W},{mode:1});var yb5;var Zn=function(){var W=_.n.apply(this,arguments)||this;W.videoDuration=0;W.playedTime=0;W.isActive=!1;W.JSC$19686_playerEvents=new Map;return W};
_.R(Zn,_.n);_.d=Zn.prototype;_.d.created=function(){this.JSC$19686_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19686_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.d.attached=function(){this.getPlayerAndInitializeListeners()};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19686_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.Ii(this,this.onPageChanged))};
_.d.getPlayerAndInitializeListeners=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return O=_.ya(),O?_.Y(b,O.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ii(W,W.onPageChanged)),b.jumpTo(0));W.player=b.yieldResult;W.initializePlayerListeners();_.aD(b)})};
_.d.onPageChanged=function(W){var O=this;return _.I(function(b){if(b.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?b.return():_.Y(b,_.Wm().getPlayerPromise(),2);O.player=b.yieldResult;O.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ii(O,O.onPageChanged));_.aD(b)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19686_playerEvents)};
_.d.onVideoDataChange=function(W){var O=this;return _.I(function(b){if(!O.player||W.type!=="newdata")return b.return();O.videoDuration=_.e("web_shorts_use_progress_state_for_gapless")?O.player.getProgressState(W.playertype).seekableEnd:O.player.getDuration(W.playertype);O.playedTime=0;_.aD(b)})};
_.d.onVideoProgress=function(W){var O=this,b,T;return _.I(function(L){if(!O.player)return L.return();b=O.player.getPresentingPlayerType();T=O.player.getPlayerState();O.videoDuration=_.e("web_shorts_use_progress_state_for_gapless")?O.player.getProgressState(b).seekableEnd:O.player.getDuration(b);O.playedTime=T===0?O.videoDuration:W;_.aD(L)})};
_.d.getPercentPlayed=function(W,O){return W?_.kq(O/W,0,1):0};
_.Jq.Object.defineProperties(Zn.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 W="";return W=this.videoDuration&&this.playedTime?W+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):W+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Zn.prototype,"componentBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],Zn.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Zn.prototype,"player",void 0);_.t([_.C(),_.N("design:type",Object)],Zn.prototype,"videoDuration",void 0);_.t([_.C(),_.N("design:type",Object)],Zn.prototype,"playedTime",void 0);_.t([_.C(),_.N("design:type",Object)],Zn.prototype,"isActive",void 0);
_.t([_.x("videoDuration","playedTime"),_.N("design:type",Number),_.N("design:paramtypes",[])],Zn.prototype,"percentPlayed",null);_.t([_.x("videoDuration","playedTime"),_.N("design:type",Object),_.N("design:paramtypes",[])],Zn.prototype,"percentPlayedStyle",null);_.t([_.x("videoDuration","isActive"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Zn.prototype,"hideProgressBar",null);
_.H(Zn,"ytd-progress-bar-line",function(){if(yb5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);yb5=W}W=yb5;return W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var W25;_.Z3(_.$j2,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var IU=function(){var W=_.n.apply(this,arguments)||this;W.playerState=null;W.isMuted=!1;W.shortsModernControlsEnabled=_.e("web_shorts_modern_controls");W.volumeControlsOrientationState="vertical_down";W.overlayDensity=0;W.JSC$19689_playerEvents=new Map;return W};
_.R(IU,_.n);_.d=IU.prototype;_.d.created=function(){this.JSC$19689_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19689_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.d.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.gd(28662);this.playPauseButtonClientVE=_.gd(36842);this.fullscreenButtonToggleOffClientVE=_.gd(222256);this.fullscreenButtonToggleOnClientVE=_.gd(222257);var W=_.Bb(),O=_.sk();W&&O&&(_.e("combine_ve_grafts")?(_.jn(_.A4(),this.muteButtonClientVE,O),_.jn(_.A4(),this.playPauseButtonClientVE,O)):_.GU(W,O,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.d.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19689_playerEvents),this.player=null)};
_.d.getPlayerAndInitializeListeners=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return O=_.ya(),O?_.Y(b,O.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.Ii(W,W.onPageChanged)),b.jumpTo(0));W.player=b.yieldResult;W.initializePlayerListeners();_.aD(b)})};
_.d.onPageChanged=function(W){var O=this;return _.I(function(b){if(b.nextAddress==1)return W.detail.newPageType!=="ytd-shorts"?b.return():_.Y(b,_.Wm().getPlayerPromise(),2);O.player=b.yieldResult;O.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.Ii(O,O.onPageChanged));_.aD(b)})};
_.d.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19689_playerEvents)};
_.d.onPlayerStateChange=function(W){this.playerState=W};
_.d.onPlayerVolumeChange=function(W){this.isMuted=W.muted};
_.d.onPlayPauseButtonClick=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Wm().getPlayerPromise(),2);O=T.yieldResult;(b=_.Bb())&&W.playPauseButtonClientVE&&_.Vw(b,W.playPauseButtonClientVE);O.getPlayerState()!==1?O.playVideo():O.pauseVideo();_.aD(T)})};
_.d.computePlayPauseIcon=function(W){return W===2||W===-1||W===5?_.e("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.e("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.e("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.d.computeFullscreenLabel=function(W){return W?_.EO("FULLSCREEN_EXIT_LABEL"):_.EO("FULLSCREEN_ENTER_LABEL")};
_.d.computePlayPauseLabel=function(W){return W===1||W===3?_.EO("PLAYER_LABEL_PAUSE"):_.EO("PLAYER_LABEL_PLAY")};
_.d.onMuteButtonClick=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.Wm().getPlayerPromise(),2);O=T.yieldResult;(b=_.Bb())&&W.muteButtonClientVE&&_.Vw(b,W.muteButtonClientVE);O.isMuted()?O.unMute(!0):O.mute(!0);_.aD(T)})};
_.d.computeMuteIcon=function(W){return W?"miniplayer:volume-off":"miniplayer:volume-up"};
_.d.computeMuteLabel=function(W){return W?_.EO("PLAYER_LABEL_UNMUTE"):_.EO("PLAYER_LABEL_MUTE")};
_.d.onFullscreenButtonClick=function(){var W=_.Bb();W&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Vw(W,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Vw(W,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.K3B()};
_.Jq.Object.defineProperties(IU.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var W=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(){W.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.e("web_shorts_modern_controls")?"player_full_exit_delhi_player":_.e("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.e("web_shorts_modern_controls")?"player_full_enter_delhi_player":_.e("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],IU.prototype,"componentBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],IU.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],IU.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],IU.prototype,"player",void 0);_.t([_.C(),_.N("design:type",Object)],IU.prototype,"playerState",void 0);_.t([_.C(),_.N("design:type",Object)],IU.prototype,"isMuted",void 0);
_.t([_.C({computed:"computePlayPauseIcon(playerState)"}),_.N("design:type",String)],IU.prototype,"playPauseIcon",void 0);_.t([_.C({computed:"computeMuteIcon(isMuted)"}),_.N("design:type",String)],IU.prototype,"muteIcon",void 0);_.t([_.C({selector:_.ay}),_.N("design:type",Boolean)],IU.prototype,"isFullscreen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],IU.prototype,"shortsModernControlsEnabled",void 0);
_.t([_.C(),_.N("design:type",Object)],IU.prototype,"volumeControlsOrientationState",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],IU.prototype,"overlayDensity",void 0);_.t([_.x("playerState"),_.N("design:type",Object),_.N("design:paramtypes",[])],IU.prototype,"playPauseButtonData",null);_.t([_.x("isFullscreen"),_.N("design:type",Object),_.N("design:paramtypes",[])],IU.prototype,"fullscreenButtonData",null);
_.t([_.x("isFullscreen"),_.N("design:type",String),_.N("design:paramtypes",[])],IU.prototype,"fullscreenIcon",null);
_.H(IU,"ytd-shorts-player-controls",function(){if(W25===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);W25=W}W=W25;return W},{mode:1});var OkB;_.O1(_.HX$,"yt-interstitial-view-model",{props:{data:_.te}});var ik9=_.J1(function(W){var O=W.data;return _.E("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.E("h1",{class:"reelWatchBreakViewModelHostTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("h2",{class:"reelWatchBreakViewModelHostBody"},_.E(_.uw,{text:function(){return O().body},
isOverlay:!0})),_.E(_.R4,{data:function(){return O().buttons}},{buttonViewModel:function(b,T){return _.E("div",{class:function(){return T()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.E(_.DO,{data:b.data}))}}))},"Bi");
ik9.idomCompat=!0;_.O1(ik9,"reel-watch-break-view-model",{props:{data:_.te}});var aU=function(){return _.n.apply(this,arguments)||this};
_.R(aU,_.n);aU.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}}};
_.Jq.Object.defineProperties(aU.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.P((W=this.data)==null?void 0:W.renderer,HRg)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var W;return!!_.P((W=this.data)==null?void 0:W.renderer,t8D)}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],aU.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],aU.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aU.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aU.prototype,"isSurvey",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.renderer"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],aU.prototype,"isInterstitialViewModel",null);aU=_.t([_.G({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],aU);
_.H(aU,"ytd-reel-non-video-content-renderer",function(){if(OkB!==void 0)return OkB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return OkB=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var bkg;_.O1(_.Ckk,"desktop-shorts-player-controls",{});var m4=function(){var W=_.n.apply(this,arguments)||this;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.showPlayerControls=!1;W.showScrubber=!1;W.autoHideJobId=0;W.modern=_.e("web_button_rework");W.overlayType=_.dO("web_shorts_expanded_overlay_type");W.panelData=void 0;W.isWatchWhileMode=!1;W.hasError=!1;W.panelShowDelayMs=1;W.scrubberComponent={};W.useStamper=_.e("web_shorts_enable_title_deflation");W.isFullscreen=!1;W.shouldHideOverlay=!1;W.enableAnchoredPanel=_.e("desktop_shorts_v2_anchored_panel");
W.enablePersistentAnchoredPanel=_.e("desktop_shorts_v2_persistent_anchored_panel");W.hideWatchWhilePanel=_.e("web_shorts_hide_watch_while_panel");W.isPersistentPanelActive=!1;W.anchoredPanelActive=!1;W.isShortsPipActive=!1;W.smallScreenSqueezeback=!1;W.enableFlexibleOverlay=_.e("web_enable_flexible_overlay");W.enableRemixButton=_.e("web_enable_shorts_remix_handoff_ep");W.overlayDensity=0;W.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
W.onWindowResized=function(){_.n2(W,"calculateOverlayDensity",function(){W.calculateOverlayDensity()},100)};
return W};
_.R(m4,_.n);_.d=m4.prototype;_.d.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.d.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.d.shouldRenderOverlayControl=function(W){return!this.useStamper&&this.isVideoContent(W)};
_.d.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var W=_.iq().resolve(_.P$);this.isWatchWhileMode&&(_.e("web_enable_shorts_new_carousel")?_.sF.addJob(function(){W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):W.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.d.handleShowReelsCommentsOverlayCommand=function(W){W=_.P(W,NXD);this.isActive&&(W==null?0:W.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))};
_.d.updateEngagementPanelVisibility=function(W,O){W&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:O?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:W}})};
_.d.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.d.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.iq().resolve(_.aL).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.d.handleWatchWhilePanelScrimClick=function(){var W=_.iq().resolve(_.P$);this.activeWatchWhilePanel&&(W.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.d.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.d.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.e("web_enable_shorts_new_carousel")?0:void 0}}};
_.d.handlePlayerClick=function(W){var O=this,b,T;if((T=(b=window).matchMedia)!=null&&T.call(b,"(any-pointer: coarse)").matches||!W)this.showPlayerControls=!0,_.sF.cancelJob(this.autoHideJobId),this.autoHideJobId=_.KB(_.sF,function(){O.showPlayerControls=!1},4E3)};
_.d.isFirstReel=function(){return this.index===0};
_.d.handleMouseenter=function(){_.sF.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.d.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.d.handleScrubberEnter=function(){this.showScrubber=!0};
_.d.handleScrubberLeave=function(){this.showScrubber=!1};
_.d.maybeLogNonDefaultAspectRatio=function(){var W;(W=this.data)!=null&&W.thumbnail&&this.isActive&&.5625!==vxk(this.data.thumbnail)&&_.z1E("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.d.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var W=document.querySelector("#shorts-container");if(W){W=W.offsetWidth/2-this.playerContainer.offsetWidth/2;W=W>=368?1:W>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&W===1&&(W=0);this.isPersistentPanelActive&&(W=0);window.innerWidth<=599&&(W=2);this.overlayDensity=W;var O;(O=this.onOverlayDensityChanged)==null||O.call(this,this.index,this.overlayDensity)}}};
_.d.onOverlayDensityChange=function(){var W;(W=this.onOverlayDensityChanged)==null||W.call(this,this.index,this.overlayDensity);(W=_.Q(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&W.set("overlayDensity",this.overlayDensity);if(W=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))W.overlayDensity=this.overlayDensity};
_.d.isVideoContent=function(W){_.iq().resolve(_.aL);return!!_.P(W,_.l8)};
_.d.isNonVideoContent=function(W){_.iq().resolve(_.aL);return!!_.P(W,_.Qg)};
_.d.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Jq.Object.defineProperties(m4.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var W,O;return _.e("web_enable_format_first")||((W=this.data)==null?void 0:W.adsOverlay)&&_.e("web_enable_format_first_ads_only")||((O=this.data)==null?void 0:O.reelPlayerOverlayRenderer)&&_.e("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var W;return!this.isActive||!this.isPlayerStarted||(W=this.data)!=null&&W.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var W;if(this.useStamper&&((W=this.data)==null?0:W.command)&&this.isVideoContent(this.data.command)){var O,b;if(((O=this.data)==null?0:O.adsOverlay)&&Object.keys((b=this.data)==null?void 0:b.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var T,L;if(((T=this.data)==null?0:T.reelPlayerOverlayRenderer)&&Object.keys((L=this.data)==null?void 0:L.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
m4.prototype.onOverlayDensityChange=m4.prototype.onOverlayDensityChange;m4.prototype.calculateOverlayDensity=m4.prototype.calculateOverlayDensity;m4.prototype.maybeLogNonDefaultAspectRatio=m4.prototype.maybeLogNonDefaultAspectRatio;m4.prototype.onEngagementPanelsChanged=m4.prototype.onEngagementPanelsChanged;m4.prototype.onScrubberDataChange=m4.prototype.onScrubberDataChange;m4.prototype.updateShouldHideOverlay=m4.prototype.updateShouldHideOverlay;
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],m4.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],m4.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],m4.prototype,"index",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],m4.prototype,"isActive",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],m4.prototype,"isHiddenInDom",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"isPlayerPaused",void 0);_.t([_.C({selector:oxD}),_.N("design:type",Object)],m4.prototype,"isPlayerStarted",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"showPlayerControls",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"showScrubber",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"autoHideJobId",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"overlayType",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],m4.prototype,"ytdReduxBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],m4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"watchWhileEngagementPanels",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"panelData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"isWatchWhileMode",void 0);_.t([_.C(),_.N("design:type",String)],m4.prototype,"activeWatchWhilePanel",void 0);
_.t([_.C(),_.N("design:type",Object)],m4.prototype,"hasError",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"panelShowDelayMs",void 0);_.t([_.C(),_.N("design:type",Object)],m4.prototype,"scrubberComponent",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"useStamper",void 0);_.t([_.C({selector:_.ay,reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"isFullscreen",void 0);
_.t([_.C(),_.N("design:type",Object)],m4.prototype,"shouldHideOverlay",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"enableAnchoredPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"enablePersistentAnchoredPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"hideWatchWhilePanel",void 0);
_.t([_.C({selector:_.oxO,reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"isPersistentPanelActive",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"anchoredPanelActive",void 0);_.t([_.C({selector:_.m9,reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"isShortsPipActive",void 0);_.t([_.C({selector:gxU,reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"smallScreenSqueezeback",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],m4.prototype,"enableFormatFirst",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"enableFlexibleOverlay",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"enableRemixButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],m4.prototype,"overlayDensity",void 0);
_.t([_.C(),_.N("design:type",Function)],m4.prototype,"onOverlayDensityChanged",void 0);_.t([_.C(),_.x("isActive","hasError"),_.N("design:type",Object),_.N("design:paramtypes",[])],m4.prototype,"shouldRenderPlayerElements",null);_.t([_.C(),_.x("isActive","isWatchWhileMode"),_.N("design:type",Object),_.N("design:paramtypes",[])],m4.prototype,"watchWhileOrPersistentActive",null);
_.t([_.m5("isActive","hasError","showingExpandedOverlay"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"updateShouldHideOverlay",null);_.t([_.C({reflectToAttribute:!0}),_.x("isActive","isPlayerStarted","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],m4.prototype,"shouldRenderScrubber",null);
_.t([_.m5("shouldRenderScrubber"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"onScrubberDataChange",null);_.t([_.x("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.N("design:type",Object),_.N("design:paramtypes",[])],m4.prototype,"overlayComponent",null);_.t([_.m5("watchWhileEngagementPanels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"onEngagementPanelsChanged",null);
_.t([_.El("#player-container"),_.N("design:type",HTMLElement)],m4.prototype,"playerContainer",void 0);_.t([_.El("#cinematic-container"),_.N("design:type",HTMLElement)],m4.prototype,"cinematicContainer",void 0);_.t([_.m5("isPersistentPanelActive","data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"maybeLogNonDefaultAspectRatio",null);
_.t([_.m5("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"calculateOverlayDensity",null);_.t([_.m5("overlayDensity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m4.prototype,"onOverlayDensityChange",null);m4=_.t([_.G({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],m4);
_.H(m4,"ytd-reel-video-renderer",function(){if(bkg!==void 0)return bkg;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return bkg=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var Y5=function(){var W=_.n.apply(this,arguments)||this;W.isPreviousPageShorts=!1;W.index=0;W.delayedActiveIndex=0;W.playablePreviousIndex=null;W.isPlayerPaused=!1;W.isPlayerStarted=!1;W.intersectionObserverThreshold=.6;W.fitToVisibleBounds=!1;W.pageSubtype="shorts";W.enablePreviousContinuation=_.e("shorts_in_playlists_web");W.shortsPipEnabled=_.e("web_shorts_pip");W.isDark=document.documentElement.hasAttribute("dark");W.shortsViewTransitions=_.e("web_shorts_view_transitions");W.isFullscreen=!1;W.isShortsPipActive=
!1;W.buttonOverride={iconPosition:"icon-only",size:"XL"};W.anchoredPanelActive=!1;W.isActive=!1;W.smallScreenPersistentPanel=!1;W.isPersistentPanelActive=!1;W.smallScreenSqueezeBack=!1;W.enableScrollIntoViewCenter=_.e("web_scroll_into_view_center");W.formatFirst=_.e("web_enable_format_first")||_.e("web_enable_format_first_ads_only")||_.e("web_enable_format_first_organic_only");W.enableFlexibleOverlay=_.e("web_enable_flexible_overlay");W.isShortsInitialized=!1;W.hidePreviousButtonImmediately=!1;W.showPreviousButtonImmediately=
!1;W.endOfNextContinuation=!1;W.currentPlayerIndex=0;W.nextReelVe=_.gd(56921);W.prevReelVe=_.gd(56922);W.loopToggleOffVe=_.gd(198013);W.loopToggleOnVe=_.gd(198014);W.ambientModeToggleVe=_.gd(227860);W.reelPlayerPausedStateRendererVe=_.gd(141313);W.storedPlaybackSpeed=null;W.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"};
W.onOverlayDensityChanged=function(O,b){var T;(T=W.getActiveReelVideo(O))==null||T.setAttribute("overlay-density",String(b))};
return W};
_.R(Y5,_.n);_.d=Y5.prototype;
_.d.deflateInactivePreviousSlides=function(){var W=_.Lu("web_shorts_deflate_inactive_slides_aggressive_distance");if(W>0&&this.shortsProcessedSequence&&this.activeIndex){W=this.activeIndex-W;for(var O=0;O<=W;O++){var b=void 0;((b=this.shortsProcessedSequence[O].reelPlayerOverlayRenderer)==null?0:b.metapanel)&&this.set("shortsProcessedSequence."+O+".reelPlayerOverlayRenderer",{});b=void 0;((b=this.shortsProcessedSequence[O].adsOverlay)==null?0:b.adSlotMetadata)&&this.set("shortsProcessedSequence."+O+
".adsOverlay",{})}}};
_.d.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.d.onResize=function(){var W=_.uv(),O=W.dispatch,b=this.calculateIsSmallWidth();O.call(W,_.Tc({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:b}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.d.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:_.e("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.d.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var W=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,O=W,b=0;W<250&&(O=W+this.shortsInnerContainer.clientWidth,b=24);_.Sl(this.hostElement,{"--ytd-shorts-header-width":O+"px","--ytd-shorts-top-spacing":b+"px"})}};
_.d.isFirstShorts=function(W){return W?this.index===-W.length:this.index===0};
_.d.isActiveReel=function(W,O,b){b&&(O=this.calculatePrevIndex(O,b));return W===O};
_.d.onFullscreenChange=function(){if(_.e("web_fullscreen_shorts")){var W;(W=this.getActiveReelVideo(this.activeIndex))==null||W.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.iq().resolve(_.xq).close(!0)}};
_.d.engagementPanelsChanged=function(){var W;this.watchWhileEngagementPanels=(W=this.data)==null?void 0:W.engagementPanels};
_.d.unregisterPanels=function(){var W=_.iq().resolve(_.P$);if(this.watchWhileEngagementPanels)for(var O=_.S(this.watchWhileEngagementPanels),b=O.next();!b.done;b=O.next()){var T=void 0,L=void 0;b=(T=b.value.engagementPanelSectionListRenderer)==null?void 0:(L=T.identifier)==null?void 0:L.tag;W&&b&&W.panelMap.delete(b)}};
_.d.isVideoContent=function(W){return this.isVideoContentCommand(W==null?void 0:W.command)};
_.d.getActiveReelVideo=function(W){return _.Q(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+W+'"]')};
_.d.calculatePrevIndex=function(W,O){return O?W-((O==null?void 0:O.length)||0):-1};
_.d.onKeydown=function(W){var O=_.Nd(W)||[];if(!_.pU2(O))if(W.code==="ArrowUp")W.preventDefault(),this.handlePrevButtonClick();else if(W.code==="ArrowDown")W.preventDefault(),this.handleNextButtonClick();else if(W.code==="KeyM")this.toggleMuteUnmuteVideo();else if(W.code==="KeyK"||W.code==="Space")this.togglePlayPauseVideo();else if((W.code==="KeyA"||W.code==="ArrowLeft")&&_.e("web_shorts_keyboard_enable_seek_shortcuts")){var b;(b=this.player)==null||b.seekBy(-5)}else if((W.code==="KeyD"||W.code===
"ArrowRight")&&_.e("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var T;(T=this.player)==null||T.seekBy(5)}};
_.d.onServiceRequestCompleted=function(W,O){W=O.data;W.continuationEndpoint&&W.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:W.entries,continuationEndpoint:W.continuationEndpoint}}):W.prevContinuationEndpoint&&W.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:W.prevEntries,prevContinuationEndpoint:W.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.d.handleEngagementPanelVisibilityChanged=function(W,O){var b=_.iq().resolve(_.P$);if(W&&b){var T,L=((T=W.identifier)==null?void 0:T.tag)||W.panelIdentifier||W.targetId;if(O==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==L){b.hidePanel(this.activePanel);var h;this.activePanel=((h=W.identifier)==null?void 0:h.tag)||W.panelIdentifier}else this.isPersistentPanelActive=!0,_.uv().dispatch(DwB(!0)),this.anchoredPanelActive=!0,this.activePanel=L;else O==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===L&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.uv().dispatch(DwB(!1)))}};
_.d.handlePanelScrimClick=function(){var W=_.iq().resolve(_.P$);this.activePanel&&(W.hidePanel(this.activePanel),_.uv().dispatch(DwB(!1)))};
_.d.getShortsLoopSetting=function(){var W,O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return _.e("kevlar_shorts_auto_advance")?_.Y(h,_.lh.getInstance(),2):h.return(!0);case 2:return(W=h.yieldResult)?_.Y(h,W.get("sfvles"),3):h.return(!0);case 3:return b=(O=h.yieldResult)!=null?O:!1,_.Y(h,W.get("sfvle"),4);case 4:return L=(T=h.yieldResult)!=null?T:!0,b?h.return(L):h.return(!0)}})};
_.d.handleSignalActionToggleLoopShortsOff=function(){var W=this,O,b,T;return _.I(function(L){switch(L.nextAddress){case 1:if(!W.player)return L.return();W.player.setLoopVideo(!1);O=_.A4();_.LK(O,W.loopToggleOffVe);return _.Y(L,_.lh.getInstance(),2);case 2:return(b=L.yieldResult)?_.Y(L,b.set("sfvle",!1),3):L.return();case 3:return _.Y(L,b.set("sfvles",!0),4);case 4:T=_.Xt(),_.UO(0,203,!1),_.UO(0,204,!0),T.save(),_.aD(L)}})};
_.d.handleSignalActionToggleLoopShortsOn=function(){var W=this,O,b,T;return _.I(function(L){switch(L.nextAddress){case 1:if(!W.player)return L.return();W.player.setLoopVideo(!0);O=_.A4();_.LK(O,W.loopToggleOnVe);return _.Y(L,_.lh.getInstance(),2);case 2:return(b=L.yieldResult)?_.Y(L,b.set("sfvle",!0),3):L.return();case 3:return _.Y(L,b.set("sfvles",!0),4);case 4:T=_.Xt(),_.UO(0,203,!0),_.UO(0,204,!0),T.save(),_.aD(L)}})};
_.d.handleSignalActionToggleCinematicShortsOn=function(){KeN(!0);var W;(W=this.JSC$19713_cinematicController)==null||_.e2k(W,!0);_.LK(_.A4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.d.handleSignalActionToggleCinematicShortsOff=function(){KeN(!1);var W;(W=this.JSC$19713_cinematicController)==null||_.e2k(W,!1);_.LK(_.A4(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.d.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.d.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.d.unhideCurrentOverlay=function(){if(this.overlayContainer){var W=this.overlayContainer.querySelector("#experiment-overlay");W&&_.sF.addLowPriorityJob(function(){W.style.display="unset"},100)}};
_.d.getCurrentShort=function(){if(this.currentEndpoint){var W=this.currentEndpoint;if(this.isNonVideoContentCommand(W)){var O=_.P(W,_.Qg);return{reelNonVideoContentRenderer:_.P(O==null?void 0:O.renderer,_.qYn),command:W}}if(this.data){var b;O=(b=_.P(this.currentEndpoint,_.l8))==null?void 0:b.thumbnail;var T;b=(T=this.data.overlay)==null?void 0:T.reelPlayerOverlayRenderer;_.iq().resolve(_.aL);W=this.data;var L,h;T=(L=W.overlay)==null?void 0:(h=L.shortsAdsRenderer)==null?void 0:h.adSlots;if(T!==void 0)T.length===
0?(_.Fg("Shorts ads returned no ad slots."),W=void 0):(T.length>1&&_.Fg("Shorts ads has more than one ad slots."),W=_.P(T[0],_.As5));else{var Z,a;W=_.P((Z=W.overlay)==null?void 0:(a=Z.shortsAdsRenderer)==null?void 0:a.overlay,_.As5)}Z=W;W=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.P(this.currentEndpoint,_.l8),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:b,thumbnail:O,command:W,adsOverlay:Z}}}};
_.d.created=function(){var W=this;this.scrollToVideoThrottle=new _.JI(function(O){var b;(b=W.getActiveReelVideo(O))==null||b.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.JI(function(O){var b;(b=W.getActiveReelVideo(O))==null||b.scrollIntoView({behavior:"auto",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.d.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.d.attached=function(){var W=this;BXU(this);this.pageScrollElement=_.Q(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.Ii(this,this.processResetAction));_.e("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.e("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var O=W.getActiveReelVideo(W.activeIndex);
W.maybeCreateIntersectionObserver();O==null||O.scrollIntoView({behavior:"instant",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"});W.shortsContainer.style.overflowY="scroll"}))};
_.d.calculateSqueezebackPanelSize=function(){var W=this,O=window.innerWidth-456-(window.innerHeight-106)*.5625;_.sF.addLowPriorityJob(function(){O<360?_.uv().dispatch(xw7(!0)):(W.hostElement.style.setProperty("--anchored-panel-width",Math.min(O,480)+"px"),_.uv().dispatch(xw7(!1)))})};
_.d.detached=function(){var W=_.iq().resolve(_.aL);W.rootElement=void 0;var O;(O=W.unsubscribeFromStore)==null||O.call(W);W.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.Ii(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.d.onResizeFinished=function(W,O){var b=this,T=new ResizeObserver(function(){b.shortsContainer.style.overflowY="hidden";_.sF.addLowPriorityJob(function(){O()},100)});
T.observe(W);return T};
_.d.resetDocumentScrollTop=function(){var W,O;if((W=document)==null?0:(O=W.scrollingElement)==null?0:O.scrollTop)document.scrollingElement.scrollTop=0};
_.d.loadPage_=function(W){var O=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),W){var b;if((b=_.P(this.currentEndpoint,_.l8))==null?0:b.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=W;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){O.isPlayerStarted&&
(O.handleOnPlaybackCommand(),O.afterPlayerStarted=function(){})};
this.registerPanel(W)}};
_.d.afterPlayerStarted=function(){};
_.d.handleOnPlaybackCommand=function(){if(_.e("web_shorts_comment_stickers")&&this.isPlayerStarted){var W,O=(W=_.P(this.currentEndpoint,_.l8))==null?void 0:W.onPlaybackCommand;O&&this.ytComponentBehavior.resolveCommand(O)}};
_.d.maybeCreateIntersectionObserver=function(){var W=this,O=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==O){this.intersectionObserverThreshold=O;var b={rootMargin:"0px",threshold:O},T;(T=this.intersectionObserver)==null||T.disconnect();this.intersectionObserver=new IntersectionObserver(function(L){L=_.S(L);for(var h=L.next();!h.done;h=L.next())if(h=h.value,h.intersectionRatio>O){h=Number(h.target.id);if(isNaN(h))break;if(h===W.index)break;
_.cE8();W.loadVideo(h);_.DM("r_vtc")}},b);
this.observeShorts()}};
_.d.observeShorts=function(){var W=[].concat(_.PG(_.Q(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=void 0;(b=this.intersectionObserver)==null||b.observe(O)}};
_.d.initCsi=function(){_.Ki("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var W={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"}},O,b;if((O=this.playerData)==null?0:(b=O.cacheMetadata)==null?0:b.isCacheHit)W.isCacheHit=!0;var T;if(O=(T=_.P(this.currentEndpoint,_.l8))==null?void 0:
T.prefetchTaskId)W.prefetchInfo={taskId:O};_.k0(W)};
_.d.isAd=function(){var W,O;return!!((W=_.P(this.currentEndpoint,_.l8))==null?0:(O=W.adClientParams)==null?0:O.isAd)};
_.d.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.d.getPlayerContainer=function(){var W;return(W=_.Q(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:W.playerContainer};
_.d.onPlayerStateChange=function(W){var O=this;this.isPlayerPaused=W===2;W!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?W===1&&this.index===0&&(this.isPlayerStarted||_.uv().dispatch(Tm(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.uv().dispatch(Tm(!0)));this.player&&!this.player.getLoopVideo()&&_.sF.addLowPriorityJob(function(){O.getShortsLoopSetting().then(function(b){var T;(T=O.player)==null||T.setLoopVideo(b)})});
this.isPlayerPaused&&_.e("web_shorts_paused_state_logging")&&_.t3(_.Bb(),[this.reelPlayerPausedStateRendererVe])};
_.d.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
_.d.isShortPlayable=function(){if(_.e("kevlar_playable_short_killswitch"))return!0;var W;return(W=this.playerData)!=null&&W.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.d.setNormalPlaybackSpeed=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.getPlayer().getPlayerPromise(),2);O=T.yieldResult;b=O.getPlaybackRate();b!==1&&(W.storedPlaybackSpeed=b,O.setPlaybackRate(1));_.aD(T)})};
_.d.restorePlaybackSpeed=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1)return W.storedPlaybackSpeed===null?b.jumpTo(0):_.Y(b,W.getPlayer().getPlayerPromise(),3);O=b.yieldResult;O.setPlaybackRate(W.storedPlaybackSpeed);W.storedPlaybackSpeed=null;_.aD(b)})};
_.d.playerDataChanged=function(){var W=this,O,b,T,L,h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1){O=W.getPlayer();_.e("web_shorts_dynamic_intersection_observer_threshold")&&((b=W.intersectionObserver)==null||b.disconnect());if(W.playerData){if(((T=W.playerData.videoDetails)==null?void 0:T.videoId)!==((L=O.getPlayer())==null?void 0:L.getVideoData().video_id)){h={};if(Z=_.P(W.currentEndpoint,_.l8))h.watch_endpoint=Z,Z.endTimeSeconds&&(h.end=Z.endTimeSeconds);O.loadVideoWithPlayerResponse(W.playerData,
h)}}else return A.return();return W.player?A.jumpTo(2):_.Y(A,O.getPlayerPromise(),3)}A.nextAddress!=2&&(W.player=A.yieldResult,W.JSC$19713_playerStateChangeListener=W.onPlayerStateChange.bind(W),W.player.addEventListener("onStateChange",W.JSC$19713_playerStateChangeListener),_.e("kevlar_client_enable_shorts_player_bootstrap")&&_.Ms(),W.scrollToVideoThrottle.fire(W.index),W.movePlayerToVideo(W.index),_.sF.addLowPriorityJob(function(){W.getShortsLoopSetting().then(function(X){var l;(l=W.player)==null||
l.setLoopVideo(X)})}),_.PoU.resolve(W.player),W.player.syncVolume(),W.getPlayer().focusOnPlayer());
_.e("web_shorts_caption_language_entity_killswitch")||_.sF.addLowPriorityJob(function(){var X=_.iq().resolve(_.aL),l,p=(l=W.player)==null?void 0:l.getOption("captions","track");l=_.Z5("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(p){var K;((K=_.wt(_.V_T,l)())==null?void 0:K.value)!==p.displayName&&X.store.dispatch(_.AI("stringEntity",l,{key:l,value:p.displayName||""}))}else X.store.dispatch(_.AI("stringEntity",l,{key:l,value:"CAPTIONS_UNAVAILABLE"}))});
_.sF.addLowPriorityJob(function(){W.observeShorts()},100);
a=W.player.getPlayerState(W.player.getPresentingPlayerType());a!==1||W.isPlayerStarted||_.uv().dispatch(Tm(!0));W.updateBackNavContainerWidth();m=_.P(W.currentEndpoint,_.l8);((w=m)==null?0:w.startTimeSeconds)&&W.player.seekTo(m.startTimeSeconds);if(W.JSC$19713_cinematicController||W.cinematicsInitializeJobId)return A.return();W.cinematicsInitializeJobId=_.sF.addLowPriorityJob(function(){W.initCinematicController();W.cinematicsInitializeJobId=void 0});
_.aD(A)})};
_.d.onShortUndoDismiss=function(){var W=this,O=rbZ().pop();O!==void 0&&(_.My(this,function(){W.showCardWithIndex(O)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.d.onShortsDismiss=function(W){if(W=W.detail.reelDismissalActionRenderer)(W=_.P(W.onDismissalCompletionRenderer,_.FW9))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:W}}}),this.scrollAndDismissCard()};
_.d.processReelNonVideoContentDismissalCommand=function(W){var O=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);W=_.P(W,V88);this.activeDimissalTimeout=setTimeout(function(){O.scrollAndDismissCard()},Number(W==null?void 0:W.delayMs))};
_.d.scrollAndDismissCard=function(){var W=this,O=this.index;rbZ().push(O);_.My(this,function(){var b=W.getPlayableNextIndex();b!==null&&(b=W.getActiveReelVideo(b),W.hideCardWithIndex(O),b==null||b.scrollIntoView({behavior:"smooth",block:"nearest",inline:W.enableScrollIntoViewCenter?"center":"start"}))})};
_.d.hideCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!0};
_.d.showCardWithIndex=function(W){if(W=this.getActiveReelVideo(W))W.hidden=!1};
_.d.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.d.activeChanged=function(W){_.uv().dispatch(_.Tc({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:W}}));if(W)document.addEventListener("keydown",_.Ii(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var O;(O=this.player)==null||O.sendAbandonmentPing()}var b;(b=this.player)==null||b.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.Ii(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.d.graftClientVisualElements=function(){if(this.data){var W=_.A4();_.eiH(W,_.ZM({response:this.reelWatchSequenceResponse}));_.jn(W,this.nextReelVe);_.jn(W,this.prevReelVe);_.e("kevlar_shorts_auto_advance")&&(_.jn(W,this.loopToggleOffVe),_.jn(W,this.loopToggleOnVe));_.jn(W,this.ambientModeToggleVe);_.t3(_.Bb(),[this.nextReelVe,this.prevReelVe]);_.e("web_shorts_paused_state_logging")&&_.jn(W,this.reelPlayerPausedStateRendererVe)}};
_.d.graftNvcRenderer=function(){var W,O,b,T,L=this.index<0?(W=this.shortsProcessedPrevSequence)==null?void 0:(O=W[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:O.command:(b=this.shortsProcessedSequence)==null?void 0:(T=b[this.index])==null?void 0:T.command;if(L&&this.isNonVideoContentCommand(L)){W=_.P(L,_.Qg);var h,Z;(W=(h=_.P(W==null?void 0:W.renderer,_.qYn))==null?void 0:(Z=h.loggingDirectives)==null?void 0:Z.trackingParams)&&_.A4().graftServerVe(W)}};
_.d.setActiveIndex=function(){_.iq().resolve(_.aL).setActiveIndex(this.index)};
_.d.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.d.lazyUpdateMiniplayerData=function(){var W=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.sF.addLowPriorityJob(function(){W.updateMiniplayerData();W.updateMiniplayerDataJobId=void 0}))};
_.d.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.sF.cancelJob(this.updateMiniplayerDataJobId)};
_.d.updateMiniplayerData=function(){var W,O,b,T=_.iq().resolve(_.xq),L={shortsData:this.getCurrentShort(),previousButtonDisabled:!((W=this.prevButtonData)==null||!W.isDisabled),nextButtonDisabled:!((O=this.nextButtonData)==null||!O.isDisabled),playabilityStatus:(b=this.playerData)==null?void 0:b.playabilityStatus};_.Pp(T,L)};
_.d.resetPlayerLocation=function(){var W=this.getPlayer();this.initialPlayerContainer&&W.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.d.movePlayerToVideo=function(W,O){var b=this;O=O===void 0?!0:O;var T=this.getActiveReelVideo(W),L=this.getPlayer();if(T){this.overlayContainer||(this.overlayContainer=_.Q(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||L.appendTo(this.overlayContainer.playerContainer,void 0,!0));T.appendChild(this.overlayContainer);var h;(h=this.player)==null||h.setSize(NaN,NaN);this.isActive||_.KB(_.sF,function(){b.isActive=!0});
L.style.visibility="visible";_.e("reels_web_disable_rtr_tick")||_.e("reels_web_use_pbs_first_shorts")&&W===0||_.Bg("r_tr");this.currentPlayerIndex=W;T.appendChild(this.errorScreenContainer);var Z;(Z=this.JSC$19713_cinematicController)==null||_.pAU(Z)}else O?_.sF.addLowPriorityJob(function(){b.movePlayerToVideo(b.index,!1)}):Math.random()<=_.Lu("web_shorts_error_logging_threshold")&&_.xG(new _.pu("Trying to movePlayerToVideo with undefined container.",{firstAttempt:O,
index:W}))};
_.d.enableFormatFirst=function(W){return _.e("web_enable_format_first")||W.adsOverlay&&_.e("web_enable_format_first_ads_only")||W.reelPlayerOverlayRenderer&&_.e("web_enable_format_first_organic_only")};
_.d.getAspectRatio=function(W){if(W!=null&&W.thumbnail&&this.enableFormatFirst(W))return"--ytd-shorts-player-ratio: "+vxk(W.thumbnail)};
_.d.getBackgroundImage=function(W){if(W!=null&&W.thumbnail)return(W=_.jE(W.thumbnail.thumbnails))?'background-image:url("'+W+'");':"background-color:black;"};
_.d.onPersistentPanelActiveChanged=function(){var W=this.getCurrentShort();if(W&&this.enableFormatFirst(W)&&(W==null?0:W.thumbnail)&&vxk(W.thumbnail)!==.5625){var O;(O=this.player)==null||O.setSize(NaN,NaN)}};
_.d.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.d.moveCinematicsToVideo=function(){var W=_.Q(this.hostElement).querySelector("ytd-reel-video-renderer");(W==null?0:W.cinematicContainer)&&W.cinematicContainer!==this.shortsCinematicContainer.parentElement&&W.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.d.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.d.updatePrevButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(W){var O;this.prevButtonData=W=Object.assign({},W,{accessibility:{label:_.EO("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:W.isDisabled||this.index===-(((O=this.shortsProcessedPrevSequence)==null?void 0:O.length)||0),tooltip:this.isUpArrowHidden?"":_.EO("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=W=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.d.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.d.updateNextButtonData=function(){var W=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(W){var O;this.nextButtonData=W=Object.assign({},W,{accessibility:{label:_.EO("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:W.isDisabled||this.index===((O=this.shortsProcessedSequence)==null?void 0:O.length),tooltip:_.EO("NEXT_VIDEO_LABEL")||""})}};
_.d.getPlayablePreviousIndex=function(){for(var W,O=this.index-1;O>=-(((W=this.prevShortsSequence)==null?void 0:W.length)||0);O--)if(!rbZ().includes(O))return O;return null};
_.d.getIndexInSequence=function(W,O){return W.findIndex(function(b){var T;return((T=_.P(b.command,_.l8))==null?void 0:T.videoId)===O})};
_.d.handlePrevButtonClick=function(W){var O=this,b,T;return _.I(function(L){b=O.getPlayablePreviousIndex();if(b===null)return L.return();O.gestureType=((T=W)==null?void 0:T.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b===0&&(O.hidePreviousButtonImmediately=!0);if(O.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){O.transitionToVideoThrottle.fire(b)}),L.return();
O.scrollToVideoThrottle.fire(b);_.aD(L)})};
_.d.getPlayableNextIndex=function(){for(var W,O=this.index+1;O<(((W=this.shortsProcessedSequence)==null?void 0:W.length)||0);O++)if(!rbZ().includes(O))return O;return null};
_.d.handleNextButtonClick=function(W,O){var b=this,T,L;return _.I(function(h){T=b.getPlayableNextIndex();if(T===null)return h.return();T===1&&(b.showPreviousButtonImmediately=!0);b.gestureType=((L=W)==null?void 0:L.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";O&&(b.gestureType=O);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.transitionToVideoThrottle.fire(T)}),h.return();
b.scrollToVideoThrottle.fire(T);_.aD(h)})};
_.d.handleReelNavigateCommand=function(W,O,b){(W=_.P(W,$w2))&&O&&W.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(b)};
_.d.loadVideo=function(W,O){O=O===void 0?!1:O;if(W!==this.currentPlayerIndex){_.uv().dispatch(Tm(!1));if(this.isAd()&&!O){var b;(b=this.player)==null||b.notifyShortsAdSwipeEvent()}if((O=this.JSC$19713_cinematicController)!=null){var T;(T=O.currentCinematicEffect)==null||T.pause()}if((T=this.JSC$19713_cinematicController)!=null){var L;(L=T.currentCinematicEffect)==null||L.clear()}T=W>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(T));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var h,Z,a,m;L=W<0?(h=this.shortsProcessedPrevSequence)==null?void 0:(Z=h[this.shortsProcessedPrevSequence.length+W])==null?void 0:Z.command:(a=this.shortsProcessedSequence)==null?void 0:(m=a[W])==null?void 0:m.command;this.index=W;this.gestureType||(this.gestureType=T?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
L&&this.isVideoContentCommand(L)&&(this.ytComponentBehavior.resolveCommand(L,{form:{createScreenConfig:{clickedVisualElement:T?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(L&&this.isNonVideoContentCommand(L)){this.currentEndpoint=L;this.data=void 0;h=_.A4();Z=_.P(L,_.Qg);var w,A;(Z=(w=_.P(Z==null?void 0:Z.renderer,_.qYn))==null?void 0:(A=w.screenLoggingData)==null?void 0:A.screenVeType)&&_.bh(h,Z);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo()}var X,l;if(((X=this.reelWatchSequenceResponse)==null?0:X.continuationEndpoint)&&((l=this.reelWatchSequenceResponse)==null?0:l.entries)&&W===this.reelWatchSequenceResponse.entries.length-1){var p,K;w={contentPlaybackContext:_.p_({},(K=_.P((p=this.currentEndpoint)==null?void 0:p.commandMetadata,_.F9))==null?void 0:K.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:w})}var k,r,q;((k=this.reelWatchSequenceResponse)==
null?0:k.prevContinuationEndpoint)&&W===-(((r=this.reelWatchSequenceResponse)==null?void 0:(q=r.prevEntries)==null?void 0:q.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.d.setMiniplayerPreview=function(W){W=(W===void 0?0:W)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var O,b,T=_.iq().resolve(_.xq),L={shortsData:void 0,shortsPreviewThumbnail:W?(O=this.shortsProcessedSequence)==null?void 0:(b=O[W])==null?void 0:b.thumbnail:void 0};_.Pp(T,L)};
_.d.updateTitle=function(W){var O,b;W=(W==null?0:W.adPlacements)?"":(b=W==null?void 0:(O=W.videoDetails)==null?void 0:O.title)!=null?b:"";_.bX(this.hostElement,"yt-update-title",W)};
_.d.registerPanel=function(W){var O=_.iq().resolve(_.P$);if(O){W=_.S(W.engagementPanels||[]);for(var b=W.next();!b.done;b=W.next()){b=b.value;var T=b.engagementPanelSectionListRenderer,L=void 0,h=void 0,Z=void 0,a=void 0,m=((L=T)==null?void 0:L.targetId)||((h=T)==null?void 0:h.panelIdentifier)||((Z=T)==null?void 0:(a=Z.identifier)==null?void 0:a.tag);L=T=void 0;(L=(T=O).registerPanelContent)==null||L.call(T,m,b)}}};
_.d.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.uv().dispatch(Tm(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.uv().dispatch(DwB(!1));var W=_.iq().resolve(_.aL);W.dismissedIndices=[];W.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.iq().resolve(_.xq).close(!0)};
_.d.processAppendReelWatchSequenceContinuationEntriesAction=function(W){var O=this,b;(b=this.intersectionObserver)==null||b.disconnect();W=W.appendReelWatchSequenceContinuationEntriesAction;if(W==null?0:W.entries){var T;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.PG(((T=this.reelWatchSequenceResponse)==null?void 0:T.entries)||[]),_.PG(W.entries)),continuationEndpoint:W.continuationEndpoint})}else if(W==null?0:W.prevEntries){var L;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.PG(((L=this.reelWatchSequenceResponse)==null?void 0:L.prevEntries)||[]),_.PG(W.prevEntries)),prevContinuationEndpoint:W.prevContinuationEndpoint});_.sF.addLowPriorityJob(function(){O.movePlayerToVideo(O.index);var h;(h=O.getActiveReelVideo(O.index))==null||h.scrollIntoView({block:"nearest",inline:O.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.sF.addLowPriorityJob(function(){O.observeShorts()},100)};
_.d.processWatchSequence=function(W){var O=this;return W.map(function(b){b=b.command;if(O.isVideoContentCommand(b)){var T=_.P(b,_.l8);return{reelPlayerOverlayRenderer:_.P(T==null?void 0:T.overlay,_.ngU),thumbnail:T.thumbnail,command:b}}return O.isNonVideoContentCommand(b)?(T=_.P(b,_.Qg),{reelNonVideoContentRenderer:_.P(T==null?void 0:T.renderer,_.qYn),command:b}):{command:b}})};
_.d.calculateIntersectionObserverThreshold=function(){if(!_.e("web_shorts_dynamic_intersection_observer_threshold"))return.6;var W=_.Q(this.hostElement).querySelector("ytd-reel-video-renderer"),O=1;(W==null?0:W.offsetHeight)&&(W==null?0:W.offsetWidth)&&(O=Math.min(W.offsetHeight,this.shortsContainer.offsetHeight)/W.offsetHeight*(Math.min(W.offsetWidth,this.shortsContainer.offsetWidth)/W.offsetWidth));return Math.round(O*.6*10)/10};
_.d.isVideoContentCommand=function(W){_.iq().resolve(_.aL);return!!_.P(W,_.l8)};
_.d.isNonVideoContentCommand=function(W){_.iq().resolve(_.aL);return!!_.P(W,_.Qg)};
_.d.initCinematicController=function(){var W=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19713_cinematicController=new _.jM(this.shortsCinematicContainer,this.player);var O,b=_.P((O=this.data)==null?void 0:O.background,_.PJ);_.PC7(this.JSC$19713_cinematicController,b);_.e2k(this.JSC$19713_cinematicController,R25(b));_.lT2(this.JSC$19713_cinematicController);_.sF.addLowPriorityJob(function(){W.moveCinematicsToVideo()})}};
_.d.handleMiniplayerNavigateShorts=function(W){W==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():W==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.d.handleSignalActionToggleShortsPictureInPicture=function(){if(_.iq().resolve(_.xq).pictureInPictureSupported()){var W=_.iq().resolve(_.aL);if(_.e("web_shorts_pip")){var O=_.iq().resolve(_.xq);W.isShortsPipActive()?O.deactivate():O.isMiniplayerActive()||(_.IT().shortsPipActivation=!0,_.MB5(O))}}else(W=this.player)==null||W.togglePictureInPicture()};
_.Jq.Object.defineProperties(Y5.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.prevEntries)return this.processWatchSequence([].concat(_.PG(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var W=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!W)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var O=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.PG(this.prevShortsSequence.slice(0,O)),[W],_.PG(this.prevShortsSequence.slice(O+
1)))}O=this.index+this.shortsProcessedPrevSequence.length;W.thumbnail=this.shortsProcessedPrevSequence[O].thumbnail;return[].concat(_.PG(this.shortsProcessedPrevSequence.slice(0,O)),[W],_.PG(this.shortsProcessedPrevSequence.slice(O+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.reelWatchSequenceResponse)!=null&&W.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var W=this.getCurrentShort();if(!W||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[W];if(W==null||!W.reelNonVideoContentRenderer){var O=this.getIndexInSequence(this.shortsSequence,_.P(this.currentEndpoint,_.l8).videoId);if(this.index===0&&O!==-1)return this.currentPlayerIndex=this.index=O,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.PG(this.shortsSequence.slice(0,this.index)),[W],_.PG(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){W.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var b,T,L,h;O=((T=_.P((b=this.shortsProcessedSequence[0])==null?void 0:b.command,_.l8))==null?void 0:T.videoId)===((h=_.P((L=this.shortsSequence[0])==null?void 0:L.command,_.l8))==null?void 0:h.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.PG(this.shortsProcessedSequence.slice(0,
this.index)),[W],_.PG(this.shortsSequence.slice(O)))}return[W].concat(_.PG(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var W=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;W&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(W)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 W,O;return this.index===((W=this.reelWatchSequenceResponse)==null?void 0:(O=W.entries)==null?void 0:O.length)}var b;return!((b=this.reelWatchSequenceResponse)==null?0:b.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var W;(W=this.delayedActiveIndexUpdateDebouncer)==null||W.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return this.isShortPlayable()||((O=_.P((W=this.data)==null?void 0:W.watchStatus,_.u8w))==null?void 0:(b=O.style)==null?void 0:b.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var W=this,O=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),b;if((this.data||O)&&(((b=this.data)==null?0:b.engagementPanels)||this.isAd()||O)){O=!1;this.activePanel="shorts-comments-panel";var T;b=_.S(((T=this.data)==null?void 0:T.engagementPanels)||[]);for(T=b.next();!T.done;T=b.next()){T=T.value.engagementPanelSectionListRenderer;var L=void 0,h=void 0,Z=void 0,a=void 0;if((((L=T)==null?void 0:(h=L.identifier)==
null?void 0:h.tag)||((Z=T)==null?void 0:Z.targetId)||((a=T)==null?void 0:a.panelIdentifier))===this.activePanel){O=!0;break}}if(this.isPersistentPanelActive){var m=_.iq().resolve(_.P$);_.KB(_.sF,function(){m.showPanel(W.activePanel,void 0,void 0,void 0,null)},100)}var w;
b=[].concat(_.PG(Object.values(((w=this.data)==null?void 0:w.engagementPanels)||{})));if(_.e("enable_preview_panel_for_shorts_search_suggested_action")){var A,X,l,p,K;((p=_.P((A=this.data)==null?void 0:(X=A.overlay)==null?void 0:(l=X.reelPlayerOverlayRenderer)==null?void 0:l.metapanel,_.CZU))==null?void 0:(K=p.metadataItems)==null?void 0:K.find(function(k){var r,q;return((r=_.P(k,M85))==null?void 0:(q=r.icon)==null?void 0:q.iconType)==="SEARCH"}))!==void 0&&b.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}w=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);A=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return w===void 0&&A===void 0||(w==null?0:w.isDisabled)||(A==null?void 0:A.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!O?(O=b==null?void 0:b.findIndex(function(k){var r,
q;return((r=k.engagementPanelSectionListRenderer)==null?void 0:(q=r.identifier)==null?void 0:q.tag)==="shorts-comments-panel"}),O===-1||O===void 0||b!=null&&b.splice(O,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.EO("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.EO("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:_.EO("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.EO("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(_.PG(Object.values(b||
{})))):b}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.shortsProcessedSequence)==null?void 0:W[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b,T;if((O=this.playerData)==null?0:(b=O.playabilityStatus)==null?0:(T=b.errorScreen)==null?0:T.playerInterstitialRenderer)return _.sF.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.playerData.playabilityStatus.errorScreen;
var L,h;return((L=this.data)==null?void 0:L.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((h=this.data)==null?0:h.watchStatus)&&_.P(this.data.watchStatus,_.u11)?(_.sF.addLowPriorityJob(function(){W.movePlayerToVideo(W.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Jq.Object.defineProperties(Y5,{template:{configurable:!0,enumerable:!0,get:function(){if(Jbk===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);Jbk=W}W=Jbk;return W}}});
Y5.prototype.onNextButtonDataChange=Y5.prototype.onNextButtonDataChange;Y5.prototype.onPrevButtonDataChange=Y5.prototype.onPrevButtonDataChange;Y5.prototype.onPersistentPanelActiveChanged=Y5.prototype.onPersistentPanelActiveChanged;Y5.prototype.lazyUpdateMiniplayerData=Y5.prototype.lazyUpdateMiniplayerData;Y5.prototype.onShortsPipActiveChanged=Y5.prototype.onShortsPipActiveChanged;Y5.prototype.setActiveIndex=Y5.prototype.setActiveIndex;Y5.prototype.graftNvcRenderer=Y5.prototype.graftNvcRenderer;
Y5.prototype.graftClientVisualElements=Y5.prototype.graftClientVisualElements;Y5.prototype.onActiveChanged=Y5.prototype.onActiveChanged;Y5.prototype.onShortsDismiss=Y5.prototype.onShortsDismiss;Y5.prototype.onShortUndoDismiss=Y5.prototype.onShortUndoDismiss;Y5.prototype.playerDataChanged=Y5.prototype.playerDataChanged;Y5.prototype.afterPlayerStarted=Y5.prototype.afterPlayerStarted;Y5.prototype.unhideCurrentOverlay=Y5.prototype.unhideCurrentOverlay;Y5.prototype.onServiceRequestCompleted=Y5.prototype.onServiceRequestCompleted;
Y5.prototype.engagementPanelsChanged=Y5.prototype.engagementPanelsChanged;Y5.prototype.onFullscreenChange=Y5.prototype.onFullscreenChange;Y5.prototype.onResize=Y5.prototype.onResize;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Y5.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.vJ.YtPageBehavior),_.N("design:type",Object)],Y5.prototype,"ytPageBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Y5.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.vL),_.N("design:type",Object)],Y5.prototype,"ironResizableBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Y5.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],Y5.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Y5.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Y5.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"playerData",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"reelWatchSequenceResponse",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"cachedReelWatchSequenceResponse",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"currentEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"nextButtonData",void 0);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"prevButtonData",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"isPreviousPageShorts",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"index",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"delayedActiveIndex",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"playablePreviousIndex",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"player",void 0);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"isPlayerPaused",void 0);_.t([_.C({selector:oxD}),_.N("design:type",Object)],Y5.prototype,"isPlayerStarted",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"intersectionObserver",void 0);_.t([_.C(),_.N("design:type",Number)],Y5.prototype,"cinematicsInitializeJobId",void 0);_.t([_.C(),_.N("design:type",Number)],Y5.prototype,"updateMiniplayerDataJobId",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"fitToVisibleBounds",void 0);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"pageSubtype",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Y5.prototype,"enablePreviousContinuation",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"shortsPipEnabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"isDark",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"shortsViewTransitions",void 0);
_.t([_.C({selector:_.ay,reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"isFullscreen",void 0);_.t([_.C({selector:_.m9,reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"isShortsPipActive",void 0);_.t([_.El("#shorts-inner-container"),_.N("design:type",HTMLElement)],Y5.prototype,"shortsInnerContainer",void 0);_.t([_.El("#back-nav-button ytd-button-renderer"),_.N("design:type",_.V8)],Y5.prototype,"backNavButton",void 0);
_.t([_.El("#shorts-container"),_.N("design:type",HTMLElement)],Y5.prototype,"shortsContainer",void 0);_.t([_.ux("error-screen"),_.N("design:type",HTMLElement)],Y5.prototype,"errorScreenContainer",void 0);_.t([_.ux("player"),_.N("design:type",Object)],Y5.prototype,"playerElement",void 0);_.t([_.ux("shorts-cinematic-container"),_.N("design:type",HTMLElement)],Y5.prototype,"shortsCinematicContainer",void 0);
_.t([_.ux("initial-player-container"),_.N("design:type",HTMLElement)],Y5.prototype,"initialPlayerContainer",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"buttonOverride",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"anchoredPanelActive",void 0);_.t([_.C(),_.N("design:type",String)],Y5.prototype,"activePanel",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"isActive",void 0);
_.t([_.C({selector:gxU,reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"smallScreenPersistentPanel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"isPersistentPanelActive",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"smallScreenSqueezeBack",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"enableScrollIntoViewCenter",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"formatFirst",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Y5.prototype,"enableFlexibleOverlay",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"panelContainer",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"overlayContainer",void 0);_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"isShortsInitialized",void 0);_.t([_.x("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"prevShortsSequence",null);
_.t([_.x("data","prevShortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"shortsProcessedPrevSequence",null);_.t([_.x("reelWatchSequenceResponse"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"shortsSequence",null);_.t([_.x("data","shortsSequence"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"shortsProcessedSequence",null);
_.t([_.C({reflectToAttribute:!0}),_.x("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Y5.prototype,"isUpArrowHidden",null);_.t([_.C({reflectToAttribute:!0}),_.x("reelWatchSequenceResponse","index","endOfNextContinuation"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Y5.prototype,"isDownArrowHidden",null);
_.t([_.C(),_.x("index"),_.N("design:type",Number),_.N("design:paramtypes",[])],Y5.prototype,"activeIndex",null);_.t([_.x("isShortPlayable","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Y5.prototype,"shouldRenderOfflineContent",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onResize",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"anchoredEngagementPanels",null);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"watchWhileEngagementPanels",void 0);_.t([_.m5("isFullscreen"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onFullscreenChange",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"engagementPanelsChanged",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Y5.prototype,"onServiceRequestCompleted",null);_.t([_.x("data","shortsSequence","index"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"activeReel",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"unhideCurrentOverlay",null);
_.t([_.m5("isPlayerStarted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"afterPlayerStarted",null);_.t([_.x("playerData","reelWatchSequenceResponse","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Y5.prototype,"errorScreen",null);_.t([_.x("errorScreen"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Y5.prototype,"hasError",null);
_.t([_.m5("playerData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],Y5.prototype,"playerDataChanged",null);_.t([_.ai("yt-dismissible-item-undo-feedback"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onShortUndoDismiss",null);_.t([_.ai("yt-disable-lockup-interaction"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Y5.prototype,"onShortsDismiss",null);
_.t([_.Ul("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onActiveChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"graftClientVisualElements",null);_.t([_.m5("currentPlayerIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"graftNvcRenderer",null);
_.t([_.m5("index"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"setActiveIndex",null);_.t([_.m5("isShortsPipActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onShortsPipActiveChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"lazyUpdateMiniplayerData",null);
_.t([_.C(),_.N("design:type",Object)],Y5.prototype,"onOverlayDensityChanged",void 0);_.t([_.m5("isPersistentPanelActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onPersistentPanelActiveChanged",null);_.t([_.m5("index","data","isUpArrowHidden"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onPrevButtonDataChange",null);
_.t([_.m5("index","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Y5.prototype,"onNextButtonDataChange",null);Y5=_.t([_.G({is:"ytd-shorts"})],Y5);_.W0.registerService(_.ii1,Y5);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("JzFVk");
var KWB=function(W){return _.E("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},Rm2(W.data.ctaButton,{buttonViewModel:{}}),_.E(_.uw,{text:W.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var veZ;var geD;var rx=function(){return _.n.apply(this,arguments)||this};
_.R(rx,_.n);rx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
rx.prototype.computeBlueBottomLink=function(W){return W};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rx.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rx.prototype,"data",void 0);_.t([_.C({computed:"computeIcon_(data.bottomIcon)"}),_.N("design:type",String)],rx.prototype,"bottomIcon",void 0);
_.t([_.C({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rx.prototype,"enableBlueBottomLink",void 0);rx=_.t([_.G({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],rx);
_.H(rx,"ytd-web-answer-renderer",function(){if(geD!==void 0)return geD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return geD=W},{mode:_.Lb("kevlar_poly_si_batch_j035")?1:2});var oeU;var Dg=function(){var W=_.n.apply(this,arguments)||this;W.hasChipBar=!1;return W};
_.R(Dg,_.n);Dg.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}}};
Dg.prototype.computeHasChipBar=function(W){return!(W==null||!W.chipBar)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Dg.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Dg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Dg.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.N("design:type",Object)],Dg.prototype,"hasChipBar",void 0);Dg=_.t([_.G({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Dg);
_.H(Dg,"ytd-search-header-renderer",function(){if(oeU!==void 0)return oeU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return oeU=W},{mode:1});var QX8;var xw=function(){return _.n.apply(this,arguments)||this};
_.R(xw,_.n);xw.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xw.prototype,"data",void 0);xw=_.t([_.G({disableElementRegistration:!0,is:"ytd-page-continuation"})],xw);
_.H(xw,"ytd-page-continuation",function(){if(QX8!==void 0)return QX8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return QX8=W},{mode:1});var kS2;var sX5;var BI2;var zv=function(){return _.n.apply(this,arguments)||this};
_.R(zv,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zv.prototype,"data",void 0);zv=_.t([_.G({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],zv);
_.H(zv,"ytd-watch-card-one-vs-one-event",function(){if(BI2!==void 0)return BI2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return BI2=W},{mode:1});var CX=function(){return _.n.apply(this,arguments)||this};
_.R(CX,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CX.prototype,"data",void 0);CX=_.t([_.G({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],CX);
_.H(CX,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(sX5!==void 0)return sX5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return sX5=W},{mode:1});var rQB;var qx=function(){return _.n.apply(this,arguments)||this};
_.R(qx,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qx.prototype,"data",void 0);qx=_.t([_.G({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],qx);
_.H(qx,"ytd-banner-and-box-hero-image-renderer",function(){if(rQB!==void 0)return rQB;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rQB=W},{mode:1});var DUg;var nX=function(){var W=_.n.apply(this,arguments)||this;W.modern=_.e("web_modern_buttons");return W};
_.R(nX,_.n);nX.prototype.computeIcon=function(){var W,O,b=(W=this.data)==null?void 0:(O=W.icon)==null?void 0:O.iconType;if(b)return _.Z6(b)};
nX.prototype.computeButtonShape=function(){var W;return{buttonText:_.NX((W=this.data)==null?void 0:W.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Jq.Object.defineProperties(nX.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"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nX.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],nX.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nX.prototype,"modern",void 0);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],nX.prototype,"buttonColor",null);
nX=_.t([_.G({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],nX);
_.H(nX,"ytd-call-to-action-button-renderer",function(){if(DUg!==void 0)return DUg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DUg=W},{mode:1});var xU2;var fX=function(){return _.n.apply(this,arguments)||this};
_.R(fX,_.n);fX.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Q(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.bn(this.data.leftThumbnail.thumbnails,216)+")")};
fX.prototype.onLeftThumbnailChanged=fX.prototype.onLeftThumbnailChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fX.prototype,"data",void 0);_.t([_.m5("data.leftThumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fX.prototype,"onLeftThumbnailChanged",null);fX=_.t([_.G({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],fX);
_.H(fX,"ytd-collage-hero-image-renderer",function(){if(xU2!==void 0)return xU2;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return xU2=W},{mode:1});var zmg;var Gv=function(){return _.n.apply(this,arguments)||this};
_.R(Gv,_.n);Gv.prototype.computeStyle=function(W){return W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Gv.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.N("design:type",String)],Gv.prototype,"componentStyle",void 0);Gv=_.t([_.G({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Gv);
_.H(Gv,"ytd-single-hero-image-renderer",function(){if(zmg!==void 0)return zmg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zmg=W},{mode:1});var ClP;var Hf=function(){return _.n.apply(this,arguments)||this};
_.R(Hf,_.n);_.d=Hf.prototype;
_.d.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:_.e("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.d.computeSubtitle=function(W){if(this.data){var O;if(this.data.upcomingEventData){W=_.NX(W.subtitle);var b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(O=_.VV(_.xz(W,b)))}else O=W.subtitle;return O}};
_.d.onHeroTap=function(W){W.preventDefault();var O=this.data&&this.data.navigationEndpoint;!O||!_.un(_.Nd(W),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.un(_.Nd(W),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.e("kevlar_watchcard_hero_video_renderer_killswitch")?_.bX(this.hostElement,"yt-navigate",{navigationEndpoint:O}):this.ytComponentBehavior.resolveCommand(O))};
_.d.computeHeroTabIndex=function(W){return W&&W.simpleText?-1:0};
_.d.computeHeroRole=function(W){return W&&W.simpleText?"":"link"};
_.d.computeIsReminderButtonPresent=function(W){return!(!W||!W.reminderButton)};
_.d.computeHideBottomItems=function(W){return!(this.computeIsReminderButtonPresent(W)||W.subtitle)};
_.d.dataChanged=function(){var W=this.get("data.buttons.buttonRenderer.serviceEndpoint"),O;((O=_.P(W==null?void 0:W.commandMetadata,_.RP))==null?0:O.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(W)};
Hf.prototype.dataChanged=Hf.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Hf.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Hf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Hf.prototype,"data",void 0);
_.t([_.C({computed:"computeSubtitle(data)"}),_.N("design:type",String)],Hf.prototype,"subtitle",void 0);_.t([_.C({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hf.prototype,"isReminderButtonPresent",void 0);_.t([_.C({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Hf.prototype,"hideBottomItems",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hf.prototype,"dataChanged",null);Hf=_.t([_.G({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Hf);
_.H(Hf,"ytd-watch-card-hero-video-renderer",function(){if(ClP!==void 0)return ClP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ClP=W},{mode:1});var qX8;var th=function(){return _.n.apply(this,arguments)||this};
_.R(th,_.n);_.d=th.prototype;_.d.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"}}}};
_.d.computeTitleBadges=function(W){return W?[W]:[]};
_.d.computeHeaderStyle=function(W){return W?W.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.d.computeAvatarAriaLabel=function(W){if(W){var O,b,T,L;return(L=(O=W.avatar)==null?void 0:(b=O.accessibility)==null?void 0:(T=b.accessibilityData)==null?void 0:T.label)!=null?L:_.NX(W==null?void 0:W.title)}};
_.d.computeAvatarHeight=function(W){return W==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.d.computeBadgeRowClass=function(W){return(W==null?0:W[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],th.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],th.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],th.prototype,"data",void 0);_.t([_.C({computed:"computeTitleBadges(data.titleBadge)"}),_.N("design:type",Array)],th.prototype,"titleBadges",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.N("design:type",String)],th.prototype,"headerStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.N("design:type",String)],th.prototype,"badgeRowClass",void 0);th=_.t([_.G({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],th);
_.H(th,"ytd-watch-card-rich-header-renderer",function(){if(qX8!==void 0)return qX8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return qX8=W},{mode:1});var ne8;var fe1;var $w=function(){return _.n.apply(this,arguments)||this};
_.R($w,_.n);$w.prototype.onMetadataTap=function(W){var O=this.data&&this.data.navigationEndpoint;O&&!_.un(_.Nd(W),this.hostElement,["A".toString()])&&_.bX(this.hostElement,"yt-navigate",{endpoint:O})};
_.Jq.Object.defineProperties($w.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 W;if(this.data.upcomingEventData){var O=_.NX(this.data.subtitle),b=Number(this.data.upcomingEventData.startTime);isNaN(b)||(W=_.VV(_.xz(O,b)))}else W=this.data.subtitle;return W}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$w.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],$w.prototype,"isCondensed",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$w.prototype,"subtitle",null);
$w=_.t([_.G({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],$w);
_.H($w,"ytd-watch-card-compact-video-renderer",function(){if(fe1!==void 0)return fe1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fe1=W},{mode:1});var GS5;var Vz=function(){return _.n.apply(this,arguments)||this};
_.R(Vz,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vz.prototype,"data",void 0);Vz=_.t([_.G({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Vz);
_.H(Vz,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(GS5!==void 0)return GS5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GS5=W},{mode:1});var Nx=function(){return _.n.apply(this,arguments)||this};
_.R(Nx,_.n);Nx.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}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Nx.prototype,"ytRendererStamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Nx.prototype,"data",void 0);Nx=_.t([_.G({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],Nx);
_.H(Nx,"ytd-vertical-watch-card-list-renderer",function(){if(ne8!==void 0)return ne8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ne8=W},{mode:1});var H3N;var Mx=function(){var W=_.n.apply(this,arguments)||this;W.ariaExpanded="false";return W};
_.R(Mx,_.n);_.d=Mx.prototype;_.d.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.d.dataChanged=function(){var W;this.currentSeasonIndex=((W=this.data)==null?void 0:W.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.d.computeEpisodesInfo=function(W,O,b){if(W!==void 0&&O.length===W.length)return W[b]};
_.d.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.d.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.d.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.d.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.d.getUppercaseSimpleString=function(W){return this.ytRendererBehavior.getSimpleString(W).toUpperCase()};
_.d.updateCurrentSeasonIndexFromBinding=function(W){this.currentSeasonIndex=W.detail.value};
Mx.prototype.onIronOverlayClosed=Mx.prototype.onIronOverlayClosed;Mx.prototype.currentSeasonIndexChanged=Mx.prototype.currentSeasonIndexChanged;Mx.prototype.dataChanged=Mx.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Mx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Mx.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",String)],Mx.prototype,"label",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],Mx.prototype,"currentSeasonIndex",void 0);_.t([_.C({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.N("design:type",Object)],Mx.prototype,"episodesInfo",void 0);_.t([_.C({value:"false"}),_.N("design:type",Object)],Mx.prototype,"ariaExpanded",void 0);_.t([_.El("#lists"),_.N("design:type",Object)],Mx.prototype,"lists",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mx.prototype,"dataChanged",null);_.t([_.Ul("currentSeasonIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Mx.prototype,"currentSeasonIndexChanged",null);_.t([_.ai("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Mx.prototype,"onIronOverlayClosed",null);
Mx=_.t([_.G({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],Mx);
_.H(Mx,"ytd-watch-card-section-dropdown-renderer",function(){if(H3N!==void 0)return H3N;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return H3N=W},{mode:1});var tcg;var uY=function(){var W=_.n.apply(this,arguments)||this;W.isSearch=!1;return W};
_.R(uY,_.n);uY.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}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],uY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],uY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],uY.prototype,"isSearch",void 0);uY=_.t([_.G({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],uY);
_.H(uY,"ytd-watch-card-section-sequence-renderer",function(){if(tcg!==void 0)return tcg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return tcg=W},{mode:1});var Rm2=_.lw({buttonViewModel:_.DO});_.bO(KWB);_.Z3(KWB,"ytd-button-banner-view-model",{propNames:["data"]});var Jh=function(){var W=_.n.apply(this,arguments)||this;W.isSearch=!1;return W};
_.R(Jh,_.n);
Jh.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"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Jh.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jh.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Jh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Jh.prototype,"rounded",void 0);_.t([_.C(),_.N("design:type",Object)],Jh.prototype,"isSearch",void 0);
Jh=_.t([_.G({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Jh);
_.H(Jh,"ytd-universal-watch-card-renderer",function(){if(kS2!==void 0)return kS2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kS2=W},{mode:1});var $UR;_.O1(_.J1(function(W){var O=W.data;var b;W=!((b=_.iq().resolve(_.OT(_.t4)))==null||!b());b={};return _.E("overview-message-view-model",{class:_.YS("ytwOverviewMessageViewModelHost",(b.ytwOverviewMessageViewModelDarkBackground=W,b.ytwOverviewMessageViewModelLightBackground=!W,b))},_.E(_.U,{cond:function(){return O().primaryImage},
then:function(T){return _.E(_.uj,{data:T,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.E(_.U,{cond:function(){return O().primaryText},
then:function(){return _.E("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.E(_.uw,{text:function(){return O().primaryText}}))}}),_.E(_.U,{cond:function(){return O().secondaryText},
then:function(){return _.E("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.E(_.uw,{text:function(){return O().secondaryText}}))}}))},"zi"),"overview-message-view-model",{props:{data:_.te}});_.Z3(_.XIN,"ytd-overview-answer-view-model",{propNames:["data"]});var cf=function(){return _.n.apply(this,arguments)||this};
_.R(cf,_.n);cf.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"}}}};
cf.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],cf.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cf.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],cf.prototype,"isSearch",void 0);
cf=_.t([_.G({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],cf);
_.H(cf,"ytd-secondary-search-container-renderer",function(){if($UR!==void 0)return $UR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return $UR=W},{mode:1});var VcP;var FY=function(){var W=_.n.apply(this,arguments)||this;W.renderSecondarySearchContainer=!1;W.isSearch=!1;W.isSearchDova=_.e("dova_on_search");return W};
_.R(FY,_.n);_.d=FY.prototype;_.d.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.d.created=function(){var W=this;this.boundStampSecondarySearchContainerIfFits=function(){W.stampSecondarySearchContainerIfFits()};
_.zT("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.d.computeIsSearchFrictionPage=function(W){var O,b,T,L,h;W=W==null?void 0:(O=W.primaryContents)==null?void 0:(b=O.sectionListRenderer)==null?void 0:(T=b.contents)==null?void 0:(L=T[0])==null?void 0:(h=L.itemSectionRenderer)==null?void 0:h.contents;if(!W)return!1;O=_.S(W);for(b=O.next();!b.done;b=O.next())if(T=void 0,(T=b.value)==null?0:T.searchFrictionViewModel)return!0;return!1};
_.d.computeShowSecondaryColumn=function(W,O){return!!(O&&O.secondaryContents&&W)};
_.d.activeChanged=function(){var W=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.Ii(this,this.debounceStampSecondarySearchContainerIfFits)),_.qe(function(){W.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.Ii(this,this.debounceStampSecondarySearchContainerIfFits))};
_.d.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.d.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.d.debounceStampSecondarySearchContainerIfFits=function(){_.n2(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.d.onRetrieveLocation=function(W,O){O.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);W.stopPropagation()};
_.d.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
FY.prototype.dataChanged=FY.prototype.dataChanged;FY.prototype.onRetrieveLocation=FY.prototype.onRetrieveLocation;FY.prototype.persistentGuideChanged=FY.prototype.persistentGuideChanged;FY.prototype.activeChanged=FY.prototype.activeChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],FY.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],FY.prototype,"ironResizableBehavior",void 0);_.t([_.C(),_.N("design:type",Boolean)],FY.prototype,"active",void 0);_.t([_.C(),_.N("design:type",Object)],FY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.e("enable_desktop_search_bigger_thumbs")}}),
_.N("design:type",Boolean)],FY.prototype,"useBiggerThumbs",void 0);_.t([_.C({reflectToAttribute:!0,value:function(){return _.dO("desktop_search_bigger_thumbs_style")}}),
_.N("design:type",String)],FY.prototype,"biggerThumbsStyle",void 0);_.t([_.C(),_.N("design:type",Object)],FY.prototype,"renderSecondarySearchContainer",void 0);_.t([_.C({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.N("design:type",Boolean)],FY.prototype,"showSecondaryColumn",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.N("design:type",Boolean)],FY.prototype,"isSearchFrictionPage",void 0);
_.t([_.C(),_.N("design:type",Object)],FY.prototype,"isSearch",void 0);_.t([_.C(),_.N("design:type",Object)],FY.prototype,"isSearchDova",void 0);_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FY.prototype,"activeChanged",null);_.t([_.m5("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FY.prototype,"persistentGuideChanged",null);
_.t([_.ai("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],FY.prototype,"onRetrieveLocation",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],FY.prototype,"dataChanged",null);FY=_.t([_.G({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],FY);
_.H(FY,"ytd-two-column-search-results-renderer",function(){if(VcP!==void 0)return VcP;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return VcP=W},{mode:1});var yz=function(){var W=_.n.apply(this,arguments)||this;W.hasSearchHeader=!1;W.hasSecondaryContent=!1;W.hasBiggerThumbs=_.e("enable_desktop_search_bigger_thumbs");W.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return W};
_.R(yz,_.n);_.d=yz.prototype;_.d.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:_.sG(["aa","eocs"])}}};
_.d.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.d.loadPage_=function(W){this.initCsi();W&&(this.data=W,_.zT("REFINEMENTS_TUPLE",["FromSearchResponse",W.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.JS(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.d.initCsi=function(){_.Ki("results",["ol","cpt"])};
_.d.updateTitle=function(){var W=_.GP(window.location.href,"q");W||(W=_.GP(window.location.href,"search_query"));_.bX(this.hostElement,"yt-update-title",W||"")};
_.d.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.d.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.e("web_srp_data_changed_terminate_imp_killswitch")||_.jx(this.hostElement,"yt-terminate-video-preview-action")};
_.d.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.d.computeHasSearchHeader=function(W){var O;W=W==null?void 0:(O=W.header)==null?void 0:O.searchHeaderRenderer;return!!W&&(!!W.searchFilterButton||!!W.chipBar)};
_.d.computeHasSecondaryContent=function(W){var O,b;return!!(W==null?0:(O=W.contents)==null?0:(b=O.twoColumnSearchResultsRenderer)==null?0:b.secondaryContents)};
_.Jq.Object.defineProperties(yz,{template:{configurable:!0,enumerable:!0,get:function(){if(veZ===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);veZ=W}W=veZ;return W}}});
yz.prototype.onReloadContinuationFinish=yz.prototype.onReloadContinuationFinish;yz.prototype.dataChanged=yz.prototype.dataChanged;_.t([_.D(_.vJ.YtPageBehavior),_.N("design:type",Object)],yz.prototype,"ytPageBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],yz.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],yz.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],yz.prototype,"data",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],yz.prototype,"monitorScroll",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yz.prototype,"hasSearchHeader",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yz.prototype,"hasSecondaryContent",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yz.prototype,"hasBiggerThumbs",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yz.prototype,"dataChanged",null);
_.t([_.ai("yt-reload-continuation-finish"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yz.prototype,"onReloadContinuationFinish",null);yz=_.t([_.G({is:"ytd-search"})],yz);_.W0.registerService(_.Oi1,yz);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("h8y2qb");
var oC7=function(W){if(W=_.TVO(W)){var O;(O=W.sources)!=null&&O[0]?(O=_.d3h(W),O=O<1?"VERTICAL":O>1?"HORIZONTAL":"SQUARE"):O=void 0;return O}},gz=function(W){_.wN.call(this,"upload");
this.opts.query=W},kf5=function(W,O){return _.E(QgZ,{data:W,
onYtNavigate:O})},sg5=function(W,O){return _.IJ(W.entities,"pageHeaderEntity",O)},rwN=function(W,O){return W.map(function(b){if(b.tabRenderer)return B22(b.tabRenderer);
if(b.expandableTabRenderer&&O){var T=b.expandableTabRenderer;return{customTabRenderable:function(){return O(T)}}}return{}})},B22=function(W){return{identifier:W.tabIdentifier,
aTagConfig:_.Cb({innertubeCommand:W.endpoint,forceNewState:!0}),title:W.title,selected:W.selected,disabled:W.unselectable,icon:W.icon}},DSZ=function(W){return _.Tc({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:W})},xSB=function(W){if(!_.Ox(document,"gtm-noscript")){var O=document.createElement("noscript");
O.id="gtm-noscript";O.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+W+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(O)}};_.Wk(gz,_.wN);gz.prototype.JSC$8074_setLabel=function(W){gz.superClass_.JSC$8074_setLabel.call(this,W);return this};
gz.prototype.addUploadMetadata=function(W,O){gz.superClass_.addUploadMetadata.call(this,W,O);return this};var z1U=function(W){if(W!=="youtubebanner"&&W!=="youtube-channel-banner")throw Error("Ul");gz.call(this,W)};
_.R(z1U,gz);z1U.prototype.JSC$8074_setLabel=function(W){gz.prototype.JSC$8074_setLabel.call(this,W);return this};
z1U.prototype.addUploadMetadata=function(W,O){gz.prototype.addUploadMetadata.call(this,W,O);return this};var C0k=[_.vL,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(W){_.Rs(W).path[0]!==this&&(this.resetLayout(),W.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var W=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.O9(this._layoutDebouncer,_.Kb,W);_.iK(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var W=this;requestAnimationFrame(function(){W.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(W){this.resizerShouldNotify(W)&&this._notifyDescendant(W)},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 qGB=[_.ib5,{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(W,O){var b=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[W];if(!b)throw new ReferenceError(this._getUndefinedMsg(W));W=this._boundEffect(b,O||{});W.setUp();return W},
_effectsChanged:function(W,O,b){this._tearDownEffects();W&&b&&(W.split(" ").forEach(function(T){var L;T!==""&&((L=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[T])?this._effects.push(this._boundEffect(L,O[T])):console.warn(this._getUndefinedMsg(T)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(W,O){O=O||{};var b=parseFloat(O.startsAt||0),T=parseFloat(O.endsAt||1),L=T-b,h=function(){};
T=b===0&&T===1?W.run:function(Z,a){W.run.call(this,Math.max(0,(Z-b)/L),a)};
return{setUp:W.setUp?W.setUp.bind(this,O):h,run:W.run?T.bind(this):h,tearDown:W.tearDown?W.tearDown.bind(this):h}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(W){W.setUp()!==!1&&this._effectsRunFn.push(W.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(W){W.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(W,O){this._effectsRunFn&&this._effectsRunFn.forEach(function(b){b(W,O)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var W=this._clampedScrollTop;this._updateScrollState(W);this.threshold>0&&this._setThresholdTriggered(W>=this.threshold)}},
_getDOMRef:function(W){console.warn("_getDOMRef","`"+W+"` is undefined")},
_getUndefinedMsg:function(W){return"Scroll effect `"+W+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+W+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(W){var O={};W=parseFloat(W.scalar);O.background=this._getDOMRef("background");O.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");O.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");O.deltaBg=O.backgroundFrontLayer.offsetHeight-O.background.offsetHeight;O.deltaBg===0?(isNaN(W)&&(W=.8),O.deltaBg=(this._dHeight||0)*W):(isNaN(W)&&(W=
1),O.deltaBg*=W);this._fxParallaxBackground=O},
run:function(W){var O=this._fxParallaxBackground;this.transform("translate3d(0px, "+O.deltaBg*Math.min(1,W)+"px, 0px)",O.backgroundFrontLayer);O.backgroundRearLayer&&this.transform("translate3d(0px, "+O.deltaBg*Math.min(1,W)+"px, 0px)",O.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var nC5;var fl2;var GfB=function(){};
_.d=GfB.prototype;_.d._scrollTargetChanged=function(){};
_.d.scroll=function(){};
_.d._isValidScrollTarget=function(){};
_.d._toggleScrollListener=function(){};
_.d.toggleScrollListener=function(){};
_.d.createEffect=function(){};
_.d._effectsChanged=function(){};
_.d._layoutIfDirty=function(){};
_.d._boundEffect=function(){};
_.d._setUpEffect=function(){};
_.d._tearDownEffects=function(){};
_.d._runEffects=function(){};
_.d._scrollHandler=function(){};
_.d._scrollStateChanged=function(){};
_.d._getUndefinedMsg=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d._appResetLayoutHandler=function(){};
_.d.resetLayout=function(){};
_.d._notifyLayoutChanged=function(){};
_.d._notifyDescendantResize=function(){};
_.d._setThresholdTriggered=function(){};
GfB=_.v_({_template:function(){if(fl2!==void 0)return fl2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;nC5===void 0&&(nC5=document.createElement("template"));var T=nC5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return fl2=W},
is:"tp-yt-app-header",behaviors:[qGB,C0k],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 W=_.Rs(this.$.slot).getDistributedNodes(),O=0,b;b=W[O];O++)if(b.nodeType===Node.ELEMENT_NODE)if(b.hasAttribute("sticky")){this._stickyElRef=b;break}else this._stickyElRef||(this._stickyElRef=b);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var W=this._clampedScrollTop,O=this._height===0||W===0,b=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;O||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();O?this._updateScrollState(W,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=b}},
_updateScrollState:function(W,O){if(this._height!==0){var b=0,T=this._top;var L=this._maxHeaderTop;var h=W-this._lastScrollTop,Z=Math.abs(h),a=W>this._lastScrollTop,m=performance.now();this._mayMove()&&(b=this._clamp(this.reveals?T+h:W,0,L));W>=this._dHeight&&(b=this.condenses&&!this.fixed?Math.max(this._dHeight,b):b,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&Z<100){if(m-this._initTimestamp>300||this._wasScrollingDown!==a)this._initScrollTop=W,this._initTimestamp=m;W>=L&&
(Math.abs(this._initScrollTop-W)>30||Z>10?(a&&W>=L?b=L:!a&&W>=this._dHeight&&(b=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((b-T)/(h/(m-this._lastTimestamp)),0,300)+"ms"):b=this._top)}L=this._dHeight===0?W>0?1:0:b/this._dHeight;O||(this._lastScrollTop=W,this._top=b,this._wasScrollingDown=a,this._lastTimestamp=m);if(O||L!==this._progress||T!==b||W===0)this._progress=L,this._runEffects(L,b),this._transformHeader(b)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(W){this.translate3d(0,-W+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&W>=this._stickyElTop?Math.min(W,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(W,O,b){return Math.min(b,Math.max(O,W))},
_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),_.Rs(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(W){switch(W){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Rs(this).querySelector("[main-title]");case "condensedTitle":return _.Rs(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var HyB;var tFk;_.v_({_template:function(){if(tFk!==void 0)return tFk;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;HyB===void 0&&(HyB=document.createElement("template"));var T=HyB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return tFk=W},
is:"tp-yt-app-header-layout",behaviors:[C0k],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Rs(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var W=this.header;if(this.isAttached&&W){this.$.wrapper.classList.remove("initializing");W.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)W.style.left=
"",W.style.right="";else{var O=this.getBoundingClientRect(),b=document.documentElement.clientWidth-O.right;W.style.left=O.left+"px";W.style.right=b+"px"}O=this.$.contentContainer.style;b=W.offsetHeight;W.fixed&&!W.condenses&&this.hasScrollingRegion?(O.marginTop=b+"px",O.paddingTop=""):(O.paddingTop=b+"px",O.marginTop="")}}});var $SN=new _.J("replaceFeedContentAction");var VF8=new _.J("alertCommand");var N28=new _.J("manageLabsStateCommand");var MFk=new _.J("inlineFormRenderer");var o9=new _.J("playlistSidebarPrimaryInfoRenderer");var u_U=new _.J("productDetailsThumbnailRenderer"),JwZ=new _.J("productDetailsVariantRenderer"),cw9=new _.J("productDetailsVariantOptionRenderer"),Fvk=new _.J("productDetailsOffersContainerRenderer"),yw8=new _.J("productDetailsOfferRenderer");var W$2=new _.J("shoppingFlaggingRenderer");var OlR=new _.J("playlistBylineRenderer");var ilg=new _.J("insertChannelTabCommand");var Qm=function(){return _.A1.apply(this,arguments)||this};
_.R(Qm,_.A1);_.d=Qm.prototype;_.d.activeChanged=function(){if(this.active){var W=_.Q(this.hostElement).querySelector("#header");W&&_.bX(W,"iron-resize");window.addEventListener("scroll",_.Ii(this,this.onScroll))}else window.removeEventListener("scroll",_.Ii(this,this.onScroll)),_.bX(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.d.guideVisibleChanged=function(){var W=_.Q(this.hostElement).querySelector("#header");W&&_.bX(W,"iron-resize")};
_.d.onScroll=function(){var W=this;_.n2(this,"onScroll",function(){var O=_.Q(W.hostElement).querySelector("#header");O&&O.polymerController&&(O=O.polymerController.getScrollState().progress===1?"standard":"seamed",_.bX(W.hostElement,"yt-request-panel-mode-change",{mode:O}))},10)};
_.d.tabsChanged=function(){if(this.tabs){for(var W=null,O=0,b=this.tabs.length;O<b;++O){var T=this.tabs[O].tabRenderer;if(T&&T.selected){W=O;break}}this.selected=W}};
_.d.onTabsActivate=function(W){_.bX(this.hostElement,"yt-navigate",{endpoint:this.tabs[W.detail.selected].tabRenderer.endpoint})};
Qm.prototype.tabsChanged=Qm.prototype.tabsChanged;Qm.prototype.guideVisibleChanged=Qm.prototype.guideVisibleChanged;Qm.prototype.activeChanged=Qm.prototype.activeChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Qm.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.C(),_.N("design:type",Array)],Qm.prototype,"tabs",void 0);
_.t([_.C(),_.N("design:type",Object)],Qm.prototype,"selected",void 0);_.t([_.C(),_.N("design:type",Boolean)],Qm.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Qm.prototype,"disableHeaderFluidWidth",void 0);_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"activeChanged",null);
_.t([_.m5("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"guideVisibleChanged",null);_.t([_.m5("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Qm.prototype,"tabsChanged",null);Qm=_.t([_.XT()],Qm);var bl9=[_.F.YtRendererBehavior,_.Ch.YtdGuideStateAwareBehavior,Qm.prototype];var jcg=2/3,TS5=_.gd(130749),L$7=function(W,O){var b=this;this.element=W;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){b.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:jcg,moveAction:function(T){b.moveAction(T)},
triggerAction:function(){b.element.isReloading=!0;_.fd(_.A4(),{visualElement:TS5});_.ax.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:b.element}})}}}};
_.Tn(_.A4(),TS5,this.layer);this.gesture=new _.Za(W,O,this.refreshConfig,"pan-down");this.attach()};
_.d=L$7.prototype;_.d.attach=function(){this.gesture.attach()};
_.d.detach=function(){this.gesture.detach()};
_.d.reset=function(){this.element.close()};
_.d.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.d.moveAction=function(W){this.element.rotation=W*360};var dWR=_.gd(130750),kL=function(W,O,b,T,L){var h=this;this.element=W;this.parent=b;this.channelHeader=T;this.ytdReduxDispatch=L;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){h.tabsStartAtInPx=h.channelHeader.clientHeight-48;var Z;(Z=h.selectedTab)!=null&&Z.title&&(Z=_.iq().resolve(_.OT(_.cs)))&&(Z=Z.getCurrentPage(),h.lastVisitedTabScrollPosition=Z.getScrollTop(),h.previousTab&&
((h.lastVisitedTabScrollPosition===void 0?0:h.lastVisitedTabScrollPosition<h.channelHeader.clientHeight-48)?h.scrollPositionForTabs.has(h.selectedTab.title)&&h.scrollPositionForTabs.delete(h.selectedTab.title):h.scrollPositionForTabs.set(h.selectedTab.title,Z.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:hs5(),triggerAction:function(){h.navigate(h.previousTab)},
moveAction:function(Z,a){h.moveAction(Z,a)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-hs5(),triggerAction:function(){h.navigate(h.nextTab)},
moveAction:function(Z,a){h.moveAction(Z,a)}}}};
_.Tn(_.A4(),dWR,this.layer);this.gesture=new _.Za(W,O,this.tabConfig);this.attach()};
kL.prototype.attach=function(){this.gesture.attach()};
kL.prototype.detach=function(){this.gesture.detach()};
kL.prototype.tabsChanged=function(W){if(W){var O=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;W=_.S(W);for(var b=W.next();!b.done;b=W.next()){b=b.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=b);var T=void 0;if((T=b)==null?0:T.selected)this.previousTab=O,this.selectedTab=b;O=b}O=this.gesture;W=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}});
O.config=W;this.scrollPositionNeedsUpdate=!0}};
kL.prototype.moveAction=function(W,O){if(!this.tabsElement){var b;this.tabsElement=(b=this.parent.header)==null?void 0:b.tabsElement;O==="right"&&this.previousTab?_.AD7(_.Y_.instance,this.previousTab.endpoint,{},""):O==="left"&&this.nextTab&&_.AD7(_.Y_.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}b=this.tabsElement._pos;O==="right"&&(W*=-1);this.tabsElement._positionBar(b.width,b.left*1+b.width*W)};
var hs5=function(){var W,O;return(O=(W=_.iq().resolve(_.cs).getCurrentPage())==null?void 0:W.clientWidth)!=null?O:0};
kL.prototype.navigate=function(W){this.element.data=void 0;if(W=W==null?void 0:W.endpoint)this.ytdReduxDispatch(DSZ(!0)),_.fd(_.A4(),{visualElement:dWR}),_.ax.instance.resolveCommand({navigateAction:{endpoint:W}},{form:{element:this.element}})};var SI9;var Zlg;var sD=function(){return _.n.apply(this,arguments)||this};
_.R(sD,_.n);sD.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sD.prototype,"data",void 0);sD=_.t([_.G({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],sD);
_.H(sD,"ytd-labs-edit-renderer",function(){if(Zlg!==void 0)return Zlg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Zlg=W},{mode:1});var Ijg;var BJ=function(){var W=_.n.apply(this,arguments)||this;W.dark=!1;W.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(BJ,_.n);BJ.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
BJ.prototype.ready=function(){var W=document.documentElement.hasAttribute("dark");this.setBackgroundImage(W);this.dark=W};
BJ.prototype.onDarkModeToggledAction=function(W){this.setBackgroundImage(W);this.dark=W};
BJ.prototype.setBackgroundImage=function(W){_.Sl(this.hostElement,{"--yt-labs-header-background":"url("+(W?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],BJ.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],BJ.prototype,"dark",void 0);
BJ=_.t([_.G({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],BJ);
_.H(BJ,"ytd-labs-header-renderer",function(){if(Ijg!==void 0)return Ijg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ijg=W},{mode:1});var ajR;var rz=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return W};
_.R(rz,_.n);rz.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"}}}}}};
rz.prototype.onYtToggleButton=function(W){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",W.detail.toggled)};
rz.prototype.onManageLabsState=function(W){if(W=_.P(W,N28))W.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?W.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&W.labsItemId===this.data.labsItemId&&(W.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.jx(this.hostElement,"yt-check-labs-opted-in-state").some(function(O){return O})&&this.data.confirmationDialogCommand?_.Sx(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.iq().resolve(_.bq).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&W.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.iq().resolve(_.bq).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
rz.prototype.onCheckLabsOptedInState=function(){var W=this.get("data.primaryButton.toggleButtonRenderer");return W?W.isToggled:!1};
_.Jq.Object.defineProperties(rz.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
rz.prototype.onYtToggleButton=rz.prototype.onYtToggleButton;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],rz.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rz.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],rz.prototype,"itemStyle",null);_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rz.prototype,"onYtToggleButton",null);rz=_.t([_.G({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],rz);
_.H(rz,"ytd-labs-item-renderer",function(){if(ajR!==void 0)return ajR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ajR=W},{mode:1});var mW2;var YIP;var Da=function(){return _.n.apply(this,arguments)||this};
_.R(Da,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Da.prototype,"data",void 0);Da=_.t([_.G({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Da);
_.H(Da,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(YIP!==void 0)return YIP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return YIP=W},{mode:1});var EQR;var xL=function(){return _.n.apply(this,arguments)||this};
_.R(xL,_.n);xL.prototype.observeSuperchatChip=function(){if(this.data){var W={"--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)};_.Sl(this.hostElement,W)}};
xL.prototype.colorFromDecimal=function(W){return _.C_(Number(W||0))};
xL.prototype.observeSuperchatChip=xL.prototype.observeSuperchatChip;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xL.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xL.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xL.prototype,"observeSuperchatChip",null);xL=_.t([_.G({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],xL);
_.H(xL,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(EQR!==void 0)return EQR;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return EQR=W},{mode:1});var z6=function(){return _.n.apply(this,arguments)||this};
_.R(z6,_.n);z6.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"}}}};
_.Jq.Object.defineProperties(z6.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.rn),_.N("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],z6.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],z6.prototype,"hideMessageBlock",null);
z6=_.t([_.G({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],z6);
_.H(z6,"ytd-live-chat-history-entry-renderer",function(){if(mW2!==void 0)return mW2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mW2=W},{mode:1});var wr8;var Ci=function(){return _.n.apply(this,arguments)||this};
_.R(Ci,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ci.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ci.prototype,"data",void 0);Ci=_.t([_.G({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Ci);
_.H(Ci,"ytd-channel-options-renderer",function(){if(wr8!==void 0)return wr8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return wr8=W},{mode:1});var Ar1;var qY=function(){return _.n.apply(this,arguments)||this};
_.R(qY,_.n);qY.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],qY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qY.prototype,"data",void 0);qY=_.t([_.G({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],qY);
_.H(qY,"ytd-settings-email-item-renderer",function(){if(Ar1!==void 0)return Ar1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ar1=W},{mode:1});var XrN;var ni=function(){return _.n.apply(this,arguments)||this};
_.R(ni,_.n);ni.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"}}}};
ni.prototype.getExpansionIcon=function(W){return W?"arrow_drop_up":"arrow_drop_down"};
ni.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Jq.Object.defineProperties(ni.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ni.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ni.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ni.prototype,"data",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],ni.prototype,"expanded",void 0);_.t([_.x("expanded"),_.N("design:type",String),_.N("design:paramtypes",[])],ni.prototype,"emailListExpanded",null);
_.t([_.El("#options"),_.N("design:type",Object)],ni.prototype,"options",void 0);ni=_.t([_.G({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],ni);
_.H(ni,"ytd-settings-email-list-renderer",function(){if(XrN!==void 0)return XrN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return XrN=W},{mode:1});var UWD;var fi=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.R(fi,_.n);fi.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"}}}};
fi.prototype.handleSignalActionSubmitForm=function(){var W,O=(W=this.formRenderer)==null?void 0:W.getForm();O&&this.data.serviceEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},O,{element:this.hostElement})})};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],fi.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fi.prototype,"data",void 0);_.t([_.El("yt-form-renderer"),_.N("design:type",Object)],fi.prototype,"formRenderer",void 0);
fi=_.t([_.G({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],fi);
_.H(fi,"ytd-settings-gaia-link-renderer",function(){if(UWD!==void 0)return UWD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UWD=W},{mode:1});var ljD;var G6=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return W};
_.R(G6,_.n);G6.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.RD2()&&this.set("data.hidden",!1)};
G6.prototype.onSwitchReady=function(){var W=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.e("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.pD2().then(function(O){O&&(Notification.permission==="default"?W.set("data.hidden",!1):Notification.permission==="granted"&&_.u0("NotificationsDisabled").then(function(b){b||_.jx(W.hostElement,"yt-toggle-settings-switch",[W.data.id,!b]);W.set("data.hidden",!1)}).catch(function(){}))})})};
G6.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}}}}};
G6.prototype.handleUpdateOptionsCommand=function(W){(W=_.P(W,_.D$1))&&this.data&&this.data.id===W.id&&(this.set("data.hidden",W.hidden),W.text!==void 0&&this.set("data.text",W.text),W.clearOptions&&this.set("data.options",[]))};
G6.prototype.onSwitchReady=G6.prototype.onSwitchReady;G6.prototype.dataChanged=G6.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],G6.prototype,"data",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G6.prototype,"dataChanged",null);_.t([_.ai("yt-settings-switch-ready"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],G6.prototype,"onSwitchReady",null);G6=_.t([_.G({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],G6);
_.H(G6,"ytd-settings-options-renderer",function(){if(ljD!==void 0)return ljD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ljD=W},{mode:1});var es2;var HJ=function(){return _.n.apply(this,arguments)||this};
_.R(HJ,_.n);HJ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
HJ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
HJ.prototype.onYtExpanderMoreTapped=HJ.prototype.onYtExpanderMoreTapped;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],HJ.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],HJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],HJ.prototype,"data",void 0);
_.t([_.ai("yt-expander-more-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HJ.prototype,"onYtExpanderMoreTapped",null);HJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],HJ);
_.H(HJ,"ytd-product-details-description-renderer",function(){if(es2!==void 0)return es2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return es2=W},{mode:1});var Px8;var tf=function(){var W=_.n.apply(this,arguments)||this;W.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";W.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";W.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";W.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return W};
_.R(tf,_.n);tf.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jq.Object.defineProperties(tf.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:(O=W.offerData)==null?void 0:O.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?void 0:W.purchaseButtonRenderers)!==void 0&&((O=this.data)==null?void 0:O.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.formattedFromMerchantText)&&(!((O=this.data)==null||!O.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tf.prototype,"data",void 0);
_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],tf.prototype,"shippingIcon",void 0);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],tf.prototype,"shippingAddressIcon",void 0);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],tf.prototype,"googleGuaranteeIcon",void 0);
_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?String:void 0}),_.N("design:type",Object)],tf.prototype,"returnPolicyIcon",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tf.prototype,"showAdditionalFees",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tf.prototype,"showMultiPurchaseButtons",null);
_.t([_.x("data","showMultiPurchaseButtons"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],tf.prototype,"showPurchaseData",null);tf=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],tf);
_.H(tf,"ytd-product-details-hero-offer-renderer",function(){if(Px8!==void 0)return Px8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Px8=W},{mode:1});var prB;var Rsk;var $L=function(){return _.n.apply(this,arguments)||this};
_.R($L,_.n);_.d=$L.prototype;_.d.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.d.onKeyDown=function(W){W=W.keyCode;W!==13&&W!==32||this.handleSelection()};
_.d.onMouseEnterImage=function(){var W;((W=this.data)==null?void 0:W.thumbnailDetails)!==void 0&&_.TU(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.d.onMouseLeaveImage=function(){_.TU(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.d.handleSelection=function(){this.data&&_.bX(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Jq.Object.defineProperties($L.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.isSelected)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$L.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],$L.prototype,"isSelected",null);$L=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],$L);
_.H($L,"ytd-product-details-thumbnail-renderer",function(){if(Rsk!==void 0)return Rsk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Rsk=W},{mode:1});var Vm=function(){var W=_.n.apply(this,arguments)||this;var O={};W.actionMap=(O["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",O["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",O);W.selectedThumbnailIndex=0;W.selectItem=function(b){b.target.onKeyDown(b)};
return W};
_.R(Vm,_.n);_.d=Vm.prototype;_.d.handlePreviewImageSelect=function(W){this.hoverThumbnail=W};
_.d.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.d.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.d.onThumbnailSelected=function(W,O){this.selectedThumbnailIndex=O};
_.d.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.d.updateOffset=function(){var W=_.Q(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-W));this.ytdHorizontalListBehavior.reposition_()};
_.Jq.Object.defineProperties(Vm.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.imageRenderer){var O,b;return((O=this.data)==null?void 0:(b=O.imageRenderer)==null?void 0:b.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var W;if((W=this.data)==null?0:W.imageRenderer){var O;return(O=_.P(this.data.imageRenderer[this.selectedThumbnailIndex],u_U))==null?void 0:O.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b,T,L=(T=(O=this.data)==null?void 0:(b=O.imageRenderer)==null?void 0:b.map(function(h,Z){return{productDetailsThumbnailRenderer:Object.assign({},_.P(h,u_U),{index:Z,isSelected:Z===W.selectedThumbnailIndex})}}))!=null?T:[];
return Object.assign({},this.data,{imageRenderer:L})}}});
Vm.prototype.updateOffset=Vm.prototype.updateOffset;Vm.prototype.dataChanged=Vm.prototype.dataChanged;Vm.prototype.onThumbnailSelected=Vm.prototype.onThumbnailSelected;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.W$.YtdHorizontalListBehavior),_.N("design:type",Object)],Vm.prototype,"ytdHorizontalListBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Vm.prototype,"componentBehavior",void 0);_.t([_.D([_.WP.YtActionHandlerBehavior]),_.N("design:type",Object)],Vm.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Vm.prototype,"data",void 0);_.t([_.C({value:"$.items.children"}),_.N("design:type",String)],Vm.prototype,"itemsPath",void 0);_.t([_.C({value:3}),_.N("design:type",Number)],Vm.prototype,"initialCount",void 0);
_.t([_.El("#items"),_.N("design:type",Object)],Vm.prototype,"items",void 0);_.t([_.C(),_.N("design:type",Object)],Vm.prototype,"selectedThumbnailIndex",void 0);_.t([_.C(),_.N("design:type",Object)],Vm.prototype,"hoverThumbnail",void 0);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Vm.prototype,"showThumbnails",null);
_.t([_.ai("ytd-product-details-thumbnail-renderer-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Number]),_.N("design:returntype")],Vm.prototype,"onThumbnailSelected",null);_.t([_.x("data","selectedThumbnailIndex","hoverThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vm.prototype,"thumbnailDetails",null);_.t([_.x("data","selectedThumbnailIndex"),_.N("design:type",Object),_.N("design:paramtypes",[])],Vm.prototype,"populatedData",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vm.prototype,"dataChanged",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Vm.prototype,"updateOffset",null);Vm=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Vm);
_.H(Vm,"ytd-product-details-image-carousel-renderer",function(){if(prB!==void 0)return prB;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return prB=W},{mode:_.Lb("kevlar_poly_si_batch_j079")?1:2});var K$2;var NY=function(){return _.n.apply(this,arguments)||this};
_.R(NY,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],NY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],NY.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],NY.prototype,"data",void 0);NY=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],NY);
_.H(NY,"ytd-product-details-offer-renderer",function(){if(K$2!==void 0)return K$2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return K$2=W},{mode:1});var vQN;var MY=function(){var W=_.n.apply(this,arguments)||this;W.isOffersHidden=!0;return W};
_.R(MY,_.n);MY.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var W,O=_.P((W=this.data)==null?void 0:W.viewOffersButton,_.s2);O&&this.ytRendererBehavior.logExplicitClick(O)};
MY.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Jq.Object.defineProperties(MY.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return(b=_.P((W=this.data)==null?void 0:(O=W.offers)==null?void 0:O[0],yw8))==null?void 0:(T=b.offerData)==null?void 0:T.vendorLogoUrl}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],MY.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MY.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],MY.prototype,"isOffersHidden",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],MY.prototype,"firstOfferVendorLogoUrl",null);MY=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],MY);
_.H(MY,"ytd-product-details-offers-container-renderer",function(){if(vQN!==void 0)return vQN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return vQN=W},{mode:1});var gQ5;var oQ7;var ua=function(){return _.n.apply(this,arguments)||this};
_.R(ua,_.n);ua.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
ua.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.TU(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
ua.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.TU(this,"ytd-product-details-variant-image-unselect")};
_.Jq.Object.defineProperties(ua.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 W;return((W=this.data)==null?void 0:W.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?void 0:W.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((O=this.data)==null?void 0:O.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var W;if(((W=this.data)==null?void 0:W.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var W,O;return this.isUnavailable?(W=this.data)==null?void 0:W.variantOptionUnavailableAccessibilityLabel:(O=this.data)==null?void 0:O.variantOptionAccessibilityLabel}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ua.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ua.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ua.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ua.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],ua.prototype,"displayType",void 0);
_.t([_.x("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ua.prototype,"isImageButton",null);_.t([_.x("displayType","data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ua.prototype,"isPillButton",null);_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ua.prototype,"isActive",null);
_.t([_.x("data"),_.C({reflectToAttribute:!0}),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ua.prototype,"isUnavailable",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ua.prototype,"thumbnailDetails",null);_.t([_.x("isUnavailable","data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ua.prototype,"accessibilityLabel",null);ua=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],ua);
_.H(ua,"ytd-product-details-variant-option-renderer",function(){if(oQ7!==void 0)return oQ7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return oQ7=W},{mode:1});var Qc1;var Jf=function(){var W=_.n.apply(this,arguments)||this;W.variantsExpanded=!1;W.hideShowMoreLessVariantButton=!0;W.initialized=!1;W.computeVariantsDebouncer=null;W.computeVariants=function(O){O=O===void 0?!1:O;W.variantsExpanded||W.showOptions()||!O||(W.variantsExpanded=!0);if(W.variantsExpanded){O=_.S(W.items.children);for(var b=O.next();!b.done;b=O.next())b.value.hidden=!1}W.initialized=!0};
return W};
_.R(Jf,_.n);_.d=Jf.prototype;_.d.ready=function(){var W=this;setTimeout(function(){W.computeVariants(!0)})};
_.d.showOptions=function(){for(var W=_.S(this.items.children),O=W.next();!O.done;O=W.next())O.value.hidden=!0;var b=this.container.getBoundingClientRect().width,T=0,L=W=0;O=!1;for(var h=_.S(this.items.children),Z=h.next();!Z.done;Z=h.next()){Z=Z.value;Z.hidden=!1;var a=Z.getBoundingClientRect().width;if(T+a<b)T+=a;else if(++L<2)T=a;else break;W+=1;Z.hasAttribute("is-active")&&(O=!0)}for(b=W;b<this.items.children.length;b++)this.items.children[b].hidden=!0;this.hideShowMoreLessVariantButton=W===this.items.children.length;
return O};
_.d.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.O9(this.computeVariantsDebouncer,_.HT.after(100),this.computeVariants)};
_.d.onShowMoreLessVariantsButtonClick=function(){var W;(W=this.data)!=null&&W.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.d.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Jq.Object.defineProperties(Jf.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.variantOptionRenderers)==null?void 0:O.find(function(h){return _.P(h,cw9).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),T,L;
return(L=(T=_.P(b,cw9))==null?void 0:T.name)!=null?L:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.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"}}}});
Jf.prototype.debouncedComputeVariants=Jf.prototype.debouncedComputeVariants;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Jf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Jf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Jf.prototype,"componentBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],Jf.prototype,"ironResizableBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Jf.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Jf.prototype,"variantsExpanded",void 0);_.t([_.C(),_.N("design:type",Object)],Jf.prototype,"hideShowMoreLessVariantButton",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Jf.prototype,"initialized",void 0);_.t([_.El("#items"),_.N("design:type",HTMLDivElement)],Jf.prototype,"items",void 0);_.t([_.El("#container"),_.N("design:type",HTMLDivElement)],Jf.prototype,"container",void 0);
_.t([_.El("#more-variants-button"),_.N("design:type",HTMLElement)],Jf.prototype,"moreVariantsButton",void 0);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Jf.prototype,"selectedOptionName",null);_.t([_.m5("data","variantsExpanded"),_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Jf.prototype,"debouncedComputeVariants",null);
_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],Jf.prototype,"displayType",null);_.t([_.x("displayType"),_.N("design:type",Object),_.N("design:paramtypes",[])],Jf.prototype,"variantItemsClassname",null);Jf=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Jf);
_.H(Jf,"ytd-product-details-variant-renderer",function(){if(Qc1!==void 0)return Qc1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Qc1=W},{mode:1});var cJ=function(){return _.n.apply(this,arguments)||this};
_.R(cJ,_.n);
cJ.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"}}}};
_.Jq.Object.defineProperties(cJ.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(O=_.P((W=this.data)==null?void 0:W.offersContainerRenderer,Fvk))==null?void 0:O.offers;return b!==void 0&&(b==null?void 0:b.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((b=(W=this.data)==null?void 0:(O=W.variants)==null?void 0:O.map(function(T){var L,h;T=(h=(L=_.P(T,JwZ))==null?void 0:L.variantOptionRenderers)==null?void 0:h.find(function(a){var m;return((m=_.P(a,cw9))==null?void 0:m.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var Z;return(Z=_.P(T,cw9))==null?void 0:Z.name}).filter(function(T){return typeof T==="string"}))!=null?b:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T=(O=_.P((W=this.data)==null?void 0:W.shoppingFlaggingRenderer,W$2))==null?void 0:(b=O.reportButton)==null?void 0:b.buttonRenderer;if(T)return{text:T.text,command:T.command,icon:{iconType:"FLAG"},accessibilityData:T.accessibilityData,trackingParams:T.trackingParams,loggingDirectives:T.loggingDirectives}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],cJ.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],cJ.prototype,"data",void 0);_.t([_.El("#image-carousel-renderer"),_.N("design:type",Object)],cJ.prototype,"imageCarouselRenderer",void 0);
_.t([_.El("#hero-offer-renderer"),_.N("design:type",Object)],cJ.prototype,"productDetailsHeroOfferRenderer",void 0);_.t([_.El("#variants"),_.N("design:type",Object)],cJ.prototype,"productDetailsVariantRenderer",void 0);_.t([_.El("#offers"),_.N("design:type",Object)],cJ.prototype,"productDetailsOffersContainerRenderer",void 0);_.t([_.El("#description-renderer"),_.N("design:type",Object)],cJ.prototype,"productDetailsDescriptionRenderer",void 0);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showPurchaseData",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showHeroOfferRenderer",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showBrandText",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showOffers",null);
_.t([_.x("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showBuySeparator",null);_.t([_.x("showOffers","showPurchaseData"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],cJ.prototype,"showBuyCard",null);_.t([_.x("data"),_.N("design:type",String),_.N("design:paramtypes",[])],cJ.prototype,"selectedVariantsText",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],cJ.prototype,"shoppingReportingButtonData",null);
cJ=_.t([_.G({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],cJ);
_.H(cJ,"ytd-product-details-renderer",function(){if(gQ5!==void 0)return gQ5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return gQ5=W},{mode:1});var k$1;var sc2;var BSP;var F7=function(){return _.n.apply(this,arguments)||this};
_.R(F7,_.n);F7.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Jq.Object.defineProperties(F7.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],F7.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],F7.prototype,"formattedAmount",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],F7.prototype,"ariaLabel",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],F7.prototype,"vcBalanceWidgetStyle",null);F7=_.t([_.sl({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],F7);
_.H(F7,"yt-vc-balance-renderer",function(){if(BSP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;sc2===void 0&&(sc2=document.createElement("template"));var T=sc2;b.call(O,T.content.cloneNode(!0),W.content.firstChild);BSP=W}W=BSP;return W},{mode:2});_.Bs("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var ym=function(){return _.n.apply(this,arguments)||this};
_.R(ym,_.n);_.Jq.Object.defineProperties(ym.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:""}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ym.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ym.prototype,"data",void 0);_.t([_.C({selectorArgs:["data.vcBalanceEntityKey"],selector:function(W,O){return _.IJ(W.entities,"vcBalanceEntity",O)}}),
_.N("design:type",Object)],ym.prototype,"vcBalanceEntity",void 0);_.t([_.x("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],ym.prototype,"formattedAmount",null);_.t([_.x("vcBalanceEntity"),_.N("design:type",String),_.N("design:paramtypes",[])],ym.prototype,"vcBalanceAriaLabel",null);ym=_.t([_.G({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],ym);
_.H(ym,"ytd-vc-balance-renderer",function(){if(k$1!==void 0)return k$1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return k$1=W},{mode:1});var rr9;var Wf=function(){var W=_.n.apply(this,arguments)||this;W.rotation=0;W.isReloading=!1;return W};
_.R(Wf,_.n);Wf.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Wf.prototype.reset=function(){this.hostElement.style.opacity=""};
Wf.prototype.close=function(){var W=this;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,W.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);W.hostElement.style.opacity="0";_.aD(O)})};
Wf.prototype.rotationChanged=Wf.prototype.rotationChanged;_.t([_.C(),_.N("design:type",Object)],Wf.prototype,"rotation",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Wf.prototype,"isReloading",void 0);_.t([_.El("#icon"),_.N("design:type",HTMLElement)],Wf.prototype,"icon",void 0);_.t([_.m5("rotation"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wf.prototype,"rotationChanged",null);
Wf=_.t([_.G({disableElementRegistration:!0,is:"ytd-refresh"})],Wf);
_.H(Wf,"ytd-refresh",function(){if(rr9!==void 0)return rr9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rr9=W},{mode:1});var DW1;var OE=function(){return _.n.apply(this,arguments)||this};
_.R(OE,_.n);OE.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"}}}};
OE.prototype.dataChanged=function(){if(this.data){var W=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var O=_.bn(this.data.banner.thumbnails,this.hostElement.clientWidth);O&&(O.indexOf("//")===0&&(O="https:"+O),this.hasBannerArt=!0,_.Sl(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+O+")"}))}this.hasBannerArt!==W&&_.Q(this.hostElement).querySelector("#header").fire("iron-resize")}};
OE.prototype.updateSelectedFromBinding=function(W){this.selected=W.detail.value};
OE.prototype.dataChanged=OE.prototype.dataChanged;_.t([_.D(bl9),_.N("design:type",Object)],OE.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],OE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xo),_.N("design:type",Object)],OE.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],OE.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],OE.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],OE.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],OE.prototype,"selected",void 0);_.t([_.C(),_.N("design:type",Boolean)],OE.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],OE.prototype,"hasBannerArt",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],OE.prototype,"dataChanged",null);OE=_.t([_.G({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],OE);
_.H(OE,"ytd-interactive-tabbed-header-renderer",function(){if(DW1!==void 0)return DW1;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return DW1=W},{mode:1});var xWZ;var iY=function(){return _.n.apply(this,arguments)||this};
_.R(iY,_.n);iY.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
iY.prototype.computeActionsAlignment=function(W){return(W==null?void 0:W.actionsAlignment)||""};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],iY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],iY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.N("design:type",String)],iY.prototype,"actionsAlignment",void 0);
iY=_.t([_.G({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],iY);
_.H(iY,"ytd-page-footer-renderer",function(){if(xWZ!==void 0)return xWZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return xWZ=W},{mode:1});var zsP;var CxR;var bY=function(){var W=_.n.apply(this,arguments)||this;W.isEditing=!1;W.useSlot=!1;W.isMultiline=!1;return W};
_.R(bY,_.n);_.d=bY.prototype;_.d.onKeydown=function(W){if(W.keyCode===13&&!this.isMultiline)this.onSave();else if(W.keyCode===27)this.onCancel()};
_.d.computeComponentStyle=function(W){return(W==null?0:W.style)?W.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.d.computeisMultiline=function(W){if(this.multilineOverride!==void 0)return this.multilineOverride;var O,b;return!!(W==null?0:(O=W.formField)==null?0:(b=O.textInputFormFieldRenderer)==null?0:b.isMultiline)};
_.d.computeTextDisplayed=function(W,O){if(W)return W;if(O)return O};
_.d.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.d.onSave=function(){if(this.textForm.validate()){this.textForm.save();var W=this.textForm.value;if(W)this.set("data.textDisplayed",_.VV(W));else{var O;((O=this.data)==null?0:O.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.C6("inline-form-changed",this.data));this.isEditing=!1}};
_.d.onCancel=function(){var W=_.NX(this.data.textDisplayed);W===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(W);this.isEditing=!1};
bY.prototype.onKeydown=bY.prototype.onKeydown;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],bY.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bY.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],bY.prototype,"isEditing",void 0);_.t([_.C(),_.N("design:type",Object)],bY.prototype,"useSlot",void 0);_.t([_.C(),_.N("design:type",Boolean)],bY.prototype,"multilineOverride",void 0);_.t([_.C(),_.N("design:type",Boolean)],bY.prototype,"enableOverlayTheme",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.N("design:type",String)],bY.prototype,"componentStyle",void 0);
_.t([_.C({computed:"computeisMultiline(data)"}),_.N("design:type",Object)],bY.prototype,"isMultiline",void 0);_.t([_.El("#text-form"),_.N("design:type",Object)],bY.prototype,"textForm",void 0);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],bY.prototype,"onKeydown",null);bY=_.t([_.G({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],bY);
_.H(bY,"ytd-inline-form-renderer",function(){if(CxR!==void 0)return CxR;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return CxR=W},{mode:1});var qI5;var j1=function(){var W=_.n.apply(this,arguments)||this;W.previousSelectValue=void 0;W.selectedItemMessage=void 0;return W};
_.R(j1,_.n);j1.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
j1.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var W,O,b,T,L=(W=this.data)==null?void 0:(O=W.dropdown)==null?void 0:(b=O.dropdownRenderer)==null?void 0:(T=b.entries)==null?void 0:T.map(function(a){return a.privacyDropdownItemRenderer});
W=_.S(L!=null?L:[]);for(O=W.next();!O.done;O=W.next())if((O=O.value)&&O.int32Value===this.selectedValue){this.selectedItemMessage=O.itemMessage;break}}else this.selectedItemMessage=void 0;var h;(h=this.onValueChanged)==null||h.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var Z;(Z=this.data)!=null&&Z.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
j1.prototype.onValueChangedForSelectedValue=function(W){this.selectedValue=W.detail.value};
j1.prototype.selectedValueChanged=j1.prototype.selectedValueChanged;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],j1.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],j1.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],j1.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],j1.prototype,"theme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Number)],j1.prototype,"selectedValue",void 0);_.t([_.C(),_.N("design:type",Function)],j1.prototype,"onValueChanged",void 0);
_.t([_.Ul("selectedValue"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j1.prototype,"selectedValueChanged",null);j1=_.t([_.G({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],j1);
_.H(j1,"ytd-dropdown-form-field-renderer",function(){if(qI5!==void 0)return qI5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qI5=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var nQ5;var Tv=function(){return _.n.apply(this,arguments)||this};
_.R(Tv,_.n);_.Jq.Object.defineProperties(Tv.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var W=[],O=_.S(this.data||[]),b=O.next();!b.done;b=O.next())(b=_.P(b.value,OlR))&&W.push(b);return W}}});
_.t([_.C(),_.N("design:type",Array)],Tv.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Tv.prototype,"byline",null);Tv=_.t([_.G({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Tv);
_.H(Tv,"ytd-playlist-byline-renderer",function(){if(nQ5!==void 0)return nQ5;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nQ5=W},{mode:1});var fjD;var LX=function(){var W=_.n.apply(this,arguments)||this;W.rtlBullet=_.e("web_playlist_stats_rtl_bullet_icon_killswitch");W.modern=_.e("web_modern_buttons");W.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return W};
_.R(LX,_.n);_.d=LX.prototype;_.d.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"}}}}};
_.d.attached=function(){};
_.d.computeIsCustomThumbnail=function(W){return W?!!W.playlistCustomThumbnailRenderer:!1};
_.d.onYtNavigate=function(W,O){if(O&&O.actions&&O.actions.indexOf("shuffle")>-1){W=_.iq().resolve(_.kP);var b=O.tempData||{};b.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);O.tempData=b;W.isShuffleNextPlaylist=!0}};
_.d.onUpdatePlaylistAction=function(W){var O;W=(O=_.P(W,_.IbH))==null?void 0:O.updatedRenderer;if(O=_.P(W,o9))this.data=O};
_.d.computeStyleType=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeThumbnailWidth=function(W){return W==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.d.computeHideThumbnailAria=function(W){if(W==null?0:W.thumbnailOverlays)for(var O=0;O<W.thumbnailOverlays.length;O++){var b=void 0;if((b=W.thumbnailOverlays[O])==null?0:b.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
LX.prototype.onYtNavigate=LX.prototype.onYtNavigate;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],LX.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],LX.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],LX.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LX.prototype,"rtlBullet",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.N("design:type",String)],LX.prototype,"styleType",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.N("design:type",Number)],LX.prototype,"thumbnailWidth",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],LX.prototype,"modern",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.N("design:type",Boolean)],LX.prototype,"isCustomThumbnail",void 0);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],LX.prototype,"onYtNavigate",null);
LX=_.t([_.G({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],LX);
_.H(LX,"ytd-playlist-sidebar-primary-info-renderer",function(){if(fjD!==void 0)return fjD;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fjD=W},{mode:1});var G$2;var dx=function(){return _.n.apply(this,arguments)||this};
_.R(dx,_.n);dx.prototype.computeOwnerVisibility=function(W){return!(!W.videoOwner&&!W.button)};
dx.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dx.prototype,"data",void 0);dx=_.t([_.G({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],dx);
_.H(dx,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(G$2!==void 0)return G$2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return G$2=W},{mode:1});var HlN;var hh=function(){var W=_.n.apply(this,arguments)||this;W.expanded=!1;W.isCompact=!1;return W};
_.R(hh,_.n);_.d=hh.prototype;_.d.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.d.dataChanged=function(){this.data&&_.Gb(_.Q(this.text),_.AXf(_.liN,_.NX(this.data.text||null)))};
_.d.computeAutoScrollEnabled=function(W,O){return W&&!O};
_.d.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.d.toggleOnTap=function(){this.expanded=!this.expanded};
hh.prototype.expandedChanged=hh.prototype.expandedChanged;hh.prototype.dataChanged=hh.prototype.dataChanged;_.t([_.D(_.Ns1),_.N("design:type",Object)],hh.prototype,"ytdAutoScrollBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hh.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hh.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hh.prototype,"expanded",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],hh.prototype,"isCompact",void 0);_.t([_.C({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.N("design:type",Boolean)],hh.prototype,"autoScrollEnabled",void 0);_.t([_.El("#text"),_.N("design:type",Object)],hh.prototype,"text",void 0);_.t([_.El("#expander-icon"),_.N("design:type",Object)],hh.prototype,"expanderIcon",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hh.prototype,"dataChanged",null);_.t([_.m5("expanded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],hh.prototype,"expandedChanged",null);hh=_.t([_.G({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],hh);
_.H(hh,"ytd-channel-legal-info-renderer",function(){if(HlN!==void 0)return HlN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return HlN=W},{mode:1});var tR1;var $WP=_.EO("DOWNLOAD",{},"Download"),VR2=_.EO("DOWNLOADING",{},"Downloading"),NSR=_.EO("DOWNLOADED",{},"Downloaded"),S1=function(){var W=_.n.apply(this,arguments)||this;W.downloadProgress=0;W.isDownloadComplete=!1;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.R(S1,_.n);_.d=S1.prototype;_.d.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.d.dataChanged=function(){var W;(W=this.data)!=null&&W.tooltip||(W=_.x9(_.uv().getState(),this.playlistId),this.updateButtonState(W))};
_.d.computePlaylistId=function(W){return W};
_.d.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.d.updateButtonState=function(W){if(this.data&&(this.data.tooltip!==VR2||!_.lv(W))){this.isDownloadComplete=!1;switch(W){case "TRANSFER_STATE_UNKNOWN":W=$WP;var O="OFFLINE_DOWNLOAD";var b="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":W=NSR;O="OFFLINE_PIN";b="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":W=VR2;O="OFFLINE_DOWNLOADING_ZERO";b="ACTION_REMOVE_WITH_PROMPT";
break;default:W=$WP,O="OFFLINE_DOWNLOAD",b="ACTION_ADD"}var T=Object.assign({},this.data);T.tooltip=W;T.accessibilityData={accessibilityData:{label:W}};T.icon={iconType:O};T.size="SIZE_DEFAULT";_.P(T.command,_.Yz)&&(_.P(T.command,_.Yz).action=b);this.set("data",T)}};
_.d.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var W="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?W="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?W="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?W="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?W="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?W="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(W="OFFLINE_PIN",this.isDownloadComplete=!0);var O;W!==((O=this.data.icon)==null?void 0:O.iconType)&&(O=Object.assign({},this.data),O.tooltip=VR2,O.accessibilityData={accessibilityData:{label:VR2}},O.icon={iconType:W},_.P(O.command,_.Yz)&&(_.P(O.command,_.Yz).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",O))}};
S1.prototype.updateProgress=S1.prototype.updateProgress;S1.prototype.onTransferStateChanged=S1.prototype.onTransferStateChanged;S1.prototype.dataChanged=S1.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"forceIconButton",void 0);
_.t([_.C({value:!0}),_.N("design:type",Boolean)],S1.prototype,"forceIconOnly",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"overrides",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"buttonTooltipPosition",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"styleActionButton",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"disableTextTransform",void 0);
_.t([_.C({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.N("design:type",String)],S1.prototype,"playlistId",void 0);_.t([_.C(),_.N("design:type",Object)],S1.prototype,"data",void 0);_.t([_.C({selector:_.pX8,selectorArgs:["playlistId"]}),_.N("design:type",Object)],S1.prototype,"downloadProgress",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],S1.prototype,"isDownloadComplete",void 0);
_.t([_.C({selector:_.x9,selectorArgs:["playlistId"]}),_.N("design:type",String)],S1.prototype,"transferState",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],S1.prototype,"showTooltips",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],S1.prototype,"sendCommandWhenDisabled",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],S1.prototype,"disabled",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S1.prototype,"dataChanged",null);_.t([_.Ul("transferState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S1.prototype,"onTransferStateChanged",null);_.t([_.Ul("downloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S1.prototype,"updateProgress",null);
S1=_.t([_.G({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],S1);
_.H(S1,"ytd-download-playlist-button-renderer",function(){if(tR1!==void 0)return tR1;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tR1=W},{mode:1});var MRU;_.O1(_.cwN,"thumbnail-overlay-button-view-model",{props:{data:_.te,lockupExperiments:_.te}});var Zg=function(){var W=_.n.apply(this,arguments)||this;W.isSquare=!1;W.isVertical=!1;return W};
_.R(Zg,_.n);Zg.prototype.computeIsSquare=function(W){return W!=null&&W.thumbnail?oC7(W.thumbnail)==="SQUARE":!1};
Zg.prototype.computeIsVertical=function(W){return W!=null&&W.thumbnail?oC7(W.thumbnail)==="VERTICAL":!1};
Zg.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.N("design:type",Object)],Zg.prototype,"isSquare",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.N("design:type",Object)],Zg.prototype,"isVertical",void 0);
_.t([_.C(),_.N("design:type",Object)],Zg.prototype,"data",void 0);Zg=_.t([_.G({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],Zg);
_.H(Zg,"ytd-hero-playlist-thumbnail-renderer",function(){if(MRU!==void 0)return MRU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MRU=W},{mode:1});var Io=function(){var W=_.n.apply(this,arguments)||this;W.isDarkTheme=!1;W.isUltraWide=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return W};
_.R(Io,_.n);_.d=Io.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.iq();var W;(W=_.iq().resolve(_.OT(_.tM)))!=null&&(W.headerElement=this.hostElement)};
_.d.detached=function(){var W;(W=_.iq().resolve(_.OT(_.tM)))!=null&&(W.headerElement=void 0)};
_.d.onUpdateHeader=function(W){(W=W.detail)&&this.set("data",W)};
_.d.computeTextDisplayed=function(W){if(W)return W.textDisplayed?W.textDisplayed:W.placeholder};
_.d.gradientColorToLinearGradientStop=function(W){var O=this.isDarkTheme?W.darkThemeColor:W.lightThemeColor;return O?_.C_(O)+" "+((W==null?void 0:W.startLocation)||0)*100+"%":"transparent"};
_.d.onWindowResize=function(){var W;((W=this.data)==null?0:W.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.d.onIronResize=function(W){this.isUltraWide=!W.detail.value};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.onUpdatePlaylistName=function(W){var O=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},W.detail.value));_.My(this,function(){var b;(b=O.editableTitle)==null||b.resize()})};
_.d.onUpdatePlaylistDescription=function(W){var O=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},W.detail.value));_.My(this,function(){var b;(b=O.editableDescriptionInlineExpander)==null||b.resize()})};
_.d.getCinematicData=function(W){return _.P(W==null?void 0:W.cinematicContainer,_.PJ)};
_.Jq.Object.defineProperties(Io.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 W,O=(W=this.getCinematicData(this.data))==null?void 0:W.config;return(W=this.isDarkTheme?O==null?void 0:O.darkThemeBackgroundColor:O==null?void 0:O.lightThemeBackgroundColor)?"background-color:"+_.zF(W)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var W;return _.P((W=this.data)==null?void 0:W.descriptionForm,MFk)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b,T;return"background:linear-gradient(to bottom, "+(((T=(O=this.getCinematicData(this.data))==null?void 0:(b=O.gradientColorConfig)==null?void 0:b.map(function(L){return W.gradientColorToLinearGradientStop(L)}))==null?void 0:T.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var W;return _.NX((W=this.data)==null?void 0:W.descriptionTapText)}}});
Io.prototype.onUpdateHeader=Io.prototype.onUpdateHeader;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Io.prototype,"actionHandlerBehavior",void 0);_.t([_.El("#description-inline-expander"),_.N("design:type",Object)],Io.prototype,"descriptionInlineExpander",void 0);
_.t([_.El("#editable-description-inline-expander"),_.N("design:type",Object)],Io.prototype,"editableDescriptionInlineExpander",void 0);_.t([_.C(),_.N("design:type",Object)],Io.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Io.prototype,"isUltraWide",void 0);_.t([_.El("#editable-title-display"),_.N("design:type",Object)],Io.prototype,"editableTitle",void 0);_.t([_.x("isUltraWide"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"maxDescriptionLines",null);
_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"noCinematicData",null);_.t([_.ai("yt-new-playlist-header"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Io.prototype,"onUpdateHeader",null);_.t([_.x("data","isDarkTheme"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"backgroundStyle",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"descriptionFormData",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"getDropdownTheme",null);_.t([_.x("data","isDarkTheme"),_.N("design:type",String),_.N("design:paramtypes",[])],Io.prototype,"gradientStyle",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Io.prototype,"descriptionTapText",null);
Io=_.t([_.G({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],Io);
_.H(Io,"ytd-playlist-header-renderer",function(){if(zsP!==void 0)return zsP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zsP=W},{mode:_.Lb("kevlar_poly_si_batch_j078")?1:2});var uQD;var Jr5;var ao=function(){return _.n.apply(this,arguments)||this};
_.R(ao,_.n);ao.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ao.prototype,"data",void 0);ao=_.t([_.G({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],ao);
_.H(ao,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Jr5!==void 0)return Jr5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Jr5=W},{mode:1});var mS=function(){return _.n.apply(this,arguments)||this};
_.R(mS,_.n);
mS.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}}}}};
mS.prototype.computeUsePremiumShowStyle=function(W){if(!W||!W.items)return!1;for(var O=0;O<W.items.length;O++)if(_.P(W.items[O],o9)){var b=void 0;return((b=_.P(W.items[O],o9))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mS.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.N("design:type",Boolean)],mS.prototype,"usePremiumShowStyle",void 0);
mS=_.t([_.G({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],mS);
_.H(mS,"ytd-playlist-sidebar-renderer",function(){if(uQD!==void 0)return uQD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return uQD=W},{mode:1});var crD;var F$k;var yrD=function(W,O,b,T,L,h,Z,a){this.minWidth=W;this.minHeight=O;this.recommendedWidth=b;this.recommendedHeight=T;this.JSC$19473_maxFileSize=L;this.title=h;this.bannerGalleryTitle=Z;this.channelId=a;this.picker_=null;W=_.Ulq("yt-banner");O=W.addView;b=(new z1U("youtubebanner")).addUploadMetadata("silo_id","19");b.opts.ytMaxFileSize=this.JSC$19473_maxFileSize;T=this.recommendedHeight;b.opts.ytRecWidth=this.recommendedWidth;b.opts.ytRecHeight=T;O.call(W,b);W.addView(new _.U$);O=W.addView;b=new _.U$;
b.opts.type="ytbanner";O.call(W,b.JSC$8074_setLabel(this.bannerGalleryTitle));O=W.setTitle(this.title).setSize(1E3);O.urlParamMap_.set("thumbs","orig");b=this.minWidth;T=this.minHeight;if(isNaN(b)||isNaN(T))throw Error("kb`"+b+"`"+T);O.urlParamMap_.set("minSize",b+"x"+T);O.urlParamMap_.set("cropMode","ytcb");this.builder_=W};
yrD.prototype.open=function(){var W=this;return new _.mJ(function(O,b){_.Flf(W.builder_,function(T){T.action=="picked"?O(T):T.action=="cancel"&&b(Error("Wl"))});
W.picker_&&W.picker_.dispose();W.picker_=W.builder_.build();W.picker_.setVisible(!0)})};
yrD.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var WWg=function(W){this.channelId=W},O3R=function(W,O){var b="";
O.viewToken&&(b=O.viewToken[2].type);var T=O.docs[0];O=T.crop;W={channel_id:W.channelId,fife_url:T.thumbnails[0].url,photo_id:T.id,is_gallery_image:b=="ytbanner"};O&&(W.crop_top=O.top,W.crop_right=O.right,W.crop_bottom=O.bottom,W.crop_left=O.left);return _.V21("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:W})};var Yw=function(){var W=_.n.apply(this,arguments)||this;W.ariaLabel=null;return W};
_.R(Yw,_.n);_.d=Yw.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.d.detached=function(){this.picker&&this.picker.dispose()};
_.d.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.d.computeAriaLabel=function(W){return W};
_.d.onTap=function(){var W=this,O;if((O=this.data)==null||!O.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new yrD(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var b;(b=this.picker)==null||b.open().then(function(T){W.handleBannerPicked(T)},function(){})}};
_.d.handleBannerPicked=function(W){var O=this;this.uploader||(this.uploader=new WWg(this.data.channelId||""));this.message=this.data.uploadingText;O3R(this.uploader,W).then(function(b){O.handleBannerUploadSucceeded(b)},function(b){O.handleBannerUploadFailed(b)})};
_.d.handleBannerUploadSucceeded=function(W){W&&W.errors?this.handleBannerUploadFailed(W):(_.bX(this.hostElement,"yt-banner-updated",W),this.message=null)};
_.d.handleBannerUploadFailed=function(W){this.message=W&&W.errors&&W.errors.length?W.errors[0]:null};
Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Yw.prototype,"componentBehavior",void 0);_.t([_.D(_.QX),_.N("design:type",Object)],Yw.prototype,"ironButtonState",void 0);_.t([_.C(),_.N("design:type",Object)],Yw.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.N("design:type",Object)],Yw.prototype,"ariaLabel",void 0);
_.t([_.C(),_.N("design:type",Object)],Yw.prototype,"message",void 0);_.t([_.C(),_.N("design:type",Object)],Yw.prototype,"picker",void 0);_.t([_.C(),_.N("design:type",Object)],Yw.prototype,"uploader",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yw.prototype,"dataChanged",null);Yw=_.t([_.G({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Yw);
_.H(Yw,"ytd-channel-banner-editor-renderer",function(){if(F$k!==void 0)return F$k;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return F$k=W},{mode:1});var i39;var b3R=_.ts(["#"]),EE=function(){return _.n.apply(this,arguments)||this};
_.R(EE,_.n);EE.prototype.computeHrefWithDefault=function(W){return this.ytComponentBehavior.computeHref_(W,!0)||_.RQ(b3R)};
EE.prototype.dataChanged=function(){var W=this.data;W&&W.targetId&&_.rDN(_.Ae(),W.targetId,this.moreIcon)};
EE.prototype.dataChanged=EE.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],EE.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],EE.prototype,"data",void 0);_.t([_.El("#more-icon"),_.N("design:type",Object)],EE.prototype,"moreIcon",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EE.prototype,"dataChanged",null);
EE=_.t([_.G({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],EE);
_.H(EE,"ytd-channel-tagline-renderer",function(){if(i39!==void 0)return i39;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return i39=W},{mode:1});var jXN;var wx=function(){return _.n.apply(this,arguments)||this};
_.R(wx,_.n);_.d=wx.prototype;_.d.ready=function(){var W=this;_.Q(this.hostElement).querySelector("#form").addEventListener("submit",function(O){W.onSubmit(O)})};
_.d.onDataChanged=function(){var W;((W=this.data)==null?0:W.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.d.onIconButtonKeydown=function(W){W.keyCode===13&&this.iconButton.click()};
_.d.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.d.openOnClickHandler=function(){this.input.focus()};
_.d.onSubmit=function(W){W.preventDefault();return!1};
_.d.submitOnEnterKeyUp=function(W){var O;if(W.keyCode===13&&((O=this.data)==null?0:O.expandedText)){W=this.data.endpoint;O=_.PQ.unsafeClone(W);var b;((b=_.P(O==null?void 0:O.commandMetadata,_.F9))==null?0:b.url)?(_.P(O.commandMetadata,_.F9).url=_.nB(_.P(O.commandMetadata,_.F9).url,"query",this.data.expandedText),_.P(O,_.wE)&&(_.P(O,_.wE).query=this.data.expandedText),_.bX(this.hostElement,"yt-navigate",{endpoint:O,tempData:{disableCache:!0}})):(b=new _.pu("Error: Trying to navigate to an endpoint without url",
W),_.Dt(b))}};
_.d.updateDataExpandedTextFromBinding=function(W){this.set("data.expandedText",W.detail.value)};
wx.prototype.onDataChanged=wx.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.BCP),_.N("design:type",Object)],wx.prototype,"ytdExpandableInputBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wx.prototype,"data",void 0);_.t([_.El("#input"),_.N("design:type",Object)],wx.prototype,"input",void 0);_.t([_.El("#icon-button"),_.N("design:type",HTMLElement)],wx.prototype,"iconButton",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wx.prototype,"onDataChanged",null);wx=_.t([_.G({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],wx);
var QgZ=_.TH()(wx,"ytd-expandable-tab-renderer",function(){if(jXN===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);jXN=W}W=jXN;return W},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var TID;var Ah=function(){var W=_.n.apply(this,arguments)||this;W.avatarSize=80;W.ariaLabel=_.EO("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return W};
_.R(Ah,_.n);Ah.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Ah.prototype.computeHref=function(W){var O;return((O=_.P(W,_.t8))==null?0:O.url)?this.componentBehavior.computeHref_(W):null};
Ah.prototype.onTap=function(){var W,O;(W=this.data)==null||!W.editAvatarServiceEndpoint||((O=_.P(this.data.editAvatarServiceEndpoint,_.t8))==null?0:O.url)||_.iq().resolve(_.bq).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.t([_.D(_.QX),_.N("design:type",Object)],Ah.prototype,"ironButtonState",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Ah.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ah.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Ah.prototype,"avatarSize",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],Ah.prototype,"ariaLabel",void 0);Ah=_.t([_.G({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Ah);
_.H(Ah,"ytd-channel-avatar-editor",function(){if(TID!==void 0)return TID;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return TID=W},{mode:1});var LW7=_.J1(function(W){var O=W.data;var b=W.noPadding;var T=W.enableBanner;var L=W.cinematicContainerTopbarOffset;var h=W.allowCinematicContainerOverflow;var Z=W.displayAsSidebar;W=W.className;_.kb(function(){O().tagManagerId&&(_.eu(O().tagManagerId,_.Cv("GL")),xSB(O().tagManagerId))});
var a=_.wt(sg5,function(){return O().pageHeaderEntityKey});
return _.E("yt-page-header-renderer",{class:_.YS("page-header-renderer-wiz",W)},_.E(_.R4,{data:function(){var m;return((m=a())==null?0:m.header)?a().header:(Z==null?0:Z())&&O().sidebarContent?O().sidebarContent:O().content}},{pageHeaderViewModel:function(m){return _.E(_.mtf,{data:m.data,
noPadding:b,enableBanner:T,cinematicContainerTopbarOffset:L,allowCinematicContainerOverflow:h,displayAsSidebar:function(){return(Z==null?void 0:Z())&&O().enableSidebarView}})}}))},"xi");
LW7.idomCompat=!0;_.O1(LW7,"yt-page-header-renderer",{props:{data:_.te,noPadding:_.te,enableBanner:_.te,cinematicContainerTopbarOffset:_.te,allowCinematicContainerOverflow:_.te,displayAsSidebar:_.te,className:_.te}});_.O1(_.I05,"yt-image-banner-view-model",{props:{data:_.te,isPositionRelative:_.te}});_.O1(_.QSf,"yt-tab-group-shape",{props:{shape:_.te}});var XY=function(){var W=_.n.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(O){return kf5(O,function(){return void W.onSearchNavigate()})};
W.isRichGrid=!1;W.isConstrainedList=!1;W.richGridMiniMode=!1;W.richGridStyle="RICH_GRID_STYLE_UNKNOWN";W.isRichGridShorts=!1;W.responsiveSizing="COMPACT";W.disableGridStateAware=!1;W.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return W};
_.R(XY,_.n);_.d=XY.prototype;_.d.computeHeaderDisabled=function(W,O){return O||!W||this.tabsHidden};
_.d.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.d.computeIsRichGridShorts=function(W){return W==="RICH_GRID_STYLE_SHORTS_GRID"||W==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.d.computeImageBannerViewModel=function(){var W,O;return _.P((O=_.P((W=this.data)==null?void 0:W.content,_.iNf))==null?void 0:O.banner,_.cuf)};
_.d.computeHasCinematicContainer=function(){var W,O;return!((O=_.P((W=this.data)==null?void 0:W.content,_.iNf))==null||!O.background)};
_.d.handleHeaderResize=function(){var W=_.Q(this.hostElement).querySelector("#header");W&&_.bX(W,"iron-resize")};
_.d.handleInsertTabCommand=function(W){var O=_.P(W,ilg);O&&(O.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(b){return b.tabRenderer&&b.tabRenderer.tabIdentifier===O.tabIdentifier})||this.splice("tabs",O.tabIndex||-1,0,O.tab))};
_.d.handleRefreshChannelTabAction=function(W){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===W&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.d.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Sl(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.d.observerRichGridSlimItemsPerRow=function(){_.Sl(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.d.updateCssVars=function(){this.richGridItemsPerRow&&_.Sl(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Lu("rich_grid_max_item_width",500))+16)-16+"px"})};
_.d.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Sl(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.d.onDataChanged=function(){this.handleHeaderResize()};
_.d.onWindowResize=function(){this.handleHeaderResize()};
_.d.onFocusedChanged=function(W){(W=_.Md(W))&&W.is==="tp-yt-paper-tab"&&W.hasRipple()&&(W.getRipple().holdDown=!W.pointerDown&&W.focused)};
_.d.updateSelectedFromBinding=function(W){this.ytdTabbedHeaderBehavior.selected=W.detail.value};
_.d.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Jq.Object.defineProperties(XY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:rwN(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.imageBannerViewModel)==null?void 0:W.style)==="IMAGE_BANNER_STYLE_INSET"}}});
XY.prototype.onDataChanged=XY.prototype.onDataChanged;XY.prototype.updateCssVarsForResponsiveGrid=XY.prototype.updateCssVarsForResponsiveGrid;XY.prototype.updateCssVars=XY.prototype.updateCssVars;XY.prototype.observerRichGridSlimItemsPerRow=XY.prototype.observerRichGridSlimItemsPerRow;XY.prototype.observerRichGridItemsPerRow=XY.prototype.observerRichGridItemsPerRow;_.t([_.D(_.xo),_.N("design:type",Object)],XY.prototype,"ytdGridStateAwareBehavior",void 0);
_.t([_.D(bl9),_.N("design:type",Object)],XY.prototype,"ytdTabbedHeaderBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],XY.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],XY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],XY.prototype,"ytdReduxBehavior",void 0);_.t([_.El("#tabs"),_.N("design:type",Object)],XY.prototype,"tabsElement",void 0);_.t([_.C(),_.N("design:type",Array)],XY.prototype,"tabs",void 0);_.t([_.C(),_.N("design:type",Object)],XY.prototype,"expandableCustomTabRenderable",void 0);_.t([_.x("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"tabGroupShape",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"isRichGrid",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"isConstrainedList",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Object)],XY.prototype,"richGridMiniMode",void 0);_.t([_.C({selector:function(W){return W.ui.richGridStyle}}),
_.N("design:type",Object)],XY.prototype,"richGridStyle",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.N("design:type",Object)],XY.prototype,"isRichGridShorts",void 0);_.t([_.C({selector:_.sr}),_.N("design:type",Number)],XY.prototype,"richGridItemsPerRow",void 0);_.t([_.C({selector:function(W){return W.ui.richGridContainerWidth}}),
_.N("design:type",Number)],XY.prototype,"richGridContainerWidth",void 0);_.t([_.C({selector:_.S2X}),_.N("design:type",Number)],XY.prototype,"richGridSlimItemsPerRow",void 0);_.t([_.C(),_.N("design:type",Object)],XY.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"responsiveSizing",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],XY.prototype,"disableGridStateAware",void 0);
_.t([_.C({computed:"computeImageBannerViewModel(data)"}),_.N("design:type",Object)],XY.prototype,"imageBannerViewModel",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.N("design:type",Boolean)],XY.prototype,"hasCinematicContainer",void 0);_.t([_.C({selector:_.XDZ,reflectToAttribute:!0}),_.N("design:type",Boolean)],XY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"hasBanner",null);_.t([_.C({reflectToAttribute:!0}),_.x("imageBannerViewModel"),_.N("design:type",Object),_.N("design:paramtypes",[])],XY.prototype,"hasInsetBanner",null);_.t([_.C({computed:"computeTabsHidden(tabs)",value:!0}),_.N("design:type",Boolean)],XY.prototype,"tabsHidden",void 0);
_.t([_.m5("richGridItemsPerRow","isRichGrid"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"observerRichGridItemsPerRow",null);_.t([_.m5("richGridSlimItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"observerRichGridSlimItemsPerRow",null);
_.t([_.m5("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"updateCssVars",null);_.t([_.m5("richGridContainerWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"updateCssVarsForResponsiveGrid",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],XY.prototype,"onDataChanged",null);
XY=_.t([_.G({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],XY);
_.H(XY,"ytd-tabbed-page-header",function(){if(crD!==void 0)return crD;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return crD=W},{mode:1});var dUg;var UE=function(){return _.n.apply(this,arguments)||this};
_.R(UE,_.n);UE.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Sl(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Jq.Object.defineProperties(UE.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var W,O;return this.componentBehavior.computeIcon_(((O=_.P((W=this.data)==null?void 0:W.badge,_.VbU))==null?void 0:O.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.badge,_.VbU))==null?void 0:O.label}}});
UE.prototype.observerRichGridItemsPerRow=UE.prototype.observerRichGridItemsPerRow;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],UE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],UE.prototype,"componentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],UE.prototype,"ytdReduxBehavior",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.k9}),_.N("design:type",Boolean)],UE.prototype,"richGridMiniMode",void 0);
_.t([_.C({selector:_.sr}),_.N("design:type",Number)],UE.prototype,"richGridItemsPerRow",void 0);_.t([_.C(),_.N("design:type",Object)],UE.prototype,"data",void 0);_.t([_.m5("richGridItemsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UE.prototype,"observerRichGridItemsPerRow",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],UE.prototype,"badgeIconName",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],UE.prototype,"badgeLabel",null);UE=_.t([_.G({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],UE);
_.H(UE,"ytd-member-hub-profile-renderer",function(){if(dUg!==void 0)return dUg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dUg=W},{mode:1});var hm8;var lY=function(){return _.n.apply(this,arguments)||this};
_.R(lY,_.n);lY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lY.prototype,"data",void 0);lY=_.t([_.G({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],lY);
_.H(lY,"ytd-settings-sidebar-renderer",function(){if(hm8!==void 0)return hm8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hm8=W},{mode:1});var SX5;var e1=function(){var W=_.n.apply(this,arguments)||this;W.expandableCustomTabRenderable=function(O){return kf5(O,function(){return void W.onSearchNavigate()})};
return W};
_.R(e1,_.n);e1.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
e1.prototype.onSearchNavigate=function(){this.selected=void 0};
e1.prototype.onTabsChange=function(){var W,O=(W=this.tabs)==null?void 0:W.findIndex(function(b){var T;return b==null?void 0:(T=b.tabRenderer)==null?void 0:T.selected});
O!==void 0&&(this.selected=O)};
e1.prototype.onTabsActive=function(W){if(this.tabs!==void 0){var O,b;(W=(O=this.tabs[W.detail.selected])==null?void 0:(b=O.tabRenderer)==null?void 0:b.endpoint)&&_.bX(this.hostElement,"yt-navigate",{endpoint:W})}};
_.Jq.Object.defineProperties(e1.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:rwN(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
e1.prototype.onTabsChange=e1.prototype.onTabsChange;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],e1.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xo),_.N("design:type",Object)],e1.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],e1.prototype,"ytdGuideStateAwareBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],e1.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],e1.prototype,"tabs",void 0);_.t([_.C(),_.N("design:type",Number)],e1.prototype,"selected",void 0);_.t([_.x("tabs.*"),_.N("design:type",Object),_.N("design:paramtypes",[])],e1.prototype,"tabGroupShape",null);_.t([_.C(),_.N("design:type",Object)],e1.prototype,"expandableCustomTabRenderable",void 0);
_.t([_.x("tabs"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],e1.prototype,"tabsEnabled",null);_.t([_.Ul("tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e1.prototype,"onTabsChange",null);e1=_.t([_.G({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],e1);
_.H(e1,"ytd-topic-channel-details-renderer",function(){if(SX5!==void 0)return SX5;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return SX5=W},{mode:1});var Z3g;var Pf=function(){var W=_.n.apply(this,arguments)||this;W.disableGridStateAware=!1;return W};
_.R(Pf,_.n);Pf.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]]"}}}}}};
Pf.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Pf.prototype.updateCssVars=function(){_.Sl(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.Lu("rich_grid_max_item_width",500))+16)-16+"px"})};
Pf.prototype.updateCssVars=Pf.prototype.updateCssVars;Pf.prototype.activeChanged=Pf.prototype.activeChanged;_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Pf.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Pf.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pf.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],Pf.prototype,"tabs",void 0);_.t([_.C(),_.N("design:type",Boolean)],Pf.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Pf.prototype,"disableGridStateAware",void 0);
_.t([_.C({selector:_.sr}),_.N("design:type",Number)],Pf.prototype,"richGridItemsPerRow",void 0);_.t([_.C({selector:_.k9}),_.N("design:type",Boolean)],Pf.prototype,"richGridMiniMode",void 0);_.t([_.El("ytd-carousel-item-renderer"),_.N("design:type",Object)],Pf.prototype,"carousel",void 0);_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pf.prototype,"activeChanged",null);
_.t([_.m5("richGridItemsPerRow","richGridMiniMode"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Pf.prototype,"updateCssVars",null);Pf=_.t([_.G({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Pf);
_.H(Pf,"ytd-carousel-header-renderer",function(){if(Z3g!==void 0)return Z3g;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Z3g=W},{mode:1});var Ie5;var aeD=_.ts(["https://www.google-analytics.com/analytics.js"]),pX=function(){var W=_.n.apply(this,arguments)||this;W.scriptAnalyticsAdded=!1;return W};
_.R(pX,_.n);pX.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var W,O=(W=this.data)==null?void 0:W.tagManagerId;O&&(_.eu(O,_.Cv("GL")),xSB(O))};
pX.prototype.sendGoogleAnalyticsPageview=function(W){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var b=_.PD.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(b)};
var O=window.ga;O("set","page",window.location.pathname);O.l=+new Date;O("set","forceSSL",!0);O("create",W,"'auto'");O("send","pageview")};
pX.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var W=_.AV("SCRIPT");W.name="ga-analytics";var O=_.yN(aeD);_.fz(W,O);W.async=!0;_.Q(this.hostElement).appendChild(W)};
pX.prototype.dataChanged=pX.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],pX.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pX.prototype,"dataChanged",null);pX=_.t([_.G({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],pX);
_.H(pX,"ytd-channel-metadata-renderer",function(){if(Ie5!==void 0)return Ie5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ie5=W},{mode:1});var mU5;var YXR;var Ro=function(){return _.n.apply(this,arguments)||this};
_.R(Ro,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ro.prototype,"data",void 0);Ro=_.t([_.G({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Ro);
_.H(Ro,"ytd-sub-feed-option-renderer",function(){if(YXR!==void 0)return YXR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return YXR=W},{mode:1});var Eeg;var KX=function(){return _.n.apply(this,arguments)||this};
_.R(KX,_.n);KX.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],KX.prototype,"ytRendererStamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KX.prototype,"data",void 0);KX=_.t([_.G({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],KX);
_.H(KX,"ytd-sub-feed-selector-renderer",function(){if(Eeg!==void 0)return Eeg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Eeg=W},{mode:1});var vf=function(){return _.n.apply(this,arguments)||this};
_.R(vf,_.n);
vf.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}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vf.prototype,"data",void 0);vf=_.t([_.G({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],vf);
_.H(vf,"ytd-browse-feed-actions-renderer",function(){if(mU5!==void 0)return mU5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return mU5=W},{mode:1});var wER;var AQg;var gx=function(){return _.n.apply(this,arguments)||this};
_.R(gx,_.n);gx.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gx.prototype,"data",void 0);gx=_.t([_.G({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],gx);
_.H(gx,"ytd-mini-channel-renderer",function(){if(AQg!==void 0)return AQg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return AQg=W},{mode:1});var XE1;var oo=function(){return _.n.apply(this,arguments)||this};
_.R(oo,_.n);oo.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oo.prototype,"data",void 0);oo=_.t([_.G({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],oo);
_.H(oo,"ytd-vertical-channel-section-renderer",function(){if(XE1!==void 0)return XE1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return XE1=W},{mode:1});var Qz=function(){return _.n.apply(this,arguments)||this};
_.R(Qz,_.n);Qz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Qz.prototype,"data",void 0);Qz=_.t([_.G({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Qz);
_.H(Qz,"ytd-browse-secondary-contents-renderer",function(){if(wER!==void 0)return wER;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return wER=W},{mode:1});var UU1;var kw=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};W.notActive=!1;W.isConstrainedList=!1;return W};
_.R(kw,_.n);_.d=kw.prototype;
_.d.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(W){var O;return(W==null?void 0:(O=W.webComponentHint)==null?void 0:O.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}}}}};
_.d.getPath=function(W,O){var b="data.tabs.#"+O+".";W.tabs[O].tabRenderer?b+="tabRenderer.":W.tabs[O].expandableTabRenderer&&(b+="expandableTabRenderer.");return b+"content.sectionListRenderer"};
_.d.computeDisplayedContent=function(W){this.unlinkPaths("content");if(W&&W.tabs)for(var O=W.tabs.length,b=0;b<O;b++){var T=W.tabs[b].tabRenderer||W.tabs[b].expandableTabRenderer;if(T.selected&&T.content)return this.linkPaths("content",this.getPath(W,b)),T.content}return null};
_.d.computeHasSecondaryColumnData=function(W){return!!W&&!!W.secondaryContents};
_.d.onRetrieveLocation=function(W,O){O.locationRetrieved(O.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);W.stopPropagation()};
_.d.onYtServiceRequestSent=function(W,O){_.e("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(O)};
_.d.onYtServiceRequestCompleted=function(W,O){_.e("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(O)};
_.d.onReplaceFeedContentAction=function(W){if(!_.e("replace_feed_content_action_killswitch")&&!this.notActive){var O;(W=(O=_.P(W,$SN))==null?void 0:O.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(W)}};
_.d.handleServiceRequestActions=function(W){if(W=W.actions){W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;var b=void 0;((b=_.P(O,$SN))==null?0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.P(O,$SN).items)}}};
kw.prototype.onYtServiceRequestCompleted=kw.prototype.onYtServiceRequestCompleted;kw.prototype.onYtServiceRequestSent=kw.prototype.onYtServiceRequestSent;kw.prototype.onRetrieveLocation=kw.prototype.onRetrieveLocation;_.t([_.D(_.xo),_.N("design:type",Object)],kw.prototype,"ytdGridStateAwareBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kw.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],kw.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kw.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kw.prototype,"data",void 0);_.t([_.C({computed:"computeDisplayedContent(data)"}),_.N("design:type",Object)],kw.prototype,"content",void 0);
_.t([_.C({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],kw.prototype,"hasSecondaryColumnData",void 0);_.t([_.C({value:function(){return window.outerHeight>1024?3:2}}),
_.N("design:type",Number)],kw.prototype,"initialCount",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],kw.prototype,"pageSubtype",void 0);_.t([_.El("ytd-section-list-renderer"),_.N("design:type",Object)],kw.prototype,"listRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],kw.prototype,"notActive",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],kw.prototype,"isConstrainedList",void 0);
_.t([_.C(),_.N("design:type",String)],kw.prototype,"responsiveSizing",void 0);_.t([_.ai("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],kw.prototype,"onRetrieveLocation",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],kw.prototype,"onYtServiceRequestSent",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],kw.prototype,"onYtServiceRequestCompleted",null);kw=_.t([_.G({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],kw);
_.H(kw,"ytd-two-column-browse-results-renderer",function(){if(UU1!==void 0)return UU1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UU1=W},{mode:2});var le8;var em8;var sE=function(){var W=_.n.apply(this,arguments)||this;W.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"]);W.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"]);W.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return W};
_.R(sE,_.n);_.d=sE.prototype;_.d.attached=function(){this.requestElementsPerRow()};
_.d.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_]]"}}}}}};
_.d.onUpdateElementsPerRowAction=function(W){W&&this.elementsPerRow!==W&&(this.elementsPerRow=W)};
_.d.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.d.computeAlertStyle_=function(W){return W};
_.d.observerElementsPerRow=function(){this.elementsPerRow&&_.Sl(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.d.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.d.requestElementsPerRow=function(){_.bX(this.hostElement,"yt-request-elements-per-row")};
sE.prototype.onIsVisibleChanged_=sE.prototype.onIsVisibleChanged_;sE.prototype.observerElementsPerRow=sE.prototype.observerElementsPerRow;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],sE.prototype,"actionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],sE.prototype,"data",void 0);_.t([_.C({value:6,reflectToAttribute:!0}),_.N("design:type",Number)],sE.prototype,"elementsPerRow",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],sE.prototype,"wrapButtons",void 0);_.t([_.C({value:_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],sE.prototype,"isMusic",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.N("design:type",String)],sE.prototype,"alertStyle",void 0);_.t([_.C({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.N("design:type",Function)],sE.prototype,"dismissBoundButtonTap_",void 0);_.t([_.C({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.N("design:type",Function)],sE.prototype,"acceptBoundButtonTap_",void 0);_.t([_.m5("elementsPerRow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sE.prototype,"observerElementsPerRow",null);_.t([_.m5("data.isVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sE.prototype,"onIsVisibleChanged_",null);sE=_.t([_.sl({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],sE);
_.H(sE,"yt-alert-with-actions-renderer",function(){if(em8===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;le8===void 0&&(le8=document.createElement("template"));var T=le8;b.call(O,T.content.cloneNode(!0),W.content.firstChild);em8=W}W=em8;return W},{mode:2});_.O1(_.J1(function(W){function O(l){var p={};return _.E(_.uw,{text:l,className:_.YS("ytPersonalGreetingViewModelHeadline",(p.ytPersonalGreetingViewModelHeadlineSmall=function(){return a()===48},p))})}
function b(l,p){return _.E("span",{el:l,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},O(p))}
var T=_.uy(),L=_.uy(),h=_.uy(),Z=function(){return W.data().canvasPromoData},a=function(){var l;
return(l=W.data().bannerHeight)!=null?l:56},m=_.p4X(T,{throttleMs:100}),w=_.p4X(L,{throttleMs:100}),A=_.p4X(h,{throttleMs:100}),X=function(){return w.width()-m.width()>1};
_.GJ(T,function(){var l;return(l=W.data())==null?void 0:l.rendererContext},void 0,void 0,void 0,!0);
return _.E("yt-personal-greeting-view-model",{el:T,"aria-hidden":X,class:_.YS(W.className,"ytPersonalGreetingViewModelHost"),style:_.eE({height:(0,_.RF)(function(){return X()?0:a()})})},_.E(_.U,{cond:function(){return W.data().avatar&&!(A.width()+(W.data().avatar?48:0)-m.width()>1)},
then:function(){return _.E(_.R4,{data:function(){return W.data().avatar}},{decoratedAvatarViewModel:function(l){return _.E(_.KA,{data:l.data,
className:_.YS("ytPersonalGreetingViewModelAvatar")})}})}}),_.E("h1",null,O(function(){var l;
return(Z==null?void 0:(l=Z())==null?void 0:l.headline)||(A.width()+(W.data().avatar?48:0)-m.width()>1?W.data().shorterGreeting:W.data().greeting)})),b(h,function(){return W.data().greeting}),b(L,function(){return W.data().shorterGreeting}))},"yi"),"yt-personal-greeting-view-model",{props:{data:_.te,
className:_.te}});var Bf=function(){var W=_.n.apply(this,arguments)||this;W.hidden=!1;W.isConstrainedList=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.responsiveSizing="COMPACT";W.attachedPlayers=_.e("kevlar_channel_trailer_multi_attach")?[]:void 0;W.player=null;W.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return W};
_.R(Bf,_.n);_.d=Bf.prototype;
_.d.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}}}}};
_.d.created=function(){var W=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){W.disposeMastheadAd()}]};
_.d.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new L$7(this.refresh,this.contents))};
_.d.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.d.activeChanged=function(){var W=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=W)};
_.d.tabsChanged=function(){var W=this,O,b;if(this.pageSubtype==="channels"||_.e("kevlar_tab_gestures_for_tabbed_header_data")&&((O=this.data)==null?0:(b=O.header)==null?0:b.carouselHeaderRenderer))this.tabGestures=new kL(this.contents,this.contents,this.hostElement,this.header,function(Z){W.ytdReduxBehavior.dispatch(Z)});
var T,L,h;O=(T=this.data)==null?void 0:(L=T.contents)==null?void 0:(h=L.twoColumnBrowseResultsRenderer)==null?void 0:h.tabs;this.tabGestures&&this.tabGestures.tabsChanged(O)};
_.d.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.d.engagementPanelsChanged=function(){var W=_.iq().resolve(_.P$);if(W){if(this.engagementPanels)for(var O=_.S(this.engagementPanels),b=O.next();!b.done;b=O.next()){var T=void 0;(b=(T=b.value.identifier)==null?void 0:T.tag)&&W.panelMap.delete(b)}this.engagementPanels=[];var L;O=_.S(((L=this.data)==null?void 0:L.panels)||[]);for(L=O.next();!L.done;L=O.next()){L=_.P(L.value,_.q71);var h=b=void 0,Z=void 0,a=void 0;if(T=((b=L)==null?void 0:b.targetId)||((h=L)==null?void 0:h.panelIdentifier)||((Z=L)==
null?void 0:(a=Z.identifier)==null?void 0:a.tag))h=b=void 0,(h=(b=W).registerPanelContent)==null||h.call(b,T,{engagementPanelSectionListRenderer:L}),this.engagementPanels.push(L)}}};
_.d.onStampFinished=function(){var W=this;_.My(this,function(){if(W.tabGestures){var O=W.tabGestures;if(O.scrollPositionNeedsUpdate){var b=_.iq().resolve(_.OT(_.cs)),T;if((T=O.selectedTab)!=null&&T.title&&b&&(T=b.getCurrentPage())){if(O.scrollPositionForTabs.has(O.selectedTab.title)){var L,h;b=(h=(L=b.getCurrentPage())==null?void 0:L.clientHeight)!=null?h:0;L=O.scrollPositionForTabs.get(O.selectedTab.title);T.setScrollTop(L);b>L+100&&(O.scrollPositionNeedsUpdate=!1)}else T.setScrollTop(Math.min(O.lastVisitedTabScrollPosition!==
void 0?O.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,O.tabsStartAtInPx)),O.scrollPositionNeedsUpdate=!1;O.ytdReduxDispatch(DSZ(!1))}}}})};
_.d.loadPage_=function(W){this.initCsi();W&&(this.data=W);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.d.getTitle=function(W){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",W))return this.get("microformat.microformatDataRenderer.title",W);if(this.get("header.feedTabbedHeaderRenderer.title",W))return _.NX(this.get("header.feedTabbedHeaderRenderer.title",W));if(this.get("header.interactiveTabbedHeaderRenderer.title",W))return this.get("header.interactiveTabbedHeaderRenderer.title",W);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
W))return _.NX(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",W));var O,b;return _.e("enable_page_header_page_title")&&(W==null?0:(O=W.header)==null?0:(b=O.pageHeaderRenderer)==null?0:b.pageTitle)?W.header.pageHeaderRenderer.pageTitle:""};
_.d.updateTitle=function(W){_.bX(this.hostElement,"yt-update-title",this.getTitle(W))};
_.d.initCsi=function(){_.Ki(this.pageSubtype||"browse",["ol","cpt"])};
_.d.getPlayer=function(){if(_.e("kevlar_channel_trailer_multi_attach")){for(var W=_.S(this.attachedPlayers),O=W.next();!O.done;O=W.next())if(O=O.value,O.isConnected||_.f5(this.hostElement,O))return O;return null}return this.player};
_.d.getPlayerContainer=function(){return null};
_.d.onPlayerAttached=function(W,O){_.e("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(O):this.player=O};
_.d.onPlayerDetached=function(W,O){_.e("kevlar_channel_trailer_multi_attach")?(W=this.attachedPlayers.indexOf(O),W<0||this.attachedPlayers.splice(W,1)):this.player=null};
_.d.getServiceTrackingParams=function(){var W,O;return((W=this.data)==null?void 0:(O=W.responseContext)==null?void 0:O.serviceTrackingParams)||[]};
_.d.setMastheadAd=function(W){W&&W.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=W&&W.mastheadAd};
_.d.dataChanged=function(){var W=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.XpD();_.My(this,function(){_.TU(W.hostElement,"ytd-update-grid-state-action")})};
_.d.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.d.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(O){return!!O.alertWithActionsRenderer})}};
_.d.computeGreetingData=function(){if(this.data&&this.data.alerts){var W=this.data.alerts;return W&&W.find(function(O){return!!O.personalGreetingViewModel})}};
_.d.computeHasMemberHubProfileRenderer=function(W){var O;return!!(W==null?0:(O=W.header)==null?0:O.memberHubProfileRenderer)};
_.d.handleAlertCommand=function(W){this.get("alertCommand.alert.alertWithActionsRenderer",W)&&(W=_.P(W,VF8),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",W.alert))};
_.d.handleYtPlaylistDeletionRedirect=function(W){W=this.get("playlistDeletionRedirectCommand.redirectEndpoint",W);_.bX(this.hostElement,"yt-navigate",{endpoint:W})};
_.d.computeFluidWidth=function(W,O,b){if(O==="mini_app"||b)return!0;var T,L,h;W=W==null?void 0:(T=W.contents)==null?void 0:(L=T.twoColumnBrowseResultsRenderer)==null?void 0:(h=L.tabs)==null?void 0:h.find(function(m){var w;return m==null?void 0:(w=m.tabRenderer)==null?void 0:w.selected});
if(!W)return!1;var Z,a;return!!((Z=W.tabRenderer)==null?0:(a=Z.content)==null?0:a.richGridRenderer)&&!["channel","channels","playables"].includes(O)};
_.d.computeHeaderFluidWidth=function(W){return W==="hashtag-landing-page"};
_.d.computeHasSidebar=function(W){var O;return!!(W.sidebar||((O=W.header)==null?0:O.playlistHeaderRenderer))};
_.d.computeHasPageHeaderSidebar=function(W){var O,b;return!!((O=W.header)==null?0:(b=O.pageHeaderRenderer)==null?0:b.enableSidebarView)};
_.d.computeUseUnifiedShowPageLayout=function(W){if(!W||this.pageSubtype!=="show"||!W.sidebar||!W.sidebar.playlistSidebarRenderer)return!1;W=W.sidebar.playlistSidebarRenderer;if(!W.items)return!1;for(var O=0;O<W.items.length;O++)if(_.P(W.items[O],o9)){var b=void 0;return((b=_.P(W.items[O],o9))==null?void 0:b.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d.computeIsConstrainedList=function(W){return _.e("web_enable_constrained_list_subscriptions_channels")&&W==="subscriptions-channels"};
_.d.computeResponsiveSizing=function(W){return W==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Jq.Object.defineProperties(Bf.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O;return((W=this.data)==null?0:(O=W.header)==null?0:O.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var W,O;if(!((W=this.data)==null?0:(O=W.sidebar)==null?0:O.playlistSidebarRenderer))return!1;var b;return(b=this.data)!=null&&b.header?!1:!0}}});
_.Jq.Object.defineProperties(Bf,{template:{configurable:!0,enumerable:!0,get:function(){if(SI9===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);SI9=W}W=SI9;return W}}});
Bf.prototype.dataChanged=Bf.prototype.dataChanged;Bf.prototype.onPlayerDetached=Bf.prototype.onPlayerDetached;Bf.prototype.onPlayerAttached=Bf.prototype.onPlayerAttached;Bf.prototype.onStampFinished=Bf.prototype.onStampFinished;Bf.prototype.engagementPanelsChanged=Bf.prototype.engagementPanelsChanged;Bf.prototype.scrollAtTopChanged=Bf.prototype.scrollAtTopChanged;Bf.prototype.tabsChanged=Bf.prototype.tabsChanged;Bf.prototype.activeChanged=Bf.prototype.activeChanged;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Bf.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],Bf.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Bf.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.vJ.YtPageBehavior),_.N("design:type",Object)],Bf.prototype,"ytPageBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],Bf.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Bf.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Bf.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bf.prototype,"hidden",void 0);
_.t([_.C(),_.N("design:type",Object)],Bf.prototype,"mastheadAdData",void 0);_.t([_.C({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.N("design:type",Object)],Bf.prototype,"alertBannerData",void 0);_.t([_.C({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.N("design:type",Object)],Bf.prototype,"greetingData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],Bf.prototype,"pageSubtype",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.N("design:type",Boolean)],Bf.prototype,"hasMemberHubProfileRenderer",void 0);_.t([_.C({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bf.prototype,"hasSidebar",void 0);_.t([_.C({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bf.prototype,"hasPageHeaderSidebar",void 0);
_.t([_.C({reflectToAttribute:!0,value:!0}),_.N("design:type",Boolean)],Bf.prototype,"roundedContainer",void 0);_.t([_.C({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Bf.prototype,"useUnifiedShowPageLayout",void 0);_.t([_.C({computed:"computeIsConstrainedList(pageSubtype)"}),_.N("design:type",Object)],Bf.prototype,"isConstrainedList",void 0);
_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bf.prototype,"usePlaylistHeaderRenderer",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Bf.prototype,"useOldPlaylistSidebarRenderer",null);_.t([_.C({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.N("design:type",Boolean)],Bf.prototype,"fluidWidth",void 0);_.t([_.C({selector:function(W){return W.ui.scrollAtTop}}),
_.N("design:type",Boolean)],Bf.prototype,"scrollAtTop",void 0);_.t([_.C({selector:_.UI9}),_.N("design:type",Boolean)],Bf.prototype,"tabGesturesIsActive",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bf.prototype,"darkerDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.N("design:type",Boolean)],Bf.prototype,"disableHeaderFluidWidth",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.N("design:type",String)],Bf.prototype,"responsiveSizing",void 0);_.t([_.El("ytd-two-column-browse-results-renderer"),_.N("design:type",HTMLElement)],Bf.prototype,"contents",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],Bf.prototype,"header",void 0);_.t([_.El("ytd-refresh"),_.N("design:type",Object)],Bf.prototype,"refresh",void 0);
_.t([_.m5("active"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"activeChanged",null);_.t([_.m5("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"tabsChanged",null);_.t([_.m5("scrollAtTop"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"scrollAtTopChanged",null);
_.t([_.C(),_.N("design:type",Object)],Bf.prototype,"engagementPanels",void 0);_.t([_.m5("data.panels"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"engagementPanelsChanged",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"onStampFinished",null);
_.t([_.ai("yt-player-attached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Bf.prototype,"onPlayerAttached",null);_.t([_.ai("yt-player-detached"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Element]),_.N("design:returntype")],Bf.prototype,"onPlayerDetached",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bf.prototype,"dataChanged",null);
Bf=_.t([_.G({is:"ytd-browse"})],Bf);_.W0.registerService(_.Wae,Bf);
_.DN();
}catch(e){_._DumpException(e)}
try{
_.rD("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 OX=function(W){if(!W)return"browse";var O=W.page,b=W.url,T,L,h,Z=(T=W.response)==null?void 0:(L=T.responseContext)==null?void 0:(h=L.webResponseContextExtensionData)==null?void 0:h.pageTheme;if(Z)O=Z.toLowerCase().replace(/_/g,"-");else if(O!=="watch"&&O!=="learning_journey_watch"){var a,m;if((O==="browse"||O==="settings")&&((a=W.response)==null?0:(m=a.sidebar)==null?0:m.settingsSidebarRenderer))O="WEB_PAGE_TYPE_SETTINGS";else{var w,A;O==="browse"&&((w=W.response)==null?0:(A=w.metadata)==null?
0:A.channelMetadataRenderer)?O="channel":b&&(O=_.Y1(b)||O)}}return O},oXD=function(){var W=_.GT("yt.aba.att");
return W?W:_.FC.instance!==void 0?_.FC.instance.fGZ.bind(_.FC.instance):null},QWR=function(W,O){var b;
return _.I(function(T){return(b=oXD())?T.return(b(W,O,6E4)):T.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},kT1=function(W,O,b,T,L){O=O===void 0?[]:O;
L=L?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:L}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.iv(W),dialogMessages:O.map(function(h){return _.iv(h)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iv(b),serviceEndpoint:L}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iv(T)}}}}}},sW1=function(W){var O=!!_.xP().queueProxy;
var b,T,L;W=W==null?void 0:(b=W.response)==null?void 0:(T=b.currentVideoEndpoint)==null?void 0:(L=T.watchEndpoint)==null?void 0:L.playlistId;return!(!O&&!W)},B02=function(W,O){var b=_.IT();
if(sW1(W))return b.playlistWatchPageActivation=!0;switch(OX(O)){case "yts-products":return b.productDetailsPageActivation=!0;case "mini_app":return b.miniAppPageActivation=!0;case "playables":return b.playablesDestPageActivation=!0;default:return!1}},r_2=function(W,O,b){for(var T=typeof W==="string"?W.split(""):W,L=W.length-1;L>=0;--L)L in T&&O.call(b,T[L],L,W)},DCD=function(W,O){O=_.AX1(W,O);
O>=0&&_.MP(W,O)},xCk=function(W){return Array.prototype.concat.apply([],arguments)},zhg=function(W){var O=0;
O=O===void 0?0:O;if(!_.pU(W))throw _.lf("uint64");var b=typeof W;switch(O){case 512:switch(b){case "string":return _.ZHX(W);case "bigint":return String((0,_.z1)(64,W));default:return _.hL2(W)}case 1024:switch(b){case "string":return _.IST(W);case "bigint":return _.FU((0,_.z1)(64,W));default:return _.Sv2(W)}case 0:switch(b){case "string":return _.ZHX(W);case "bigint":return _.FU((0,_.z1)(64,W));default:return _.dzX(W)}default:return _.SB(O,"Unknown format requested type for int64")}},CWg=function(W){W!=
null&&(W=W.JSC$6815_value_||"",W=typeof W==="string"?W:new Uint8Array(W));
return W},qCg=function(W){for(var O=_.PD.apply(1,arguments),b=W[0],T=0;T<W.length-1;T++)b+=String(O[T]),b+=W[T+1];
O=document.implementation.createHTMLDocument("");T=O.createElement("style");O.head.appendChild(T);O=T.sheet;O.insertRule(b,0);if(O.cssRules.length===1&&(b=O.cssRules[0],b instanceof CSSStyleRule))return new _.V0(b.cssText.replace(/</g,"\\3C "))},nXN=function(W,O){if(/-[a-z]/.test(O))return null;
if(_.xz1&&W.dataset){if(_.h88()&&!(O in W.dataset))return null;W=W.dataset[O];return W===void 0?null:W}return W.getAttribute("data-"+_.Ek(O))},GT8=function(){var W=fk5;
_.GT("yt.ads.biscotti.getId_")||_.c3("yt.ads.biscotti.getId_",W)},HvP=function(W){_.c3("yt.ads.biscotti.lastId_",W)},$Cg=function(){var W={};
for(_.oe=new tsR(W.handleError===void 0?_.xG:W.handleError,W.logEvent===void 0?_.BZ:W.logEvent);_.QY.length>0;)switch(W=_.QY.shift(),W.type){case "ERROR":_.oe.logError(W.payload);break;case "EVENT":_.oe.logEvent(W.eventType,W.payload)}},VsN=function(W,O,b){return _.DpX(function(T){return b?T.userIdentifier!==void 0&&!W.includes(T.userIdentifier)&&b.includes(T.publicName):T.userIdentifier!==void 0&&!W.includes(T.userIdentifier)},O)},N08=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1)return O=_.eJ("YtIdbMeta hasAnyMeta other"),_.Y(T,_.DpX(function(L){return L.userIdentifier!==void 0&&L.userIdentifier!==O},W),2);
b=T.yieldResult;return T.return(b.length>0)})},ukD=function(W,O){MsN||(MsN=_.sF.addLowPriorityJob(function(){var b,T,L,h,Z;
return _.I(function(a){switch(a.nextAddress){case 1:return _.Y(a,_.Fq(),2);case 2:b=a.yieldResult;if(!b)return a.return();T=!0;_.LI(a,3);return _.Y(a,VsN(W,b,O),5);case 5:L=a.yieldResult;if(!L.length){T=!1;a.jumpTo(6);break}h=L[0];return _.Y(a,_.tL(h.actualName),7);case 7:return _.Y(a,_.Nm(h.actualName,b),6);case 6:_.H3(a,4);break;case 3:Z=_.ID(a),_.kv(Z),T=!1;case 4:_.sF.cancelJob(MsN),MsN=0,T&&ukD(W,O),_.aD(a)}})}))},J_7=function(){var W;
return _.I(function(O){return O.nextAddress==1?_.Y(O,_.Fq(),2):(W=O.yieldResult)?O.return(N08(W)):O.return(!1)})},c_9=function(W){var O=100;
O=O===void 0?500:O;var b,T,L,h,Z,a;return _.I(function(m){return m.nextAddress==1?(b=_.Cv("INNERTUBE_CONTEXT_CLIENT_NAME",0),T=[b,(0,_.WO)()-2592E6],L=[b,(0,_.WO)()],h=IDBKeyRange.bound(T,L),_.Y(m,_.ddX(W),2)):m.nextAddress!=3?(Z=m.yieldResult,a=[],_.Y(m,_.VY(Z,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(w){a.length=0;return _.OF(w.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:h,direction:"prev"},function(A){if(A.getValue()&&a.length<O)return a.push(A.getValue()),
A.delete().then(function(){return A.continue()})})}),3)):m.return(a)})},F31=function(){var W;
return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.Fq(),2);W=O.yieldResult;if(!W||!_.P3()&&!_.e("nwl_init_require_datasync_id_killswitch")||!_.v1X())return O.jumpTo(0);_.o1h=!0;_.g1i.isNwlInitialized=_.o1h;return _.Y(O,_.tqH().awaitInitialization(),0)})},il=function(W,O){_.$dT[W]=!0;
var b=_.jN();b&&b.publish.apply(b,arguments);_.$dT[W]=!1},Wpk=function(){if(_.Pv8()&&!y_g){var W=function(b){b=b.data;
if(b.op==="serializedGelBatch"){var T=_.VlQ.get(b.key);T&&(_.MlO(b.serializedBatch,T.client,T.resolve,T.networklessOptions,T.isIsolated,T.useVSSEndpoint,T.dangerousLogToVisitorSession,T.requestsOutstanding),_.VlQ.delete(b.key))}},O=_.egi();
O&&(O.addEventListener("message",W),O.onerror=function(){_.VlQ.clear()});
y_g=!0}},bl=function(){this.relativeTimeStart_=_.yG()},Oug=function(W,O){W!=null&&this.append.apply(this,arguments)},iu1=function(){return _.zD("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},bu2=function(W,O,b){b=b===void 0?!1:b;
var T,L,h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:_.UT("SOCS",W,34128E3,"youtube.com",!0);if(_.h$)return L=fetch(O,{method:"POST",mode:_.Hb(O),credentials:_.GD(O),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),h=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Hb("/upgrade_visitor_cookie?eom=1"),credentials:_.GD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.Y(m,Promise.all([L,h]).then(function(w){return w[1]}),5);
fetch(O,{method:"POST",mode:_.Hb(O),credentials:_.GD(O),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.Y(m,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Hb("/upgrade_visitor_cookie?eom=1"),credentials:_.GD("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:T=m.yieldResult;m.jumpTo(3);break;case 5:T=Z=m.yieldResult;case 3:if(!T.ok)throw Error("nf");return _.Y(m,T.text(),7);case 7:a=m.yieldResult,
!a.includes('"state_switch":true')&&!b||a.includes("skip_reload_for_test")||window.location.reload(),_.aD(m)}})},jek=function(W){return _.I(function(O){return O.nextAddress==1?_.Y(O,bu2(W.socsCookie,W.savePreferenceUrl,!0),2):O.return()})},TO5=function(W){return _.I(function(O){return O.nextAddress==1?_.Y(O,bu2(W.socsCookie,W.savePreferenceUrl),2):O.return()})},dmD=function(W){W=W.xhr.responseText;
if(!_.LE(W,")]}'"))throw new jc;W=JSON.parse(W.substr(4));if((W.type||1)>1)throw new jc;W=W.id;HvP(W);TS=_.fN(W);Lp2(18E5,2);return W},STg=function(W,O){O=new hqD(O);
HvP("");TS=_.mgU(O);W>0&&Lp2(12E4,W-1);throw O;},Lp2=function(W,O){_.Zp(function(){_.mCZ().then(dmD,function(b){return STg(O,b)}).thenCatch(_.mB)},W)},fk5=function(){var W=_.wUR();
if(W!==void 0)return _.vi(W);TS||(TS=_.mCZ().then(dmD).thenCatch(function(O){return STg(2,O)}));
return TS},ZuU=function(){var W=document;
return _.qP(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(O){return"on"+O.toLowerCase()in W})},IpN=function(W){W.addEventListener("click",function(O){var b=O.target;
b&&b.getAttribute("href")&&(b=b.getAttribute("href"),_.BD(window,b,"_blank"),O.preventDefault(),O.stopImmediatePropagation())})},apk=function(W){var O,b,T,L=(T=(b=((O=W.mainDownloadsListEntity)!=null?O:{})[_.bNQ])==null?void 0:b.refresh)!=null?T:"",h;
W=(h=W.refresh)==null?void 0:h[L];L=W!=null?W:{};return(L==null?0:L.refreshTime)?Number(L==null?void 0:L.refreshTime):0},mmB=function(W,O){var b=_.Ke(W);
return O.every(function(T){var L;T=T==null?void 0:(L=T.playbackDataEntity)==null?void 0:L.key;if(!T)return!1;L=_.Z5(_.dm(T).entityId,"mainVideoEntity");return!!b[L]})},YTB=function(W){W=_.PS(W.entities);
return _.wLQ(W).length},EvN=function(W,O){if(O){var b;
W=(b=_.IJ(W.entities,"downloadQualityPickerEntity",O))!=null?b:void 0}else W=void 0;return W},X38=function(){w3Z||(_.$9=_.y62,w3Z=new ALN);
return w3Z},Umk=function(W){var O=document.getElementsByTagName("ytd-enforcement-message-view-model");
O.length===0||getComputedStyle(O[0]).display==="none"?W(0,"p.h_"):W(1,"p.h_")},lp7=function(){L3=0;
var W=[_.UP(!0)];dI&&_.TU(dI,"yt-window-resized",W)},eqP=function(){L3||(L3=_.sF.addLowPriorityJob(lp7,200))},p3R=function(){hQ=0;
PqD=_.z8$(document);var W=[PqD];dI&&_.TU(dI,"yt-window-scrolled",W)},Rq7=function(){hQ||(hQ=_.sF.addLowPriorityJob(p3R,200))},vvg=function(W){W=W===void 0?null:W;
Kpg.push(_.WZ(window,"resize",eqP));Kpg.push(_.WZ(window,"scroll",Rq7));W&&(dI=W)},ovU=function(){var W={isWide:_.Xq.get("wide","0")==="1"},O=_.Xt();
if(O=O.getFlag(165)||O.getFlag(174))W.theme=_.K_(!0);if(_.mlP()){var b=_.Ru()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";W.systemTheme=b}!O&&_.e("parent_tools_enable_app_settings")&&_.NC(window.location.href).theme!==void 0&&(W.theme=_.K_());if((O=Sc)?!_.PQ.equals(O,W):W)O={currentValue:W},gv5&&(O.timeSinceLastSnapshotSecs=Math.round(((0,_.WO)()-gv5)/1E3)),Sc&&(O.previousValue=Sc),_.BZ("appSettingsCaptured",O),Sc=W,gv5=(0,_.WO)()},QeZ=function(W){_.I(function(O){if(O.nextAddress==1)return _.Y(O,
W.delete("yt-appshell-assets"),2);
_.aD(O)})},kZ2=function(W){return _.$v((0,_.HAH)(),W)},BOg=function(){var W;
_.I(function(O){return O.nextAddress==1?_.Y(O,Ze.getInstance(),2):(W=O.yieldResult)?_.Y(O,seP(W),0):O.jumpTo(0)})},DmN=function(){var W;
_.I(function(O){return O.nextAddress==1?_.Y(O,IX.getInstance(),2):(W=O.yieldResult)?_.Y(O,rL5(W),0):O.jumpTo(0)})},xm7=function(W){QeZ(W);
BOg();DmN()},zq5=function(W){var O,b;
return _.I(function(T){if(T.nextAddress==1)return _.Y(T,_.xl8(W),2);if(O=T.yieldResult){var L;a:{if(O.headers&&(L=O.headers.get("date"))&&(L=Date.parse(L),!isNaN(L))){L=Math.round((0,_.WO)()-L);break a}L=-1}b=L;if(b>-1)return T.return(b)}return T.return(-1)})},CqD=function(){var W=_.i1.caches,O=_.qC("IS_SHELL_LOAD"),b,T;
_.I(function(L){if(L.nextAddress==1)return b=-1,O?_.Y(L,zq5(W),3):(T=_.R5(),b=Math.round((0,_.WO)()-T),L.jumpTo(2));L.nextAddress!=2&&(b=L.yieldResult);b>=0&&b<2147483648&&_.k0({appInstallDataAgeMs:b});_.aD(L)})},qT8=function(W){var O=_.tV(_.i1.location.href),b={};
"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(T){var L=O.JSC$8032_queryData_.getValues(T);if(L==null?0:L.length)b[T]=L});
return _.WQ(W,new Map(Object.entries(b)))},nv7=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},fpg=function(W){if(_.WfX()){var O=Object.keys(window.localStorage);
O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=nv7(b);T===void 0||W.includes(T)||self.localStorage.removeItem(b)}}},GZk=function(){if(!_.WfX())return!1;
var W=_.eJ(),O=Object.keys(window.localStorage);O=_.S(O);for(var b=O.next();!b.done;b=O.next())if(b=nv7(b.value),b!==void 0&&b!==W)return!0;return!1},Hu1=function(W){return _.NW("NotificationsDisabled",W)},tJ8=function(){return Notification.permission!="granted"?Promise.resolve():_.ld1().then(function(W){return W?W.pushManager.getSubscription().then(function(O){if(O)return Promise.resolve();
O={userVisibleOnly:!0,applicationServerKey:_.w1("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return W.pushManager.subscribe(O).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},$mP=function(W){return _.ld1().then(function(O){if(!O||!O.active)return Promise.reject(new _.pu("serviceworker.postMessage",W,O));
try{return O.active.postMessage(W),Promise.resolve()}catch(b){return Promise.reject(b)}})},VJZ=function(){$mP({type:"notifications_register",
data:_.Cv("ID_TOKEN")})},NO7=function(){if(!_.qC("LOGGED_IN"))return Promise.resolve(!1);
var W=_.dO("service_worker_push_force_notification_prompt_tag");return W?_.u0("PromptTags").then(function(O){if(!O)return!0;var b=[];try{b=JSON.parse(O)}catch(T){return!1}return b&&b.indexOf(W)==-1}):Promise.resolve(!1)},MJZ=function(){var W=_.Lu("service_worker_push_prompt_delay_microseconds");
return W?_.u0("PromptTime").then(function(O){return Promise.resolve(Date.now()-W>(O||0))}):Promise.resolve(!0)},uqU=function(){var W=_.Lu("service_worker_push_logged_out_prompt_watches");
return W==-1?Promise.resolve(!1):_.u0("WatchCount").then(function(O){return O>=W})},JL5=function(){var W=_.Ox(document,"yt-push-prompt-modal-bg");
W&&_.Xu(W)},cLZ=function(){return _.Lu("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.u0("PromptCount").then(function(W){W||(W=0);
return Promise.resolve(W<_.Lu("service_worker_push_prompt_cap"))})},FpD=function(W){return _.qC("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.qC("LOGGED_IN")&&(W===void 0?0:W)?NO7().then(function(O){if(O)return!0;
O=[cLZ(),MJZ()];_.qC("LOGGED_IN")||O.push(uqU());return Promise.all(O).then(function(b){return b.every(function(T){return T})})}):Promise.resolve(!1)},yLP=function(){_.u0("PromptCount").then(function(W){return _.NW("PromptCount",W+1)}).then(function(){return _.NW("PromptTime",Date.now())}).then(function(){var W=_.dO("service_worker_push_force_notification_prompt_tag");
if(W)return _.u0("PromptTags").then(function(O){var b=[];if(O)try{b=JSON.parse(O)}catch(T){return!1}b||(b=[]);b.push(W);return _.NW("PromptTags",JSON.stringify(b))})})},O92=function(){WYD||JL5()},i9k=function(W){W.style.zIndex=2147483648;
W.style.pointerEvents="auto";W.style.backgroundColor="rgba(0, 0, 0, 0.6)";W.style.width="100%";W.style.height="100vh";W.style.position="absolute";W.style.top="0";W.style.left="0";W.style.border="none"},b97=function(){var W=_.Ox(document,"yt-push-prompt-modal-bg");
WYD=_.e("service_worker_push_prompt_modal_ignore_click");W?i9k(W):(W=_.em("div",{id:"yt-push-prompt-modal-bg"}),i9k(W),document.body.appendChild(W),_.frq(document,"click",O92))},jaP=function(){var W=arguments;
_.e("service_worker_push_prompt_modal_enable")&&b97();return Notification.requestPermission().then(function(O){JL5();var b=document.getElementById("ticker");b&&(b.className=b.classList.remove("show"));if(O=="granted")return tJ8().then(function(){Hu1(!1);VJZ();return Promise.resolve(!0)});
O=="denied"&&VJZ();return Promise.resolve(!1)}).catch(function(){JL5();
return Promise.reject.apply(Promise,_.PG(W))})},Tvk=function(W){W=W===void 0?!1:W;
var O=_.XPX().client;if(O&&O.browserVersion){var b=O.browserVersion,T=O.browserName=="CHROME"&&_.w8(b,"50.0.0")<0;O=O.browserName=="OPERA"&&_.w8(b,"42.0.0")<0;if(T||O)return Promise.resolve()}return _.pD2().then(function(L){if(!L)return Promise.resolve();L=tJ8().then(function(){return $mP({type:"notifications_check_registration",data:_.Cv("ID_TOKEN")})});
return Notification.permission!="default"?L.catch(function(){}):L.then(function(){return FpD(W)}).then(function(h){if(h)return yLP(),jaP().then(function(){})}).catch(function(){})})},LY7=function(W){return _.eD1(W)?Tvk():Promise.resolve()},d8g=function(W){var O=W.installing||W.waiting;
return W.active||!O?Promise.resolve(W):new Promise(function(b){var T=function(L){L=L.target;if(L.state==="activated"||L.state==="redundant")O.removeEventListener("statechange",T),b(W)};
O.addEventListener("statechange",T)})},hAZ=function(){var W=new _.oH2("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.Id(W,{mainAppWeb:_.Hh()});var O=_.LGS;_.e("service_worker_forward_exp_params")&&(O=qT8(O));try{var b=_.U52(O).catch(function(){_.ad(W,"FAILURE");return new Promise(function(){})});
_.e("service_worker_push_enabled")&&b.then(function(T){_.ad(W,"SUCCESS");return T}).then(d8g).then(LY7)}catch(T){if(_.ad(W,"FAILURE"),T.name!=="SecurityError")throw T;
}},SFP=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&hAZ()},Z98=function(W,O){var b={};
O&&(b.serializedYpcFamilyCreateLoggingParams=O);_.BZ(W,b);_.re()},IfB=function(W,O){var b={};
b.serializedYpcRefundFlowLoggingParams=O;W&&(b.eventType=W);_.BZ("ypcRefundFlowEvent",b);_.re()},afU=function(W){W&&_.eVQ("transactionFlowSucceeded",W)},m8U=function(W){W&&_.kC("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},YFB=function(W){var O,b,T,L,h,Z,a;
_.I(function(m){if(m.nextAddress==1)return _.Y(m,_.b$q(),2);if(m.nextAddress!=3){if(!m.yieldResult)return m.return(!1);O=[];return _.Y(m,_.hP.keys(),3)}b=m.yieldResult;T=_.S(b);for(L=T.next();!L.done;L=T.next())h=L.value,Z=_.O$P(h),a=Z.datasyncId,!a||W.includes(a)||O.push(_.hP.delete(h));return m.return(Promise.all(O).then(function(w){return w.some(function(A){return A})}))})},EOD=function(){var W,O,b,T,L,h,Z;
return _.I(function(a){if(a.nextAddress==1)return _.Y(a,_.b$q(),2);if(a.nextAddress!=3){if(!a.yieldResult)return a.return(!1);W=_.eJ("cache contains other");return _.Y(a,_.hP.keys(),3)}O=a.yieldResult;b=_.S(O);for(T=b.next();!T.done;T=b.next())if(L=T.value,h=_.O$P(L),(Z=h.datasyncId)&&Z!==W)return a.return(!0);return a.return(!1)})},wO9=function(){var W=_.iq().resolve(_.OT(_.GVz));
return W?W.getCurrentTime():0},ASk=function(){var W,O,b,T,L,h,Z,a,m,w,A,X,l,p;
return _.I(function(K){switch(K.nextAddress){case 1:W={},O=_.VhQ(),b=_.S(Object.entries(O)),T=b.next();case 4:if(T.done){K.jumpTo(3);break}L=T.value;h=_.S(L);Z=h.next().value;a=h.next().value;m=Z;w=a;if(!w){K.jumpTo(5);break}return _.Y(K,w(),8);case 8:W[m]=K.yieldResult;case 5:T=b.next();K.jumpTo(4);break;case 2:A=_.S(void 0),X=A.next();case 9:if(X.done){K.jumpTo(3);break}l=X.value;p=O[l];if(!p){K.jumpTo(10);break}return _.Y(K,p(),13);case 13:W[l]=K.yieldResult;case 10:X=A.next();K.jumpTo(9);break;
case 3:return K.return(W)}})},XO1=function(){var W;
_.I(function(O){if(O.nextAddress==1)return _.Y(O,ASk(),2);W=O.yieldResult;return _.Y(O,navigator.clipboard.writeText(JSON.stringify(W,null,2)),0)})},U89=function(W,O){return _.IJ(W.entities,"superThanksSelectedTierEntity",O)},lf7=function(W){var O;
return(O=W.sharedUi)==null?void 0:O.currentPageType},eA9=function(W,O){return{popup:{searchSuggestionReportDialog:{searchQuery:W,
title:_.EO("SBOX_INAPPROPRIATE_TITLE"),suggestions:O,categoryLabel:_.EO("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.EO("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.EO("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.EO("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.EO("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.EO("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.EO("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.EO("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.EO("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.EO("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},PPP=function(W){var O,b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M;
return _.I(function(V){switch(V.nextAddress){case 1:return _.Y(V,_.Y9(),2);case 2:return(O=V.yieldResult)?_.Y(V,_.B$1(O),3):V.return();case 3:b=V.yieldResult;if(!b)return V.return();L=((T=b.offlineVideos)==null?void 0:T.length)||0;Z=((h=b.offlinePlaylists)==null?void 0:h.length)||0;if(L===0&&Z===0)return V.return();a=0;if(b.offlineVideos)for(m=_.S(b.offlineVideos),w=m.next();!w.done;w=m.next())A=w.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===A.videoState&&(a+=1);W.offline_videos_count=L.toString();_.e("kevlar_log_offline_current_network_type_ks")||
(W.offline_current_network_type=(X=_.hHX())!=null?X:"CONN_INVALID");_.e("kevlar_log_updated_time_for_smart_downloads")&&(l=_.uv().getState().entities,p=_.oJ(l),K=apk(l),W.offline_smart_downloads_last_sync_time_ms=p.toString(),W.offline_smart_downloads_next_sync_time_ms=K.toString());W.offline_videos_playable=a.toString();W.offline_playlists_count=Z.toString();if(!_.e("woffle_used_state_report")){V.jumpTo(4);break}b.offlineVideos&&(k=b.offlineVideos.reduce(function(jQ,y){y.downloadedBytes&&(jQ+=Number(y.downloadedBytes));
return jQ},0).toString())&&(W.offline_used_disk_space_bytes=k);
if(!((r=navigator)==null?0:(q=r.storage)==null?0:q.estimate)){V.jumpTo(4);break}return _.Y(V,navigator.storage.estimate(),6);case 6:f=V.yieldResult,W.offline_free_disk_space_bytes=(((M=f)==null?void 0:M.quota)||0).toString();case 4:W.offline_client_state=JSON.stringify(b),_.aD(V)}})},pOZ=function(W){W=W.match(/(.*)::.*::.*/);
if(W!==null)return W[1]},RA8=function(W){if(_.Dtq()){var O=Object.keys(window.sessionStorage);
O=_.S(O);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=pOZ(b);T===void 0||W.includes(T)||self.sessionStorage.removeItem(b)}}},KYk=function(){if(!_.Dtq())return!1;
var W=_.eJ(),O=Object.keys(window.sessionStorage);O=_.S(O);for(var b=O.next();!b.done;b=O.next())if(b=pOZ(b.value),b!==void 0&&b!==W)return!0;return!1},aX=function(W,O,b){(_.e("desktop_keyboard_shortcut_usage_log")||b&&_.e("web_shorts_keyboard_shortcut_usage_log"))&&(O?_.FQ.get(W):_.cr.get(W))&&(W=O?_.WE.get(W):_.yi.get(W))&&_.Vw(_.Bb(),W)},vO7=function(W){return W.visibility!=="hidden"&&W.display!=="none"},gON=function(W){if(!W.matches("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])"))return-1;
W=W.getAttribute("tabindex")||"0";return Number(W)},oOk=function(W){return W.some(function(O){return gON(O)>0})},Qak=function(W){if(W.textContent)return!0;
if(W instanceof HTMLInputElement){if(!W.labels)return!1;W=_.S(W.labels);for(var O=W.next();!O.done;O=W.next())if(O.value.textContent)return!0}return!1},k7g=function(W){return W.sort(function(O,b){return gON(b)-gON(O)})},sag=function(W){W=Array.from(W.querySelectorAll("a[href],a[tabindex],area[href],iframe,[tabindex],[contentEditable],summary,details:not(:has(summary)),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),object:not([disabled])")).filter(function(O){return(vO7(O.style)?
vO7(window.getComputedStyle(O)):!1)&&Qak(O)});
return oOk(W)?k7g(W):W},BvU=function(W){W=sag(W);
W.length>0&&W[0].focus()},rSD=function(W,O){O.stack&&(W.stack+="\n"+O.stack);
return W},zA7=function(W){var O=mW(W,"Content-Type");
if(!O)return null;O=O.toLowerCase();if(O.startsWith("application/json"))return O.startsWith("application/json+protobuf")?new D87:new _.WL;if(O.startsWith("application/x-protobuf")){W=mW(W,"Content-Transfer-Encoding");if(!W)return new Ye;if(W.toLowerCase()=="base64")return new x82}return null},VqR=function(W,O,b,T){var L=new CP5(function(a,m){return qFZ.has(m)?a.sentinel==="gal"&&a.event!==void 0:!1},function(a){a.event?(a=nOR(a.event),a=!a||ffB(T,a)?!0:_.E3(W.lastEvent,EX,2,wI)?!_.E3(a,AQ,1,wI)&&
!_.E3(a,EX,2,wI):!_.E3(a,AQ,1,wI)&&!_.E3(a,EX,3,wI)):a=!0;
return a});
b=_.WQ(W.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",G7B(b)]]));if(W.nestedOrigins!==void 0)for(var h=_.S(W.nestedOrigins),Z=h.next();!Z.done;Z=h.next())b=_.WQ(b,new Map([["origin",Z.value]]));return H9N(L,b,O).then(function(a){a=tqU(a.event);if(_.E3(a,AQ,1,wI)){var m,w=(m=_.ks(a,AQ,1,wI))==null?void 0:_.gQ(m,2);w&&T.JSC$17095_logErrorEvent($8k(w));m=_.ks(a,AQ,1,wI);_.gQ(m,2)===4?(a=_.ks(a,AQ,1,wI),a={statusCode:11,statusMessage:_.vk(a,
3)}):(a=_.ks(a,AQ,1,wI),a={statusCode:12,statusMessage:_.vk(a,3)});return a}_.E3(a,EX,3,wI)?(a=_.ks(a,EX,3,wI),a={statusCode:1,consentLanguageKeys:_.vk(a,2)}):a={statusCode:1};return a}).catch(function(a){return a.errorCode!==void 0?{statusCode:a.errorCode,
statusMessage:a.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},JSg=function(W){var O={};
if(W===void 0||W===null)return O;W.getToken()!==void 0&&NvP(W.getToken())&&NvP(W.getToken()).length>0&&(O.scopes=new Set(NvP(W.getToken())));W.getToken()!==void 0&&MqR(W.getToken())&&MqR(W.getToken()).length>0&&(O.capabilities=new Set(MqR(W.getToken())));_.vk(W,3)!==void 0&&(O.consistencyKey=_.vk(W,3));W.getName()!==void 0&&W.getName()!==""&&(O.linkName=W.getName());_.Ys(W,us8,4)&&(W=_.bP(W,us8,4),W=Object.assign({},_.vk(W,1)&&{userId:_.vk(W,1)},_.vk(W,2)&&{displayName:_.vk(W,2)},_.vk(W,3)&&{email:_.vk(W,
3)},_.vk(W,5)&&{username:_.vk(W,5)},_.vk(W,4)&&{profilePicture:_.vk(W,4)}),O.profile=W);return O},cS7=function(W,O){var b=W.flowParams;
return{serviceId:b.serviceId,sessionId:b.sessionId,currentFlow:W.currentFlow,googleScopesString:O,linkingSessionSerialized:W.session.serialize(),consentLanguageKeys:b.consentLanguageKeys,callerState:W.callerState,dynamicUrlParameters:b.dynamicUrlParameters,partnerConfigMinReadTimestamp:b.partnerConfigMinReadTimestamp}},iB8=function(W){var O=W.googleScopes!==void 0?Array.from(W.googleScopes).join(","):"";
FYN(cS7(W,O));O=ySD(W);return O===null?Promise.resolve(WJ8):O.start().then(function(b){var T,L=(T=b.link)==null?void 0:T.consistencyKey;return b.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&L!==void 0?(T=W.flowParams,OBR(T.serviceId,T.sessionId,W.googleScopes,L,T.galService,W.config,b)):b})},bBk=function(W){var O=ySD(W);
return O===null?Promise.resolve(XP({statusCode:7,statusMessage:"Failed to create flow object"},W.callerState)):O.complete().then(function(b){var T,L=(T=b.link)==null?void 0:T.consistencyKey;return b.statusCode===1&&W.googleScopes!==void 0&&W.googleScopes.size>0&&L!==void 0?(T=W.flowParams,OBR(T.serviceId,T.sessionId,W.googleScopes,L,T.galService,W.config,b)):XP(b,W.callerState)},function(b){return XP({statusCode:12,
statusMessage:"Failed to complete the flow: "+b.message},W.callerState)})},OBR=function(W,O,b,T,L,h,Z){return j1g(L,{serviceId:W,
sessionId:O,googleScopes:b,consistencyKey:T}).then(function(){return Z},function(a){return L.deleteLink({serviceId:W,
sessionId:O,accountLinkingEntryPoint:h.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+a.message}},function(m){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+m.message}})})},ySD=function(W){switch(W.currentFlow){case 1:var O=W.flowParams;
W=_.bP(W.session,Te1,1);return UX.createOAuthFlow(O,W);case 2:case 3:return O=W.flowParams,W=_.bP(W.session,LJR,6),ll.createStreamlinedFlow(O,W);default:return null}},dJB=function(W,O){W===2&&(W=3);
var b=0;ec.indexOf(W)!==-1&&(b=ec.indexOf(W)+1);for(W=b;W<ec.length;W++)if(O.has(ec[W]))return ec[W]},ZB2=function(W){var O=W.serviceId;
var b=W.sessionId;var T=W.config;var L=W.galService;var h=W.capabilities;var Z=W.scopes;var a=W.loginHint;var m=W.callerState;var w=W.consentLanguageKeys;var A=W.linkName;var X=W.dynamicUrlParameters;var l=W.partnerConfigMinReadTimestamp;W=T.dataUsageNoticeConfig?T.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return L.startLinkingSession({serviceId:O,sessionId:b,capabilities:h,scopes:Z,loginHint:a,callerState:m,supportedFlows:hW1(T.supportedFlows),completionUrl:T.completionUrl,accountLinkingEntryPoint:T.accountLinkingEntryPoint,
consentLanguageKeys:w,dataUsageNoticeConfig:W,linkName:A,dynamicUrlParameters:X,partnerConfigMinReadTimestamp:l}).then(function(p){return new SmR(O,b,T,L,p,void 0,m,w,X,l)})},EGN=function(W,O,b){a:{var T=new ItZ;
if(T.storage!==null)try{var L=T.storage.get("SAVED_SESSION");if(L===void 0){var h=null;break a}if(L.serviceId===W){h=L;break a}}catch(Z){}h=null}if(h===null)return Promise.resolve({statusCode:2});atU(W);T=mJ1(h.linkingSessionSerialized);return YmN(new SmR(W,h.sessionId,O,b,T,h.googleScopesString!==""&&h.googleScopesString!==void 0?new Set(h.googleScopesString.split(",")):void 0,h.callerState,h.consentLanguageKeys,h.dynamicUrlParameters,h.partnerConfigMinReadTimestamp),h.currentFlow,h.consentLanguageKeys)},
FYN=function(W){var O=new ItZ;
O.storage!==null&&O.storage.set("SAVED_SESSION",W)},atU=function(W){var O=new ItZ;
if(O.storage!==null){var b=O.storage.get("SAVED_SESSION");b!==void 0&&b.serviceId===W&&O.storage.remove("SAVED_SESSION")}},hW1=function(W){var O=new Set;
W=_.S(W);for(var b=W.next();!b.done;b=W.next())b=b.value,b!==1&&wZN.has(b)&&O.add(wZN.get(b));return O},XP=function(W,O){O!==void 0&&(W.callerState=O);
return W},A8B=function(W){switch(W){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},lt1=function(){var W={timeout:5E3};
W=W===void 0?{}:W;return XZk!=null?XZk:XZk=UJZ(W)},eW5=function(){return new Promise(function(W,O){window.gapi.load("client",{callback:W,
onerror:O})})},UJZ=function(W){W=W===void 0?{}:W;
var O;return _.I(function(b){if(b.nextAddress==1){if((O=window.gapi)&&O.client&&O.client.load)b=b.return(O);else{var T=_.SL("https://apis.google.com/js/api.js");b=_.Y(b,_.KW(T,W),2)}return b}if(b.nextAddress!=3){O=window.gapi;if(!O)throw Error("Yj");return O.client&&O.client.load?b.jumpTo(3):_.Y(b,eW5(),3)}return b.return(O)})},pZ5=function(W,O){O=O===void 0?0:O;
var b=W.auth2.getAuthInstance().currentUser.get(),T=b.getAuthResponse(!0);if(T&&T.expires_at-Date.now()<O){if(PyN.has(W))return PyN.get(W);O=Promise.resolve(b.reloadAuthResponse()).finally(function(){PyN.delete(W)});
PyN.set(W,O);return O}return Promise.resolve()},RWg=function(W,O){var b;
return W.client.init({apiKey:O.apiKey,clientId:O.clientId,scope:O.scope,discoveryDocs:O.discoveryDocs,hostedDomain:O.hostedDomain,fetchBasicProfile:(b=O.fetchBasicProfile)!=null?b:!0})},KJk=function(W){if(W.queryParams!=null){var O={},b;
for(b in W.queryParams)W.queryParams[b]!==void 0&&(O[b]=W.queryParams[b]);W.queryParams=O}},oG5=function(W){return new vGB(W,new gGg(W))},s1g=function(W,O){O=O===void 0?!1:O;
var b=document.createElement("div");W&&(b.style.transform="scaleX(-1)");b.style.backgroundColor=O?"rgba(138,180,248,.24)":"#e8f0fe";b.style.height="4px";b.style.overflow="hidden";b.style.position="absolute";b.style.top="0";b.style.width="100%";b.style.zIndex="1500";b.setAttribute("aria-label","Loading");b.setAttribute("aria-live","polite");W=document.createElement("style");W.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
b.appendChild(W);W=Q15();W.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";W.style.left="-145.166611%";var T=k59(O);T.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";W.appendChild(T);b.appendChild(W);W=Q15();W.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";W.style.left="-54.888891%";O=k59(O);O.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
W.appendChild(O);b.appendChild(W);return b},Q15=function(){var W=document.createElement("div");
W.style.height="100%";W.style.position="absolute";W.style.transformOrigin="top left";W.style.width="100%";return W},k59=function(W){var O=document.createElement("span");
O.style.borderTop=W?"4px solid #669df6":"4px solid #4285f4";O.style.display="inline-block";O.style.position="absolute";O.style.width="100%";return O},Be8=function(W){return W==null?void 0:_.HHw(W).valueOf()},zWP=function(W){var O=document.body,b=!1,T=function(){b||(b=!0,r8U(L,h),setTimeout(function(){O.removeChild(h);
O.removeChild(L)},150))},L=DJ5(W,getComputedStyle(O).direction==="rtl",T),h=xJ1(T);
r8U(L,h);O.appendChild(h);O.appendChild(L);window.requestAnimationFrame(function(){h.style.opacity="1";L.style.opacity="1";L.style.transform="translate(-50%, -50%) scale(1)";L.children[0].focus()})},DJ5=function(W,O,b){var T=document.createElement("div");
T.style.position="fixed";T.style.alignItems="center";T.style.backgroundColor=W?"rgb(32, 33, 36)":"white";T.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";T.style.display="flex";T.style.flexDirection="column";T.style.justifyContent="center";T.style.left="50%";T.style.top="50%";T.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";T.style.zIndex="2002";document.body.clientWidth>=660?(T.style.borderRadius="8px",T.style.minHeight="220px",
T.style.maxHeight="90%",T.style.maxWidth="90%",T.style.minWidth="540px"):(T.style.height="100%",T.style.width="100%");T.setAttribute("aria-label","Error");T.setAttribute("aria-modal","true");T.setAttribute("role","alertdialog");T.addEventListener("keydown",function(h){h.key==="Escape"&&b()});
O=Cy9(W,O,b);T.appendChild(qm2(O));T.appendChild(O);var L=document.createElement("img");L.src=W?"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";L.style.height="72px";L.style.width="72px";L.style.color="#9aa0a6";L.setAttribute("alt","");T.appendChild(L);L=document.createElement("h1");L.textContent="Something went wrong.  Try again.";
L.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";L.style.lineHeight="24px";L.style.fontSize="16px";L.style.textAlign="center";L.style.letterSpacing="0.1px";L.style.color=W?"rgb(232,234,237)":"#3c4043";T.appendChild(L);T.appendChild(qm2(O));return T},Cy9=function(W,O,b){var T=document.createElement("button");
T.style.backgroundColor="transparent";T.style.border="none";T.style.borderRadius="50%";T.style.cursor="pointer";T.style.outline="none";T.style.padding="12px";T.setAttribute("aria-label","Close dialog");T.style.position="absolute";T.style.top="0";O?T.style.right="0":T.style.left="0";T.addEventListener("focus",function(){T.style.backgroundColor=W?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
T.addEventListener("blur",function(){T.style.backgroundColor="transparent"});
T.addEventListener("mouseenter",function(){T.style.backgroundColor=W?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
T.addEventListener("mouseleave",function(){T.style.backgroundColor="transparent"});
T.addEventListener("click",b);T.addEventListener("keydown",function(L){L.key!=="Enter"&&L.key!=="Space"||b()});
O=document.createElement("img");O.src=W?"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";O.style.display="block";O.style.height="24px";O.style.width="24px";O.setAttribute("alt","");T.appendChild(O);return T},qm2=function(W){var O=document.createElement("div");
O.setAttribute("tabindex","0");O.setAttribute("aria-hidden","true");O.addEventListener("focus",function(){return void W.focus()});
return O},xJ1=function(W){var O=document.createElement("div");
O.style.backgroundColor="rgba(32,33,36,0.6)";O.style.bottom="0";O.style.left="0";O.style.position="fixed";O.style.right="0";O.style.top="0";O.style.transition=" opacity 150 ms linear";O.style.zIndex="2001";O.addEventListener("click",W);return O},r8U=function(W,O){O.style.opacity="0";
W.style.opacity="0";W.style.transform="translate(-50%, -50%) scale(0.8)"},nG8=function(W,O){W.sandbox&&W.sandbox.add&&(W.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),W.sandbox.add("allow-downloads"));
W.src=O},PE=function(W){ft9.call(this,W)},p3=function(W,O){O=O===void 0?!1:O;
this.parsedImageUrl_=null;W instanceof G5D||(HB5==void 0&&(HB5=new tN2),W=HB5.parse(W.toString(),O));W=this.parsedImageUrl_=W;W.JSC$17326_parsedOptions_==void 0&&((O=W.getOptions())||(O=""),W.JSC$17326_parsedOptions_=(new $Jg).parse(O));ft9.call(this,W.JSC$17326_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;W=this.parsedImageUrl_;O=W.uri_.JSC$8032_port_;this.JSC$17328_domain_=W.uri_.JSC$8032_domain_+(O?":"+O:"");this.JSC$17328_query_=this.parsedImageUrl_.uri_.JSC$8032_queryData_.toString()},
VN9=function(W){this.mode=4;
this.data=W;this.parsedData=[];W=0;for(var O=this.data.length;W<O;W++){var b=[],T=this.data.charCodeAt(W);T>65536?(b[0]=240|(T&1835008)>>>18,b[1]=128|(T&258048)>>>12,b[2]=128|(T&4032)>>>6,b[3]=128|T&63):T>2048?(b[0]=224|(T&61440)>>>12,b[1]=128|(T&4032)>>>6,b[2]=128|T&63):T>128?(b[0]=192|(T&1984)>>>6,b[1]=128|T&63):b[0]=T;this.parsedData.push(b)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),
this.parsedData.unshift(239))},Ne7=function(W){this.typeNumber=0;
this.errorCorrectLevel=W===void 0?2:W;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},RX=function(W,O){if(W.length==void 0)throw Error("sk`"+W.length+"`"+O);
for(var b=0;b<W.length&&W[b]==0;)b++;this.num=Array(W.length-b+O);for(O=0;O<W.length-b;O++)this.num[O]=W[O+b]},MNZ=function(W,O){this.totalCount=W;
this.dataCount=O},u0U=function(){this.buffer=[];
this.length=0},J82=function(){var W=!1;
if(_.ai8()){W=_.AX();var O="";_.ETh()?(O=/Windows (?:NT|Phone) ([0-9.]+)/,O=(W=O.exec(W))?W[1]:"0.0"):_.zX()?(O=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,O=(W=O.exec(W))&&W[1].replace(/_/g,".")):_.YeX()?(O=/Mac OS X ([0-9_.]+)/,O=(W=O.exec(W))?W[1].replace(/_/g,"."):"10"):_.mX(_.AX(),"KaiOS")?(O=/(?:KaiOS)\/(\S+)/i,O=(W=O.exec(W))&&W[1]):_.ai8()?(O=/Android\s+([^\);]+)(\)|;)/,O=(W=O.exec(W))&&W[1]):_.w2T()&&(O=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,O=(W=O.exec(W))&&W[1]);W=O||""}return W},iP8=function(W,
O){this.JSC$17351__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(O)for(var b in O)this.JSC$17351__htOption[b]=O[b];this.JSC$17351__htOption.useSVG&&(c88=FJ5);this.JSC$17351__android=J82();this.JSC$17351__el=W;this._oQRCode=null;this._oDrawing=new c88(this.JSC$17351__el,this.JSC$17351__htOption);this.JSC$17351__htOption.text&&(W=this.JSC$17351__htOption.text,this._oQRCode=new Ne7(this.JSC$17351__htOption.correctLevel),y85(this._oQRCode,W),O=this._oQRCode,WA1(O,!1,OP7(O)),this.JSC$17351__el.title=
W,this._oDrawing.draw(this._oQRCode),this.makeImage())},bP8=function(W,O,b,T,L){W.save();
var h=new Path2D;h.roundRect(O,b,T*7,T*7,T*2);h.roundRect(O+T,b+T,T*5,T*5,T*1.3);h.roundRect(O+2*T,b+2*T,T*3,T*3,T);W.clip(h,"evenodd");W.fillStyle=L;W.fillRect(0,0,W.canvas.width,W.canvas.height);W.restore()},K3=function(W,O){if(typeof W!=="function")throw Error("vk");
return _.i1.setTimeout(function(){W()},O)},vE=function(){},T3D=function(W,O,b,T,L){(new vE).debug("TestLoadImageWithRetries: "+L);
if(T==0)b(!1);else{var h=L||0;T--;j29(W,O,function(Z){Z?b(!0):_.i1.setTimeout(function(){T3D(W,O,b,T,h)},h)})}},j29=function(W,O,b){var T=new vE;
T.debug("TestLoadImage: loading "+W);var L=new Image;L.onload=function(){try{T.debug("TestLoadImage: loaded"),LA9(L),b(!0)}catch(h){}};
L.onerror=function(){try{T.debug("TestLoadImage: error"),LA9(L),b(!1)}catch(h){}};
L.onabort=function(){try{T.debug("TestLoadImage: abort"),LA9(L),b(!1)}catch(h){}};
L.ontimeout=function(){try{T.debug("TestLoadImage: timeout"),LA9(L),b(!1)}catch(h){}};
_.i1.setTimeout(function(){if(L.ontimeout)L.ontimeout()},O);
L.src=W},LA9=function(W){W.onload=null;
W.onerror=null;W.onabort=null;W.ontimeout=null},dyZ=function(){this.front_=[];
this.back_=[]},h_k=function(W,O){_.R8.call(this);
this.delay_=new _.v5(this.JSC$17477_onTick_,0,this);_.a8(this,this.delay_);this.JSC$17475_interval_=5E3;this.nextTickTime_=0;if(typeof W==="function")O&&(W=(0,_.K5)(W,O));else if(W&&typeof W.handleEvent==="function")W=(0,_.K5)(W.handleEvent,W);else throw Error("Ca");this.JSC$17477_listener_=W},gI=function(W,O,b,T,L,h,Z,a,m,w,A,X,l,p){b=b===void 0?!1:b;
T=T===void 0?function(){return""}:T;
L=L===void 0?!1:L;h=h===void 0?!1:h;Z=Z===void 0?!1:Z;a=a===void 0?function(){return _.ZM({})}:a;
m=m===void 0?!1:m;A=A===void 0?!1:A;X=X===void 0?!1:X;l=l===void 0?!1:l;p=p===void 0?!1:p;this.JSC$17478_pathPrefix_=W;this.defaultQueryParams_=O;this.pubsub_=new _.wO;this.reconnectTimer_=new h_k(this.safeReconnect_,this);this.JSC$17478_channel_=null;this.JSC$17478_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17478_pendingMessages_=[];this.enableAsyncTest_=b;this.JSC$17478_getXsrfToken_=T;this.useAsyncBrowserChannelHandler_=h;this.getAuthorizationHeader_=
a;this.getAuthorizationHeaderSync_=w;this.enableCachedUpdateAuthorizationHeader_=Z;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.ZM();this.enableLoungeTokenRefresh_=L;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=m;this.disableMdxAuthForNonPlaybackMessages_=A;this.disableMdxAuthForAdMessages_=X;this.enableMdxAuthForConnectionOnly_=l;this.disableMdxAuthForShortsMessages_=p;this.JSC$17478_channelOpenedCounter=new S05;this.JSC$17478_channelClosedCounter=new ZP2;this.channelMessageSentCounter=
new IF5;this.JSC$17478_channelMessageReceivedCounter=new aF1;this.JSC$17478_channelErrorCounter=new myR;this.pendingMapsOnClosedCounter=new Y0B;this.undeliveredMapsOnClosedCounter=new EF1},oX=function(W){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;W=W||document.location.href;var O=Number(_.J_(W)[4]||null)||"";O&&(this.port=":"+O);this.domain=_.cU(W)||"";W=_.AX();W.search("MSIE")>=0&&_.w8(W.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},QD=function(W){W=W||{};
this.name=W.name||"";this.id=W.id||W.screenId||"";this.token=W.token||W.loungeToken||"";this.uuid=W.uuid||W.dialId||"";this.idType=W.screenIdType||"normal"},wBk=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(W){var O=Math.random()*16|0;
return(W=="x"?O:O&3|8).toString(16)})},AqP=function(W){return _.RG(W,function(O){return{key:O.id,
name:O.name}})},XB5=function(W,O){return _.qP(W,function(b){return b||O?!b!=!O?!1:b.id==O.id:!0})},sX=function(W,O){return _.qP(W,function(b){return ke(b,O)})},pBk=function(){var W=Uy1(),O=lF2();
if(e_5()){var b=W,T=_.e8e(b,O);T<0&&_.li2(b,-(T+1),0,O)}W=POU(W);if(W.length==0)try{_.js2("remote_sid")}catch(L){}else try{_.UT("remote_sid",W.join(","),-1)}catch(L){}},Uy1=function(){var W=_.Tz("yt-remote-connected-devices")||[];
W.sort(_.a7);return W},POU=function(W){if(W.length==0)return[];
var O=W[0].indexOf("#"),b=O==-1?W[0]:W[0].substring(0,O);return _.RG(W,function(T,L){return L==0?T:T.substring(b.length)})},R_R=function(W){_.ju("yt-remote-connected-devices",W,86400)},lF2=function(){if(KAZ)return KAZ;
var W=_.Tz("yt-remote-device-id");W||(W=wBk(),_.ju("yt-remote-device-id",W,31536E3));for(var O=Uy1(),b=1,T=W;_.Vh(O,T);)b++,T=W+"#"+b;return KAZ=T},vFR=function(){return _.Tz("yt-remote-session-browser-channel")},e_5=function(){return _.Tz("yt-remote-session-screen-id")},Q2g=function(W){W.length>5&&(W=W.slice(W.length-5));
var O=_.RG(gFP(),function(T){return T.loungeToken}),b=_.RG(W,function(T){return T.loungeToken});
_.cWh(b,function(T){return!_.Vh(O,T)})&&oF9();
_.ju("yt-remote-local-screens",W,31536E3)},gFP=function(){return _.Tz("yt-remote-local-screens")||[]},oF9=function(){_.ju("yt-remote-lounge-token-expiration",!0,86400)},BE=function(W){W||(_.Lm("yt-remote-session-screen-id"),_.Lm("yt-remote-session-video-id"));
pBk();W=Uy1();_.c2(W,lF2());R_R(W)},s25=function(){ksZ();
return rI?!!rI.get("yt-remote-use-staging-server"):!1},ksZ=function(){if(!rI){var W=_.mph();
W&&(rI=new _.Re(W))}},xyN=function(W,O,b,T,L){b=b===void 0?function(){return""}:b;
var h=function(){return new gI(De(W,"/bc"),O,!1,b,T)};
return _.e("enable_mdx_web_channel_desktop")?new B3k(function(){return new rq9(De(W,"/wc"),O,b)}):new Dyg(h,L)},nF8=function(){var W=z_U;
CO2();xe.push(W);q01()},zS=function(W,O){CO2();
var b=fFZ(W,String(O));xe.length==0?GsB(b):(q01(),_.$X(xe,function(T){T(b)}))},C3=function(W){zS("CP",W)},CO2=function(){xe||(xe=_.GT("yt.mdx.remote.debug.handlers_")||[],_.c3("yt.mdx.remote.debug.handlers_",xe))},GsB=function(W){var O=(qU+1)%50;
qU=O;HP1[O]=W;t3N||(t3N=O==49)},q01=function(){var W=xe;
if(HP1[0]){var O=t3N?qU:-1,b={};do b={record$jscomp$13:void 0},O=(O+1)%50,b.record$jscomp$13=HP1[O],_.$X(W,function(T){return function(L){L(T.record$jscomp$13)}}(b));
while(O!=qU);HP1=Array(50);qU=-1;t3N=!1}},fFZ=function(W,O){var b=(Date.now()-$y8)/1E3;
b.toFixed&&(b=b.toFixed(3));var T=[];T.push("[",b+"s","] ");T.push("[","yt.mdx.remote","] ");T.push(W+": "+O,"\n");return T.join("")},n3=function(W){_.Jr.call(this);
this.JSC$17502_logName_=W;this.screens=[]},GS=function(W){n3.call(this,"LocalScreenService");
this.JSC$17509_http_=W;this.loungeTokenRefreshTimer_=NaN;f3(this);this.info("Initializing with "+V32(this.screens))},HE=function(W,O){O=O===void 0?!1:O;
n3.call(this,"ScreenService");this.JSC$17515_http_=W;this.disableAutomaticScreenCache_=O;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};N3N(this)},tQ=function(W,O,b){_.Jr.call(this);
this.JSC$17519_logName_=b;this.JSC$17519_screenService_=W;this.receiver_=O;this.screen_=null},hH8=function(W,O,b){b.disableCastApi?$e("Cannot initialize because disabled by Mdx config."):M3k()?u29(W,b)&&(Jq9(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?cqk(O):(window.__onGCastApiAvailable=function(T,L){T?cqk(O):(VD("Failed to load cast API: "+L),FA5(!1),Jq9(!1),_.Lm("yt-remote-cast-available"),_.Lm("yt-remote-cast-receiver"),yqP(),O(!1))},b.loadCastApiSetupScript?_.qp("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?W1g()>=60&&Oqk():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?iqU():W1g()>=89?bqB():(js9(),Tlg(L11.map(dp2))))):$e("Cannot initialize because not running Chrome")},yqP=function(){$e("dispose");
var W=NU();W&&W.dispose();_.c3("yt.mdx.remote.cloudview.instance_",null);SkU(!1);_.V4P(Zq8);Zq8.length=0},IuN=function(){return!!_.Tz("yt-remote-cast-installed")},auB=function(){var W=_.Tz("yt-remote-cast-receiver");
return W?W.friendlyName:null},mp2=function(){$e("clearCurrentReceiver");
_.Lm("yt-remote-cast-receiver")},Yk8=function(){return IuN()?NU()?NU().getCastSession():(VD("getCastSelector: Cast is not initialized."),null):(VD("getCastSelector: Cast API is not installed!"),null)},wb8=function(W,O){EJR()?NU().setConnectedScreenStatus(W,O):VD("setConnectedScreenStatus called before ready.")},M3k=function(){var W=_.AX().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.Sb||W},u29=function(W,O){var b=!1;
NU()||(W=new MU(W,O),W.subscribe("yt-remote-cast2-availability-change",function(T){_.ju("yt-remote-cast-available",T);il("yt-remote-cast2-availability-change",T)}),W.subscribe("yt-remote-cast2-receiver-selected",function(T){$e("onReceiverSelected: "+T.friendlyName);
_.ju("yt-remote-cast-receiver",T);il("yt-remote-cast2-receiver-selected",T)}),W.subscribe("yt-remote-cast2-receiver-resumed",function(T){$e("onReceiverResumed: "+T.friendlyName);
_.ju("yt-remote-cast-receiver",T);il("yt-remote-cast2-receiver-resumed",T)}),W.subscribe("yt-remote-cast2-session-change",function(T){$e("onSessionChange: "+ACB(T));
T||_.Lm("yt-remote-cast-receiver");il("yt-remote-cast2-session-change",T)}),_.c3("yt.mdx.remote.cloudview.instance_",W),b=!0);
$e("cloudview.createSingleton_: "+b);return b},NU=function(){return _.GT("yt.mdx.remote.cloudview.instance_")},cqk=function(W){FA5(!0);
Jq9(!1);NU().init(!1,function(O){O?(SkU(!0),_.NE8("yt-remote-cast2-api-ready")):(VD("Failed to initialize cast API."),FA5(!1),_.Lm("yt-remote-cast-available"),_.Lm("yt-remote-cast-receiver"),yqP());W(O)})},$e=function(W){zS("cloudview",W)},VD=function(W){zS("cloudview",W)},FA5=function(W){$e("setCastInstalled_ "+W);
_.ju("yt-remote-cast-installed",W)},EJR=function(){return!!_.GT("yt.mdx.remote.cloudview.apiReady_")},SkU=function(W){$e("setApiReady_ "+W);
_.c3("yt.mdx.remote.cloudview.apiReady_",W)},Jq9=function(W){_.c3("yt.mdx.remote.cloudview.initializing_",W)},ul=function(W){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(W)},XbD=function(){var W,O;
return _.I(function(b){if(b.nextAddress==1)return(_.Quh()||_.e("use_new_nwl"))&&_.Kmi().isNetworkAvailable()?_.Y(b,_.Fq(),2):b.return();if(b.nextAddress!=3)return(W=b.yieldResult)?_.Y(b,c_9(W),3):b.return();O=b.yieldResult;if(!O.length)return b.return();O.forEach(function(T){var L={timestamp:T.timestamp};T=T.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:T.appShellAssetLoadReport,options:L}:T.clientError?{payloadName:"clientError",payload:T.clientError,options:L}:void 0;T&&
_.BZ(T.payloadName,T.payload,T.options)});
O.length===100&&_.sF.addLowPriorityJob(XbD);_.aD(b)})},Up9=function(W){if(W.playerResponse){if(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(O){return!(!O||!O.mealbarPromoRenderer)}))&&W.mealbarPromoRenderer)return W.mealbarPromoRenderer}else if(W.response&&(W=W.response)&&W.overlay&&W.overlay.mealbarPromoRenderer)return W.overlay.mealbarPromoRenderer},luP=function(W){if(W.response){var O=W.response;
if(O&&O.overlay&&O.overlay.tooltipRenderer)return O.overlay.tooltipRenderer}if(W.playerResponse&&(W=W.playerResponse,W.messages&&W.messages.length>0&&(W=W.messages.find(function(b){return!(!b||!b.tooltipRenderer)}))&&W.tooltipRenderer))return W.tooltipRenderer},PeR=function(W){if(!eHD&&(W=W||_.Cv("ZWIEBACK_PING_URLS"))&&W.length){eHD=!0;
for(var O=0;O<W.length;O++)_.G7(W[O])}},RHg=function(W){if(_.PQ.get(_.Cv("PLAYER_VARS",{}),"privembed",!1)!="1"){W&&GT8();
try{pbR().then(function(){},function(){}),_.Zp(RHg,18E5)}catch(O){_.nv(O)}}},K1B=function(){var W=_.Xt(),O=W.getFlag(119),b=window.devicePixelRatio>1;
document.body&&_.xH(document.body,"exp-invert-logo")&&(b&&!_.xH(document.body,"inverted-hdpi")?_.J4(document.body,"inverted-hdpi"):!b&&_.xH(document.body,"inverted-hdpi")&&_.Mq(document.body,"inverted-hdpi"));O!=b&&(_.UO(0,119,b),W.save())},vJN=function(W){return W.filter(function(O){return"ypcGetCartEndpoint"in O||"ypcFixInstrumentEndpoint"in O})},gJP=function(W){return W.filter(function(O){return!_.P(O,_.c6N)})},Qs8=function(W){W=_.S(W);
for(var O=W.next(),b={};!O.done;b={setter$jscomp$6:void 0},O=W.next()){var T=O.value;O=T.params;T=T.service;O&&T&&(b.setter$jscomp$6=oJB[T],b.setter$jscomp$6&&O.forEach(function(L){return function(h){var Z=h.key;h=h.value;Z&&h&&(0,L.setter$jscomp$6)(Z,h)}}(b)))}},ssN=function(W,O){var b,T,L,h,Z,a,m;
_.I(function(w){switch(w.nextAddress){case 1:b=_.ou.getInstance();T=_.ax.instance;L=_.GB.instance;if(!L)return kDZ(W,T,O),w.return();_.LI(w,2);W.onLoadingCommand&&T.resolveCommand(W.onLoadingCommand);return _.Y(w,b.getCurrentPositionFromGeolocation(),4);case 4:h=w.yieldResult;if(!W.resolveLocationCommand){w.jumpTo(5);break}Z=b.createLocationInfo(h);return _.Y(w,_.tP(L,W.resolveLocationCommand,{locationInfo:Z}),6);case 6:a=w.yieldResult;if(!a||"error"in a&&a.error||a.errorMetadata)return kDZ(W,T,O),
w.return();var A;if(a==null?0:(A=a.onResponseReceivedActions)==null?0:A.length){A=_.S(a.onResponseReceivedActions);for(var X=A.next();!X.done;X=A.next())T.resolveCommand(X.value)}(_.P(W.onSuccessCommand,_.V3)||_.P(W.onSuccessCommand,_.wE))&&_.bX(O.hostElement,"yt-navigate",{endpoint:W.onSuccessCommand,reload:!0});case 5:_.H3(w,0);break;case 2:m=_.ID(w);if(m instanceof GeolocationPositionError&&m.code===GeolocationPositionError.PERMISSION_DENIED)return W.onDeniedCommand&&T.resolveCommand(W.onDeniedCommand),
w.return();kDZ(W,T,O);_.aD(w)}})},kDZ=function(W,O,b){W.onFailureCommand&&(O.resolveCommand(W.onFailureCommand),_.jx(b.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},rC8=function(W,O){var b=_.P(W,_.abn);
if(b&&O){W=b.videoIds||[b.videoId];var T;O=(T=_.bX(O,"yt-lockup-requested",{videoIds:W}).detail)==null?void 0:T.returnValue;var L;b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?L=O?O:W.map(function(h){return{videoId:h,navigationEndpoint:b.videoCommand}}):O&&(L=O);
L&&(T=L.map(function(h){var Z=Object,a=Z.assign;var m=h.navigationEndpoint;if(!_.P(m,_.l8)){var w=_.P(m,_.V3);if(w){if(delete w.index,delete w.playlistId,w=_.P(m==null?void 0:m.commandMetadata,_.F9),w==null?0:w.url){var A=w.url;A=_.cb(A,"list");A=_.cb(A,"index");w.url=A}}else m=void 0}return a.call(Z,{},h,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:m})}),BlP(T,b))}},Dp1=function(W){var O=_.xP();
if(W=_.P(W,_.m$n))W.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&O.clearQueue(),W.closeMiniplayer&&_.iq().resolve(_.xq).close(!0)},zHg=function(W){xp5(_.xP(),W)},CeB=function(W){var O;
(W=(O=_.P(W,_.Zfv))==null?void 0:O.setVideoIds)&&W.forEach(function(b){_.SAS(_.xP(),b)})},nJg=function(W){qkg(_.xP(),W)},fu7=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(W){return!1}},GD1=function(W){var O=_.iq().resolve(_.OT(_.Aw));
if(O){var b={beforeTransition:function(){W.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){W.style.viewTransitionName=""}};
JQ(O,"slide",b);JQ(O,"zoom",b)}},HqD=function(W,O,b){return{horizontalAlignment:W.x+b.width/2<O.width/2?"west":"east",
verticalAlignment:W.y+b.height/2<O.height/2?"north":"south"}},VHk=function(W,O,b,T,L){L=L===void 0?new _.Kw(0,0):L;
return tHD($pk(W,O,b,T),L)},$pk=function(W,O,b,T){return new _.Kw(W==="west"?16:b.width-T.width-16,O==="north"?16:b.height-T.height-16)},NlD=function(W,O){var b=0;
W&&(b+=76);O&&(b+=285);return b},MH9=function(W){var O=["h",
"m","s"],b=_.Ov(O);b.reverse();var T={};W=(W.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(Z){var a=(Z.match(/[hms]/)||[""])[0];return a?(T[a]=parseInt(Z.match(/\d+/)[0],10),!1):!0});
for(W.reverse();W.length&&b.length;){var L=b.shift();L in T||(T[L]=parseInt(W.shift(),10))}if(W.length||T.s>59||T.m>59||T.h>9)return null;var h="";O.forEach(function(Z){T[Z]&&(h+=""+T[Z]+Z)});
return h||null},u9B=function(W){W=W.data;
return _.E("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.E("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.E(_.uj,{data:{thumbnails:[{url:W.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.E("div",{class:"profile-badge-view-model-wiz__content"},_.E("div",{class:"profile-badge-view-model-wiz__badge-description"},W.badgeDesc),W.badgeSubtitle?_.E("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},W.badgeSubtitle):null))},JCD=function(W){W=
W.data;
var O=_.uy();_.Ol8(O,W.rendererContext);return _.E("yt-comment-interaction-view-model",{el:O,class:"yt-comment-interaction-view-model-wiz"},_.E("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":W.onTapA11yLabel,"on:keydown":_.MF1(),tabindex:0},_.E("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.E("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},W.headerPrefix,' "',W.videoTitle),_.E("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.E("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.E("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},W.commentContent),_.E("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.E(_.uj,{data:{thumbnails:[{url:W.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},F15=function(W){W=W.data;
return _.E("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},cC8(W.avatar),_.E("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},W.channelName))},WM9=function(W){W=W.data;
var O;return _.E("div",{class:"yt-profile-info-view-model-wiz__activity"},_.E("div",{class:"yt-profile-info-view-model-wiz__header"},_.E("div",{class:"yt-profile-info-view-model-wiz__section-title"},W.commentsInteractionTitle)),(O=W.comments)==null?void 0:O.map(function(b){return _.E("div",{class:"yt-profile-info-view-model-wiz__activity"},yCD(b))}))},OVk=function(W){W=W.data;
var O=_.Cb({elementsCommand:W.subscriptionsAccessButtonCommand}),b=_.uy();_.sch(b,_.xy(W.subscriptionsAccessButtonCommand));var T=_.XL(function(h){if(O==null?0:O.onclick)O.onclick(h);return!1}),L;
return _.E("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.E("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.E("a",{el:b,"on:click":T,class:"yt-profile-info-view-model-wiz__another-header"},_.E("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},W.sharedSubscriptionsTitle),_.E("div",null,yCD(W.subscriptionsAccessButton)))),_.E("div",{class:"yt-profile-info-view-model-wiz__subs"},(L=W.sharedSubscriptions)==null?void 0:L.slice(0,5).map(function(h){return _.E("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",yCD(h))})))},iV7=function(W){W=W.data;
var O;return _.E("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.E("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.E("h2",{class:"yt-profile-info-view-model-wiz__section-title"},W.sharedSubscriptionsTitle)),_.E("div",{class:"yt-profile-info-view-model-wiz__subs"},(O=W.sharedSubscriptions)==null?void 0:O.slice(0,5).map(function(b){return _.E("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",yCD(b))})))},bVZ=function(W){W=W.data;
return _.E("div",{class:"yt-profile-info-view-model-wiz__activity"},[W.profileBadgeInfoYtWide,W.profileBadgeInfoChannelWide].map(function(O){var b,T,L,h,Z;return O?_.E(_.TT,null,_.E("div",{class:"yt-profile-info-view-model-wiz__header"},_.E("div",{class:"yt-profile-info-view-model-wiz__section-title"},O==null?void 0:O.profileSectionTitle),_.E("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.E("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},O==null?void 0:(b=O.commentBadge)==
null?void 0:b.commentDesc),(O==null?0:(T=O.commentBadge)==null?0:T.blackHeartDesc)?_.E("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.E("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.E(_.uj,{data:{thumbnails:[{url:O==null?void 0:(L=O.commentBadge)==null?void 0:L.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.E("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},O==null?void 0:(h=
O.commentBadge)==null?void 0:h.blackHeartDesc))),_.E("div",{class:"yt-profile-info-view-model-wiz__badge"},O==null?void 0:(Z=O.badges)==null?void 0:Z.map(function(a){return _.E(u9B,{data:a})}))):null}))},j5Z=function(W){W=W.data;
return _.E("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.E(bVZ,{data:W}),W.comments?_.E(WM9,{data:W}):null,W.sharedSubscriptionsTitle?W.subscriptionsAccessButtonCommand?_.E(OVk,{data:W}):_.E(iV7,{data:W}):null)},LM5=function(W){var O=W.data;
W=O?Tak(O.profileIdentityInfo):void 0;O=O?Tak(O.profileInfo):void 0;return _.E("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},W,O)},dkU=function(W,O){var b=_.V7n(O,{},W,!0);
return new Promise(function(T,L){b.listenOnce("n",function(){L(Error("fl`"+b.JSC$25850_getErrorDescription()))});
b.listenOnce("l",function(){var h=b.getResponseCode();if(h!==200)L(Error("gl`"+O+"`"+W.type+"`"+W.size+"`"+h));else try{T(JSON.parse(b.getResponseText()).encryptedBlobId)}catch(Z){L(Z)}});
b.run()})},h$8=function(W){return W.substring(W.indexOf(":")+1,W.indexOf(";"))},SO7=function(W){return new Promise(function(O,b){var T=new FileReader;
T.onloadend=function(){try{var L=new Uint8Array(T.result);L.length<8&&b(void 0);var h=L.subarray(0,8);L="";for(var Z=0;Z<h.length;Z++)L+=("0"+h[Z].toString(16)).substr(-2);L.startsWith("ffd8ff")?O("image/jpeg"):L.startsWith("47494638")?O("image/gif"):L.startsWith("89504e470d0a1a0a")?O("image/png"):L.startsWith("424d")?O("image/bmp"):O(void 0)}catch(a){b(a)}};
T.onerror=b;T.readAsArrayBuffer(W)})},ZVg=function(W){return new Promise(function(O,b){var T=new Image;
T.crossOrigin="anonymous";T.onload=function(){var L=document.createElement("canvas");L.width=T.naturalWidth;L.height=T.naturalHeight;var h=L.getContext("2d");if(!h)throw Error("hl");h.drawImage(T,0,0);h=h$8(W);L.toBlob(function(Z){Z?O(Z):b()},h)};
T.src=W})},aMB=function(W,O){var b;
if(((b=_.P(W,_.l8))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var T;_.bX((T=O.hostElement)!=null?T:O,"yt-shorts-reset");_.mo7(_.iq().resolve(_.aL),W).then(function(h){IM7(h,O,W)})}else{var L;
_.da((L=O.hostElement)!=null?L:O,[W]).then(function(h){h&&IM7(h.data,O,W)})}},IM7=function(W,O,b){if(W){var T=_.P(W.replacementEndpoint,_.l8);
if(T){W.sequenceContinuation&&(T.sequenceParams=W.sequenceContinuation);var L;_.bX((L=O.hostElement)!=null?L:O,"yt-navigate",{endpoint:W.replacementEndpoint})}else if((W==null?void 0:W.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(W==null?0:W.watchStatus)&&_.P(W.watchStatus,_.u11)){var h;_.bX((h=O.hostElement)!=null?h:O,"yt-navigate",{endpoint:b})}}},mkD=function(W){var O=_.iq().resolve(_.sZ),b=lf7(O.getState())||"";
O=_.Cx8(O.getState())||"";b=b==="ytd-browse"&&O==="home";return _.e("web_guide_entry_enable_cache_for_non_home_pages")?(W=(W==null?void 0:W.navigationEndpoint)&&_.EP(W.navigationEndpoint)==="home",{disableCache:b&&W}):{disableCache:b}},YOk=function(W){if(!W)return!1;
try{if(W.host&&W.host.tagName==="YT-FORMATTED-STRING"&&W.host.id==="contenteditable-textarea"||W.nodeType===Node.ELEMENT_NODE&&W.tagName==="YTD-COMMENT-INPUT")return!0}catch(O){return!1}return YOk(W.parentNode)},cE=function(W){return W?W.tagName==="A"&&W.href&&W.classList.contains("yt-simple-endpoint"):!1},E0D=function(W){return W?W.tagName==="IMG"&&W.classList.contains("emoji"):!1},wgR=function(W,O,b){if(!W)return null;
var T=cE(W);if(T&&b)return O=W.pathname.substring(W.pathname.indexOf("/channel/")+9),document.createTextNode("@"+O);if(T&&!b)return document.createTextNode("");if(E0D(W))return b=W.alt,W=W.dataset.emojiId,!W&&O&&(O=_.E8(O,b))&&O.isCustomEmoji&&(W=O.emojiId),W?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+W+">"):document.createTextNode(b);T=W.cloneNode(!1);for(var L=0;L<W.childNodes.length;++L){var h=wgR(W.childNodes[L],O,b);h&&T.appendChild(h)}return T},FP=function(W){return W?cE(W)?W:FP(W.lastChild):
null},A32=function(W){return W?cE(W)?W:A32(W.firstChild):null},XgD=function(W){if(!W)return null;
for(var O=W.previousSibling;O;)if(O.nodeType===Node.ELEMENT_NODE&&O.nodeName==="BR")O=O.previousSibling;else if(O.nodeType===Node.TEXT_NODE&&/\s+/.test(O.textContent))O=O.previousSibling;else break;(O=FP(O))?W=O:W=(W=W.parentNode)?FP(W.previousElementSibling):null;return W},Ukg=function(W){if(!W)return null;
for(var O=W.nextSibling;O;)if(O.nodeType===Node.ELEMENT_NODE&&O.nodeName==="BR")O=O.nextSibling;else if(O.nodeType===Node.TEXT_NODE&&/\s+/.test(O.textContent))O=O.nextSibling;else break;return(O=A32(O))?O:Ukg(W.parentNode)},lMB=function(W){var O=_.AT(),b=O.JSC$9251_getStartNode();
if(!YOk(b.parentNode))return null;O=O.JSC$9251_getStartOffset();if(b.nodeType===Node.TEXT_NODE){var T=_.sM(b,cE);if(T){if(W&&O===0||!W&&O===b.length)return T}else{if(W&&O===b.length)return!b||b.nodeName==="BR"||b.nextElementSibling&&_.XN(b.nextElementSibling,"display")==="block"?null:A32(b.nextElementSibling);if(!W&&O===0)return b?FP(b.previousElementSibling):null}}if(b.nodeType===Node.ELEMENT_NODE)if(W){if(0<=O&&O<b.childNodes.length)return A32(b.childNodes[O])}else if(0<O&&O<=b.childNodes.length)return FP(b.childNodes[O-
1]);return null},e$k=function(W,O,b){if(!W)return null;
if(W.nodeType===Node.TEXT_NODE)if(b){var T=XgD(W);if(T&&!/^\s+\S/.test(W.wholeText.substr(0,O)))return T}else if((T=Ukg(W))&&!/\S\s+/.test(W.wholeText.substr(O,W.wholeText.length)))return T;return W.nodeType===Node.ELEMENT_NODE?b?XgD(W.childNodes[O]):Ukg(W.childNodes[O]):e$k(W.parentNode,O,b)},PX5=function(W){if(W.hasChildNodes())switch(W.tagName){case "DIV":case "A":case "SPAN":var O="";
for(W=W.firstChild;W;W=W.nextSibling)O+=PX5(W);return O;default:return""}else switch(W.nodeType){case 3:return W.textContent;default:return""}},pgN=function(W){W=W.data;
return _.E("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.E("div",null,_.E(_.uw,{text:W.title})),W.subtitle?_.E("div",{class:"ytd-menu-title-renderer__subtitle"},_.E(_.uw,{text:W.subtitle})):null)},R$N=function(W){switch(W){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"}},KM5=function(W){return W.map(function(O){return{settingsRadioOptionRenderer:{title:_.jK(O.name),
asideText:_.jK(O.approximateSize),id:R$N(O.format)}}})},g0D=function(W){if(W&&W.length!==0)return W.filter(v0P()).map(function(O){return{settingsRadioOptionRenderer:{title:O.name,
asideText:O.approximateSize,id:R$N(O.formatType)}}})},yD=function(W){if(W)return W.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},o0g=function(W,O){W=new Set(W!=null?W:[]);
if(W.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(W.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(W.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(W.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(W.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(O)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},Q5g=function(W){var O=W.indexOf("(");
return O!==-1?W.substring(O+1,W.length-1):W},kUg=function(W){switch(W){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},BaZ=function(W,O,b,T,L,h){var Z=_.PQ.clone(s5B);
Z.locale=_.Cv("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;Z.report={description:L||"<empty>"};L=_.Cv("SBOX_SETTINGS",{});O=O.join(",");var a=Date.now();W={choice_cc:T,choice_id_cc:b,choices_sc:O,gl:L.REQUEST_DOMAIN,hl:L.REQUEST_LANGUAGE,query:W,time:a};h&&(W.choice_additional_comment_cc=h);_.F95(Z,W)},r39=function(W){var O=new Map;
O.set("authuser",_.Cv("SESSION_INDEX","0"));return _.WQ(W,O)},xkU=function(W){var O;
return _.I(function(b){switch(b.nextAddress){case 1:if(!W||!Dk9(W))return b.return(null);O=null;switch(_.Cv("INNERTUBE_CLIENT_NAME")){case "WEB":return b.jumpTo(2);case "WEB_REMIX":O=W.getPlayer()}b.jumpTo(3);break;case 2:return _.Y(b,W.getPlayerPromise(),4);case 4:O=b.yieldResult;b.jumpTo(3);break;case 3:return b.return(O)}})},Dk9=function(W){return["ytd-player",
"ytmusic-player"].includes(String(W.tagName||"").toLowerCase())},z$8=function(W){W=Math.round(W);
return W%2?W-1:W},CXD=function(W){W=Math.round(W);
return W%2===0?W-1:W},qOZ=function(W){var O,b,T;
if(W=(O=W.createPlaylistDialogFormSchema)==null?void 0:(b=O.fieldSchemas)==null?void 0:(T=b.title)==null?void 0:T.validationSchema)for(O=[W.syncStep,W.asyncStep].filter(function(L){return L!==void 0}),O=_.S(O),b=O.next();!b.done;b=O.next()){b=b.value.rules;
if(!b)break;b=_.S(b);for(b=b.next();!b.done;b=b.next())return _.P(b.value,_.HI8)}},fMP=function(W){var O,b,T;
if(W=(O=W.createPlaylistDialogFormSchema)==null?void 0:(b=O.fieldSchemas)==null?void 0:(T=b.visibility)==null?void 0:T.validationSchema)for(O=[W.syncStep,W.asyncStep].filter(function(L){return L!==void 0}),O=_.S(O),b=O.next();!b.done;b=O.next()){b=b.value.rules;
if(!b)break;b=_.S(b);for(T=b.next();!T.done;T=b.next())if(T=_.P(T.value,n0k))return O=void 0,(O=T.translations)==null?void 0:O.visibilityNotValidErrorMessage}},GUP=function(){var W,O;
return(O=(W=_.iq().resolve(_.OT(_.t4)))==null?void 0:W())!=null?O:!1},HVk=function(W,O){a:switch(O){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":O="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:O="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:W,style:O,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},tx2=function(W){var O=21;
if(!W)return O;O+=W.headerTitle?27:0;O+=W.headerTitle&&W.hasHeaderActionHeader?4:0;return O+=W.headerTitle&&W.headerSubtitle?16:0},$k1=function(W){var O=0;
if(!W)return O;O+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton?48:0;O+=W.footerTrailingLabel||W.footerLeadingLabel?30:0;return O+=W.hasFooterPrimaryButton||W.hasFooterSecondaryButton||!W.footerTrailingLabel&&!W.footerLeadingLabel?0:12},Vx1=function(W){var O=new _.wO,b=W;
return{subscribe:function(T){O.subscribe("changed",T)},
dispatch:function(T,L){var h=b;T==="Touch Start"?b=Object.assign({},h,{isAnimating:!1,initialY:L.event.touches[0].clientY}):T==="Touch Move"?(T=Math.min(L.fullContentWrapperHeight,L.contentHeightMap[L.contentWrapperId]+tx2(L.header)-$k1(L.footer)),b=Object.assign({},h,{currentY:Math.max(L.contentScrollable?-1*(h.initialY-24):0,L.event.touches[0].clientY-h.initialY),maxHeightForContentWrapper:Math.min(T,Math.max(0,(h.isFullScreen?T:L.contentWrapperHeight)-h.currentY))})):b=T==="Snap To Full Screen"?
Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:L.maxHeight}):T==="Snap To Neutral Position"?Object.assign({},h,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):T==="Close Sheet"?Object.assign({},h,{isAnimating:!0,currentY:L.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:L.maxHeight}):h;O.publish("changed",b)}}},Na1=function(W){return _.XL(function(O){W(O);
return!1})},Mx8=function(){_.iq().resolve(_.p1).closeSheet()},ut7=function(W){var O,b,T,L,h,Z,a,m,w,A,X;
return{headerTitle:(O=W.headerTitle)==null?void 0:O.call(W),headerSubtitle:(b=W.headerSubtitle)==null?void 0:b.call(W),headerActionHeader:W.headerActionHeader,footerPrimaryButton:W.footerPrimaryButton,footerSecondaryButton:W.footerSecondaryButton,footerButtonType:(T=W.footerButtonType)==null?void 0:T.call(W),footerLeadingLabel:(L=W.footerLeadingLabel)==null?void 0:L.call(W),footerTrailingLabel:(h=W.footerTrailingLabel)==null?void 0:h.call(W),shouldShowIcons:(Z=W.shouldShowIcons)==null?void 0:Z.call(W),
skipContentClick:(a=W.skipContentClick)==null?void 0:a.call(W),additionalClassName:(m=W.additionalClassName)==null?void 0:m.call(W),onClosedCallback:W.onClosedCallback,focusOnClose:(w=W.focusOnClose)==null?void 0:w.call(W),isDisabled:(A=W.isDisabled)==null?void 0:A.call(W),disabledCommand:(X=W.disabledCommand)==null?void 0:X.call(W),headerFn:W.headerFn,contentFn:W.contentFn,footerFn:W.footerFn,hasHeaderFn:W.hasHeaderFn(),hasContentFn:W.hasContentFn(),hasFooterFn:W.hasFooterFn(),hasFooterPrimaryButton:W.hasFooterPrimaryButton(),
hasFooterSecondaryButton:W.hasFooterSecondaryButton(),hasHeaderActionHeader:W.hasHeaderActionHeader()}},J3g=function(W){switch(W){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""}},c3D=function(W){switch(W){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""}},FM5=function(W){switch(W){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""}},y3g=function(W,O,b){O.forEach(function(T){_.dk(_.iq().resolve(_.ef),T)});
_.jx(W,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",b])},beg=function(W,O,b,T){var L=_.P(b,_.z3).commandLifeCycleConfig;
L&&L.onStartCommand&&_.Sx(W,[L.onStartCommand],O);_.VI(O);var h=_.GB.instance;h&&_.Hs(h,b)?_.tP(h,b,T).then(function(Z){if(!Z||(Z==null?0:Z.error))return Z=_.P(b,_.z3).serializedTransactionFlowLoggingParams,_.Ns(O),_.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",Z));_.Ns(O);return{data:Z}}).then(function(Z){_.Ns(O);
W_N(Z.data);var a=Z.data.command;a&&_.Sx(W,[a],O);a=OeZ(b,Z.data);if(!a){var m=Z.data;Z=!1;if(m&&m.command&&_.P(m.command,_.I5)){var w;m=((w=_.P(m.command,_.I5))==null?void 0:w.commands)||[];for(w=0;w<m.length;w++)if(_.P(m[w],_.r6v)){Z=!0;break}}Z||_.P0('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!a&&L&&L.onSuccessCommand?_.Sx(W,[L.onSuccessCommand],O):a&&L&&L.onFailureCommand&&_.Sx(W,[L.onFailureCommand],O)},function(){_.Ns(O);
L&&L.onFailureCommand&&_.Sx(W,[L.onFailureCommand],O);ieZ(b)}):_.Dt(Error("yl"),"ERROR")},jJ9=function(W,O,b){var T=[O];
b&&T.push(b);return _.da(W,T).then(function(L){var h=_.P(O,_.z3).serializedTransactionFlowLoggingParams,Z=L.data,a=OeZ(O,Z);a?L=_.vi(new WA(a,h)):W_N(Z);return L},function(){var L=_.P(O,_.z3).serializedTransactionFlowLoggingParams;
ieZ(O);return _.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",L))})},OeZ=function(W,O){W=_.P(W,_.z3).serializedTransactionFlowLoggingParams;
var b=null;switch(O.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":b="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":b="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":b="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}b?_.$1(b,W):afU(W);return b},ieZ=function(W){_.$1("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.P(W,_.z3).serializedTransactionFlowLoggingParams)},
W_N=function(W){if(W.trackingParams){var O=_.Bb(),b=_.sk();
O&&b&&_.fV(O,b,_.Pi(W.trackingParams))}},Tmg=function(W,O,b){var T=_.GB.instance,L=_.T$X(_.Cv("YPC_MB_URL")),h=(new _.bTe).init(),Z=_.jkO(),a=_.P(b,_.QPn).languageCode;
a===void 0?_.Dt(Error("Ci"),"ERROR"):_.XG([h,L]).then(function(){var m={ctk:payments.business.integration.ClientTokenFactory.createClientToken(a,Z)};T&&_.Hs(T,b)?_.tP(T,b,m).then(function(w){return{data:w}}).then(function(w){_.bX(O,"yt-service-request-completed",w);
w.code!=="ERROR"&&(w=w.data.command)&&_.Sx(W,[w],O)}):_.Dt(Error("yl"),"ERROR")})},hg8=function(W,O,b,T){var L=_.GB.instance;
L&&_.Hs(L,b)?_.tP(L,b,T).then(function(h){return{data:h}}).then(function(h){L_Z(W,O,b,h)},function(){dXR(b)}):(L=_.iq().resolve(_.OT(_.k1)))&&L.requestDataForServiceEndpoint(b,T).then(function(h){L_Z(W,O,b,h)},function(){dXR(b)})},L_Z=function(W,O,b,T){_.bX(O,"yt-service-request-completed",T);
if(T.code&&T.code=="ERROR")dXR(b);else{(T=T.data.commands)&&_.Sx(W,T,O);var L;(W=(L=_.P(b,_.xNH))==null?void 0:L.serializedYpcPauseFlowLoggingParams)&&W&&_.kC("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",W)}},dXR=function(W){var O;
(W=(O=_.P(W,_.xNH))==null?void 0:O.serializedYpcPauseFlowLoggingParams)&&W&&_.kC("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},I57=function(W,O,b){var T=_.GB.instance;
T&&_.Hs(T,b)?_.tP(T,b).then(function(L){return{data:L}}).then(function(L){Sr8(W,O,b,L)},function(){Ze5(b)}):(T=_.iq().resolve(_.OT(_.k1)))&&T.requestDataForServiceEndpoint(b).then(function(L){Sr8(W,O,b,L)},function(){Ze5(b)})},Sr8=function(W,O,b,T){_.bX(O,"yt-service-request-completed",T);
T.code&&T.code=="ERROR"?Ze5(b):((T=T.data.commands)&&_.Sx(W,T,O),(W=_.P(b,_.zUU).serializedYpcResumeFlowLoggingParams)&&W&&_.kC("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",W))},Ze5=function(W){(W=_.P(W,_.zUU).serializedYpcResumeFlowLoggingParams)&&W&&_.kC("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",W,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},a5g=function(W){W=W===void 0?{}:W;
_.iq().resolve(_.xxq).showFeedbackDialog(W.customProductData,W.feedbackContent,W.onFeedbackSubmitted,W.bucket)},mX1=function(W){W=W===void 0?{}:W;
_.iq().resolve(_.xxq).showHelpDialog(W.helpContext,W.articleId,W.productData)},Yrg=function(){mX1()},E91=function(){a5g()},AH8=function(W,O,b){var T,L,h,Z,a,m,w;
return _.I(function(A){switch(A.nextAddress){case 1:T=_.P(W,wSB);if((L=T)==null?0:L.productId){m={productId:T.productId,bucket:T.bucket,enableAnonymousFeedback:(a=T.enableAnonymousFeedback)!=null?a:!0,allowNonLoggedInFeedback:!0};w={feedbackChoice:b.feedbackChoice};if(!_.e("web_collect_offline_state")){A.jumpTo(8);break}_.LI(A,9);return _.Y(A,PPP(w),11)}Z={bucket:(h=T)==null?void 0:h.bucket};if(!_.e("web_collect_offline_state")){A.jumpTo(4);break}Z.customProductData={};_.LI(A,5);return _.Y(A,PPP(Z.customProductData),
7);case 7:_.H3(A,4);break;case 5:_.ID(A);case 4:a5g(Z);A.jumpTo(0);break;case 11:_.H3(A,8);break;case 9:_.ID(A);case 8:_.yO2(w),_.Fkh("GFEEDBACK",w),T.productId==="5295751"&&(w.client_attestation=Number(_.Cv("CATSTAT",0))),T.productId==="5295751"&&(w.client_time=Date.now()/1E3/3600),T.productId==="5295751"&&(w.original_playback_id=_.lsH||""),_.F95(m,w),_.aD(A)}})},XSD=function(W){if(W=_.P(W,_.kVO)){var O={bucket:W.bucketIdentifier};
W.additionalDatas&&(O.customProductData={},W.additionalDatas.forEach(function(b){if(b=b.userFeedbackEndpointProductSpecificValueData)O.customProductData[b.key]=b.value}));
a5g(O)}},UX9=function(W){var O=_.$G.getInstance();
var b=_.EO("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var T=_.EO("DELETE",void 0,"Delete"),L=_.EO("CANCEL",void 0,"Cancel");b=kT1(b,void 0,T,L,{signal:"DELETE_ALL_DOWNLOADS"});_.o$(O,[{openPopupAction:b}],W)},egP=function(){return _.I(function(W){return W.nextAddress==1?_.Y(W,_.iq().resolve(_.c8),2):_.Y(W,l5B(),0)})},PvR=function(W){var O,b;
return _.I(function(T){return T.nextAddress==1?(b=(O=_.P(W,_.G5))==null?void 0:O.targetId)?_.Y(T,_.iq().resolve(_.c8),3):T.jumpTo(0):_.Y(T,_.iq().resolve(_.Jl).deleteVideo(b),0)})},RgB=function(W){var O,b;
return _.I(function(T){return T.nextAddress==1?(b=(O=_.P(W,_.G5))==null?void 0:O.targetId)?_.Y(T,_.iq().resolve(_.c8),3):T.jumpTo(0):_.Y(T,pS8(_.iq().resolve(_.Jl),b),0)})},v97=function(W){var O,b;
return _.I(function(T){return(b=(O=_.P(W,_.G5))==null?void 0:O.targetId)?_.Y(T,K_7(b),0):T.jumpTo(0)})},o92=function(){_.e("kevlar_woffle_refresh_dl_load_killswitch")||g9g()},kcD=function(){_.e("kevlar_woffle")&&_.gE.instance&&QJ5()},Bm2=function(W){var O;
if((O=_.P(W,_.mo))==null||!O.videoId)return!1;sJD(_.iq().resolve(_.Jl),_.P(W,_.mo),W.clickTrackingParams);return!0},DX7=function(W){var O;
if((O=_.P(W,_.Yz))==null||!O.playlistId)return!1;rHg(_.iq().resolve(_.Jl),_.P(W,_.Yz),W.clickTrackingParams);return!0},zg7=function(W){var O=_.P(W,_.QzS);
(O==null?void 0:O.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(O==null?void 0:O.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||xXN(_.iq().resolve(_.Jl),_.P(W,_.QzS))},qr5=function(W){W=_.P(W,_.bcn);
var O;(W==null?0:(O=W.actions)==null?0:O.length)&&Cvk(W)},GcN=function(W){var O,b;
return _.I(function(T){O=_.P(W,n95);return(b=O)!=null&&b.localWatchHistoryCommandType?_.Y(T,f5k(O),0):T.return()})},HeB=function(W){setTimeout(function(){requestAnimationFrame(W)},80)},tKR=function(W){return Object.entries(W).map(function(O){return O.join(":")}).join(";")},VKg=function(W){var O,b,T;
_.I(function(L){if(L.nextAddress==1)return _.Y(L,$XP(),2);O=L.yieldResult;b=_.ax.instance;switch(O){case "granted":T=W.getLocationCommand;break;case "denied":T=W.openDeniedDialogAction;break;case "prompt":T=W.openCollectionDialogAction;break;default:T=W.openCollectionDialogAction}T&&b.resolveCommand(T);_.aD(L)})},$XP=function(){var W,O;
return _.I(function(b){if(b.nextAddress==1)return W="prompt",navigator.permissions?_.Y(b,navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2);b.nextAddress!=2&&(O=b.yieldResult,W=O.state);return b.return(W)})},MK2=function(){_.I(function(W){return _.Y(W,_.NmU(),0)})},uWg=function(){var W,O,b;
return _.I(function(T){if(T.nextAddress==1)return W=_.iq().resolve(_.sP),W?_.Y(T,_.tP(W,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.z5(Error("Bl")),T.return(void 0));if(O=T.yieldResult){if(O.errorMetadata)return _.z5(Error("Cl`"+O.errorMetadata.status+"`"+O.error)),T.return(void 0);b=O.datasyncIds;_.DFf=b.length;return T.return(b)}_.z5(Error("Dl"));return T.return(void 0)})},JHg=function(){uWg().then(function(W){W&&(ukD(W),YFB(W),fpg(W),RA8(W))})},cH2=function(W){_.sF.addLowPriorityJob(function(){var O,
b,T,L,h;
return _.I(function(Z){switch(Z.nextAddress){case 1:if(_.e("ytidb_clear_optimizations_killswitch")){Z.jumpTo(2);break}O=_.eJ("clear");if(O.startsWith("V")&&O.endsWith("||")){var a=[O];ukD(a);YFB(a);fpg(a);RA8(a);return Z.return()}b=GZk();T=KYk();return _.Y(Z,EOD(),3);case 3:return L=Z.yieldResult,_.Y(Z,J_7(),4);case 4:if(h=Z.yieldResult,!(b||T||L||h))return Z.return();case 2:W.isNetworkAvailable()?JHg():W.listenOnce("publicytnetworkstatus-online",JHg),_.aD(Z)}})})},Of=function(W){W={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.VV(W)}}}};_.ax.instance&&_.ax.instance.resolveCommand(W)},F_B=function(W){if(W){var O=_.A4();
_.bh(O,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var b=238708;break;case 2:b=238715;break;case 3:b=238710;break;case 6:b=238709}b&&(W=_.wG(O,{veType:b}))&&_.LK(O,W)}},yHg=function(W){if(W){var O=_.A4();
_.bh(O,3854,void 0,{layer:0,parentLayer:4});switch(W){case 1:var b=238714;break;case 2:b=238711;break;case 8:b=238709;break;case 7:b=238713;break;case 3:case 4:case 5:b=238712}b&&(W=_.wG(O,{veType:b}))&&_.LK(O,W)}},Wm8=function(W){switch(W.latencyType){case 0:_.sO("consent_primitive_flow");
_.Bg("cpit",W.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Bg("cpist",W.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Bg("cprtif",W.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Bg("cprtli",W.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Bg("cprt",W.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Bg("cpdt",W.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Bg("cpjct",W.timestampEpochMillis,"consent_primitive_flow")}},
Z_N=function(W,O){var b,T,L,h,Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V,jQ;
return _.I(function(y){switch(y.nextAddress){case 1:_.LI(y,2);(T=(b=_.P(W,O_g))==null?void 0:b.serializedConsentRequest)||(T=(L=_.P(W,i_1))==null?void 0:L.serializedConsentRequest);T&&(h=b_N(_.w1(T)));if(h===void 0)return y.return();Z=ju8(h);Z.latencyCallback=Wm8;O&&TE7(Z,function(){O.then(function(d8){d8.pauseVideo();(new LmR).increment()})});
return((a=_.P(W,O_g))==null?void 0:a.consentAction)==="CONSENT_ACTION_PREWARM"||((m=_.P(W,i_1))==null?void 0:m.consentAction)==="CONSENT_ACTION_PREWARM"?_.Y(y,dd8(Z),5):_.Y(y,h32(Z),6);case 6:w=y.yieldResult;A=_.U3(w,iC);if(A===1){if(((X=_.ks(w,bC,1,iC))==null?void 0:_.gQ(X,1))===1||((l=_.ks(w,bC,1,iC))==null?void 0:_.gQ(l,1))===2||((p=_.ks(w,bC,1,iC))==null?void 0:_.gQ(p,1))===3)_.P(W,i_1)?Of(_.EO("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Of(_.EO("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));F_B((K=_.ks(w,bC,1,iC))==null?void 0:_.gQ(K,1),_.yr(w,SPR,3,_.W5()))}else A===2?(((k=j8(w))==null?void 0:_.gQ(k,1))===5?_.P(W,i_1)?Of(_.EO("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Of(_.EO("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((r=j8(w))==null?void 0:_.gQ(r,1))===1||((q=j8(w))==null?void 0:_.gQ(q,1))===4?Of(_.EO("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((f=j8(w))==null?void 0:_.gQ(f,1))===7&&((M=h)==null?void 0:(V=_.bP(M,T_,4))==null?void 0:_.gQ(V,4))!==1&&Of(_.EO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),yHg((jQ=j8(w))==null?void 0:_.gQ(jQ,1))):Of(_.EO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));y.jumpTo(5);break;case 5:_.H3(y,0);break;case 2:_.ID(y),Of(_.EO("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.aD(y)}})},ark=function(){if(!Ir1.has("Worker")){Ir1.set("Worker",
!0);
var W={api:"BROWSER_API_WEB_WORKER"};W.available="Worker"in window?!0:!1;_.BZ("apiTest",W)}},md5=function(W){return typeof W==="undefined"?"-1":String(Math.ceil(W/1048576))},AoU=function(W,O){YPR(new E12(_.P(O,whB).addToken,_.P(O,whB).commonToken)).then(function(){_.bX(W,"yt-invoke-instrument-manager-action-completed")},function(b){_.bX(W,"yt-invoke-instrument-manager-action-error",b)})},Xh8=function(W){return _.xs(W)},UdN=function(W){var O=1;
W=W.split(":");for(var b=[];O>0&&W.length;)b.push(W.shift()),O--;W.length&&b.push(W.join(":"));return b},lr7=function(W,O){O=W.aspectRatio()<=O.aspectRatio()?O.width/W.width:O.height/W.height;
W.scale(O)},e3g=function(W,O){O=W.aspectRatio()>O.aspectRatio()?O.width/W.width:O.height/W.height;
return W.scale(O)},P85=function(W){var O=new _.bE;
return _.s3(O,11,W)},phU=function(W){var O={};
W=W.getAllResponseHeaders().split("\r\n");for(var b=0;b<W.length;b++)if(!_.Zi(W[b])){var T=UdN(W[b]),L=T[0];T=T[1];if(typeof T==="string"){T=T.trim();var h=O[L]||[];O[L]=h;h.push(T)}}return _.PQ.map(O,function(Z){return Z.join(", ")})},mW=function(W,O){return W.JSC$7800_xhr_?W.JSC$7800_xhr_.getResponseHeader(O):null},LR=function(W,O,b){Array.isArray(b)||(b=[String(b)]);
_.xGq(W.JSC$8032_queryData_,O,b);return W},QJ5=function(){var W=_.gE.instance;
_.I(function(O){return W.deferredInstallPrompt?_.Y(O,W.deferredInstallPrompt.prompt(),0):O.jumpTo(0)})},R31=function(W,O,b){if(_.j5(W))_.$X(W,O,b);
else for(W=_.Huw(W);;){var T=W.next();if(T.done)break;O.call(b,T.value,void 0,W)}},KmP={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}"]},eX9,PmB,p_g,RXg,K5B,vI1,gI7,oIk,Qi7,K_7,pS8,l5B,k02,sig,Big,r1g,De1,rHg,sJD,xeg,zXD,CmZ,g9g,xXN,qlD,Cvk,nIB,f5k,fQD,G02,H2g,tlP,$eB,VlB,Ni8,JQ,MlD,uTg,
xp5,BlP,J19,aZ,me,Yx,Ef,c1N,F5g,y1D,WwP,ObP,ibB,bb9,jx8,TGD,Lw9;KmP={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 v18=function(W,O){var b=[];R31(O,function(T){try{var L=_.TD.prototype.getWrapper.call(this,T,!0)}catch(h){if(h=="Storage: Invalid value was encountered")return;throw h;}L===void 0?b.push(T):_.GZf(L)&&b.push(T)},W);
return b},g1P=function(W,O){v18(W,O).forEach(function(b){_.TD.prototype.remove.call(this,b)},W)},o12=function(W){var O=_.nr;
O._minimumZ=Math.max(O._minimumZ,W)},Qu2=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],kF5=function(W,O){_.JU(W.qM);W.qM=O},suN=function(W,O,b,T){W.setState(5);
var L=!!W.s0h&&Qu2.includes(_.cU(W.s0h)||"");try{var h=new _.g9({program:O,globalName:b,oP:{disable:!_.e("att_web_record_metrics")||!_.e("att_skip_metrics_for_cookieless_domains_ks")&&L,zv:"aGIf"}});h.laZ.then(function(){W.setState(6);T&&T(O)});
kF5(W,h)}catch(Z){W.setState(7),Z instanceof Error&&_.z5(Z)}},BE1=function(W,O,b,T,L,h){var Z=Z===void 0?"trayride":Z;
b?(W.setState(2),_.qp(b,function(){if(window[Z])suN(W,T,Z,L);else{W.setState(3);var a=_.HO8(b),m=document.getElementById(a);m&&(_.uEe(a),m.parentNode.removeChild(m));_.z5(new _.pu("BL:ULB",b))}},h)):O?(h=_.AV("SCRIPT"),O instanceof _.zb?_.nz(h,O):h.textContent=O,h.nonce=_.x4(document),document.head.appendChild(h),document.head.removeChild(h),window[Z]?suN(W,T,Z,L):(W.setState(4),_.z5(new _.pu("BL:ULBJ")))):_.z5(new _.pu("BL:ULV"))},rog=function(){this.state=1;
this.qM=null;this.s0h=void 0};
_.d=rog.prototype;_.d.initialize=function(W,O,b,T){this.s0h=T;if(W.program){var L;T=(L=W.interpreterUrl)!=null?L:null;if(W.interpreterSafeScript)L=_.AHX(W.interpreterSafeScript);else{var h;L=(h=W.interpreterScript)!=null?h:null}W.interpreterSafeUrl&&(T=_.BO(W.interpreterSafeUrl).toString());BE1(this,L,T,W.program,O,b)}else _.z5(Error("lf"))};
_.d.isInitialized=function(){return!!this.qM};
_.d.getState=function(){return this.state};
_.d.isLoading=function(){return this.state===2};
_.d.invoke=function(W){W=W===void 0?{}:W;var O;this.qM?O=_.RDq(this.qM,{sD:W}):O=null;return O};
_.d.dispose=function(){kF5(this,null);this.setState(8)};
_.d.setState=function(W){this.state=W};
var Dd8=function(W,O){return W.qM.snapshot(O)},xdD=function(W,O){var b=_.Lu("botguard_async_snapshot_timeout_ms",3E3);
O=O===void 0?{}:O;b=b===void 0?3E3:b;return W.qM?new Promise(function(T,L){var h=!1,Z=_.sF.addJob(function(){h=!0;L(Error("mf"))},1,b);
W.qM?Dd8(W,{sD:O}).then(function(a){_.sF.cancelJob(Z);h||T(a)}).catch(function(a){_.sF.cancelJob(Z);
h||L(a)}):(_.sF.cancelJob(Z),T(null))}):Promise.resolve(null)},z3U=["att/log"],C81;
C81={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var qPZ={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},n19=function(W,O){return _.AH(W,{mode:"readwrite",enableRetries:!0},function(b){return _.R4P(b,O,"settingEntity")})},frN=function(W,O,b){return _.AH(W,{mode:"readonly",
enableRetries:!0},function(T){return _.Lff(T,O,b)})},GFN=function(W){if(!W.storage)return!1;
a:{if(W.storage){try{var O=W.storage.get("TLPQtimestamp")}catch(b){}W=Number(O);if(!isNaN(W))break a}W=void 0}return W?Date.now()-W<864E5:!1},H_B=function(W){if(W.storage){try{var O=W.storage.get("TLPQindex")}catch(b){}W=Number(O);
if(!isNaN(W))return W}},t4R=function(W,O){W.queueProxy&&O.forEach(function(b){if(b.videoId&&b.trackingParams&&W.queueProxy instanceof _.gk){var T=_.Bb();
W.queueProxy.attributionData.set(b.videoId,{enqueueingVe:_.Pi(b.trackingParams).getAsJson(),enqueueingCsn:T?T:void 0,clientEnqueueingTimeMs:Math.floor((0,_.WO)()).toString()})}})},$d7=function(W){var O=_.qAH(W);
O!=W.currentSnapState_&&(W.currentSnapState_=O,W.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},dX=function(W){this.JSC$11050_networkManager_=W;
this.partCallbacks_=[]};
dX.prototype.getCacheKeyForEndpoint=function(W){return _.TwP(W,!1)};
dX.prototype.onPartsCallback_=function(W){this.partCallbacks_.forEach(function(O){W&&O(W)})};
var hb=function(W,O,b){dX.call(this,W);this.player_=O;this.autoplayData_=b};
_.R(hb,dX);hb.prototype.getCacheKeyForEndpoint=function(W){return _.TwP(W,!!this.autoplayData_)};
hb.prototype.getTempData=function(W,O){O=O.timeBeforeNextVideo;W={itct:W.clickTrackingParams,lact:_.by(),pbis:O,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(W.autonav=1);return W};
hb.prototype.getXhrParams=function(W){return Object.assign({pbj:"prefetch"},W)};
hb.prototype.getParams=function(W){W={frags:W.fragmentsRequested.join(",")};_.e("kevlar_droppable_prefetchable_requests")&&(W.prefetch=1);return W};
var V4Z=function(W){W.playerEvents_.forEach(function(O){W.player.removeEventListener(O.eventName,O.callback)});
W.playerEvents_.length=0},S8=function(W,O,b){this.player=W;
this.JSC$11060_taskManager=O;this.prefetchDelay=b;this.completionResolver_=null;this.playerEvents_=[]};
S8.prototype.start=function(){var W=this;this.completionResolver_=_.$S();_.UR(this.completionResolver_.promise,function(){V4Z(W);W.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var NEg=function(W,O,b){W.player.addEventListener(O,b);W.playerEvents_.push({eventName:O,callback:b})},M48={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},uE5={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},JoP=function(W,O,b){S8.call(this,W,O,b);this.cueId_="playbackTrigger-"+Math.random()};
_.R(JoP,S8);
JoP.prototype.prepareTrigger=function(W){var O=this,b=this.player.getDuration(),T=this.player.getVideoData(),L=T.isLive&&T.hasProgressBarBoundaries;if(L&&T.progressBarEndPositionUtcTimeMillis){var h=T.progressBarEndPositionUtcTimeMillis/1E3;isNaN(h)||(b=h)}var Z=0;this.prefetchDelay>=0?L?T.progressBarStartPositionUtcTimeMillis&&(T=T.progressBarStartPositionUtcTimeMillis/1E3,isNaN(T)||(Z=T+this.prefetchDelay)):Z=this.prefetchDelay:Z=b+this.prefetchDelay;L?this.player.addUtcCueRange(this.cueId_,Z,b):
this.player.addCueRange(this.cueId_,Z,b);_.UR(W.promise,function(){O.player.removeCueRange(O.cueId_)});
NEg(this,"onCueRangeEnter",function(a){a==O.cueId_&&W.resolve(b-Z)})};
var co9=function(W,O){W.fragmentConfiguration_[O].requiredKeys.every(function(b){return!!W.prefetchedData_[b]})&&(W.validatedFragments_.push(O),O=W.missingFragments_.indexOf(O),O!==-1&&W.missingFragments_.splice(O,1))},Fm8=function(W){W.prefetchedFragments_.forEach(function(O){co9(W,O)})},yoU=function(W,O,b){this.pageFragments_=W;
this.prefetchedFragments_=O;this.fragmentConfiguration_=uE5;this.prefetchedData_=b;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;Fm8(this)},W5P=function(){},O2U=function(W){this.JSC$11074_playlistManager_=W};
_.R(O2U,W5P);O2U.prototype.getPrefetchEndpoint=function(){return this.JSC$11074_playlistManager_.getAutoplayEndpoint()};
var i2D=function(W){this.autonavEndpoints_=W};
_.R(i2D,W5P);i2D.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var b2g=function(W,O,b,T,L){this.autonavEndpoints=W;this.foregroundTrigger=O;this.backgroundTrigger=b;this.pageType=T;this.isInPlaylist=L},jiB=function(W,O){if(W.webPrefetchData&&W.webPrefetchData.navigationEndpoints&&W.webPrefetchData.navigationEndpoints.length){W=W.webPrefetchData.navigationEndpoints;
var b=_.P(W[0],_.V3);if(b.watchEndpointSupportedPrefetchConfig&&b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var T=b.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;b=T.playbackRelativeSecondsPrefetchCondition;b=typeof b==="number"&&Math.abs(b)<O.videoDuration?b:void 0;T=T.countdownUiRelativeSecondsPrefetchCondition;T=typeof T!=="number"||_.e("prefetch_job_config_cleanup_ks")&&O.inPlaylist?void 0:T;if(typeof T==="number")return new b2g(W,O.makeUpNextTrigger(T),O.makePlaybackTrigger(T),
"watch",O.inPlaylist);if(typeof b==="number")return new b2g(W,O.makePlaybackTrigger(b),null,"watch",O.inPlaylist)}}},Ti7=function(W){return W.prefetchJobConfig_.backgroundTrigger?_.fv(_.GhP)()==0?W.prefetchJobConfig_.backgroundTrigger:W.prefetchJobConfig_.foregroundTrigger:W.prefetchJobConfig_.foregroundTrigger},L58=function(W){_.YH(document,"visibilitychange",W.onVisibilityChange_,!1,W)},ZT=function(W){dX.call(this,W)};
_.R(ZT,dX);ZT.prototype.getCacheKeyForEndpoint=function(W){return dX.prototype.getCacheKeyForEndpoint.call(this,W)};
ZT.prototype.getTempData=function(){return{}};
ZT.prototype.getXhrParams=function(W){return W};
ZT.prototype.getParams=function(){return{}};
var dek=function(W,O,b){var T=W.prefetchDelay*1E3;if(Math.abs(T)>O)b.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var L=T,h=O-T;T<0&&(L=O+T,h=Math.abs(T));var Z=W.JSC$11060_taskManager.addJob(function(){b.resolve(h/1E3)},10,L);
b.promise.thenCatch(function(){W.JSC$11060_taskManager.cancelJob(Z)})}},hX5=function(W,O,b){S8.call(this,W,O,b)};
_.R(hX5,S8);hX5.prototype.prepareTrigger=function(W){var O=this;NEg(this,"onAutonavCoundownStarted",function(b){dek(O,b,W)})};
var SlR=function(W){W.pendingPrefetchJob_&&(W.pendingPrefetchJob_.cancel(),W.pendingPrefetchJob_=null)},Z25=function(W,O,b){if(!W.triggeredTargets.has(O)){var T=_.BoH(W,O);
T.action=b;_.kGU(W,O,T)}},IQP=function(W){_.XWq();
_.Wc8("cpt")&&_.z5(Error("kh"));_.i1.requestAnimationFrame(function(){_.i1.setTimeout(function(){_.Bg("cpt");var O=_.x0("vpl"),b=_.x0("cpt");O&&b&&_.Bg("ol",Math.max(O,b))})});
try{_.Bg("fr_s"),W()}catch(O){_.Dt(O)}_.i1.requestAnimationFrame(function(){_.Bg("bcp")})},aQ8=function(W,O){W.serviceEndpointHandlers.push(O)},meB=function(W,O){O=W.pendingPages_.indexOf(O);
O>-1&&W.pendingPages_.splice(O,1)},Yl5=function(W,O){var b=_.QjN.indexOf(O);
b>-1&&_.QjN.splice(b,1);W.targetPage_==O?(W.abort(),_.sjn(W)):meB(W,O)},EI5=function(W,O,b,T){O={challenge:O};
b&&(O.webResponse=b);return _.QR(W.innertubeTransportService,O,_.JH(z3U),T)},w_R=function(W,O,b){if(!O.challenge)throw Error("mi");
if(O.botguardData&&O.botguardData.program){var T=new rog;T.initialize(O.botguardData,function(){xdD(T,{atr_challenge:O.challenge}).then(function(L){if(!L)throw Error("ni");return EI5(W,O.challenge,L,b)}).catch(function(L){_.z5(L);
return EI5(W,O.challenge,void 0,b)})},void 0)}else EI5(W,O.challenge,void 0,b)},A1P=function(W,O,b){var T={};
O.ids&&(T.ids=[].concat(_.PG(O.ids)));O.engagementType&&(T.engagementType=O.engagementType);return _.QR(W.innertubeTransportService,T,_.JH(_.Phq),b).then(function(L){if(!L)throw new _.pu("GetAttestationChallenge returned falsy");w_R(W,L,b)}).thenCatch(function(L){_.Dt(L)})},X_8=function(W,O,b){return new _.mJ(function(T,L){var h;
return _.I(function(Z){if(Z.nextAddress==1){var a=O.engagementType,m=O.ids,w={};m=_.S(m!=null?m:[]);for(var A=m.next();!A.done;A=m.next())A=A.value,A.encryptedVideoId?w.encryptedVideoId=A.encryptedVideoId:A.externalChannelId?w.externalChannelId=A.externalChannelId:A.commentId?w.commentId=A.commentId:A.externalOwnerId?w.externalOwnerId=A.externalOwnerId:A.artistId?w.artistId=A.artistId:A.playlistId?w.playlistId=A.playlistId:A.externalPostId?w.externalPostId=A.externalPostId:A.shareId&&(w.shareId=A.shareId);
return _.Y(Z,QWR(a,w),2)}h=Z.yieldResult;if(!h.challenge)return _.z5(Error("oi")),A1P(W,O,b).then(T,L),Z.return();a=h;w={challenge:a.challenge};w.webResponse=a.webResponse;w.engagementType=O.engagementType;w.ids=O.ids;_.QR(W.innertubeTransportService,w,_.JH(z3U),b).then(T,L);_.aD(Z)})})},qkg=function(W,O){var b,T,L,h;
_.I(function(Z){if(Z.nextAddress==1){b=_.P(O,_.EsN);if(!(b&&b.listId&&W.response&&W.response.playingVideoId)||W.listId!==b.listId)return Z.return();W.index===void 0&&(W.index=0);return _.Y(Z,_.fX$(W.JSC$10804_playlistNetworkManager,b.listId,W.index,W.response.playingVideoId),2)}T=Z.yieldResult;if(!T)return Z.return();L=T.playlistId;h=T.playlistPanelRenderer;W.setPlaylistData(L,h,T.autoplayRenderer);_.aD(Z)})},Ue2=function(W,O,b){var T=W.getParams(b),L=_.gyi(O,T),h=W.getTempData(O,b);
h.endpoint=JSON.stringify(O);_.e("enable_unknown_lact_fix_on_html5")&&(_.iq().resolve(_.Qa),h.lact=_.by());var Z={headers:{"X-YouTube-STS":_.Cv("STS"),"x-youtube-csoc":1}};_.JC(L,h);return new _.mJ(function(a,m){var w=W.getXhrParams(T),A;_.e("kevlar_cache_on_ttl_player")&&(A=_.Y_.instance);A&&_.SSU(A,O)?_.AD7(A,O,h,window.location.href).then(function(X){X?a(X):m()},m):_.gtq(W.JSC$11050_networkManager_,O,w,W.onPartsCallback_.bind(W),Z).then(function(X){X?a(X):m()},m)})},lQD=function(W,O){W.triggerPromise_=
O.start();
W.triggerPromise_.then(function(b){var T=W.prefetchEndpointProvider_.getPrefetchEndpoint();if(T){var L=M48[W.prefetchJobConfig_.pageType].prefetchedFragments;W.prefetchRequestPromise_=Ue2(W.JSC$11086_networkPrefetchRequest_,T,{fragmentsRequested:L,timeBeforeNextVideo:b});W.prefetchResponseCacheKey_=W.JSC$11086_networkPrefetchRequest_.getCacheKeyForEndpoint(T);L58(W);W.prefetchRequestPromise_.then(function(h){W.storePrefetchedDataCallback_(W.prefetchResponseCacheKey_,h);if(_.e("web_prefetch_preload_video")&&
L.length===1&&L[0]==="pl"&&h&&!h.playerAds&&!h.adPlacements){var Z=_.P(T,_.l8),a=Z!=null,m={raw_player_response:h,watch_endpoint:Z};(h=_.iq().resolve(a?_.pw7:_.jk))&&T&&h.then(function(w){a&&_.e("web_queue_preload_video")?(m.prefer_gapless=!0,w.queueNextVideo(m)):w.preloadVideoByPlayerVars(m)})}})}})},IZ=function(W,O,b,T){this.prefetchEndpointProvider_=W;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=O;this.prefetchJobConfig_=b;this.JSC$11086_networkPrefetchRequest_=T;this.prefetchResponseCacheKey_=null};
IZ.prototype.enqueue=function(){this.triggerPromise_||(lQD(this,Ti7(this)),_.Rx(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
IZ.prototype.resolve=function(){this.cancel()};
IZ.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.");L58(this)};
IZ.prototype.onVisibilityChange_=function(){var W=this;_.fv(_.GhP)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){W.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||lQD(this,Ti7(this))};
eX9=function(W,O,b,T,L){O&&(O==null?0:O.videoId)&&b&&b.entries&&_.e("kevlar_enable_shorts_prefetch_in_sequence")&&(SlR(W),O=b.entries.map(function(h){var Z;return(Z=_.P(h.command,_.l8))==null?void 0:Z.videoId}).indexOf(O.videoId),b=b.entries[O+1],b!=null&&b.command&&!_.P(b==null?void 0:b.command,_.Qg)&&(T=new b2g([b.command],new JoP(T,_.sF,1),null,"shorts",!1),W.pendingPrefetchJob_=new IZ(new i2D(T.autonavEndpoints),function(){return!1},T,new ZT(L)),W.pendingPrefetchJob_.enqueue()))};
PmB=function(W,O,b,T,L,h){var Z=_.NN.getInstance();if(!_.e("block_all_player_prefetch_requests")){SlR(W);var a=!!b.getPlaylistId(),m=b.getVideoData().isLive&&b.getVideoData().hasProgressBarBoundaries;if((Z.getState()==2||a||m)&&(!b.getVideoData().isLive||m)){Z={inPlaylist:a,videoDuration:b.getDuration(),makeUpNextTrigger:function(A){return new hX5(b,_.sF,A)},
makePlaybackTrigger:function(A){return new JoP(b,_.sF,A)}};
var w=jiB(O,Z);w&&(W.pendingPrefetchJob_=new IZ(w.isInPlaylist?new O2U(L):new i2D(w.autonavEndpoints),function(A,X){X=new yoU(M48[w.pageType].pageFragments,M48[w.pageType].prefetchedFragments,X);return _.eYz(X)?(W.prefetchCache_.set(A,X),!0):!1},w,new hb(T,b,h,L)),W.pendingPrefetchJob_.enqueue())}}};
p_g=function(){var W=_.xP();W.signals.parkOrScheduleJob(function(){var O=W.storage;if(O.storage)if(GFN(O)){var b=O.getPlaylistId();O=H_B(O);b=!!b&&O!==void 0}else O.clear(),b=!1;else b=!1;if(b){b=W.pageManager.isOnWatch();a:{var T=W.storage;if(T.storage&&GFN(T)&&(O=T.getPlaylistId(),T=H_B(T),O&&T!==void 0)){b={recoverPlaylistCommand:{listId:O,index:T,openMiniplayer:!b,openListPanel:b,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}b=void 0}b&&_.o$(W.JSC$10804_actionRouter,[b],null)}},0,"ma")};
RXg=function(W,O,b,T,L,h){var Z=_.gd(7111);_.jn(W.JSC$16097_screenManager,Z,h?_.Pi(h):void 0);_.LK(W.JSC$16097_screenManager,Z,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:T,offlineId:O,offlineabilityFormatType:b,isDefaultFormatType:L==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:L}})};
K5B=function(W,O,b,T,L){var h,Z,a,m,w;return _.I(function(A){if(A.nextAddress==1)return _.Y(A,W.JSC$16097_playerApiPromise,2);h=A.yieldResult;RXg(W,O,b,"OFFLINE_OBJECT_TYPE_PLAYLIST",T,L);if(a=_.m5q[W.entityTypeMap.listEntityType])w={},Z=(w[a]={maximumDownloadQuality:(m=b)!=null?m:void 0},w);return _.Y(A,h.queueOfflineAction(O,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Z),0)})};
vI1=function(W,O){var b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,W.JSC$16097_persistentStorePromiseAccessor(),2);if(Z.nextAddress!=3){b=Z.yieldResult;if(!b)return _.z5(new _.pu("PES is undefined")),Z.return();T=_.Z5(O,"downloadStatusEntity");return _.Y(Z,frN(b,T,"downloadStatusEntity"),3)}L=Z.yieldResult;return Z.return((h=L)==null?void 0:h.downloadState)})};
gI7=function(W,O,b,T,L){var h,Z,a,m,w,A;return _.I(function(X){switch(X.nextAddress){case 1:return _.Y(X,W.JSC$16097_playerApiPromise,2);case 2:h=X.yieldResult;RXg(W,O,b,"OFFLINE_OBJECT_TYPE_VIDEO",T,L);if(a=_.m5q[W.entityTypeMap.singleEntityType])w={},Z=(w[a]={maximumDownloadQuality:(m=b)!=null?m:void 0},w);return _.Y(X,vI1(W,O),3);case 3:A=X.yieldResult;if(A!=="DOWNLOAD_STATE_USER_DELETED"){X.jumpTo(4);break}return _.Y(X,W.deleteVideo(O),4);case 4:return _.Y(X,h.queueOfflineAction(O,W.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",Z),0)}})};
oIk=function(W,O,b,T,L){return _.I(function(h){return h.nextAddress==1?_.Y(h,W.deleteVideo(O,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.Y(h,gI7(W,O,b,T,L),0)})};
Qi7=function(W,O,b){var T,L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.JSC$16097_playerApiPromise,2);T=h.yieldResult;L=_.Z5(O,"mainVideoDownloadStateEntity");return _.Y(h,T.updateDownloadState(L,b),0)})};
K_7=function(W){var O=_.iq().resolve(_.Jl);return _.I(function(b){if(b.nextAddress==1)return O.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&O.previousDownloadStateForVideo[W]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?b.jumpTo(2):_.Y(b,O.resumeVideoDownload(W),2);if(b.nextAddress!=4)return _.Y(b,Qi7(O,W,O.previousDownloadStateForVideo[W]),4);delete O.previousDownloadStateForVideo[W];_.aD(b)})};
pS8=function(W,O){var b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$16097_playerApiPromise,2);b=T.yieldResult;return _.Y(T,b.queueOfflineAction(O,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
l5B=function(){var W=_.iq().resolve(_.Jl),O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$16097_playerApiPromise,2);if(T.nextAddress!=3)return O=T.yieldResult,b={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.Y(T,O.queueOfflineAction("!*$_ALL_ENTITIES_!*$",W.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),3);var L=W.JSC$16097_commandHandler,h=L.resolveCommand,Z=_.EO("DELETING_ALL",void 0,"Downloads are being deleted");
h.call(L,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iv(Z)}},popupType:"TOAST"}});_.aD(T)})};
k02=function(W){var O,b;return _.I(function(T){if(T.nextAddress==1)return _.Y(T,W.JSC$16097_prefStorage,2);O=T.yieldResult;return T.return((b=O)==null?void 0:b.get("sdois"))})};
sig=function(W){var O,b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return _.Y(a,W.JSC$16097_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){O=a.yieldResult;if(!O)return _.z5(new _.pu("PES is undefined")),a.return();b=_.Z5("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.Y(a,frN(O,b,"settingEntity"),3)}T=a.yieldResult;return a.return((Z=(L=T)==null?void 0:(h=L.settingOptionValue)==null?void 0:h.boolValue)!=null?Z:!1)})};
Big=function(W,O){var b,T,L,h;return _.I(function(Z){switch(Z.nextAddress){case 1:return((b=O)==null?void 0:b.formatType)===void 0?Z.return():_.Y(Z,W.JSC$16097_prefStorage,2);case 2:T=Z.yieldResult;if(T===void 0)return Z.return();if(((L=O)==null?void 0:L.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.Y(Z,T.set("lmqf",O.formatType),8);if(((h=O)==null?void 0:h.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){Z.jumpTo(0);break}return _.Y(Z,T.set("lmqf",O.formatType),
6);case 6:return _.Y(Z,T.set("lmqflst",Math.floor((0,_.WO)())),0);case 8:return _.Y(Z,T.remove("lmqflst"),0)}})};
r1g=function(W){var O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,W.JSC$16097_prefStorage,2);case 2:O=T.yieldResult;if(!O){T.jumpTo(3);break}return _.Y(T,O.get("lmqflst"),4);case 4:if(b=T.yieldResult,b!==void 0)return T.return(b);case 3:return T.return(0)}})};
De1=function(W){var O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,W.JSC$16097_prefStorage,2);case 2:O=T.yieldResult;if(O===void 0){T.jumpTo(3);break}return _.Y(T,O.get("lmqf"),4);case 4:if(b=T.yieldResult,b!==void 0)return T.return(b);case 3:return T.return("SD")}})};
rHg=function(W,O,b){var T,L,h,Z,a,m,w,A;_.I(function(X){switch(X.nextAddress){case 1:return _.Y(X,Big(W,(T=O)==null?void 0:T.actionParams),2);case 2:L=O.playlistId;if(!L)return X.return();if(O.action==="ACTION_ADD")return((Z=O.actionParams)==null?0:Z.formatType)?_.Y(X,K5B(W,L,O.actionParams.formatType,(A=O.actionParams)==null?void 0:A.settingsAction,b),0):_.Y(X,W.offlineWebClientEligibility,14);if(O.action==="ACTION_REMOVE_WITH_PROMPT"){var l=W.JSC$16097_commandHandler,p=l.resolveCommand,K=_.Cv("INNERTUBE_CLIENT_NAME");
var k=K==="WEB_REMIX"?_.EO("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.EO("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var r=K==="WEB_REMIX"?[_.EO("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];K=K==="WEB_REMIX"?_.EO("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.EO("DELETE",void 0,"Delete");var q=_.EO("CANCEL",void 0,"Cancel");k=kT1(k,r,K,q,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:L});p.call(l,{openPopupAction:k});
return X.return()}if(O.action==="ACTION_REMOVE")return _.Y(X,pS8(W,L),0);if(O.action!=="ACTION_SYNC"){X.jumpTo(0);break}return _.Y(X,W.JSC$16097_playerApiPromise,9);case 9:return h=X.yieldResult,_.Y(X,h.queueOfflineAction(L,W.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return a=X.yieldResult,_.Y(X,De1(W),15);case 15:return m=X.yieldResult,_.Y(X,r1g(W),16);case 16:w=X.yieldResult,O.onAddCommand&&W.JSC$16097_commandHandler.resolveCommand(O.onAddCommand,{form:{preferredFormatType:m,
offlineWebClientEligibility:a,lastOfflineQualitySettingsSavedMs:w.toString()}}),X.jumpTo(0)}})};
sJD=function(W,O,b){var T,L,h,Z,a,m,w,A,X,l,p,K,k,r;_.I(function(q){switch(q.nextAddress){case 1:return _.Y(q,Big(W,(T=O)==null?void 0:T.actionParams),2);case 2:L=O.videoId;if(!L)return q.return();if(O.action==="ACTION_REMOVE_WITH_PROMPT"){var f=W.JSC$16097_commandHandler,M=f.resolveCommand,V=_.Cv("INNERTUBE_CLIENT_NAME");var jQ=V==="WEB_REMIX"?_.EO("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.EO("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var y=V==="WEB_REMIX"?[_.EO("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];V=V==="WEB_REMIX"?_.EO("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.EO("DELETE",void 0,"Delete");var d8=_.EO("CANCEL",void 0,"Cancel");jQ=kT1(jQ,y,V,d8,{signal:"DELETE_DOWNLOAD",targetId:L});M.call(f,{openPopupAction:jQ});return q.return()}if(O.action==="ACTION_ADD")return((l=O.actionParams)==null?0:l.formatType)?_.Y(q,gI7(W,L,O.actionParams.formatType,(r=O.actionParams)==null?void 0:r.settingsAction,b),0):_.Y(q,W.offlineWebClientEligibility,
23);if(O.action==="ACTION_RETRY")return _.Y(q,De1(W),19);if(O.action==="ACTION_PAUSE")return _.Y(q,W.pauseVideoDownload(L),0);if(O.action==="ACTION_RESUME")return _.Y(q,W.resumeVideoDownload(L),0);if(O.action!=="ACTION_REMOVE"){q.jumpTo(0);break}return _.Y(q,vI1(W,L),13);case 13:return h=q.yieldResult,W.previousDownloadStateForVideo[L]=(Z=h)!=null?Z:"DOWNLOAD_STATE_UNKNOWN",_.Y(q,Qi7(W,L,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(W.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
W.previousDownloadStateForVideo[L]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){q.jumpTo(15);break}return _.Y(q,W.pauseVideoDownload(L),15);case 15:f=_.EO("DELETED_VIDEO",void 0,"Video deleted from downloads.");M=_.EO("UNDO_ACTION",void 0,"Undo");jQ=_.EO("CLOSE",void 0,"Close");a={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iv(f),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iv(M),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:f+" "+M}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:L}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:jQ}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};W.JSC$16097_commandHandler.resolveCommand(a);
q.jumpTo(0);break;case 19:m=q.yieldResult;m==="UNKNOWN_FORMAT_TYPE"&&(m="SD");w="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((A=O.actionParams)==null?0:A.formatType)m=O.actionParams.formatType,w=(X=O.actionParams)==null?void 0:X.settingsAction;return _.Y(q,oIk(W,L,m,w,b),20);case 20:return q.return();case 23:return p=q.yieldResult,_.Y(q,De1(W),24);case 24:return K=q.yieldResult,_.Y(q,r1g(W),25);case 25:k=q.yieldResult,O.onAddCommand&&W.JSC$16097_commandHandler.resolveCommand(O.onAddCommand,
{form:{preferredFormatType:K,offlineWebClientEligibility:p,lastOfflineQualitySettingsSavedMs:k.toString()}}),q.jumpTo(0)}})};
xeg=function(W,O){var b,T,L,h,Z,a,m;return _.I(function(w){if(w.nextAddress==1)return _.Y(w,W.JSC$16097_persistentStorePromiseAccessor(),2);b=w.yieldResult;if(!b)return _.z5(new _.pu("PES is undefined")),w.return();if((T=O)==null||!T.settingItemId)return w.return();L=O;h=L.settingItemId;Z=L.boolValue;a=_.Z5(h,"settingEntity");m={key:a,settingOptionValue:{boolValue:Z}};return _.Y(w,n19(b,m),0)})};
zXD=function(W,O){var b,T,L,h,Z,a,m;return _.I(function(w){switch(w.nextAddress){case 1:return _.Y(w,W.JSC$16097_prefStorage,2);case 2:return b=w.yieldResult,T=_.Xt(),_.Y(w,W.JSC$16097_persistentStorePromiseAccessor(),3);case 3:return L=w.yieldResult,b?L?_.Y(w,b.get("sdois"),4):(_.z5(new _.pu("PES is undefined")),w.return()):(_.z5(new _.pu("prefStorage is undefined")),w.return());case 4:h=w.yieldResult;a=(Z=O)==null?void 0:Z.boolValue;a===void 0||_.e("kevlar_set_sd_enabled_flag_killswitch")||_.UO(0,
197,!0);h===void 0&&a===void 0&&(a=!1);if(a===void 0){w.jumpTo(0);break}return _.Y(w,b.set("sdois",a),6);case 6:return _.e("kevlar_set_sd_enabled_flag_killswitch")||(_.UO(0,196,a),T.save()),m={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:a},_.Y(w,xeg(W,m),0)}})};
CmZ=function(W,O,b){var T,L,h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:return _.Y(m,k02(W),2);case 2:return T=m.yieldResult,_.Y(m,zXD(W,b),3);case 3:return _.Y(m,k02(W),4);case 4:return L=m.yieldResult,h=L!==T,_.Y(m,sig(W),5);case 5:Z=m.yieldResult&&!_.e("kevlar_modern_downloads_page");if((a=!L&&!Z)||h)return _.Y(m,O.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);m.jumpTo(0)}})};
g9g=function(){var W=_.iq().resolve(_.Jl),O;_.I(function(b){switch(b.nextAddress){case 1:return _.Y(b,W.JSC$16097_playerApiPromise,2);case 2:O=b.yieldResult;if(!_.e("kevlar_force_refresh_smart_downloads")){b.jumpTo(3);break}return _.Y(b,O.refreshAllStaleEntities(0),4);case 4:return b.return();case 3:return _.Y(b,O.refreshAllStaleEntities(),5);case 5:return _.Y(b,CmZ(W,O),0)}})};
xXN=function(W,O){var b,T;_.I(function(L){switch(L.nextAddress){case 1:return _.Y(L,W.JSC$16097_playerApiPromise,2);case 2:b=L.yieldResult;switch((T=O)==null?void 0:T.settingItemId){case "SMART_DOWNLOADS_ENABLED":return L.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return L.jumpTo(4)}L.jumpTo(0);break;case 3:return _.Y(L,CmZ(W,b,O),6);case 6:L.jumpTo(0);break;case 4:return _.Y(L,xeg(W,O),7);case 7:L.jumpTo(0)}})};
qlD=function(W,O){var b,T,L;return _.I(function(h){if(h.nextAddress==1)return _.Y(h,W.JSC$16097_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3){b=h.yieldResult;if(!b)return _.z5(new _.pu("PES is undefined")),h.return(!1);if(!O)return h.return(!1);T=_.Z5(O,"mainVideoEntity");return _.Y(h,frN(b,T,"mainVideoEntity"),3)}L=h.yieldResult;return h.return(L!==void 0)})};
Cvk=function(W){var O=_.iq().resolve(_.Jl),b,T,L,h,Z,a,m,w,A,X,l;_.I(function(p){switch(p.nextAddress){case 1:return _.Y(p,O.JSC$16097_playerApiPromise,2);case 2:b=p.yieldResult;L=(T=W)==null?void 0:T.actions;if(!L)return p.return();h=_.S(L);Z=h.next();case 3:if(Z.done){p.jumpTo(0);break}a=Z.value;w=m=void 0;if(!(((m=a)==null?0:m.entityKey)&&((w=a)==null?0:w.actionType))){p.jumpTo(4);break}A=_.dm(a.entityKey);X=A.entityId;l=A.entityType;return _.Y(p,b.queueOfflineAction(X,l,a.actionType),4);case 4:Z=
h.next(),p.jumpTo(3)}})};
nIB=function(W,O){var b,T,L,h,Z;return _.I(function(a){if(a.nextAddress==1)return _.Y(a,W.JSC$16097_prefStorage,2);if(a.nextAddress!=3)return(b=a.yieldResult)?_.Y(a,b.get("psi"),3):a.return();T=a.yieldResult;Z={isPaused:O,lastSyncTimestamp:(h=(L=T)==null?void 0:L.lastSyncTimestamp)!=null?h:"0"};return _.Y(a,b.set("psi",Z),0)})};
f5k=function(W){var O=_.iq().resolve(_.Jl),b,T,L,h,Z,a,m,w;return _.I(function(A){switch(A.nextAddress){case 1:return _.Y(A,O.JSC$16097_playerApiPromise,2);case 2:b=A.yieldResult;L=((T=W)==null?void 0:T.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((a=W)==null?void 0:a.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":h="!*$_ALL_ENTITIES_!*$";Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return A.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return A.jumpTo(4)}A.jumpTo(5);break;case 3:return _.Y(A,nIB(O,L),6);case 6:A.jumpTo(5);break;case 4:return _.Y(A,qlD(O,(m=W)==null?void 0:m.videoId),7);case 7:A.yieldResult&&(h=(w=W)==null?void 0:w.videoId,Z="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");A.jumpTo(5);break;case 5:if(h&&Z)return _.Y(A,b.queueOfflineAction(h,"videoPlaybackPositionEntity",Z),0);A.jumpTo(0)}})};
fQD=function(W,O){var b;O!==1||((b=W.currentPersistentToast)==null?0:b.isOpened())?W.openToast():W.currentPersistentToast=void 0};
G02=function(){var W,O,b,T;return _.I(function(L){if(L.nextAddress==1)return W=navigator,(O=W.storage)!=null&&O.persisted?_.Y(L,(b=W.storage)==null?void 0:b.persisted(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");T=L.yieldResult;return L.return(T?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
H2g=function(){var W,O,b,T;return _.I(function(L){if(L.nextAddress==1)return W=navigator,(O=W.storage)!=null&&O.persist?_.Y(L,(b=W.storage)==null?void 0:b.persist(),2):L.return("PERSISTED_STATE_NOT_SUPPORTED");T=L.yieldResult;return L.return(T?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
tlP=function(){var W,O;return _.I(function(b){switch(b.nextAddress){case 1:return W="PERSISTED_STATE_NOT_SUPPORTED",_.LI(b,2),_.Y(b,G02(),4);case 4:W=b.yieldResult;if(W!=="PERSISTED_STATE_NOT_GRANTED"){b.jumpTo(5);break}return _.Y(b,H2g(),6);case 6:W=b.yieldResult;case 5:_.H3(b,3);break;case 2:O=_.ID(b),O instanceof Error&&_.Dt(O);case 3:return _.BZ("persistentStorageStateChecked",{persistedState:W}),b.return(W)}})};
$eB=function(W,O){var b=[],T=!1;O=_.S(O);for(var L=O.next();!L.done;L=O.next()){L=W.moduleRegistry[L.value];var h=void 0,Z=void 0;((h=L)==null?0:h.isFetching)&&((Z=L)==null?0:Z.resolver)?(b.push(L.resolver.promise),T=!0):(L=new _.S4,L.resolve(void 0),b.push(L.promise))}return T?Promise.all(b):void 0};
VlB=function(W,O,b){b=b===void 0?{}:b;var T=W.defaultViewTransitionOptions,L=O.map(function(Z){return Z.beforeTransition}),h=O.map(function(Z){return Z.afterTransition});
return Object.assign({},T,b,{beforeTransition:function(){var Z;(Z=T.beforeTransition)==null||Z.call(T);var a,m;(m=(a=b).beforeTransition)==null||m.call(a);Z=_.S(L);for(a=Z.next();!a.done;a=Z.next())a=a.value,a()},
afterTransition:function(){var Z;(Z=T.afterTransition)==null||Z.call(T);var a,m;(m=(a=b).afterTransition)==null||m.call(a);Z=_.S(h);for(a=Z.next();!a.done;a=Z.next())a=a.value,a()}})};
Ni8=function(W,O,b){var T,L,h,Z,a,m,w;_.I(function(A){if(W.config.disableAllTransitions)return A.return(O());if((T=b)==null||!T.transitionName)return A.return(_.cAB(O,(L=b)==null?void 0:L.viewTransitionOptions));h=b;Z=h.transitionName;a=h.viewTransitionOptions;m=W.config.transitionConfigs.get(Z);if(!m)return A.return(O());var X;w=(X=W.transitionTasksMap.get(Z))!=null?X:[];return A.return(_.cAB(O,VlB(m,w,a)))})};
JQ=function(W,O,b){W.transitionTasksMap.has(O)?W.transitionTasksMap.get(O).push(b):(W=new _.pu("Transition task registered for unknown transition name",O),_.Dt(W))};
MlD=function(W,O,b){if(W.isInitialized()){var T=OX(b),L=T==="watch";T=T==="shorts";var h=OX(O)==="watch";if(L)h||(W.backgroundPageData=O),W.watchPipMode&&h||W.deactivate(b.endpoint);else if(T){if(OX(O)!=="shorts"){var Z;(Z=W.getPlayerElement())==null||Z.pause()}}else h&&!W.watchPipMode&&(B02(O,b)?(W.watchWhileMode&&_.yg5(W,!1),_.Ng5(W,O)):W.isMiniplayerActive()&&W.watchWhileMode&&W.deactivate());h&&_.O0g(W);W.shortsPipMode&&!T&&(window.focus(),W.deactivate());if(W.pictureInPictureEnabled())if(T&&
W.shortsPipEnabled||L&&W.watchPipEnabled)_.f4T(W.handleMediaSessionPipActivation);else if(!W.isMiniplayerActive()&&(W.shortsPipEnabled||W.watchPipEnabled)&&window.documentPictureInPicture&&_.se()&&_.IiX("Chromium")>=120){W=_.nji().mediaSession;try{W.setActionHandler("enterpictureinpicture",null)}catch(a){}}}};
uTg=function(W,O){var b,T;_.I(function(L){if(L.nextAddress==1){if(!W||!W.navigationEndpoint)return L.return();_.IT().lockupActivation=!0;var h;O?h=_.VV(_.EO("QUEUE",void 0,"Queue")):h=W.longBylineText;T=(b=h)&&W.title?{miniplayerTitle:W.title,miniplayerSubtitle:b,playlistData:null}:void 0;return _.Y(L,_.dKw(_.iq().resolve(_.xq),W.navigationEndpoint,!0,T),2)}_.IT().userActivation=!0;_.aD(L)})};
xp5=function(W,O){var b,T,L,h,Z,a;_.I(function(m){if(m.nextAddress==1){b=_.P(O,_.Y37);if(!b||!b.listId)return m.return();W.index=b.index||W.index||0;T=W.response&&W.response.playingVideoId||void 0;return _.Y(m,_.fX$(W.JSC$10804_playlistNetworkManager,b.listId,W.index,T),2)}L=m.yieldResult;if(!L)return m.return();h=L.playlistId;Z=L.playlistPanelRenderer;!W.queueProxy&&h&&Z&&h.startsWith("TLPQ")&&(W.queueProxy=new _.gk(W.JSC$10804_playlistNetworkManager,h,W.setPlaylistData.bind(W),W.clearQueue.bind(W),
_.cpE(Z),W.storage));if(b.openMiniplayer&&(a=_.Fr8(Z))&&!W.pageManager.isOnWatch()){var w=a,A=b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";W.isMiniplayerActive()?W.openToast(w):uTg(w,A)}W.setPlaylistData(h,Z,L.autoplayRenderer);_.aD(m)})};
BlP=function(W,O){var b=_.xP();b.index===void 0&&(b.index=0);b.temporaryItems.push.apply(b.temporaryItems,_.PG(W));if((O.videoId||O.videoIds)&&b.index!==void 0&&O.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!b.queueProxy){var T=[];if(b.response){var L=_.iq().resolve(_.xq).isMiniplayerActive();if(b.response.playlistPanelRenderer&&b.response.playlistId&&!b.response.playlistId.startsWith("TLPQ")){if(b.pageManager.isOnWatch()||L)T=_.cpE(b.response.playlistPanelRenderer)}else b.response.playingVideoId&&
!O.openMiniplayer?T.push(b.response.playingVideoId):L&&b.response.playingVideoId&&O.openMiniplayer&&T.push(b.response.playingVideoId)}b.queueProxy=new _.gk(b.JSC$10804_playlistNetworkManager,"",b.setPlaylistData.bind(b),b.clearQueue.bind(b),T,b.storage);b.queueProxy.JSC$10750_setCurrentIndex(b.index)}b.queueProxy.addVideos(O.videoIds||[O.videoId],O)}t4R(b,W);b.response&&_.zn(b,_.CK(b,b.response.autoplayRenderer));b.pageManager.isOnWatch()?b.isMiniplayerActive()&&b.openToast(W[0]):(W=W[0],O=O.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",b.isMiniplayerActive()?b.openToast(W):uTg(W,O))};
J19=function(W){var O=_.U5(W);if(O=="object"||O=="array"){if(typeof W.clone==="function")return W.clone();if(typeof Map!=="undefined"&&W instanceof Map)return new Map(W);if(typeof Set!=="undefined"&&W instanceof Set)return new Set(W);O=O=="array"?[]:{};for(var b in W)O[b]=J19(W[b]);return O}return W};
aZ=function(W,O){return _.uOT(_.mD(W,O,void 0,_.a6))};
me=function(W,O){return _.gg(_.mD(W,O,void 0,_.a6))};
Yx=function(W,O){return _.YvE(_.mD(W,O,void 0,_.a6))};
Ef=function(W,O){return _.mD(W,O,void 0,_.a6,_.E5)};
c1N=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;_.u_(O,b,_.Db(W.decoder_,_.jB));return!0},_.yf,_.q$);
F5g=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.Db(W.decoder_,_.jB));return!0},_.yf,_.q$);
y1D=_.NA(function(W,O,b){if(W.nextWireType_!==1)return!1;var T=W.decoder_;W=_.Cf(T);T=_.Cf(T);W=_.ik(W,T);_.u_(O,b,W);return!0},_.Nge,_.DF1);
WwP=_.NA(function(W,O,b){if(W.nextWireType_!==5)return!1;_.u_(O,b,_.Cf(W.decoder_));return!0},function(W,O,b){O=_.oN(O);
O!=null&&(_.JA(W,b,5),_.F5(W.encoder_,O))},_.rB8);
ObP=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;W=_.mF8(W.decoder_);_.u_(O,b,W===!1?void 0:W);return!0},_.MBe,_.QU2);
ibB=_.NA(function(W,O,b){if(W.nextWireType_!==2)return!1;W=_.UFO(W);_.u_(O,b,W===""?void 0:W);return!0},_.Jge,_.kmh);
bb9=_.NA(function(W,O,b){if(W.nextWireType_!==2)return!1;W=_.lnE(W);_.u_(O,b,W===_.fH()?void 0:W);return!0},_.F8Q,_.CAX);
jx8=_.Ck1(function(W,O,b){if(W.nextWireType_!==0&&W.nextWireType_!==2)return!1;O=_.gA(O,O[_.Qq]|0,b);W.nextWireType_==2?_.eEP(W,Xh8,O):O.push(_.xs(W.decoder_));return!0},function(W,O,b){O=_.zRT(_.gg,O,!0);
if(O!=null&&O.length){b=_.mZX(W,b);for(var T=0;T<O.length;T++)_.tB8(W.encoder_,O[T]);_.Y52(W,b)}},_.qN2);
TGD=_.NA(function(W,O,b){if(W.nextWireType_!==0)return!1;W=_.xs(W.decoder_);_.u_(O,b,W===0?void 0:W);return!0},_.yge,_.qN2);
Lw9=_.NA(function(W,O,b,T){if(W.nextWireType_!==0)return!1;_.XS(O,b,T,_.xs(W.decoder_));return!0},_.yge,_.qN2);
_.V0=function(W){this.privateDoNotAccessOrElseWrappedStyleSheet=W};
_.V0.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var tHD=function(W,O){return new _.Kw(W.x+O.x,W.y+O.y)},dqU=function(W){return W.previousElementSibling!==void 0?W.previousElementSibling:_.tQ9(W.previousSibling,!1)},hb2=function(W,O){var b=[];
for(O=O||0;O<W.length;O+=2)_.B1$(W[O],W[O+1],b);return b.join("&")},SzR=function(W,O){var b=arguments.length==2?hb2(arguments[1],0):hb2(arguments,1);
return _.s71(W,b)},ZbD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ZbD,_.qA);ZbD.prototype.getValue=function(){var W=_.mD(this,2);if(Array.isArray(W)||W instanceof _.qA)throw Error("aa");return _.wQ(this,2)};
var S05=function(){var W=_.TF();this.JSC$7918_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.jr("channel_type"))};
S05.prototype.increment=function(W){this.JSC$7918_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",W)};
var ZP2=function(){var W=_.TF();this.JSC$7921_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.jr("channel_type"))};
ZP2.prototype.increment=function(W){this.JSC$7921_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",W)};
var aF1=function(){var W=_.TF();this.JSC$7924_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.jr("channel_type"))};
aF1.prototype.increment=function(W){this.JSC$7924_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",W)};
var IF5=function(){var W=_.TF();this.JSC$7927_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
IF5.prototype.increment=function(){this.JSC$7927_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var myR=function(){var W=_.TF();this.JSC$7930_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.jr("channel_type"),_.jr("error_type"))};
myR.prototype.increment=function(W,O){this.JSC$7930_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",W,O)};
var Y0B=function(){var W=_.TF();this.JSC$7933_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Y0B.prototype.increment=function(){this.JSC$7933_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var EF1=function(){var W=_.TF();this.JSC$7936_streamzService=W;W.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
EF1.prototype.increment=function(){this.JSC$7936_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var LmR=function(){var W=_.TF();this.JSC$7942_streamzService=W;W.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
LmR.prototype.increment=function(){this.JSC$7942_streamzService.JSC$7791_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var I69=function(W){return W.getCount&&typeof W.getCount=="function"?W.getCount():_.j5(W)||typeof W==="string"?W.length:_.PQ.getCount(W)},a65=function(W,O){if(typeof W.every=="function")return W.every(O,void 0);
if(_.j5(W)||typeof W==="string")return Array.prototype.every.call(W,O,void 0);for(var b=_.v39(W),T=_.$H(W),L=T.length,h=0;h<L;h++)if(!O.call(void 0,T[h],b&&b[h],W))return!1;return!0},mq7=function(W,O,b,T){var L=new _.Np(null);
W&&_.VQ(L,W);O&&_.Nn(L,O);b&&_.Mn(L,b);T&&_.uE(L,T);return L},YzZ=function(){var W=_.zZ&&_.w8(_.qo$,10)>=0,O;
if(O=_.gwQ)O=_.w8(_.Ctq,10)>=0;var b=_.Sb&&_.w8(_.qo$,85)>=0;return _.TR||W||O||b},Ey7=function(W){var O=_.aSL(W);
return O&&YzZ()?-W.scrollLeft:O&&_.n5(W,"overflowX")!="visible"?W.scrollWidth-W.clientWidth-W.scrollLeft:W.scrollLeft},wi7=function(W,O){O=Math.max(O,0);
_.aSL(W)?YzZ()?W.scrollLeft=-O:W.scrollLeft=W.scrollWidth-O-W.clientWidth:W.scrollLeft=O},MsN=0,y_g=!1;
bl.prototype.set=function(W){this.relativeTimeStart_=W};
bl.prototype.reset=function(){this.set(_.yG())};
bl.prototype.get=function(){return this.relativeTimeStart_};
var A4k=null,Xig=function(){A4k||(A4k=new bl)},Uqg=function(){A4k||(A4k=new bl)};
_.Wk(Uqg,Xig);_.d=Oug.prototype;_.d.JSC$9260_buffer_="";_.d.set=function(W){this.JSC$9260_buffer_=""+W};
_.d.append=function(W,O,b){this.JSC$9260_buffer_+=String(W);if(O!=null)for(var T=1;T<arguments.length;T++)this.JSC$9260_buffer_+=arguments[T];return this};
_.d.clear=function(){this.JSC$9260_buffer_=""};
_.d.getLength=function(){return this.JSC$9260_buffer_.length};
_.d.toString=function(){return this.JSC$9260_buffer_};
var l6N=function(){var W={type:"unit",style:"narrow"};this.listType_=W&&W.type?W.type:"conjunction";this.listStyle_=W&&W.style?W.style:"long";this.listSymbols_=KmP;W=0;switch(this.listStyle_){case "short":W=1;break;case "narrow":W=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[W];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[W];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=
this.listSymbols_.AND_END[W];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[W];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[W];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[W];this.listEndPattern_=this.listSymbols_.OR_END[W];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[W],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[W],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[W],this.listEndPattern_=this.listSymbols_.UNIT_END[W]}};
l6N.prototype.format=function(W){return ebg(this,W)};
var ebg=function(W,O){var b=O.length;switch(b){case 0:return"";case 1:return String(O[0]);case 2:return W.listTwoPattern_.replace("{0}",String(O[0])).replace("{1}",String(O[1]))}for(var T=W.listStartPattern_.replace("{0}",String(O[0])).replace("{1}",String(O[1])),L=2;L<b-1;++L)T=W.listMiddlePattern_.replace("{0}",T).replace("{1}",String(O[L]));return W.listEndPattern_.replace("{0}",T).replace("{1}",String(O[b-1]))},ALN=function(){var W={style:1};
this.style_=(W==null?void 0:W.style)||0;this.durationSymbols_=_.Eoz||_.UXN},PjB=function(W,O){switch(O){default:case "years":return W.durationSymbols_.YEAR;
case "months":return W.durationSymbols_.MONTH;case "weeks":return W.durationSymbols_.WEEK;case "days":return W.durationSymbols_.DAY;case "hours":return W.durationSymbols_.HOUR;case "minutes":return W.durationSymbols_.MINUTE;case "seconds":return W.durationSymbols_.SECOND}},wX=function(W,O,b){a:{b=PjB(W,b);
switch(W.style_){case 1:if(b.LONG!=void 0){W=b.LONG;break a}case 2:if(b.NARROW!=void 0){W=b.NARROW;break a}default:W=b.SHORT;break a}W=void 0}return W?(new _.Gc7("{DURATION_VALUE,plural,"+W+"}")).format({DURATION_VALUE:O}):""};
ALN.prototype.format=function(W){var O=[],b=W.years,T=W.months,L=W.weeks,h=W.days,Z=W.hours,a=W.minutes;W=W.seconds;b!=null&&O.push(wX(this,b,"years"));T!=null&&O.push(wX(this,T,"months"));L!=null&&O.push(wX(this,L,"weeks"));h!=null&&O.push(wX(this,h,"days"));Z!=null&&O.push(wX(this,Z,"hours"));a!=null&&O.push(wX(this,a,"minutes"));W!=null&&O.push(wX(this,W,"seconds"));return(new l6N).format(O)};
var pi9=!1,hqD=function(W){_.W2.call(this,W.message||W.description||W.name);this.isMissing=W instanceof jc;this.isTimeout=W instanceof _.Vi&&W.errorCode=="net.timeout";this.isCanceled=W instanceof _.$N};
_.R(hqD,_.W2);hqD.prototype.name="BiscottiError";var jc=function(){_.W2.call(this,"Biscotti ID is missing from server")};
_.R(jc,_.W2);jc.prototype.name="BiscottiMissingError";var TS=null,pbR=function(){try{var W=_.GT("yt.ads.biscotti.getId_");return W?W():fk5()}catch(O){return _.vi(O)}},w3Z,Rbk=function(W){return _.Tc({type:"SET_GUIDE_IS_EXPANDED",
payload:W})},Kw5=function(W){return _.Tc({type:"SET_ONLINE_STATUS",
payload:W})},vyR=function(W,O){return _.Tc({type:"SET_TRANSCRIPTION_STATE",
payload:{high:W,low:O}})},gyP=function(W){return _.Tc({type:"SET_OVERLAY_STATE",
payload:W})},oyD=0,QxR=function(W,O,b){var T=this;
this.priority=O;this.delay=b;this.jobId=0;this.completionCallback=_.mB;this.wrappedJob=function(){W();T.completionCallback()};
this.id=++oyD};
QxR.prototype.enqueue=function(W){this.completionCallback=W;this.jobId=_.sF.addJob(this.wrappedJob,this.priority,this.delay)};
var Ab=function(){_.cy.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.R(Ab,_.cy);Ab.prototype.addJob=function(W,O,b){W=new QxR(W,O,b);this.taskIdToTask.set(W.id,W);this.isActive?kHg(this,W):this.suspendedTasks.add(W);return W.id};
var kHg=function(W,O){W.scheduledTasks.add(O);O.enqueue(function(){W.scheduledTasks.delete(O)})};
Ab.prototype.cancelJob=function(W){(W=this.taskIdToTask.get(W))&&(this.scheduledTasks.delete(W)?_.sF.cancelJob(W.jobId):this.suspendedTasks.delete(W))};
Ab.prototype.pause=function(){var W=this;this.isActive=!1;this.scheduledTasks.forEach(function(O){_.sF.cancelJob(O.jobId);W.suspendedTasks.add(O)});
this.scheduledTasks.clear()};
Ab.prototype.start=function(){var W=this;this.isActive=!0;this.suspendedTasks.forEach(function(O){kHg(W,O)});
this.suspendedTasks.clear()};
Ab.prototype.reset=function(){this.scheduledTasks.forEach(function(W){_.sF.cancelJob(W.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Xf=function(W,O){this.JSC$10934_networkService_=W;this.pageRequestPromise=O};
Xf.prototype.fetchData=function(W){sxg(this,this.JSC$10934_networkService_.fetchData(W))};
Xf.prototype.postData=function(W,O){sxg(this,this.JSC$10934_networkService_.postData(W,O))};
Xf.prototype.requestDataForServiceEndpoint=function(W,O){sxg(this,this.JSC$10934_networkService_.requestDataForServiceEndpoint(W,O))};
var sxg=function(W,O){O.then(W.pageRequestPromise.onSuccess,W.pageRequestPromise.onFailure,W.pageRequestPromise)};
Xf.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var Uf=function(W){this.buildNetworkRequest_=W;this.pendingRequests_=new Set};
Uf.prototype.reset=function(){this.pendingRequests_.forEach(function(W){W.cancel()});
this.pendingRequests_.clear()};
Uf.prototype.fetchData=function(W){var O=BGR(this);O.fetchData(W);return O.pageRequestPromise};
Uf.prototype.postData=function(W,O){var b=BGR(this);b.postData(W,O);return b.pageRequestPromise};
Uf.prototype.requestDataForServiceEndpoint=function(W,O){var b=BGR(this);b.requestDataForServiceEndpoint(W,O);return b.pageRequestPromise};
var BGR=function(W){var O=W.buildNetworkRequest_();W.pendingRequests_.add(O);var b=function(){W.pendingRequests_.delete(O)};
O.pageRequestPromise.then(b,b);return O},r47=function(W){var O=new Ab;
this.JSC$10941_networkService_=W;this.JSC$10941_taskManager_=O;this.JSC$10941_networkManager_=new Uf(this.networkRequestFactory_.bind(this))};
_.d=r47.prototype;_.d.networkRequestFactory_=function(){return new Xf(this.JSC$10941_networkService_,new _.cH(this.JSC$10941_taskManager_))};
_.d.reset=function(){this.JSC$10941_taskManager_.reset();this.JSC$10941_networkManager_.reset()};
_.d.start=function(){this.JSC$10941_taskManager_.start()};
_.d.pause=function(){this.JSC$10941_taskManager_.pause()};
_.d.getTaskManager=function(){return this.JSC$10941_taskManager_};
_.d.getNetworkManager=function(){return this.JSC$10941_networkManager_};
var PqD=null,Kpg=[],L3=0,hQ=0,dI=null,DqN=!1,Sc=null,gv5=void 0,xqg=function(){var W=(0,_.WhN)();W&&g1P(W,W.mechanism.__iterator__(!0))},IX=function(W){this.token=W};
IX.getInstance=function(){var W;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.Fq(),2);W=O.yieldResult;if(!W)return O.return();IX.instance||(IX.instance=new IX(W));return O.return(IX.instance)})};
var rL5=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,kZ2(W.token),2);O=b.yieldResult;return b.return(O.clear("resource-manifest-assets"))})},Ze=function(W){this.token=W};
Ze.getInstance=function(){var W;return _.I(function(O){if(O.nextAddress==1)return _.Y(O,_.Fq(),2);W=O.yieldResult;if(!W)return O.return();Ze.instance||(Ze.instance=new Ze(W));return O.return(Ze.instance)})};
var seP=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,kZ2(W.token),2);O=b.yieldResult;return _.Y(b,O.clear("auth"),0)})},WYD=!1,zbg=function(W){_.W2.call(this,W)};
_.R(zbg,_.Ee9);var W1g=function(){var W=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return W?parseInt(W[1],10):0},Cj7=function(W){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+W)!=-1||document.currentScript.src.indexOf("&"+W)!=-1)},qzD=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Tlg=function(W){W.length?ny5(W.shift(),function(){Tlg(W)}):iqU()},dp2=function(W){return"chrome-extension://"+W+"/cast_sender.js"},ny5=function(W,
O,b){var T=document.createElement("script");
T.onerror=O;b&&(T.onload=b);_.fz(T,_.o8(W));(document.head||document.documentElement).appendChild(T)},f6D=function(){var W=W1g(),O=[];
if(W>1){var b=W-1;O.push("//www.gstatic.com/eureka/clank/"+W+"/cast_sender.js");O.push("//www.gstatic.com/eureka/clank/"+b+"/cast_sender.js")}return O},iqU=function(){var W=qzD();
W&&W(!1,"No cast extension found")},js9=function(){if(GHU){var W=2,O=qzD(),b=function(){W--;
W==0&&O&&O(!0)};
window.__onGCastApiAvailable=b;ny5("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",iqU,b)}},Oqk=function(){js9();
var W=f6D();W.push("//www.gstatic.com/eureka/clank/cast_sender.js");Tlg(W)},bqB=function(){js9();
var W=f6D();W.push.apply(W,_.PG(L11.map(dp2)));W.push("//www.gstatic.com/eureka/clank/cast_sender.js");Tlg(W)},GHU=Cj7("loadCastFramework")||Cj7("loadCastApplicationFramework"),L11=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Hb8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Hb8,_.qA);var tDR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(tDR,_.qA);var $qB=function(){var W=new tDR;return _.Bk(W,1,3)};var lC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(lC,_.qA);var us8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(us8,_.qA);var VDR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(VDR,_.qA);VDR.prototype.getToken=function(){return _.vk(this,1)};
VDR.prototype.setToken=function(W){return _.JT(this,1,W)};
var NvP=function(W){return _.eW(W,3,_.fU,_.W5())},MqR=function(W){return _.eW(W,6,_.fU,_.W5())};var e8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(e8,_.qA);e8.prototype.getToken=function(){return _.bP(this,VDR,2)};
e8.prototype.setToken=function(W){return _.jL(this,2,W)};
e8.prototype.getName=function(){return _.vk(this,6)};
var NG5=_.i7(e8);var MD2=function(W,O,b){this.requestMessage=W;this.methodDescriptor=O;this.metadata=b};
MD2.prototype.getMetadata=function(){return this.metadata};var uF7=function(W,O){O=O===void 0?{}:O;this.responseMessage=W;this.metadata=O;this.status=null};
uF7.prototype.getMetadata=function(){return this.metadata};
uF7.prototype.getStatus=function(){return this.status};var PA=function(W,O,b,T,L){this.name=W;this.methodType="unary";this.requestType=O;this.responseType=b;this.requestSerializeFn=T;this.responseDeserializeFn=L},J4g=function(W,O,b){b=b===void 0?{}:b;
return new MD2(O,W,b)};
PA.prototype.getName=function(){return this.name};var pR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(pR,_.qA);pR.prototype.setHeader=function(W){return _.jL(this,1,W)};
pR.prototype.hasHeader=function(){return _.Ys(this,lC,1)};var c4B=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(c4B,_.qA);var FwB=new PA("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",pR,c4B,function(W){return W.serialize()},_.i7(c4B));var RZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(RZ,_.qA);RZ.prototype.setHeader=function(W){return _.jL(this,1,W)};
RZ.prototype.hasHeader=function(){return _.Ys(this,lC,1)};var y47=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(y47,_.qA);var WRk=new PA("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",RZ,y47,function(W){return W.serialize()},_.i7(y47));var KR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(KR,_.qA);KR.prototype.setHeader=function(W){return _.jL(this,1,W)};
KR.prototype.hasHeader=function(){return _.Ys(this,lC,1)};var OdP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(OdP,_.qA);OdP.prototype.getLink=function(){return _.bP(this,e8,1)};var idU=new PA("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",KR,OdP,function(W){return W.serialize()},_.i7(OdP));var vA=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(vA,_.qA);vA.prototype.setHeader=function(W){return _.jL(this,1,W)};
vA.prototype.hasHeader=function(){return _.Ys(this,lC,1)};var bd2=new PA("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",vA,e8,function(W){return W.serialize()},NG5);var jMD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(jMD,_.qA);var Td2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Td2,_.qA);Td2.prototype.getUrl=function(){return _.vk(this,2)};
Td2.prototype.setUrl=function(W){return _.JT(this,2,W)};var LR7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(LR7,_.qA);var df7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(df7,_.qA);var hc1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(hc1,_.qA);var LJR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(LJR,_.qA);var Te1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Te1,_.qA);var S1R=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(S1R,_.qA);var mJ1=_.i7(S1R);var Zdg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Zdg,_.qA);var gX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(gX,_.qA);gX.prototype.setHeader=function(W){return _.jL(this,1,W)};
gX.prototype.hasHeader=function(){return _.Ys(this,lC,1)};
gX.prototype.getCompletionUrl=function(){return _.vk(this,6)};
gX.prototype.getDeviceId=function(){return _.vk(this,11)};var I3g=new PA("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",gX,S1R,function(W){return W.serialize()},mJ1);var a35=new Set(["SAPISIDHASH","APISIDHASH"]);var mf8=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(mf8,_.qA);mf8.prototype.getMessage=function(){return _.vk(this,2)};
var Y1B=_.i7(mf8);var oZ=function(W,O){this.xhrNodeReadableStream_=W.nodeReadableStream;this.grpcResponseDeserializeFn_=O;this.JSC$17020_xhr_=W.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17020_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ES2(this)},ec2=function(W,O){var b=new wsg;
_.Rx(W.JSC$17020_xhr_,"complete",function(){if(W.JSC$17020_xhr_.isSuccess()){var T=W.JSC$17020_xhr_.getResponseText();var L;if(L=O)L=W.JSC$17020_xhr_,L.JSC$7800_xhr_&&L.isComplete()?(L=L.JSC$7800_xhr_.getResponseHeader("Content-Type"),L=L===null?void 0:L):L=void 0,L=L==="text/plain";if(L){if(!atob)throw Error("Jj");T=atob(T)}try{var h=W.grpcResponseDeserializeFn_(T)}catch(a){Q6(W,rSD(new _.eo(13,"Error when deserializing response data; error: "+a+(", response: "+T)),b));return}T=_.Sr(W.JSC$17020_xhr_.getStatus());
AP7(W,XsZ(W));T==0?Uf9(W,h):Q6(W,rSD(new _.eo(T,"Xhr succeeded but the status code is not 200"),b))}else{T=W.JSC$17020_xhr_.getResponseText();h=XsZ(W);if(T){var Z=l37(W,T);T=Z.code;L=Z.details;Z=Z.metadata}else T=2,L="Rpc failed due to xhr error. uri: "+String(W.JSC$17020_xhr_.JSC$7800_lastUri_)+", error code: "+W.JSC$17020_xhr_.JSC$7800_lastErrorCode_+", error: "+W.JSC$17020_xhr_.getLastError(),Z=h;AP7(W,h);Q6(W,rSD(new _.eo(T,L,Z),b))}})},ES2=function(W){W.xhrNodeReadableStream_.on("data",function(O){if("1"in
O){var b=O["1"];
try{var T=W.grpcResponseDeserializeFn_(b)}catch(L){Q6(W,new _.eo(13,"Error when deserializing response data; error: "+L+(", response: "+b)))}T&&Uf9(W,T)}if("2"in O)for(O=l37(W,O["2"]),b=0;b<W.onStatusCallbacks_.length;b++)W.onStatusCallbacks_[b](O)});
W.xhrNodeReadableStream_.on("end",function(){AP7(W,XsZ(W));for(var O=0;O<W.onEndCallbacks_.length;O++)W.onEndCallbacks_[O]()});
W.xhrNodeReadableStream_.on("error",function(){if(W.JSC$17020_onErrorCallbacks_.length!=0){var O=W.JSC$17020_xhr_.JSC$7800_lastErrorCode_;O!==0||W.JSC$17020_xhr_.isSuccess()||(O=6);var b=-1;switch(O){case 0:var T=2;break;case 7:T=10;break;case 8:T=4;break;case 6:b=W.JSC$17020_xhr_.getStatus();T=_.Sr(b);break;default:T=14}AP7(W,XsZ(W));O=_.TC1(O)+", error: "+W.JSC$17020_xhr_.getLastError();b!=-1&&(O+=", http status code: "+b);Q6(W,new _.eo(T,O))}})},XsZ=function(W){var O={},b=phU(W.JSC$17020_xhr_);
Object.keys(b).forEach(function(T){O[T]=b[T]});
return O},l37=function(W,O){var b=2,T={};
try{var L=Y1B(O);b=_.OV(L,1);var h=L.getMessage();_.yr(L,ZbD,3,_.W5()).length&&(T["grpc-web-status-details-bin"]=O)}catch(Z){W.JSC$17020_xhr_&&W.JSC$17020_xhr_.getStatus()===404?(b=5,h="Not Found: "+String(W.JSC$17020_xhr_.JSC$7800_lastUri_)):(b=14,h="Unable to parse RpcStatus: "+Z)}return{code:b,details:h,metadata:T}};
oZ.prototype.on=function(W,O){W=="data"?this.onDataCallbacks_.push(O):W=="metadata"?this.onMetadataCallbacks_.push(O):W=="status"?this.onStatusCallbacks_.push(O):W=="end"?this.onEndCallbacks_.push(O):W=="error"&&this.JSC$17020_onErrorCallbacks_.push(O);return this};
var kx=function(W,O){O=W.indexOf(O);O>-1&&W.splice(O,1)};
oZ.prototype.removeListener=function(W,O){W=="data"?kx(this.onDataCallbacks_,O):W=="metadata"?kx(this.onMetadataCallbacks_,O):W=="status"?kx(this.onStatusCallbacks_,O):W=="end"?kx(this.onEndCallbacks_,O):W=="error"&&kx(this.JSC$17020_onErrorCallbacks_,O);return this};
oZ.prototype.cancel=function(){this.JSC$17020_xhr_.abort()};
var Uf9=function(W,O){for(var b=0;b<W.onDataCallbacks_.length;b++)W.onDataCallbacks_[b](O)},AP7=function(W,O){for(var b=0;b<W.onMetadataCallbacks_.length;b++)W.onMetadataCallbacks_[b](O)},Q6=function(W,O){for(var b=0;b<W.JSC$17020_onErrorCallbacks_.length;b++)W.JSC$17020_onErrorCallbacks_[b](O)};
oZ.prototype.cancel=oZ.prototype.cancel;oZ.prototype.removeListener=oZ.prototype.removeListener;oZ.prototype.on=oZ.prototype.on;var wsg=function(){var W=Error.call(this);this.message=W.message;"stack"in W&&(this.stack=W.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.R(wsg,Error);var sf=function(W){this.JSC$17029_worker_=W.worker||null;this.JSC$17029_streamBinaryChunks_=W.streamBinaryChunks||!1;this.JSC$17029_credentialsMode_=void 0};
_.Wk(sf,_.JVe);sf.prototype.createInstance=function(){var W=new BA(this.JSC$17029_worker_,this.JSC$17029_streamBinaryChunks_);this.JSC$17029_credentialsMode_&&W.setCredentialsMode(this.JSC$17029_credentialsMode_);return W};
sf.prototype.setCredentialsMode=function(W){this.JSC$17029_credentialsMode_=W};
var BA=function(W,O){_.ER.call(this);this.JSC$17033_worker_=W;this.JSC$17033_streamBinaryChunks_=O;this.JSC$17033_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$17033_responseHeaders_=null;this.JSC$17033_method_="GET";this.JSC$17033_url_="";this.inProgress_=!1;this.JSC$17033_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.Wk(BA,_.ER);BA.prototype.open=function(W,O){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$17033_method_=W;this.JSC$17033_url_=O;this.readyState=1;rX(this)};
BA.prototype.send=function(W){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var O={headers:this.requestHeaders_,method:this.JSC$17033_method_,credentials:this.JSC$17033_credentialsMode_,cache:void 0};W&&(O.body=W);(this.JSC$17033_worker_||_.i1).fetch(new Request(this.JSC$17033_url_,O)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
BA.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,DT(this));this.readyState=0};
BA.prototype.handleResponse_=function(W){if(this.inProgress_&&(this.fetchResponse_=W,this.JSC$17033_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17033_responseHeaders_=W.headers,this.readyState=2,rX(this)),this.inProgress_&&(this.readyState=3,rX(this),this.inProgress_)))if(this.responseType==="arraybuffer")W.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.i1.ReadableStream!==
"undefined"&&"body"in W){this.currentReader_=W.body.getReader();if(this.JSC$17033_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$17033_textDecoder_=new TextDecoder;PnP(this)}else W.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var PnP=function(W){W.currentReader_.read().then(W.handleDataFromStream_.bind(W)).catch(W.handleSendFailure_.bind(W))};
BA.prototype.handleDataFromStream_=function(W){if(this.inProgress_){if(this.JSC$17033_streamBinaryChunks_&&W.value)this.response.push(W.value);else if(!this.JSC$17033_streamBinaryChunks_){var O=W.value?W.value:new Uint8Array(0);if(O=this.JSC$17033_textDecoder_.decode(O,{stream:!W.done}))this.response=this.responseText+=O}W.done?DT(this):rX(this);this.readyState==3&&PnP(this)}};
BA.prototype.handleResponseText_=function(W){this.inProgress_&&(this.response=this.responseText=W,DT(this))};
BA.prototype.handleResponseArrayBuffer_=function(W){this.inProgress_&&(this.response=W,DT(this))};
BA.prototype.handleSendFailure_=function(){this.inProgress_&&DT(this)};
var DT=function(W){W.readyState=4;W.fetchResponse_=null;W.currentReader_=null;W.JSC$17033_textDecoder_=null;rX(W)};
BA.prototype.setRequestHeader=function(W,O){this.requestHeaders_.append(W,O)};
BA.prototype.getResponseHeader=function(W){return this.JSC$17033_responseHeaders_?this.JSC$17033_responseHeaders_.get(W.toLowerCase())||"":""};
BA.prototype.getAllResponseHeaders=function(){if(!this.JSC$17033_responseHeaders_)return"";for(var W=[],O=this.JSC$17033_responseHeaders_.entries(),b=O.next();!b.done;)b=b.value,W.push(b[0]+": "+b[1]),b=O.next();return W.join("\r\n")};
BA.prototype.setCredentialsMode=function(W){this.JSC$17033_credentialsMode_=W};
var rX=function(W){W.onreadystatechange&&W.onreadystatechange.call(W)};
Object.defineProperty(BA.prototype,"withCredentials",{get:function(){return this.JSC$17033_credentialsMode_==="include"},
set:function(W){this.setCredentialsMode(W?"include":"same-origin")}});var psg=function(W){var O="";_.PQ.forEach(W,function(b,T){O+=T;O+=":";O+=b;O+="\r\n"});
return O},Rcg=function(W,O,b){if(_.PQ.isEmpty(b))return W;
b=psg(b);if(typeof W==="string")return _.zp(W,_.t_(O),b);_.VC(W,O,b);return W};var KRN=function(){this.isInputValid_=!0;this.JSC$17039_streamPos_=0;this.leftoverInput_=""};
KRN.prototype.isInputValid=function(){return this.isInputValid_};var Ye=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17042_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ye.prototype.isInputValid=function(){return this.state_!=3};
var xx=function(W,O,b,T){W.state_=3;W.errorMessage_="The stream is broken @"+W.JSC$17042_streamPos_+"/"+b+". Error: "+T+". With input:\n"+O;throw Error(W.errorMessage_);};
Ye.prototype.acceptsBinaryInput=function(){return!0};
Ye.prototype.parse=function(W){function O(m){m&128&&xx(h,Z,a,"invalid tag");(m&7)!=2&&xx(h,Z,a,"invalid wire type");h.tag_=m>>>3;h.tag_!=1&&h.tag_!=2&&h.tag_!=15&&xx(h,Z,a,"unexpected tag");h.state_=1;h.length_=0;h.countLengthBytes_=0}
function b(m){h.countLengthBytes_++;h.countLengthBytes_==5&&m&240&&xx(h,Z,a,"message length too long");h.length_|=(m&127)<<(h.countLengthBytes_-1)*7;m&128||(h.state_=2,h.countMessageBytes_=0,typeof Uint8Array!=="undefined"?h.messageBuffer_=new Uint8Array(h.length_):h.messageBuffer_=Array(h.length_),h.length_==0&&L())}
function T(m){h.messageBuffer_[h.countMessageBytes_++]=m;h.countMessageBytes_==h.length_&&L()}
function L(){if(h.tag_<15){var m={};m[h.tag_]=h.messageBuffer_;h.result_.push(m)}h.state_=0}
for(var h=this,Z=W instanceof Array?W:new Uint8Array(W),a=0;a<Z.length;){switch(h.state_){case 3:xx(h,Z,a,"stream already broken");break;case 0:O(Z[a]);break;case 1:b(Z[a]);break;case 2:T(Z[a]);break;default:throw Error("Oj`"+h.state_);}h.JSC$17042_streamPos_++;a++}W=h.result_;h.result_=[];return W.length>0?W:null};var x82=function(){this.errorMessage_=null;this.JSC$17045_streamPos_=0;this.base64Decoder_=new KRN;this.pbParser_=new Ye};
x82.prototype.isInputValid=function(){return this.errorMessage_===null};
var vSU=function(W,O,b){W.errorMessage_="The stream is broken @"+W.JSC$17045_streamPos_+". Error: "+b+". With input:\n"+O;throw Error(W.errorMessage_);};
x82.prototype.acceptsBinaryInput=function(){return!1};
x82.prototype.parse=function(W){this.errorMessage_!==null&&vSU(this,W,"stream already broken");var O=null;try{var b=this.base64Decoder_;if(!b.isInputValid_)throw b.isInputValid_=!1,Error("Nj`"+b.JSC$17039_streamPos_+"`stream already broken`"+W);b.leftoverInput_+=W;var T=Math.floor(b.leftoverInput_.length/4);if(T==0)var L=null;else{try{var h=_.mK8(b.leftoverInput_.slice(0,T*4))}catch(m){var Z=b.leftoverInput_,a=m.message;b.isInputValid_=!1;throw Error("Nj`"+b.JSC$17039_streamPos_+"`"+a+"`"+Z);}b.JSC$17039_streamPos_+=
T*4;b.leftoverInput_=b.leftoverInput_.slice(T*4);L=h}O=L===null?null:this.pbParser_.parse(L)}catch(m){vSU(this,W,m.message)}this.JSC$17045_streamPos_+=W.length;return O};var D87=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17048_streamPos_=0;this.result_=[];this.statusParsed_=!1};
D87.prototype.isInputValid=function(){return this.errorMessage_===null};
D87.prototype.acceptsBinaryInput=function(){return!1};
D87.prototype.parse=function(W){function O(m){h.state_=6;h.errorMessage_="The stream is broken @"+h.JSC$17048_streamPos_+"/"+Z+". Error: "+m+". With input:\n";throw Error(h.errorMessage_);}
function b(){h.jsonStreamParser_=new _.WL({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function T(m){if(m)for(var w=0;w<m.length;w++){var A={};A[1]=m[w];h.result_.push(A)}}
function L(m){if(m){(h.statusParsed_||m.length>1)&&O("extra status: "+m);h.statusParsed_=!0;var w={};w[2]=m[0];h.result_.push(w)}}
for(var h=this,Z=0;Z<W.length;){var a;if(a=h.state_!==2){a:{for(;Z<W.length;){if(!_.yF(W[Z])){a=!0;break a}Z++;h.JSC$17048_streamPos_++}a=!1}a=!a}if(a)return null;switch(h.state_){case 6:O("stream already broken");break;case 0:W[Z]==="["?(h.state_=1,Z++,h.JSC$17048_streamPos_++):O("unexpected input token");break;case 1:W[Z]==="["?(h.state_=2,b()):W[Z]===","||W.slice(Z,Z+5)=="null,"?h.state_=3:W[Z]==="]"?(h.state_=5,Z++,h.JSC$17048_streamPos_++):O("unexpected input token");break;case 2:a=h.jsonStreamParser_.parse(W.substring(Z));
T(a);h.jsonStreamParser_.done()?(h.state_=3,a=h.jsonStreamParser_.JSC$9387_buffer_,h.JSC$17048_streamPos_+=W.length-Z-a.length,W=a,Z=0):(h.JSC$17048_streamPos_+=W.length-Z,Z=W.length);break;case 3:W[Z]===","||W.slice(Z,Z+5)=="null,"?(h.state_=4,b(),h.jsonStreamParser_.parse("["),Z+=W[Z]===","?1:5,h.JSC$17048_streamPos_++):W[Z]==="]"&&(h.state_=5,Z++,h.JSC$17048_streamPos_++);break;case 4:a=h.jsonStreamParser_.parse(W.substring(Z));L(a);h.jsonStreamParser_.done()?(h.state_=5,a=h.jsonStreamParser_.JSC$9387_buffer_,
h.JSC$17048_streamPos_+=W.length-Z-a.length,W=a,Z=0):(h.JSC$17048_streamPos_+=W.length-Z,Z=W.length);break;case 5:O("extra input after stream end")}}return h.result_.length>0?(W=h.result_,h.result_=[],W):null};var gS5=function(W){this.JSC$17051_xhr_=W;this.JSC$17051_parser_=null;this.status_=this.JSC$17051_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17051_textDecoder_=null;this.JSC$17051_eventHandler_=new _.be(this);this.JSC$17051_eventHandler_.listen(this.JSC$17051_xhr_,"readystatechange",this.JSC$17053_readyStateChangeHandler_)},z_=function(W,O){W.status_!=O&&(W.status_=O,W.statusHandler_&&W.statusHandler_())},CR=function(W){W.JSC$17051_eventHandler_.removeAll();
if(W.JSC$17051_xhr_){var O=W.JSC$17051_xhr_;W.JSC$17051_xhr_=null;O.abort();O.dispose()}};
gS5.prototype.getStatus=function(){return this.status_};
gS5.prototype.JSC$17053_readyStateChangeHandler_=function(W){W=W.target;try{if(W==this.JSC$17051_xhr_)a:{var O=_.RK(this.JSC$17051_xhr_),b=this.JSC$17051_xhr_.JSC$7800_lastErrorCode_,T=this.JSC$17051_xhr_.getStatus(),L=this.JSC$17051_xhr_.getResponseText();W=[];if(this.JSC$17051_xhr_.getResponse()instanceof Array){var h=this.JSC$17051_xhr_.getResponse();h.length>0&&h[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,W=h)}if(!(O<3||O==3&&!L&&W.length==0))if(T=T==200||T==206,O==4&&(b==8?z_(this,
7):b==7?z_(this,8):T||z_(this,3)),this.JSC$17051_parser_||(this.JSC$17051_parser_=zA7(this.JSC$17051_xhr_),this.JSC$17051_parser_==null&&z_(this,5)),this.status_>2)CR(this);else{if(W.length>this.JSC$17051_pos_){var Z=W.length;b=[];try{if(this.JSC$17051_parser_.acceptsBinaryInput())for(var a=0;a<Z;a++){var m=this.JSC$17051_parser_.parse(Array.from(W[a]));m&&(b=b.concat(m))}else{m="";if(!this.JSC$17051_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$17051_textDecoder_=new TextDecoder}for(a=
0;a<Z;a++)m+=this.JSC$17051_textDecoder_.decode(W[a],{stream:O==4&&a==Z-1});b=this.JSC$17051_parser_.parse(m)}W.splice(0,Z);b&&this.dataHandler_(b)}catch(A){z_(this,5);CR(this);break a}}else if(L.length>this.JSC$17051_pos_){a=L.slice(this.JSC$17051_pos_);this.JSC$17051_pos_=L.length;try{var w=this.JSC$17051_parser_.parse(a);w!=null&&this.dataHandler_&&this.dataHandler_(w)}catch(A){z_(this,5);CR(this);break a}}O==4?(L.length!=0||this.hasStreamingResponseData_?z_(this,2):z_(this,4),CR(this)):z_(this,
1)}}}catch(A){z_(this,6),CR(this)}};var oSD=function(W){W=this.xhrReader_=W;var O=(0,_.K5)(this.onData_,this);W.dataHandler_=O;W=this.xhrReader_;O=(0,_.K5)(this.onStatusChange_,this);W.statusHandler_=O;this.JSC$17055_callbackMap_={};this.callbackOnceMap_={}};
_.d=oSD.prototype;_.d.on=function(W,O){var b=this.JSC$17055_callbackMap_[W];b||(b=[],this.JSC$17055_callbackMap_[W]=b);b.push(O);return this};
_.d.addListener=function(W,O){this.on(W,O);return this};
_.d.removeListener=function(W,O){var b=this.JSC$17055_callbackMap_[W];b&&_.c2(b,O);(W=this.callbackOnceMap_[W])&&_.c2(W,O);return this};
_.d.once=function(W,O){var b=this.callbackOnceMap_[W];b||(b=[],this.callbackOnceMap_[W]=b);b.push(O);return this};
_.d.onData_=function(W){var O=this.JSC$17055_callbackMap_.data;O&&QMB(W,O);(O=this.callbackOnceMap_.data)&&QMB(W,O);this.callbackOnceMap_.data=[]};
var QMB=function(W,O){for(var b={},T=0;T<W.length;b={message$jscomp$969:void 0},T++)b.message$jscomp$969=W[T],O.forEach(function(L){return function(h){try{h(L.message$jscomp$969)}catch(Z){}}}(b))};
oSD.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:kBD(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kBD(this,"error");break;case 8:kBD(this,"close");break;case 2:kBD(this,"end")}};
var kBD=function(W,O){var b=W.JSC$17055_callbackMap_[O];b&&b.forEach(function(T){try{T()}catch(L){}});
(b=W.callbackOnceMap_[O])&&b.forEach(function(T){T()});
W.callbackOnceMap_[O]=[]};var sM7=function(){var W={format:"jspb"};W=W===void 0?{}:W;this.suppressCorsPreflight=W.suppressCorsPreflight||_.GT("suppressCorsPreflight",W)||!1;this.withCredentials=W.withCredentials||_.GT("withCredentials",W)||!1;this.streamInterceptors=W.streamInterceptors||[];this.unaryInterceptors=W.unaryInterceptors||[];this.workerScope=W.workerScope;this.chunkedServerStreaming=W.useFetchDownloadStreams||!1},Df8=function(W,O,b,T,L,h){h=h===void 0?{}:h;
var Z=O.substring(0,O.length-L.name.length),a,m=(a=h)==null?void 0:a.signal;return BdU(function(w){return new Promise(function(A,X){if(m==null?0:m.aborted){var l=new _.eo(1,"Aborted");l.cause=m.reason;X(l)}else{var p={},K=rPD(W,w,Z);K.on("error",function(k){return void X(k)});
K.on("metadata",function(k){p=k});
K.on("data",function(k){var r=p;r=r===void 0?{}:r;A(new uF7(k,r))});
m&&m.addEventListener("abort",function(){K.cancel();var k=new _.eo(1,"Aborted");k.cause=m.reason;X(k)})}})},W.unaryInterceptors).call(W,J4g(L,b,T)).then(function(w){return w.responseMessage})},qw=function(W,O,b,T,L){var h=h===void 0?{}:h;
return Df8(W,O,b,T,L,h)};
sM7.prototype.serverStreaming=function(W,O,b,T){var L=this,h=W.substring(0,W.length-T.name.length);return xf8(function(Z){var a=Z.methodDescriptor,m=Z.getMetadata(),w=zcR(L,!1);m=CnZ(L,m,w,h+a.getName());var A=q1B(w,a.responseDeserializeFn,!0);Z=a.requestSerializeFn(Z.requestMessage);w.send(m,"POST",Z);return A},this.streamInterceptors).call(this,J4g(T,O,b))};
var rPD=function(W,O,b){var T=O.methodDescriptor,L=O.getMetadata(),h=zcR(W,!0);W=CnZ(W,L,h,b+T.getName());b=q1B(h,T.responseDeserializeFn,!1);ec2(b,L["X-Goog-Encode-Response-If-Executable"]==="base64");O=T.requestSerializeFn(O.requestMessage);h.send(W,"POST",O);return b},zcR=function(W,O){O=W.chunkedServerStreaming&&!O;
return W.workerScope||O?new _.pO(new sf({worker:W.workerScope,streamBinaryChunks:O})):new _.pO},CnZ=function(W,O,b,T){O["Content-Type"]="application/json+protobuf";
O["X-User-Agent"]="grpc-web-javascript/0.1";var L=O.Authorization;if(L&&a35.has(L.split(" ")[0])||W.withCredentials)b.JSC$7800_withCredentials_=!0;if(W.suppressCorsPreflight)T=Rcg(T,"$httpHeaders",O);else for(W=_.S(Object.keys(O)),L=W.next();!L.done;L=W.next())L=L.value,b.headers.set(L,O[L]);return T},q1B=function(W,O,b){if(b){b=new gS5(W);
var T=new oSD(b)}return new oZ({xhr:W,nodeReadableStream:T},O)},xf8=function(W,O){return O.reduce(function(b,T){return function(L){return T.intercept(L,b)}},W)},BdU=function(W,O){return O.reduce(function(b,T){return function(L){return T.intercept(L,b)}},W)};var nSg=function(W){this.client_=new sM7;this.hostname_=W==void 0?W:W.replace(/\/+$/,"")};
_.d=nSg.prototype;_.d.JSC$17074_depositGoogleCredential=function(W,O){return qw(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",W,O||{},WRk)};
_.d.deleteLink=function(W,O){return qw(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",W,O||{},FwB)};
_.d.JSC$17074_finishOAuth=function(W,O){return qw(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",W,O||{},idU)};
_.d.getLink=function(W,O){return qw(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",W,O||{},bd2)};
_.d.startLinkingSession=function(W,O){return qw(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",W,O||{},I3g)};var f35=[0,ObP,1,jx8,[0,_.t$,[0,ibB,-1]],[0,bb9],[0,TGD,-1]];var GB1=function(){this.storage=new Map},tEk=function(W,O,b,T,L){if(!W.storage.has(O))return null;
W=_.S(W.storage.get(O));for(O=W.next();!O.done;O=W.next())if(O=O.value,!L||O.linkName===L)if(b&&O.scopes&&Hdk(O.scopes,b)||T&&O.capabilities&&Hdk(O.capabilities,T))return O;return null},$fg=function(W,O,b){if(!b)W.storage.delete(O);
else if(W.storage.has(O)){var T=W.storage.get(O).filter(function(L){return L.linkName!==b});
T.length>0?W.storage.set(O,T):W.storage.delete(O)}},Hdk=function(W,O){O=_.S(O);
for(var b=O.next();!b.done;b=O.next())if(!W.has(b.value))return!1;return!0};var VE7=function(){var W=_.Cv("LINK_GAL_DOMAIN");this.alsDomain1p=_.Cv("LINK_GAL_DOMAIN");this.alsDomain3p=W;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},Nd8=function(W,O){W.apiKey=O;
return W};
VE7.prototype.build=function(){var W={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");W.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");W.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(W.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)W.apiKey=
this.apiKey,W.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");W.oauthToken=this.oauthToken;W.alsDomain=this.alsDomain3p}W.clientXd3=this.clientXd3;W.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(W.authUser=this.authUser);this.bucket!==void 0&&(W.bucket=this.bucket);this.completionUrl!==void 0&&(W.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(W.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(W.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(W.locale=this.locale);W.loggerType=this.loggerType;W.clientEnvironment=this.clientEnvironment;W.colorScheme=this.colorScheme;W.showCloseOption=this.showCloseOption;return W};var EX=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(EX,_.qA);var ME5=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ME5,_.qA);var uL7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(uL7,_.qA);var AQ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(AQ,_.qA);var JPR=function(W){return _.gQ(W,1)};var cP1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(cP1,_.qA);var tqU=_.i7(cP1),wI=[1,2,3,4,5];var nOR=function(W){try{return tqU(W)}catch(O){return null}},FRZ=function(){},ffB=function(W,O){switch(_.U3(O,wI)){case 4:return(O=_.ks(O,uL7,4,wI))&&W.logStateTransition(_.gQ(O,1)),!0;
case 5:return(O=_.ks(O,ME5,5,wI))&&W.logInternalEvent(_.gQ(O,1)),!0}return!1},$8k=function(W){switch(W){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.SB(W)}};var CP5=function(W,O){var b=this;this.validator=W;this.messageListener=O;this.dismissCallback=function(){yP2(b,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17103_receiveMessage=function(T){T.type==="message"&&(T=T.event_,T!==null&&(new URL(b.iframe.src)).origin===T.origin&&b.validator(T.data,T.origin)&&!b.messageListener(T.data)&&(b.JSC$17103_resolveCb!==void 0&&b.JSC$17103_resolveCb(T.data),WoD(b)))}},H9N=function(W,O,b){W.uiHandler!==void 0&&yP2(W,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(T,L){W.JSC$17103_resolveCb=T;W.JSC$17103_rejectCb=L;W.iframe=document.createElement("iframe");_.k4(W.iframe,O);W.uiHandler=b.displayContent(W.iframe,W.dismissCallback);_.Rx(window,"message",W.JSC$17103_receiveMessage,!1,W)})},yP2=function(W,O){W.JSC$17103_rejectCb!==void 0&&W.JSC$17103_rejectCb(O);
WoD(W)},WoD=function(W){W.uiHandler!==void 0&&W.uiHandler.hideContent();
_.YH(window,"message",W.JSC$17103_receiveMessage,!1,W);W.JSC$17103_resolveCb=void 0;W.JSC$17103_rejectCb=void 0;W.uiHandler=void 0;W.iframe=void 0};var OpZ=function(W){if(W===2){var O;W=((O=window)==null?0:O.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return W},G7B=function(W){W=OpZ(W);
switch(W){case 0:return"light";case 1:return"dark";default:_.SB(W)}};var qFZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ipg=function(W,O){this.JSC$17115_linkingSession=W;this.noticeConfig=O;this.displayInfoMap=new Map;var b=new Map;if(_.Ys(this.JSC$17115_linkingSession,LR7,7))for(W=_.bP(this.JSC$17115_linkingSession,LR7,7),W=_.yr(W,Td2,1,_.W5()),W=_.S(W),O=W.next();!O.done;O=W.next())O=O.value,b.set(_.gQ(O,1),_.Dr2(_.bP(O,_.XoX,3)));if(b.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){O=this.noticeConfig.enabledDataUsageNoticeUis;W=O.has(0)?b.get(1):void 0;O=O.has(1)?b.get(2):void 0;b=W!==void 0&&O!==void 0?b.get(3):void 0;var T=this.noticeConfig.nestedOrigins;var L=new cP1;var h=new EX;L=_.Tb(L,2,wI,h);h=new cP1;var Z=new EX;h=_.Tb(h,3,wI,Z);Z=[];W!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:W,lastEvent:L,nestedOrigins:T}]),Z.push({trustedUrl:W,lastEvent:L,nestedOrigins:T}));O!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:O,lastEvent:h,nestedOrigins:T}]),Z.push({trustedUrl:O,lastEvent:h,nestedOrigins:T}));b!==void 0?this.displayInfoMap.set(3,[{trustedUrl:b,lastEvent:h,nestedOrigins:T}]):this.displayInfoMap.set(3,Z)}};var bpR=function(W){var O=new GB1;this.galService=W;this.galCache=O};
bpR.prototype.getLink=function(W){var O=W.serviceId;var b=W.scopes;var T=W.capabilities;var L=W.linkName;var h=this,Z;return _.I(function(a){if(T!==void 0&&b!==void 0)throw Error("Uj");Z=tEk(h.galCache,O,b,T,L);return Z!==null?a.return(Z):a.return(h.galService.getLink({serviceId:O,sessionId:Math.floor(Math.random()*2147483648),scopes:b,capabilities:T,linkName:L}).then(function(m){m=JSg(m);var w=h.galCache;w.storage.has(O)?w.storage.get(O).push(m):w.storage.set(O,[m]);return m}))})};
bpR.prototype.deleteLink=function(W,O,b){var T=this;return _.I(function(L){$fg(T.galCache,W,b);return L.return(T.galService.deleteLink({serviceId:W,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:O,linkName:b}).then(function(){return!0}))})};var Ttg=function(W,O){var b=this;this.validator=W;this.msgHandler=O;this.closedPopupTimeout=this.JSC$17137_rejectCb=this.JSC$17137_resolveCb=this.popup=null;this.JSC$17137_receiveMessage=function(T){if(T!==null&&(T=T.event_,T.source===b.popup)){var L=T.data;if(b.validator(L,T.origin)){var h;(h=b.msgHandler)!=null&&h.call(b,L)||(b.JSC$17137_resolveCb!==null&&b.JSC$17137_resolveCb(L),j49(b))}}}};
Ttg.prototype.open=function(W,O){var b=this;this.popup!==null&&Lo8(this);return new Promise(function(T,L){b.JSC$17137_resolveCb=T;b.JSC$17137_rejectCb=L;b.popup=_.BD(window,W,"",O);_.Rx(window,"message",b.JSC$17137_receiveMessage,!1,b);dLg(b)})};
var Lo8=function(W,O){W.JSC$17137_rejectCb!==null&&W.JSC$17137_rejectCb(O);j49(W)},j49=function(W){W.closedPopupTimeout&&(W.closedPopupTimeout.cancel(),W.closedPopupTimeout=null);
W.popup&&W.popup.close();_.YH(window,"message",W.JSC$17137_receiveMessage,!1,W);W.popup=null;W.JSC$17137_resolveCb=null;W.JSC$17137_rejectCb=null},dLg=function(W){W.closedPopupTimeout=_.WjN(100).then(function(){W.popup?W.popup.closed?hlg(W):dLg(W):Lo8(W,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},hlg=function(W){W.closedPopupTimeout=_.WjN(100).then(function(){Lo8(W,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var SxZ=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),ZpU=function(W,O,b,T,L,h,Z,a,m,w){var A=this;this.serviceId=W;this.sessionId=O;this.galService=b;this.oauthDetails=T;this.galLogger=L;this.interactionMode=h;this.redirectServiceUrl=Z;this.consentLanguageKeys=a;this.dynamicUrlParameters=m;this.partnerConfigMinReadTimestamp=w;this.started=!1;this.JSC$17143_dataValidator=function(X,
l){var p=SxZ.has(l);p||A.redirectServiceUrl===void 0||(p=A.redirectServiceUrl===l);return p?X.sentinel==="gdi":!1}};
ZpU.prototype.complete=function(){var W=this,O;return _.I(function(b){if(W.interactionMode!==1)return b.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));O=UX.getRedirectStateFromUri();return O===null?b.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):b.return(IO5(W,O))})};
ZpU.prototype.start=function(){var W=this,O;return _.I(function(b){if(W.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.vk(W.oauthDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(W.interactionMode===1)return UX.setLocation(_.vk(W.oauthDetails,1)),b.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));W.started=!0;W.galLogger.logStateTransition(5);
O=UX.getPostMessagePopup(W.JSC$17143_dataValidator);return b.return(O.open(_.vk(W.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(T){W.started=!1;var L=W.galLogger;if((T==null?void 0:T.error)!==void 0)throw L.logInternalEvent(59),Error("Vj");if((T==null?void 0:T.redirect_state)===void 0)throw L.logInternalEvent(131),Error("Wj");return IO5(W,T.redirect_state)}).catch(function(T){W.started=
!1;
return T.errorCode!==void 0?{statusCode:T.errorCode,statusMessage:T.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var IO5=function(W,O){return _.I(function(b){return b.return(aOP(W.galService,{serviceId:W.serviceId,sessionId:W.sessionId,dynamicUrlParameters:W.dynamicUrlParameters,redirectState:O,consentLanguageKeys:W.consentLanguageKeys,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp}).then(function(T){var L={statusCode:1,link:JSg(T.getLink())};CWg(_.wQ(T,3))!==void 0&&(L.callerState=CWg(_.wQ(T,3)));W.galLogger.logInternalEvent(134);return L}))})},UX={getPostMessagePopup:function(W){return new Ttg(W)},
getRedirectStateFromUri:function(){var W=_.tV(UX.getLocation()).fragment_;return(new _.yQ(W)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(W){_.NI(window.location,_.l7(W))},
createOAuthFlow:function(W,O){return new ZpU(W.serviceId,W.sessionId,W.galService,O,W.galLogger,W.interactionMode,W.redirectServiceUrl,W.consentLanguageKeys,W.dynamicUrlParameters,W.partnerConfigMinReadTimestamp)}};var mL7=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(mL7,_.qA);var Yxg=_.i7(mL7);var Ezg=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),wmg=function(W,O,b,T,L,h,Z,a,m){var w=this;this.serviceId=W;this.sessionId=O;this.galService=b;this.gsiWebFlowDetails=T;this.colorScheme=L;this.showCloseOption=h;this.galLogger=Z;this.interactionMode=a;this.redirectServiceUrl=m;this.started=!1;this.JSC$17155_dataValidator=function(A,X){var l=Ezg.has(X);l||w.redirectServiceUrl===
void 0||(l=w.redirectServiceUrl===X);return l?A.sentinel==="gal":!1};
this.logEventProcessor=function(A){return A.result?(A=nOR(A.result))?ffB(w.galLogger,A):!1:!1}};
wmg.prototype.complete=function(){var W=this,O,b;return _.I(function(T){if(W.interactionMode!==1)return T.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));O=ll.getRedirectStateFromUri();if(O===void 0)return W.galLogger.JSC$17095_logErrorEvent(131),T.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return b=AIR(W,O),T.return(XmU(W,b))}catch(L){return T.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
wmg.prototype.start=function(){var W=this,O;return _.I(function(b){if(W.started)return b.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.vk(W.gsiWebFlowDetails,1))return b.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(W.interactionMode===1)return ll.setLocation(UL7(W,_.vk(W.gsiWebFlowDetails,1))),b.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
W.started=!0;O=ll.getPostMessagePopup(W.JSC$17155_dataValidator,W.logEventProcessor);return b.return(O.open(UL7(W,_.vk(W.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(T){W.started=!1;if((T==null?void 0:T.result)===void 0)throw W.galLogger.JSC$17095_logErrorEvent(131),Error("Wj");T=AIR(W,T.result);return XmU(W,T)}).catch(function(T){W.started=!1;
return T.errorCode!==void 0?{statusCode:T.errorCode,statusMessage:T.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var UL7=function(W,O){W=["result_channel",W.interactionMode===1?"2":"1","color_scheme",G7B(W.colorScheme),"show_close_option",W.showCloseOption];return SzR(O,W)},XmU=function(W,O){if(O!==null&&_.Ys(O,AQ,2)){var b,T=O==null?void 0:(b=_.bP(O,AQ,2))==null?void 0:_.gQ(b,2);
T&&W.galLogger.JSC$17095_logErrorEvent($8k(T));return JPR(_.bP(O,AQ,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 W.galService.getLink({serviceId:W.serviceId,sessionId:W.sessionId,consistencyKey:_.vk(O,1)}).then(function(L){L=JSg(L);W.galLogger.logInternalEvent(134);return{statusCode:1,link:L}})},AIR=function(W,O){O=Yxg(O);
if(!_.Ys(O,AQ,2)&&_.vk(O,1)==="")throw W.galLogger.JSC$17095_logErrorEvent(5),Error("Xj");return O},ll={getPostMessagePopup:function(W,O){return new Ttg(W,O)},
getRedirectStateFromUri:function(){return _.$6(_.tV(ll.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(W){_.NI(window.location,_.l7(W))},
createStreamlinedFlow:function(W,O){return new wmg(W.serviceId,W.sessionId,W.galService,O,W.colorScheme,W.showCloseOption,W.galLogger,W.interactionMode,W.redirectServiceUrl)}};var ItZ=function(){var W=_.YkX("GAL");this.storage=W?new _.Re(W):null};var nR=function(){};
_.R(nR,FRZ);nR.prototype.logStateTransition=function(){};
nR.prototype.logInternalEvent=function(){};
nR.prototype.JSC$17095_logErrorEvent=function(){};var lOR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(lOR,_.qA);lOR.prototype.getCompletionUrl=function(){return _.vk(this,15)};var fR=function(W,O,b,T,L,h){this.serviceId=W;this.environment=O;this.sessionId=b;this.colorSchemeSelected=T;this.colorThemeDisplayed=L;this.JSC$17168_transport=h;this.currentState=1};
_.R(fR,FRZ);fR.prototype.logStateTransition=function(W){var O=el2(this);O=_.jq(O,3,this.currentState);O=_.jq(O,1,W);this.currentState=W;W=P85(1);this.dispatch(O,W)};
fR.prototype.logInternalEvent=function(W){W=P85(W);this.dispatch(el2(this),W)};
fR.prototype.JSC$17095_logErrorEvent=function(W){var O=el2(this);O=_.jq(O,1,10);W=P85(W);this.dispatch(O,W)};
var el2=function(W){var O=new lOR;O=_.jq(O,1,W.currentState);O=_.aG(O,7,W.serviceId);var b,T;var L=((b=window)==null?0:(T=b.location)==null?0:T.href)?_.tV(window.location.href).JSC$8032_domain_:"NO_PACKAGE_NAME";b=_.aG(O,8,L);b=_.jq(b,6,W.environment);b=_.aG(b,5,"100");b=_.jq(b,11,W.colorSchemeSelected);return _.jq(b,12,W.colorThemeDisplayed)};
fR.prototype.dispatch=function(W,O){O===void 0&&(O=new _.bE);var b=O;W=W.serialize();b=_.aG(b,8,W);_.pB(b,12,this.sessionId);this.JSC$17168_transport.dispatch(O)};var Pwk=function(W,O){this.loggerType=W;this.sessionIndex=O!=null?O:0},pmD;
Pwk.prototype.create=function(W,O,b,T,L){switch(this.loggerType){case 0:return new nR;case 1:return pmD||(pmD=(new _.ZN(555,this.sessionIndex.toString())).build()),new fR(W,O,b,T,L,pmD);default:_.SB(this.loggerType,"unknown logger type")}};var ec=[6,2,3,1],wZN=new Map([[4,1],[1,6],[2,2],[3,3]]),WJ8={statusCode:7,statusMessage:"Failed to create flow object"},SmR=function(W,O,b,T,L,h,Z,a,m,w){this.serviceId=W;this.sessionId=O;this.config=b;this.galService=T;this.JSC$17175_linkingSession=L;this.googleScopes=h;this.callerState=Z;this.consentLanguageKeys=a;this.dynamicUrlParameters=m;this.partnerConfigMinReadTimestamp=w;this.currentFlow=0;T=this.JSC$17175_linkingSession;L=new Set;_.Ys(T,Te1,1)&&L.add(1);_.Ys(T,hc1,2)&&_.Ys(T,LJR,6)&&L.add(2);
_.Ys(T,df7,3)&&_.Ys(T,LJR,6)&&L.add(3);_.Ys(T,jMD,4)&&L.add(6);this.supportedFlows=L;T=b.loggerType;L=b.clientEnvironment;a:{h=b.colorScheme;switch(h){case 0:h=1;break a;case 1:h=2;break a;case 2:h=3;break a;default:_.SB(h)}h=void 0}a:{Z=b.colorScheme;Z=OpZ(Z);switch(Z){case 0:Z=1;break a;case 1:Z=2;break a;default:_.SB(Z)}Z=void 0}this.galLogger=(new Pwk(T,b.authUser)).create(W,L,O,h,Z)},KoB=function(W){return new Promise(function(O){var b,T,L,h,Z,a,m,w,A,X;
return _.I(function(l){switch(l.nextAddress){case 1:b=dJB(W.currentFlow,W.supportedFlows),T=!1,L=new ipg(W.JSC$17175_linkingSession,W.config.dataUsageNoticeConfig);case 2:if(b===void 0){l.jumpTo(4);break}_.LI(l,5);var p=L,K=b,k=void 0;T?K===1&&(k=p.displayInfoMap.get(2)):K===2||K===3?k=p.displayInfoMap.get(1):K===1&&(k=p.displayInfoMap.get(3));h=k?k:[];Z=W.consentLanguageKeys;a=_.S(h);m=a.next();case 7:if(m.done)return W.currentFlow=b,_.Y(l,iB8(Rlg(W,Z)),11);w=m.value;return _.Y(l,VqR(w,W.config.dataUsageNoticeConfig.uiAdapter,
W.config.colorScheme,W.galLogger),10);case 10:A=l.yieldResult;if(A.statusCode!==1)return atU(W.serviceId),W.currentFlow=0,O(XP({statusCode:A.statusCode,statusMessage:A.statusMessage},W.callerState)),l.return();A.consentLanguageKeys!==void 0&&(Z=A.consentLanguageKeys);m=a.next();l.jumpTo(7);break;case 11:X=l.yieldResult;if(X.statusCode!==10)return X.statusCode!==6&&(atU(W.serviceId),W.currentFlow=0),X.statusCode!==1&&W.callerState!==void 0&&(X.callerState=W.callerState),O(X),l.return();_.H3(l,6);break;
case 5:_.ID(l);case 6:b=dJB(W.currentFlow,W.supportedFlows);T=!0;l.jumpTo(2);break;case 4:atU(W.serviceId),W.currentFlow=0,O(XP({statusCode:12,statusMessage:"Linking failed"},W.callerState)),_.aD(l)}})})},YmN=function(W,O,b){W.currentFlow=O;
return bBk(Rlg(W,b)).then(function(T){return T.statusCode===10&&W.config.interactionMode===1&&dJB(W.currentFlow,W.supportedFlows)!==void 0?KoB(W):T})},Rlg=function(W,O){return{flowParams:{serviceId:W.serviceId,
sessionId:W.sessionId,galService:W.galService,galLogger:W.galLogger,interactionMode:W.config.interactionMode,redirectServiceUrl:W.config.redirectServiceUrl,colorScheme:W.config.colorScheme,consentLanguageKeys:O,dynamicUrlParameters:W.dynamicUrlParameters,showCloseOption:W.config.showCloseOption,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp},currentFlow:W.currentFlow,config:W.config,session:W.JSC$17175_linkingSession,googleScopes:W.googleScopes,callerState:W.callerState}};var vGB=function(W,O){this.config=W;this.galService=O.getService();this.JSC$17188_galRepository=O.JSC$17225_galRepository};
vGB.prototype.getLink=function(W,O){return vzk(this,W,O)};
var vzk=function(W,O,b){return W.JSC$17188_galRepository.getLink({serviceId:O,scopes:void 0,capabilities:void 0,linkName:b}).then(function(T){return{statusCode:1,link:T}}).catch(function(T){return{statusCode:A8B(T.code),
statusMessage:T.message}})};
vGB.prototype.deleteLink=function(W,O){return this.JSC$17188_galRepository.deleteLink(W,this.config.accountLinkingEntryPoint,O).then(function(){return{statusCode:1}}).catch(function(b){return{statusCode:A8B(b.code),
statusMessage:b.message}})};
vGB.prototype.startLinkingSession=function(W){var O=W.serviceId;var b=W.sessionId;return ZB2({serviceId:O,sessionId:b!==void 0?b:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:W.loginHint,callerState:W.callerState,consentLanguageKeys:W.consentLanguageKeys,linkName:W.linkName,dynamicUrlParameters:W.dynamicUrlParameters,partnerConfigMinReadTimestamp:W.partnerConfigMinReadTimestamp})};var XZk=null,PyN=new WeakMap;var gzR=function(){};
gzR.prototype.send=function(W,O){KJk(W);return this.makeRequest(W).then(function(b){if(O){var T=new O;if(b!=null){if(O==null)throw Error("Zj");new O;throw Error("ak");}b=T}return b})};var ozR=function(W,O,b,T,L){this.gapiUrl=W;this.gapiKey=O;this.gapiConfigUpdates=b||{};this.gapiAuthParams=T||{};this.defaultApiId=L};
_.R(ozR,gzR);var kJZ=function(W){return lt1().then(function(O){O=O||window.gapi;Q4g(W,O);return RWg(O,{apiKey:W.gapiKey,clientId:W.gapiAuthParams.clientId,scope:W.gapiAuthParams.scope,hostedDomain:W.gapiAuthParams.hostedDomain,fetchBasicProfile:W.gapiAuthParams.fetchBasicProfile}).then(function(){return O})})};
ozR.prototype.makeRequest=function(W){var O=this;return kJZ(this).then(function(b){return _.I(function(T){if(T.nextAddress==1)return O.gapiAuthParams.minAuthTokenTimeRemaining===void 0?T.jumpTo(2):_.Y(T,pZ5(b,O.gapiAuthParams.minAuthTokenTimeRemaining),2);Q4g(O,b);return T.return(s4U(b.client.request({root:O.gapiUrl,path:W.path,method:W.httpMethod,body:W.body,params:W.queryParams,headers:W.headers,authType:W.authType,apiId:W.apiId||O.defaultApiId})))})})};
var s4U=function(W){return new Promise(function(O,b){W.then(function(T){O(T.result===!1&&T.body!=null?{data:T.body}:T.result)},function(T){b(T.result===!1&&T.body!=null?{data:T.body}:T.result)})})},Q4g=function(W,O){for(var b in W.gapiConfigUpdates)if(W.gapiConfigUpdates.hasOwnProperty(b)){var T=O,L=b,h=W.gapiConfigUpdates[b],Z=T.config.get(L);
h!==Z&&T.config.update(L,h)}};
ozR.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var G_=function(W,O,b,T,L,h,Z,a){this.apiKey=O;this.authUser=b;this.oauthToken=T;this.bucket=L;this.locale=Z;this.galSdkEventHandler=a;if(T===void 0){if(O===void 0)throw Error("bk");this.requestService=new ozR(W,O,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":h===void 0||h===!1,"client/xd3":h===!0})}this.galServiceClient=new nSg(W)};
G_.prototype.deleteLink=function(W){var O=W.serviceId;var b=W.sessionId;var T=W.accountLinkingEntryPoint;var L=W.linkName;var h=this,Z;return _.I(function(a){var m=(new pR).setHeader(HA(h,b));var w=BtZ({serviceId:O,linkName:L});m=_.jL(m,2,w);Z=_.Bk(m,3,T);return a.return(h.makeRequest(h.galServiceClient.deleteLink,Z,[1,3],[2,4]))})};
var aOP=function(W,O){var b=O.serviceId;var T=O.sessionId;var L=O.dynamicUrlParameters;var h=O.redirectState;var Z=O.consentLanguageKeys;var a=O.partnerConfigMinReadTimestamp;var m;return _.I(function(w){var A=(new KR).setHeader(HA(W,T,L));A=_.JT(A,2,b);m=_.JT(A,4,h);Z!==void 0&&_.JT(m,5,Z);a!==void 0&&_.jL(m,6,a);return w.return(W.makeRequest(W.galServiceClient.JSC$17074_finishOAuth,m,[1,3],[2,4]))})};
G_.prototype.getLink=function(W){var O=W.serviceId;var b=W.sessionId;var T=W.scopes;var L=W.capabilities;var h=W.consistencyKey;var Z=W.linkName;var a=this,m;return _.I(function(w){var A=(new vA).setHeader(HA(a,b)),X=BtZ({serviceId:O,scopes:T,capabilities:L,linkName:Z});m=_.jL(A,2,X);h!==void 0&&(A=$qB(),A=_.JT(A,2,h),_.jL(m,3,A));return w.return(a.makeRequest(a.galServiceClient.getLink,m,[1,3],[2,4]))})};
var j1g=function(W,O){var b=O.serviceId;var T=O.sessionId;var L=O.googleScopes;var h=O.consistencyKey;var Z;return _.I(function(a){var m=(new RZ).setHeader(HA(W,T));m=_.JT(m,2,b);var w=Array.from(L.values());m=_.K0(m,3,w,_.qZ);w=$qB();w=_.JT(w,2,h);Z=_.jL(m,4,w);return a.return(W.makeRequest(W.galServiceClient.JSC$17074_depositGoogleCredential,Z,[1,3],[2,4]))})};
G_.prototype.startLinkingSession=function(W){var O=W.serviceId;var b=W.sessionId;var T=W.scopes;var L=W.capabilities;var h=W.loginHint;var Z=W.supportedFlows;var a=W.completionUrl;var m=W.usePingPong;var w=W.twoWayLinking;var A=W.accountLinkingEntryPoint;var X=W.callerState;var l=W.consentLanguageKeys;var p=W.googleScopes;var K=W.dataUsageNoticeConfig;var k=W.linkName;var r=W.dynamicUrlParameters;var q=W.partnerConfigMinReadTimestamp;var f=this,M,V;return _.I(function(jQ){if(L!==void 0&&T!==void 0)throw Error("Uj");
var y=(new gX).setHeader(HA(f,b,r));M=_.JT(y,2,O);k!==void 0&&_.JT(M,14,k);if(L!==void 0){y=M;var d8=Array.from(L.values());_.K0(y,5,d8,_.qZ)}else T!==void 0&&(y=M,d8=Array.from(T.values()),_.K0(y,3,d8,_.qZ));a!==void 0&&_.JT(M,6,a);m!==void 0&&_.os(M,15,m);Z!==void 0&&(y=M,d8=Array.from(Z.values()),_.K0(y,4,d8,_.RN));if(w!==void 0){if(w&&(!p||p.size===0))throw Error("ck");_.os(M,8,w)}A!==void 0&&_.Bk(M,9,A);h!==void 0&&_.JT(M,13,h);X!==void 0&&(y=M,d8=(new TextEncoder).encode(X),_.vM(y,12,_.HN(d8,
!1),_.fH()));l!==void 0&&_.JT(M,16,l);q!==void 0&&_.jL(M,18,q);if(K!==void 0&&K.size>0||p!==void 0&&p.size>0)V=new Zdg,p!==void 0&&p.size>0&&(y=V,d8=Array.from(p.values()),_.K0(y,1,d8,_.qZ)),K!==void 0&&(K.has(0)&&_.dZi(V,2,_.RN,1,_.KU),K.has(1)&&_.dZi(V,2,_.RN,2,_.KU)),_.jL(M,17,V);return jQ.return(f.makeRequest(f.galServiceClient.startLinkingSession,M,[1],[2]))})};
G_.prototype.getMetadata=function(){var W=this,O,b,T;return _.I(function(L){if(L.nextAddress==1)return O={},W.requestService?_.Y(L,kJZ(W.requestService),3):(O.Authorization="Bearer "+W.oauthToken,L.jumpTo(2));L.nextAddress!=2&&(b=L.yieldResult,O["X-Goog-Api-Key"]=W.apiKey,O["X-Goog-AuthUser"]=W.authUser!==void 0?W.authUser.toString():"0",(T=b.auth.getAuthHeaderValueForFirstParty([]))&&(O.Authorization=T));W.locale&&(O["accept-language"]=W.locale);return L.return(O)})};
G_.prototype.makeRequest=function(W,O,b,T){var L=this,h;return _.I(function(Z){if(Z.nextAddress==1)return _.Y(Z,L.getMetadata(),2);h=Z.yieldResult;rIP(L,b);return Z.return(W.bind(L.galServiceClient)(O,h).finally(function(){rIP(L,T)}))})};
var rIP=function(W,O){W.galSdkEventHandler!==void 0&&O.forEach(function(b){W.galSdkEventHandler.onEvent(b)})},HA=function(W,O,b){var T=new lC;
O=_.vM(T,2,_.v9(O),0);O=_.Bk(O,5,3);b=_.K0(O,8,b,_.qZ);W.bucket!==void 0&&_.JT(b,1,W.bucket);return b},BtZ=function(W){var O=W.serviceId;
var b=W.scopes;var T=W.capabilities;W=W.linkName;if(T!==void 0&&b!==void 0)throw Error("Uj");var L=new Hb8;O=_.JT(L,1,O);T!==void 0?(b=Array.from(T.values()),_.K0(O,5,b,_.qZ)):b!==void 0&&(b=Array.from(b.values()),_.K0(O,3,b,_.qZ));W!==void 0&&_.JT(O,6,W);return O};var gGg=function(W){this.galService=new G_(W.alsDomain,W.apiKey,W.authUser,W.oauthToken,W.bucket,W.clientXd3,W.locale,W.galSdkEventHandler);this.JSC$17225_galRepository=new bpR(this.galService)};
gGg.prototype.getService=function(){return this.galService};var DL1=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(DL1,_.qA);var xLU=function(W){var O=new DL1;return _.jq(O,1,W)};
DL1.prototype.setErrorMessage=function(W){return _.aG(this,2,W)};var zlg=[0,_.VK,_.Hk,_.VK];var tb=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(tb,_.qA);var CwB=[0,[1,2,3],_.$s,[0,c1N,WwP,-1],_.$s,[0,y1D,-1],_.JBE];var qxD=[0,_.ff,1,_.VK,_.Hk,-1,1,_.yBh,_.nf,_.VK,-1,CwB];var nz1=[0,_.VK,[0,_.yBh,_.nf,[0,_.Hk]],_.GR,[0,_.VK,-1]];var T_=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(T_,_.qA);var fO7=[0,_.Hk,_.VK,-2,_.ff,_.VK,_.ff,_.VK,-2,1,_.GR];var GJZ=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(GJZ,_.qA);var Hpg=[0,_.ff];var tkP=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(tkP,_.qA);var $LN=[0,_.VK,nz1,Hpg,fO7,qxD];var b_N=_.WD(tkP,$LN);var Vk5=[0,f35];var SPR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(SPR,_.qA);var NtR=[0,[1,3],Lw9,_.VK,Lw9];var bC=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(bC,_.qA);var MkR=[0,_.VK];var ugR=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(ugR,_.qA);var j8=function(W){return _.ks(W,DL1,2,iC)},JI1=function(W){var O=new ugR;
return _.Tb(O,2,iC,W)},iC=[1,
2];var cI2=[0,iC,_.$s,MkR,_.$s,zlg,_.t$,NtR,1,_.VK,Vk5];var Fok=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(Fok,_.qA);var W99=function(W){var O=new Fok;return _.Tb(O,3,yIg,W)},yIg=[2,
3];var $x=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R($x,_.qA);var OFN=function(W,O){return _.jL(W,2,O)},iFB=function(W,O){return _.jL(W,8,O)},bF2=function(W,O){return _.jL(W,3,O)};var jy1=[0,_.VK,cI2,$LN,_.OUU,[0,[5,6],[0,_.VK,-2],[0,_.ff,_.VK,_.Hk],[0,CwB],[0,_.Hk,_.VK,-1,_.W81,_.VK],_.$s,[0,[0,_.ff],_.VK,-1],_.$s,[0,[3,4],_.VK,-1,_.$s,[0,[0,_.VK,_.GR]],_.$s,[0,[0,[0,[1,2],_.$s,[0],_.$s,[0]]]]]],_.OUU,-1,[0,yIg,_.VK,_.$s,MkR,_.$s,zlg,_.t$,NtR,[0,f35]]];var T6P=_.WD($x,jy1),L9k=_.OB(jy1);var ds2=function(){_.R8.call(this)};
_.R(ds2,_.R8);ds2.prototype.init=function(){};
new ds2;var hKg=_.ts(["data-"]),S8Z=_.ts(["aria-"]),ZFU=_.ts(["aria-"]),V6=function(W,O){this.isLatencyMeasurementExperiment=W===void 0?!1:W;this.enableDialogA11yFix=O===void 0?!1:O;this.JSC$17254_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.g$n(_.i1.location.href)},TE7=function(W,O){W.onConsentPrimitiveShownCallback=O},IvD=function(W,O){return W.overriddenIframeLoadTimeout?W.overriddenIframeLoadTimeout:O!==void 0?O:5E3},dd8=function(W){if(W.prewarmPromise!==void 0)return W.prewarmPromise;
W.prewarmPromise=new Promise(function(O,b){Nw(W,1);av9(W,ms9(W,!0),Y87(W));W.iframe?W.prewarmChannel||ENk(W,W.iframe,O):b(Error("dk"))});
W.prewarmPromise.finally(function(){W.prewarmPromise=void 0});
return W.prewarmPromise};
V6.prototype.showPrimitive=function(){var W=this;if(this.consentPromise!==void 0)return this.consentPromise;var O=Date.now();wt1(this,O);this.consentPromise=new Promise(function(b,T){Nw(W,0,O);var L=W.isDarkTheme();W.isLatencyMeasurementExperiment||W.initialLoadingStrategy===1||W.initialLoadingStrategy===2||(W.loadingBar||(W.loadingBar=s1g(getComputedStyle(document.body).direction==="rtl",L),W.loadingBar.style.position="fixed",W.loadingBar.style.zIndex="15000"),document.body.appendChild(W.loadingBar));
av9(W,ms9(W),Y87(W));W.iframe?W.channel||AT9(W,W.iframe,b,T):(XtB(W),T(Error("dk")))});
this.consentPromise.finally(function(){W.consentPromise=void 0});
return this.consentPromise};
var AT9=function(W,O,b,T){var L,h;_.I(function(Z){switch(Z.nextAddress){case 1:Nw(W,3);L=!1;setTimeout(function(){if(!L){XtB(W);Us8(W);lv5(W);var a=xLU(7).setErrorMessage("Timeout connecting to iframe");b(iFB(OFN(new $x,JI1(a)),W99(a)))}},IvD(W,eKR(W)));
if(!W.prewarmPromise){Z.jumpTo(2);break}_.LI(Z,3);return _.Y(Z,W.prewarmPromise,5);case 5:_.H3(Z,2);break;case 3:_.ID(Z),h=xLU(4).setErrorMessage("Error while prewarming."),b(iFB(OFN(new $x,JI1(h)),W99(h)));case 2:W.prewarmChannel&&W.prewarmChannel.send(L9k(bF2(new $x,W.consentPrimitiveRequest))),W.channel=_.uM({destination:W.JSC$17254_win,iframe:O,origin:P3P(W),channelName:"cpw",onEstablished:function(){L=!0;XtB(W);W.isLatencyMeasurementExperiment||(W.JSC$17254_previousBodyOverflow=document.body.style.overflow,
W.JSC$17254_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,W.JSC$17254_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",W.enableDialogA11yFix&&window.addEventListener("blur",W.focusChangeListener));var a=W.iframe;a.style.bottom="0";a.style.position="fixed";a.style.right="0";a.style.border="none";a.style.left="0";a.style.top=
"0";a.style.zIndex="5000";a.style.pointerEvents="";a.style.visibility="";W.initialLoadingStrategy===2||W.initialLoadingStrategy===3?Nw(W,4):Nw(W,6);var m;(m=W.onConsentPrimitiveShownCallback)==null||m.call(W)},
onMessage:function(a){a=T6P(a.data);switch(_.gQ(a,1)){case 1:Us8(W);var m=Be8(_.bP(a,_.zo,7));m&&(W.initialLoadingStrategy!==2&&W.initialLoadingStrategy!==3||Nw(W,6,m),Nw(W,5,m));if(m=Be8(_.bP(a,_.zo,6)))Nw(W,7,m),Nw(W,8);var w,A;((w=_.bP(a,ugR,2))==null?void 0:_.U3(w,iC))!==0&&((A=_.bP(a,Fok,8))==null?void 0:_.U3(A,yIg))!==0||T(Error("ek"));b(a);break;case 2:lv5(W)}}}),_.aD(Z)}})},ENk=function(W,O,b){W.prewarmChannel=_.uM({destination:W.JSC$17254_win,
iframe:O,origin:P3P(W),channelName:"pwcp",onEstablished:function(){Nw(W,2);b()}})},P3P=function(W){var O=_.Zd(W.src).toString();
return O&&O.indexOf("://")<0&&O.indexOf("//")!==0?W.origin:_.g$n(O)},ms9=function(W,O){O=O===void 0?!1:O;
var b,T=new Map([["origin",W.origin],["hl",(b=pt7(W))!=null?b:null]]);O&&T.set("pw","1");O=_.S([["cpr",W.consentPrimitiveRequest.serialize()]]);for(b=O.next();!b.done;b=O.next()){var L=_.S(b.value);b=L.next().value;L=L.next().value;T.set(b,L)}W.isDarkTheme()&&T.set("color_scheme","dark");return _.WQ(W.src,T)},XtB=function(W){W.isLatencyMeasurementExperiment||W.loadingBar&&document.body.removeChild(W.loadingBar)};
V6.prototype.getSrc=function(){var W=_.cU(this.origin),O;var b=(O=_.bP(this.consentPrimitiveRequest,GJZ,3))==null?void 0:_.OV(O,1);O="consent.google.com";b=b?"/u/"+encodeURIComponent(b.toString()):"";(W==null?0:W.endsWith("youtube.com"))?O="consent.youtube.com":(W=W==null?void 0:W.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(O="consent.google."+((W[1]?"co.":"")+encodeURIComponent(W[2])));return _.SL("https://"+O+"/signedin"+b+"/landing")};
var av9=function(W,O,b){W.iframe||(W.iframe=document.createElement("iframe"),W.iframe.style.width="100%",W.iframe.style.height="100%",b!==112496729&&(W.iframe.style.colorScheme="auto"),W.isLatencyMeasurementExperiment&&(W.iframe.style.display="none"),_.k4(W.iframe,O),W.iframe.setAttribute("jsname","C5o1O"),RK5(W.iframe),document.body.appendChild(W.iframe))},RK5=function(W){W.style.bottom="-200vh";
W.style.position="fixed";W.style.right="-200vw";W.style.border="";W.style.left="";W.style.top="";W.style.zIndex="";W.style.pointerEvents="none";W.style.visibility="hidden"},Us8=function(W){W.iframe&&(W.isLatencyMeasurementExperiment||(W.JSC$17254_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=W.JSC$17254_previousHtmlOverscroll),W.JSC$17254_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=W.JSC$17254_previousBodyOverscroll),W.JSC$17254_previousBodyOverflow!==
void 0&&(document.body.style.overflow=W.JSC$17254_previousBodyOverflow),W.enableDialogA11yFix&&K9g(W,!1)),RK5(W.iframe))};
V6.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(K9g(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var K9g=function(W,O){var b,T,L=(b=W.iframe)==null?void 0:(T=b.parentElement)==null?void 0:T.children;if(L)for(b=0;b<L.length;b++)T=L[b],T!==W.iframe&&(O?(T.hasAttribute("aria-hidden")&&_.HD([_.cG(hKg)],T,"data-old-aria-hidden",T.getAttribute("aria-hidden")),_.HD([_.cG(S8Z)],T,"aria-hidden","true")):(T.removeAttribute("aria-hidden"),T.hasAttribute("data-old-aria-hidden")&&(_.HD([_.cG(ZFU)],T,"aria-hidden",T.getAttribute("data-old-aria-hidden")),T.removeAttribute("data-old-aria-hidden"))))},Nw=function(W,
O,b){var T;
(T=W.latencyCallback)==null||T.call(W,{latencyType:O,timestampEpochMillis:b!=null?b:Date.now()})};var vNU=function(W,O,b){V6.call(this,O,b===void 0?!1:b);this.consentPrimitiveRequest=W;W=pt7(this);if(!(0,_.uY1)(W))throw Error("H``"+String(W));this.src=this.getSrc();var T;this.initialLoadingStrategy=(T=_.bP(this.consentPrimitiveRequest,T_,4))==null?void 0:_.gQ(T,4)},gNg;
_.R(vNU,V6);var ju8=function(W){var O=_.e("enable_primitive_dialog_aria_hide_siblings");W={request:W,enableDialogA11yFix:O===void 0?!1:O};gNg||(gNg=new vNU(W.request,W.isLatencyMeasurementExperiment||_.gQ(W.request,1)===2,W.enableDialogA11yFix));return gNg},pt7=function(W){var O;
return(O=_.bP(W.consentPrimitiveRequest,T_,4))==null?void 0:_.vk(O,1)},wt1=function(W,O){if(!_.Ys(W.consentPrimitiveRequest,tb,5)){var b=W.consentPrimitiveRequest,T=new tb;
_.jL(b,5,T)}var L;if((L=_.bP(W.consentPrimitiveRequest,tb,5))==null||_.aS8(_.mD(L,8))==null){var h;(h=_.bP(W.consentPrimitiveRequest,tb,5))!=null&&_.pB(h,8,O)}},Y87=function(W){var O;
return(O=_.bP(W.consentPrimitiveRequest,tb,5))==null?void 0:_.OV(O,1)};
vNU.prototype.isDarkTheme=function(){var W;return((W=_.bP(this.consentPrimitiveRequest,T_,4))==null?void 0:_.gQ(W,2))===2};
var eKR=function(W){var O;return((O=_.bP(W.consentPrimitiveRequest,T_,4))==null?void 0:_.OV(O,5))||void 0},lv5=function(W){W.channel=void 0;
W.prewarmChannel=void 0;W.iframe&&(document.body.contains(W.iframe)&&document.body.removeChild(W.iframe),W.iframe=void 0);gNg=void 0},h32=function(W){return V6.prototype.showPrimitive.call(W).then(function(O){return _.bP(O,ugR,2)})};for(var Mw={},oNZ=(Mw[64]="ma",Mw[73]="ogb",Mw[89]="cr",Mw[21]="test",Mw[0]="unkn",Mw[137]="con",Mw[155]="hl",Mw[78]="yt",Mw[171]="lp",Mw[172]="ap",Mw[177]="amo",Mw[178]="pqe",Mw[74]="gg",Mw[1]="gm",Mw[140]="am",Mw),QyB=_.S(Object.keys(oNZ)),kog=QyB.next();!kog.done;kog=QyB.next());var syg=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(syg,_.qA);var B6D=[0,[2,3,4],_.VK,F5g,Lw9,_.JBE];var rT2=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(rT2,_.qA);var Ds2=_.WD(rT2,[0,TGD,_.Hk,_.VK,_.Hk,_.VK,B6D]);var xsD=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(xsD,_.qA);xsD.prototype.getCommand=function(){return _.gQ(this,1)};
var zK1=function(){var W=new xsD;return _.Bk(W,1,0)};var C3g=_.OB([0,TGD,_.Hk,[0,_.VK,_.Hk,-1]]);var q8N=new _.So("s"),nN7=new _.So("t"),fvg=new _.So("u"),GoR=new _.So("v"),HF9=function(W,O,b){_.ZB.call(this,q8N);this.mediaKey=W;this.photoUrl=O;this.photoSource=b};
_.R(HF9,_.ZB);var t78=function(){_.ZB.call(this,nN7)};
_.R(t78,_.ZB);var $sN=function(W){W=W===void 0?!1:W;_.ZB.call(this,fvg);this.isError=W};
_.R($sN,_.ZB);var V78=function(){_.ZB.call(this,GoR)};
_.R(V78,_.ZB);var N65=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,cT7=function(W){if(typeof W=="string"){if(W.charAt(0)==".")return M7U(W.substr(1));if(W.charAt(0)=="["){var O=N65.exec(W);W=W.indexOf("=")==-1?void 0:O[3];return uN1(O[1],W)}return JTk(W)}return W},M7U=function(W){return function(O){return O.getAttribute&&_.xH(O,W)}},uN1=function(W,O){return function(b){return O!==void 0?b.getAttribute&&b.getAttribute(W)==O:b.hasAttribute&&b.hasAttribute(W)}},JTk=function(W){W=W.toUpperCase();
return function(O){return(O=O.tagName)&&O.toUpperCase()==W}},F9B=function(){return!0};var uC=function(W,O){this.JSC$17282_key_=W;this.JSC$17282_value_=O},Jb=function(W){throw Error("fk`"+W.JSC$17282_key_);
},yT7=function(W,O){return new TypeError("gk`"+O+"`"+W.JSC$17282_key_+"`"+W.JSC$17282_value_+"`"+typeof W.JSC$17282_value_)};
uC.prototype.string=function(W){if(arguments.length==0)var O=WNB(this);else{var b;O=(b=ODk(this))!=null?b:W}return O};
var WNB=function(W){var O=ODk(W);O===null&&Jb(W);return O},ODk=function(W){var O=W.JSC$17282_value_;
if(O==null)return null;if(typeof O==="string")return O;throw yT7(W,"string");};
uC.prototype.bool=function(W){if(arguments.length==0){var O=this.optionalBool();O===null&&Jb(this)}else{var b;O=(b=this.optionalBool())!=null?b:W}return O};
uC.prototype.optionalBool=function(){var W=this.JSC$17282_value_;if(W==null)return null;if(typeof W==="boolean")return W;if(typeof W==="string"){W=W.toLowerCase();if(W==="true"||W==="1")return!0;if(W==="false"||W==="0")return!1}throw yT7(this,"boolean");};
uC.prototype.number=function(W){if(arguments.length==0){var O=iD8(this);O===null&&Jb(this)}else{var b;O=(b=iD8(this))!=null?b:W}return O};
var iD8=function(W){var O=W.JSC$17282_value_;if(O==null)return null;if(typeof O==="number")return O;if(typeof O==="string"){var b=Number(O);if(!isNaN(b)&&(b!==0||O.trim().length!==0))return b}throw yT7(W,"number");};
uC.prototype.toString=function(){return WNB(this)};
uC.prototype.array=function(W){if(arguments.length==0){var O=bDN(this);O===null&&Jb(this);return O}O=bDN(this);return O==null?W:O};
var bDN=function(W){var O=W.JSC$17282_value_;if(O==null)return null;Array.isArray(O)||(typeof O!=="string"?O=[O]:(O=O.trim(),O=O==""?[]:O.split(",").map(function(b){return b.trim()})));
return jdk(W,O)},jdk=function(W,O){var b=W.JSC$17282_key_+"[";
return Array.from(O,function(T,L){return new uC(b+L+"]",T)})};
uC.prototype.object=function(W){var O=this.JSC$17282_value_;if(O==null)return W===void 0&&Jb(this),W;if(typeof O==="object"&&O.constructor===Object){W={};var b=this.JSC$17282_key_+".",T;for(T in O)W[T]=new uC(b+T,O[T]);return W}throw yT7(this,"object");};var cA=function(W){this.list_=TYg(W)},TYg=function(W){if(W instanceof cA)W=W.list_;
else if(W[0]instanceof cA){for(var O=new Set,b=0;b<W.length;b++)for(var T=_.S(W[b].list_),L=T.next();!L.done;L=T.next())O.add(L.value);W=O}return[].concat(_.PG(W))};
_.d=cA.prototype;_.d.each=function(W,O,b){((b===void 0?0:b)?r_2:_.$X)(this.list_,W,O);return this};
_.d.size=function(){return this.list_.length};
_.d.isEmpty=function(){return this.list_.length===0};
_.d.get=function(W){return this.list_[W]||null};
_.d.el=function(){return this.list_[0]||null};
_.d.map=function(W,O){return _.RG(this.list_,W,O)};
_.d.equals=function(W){return this===W||_.Ev(this.list_,W.list_)};
_.d.first=function(){return this.list_.length==0?null:new Ff(this.list_[0])};
_.d.find=function(W){var O=[];this.each(function(b){b=b.querySelectorAll(String(W));for(var T=0;T<b.length;T++)O.push(b[T])});
return new cA(O)};
_.d.parent=function(){var W=[];this.each(function(O){(O=O.parentElement||null)&&!_.Vh(W,O)&&W.push(O)});
return new cA(W)};
_.d.children=function(){var W=[];this.each(function(O){O=_.g7(O);for(var b=0;b<O.length;b++)W.push(O[b])});
return new cA(W)};
_.d.filter=function(W){W=_.iM(this.list_,cT7(W));return new cA(W)};
_.d.closest=function(W){var O=[],b=cT7(W),T=function(L){return _.cO(L)&&b(L)};
this.each(function(L){(L=_.sM(L,T,!0))&&!_.Vh(O,L)&&O.push(L)});
return new cA(O)};
_.d.next=function(W){return LNN(this,_.$P1,W)};
_.d.prev=function(W){return LNN(this,dqU,W)};
var LNN=function(W,O,b){var T=[];var L=b?cT7(b):F9B;W.each(function(h){(h=O(h))&&L(h)&&T.push(h)});
return new cA(T)};
cA.prototype.setClass=function(W){return this.each(function(O){_.DB(O,W)})};
var dcU=function(W,O){return W.each(function(b){_.J4(b,O)})},h97=function(W,O){return W.each(function(b){_.Mq(b,O)})};
cA.prototype.toggleClass=function(W,O){return O===!0?dcU(this,W):O===!1?h97(this,W):this.each(function(b){_.xH(b,W)?_.Mq(b,W):_.J4(b,W)})};
cA.prototype.setText=function(W){return this.each(function(O){_.oB(O,W)})};
var SQR=function(W){W.each(function(O){O.removeAttribute("aria-hidden")})};
cA.prototype.getStyle=function(W){if(this.list_.length>0){var O=this.list_[0],b=O.style[_.wl(W)];return typeof b!=="undefined"?b:O.style[_.j7q(O,W)]||""}};
cA.prototype.getData=function(W){if(this.list_.length===0)return new uC(W,null);var O=nXN(this.list_[0],W);return new uC(W,O)};
cA.prototype.focus=function(W){try{W?this.el().focus(W):this.el().focus()}catch(O){}return this};
cA.prototype.click=function(){var W=_.g4(this.el());if(W.createEvent){var O=W.createEvent("MouseEvents");O.initMouseEvent("click",!0,!0,W.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(O)}else W=W.createEventObject(),W.clientX=0,W.clientY=0,W.screenX=0,W.screenY=0,W.altKey=!1,W.ctrlKey=!1,W.shiftKey=!1,W.button=0,this.el().fireEvent("onclick",W)};
var y6=function(W,O,b,T){function L(a,m,w){var A=m;m&&m.parentNode&&(A=m.cloneNode(!0));a(A,w)}
T=T===void 0?!1:T;if(W.list_.length==1){var h=W.list_[0],Z=function(a){return O(a,h)};
b instanceof cA?b.each(Z,void 0,T):Array.isArray(b)?(T?r_2:_.$X)(b,Z):Z(b);return W}return W.each(function(a){b instanceof cA?b.each(function(m){L(O,m,a)}):Array.isArray(b)?_.$X(b,function(m){L(O,m,a)}):L(O,b,a)})};
_.d=cA.prototype;_.d.append=function(W){return y6(this,function(O,b){O&&b.appendChild(O)},W)};
_.d.appendTo=function(W){(new cA([W])).append(this);return this};
_.d.remove=function(){return y6(this,function(W,O){_.Xu(O)},null)};
_.d.empty=function(){return y6(this,function(W,O){_.RB(O)},null)};
_.d.after=function(W,O){return y6(this,function(b,T){b&&_.v1(b,T)},W,!(O===void 0||O))};
_.d.before=function(W){return y6(this,function(O,b){O&&_.K4(O,b)},W)};
_.d.replaceWith=function(W){return y6(this,function(O,b){O&&_.GX5(O,b)},W)};
_.d.toggle=function(W){return this.each(function(O){_.N9(O,W)})};
_.d.show=function(){return this.toggle(!0)};
_.d.hide=function(){return this.toggle(!1)};
_.d.trigger=function(W,O,b,T){return ZDR(this,W,O,b,T)};
var ZDR=function(W,O,b,T,L){return W.each(function(h){_.pUh(_.g4(h)).triggerWizEventInternal(h,O,b,T,L)})},Ff=function(W,O){W instanceof cA&&(O=W.list_,W=null);
this.list_=TYg(W!=null?[W]:O)};
_.Wk(Ff,cA);_.d=Ff.prototype;_.d.children=function(){return new cA(Array.prototype.slice.call(_.g7(this.list_[0])))};
_.d.each=function(W,O){W.call(O,this.list_[0],0);return this};
_.d.size=function(){return 1};
_.d.el=function(){return this.list_[0]};
_.d.first=function(){return this};var WF=function(W,O){O=O===void 0?window:O;this.hostId=W;this.JSC$17293_win=O;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$17293_previousHtmlOverscroll=this.JSC$17293_previousBodyOverscroll=this.JSC$17293_previousBodyOverflow="";this.eventTarget=new _.ER;this.JSC$17293_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
mcg=function(W){var O=ILZ(ILZ(ILZ(new aL8(78),"po"),"hppp"),"hhc");
O.authUser=Number(_.Cv("SESSION_INDEX","0"));O.colorScheme=W;return O};
WF.prototype.getOrigin=function(){return this.origin?this.origin:_.Mn(_.Nn(_.VQ(new _.Np,this.JSC$17293_win.location.protocol),this.JSC$17293_win.location.hostname),this.JSC$17293_win.location.port).toString()};
WF.prototype.getTargetOrigin=function(){return _.Mn(_.Nn(_.VQ(new _.Np,this.scheme),this.domain),this.port)};
WF.prototype.preloadIframe=function(W){var O=this;if(this.iframeLoadPromise===void 0){var b=document.createElement("iframe");this.iframe=b;nG8(b,W);this.iframeLoadPromise=new Promise(function(T,L){var h=!1,Z=function(a){a.stopPropagation();b.removeEventListener("error",Z);b.removeEventListener("securitypolicyviolation",Z);L(Error("hk",{cause:a}))};
b.addEventListener("error",Z);b.addEventListener("securitypolicyviolation",Z);setTimeout(function(){h||L(Error("ik"))},3E4);
YQ2(O,b,function(){h=!0;b.removeEventListener("error",Z);b.removeEventListener("securitypolicyviolation",Z);T()})});
EqD(this);W=this.getTargetOrigin().toString();b.setAttribute("allow","camera "+W+"; display-capture "+W);this.parentElement.appendChild(b)}return this.iframeLoadPromise};
var XR8=function(W,O){var b,T;return _.I(function(L){if(L.nextAddress==1)return b=s1g(getComputedStyle(W.parentElement).direction==="rtl"),W.parentElement.appendChild(b),document.activeElement instanceof HTMLElement&&(W.elementToFocusAfterClose=document.activeElement),_.LI(L,2),_.Y(L,W.preloadIframe(O),4);if(L.nextAddress!=2){W.parentElement.removeChild(b);W.JSC$17293_previousBodyOverflow=W.parentElement.style.overflow;W.JSC$17293_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
W.JSC$17293_previousBodyOverscroll=W.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";W.parentElement.style.overscrollBehavior="contain";W.parentElement.style.overflow="hidden";var h=W.iframe;h.style.bottom="0";h.style.border="none";h.style.height="100%";h.style.left="0";h.style.position=W.iframePosition;h.style.right="0";h.style.top="0";h.style.width="100%";h.style.zIndex="2202";h.setAttribute("aria-hidden","false");h.setAttribute("aria-modal","true");
W.opened=!0;wRR(W);return _.H3(L,0)}T=_.ID(L);W.parentElement.removeChild(b);zWP(W.isDarkTheme());AsB(W,!1);throw Error("jk",{cause:T});})},AsB=function(W,O){O=O===void 0?!0:O;
W.iframe!==void 0&&(Ucg(W),document.documentElement.style.overscrollBehavior=W.JSC$17293_previousHtmlOverscroll,W.parentElement.style.overscrollBehavior=W.JSC$17293_previousBodyOverscroll,W.parentElement.style.overflow=W.JSC$17293_previousBodyOverflow,W.elementToFocusAfterClose!==void 0&&(W.elementToFocusAfterClose.focus(),W.elementToFocusAfterClose=void 0),O?EqD(W):(W.parentElement.removeChild(W.iframe),W.iframe=void 0,W.iframeLoadPromise=void 0,W.mainChannel=void 0),W.opened=!1)},Ucg=function(W){W.backgroundElementsAriaHiddenIsNull&&
(SQR(W.backgroundElementsAriaHiddenIsNull),W.backgroundElementsAriaHiddenIsNull=void 0);
W.backgroundElementsAriaHiddenIsFalse&&(W.backgroundElementsAriaHiddenIsFalse.each(function(O){O.setAttribute("aria-hidden","false")}),W.backgroundElementsAriaHiddenIsFalse=void 0);
W.backgroundElementsWithoutInert&&(W.backgroundElementsWithoutInert.each(function(O){O.removeAttribute("inert")}),W.backgroundElementsWithoutInert=void 0)},wRR=function(W){W.backgroundElementsAriaHiddenIsNull=(new Ff(W.iframe.parentElement)).children().filter(function(O){return O.getAttribute("aria-hidden")===null&&O!==W.iframe});
W.backgroundElementsAriaHiddenIsNull.each(function(O){O.setAttribute("aria-hidden","true")});
W.backgroundElementsAriaHiddenIsFalse=(new Ff(W.iframe.parentElement)).children().filter(function(O){return O.getAttribute("aria-hidden")==="false"&&O!==W.iframe});
W.backgroundElementsAriaHiddenIsFalse.each(function(O){O.setAttribute("aria-hidden","true")});
W.backgroundElementsWithoutInert=(new Ff(W.iframe.parentElement)).children().filter(function(O){return!O.hasAttribute("inert")&&O!==W.iframe});
W.backgroundElementsWithoutInert.each(function(O){O.setAttribute("inert","true")})},EqD=function(W){W=W.iframe;
W.style.bottom="-1000px";W.style.position="fixed";W.style.right="-1000px";W.style.border="";W.style.height="";W.style.left="";W.style.top="";W.style.width="";W.style.zIndex="";W.setAttribute("aria-hidden","true");W.setAttribute("aria-modal","false")};
WF.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var aL8=function(W,O){WF.call(this,oNZ[W],O);this.options=[];this.style=""};
_.R(aL8,WF);var lLD=function(W){W.style="youtube";return W},e9U=function(W,O){W.eventTarget.listen(fvg,O);
return W},PUg=function(W,O){W.eventTarget.listen(q8N,O);
return W},ILZ=function(W,O){W.options.push(O);
return W},pRU=function(W){var O=[W.getOrigin()];
W.ancestorOrigins&&O.push.apply(O,_.PG(W.ancestorOrigins));var b=new _.Np(W.JSC$17293_win.location.href),T=W.startUrl?W.startUrl:W.options.includes("po")?"profile-picture/art":"profile-picture";O=LR(_.uE(W.getTargetOrigin(),T),"origin",O);W.startUrl&&_.VC(O,"startPath",W.startUrl);W.authUser>0&&_.VC(O,"authuser",W.authUser);W.pageId!==void 0&&_.VC(O,"pageId",W.pageId);_.VC(O,"hostId",W.hostId);W.jsMode!==void 0&&_.VC(O,"jsmode",W.jsMode);W.options.length>0&&_.VC(O,"opts",W.options.join(","));try{for(var L=
_.S(["utm_source","utm_medium","utm_campaign","utm_content"]),h=L.next();!h.done;h=L.next()){var Z=h.value;_.$6(b,Z)&&_.VC(O,Z,_.$6(b,Z))}var a,m=(a=W.hl)!=null?a:_.$6(b,"hl");m!==void 0&&_.VC(O,"hl",m)}catch(w){if(!(w instanceof URIError))throw w;}W.colorScheme&&_.VC(O,"theme",W.colorScheme);W.style&&_.VC(O,"style",W.style);return O},R9U=function(W,O){W.mainChannel=_.uM({destination:W.JSC$17293_win,
iframe:O,origin:W.getTargetOrigin().toString(),channelName:"ow",onMessage:function(b){b=Ds2(b.data);if(O===W.iframe)switch(_.gQ(b,1)){case 1:W.eventTarget.dispatchEvent(new $sN);AsB(W);break;case 2:W.eventTarget.dispatchEvent(new HF9(_.vk(b,4),_.vk(b,2),_.gQ(b,5),_.bP(b,syg,6)));break;case 0:var T;W.eventTarget.dispatchEvent(new t78(_.vk(b,2),(T=_.gQ(b,3))!=null?T:0));break;case 3:W.eventTarget.dispatchEvent(new $sN(!0));AsB(W,!1);break;case 4:W.eventTarget.dispatchEvent(new V78)}}})},YQ2=function(W,
O,b){_.uM({destination:W.JSC$17293_win,
iframe:O,origin:_.Mn(_.Nn(_.VQ(new _.Np,W.scheme),W.domain),W.port).toString(),channelName:"owi",onMessage:function(T){O===W.iframe&&(b!==void 0&&b(),R9U(W,O),W.opened&&W.mainChannel.send(C3g(zK1())),T.reply(),YQ2(W,O))}})};
aL8.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?WF.prototype.preloadIframe.call(this,pRU(this).toString()):this.iframeLoadPromise};
aL8.prototype.openPicker=function(W){var O=this;return _.I(function(b){if(b.nextAddress==1)return O.startUrl=W?W:O.options.includes("po")?"profile-picture/art":"profile-picture",_.Y(b,XR8(O,pRU(O).toString()),2);if(O.mainChannel){var T=O.mainChannel,L=T.send;var h=zK1();h=_.aG(h,2,O.startUrl);L.call(T,C3g(h))}_.aD(b)})};var KNU=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(KNU,_.qA);_.d=KNU.prototype;_.d.getSize=function(){return me(this,1)};
_.d.setSize=function(W){return _.s3(this,1,W)};
_.d.getWidth=function(){return me(this,12)};
_.d.getHeight=function(){return me(this,13)};
_.d.setCenterCrop=function(W){return _.TP(this,20,W)};
_.d.getHtml=function(){return _.pf(this,4)};
_.d.getToken=function(){return _.wD(this,24)};
_.d.setToken=function(W){return _.aG(this,24,W)};
_.d.getBackgroundColor=function(){return me(this,87)};
_.d.hasBackgroundColor=function(){return _.gg(_.mD(this,87))!=null};
_.d.getStoryboardLevel=function(){return me(this,109)};var Oa=function(W){this.JSC$17301_value_=void 0;this.childNodes_={};if(W){var O=_.v39(W);W=_.$H(W);for(var b=0;b<O.length;b++)this.set(O[b],W[b])}};
Oa.prototype.set=function(W,O){vqU(this,W,O,!1)};
Oa.prototype.add=function(W,O){vqU(this,W,O,!0)};
var vqU=function(W,O,b,T){for(var L=0;L<O.length;L++){var h=O.charAt(L);W.childNodes_[h]||(W.childNodes_[h]=new Oa);W=W.childNodes_[h]}if(T&&W.JSC$17301_value_!==void 0)throw Error("kk`"+O);W.JSC$17301_value_=b},gq9=function(W,O){for(var b=0;b<O.length;b++)if(W=W.childNodes_[O.charAt(b)],!W)return;
return W};
Oa.prototype.get=function(W){return(W=gq9(this,W))?W.JSC$17301_value_:void 0};
Oa.prototype.getValues=function(){var W=[];oqP(this,W);return W};
var oqP=function(W,O){W.JSC$17301_value_!==void 0&&O.push(W.JSC$17301_value_);for(var b in W.childNodes_)oqP(W.childNodes_[b],O)};
Oa.prototype.getKeys=function(W){var O=[];if(W){for(var b=this,T=0;T<W.length;T++){var L=W.charAt(T);if(!b.childNodes_[L])return[];b=b.childNodes_[L]}Qd8(b,W,O)}else Qd8(this,"",O);return O};
var Qd8=function(W,O,b){W.JSC$17301_value_!==void 0&&b.push(O);for(var T in W.childNodes_)Qd8(W.childNodes_[T],O+T,b)};
_.d=Oa.prototype;_.d.containsKey=function(W){return this.get(W)!==void 0};
_.d.containsValue=function(W){if(this.JSC$17301_value_===W)return!0;for(var O in this.childNodes_)if(this.childNodes_[O].containsValue(W))return!0;return!1};
_.d.clear=function(){this.childNodes_={};this.JSC$17301_value_=void 0};
_.d.remove=function(W){for(var O=this,b=[],T=0;T<W.length;T++){var L=W.charAt(T);if(!O.childNodes_[L])throw Error("lk`"+W);b.push([O,L]);O=O.childNodes_[L]}W=O.JSC$17301_value_;for(delete O.JSC$17301_value_;b.length>0;)if(T=b.pop(),O=T[0],T=T[1],O.childNodes_[T].isEmpty())delete O.childNodes_[T];else break;return W};
_.d.clone=function(){return new Oa(this)};
_.d.getCount=function(){return I69(this.getValues())};
_.d.isEmpty=function(){return this.JSC$17301_value_===void 0&&_.PQ.isEmpty(this.childNodes_)};var $Jg=function(){if(!kN2){var W=kN2=new Oa,O;for(O in sdg)W.add(O,sdg[O])}},kN2,i2=function(W,O){this.types=W;
this.setters=O},sdg={a:new i2([3,
0],[function(W,O){_.TP(W,21,O)},
function(W,O){_.s3(W,56,O)}]),
al:new i2([3],[function(W,O){_.TP(W,74,O)}]),
b:new i2([3,0],[function(W,O){_.TP(W,23,O)},
function(W,O){_.s3(W,38,O)}]),
ba:new i2([0],[function(W,O){_.s3(W,85,O)}]),
bc:new i2([0],[function(W,O){_.s3(W,87,O)}]),
br:new i2([0],[function(W,O){_.s3(W,86,O)}]),
c:new i2([3,0],[function(W,O){_.TP(W,2,O)},
function(W,O){_.s3(W,39,O)}]),
cc:new i2([3],[function(W,O){_.TP(W,51,O)}]),
ci:new i2([3],[function(W,O){_.TP(W,32,O)}]),
ckm:new i2([3],[function(W,O){_.TP(W,104,O)}]),
cp:new i2([0],[function(W,O){_.s3(W,92,O)}]),
cr:new i2([3],[function(W,O){_.TP(W,108,O)}]),
cv:new i2([0],[function(W,O){_.s3(W,94,O)}]),
d:new i2([3],[function(W,O){_.TP(W,3,O)}]),
dc:new i2([5],[function(W,O){_.aG(W,99,O)}]),
df:new i2([3],[function(W,O){_.TP(W,80,O)}]),
dv:new i2([3],[function(W,O){_.TP(W,90,O)}]),
e:new i2([0],[function(W,O){_.s3(W,15,O)}]),
em:new i2([0],[function(W,O){_.s3(W,107,O)}]),
f:new i2([4],[function(W,O){_.aG(W,16,O)}]),
fg:new i2([3],[function(W,O){_.TP(W,34,O)}]),
fh:new i2([3],[function(W,O){_.TP(W,30,O)}]),
fm:new i2([3],[function(W,O){_.TP(W,84,O)}]),
fo:new i2([2],[function(W,O){_.T7(W,79,_.ZP(O))}]),
ft:new i2([3],[function(W,O){_.TP(W,50,O)}]),
fv:new i2([3],[function(W,O){_.TP(W,31,O)}]),
g:new i2([3],[function(W,O){_.TP(W,14,O)}]),
gce:new i2([4],[function(W,O){_.aG(W,112,O)}]),
gd:new i2([3],[function(W,O){_.TP(W,83,O)}]),
gm:new i2([3],[function(W,O){_.TP(W,105,O)}]),
h:new i2([3,0],[function(W,O){_.TP(W,4,O)},
function(W,O){_.s3(W,13,O)}]),
i:new i2([3],[function(W,O){_.TP(W,22,O)}]),
ic:new i2([0],[function(W,O){_.s3(W,71,O)}]),
id:new i2([3],[function(W,O){_.TP(W,70,O)}]),
il:new i2([3],[function(W,O){_.TP(W,96,O)}]),
ip:new i2([3],[function(W,O){_.TP(W,54,O)}]),
iv:new i2([0],[function(W,O){_.pB(W,75,O)}]),
j:new i2([1],[function(W,O){O=O==null?O:zhg(O);_.T7(W,29,O)}]),
k:new i2([3,0],[function(W,O){_.TP(W,17,O)},
function(W,O){_.s3(W,42,O)}]),
l:new i2([0],[function(W,O){_.s3(W,44,O)}]),
lf:new i2([3],[function(W,O){_.TP(W,65,O)}]),
lo:new i2([3],[function(W,O){_.TP(W,97,O)}]),
m:new i2([0],[function(W,O){_.s3(W,63,O)}]),
md:new i2([3],[function(W,O){_.TP(W,91,O)}]),
mm:new i2([4],[function(W,O){_.aG(W,81,O)}]),
mo:new i2([3],[function(W,O){_.TP(W,73,O)}]),
mv:new i2([3],[function(W,O){_.TP(W,66,O)}]),
n:new i2([3],[function(W,O){W.setCenterCrop(O)}]),
nc:new i2([3],[function(W,O){_.TP(W,55,O)}]),
nd:new i2([3],[function(W,O){_.TP(W,53,O)}]),
ng:new i2([3],[function(W,O){_.TP(W,95,O)}]),
ngm:new i2([3],[function(W,O){_.TP(W,106,O)}]),
no:new i2([3],[function(W,O){_.TP(W,37,O)}]),
ns:new i2([3],[function(W,O){_.TP(W,40,O)}]),
nt0:new i2([4],[function(W,O){_.aG(W,36,O)}]),
ntm:new i2([3],[function(W,O){_.TP(W,114,O)}]),
nu:new i2([3],[function(W,O){_.TP(W,46,O)}]),
nw:new i2([3],[function(W,O){_.TP(W,48,O)}]),
o:new i2([1,3],[function(W,O){O=O==null?O:zhg(O);_.T7(W,7,O)},
function(W,O){_.TP(W,27,O)}]),
p:new i2([3,0],[function(W,O){_.TP(W,19,O)},
function(W,O){_.s3(W,43,O)}]),
pa:new i2([3],[function(W,O){_.TP(W,61,O)}]),
pc:new i2([0],[function(W,O){_.s3(W,88,O)}]),
pd:new i2([3],[function(W,O){_.TP(W,60,O)}]),
pf:new i2([3],[function(W,O){_.TP(W,67,O)}]),
pg:new i2([3],[function(W,O){_.TP(W,72,O)}]),
pi:new i2([2],[function(W,O){_.T7(W,76,_.ZP(O))}]),
pp:new i2([3],[function(W,O){_.TP(W,52,O)}]),
pt:new i2([4],[function(W,O){_.aG(W,111,O)}]),
q:new i2([4],[function(W,O){_.aG(W,28,O)}]),
r:new i2([3,0],[function(W,O){_.TP(W,6,O)},
function(W,O){_.s3(W,26,O)}]),
ra:new i2([3],[function(W,O){_.TP(W,103,O)}]),
rf:new i2([3],[function(W,O){_.TP(W,100,O)}]),
rg:new i2([3],[function(W,O){_.TP(W,59,O)}]),
rh:new i2([3],[function(W,O){_.TP(W,49,O)}]),
rj:new i2([3],[function(W,O){_.TP(W,57,O)}]),
ro:new i2([2],[function(W,O){_.T7(W,78,_.ZP(O))}]),
rp:new i2([3],[function(W,O){_.TP(W,58,O)}]),
rw:new i2([3],[function(W,O){_.TP(W,35,O)}]),
rwa:new i2([3],[function(W,O){_.TP(W,64,O)}]),
rwu:new i2([3],[function(W,O){_.TP(W,41,O)}]),
s:new i2([3,0],[function(W,O){_.TP(W,33,O)},
function(W,O){W.setSize(O)}]),
sb:new i2([0],[function(W,O){_.s3(W,110,O)}]),
sc:new i2([0],[function(W,O){_.s3(W,89,O)}]),
sg:new i2([3],[function(W,O){_.TP(W,82,O)}]),
sl:new i2([0],[function(W,O){_.s3(W,109,O)}]),
sm:new i2([3],[function(W,O){_.TP(W,93,O)}]),
t:new i2([4],[function(W,O){W.setToken(O)}]),
tm:new i2([3],[function(W,O){_.TP(W,113,O)}]),
u:new i2([3],[function(W,O){_.TP(W,18,O)}]),
ut:new i2([3],[function(W,O){_.TP(W,45,O)}]),
v:new i2([0],[function(W,O){_.s3(W,62,O)}]),
vb:new i2([0],[function(W,O){_.pB(W,68,O)}]),
vf:new i2([4],[function(W,O){_.aG(W,102,O)}]),
vl:new i2([0],[function(W,O){_.pB(W,69,O)}]),
vm:new i2([3],[function(W,O){_.TP(W,98,O)}]),
w:new i2([0],[function(W,O){_.s3(W,12,O)}]),
x:new i2([0],[function(W,O){_.s3(W,9,O)}]),
y:new i2([0],[function(W,O){_.s3(W,10,O)}]),
ya:new i2([2],[function(W,O){_.T7(W,77,_.ZP(O))}]),
z:new i2([0],[function(W,O){_.s3(W,11,O)}])};
$Jg.prototype.parse=function(W){var O=new KNU,b=new KNU;if(W=="")W=!0;else{W=W.split("-");for(var T=!0,L=0;L<W.length;L++){var h=W[L];if(h.length==0)T=!1;else{var Z=h,a=!1;var m=Z;var w=Z.charAt(0);w!=w.toLowerCase()&&(a=!0,m=Z.charAt(0).toLowerCase()+Z.substring(1));var A=kN2;for(w=1;w<=m.length;++w){var X=A,l=m.substring(0,w);if(l.length==0?X.isEmpty():!gq9(X,l))break}m=w==1?null:(m=A.get(m.substring(0,w-1)))?{option:Z.substring(0,w-1),value:Z.substring(w-1),signed:a,attributes:m}:null;if(m){Z=
[];a=[];w=!1;for(A=0;A<m.attributes.types.length;A++){X=m.attributes.types[A];var p=m.value;l=L;if(m.signed&&X==1)for(var K=p.length;K<12&&l<W.length-1;)p+="-"+W[l+1],K=p.length,++l;else if(X==2)for(;l<W.length-1&&W[l+1].match(/^[\d\.]/);)p+="-"+W[l+1],++l;K=m.attributes.setters[A];p=PEU(this,X)(m.option,p,O,b,K);if(p===null){w=!0;L=l;break}else Z.push(X),a.push(p)}if(!w)for(m=0;m<a.length;m++)A=Z[m],p=a[m],pxZ(this,A)(h,p);T=T&&w}else T=!1}}W=T}return new RfN(O,b,W)};
var b2=function(W,O,b,T,L,h){L(b,O);W=W.charAt(0);h=h(W==W.toUpperCase());L(T,h)};
_.d=$Jg.prototype;_.d.parseAndSetIntOption_=function(W,O,b,T,L){if(O=="")return 0;isFinite(O)&&(O=String(O));O=typeof O==="string"?/^\s*-?0x/i.test(O)?parseInt(O,16):parseInt(O,10):NaN;if(isNaN(O))return 1;b2(W,O,b,T,L,Number);return null};
_.d.logIntParseError_=function(){};
_.d.parseAndSetFloatOption_=function(W,O,b,T,L){if(O=="")return 0;var h=Number(O);O=h==0&&_.Zi(O)?NaN:h;if(isNaN(O))return 1;b2(W,O,b,T,L,Number);return null};
_.d.logFloatParseError_=function(){};
_.d.parseAndSetBoolOption_=function(W,O,b,T,L){if(O!="")return 2;b2(W,!0,b,T,L,Boolean);return null};
_.d.logBoolParseError_=function(){};
_.d.parseAndSetStringOption_=function(W,O,b,T,L){if(O=="")return 0;b2(W,O,b,T,L,function(h){return h?"1":""});
return null};
_.d.logStringParseError_=function(){};
_.d.parseAndSetUint64Base64Option_=function(W,O,b,T,L){if(O=="")return 0;b2(W,O,b,T,L,function(h){return h?1:0});
return null};
var PEU=function(W,O){switch(O){case 0:return(0,_.K5)(W.parseAndSetIntOption_,W);case 2:return(0,_.K5)(W.parseAndSetFloatOption_,W);case 3:return(0,_.K5)(W.parseAndSetBoolOption_,W);case 4:return(0,_.K5)(W.parseAndSetStringOption_,W);case 1:return(0,_.K5)(W.parseAndSetUint64Base64Option_,W);default:return function(){}}},pxZ=function(W,O){switch(O){case 0:return(0,_.K5)(W.logIntParseError_,W);
case 2:return(0,_.K5)(W.logFloatParseError_,W);case 3:return(0,_.K5)(W.logBoolParseError_,W);case 4:case 1:return(0,_.K5)(W.logStringParseError_,W);default:return function(){}}},RfN=function(W,O,b){this.valueProto_=W;
this.signatureFlagProto_=O;this.JSC$17313_valid_=b};
RfN.prototype.isValid=function(){return this.JSC$17313_valid_};var ft9=function(W){this.JSC$17314_parser_=null;this.JSC$17314_components_=[];this.JSC$17314_parsedOptions_=null;KH8(this,W)},vH1=function(W){W.JSC$17314_parser_==null&&(W.JSC$17314_parser_=new $Jg);
return W.JSC$17314_parser_},KH8=function(W,O){W.JSC$17314_parsedOptions_=O?typeof O==="string"?vH1(W).parse(O):O:vH1(W).parse("")},jv=function(W,O){return W==O?!1:!0};
_.d=ft9.prototype;_.d.JSC$17316_setCrop=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,_.pf(b,2),_.pf(O.signatureFlagProto_,2))&&_.TP(b,2,W);return this};
_.d.JSC$17316_setCircleCrop=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,aZ(b,51),aZ(O.signatureFlagProto_,51))&&_.TP(b,51,W);return this};
_.d.JSC$17316_setImageCrop=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,aZ(b,32),aZ(O.signatureFlagProto_,32))&&_.TP(b,32,W);return this};
_.d.JSC$17316_setHeight=function(W){var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,b.getHeight(),O.signatureFlagProto_.getHeight())&&_.s3(b,13,W);return this};
_.d.setCenterCrop=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,_.pf(b,20),_.pf(O.signatureFlagProto_,20))&&b.setCenterCrop(W);return this};
_.d.JSC$17316_setSmartCrop=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,_.pf(b,19),_.pf(O.signatureFlagProto_,19))&&_.TP(b,19,W);return this};
_.d.JSC$17316_setPad=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,aZ(b,60),aZ(O.signatureFlagProto_,60))&&_.TP(b,60,W);return this};
_.d.JSC$17316_setSmartCropUseFace=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,_.pf(b,67),_.pf(O.signatureFlagProto_,67))&&_.TP(b,67,W);return this};
_.d.JSC$17316_setSmartCropNoClip=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,_.pf(b,52),_.pf(O.signatureFlagProto_,52))&&_.TP(b,52,W);return this};
_.d.setSize=function(W){var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,b.getSize(),O.signatureFlagProto_.getSize())&&b.setSize(W);return this};
_.d.setToken=function(W){W=W||void 0;var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,b.getToken(),O.signatureFlagProto_.getToken())&&b.setToken(W);return this};
_.d.JSC$17316_setWidth=function(W){var O=this.JSC$17314_parsedOptions_,b=O.valueProto_;jv(W,b.getWidth(),O.signatureFlagProto_.getWidth())&&_.s3(b,12,W);return this};
_.d.clearOptions=function(){KH8(this,"");return this};
_.d.build=function(){this.JSC$17314_components_.length=0;var W=this.JSC$17314_parsedOptions_,O=W.valueProto_;W=W.signatureFlagProto_;Tu(this,"s",O.getSize(),W.getSize());Tu(this,"w",O.getWidth(),W.getWidth());Lk(this,"c",_.pf(O,2),_.pf(W,2));Lk(this,"d",_.pf(O,3),_.pf(W,3));Tu(this,"h",O.getHeight(),W.getHeight());Lk(this,"s",aZ(O,33),aZ(W,33));Lk(this,"h",O.getHtml(),W.getHtml());Lk(this,"p",_.pf(O,19),_.pf(W,19));Lk(this,"pp",_.pf(O,52),_.pf(W,52));Lk(this,"pf",_.pf(O,67),_.pf(W,67));Lk(this,"n",
_.pf(O,20),_.pf(W,20));Tu(this,"r",me(O,26),me(W,26));Lk(this,"r",_.pf(O,6),_.pf(W,6));Lk(this,"o",aZ(O,27),aZ(W,27));var b=_.Pk(O,7,_.a6);dJ(this,"o",b,_.Pk(W,7,_.a6));b=_.Pk(O,29,_.a6);dJ(this,"j",b,_.Pk(W,29,_.a6));Tu(this,"x",me(O,9),me(W,9));Tu(this,"y",me(O,10),me(W,10));Tu(this,"z",me(O,11),me(W,11));Lk(this,"g",_.pf(O,14),_.pf(W,14));Tu(this,"e",me(O,15),me(W,15));dJ(this,"f",_.wD(O,16),_.wD(W,16));Lk(this,"k",aZ(O,17),aZ(W,17));Lk(this,"u",aZ(O,18),!0);Lk(this,"ut",aZ(O,45),!0);Lk(this,"i",
aZ(O,22),!0);Lk(this,"a",aZ(O,21),aZ(W,21));Lk(this,"b",_.pf(O,23),_.pf(W,23));Tu(this,"b",me(O,38),me(W,38));Tu(this,"c",me(O,39),me(W,39),16,8);dJ(this,"q",_.wD(O,28),_.wD(W,28));Lk(this,"fh",aZ(O,30),aZ(W,30));Lk(this,"fv",aZ(O,31),aZ(W,31));Lk(this,"fg",_.pf(O,34),_.pf(W,34));Lk(this,"ci",aZ(O,32),aZ(W,32));dJ(this,"t",O.getToken(),W.getToken());dJ(this,"nt0",_.wD(O,36),_.wD(W,36));Lk(this,"rw",_.pf(O,35),_.pf(W,35));Lk(this,"rwu",_.pf(O,41),_.pf(W,41));Lk(this,"rwa",_.pf(O,64),_.pf(W,64));Lk(this,
"nw",_.pf(O,48),_.pf(W,48));Lk(this,"rh",_.pf(O,49),_.pf(W,49));Lk(this,"no",_.pf(O,37),_.pf(W,37));Lk(this,"ns",aZ(O,40),aZ(W,40));Tu(this,"k",me(O,42),me(W,42));Tu(this,"p",me(O,43),me(W,43));Tu(this,"l",me(O,44),me(W,44));Tu(this,"v",me(O,62),me(W,62));Lk(this,"nu",aZ(O,46),aZ(W,46));Lk(this,"ft",aZ(O,50),aZ(W,50));Lk(this,"cc",aZ(O,51),aZ(W,51));Lk(this,"nd",aZ(O,53),aZ(W,53));Lk(this,"ip",aZ(O,54),aZ(W,54));Lk(this,"nc",aZ(O,55),aZ(W,55));Tu(this,"a",me(O,56),me(W,56));Lk(this,"rj",aZ(O,57),
aZ(W,57));Lk(this,"rp",aZ(O,58),aZ(W,58));Lk(this,"rg",aZ(O,59),aZ(W,59));Lk(this,"pd",aZ(O,60),aZ(W,60));Lk(this,"pa",aZ(O,61),aZ(W,61));Tu(this,"m",me(O,63),me(W,63));Tu(this,"vb",Yx(O,68),Yx(W,68));Tu(this,"vl",Yx(O,69),Yx(W,69));Lk(this,"lf",aZ(O,65),aZ(W,65));Lk(this,"mv",aZ(O,66),aZ(W,66));Lk(this,"id",aZ(O,70),aZ(W,70));Tu(this,"ic",me(O,71),!0);Lk(this,"pg",_.pf(O,72),_.pf(W,72));Lk(this,"mo",aZ(O,73),aZ(W,73));Lk(this,"al",aZ(O,74),aZ(W,74));Tu(this,"iv",Yx(O,75),Yx(W,75));Tu(this,"pi",Ef(O,
76),Ef(W,76));Tu(this,"ya",Ef(O,77),Ef(W,77));Tu(this,"ro",Ef(O,78),Ef(W,78));Tu(this,"fo",Ef(O,79),Ef(W,79));Lk(this,"df",aZ(O,80),aZ(W,80));dJ(this,"mm",_.wD(O,81),_.wD(W,81));Lk(this,"sg",aZ(O,82),aZ(W,82));Lk(this,"gd",aZ(O,83),aZ(W,83));Lk(this,"fm",aZ(O,84),aZ(W,84));Tu(this,"ba",me(O,85),me(W,85));Tu(this,"br",me(O,86),me(W,86));Tu(this,"bc",O.getBackgroundColor(),W.getBackgroundColor(),16,8);Tu(this,"pc",me(O,88),me(W,88),16,8);Tu(this,"sc",me(O,89),me(W,89),16,8);Lk(this,"dv",aZ(O,90),aZ(W,
90));Lk(this,"md",aZ(O,91),aZ(W,91));Tu(this,"cp",me(O,92),me(W,92));Lk(this,"sm",aZ(O,93),aZ(W,93));Tu(this,"cv",me(O,94),me(W,94));Lk(this,"ng",aZ(O,95),aZ(W,95));Lk(this,"il",aZ(O,96),aZ(W,96));Lk(this,"lo",aZ(O,97),aZ(W,97));Lk(this,"vm",aZ(O,98),aZ(W,98));dJ(this,"dc",_.wD(O,99),_.wD(W,99));Lk(this,"rf",aZ(O,100),aZ(W,100));dJ(this,"vf",_.wD(O,102),_.wD(W,102));Lk(this,"ra",_.pf(O,103),_.pf(W,103));Lk(this,"ckm",aZ(O,104),aZ(W,104));Lk(this,"gm",aZ(O,105),aZ(W,105));Lk(this,"ngm",aZ(O,106),aZ(W,
106));Tu(this,"em",me(O,107),me(W,107));Lk(this,"cr",aZ(O,108),aZ(W,108));Tu(this,"sl",O.getStoryboardLevel(),W.getStoryboardLevel());Tu(this,"sb",me(O,110),me(W,110));dJ(this,"pt",_.wD(O,111),_.wD(W,111));dJ(this,"gce",_.wD(O,112),_.wD(W,112));Lk(this,"tm",aZ(O,113),aZ(W,113));Lk(this,"ntm",aZ(O,114),aZ(W,114));return this.JSC$17314_components_.join("-")};
var Tu=function(W,O,b,T,L,h){if(b!=null){var Z=L==void 0||L!=10&&L!=16?10:L;b=Number(b).toString(Z);L=new Oug;L.append(Z==16?"0x":"");Z=L.append;h==void 0?h="":(h-=b.length,h=h<=0?"":(0,_.gmT)("0",h));Z.call(L,h);L.append(b);gHU(W,O,L.toString(),!!Number(T))}},Lk=function(W,O,b,T){b&&gHU(W,O,"",!!T)},dJ=function(W,O,b,T){b&&gHU(W,O,String(b),!!Number(T))},gHU=function(W,O,b,T){T&&(O=O.charAt(0).toUpperCase()+O.substring(1));
W.JSC$17314_components_.push(O+b)};_.Wk(PE,ft9);_.d=PE.prototype;_.d.JSC$17316_setCrop=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setCrop.call(this,W)};
_.d.JSC$17316_setHeight=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return PE.superClass_.JSC$17316_setHeight.call(this,W)};
_.d.JSC$17316_setImageCrop=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setImageCrop.call(this,W)};
_.d.JSC$17316_setCircleCrop=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setCircleCrop.call(this,W)};
_.d.setSize=function(W){_.LH(W)&&(W=Math.max(W.width,W.height));W=W==null||W<0?void 0:W;W!=null&&(this.JSC$17316_setWidth(),this.JSC$17316_setHeight());return PE.superClass_.setSize.call(this,W)};
_.d.JSC$17316_setSmartCrop=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setSmartCrop.call(this,W)};
_.d.JSC$17316_setSmartCropNoClip=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setSmartCropNoClip.call(this,W)};
_.d.JSC$17316_setSmartCropUseFace=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setSmartCropUseFace.call(this,W)};
_.d.setCenterCrop=function(W){W&&hm(this);return PE.superClass_.setCenterCrop.call(this,W)};
_.d.JSC$17316_setPad=function(W){W&&hm(this);return PE.superClass_.JSC$17316_setPad.call(this,W)};
_.d.JSC$17316_setWidth=function(W){W=W==null||W<0?void 0:W;W!=null&&this.setSize();return PE.superClass_.JSC$17316_setWidth.call(this,W)};
var oH9=function(W){W.clearOptions();var O=W.JSC$17314_parsedOptions_,b=O.valueProto_;jv(!0,_.pf(b,3),_.pf(O.signatureFlagProto_,3))&&_.TP(b,3,!0);return W},hm=function(W){W.setCenterCrop();
W.JSC$17316_setCircleCrop();W.JSC$17316_setCrop();W.JSC$17316_setImageCrop();W.JSC$17316_setPad();W.JSC$17316_setSmartCrop();W.JSC$17316_setSmartCropNoClip();W.JSC$17316_setSmartCropUseFace()};
PE.prototype.build=function(){var W=this.JSC$17314_parsedOptions_.valueProto_;aZ(W,18)||aZ(W,45)?W.getSize()||this.setSize(0):(W=this.JSC$17314_parsedOptions_.valueProto_,W.getSize()||W.getWidth()||W.getHeight()||(this.setSize(),this.JSC$17316_setHeight(),this.JSC$17316_setWidth(),hm(this)));return PE.superClass_.build.call(this)};var QKk=/^[^\/]*\/\//,Sv=function(W,O){O=O===void 0?!1:O;this.original_=W;this.originalPrefix_="";(W=this.original_.match(QKk))&&W[0]?(this.originalPrefix_=W[0],W=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):W="http://"+this.original_;this.uri_=_.tV(W,!0);this.isFreeformUrl_=O;this.JSC$17320_valid_=!0;this.obfuscated_=!1},kyB=function(W,O){W.JSC$17322_pathPrefix_=W.JSC$17322_pathPrefix_?W.JSC$17322_pathPrefix_+("/"+O):O},Z9=function(W){if(W.JSC$17322_components_==
void 0){var O=W.uri_.getPath().substring(1);
W.JSC$17322_pathPrefix_=null;if(W.isFreeformUrl_){W.JSC$17322_components_=[];if((O.match(/=/g)||[]).length>1)return W.JSC$17320_valid_=!1,W.JSC$17322_components_;var b=O.indexOf("=");b!=-1?(W.JSC$17322_components_.push(O.substr(0,b)),W.JSC$17322_components_.push(O.substr(b+1))):W.JSC$17322_components_.push(O);return W.JSC$17322_components_}W.JSC$17322_components_=O.split("/");O=W.JSC$17322_components_.length;O>2&&W.JSC$17322_components_[0]=="u"&&(kyB(W,W.JSC$17322_components_[0]+"/"+W.JSC$17322_components_[1]),
W.JSC$17322_components_.shift(),W.JSC$17322_components_.shift(),O-=2);if(O==0||O==4||O>7)return W.JSC$17320_valid_=!1,W.JSC$17322_components_;if(O==2)kyB(W,W.JSC$17322_components_[0]);else if(W.JSC$17322_components_[0]=="image")kyB(W,W.JSC$17322_components_[0]);else if(O==7||O==3)return W.JSC$17320_valid_=!1,W.JSC$17322_components_;if(O<=3){W.obfuscated_=!0;O==3&&(kyB(W,W.JSC$17322_components_[1]),W.JSC$17322_components_.shift(),--O);--O;b=W.JSC$17322_components_[O];var T=b.indexOf("=");T!=-1&&(W.JSC$17322_components_[O]=
b.substr(0,T),W.JSC$17322_components_.push(b.substr(T+1)))}}return W.JSC$17322_components_};
Sv.prototype.isValid=function(){Z9(this);return this.JSC$17320_valid_};
Sv.prototype.isObfuscated=function(){Z9(this);return this.obfuscated_};
var sKg=function(W){Z9(W);return W.isFreeformUrl_},Ip=function(W){Z9(W);
W.JSC$17322_pathPrefix_==void 0&&(W.JSC$17322_pathPrefix_=null);return W.JSC$17322_pathPrefix_},B91=function(W){switch(Z9(W).length){case 7:return!0;
case 6:return Ip(W)==null;case 5:return!1;case 3:return!0;case 2:return Ip(W)==null;case 1:return!1;default:return!1}},ap=function(W,O){if(sKg(W))a:{switch(O){case 7:O=0;
break;case 4:if(!B91(W)){W=null;break a}O=1;break;default:W=null;break a}W=Z9(W)[O]}else if(W.isObfuscated())a:{var b=Ip(W)!=null?1:0;switch(O){case 6:O=b;break;case 4:if(!B91(W)){W=null;break a}O=1+b;break;default:W=null;break a}W=Z9(W)[O]}else a:{b=Ip(W)!=null?1:0;switch(O){case 0:O=b;break;case 1:O=1+b;break;case 2:O=2+b;break;case 3:O=3+b;break;case 4:if(!B91(W)){W=null;break a}O=4+b;break;case 5:O=B91(W)?1:0;O=4+b+O;break;default:W=null;break a}W=Z9(W)[O]}return W};
Sv.prototype.getOptions=function(){this.options_==void 0&&(this.options_=ap(this,4));return this.options_};var tN2=function(){};
tN2.prototype.parse=function(W,O){return new G5D(W,O===void 0?!1:O)};
var G5D=function(W,O){Sv.call(this,W,O===void 0?!1:O)};
_.R(G5D,Sv);_.Wk(p3,PE);var HB5;p3.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
p3.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var W=p3.superClass_.build.call(this),O=[];Ip(this.parsedImageUrl_)!=null&&O.push(Ip(this.parsedImageUrl_));var b=sKg(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var T=this.parsedImageUrl_;T.obfuscatedData_==void 0&&(T.obfuscatedData_=ap(T,6));O.push(T.obfuscatedData_+(W?"="+W:""))}else if(b){T=O.push;var L=this.parsedImageUrl_;L.freeformUrlPath_===void 0&&(L.freeformUrlPath_=ap(L,
7));T.call(O,L.freeformUrlPath_);W&&O.push(W)}else T=O.push,L=this.parsedImageUrl_,L.obfuscatedGaiaId_==void 0&&(L.obfuscatedGaiaId_=ap(L,0)),T.call(O,L.obfuscatedGaiaId_),T=O.push,L=this.parsedImageUrl_,L.photoId_==void 0&&(L.photoId_=ap(L,1)),T.call(O,L.photoId_),T=O.push,L=this.parsedImageUrl_,L.imageVersion_==void 0&&(L.imageVersion_=ap(L,2)),T.call(O,L.imageVersion_),T=O.push,L=this.parsedImageUrl_,L.signature_==void 0&&(L.signature_=ap(L,3)),T.call(O,L.signature_),W&&O.push(W),W=O.push,T=this.parsedImageUrl_,
T.filename_==void 0&&(T.filename_=ap(T,5)),W.call(O,T.filename_);O=b?O.join("="):O.join("/");O=_.tV(this.protocolPrefix_+this.JSC$17328_domain_+"/"+O+(this.JSC$17328_query_?"?"+this.JSC$17328_query_:"")).toString();O.startsWith("%3a//")&&(O=O.replace("%3a//","://"));return O};var rYg=_.ts(["viewBox"]),DnR=_.ts(["width"]),xn2=_.ts(["height"]),zfg=_.ts(["fill"]),CER=_.ts(["id"]),qRg=_.ts(["x"]),nHk=_.ts(["y"]);VN9.prototype.getLength=function(){return this.parsedData.length};
VN9.prototype.write=function(W){for(var O=0,b=this.parsedData.length;O<b;O++)W.put(this.parsedData[O],8)};
var y85=function(W,O){var b=new VN9(O);W.dataList.push(b);b=W.errorCorrectLevel;var T=1,L=encodeURI(O).toString().replace(/%[0-9a-fA-F]{2}/g,"a");O=L.length+(L.length!=O?3:0);L=0;for(var h=m2.length;L<=h;L++){var Z=0;switch(b){case 1:Z=m2[L][0];break;case 0:Z=m2[L][1];break;case 3:Z=m2[L][2];break;case 2:Z=m2[L][3]}if(O<=Z)break;else T++}if(T>m2.length)throw Error("uk");W.typeNumber=T;W.dataCache=null};
Ne7.prototype.isDark=function(W,O){if(W<0||this.moduleCount<=W||O<0||this.moduleCount<=O)throw Error("mk`"+W+"`"+O);return this.modules[W][O]};
for(var WA1=function(W,O,b){W.moduleCount=W.typeNumber*4+17;W.modules=Array(W.moduleCount);for(var T=0;T<W.moduleCount;T++){W.modules[T]=Array(W.moduleCount);for(var L=0;L<W.moduleCount;L++)W.modules[T][L]=null}fBB(W,0,0);fBB(W,W.moduleCount-7,0);fBB(W,0,W.moduleCount-7);T=GyU[W.typeNumber-1];for(L=0;L<T.length;L++)for(var h=0;h<T.length;h++){var Z=T[L],a=T[h];if(W.modules[Z][a]==null)for(var m=-2;m<=2;m++)for(var w=-2;w<=2;w++)W.modules[Z+m][a+w]=m==-2||m==2||w==-2||w==2||m==0&&w==0?!0:!1}for(T=
8;T<W.moduleCount-8;T++)W.modules[T][6]==null&&(W.modules[T][6]=T%2==0);for(T=8;T<W.moduleCount-8;T++)W.modules[6][T]==null&&(W.modules[6][T]=T%2==0);T=W.errorCorrectLevel<<3|b;for(L=T<<10;Yc(L)-Yc(1335)>=0;)L^=1335<<Yc(L)-Yc(1335);T=(T<<10|L)^21522;for(L=0;L<15;L++)h=!O&&(T>>L&1)==1,L<6?W.modules[L][8]=h:L<8?W.modules[L+1][8]=h:W.modules[W.moduleCount-15+L][8]=h;for(L=0;L<15;L++)h=!O&&(T>>L&1)==1,L<8?W.modules[8][W.moduleCount-L-1]=h:L<9?W.modules[8][15-L-1+1]=h:W.modules[8][15-L-1]=h;W.modules[W.moduleCount-
8][8]=!O;if(W.typeNumber>=7){T=W.typeNumber;for(L=T<<12;Yc(L)-Yc(7973)>=0;)L^=7973<<Yc(L)-Yc(7973);T=T<<12|L;for(L=0;L<18;L++)h=!O&&(T>>L&1)==1,W.modules[Math.floor(L/3)][L%3+W.moduleCount-8-3]=h;for(L=0;L<18;L++)h=!O&&(T>>L&1)==1,W.modules[L%3+W.moduleCount-8-3][Math.floor(L/3)]=h}if(W.dataCache==null){L=W.typeNumber;h=W.dataList;O=W.errorCorrectLevel;T=HOg(L,O);if(T==void 0)throw Error("tk`"+L+"`"+O);Z=T.length/3;O=[];for(a=0;a<Z;a++){m=T[a*3];w=T[a*3+1];for(var A=T[a*3+2],X=0;X<m;X++)O.push(new MNZ(w,
A))}T=new u0U;for(Z=0;Z<h.length;Z++)a=h[Z],T.put(a.mode,4),T.put(a.getLength(),to9(a.mode,L)),a.write(T);for(Z=L=0;Z<O.length;Z++)L+=O[Z].dataCount;if(T.length>L*8)throw Error("nk`"+T.length+"`"+L*8);for(T.length+4<=L*8&&T.put(0,4);T.length%8!=0;)$n1(T,!1);for(;!(T.length>=L*8);){T.put(236,8);if(T.length>=L*8)break;T.put(17,8)}h=L=w=0;Z=Array(O.length);a=Array(O.length);for(m=0;m<O.length;m++){X=O[m].dataCount;var l=O[m].totalCount-X;L=Math.max(L,X);h=Math.max(h,l);Z[m]=Array(X);for(A=0;A<Z[m].length;A++)Z[m][A]=
255&T.buffer[A+w];w+=X;A=l;X=new RX([1],0);for(l=0;l<A;l++)X=X.multiply(new RX([1,Vo8(l)],0));A=X;X=(new RX(Z[m],A.getLength()-1)).mod(A);a[m]=Array(A.getLength()-1);for(A=0;A<a[m].length;A++)l=A+X.getLength()-a[m].length,a[m][A]=l>=0?X.get(l):0}for(A=T=0;A<O.length;A++)T+=O[A].totalCount;T=Array(T);for(A=w=0;A<L;A++)for(m=0;m<O.length;m++)A<Z[m].length&&(T[w++]=Z[m][A]);for(A=0;A<h;A++)for(m=0;m<O.length;m++)A<a[m].length&&(T[w++]=a[m][A]);W.dataCache=T}O=W.dataCache;T=-1;L=W.moduleCount-1;h=7;Z=
0;for(a=W.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(m=0;m<2;m++)W.modules[L][a-m]==null&&(w=!1,Z<O.length&&(w=(O[Z]>>>h&1)==1),N9N(b,L,a-m)&&(w=!w),W.modules[L][a-m]=w,h--,h==-1&&(Z++,h=7));L+=T;if(L<0||W.moduleCount<=L){L-=T;T=-T;break}}},fBB=function(W,O,b){for(var T=-1;T<=7;T++)if(!(O+T<=-1||W.moduleCount<=O+T))for(var L=-1;L<=7;L++)b+L<=-1||W.moduleCount<=b+L||(W.modules[O+T][b+L]=0<=T&&T<=6&&(L==0||L==6)||0<=L&&L<=6&&(T==0||T==6)||2<=T&&T<=4&&2<=L&&L<=4?!0:!1)},OP7=function(W){for(var O=0,
b=0,T=0;T<8;T++){WA1(W,!0,T);
var L=W;for(var h=L.moduleCount,Z=0,a=0;a<h;a++)for(var m=0;m<h;m++){for(var w=0,A=L.isDark(a,m),X=-1;X<=1;X++)if(!(a+X<0||h<=a+X))for(var l=-1;l<=1;l++)m+l<0||h<=m+l||(X!=0||l!=0)&&A==L.isDark(a+X,m+l)&&w++;w>5&&(Z+=3+w-5)}for(a=0;a<h-1;a++)for(m=0;m<h-1;m++)if(w=0,L.isDark(a,m)&&w++,L.isDark(a+1,m)&&w++,L.isDark(a,m+1)&&w++,L.isDark(a+1,m+1)&&w++,w==0||w==4)Z+=3;for(a=0;a<h;a++)for(m=0;m<h-6;m++)L.isDark(a,m)&&!L.isDark(a,m+1)&&L.isDark(a,m+2)&&L.isDark(a,m+3)&&L.isDark(a,m+4)&&!L.isDark(a,m+5)&&
L.isDark(a,m+6)&&(Z+=40);for(m=0;m<h;m++)for(a=0;a<h-6;a++)L.isDark(a,m)&&!L.isDark(a+1,m)&&L.isDark(a+2,m)&&L.isDark(a+3,m)&&L.isDark(a+4,m)&&!L.isDark(a+5,m)&&L.isDark(a+6,m)&&(Z+=40);for(m=w=0;m<h;m++)for(a=0;a<h;a++)L.isDark(a,m)&&w++;L=Z+=Math.abs(100*w/h/h-50)/5*10;if(T==0||O>L)O=L,b=T}return b},GyU=[[],
[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]],Yc=function(W){for(var O=0;W!=0;)O++,W>>>=1;return O},N9N=function(W,O,b){switch(W){case 0:return(O+b)%2==0;
case 1:return O%2==0;case 2:return b%3==0;case 3:return(O+b)%3==0;case 4:return(Math.floor(O/2)+Math.floor(b/3))%2==0;case 5:return O*b%2+O*b%3==0;case 6:return(O*b%2+O*b%3)%2==0;case 7:return(O*b%3+(O+b)%2)%2==0;default:throw Error("ok`"+W);}},to9=function(W,O){if(1<=O&&O<10)switch(W){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+W);}else if(O<27)switch(W){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+W);}else if(O<41)switch(W){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+W);}else throw Error("qk`"+O);},Ea=function(W){if(W<1)throw Error("rk`"+W);
return MoR[W]},Vo8=function(W){for(;W<0;)W+=255;
for(;W>=256;)W-=255;return wJ[W]},wJ=Array(256),MoR=Array(256),uG1=0;uG1<8;uG1++)wJ[uG1]=1<<uG1;
for(var Am=8;Am<256;Am++)wJ[Am]=wJ[Am-4]^wJ[Am-5]^wJ[Am-6]^wJ[Am-8];for(var JY1=0;JY1<255;JY1++)MoR[wJ[JY1]]=JY1;RX.prototype.get=function(W){return this.num[W]};
RX.prototype.getLength=function(){return this.num.length};
RX.prototype.multiply=function(W){for(var O=Array(this.getLength()+W.getLength()-1),b=0;b<this.getLength();b++)for(var T=0;T<W.getLength();T++)O[b+T]^=Vo8(Ea(this.get(b))+Ea(W.get(T)));return new RX(O,0)};
RX.prototype.mod=function(W){if(this.getLength()-W.getLength()<0)return this;for(var O=Ea(this.get(0))-Ea(W.get(0)),b=Array(this.getLength()),T=0;T<this.getLength();T++)b[T]=this.get(T);for(T=0;T<W.getLength();T++)b[T]^=Vo8(Ea(W.get(T))+O);return(new RX(b,0)).mod(W)};
var cYZ=[[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]],HOg=function(W,O){switch(O){case 1:return cYZ[(W-1)*4];case 0:return cYZ[(W-1)*4+1];case 3:return cYZ[(W-1)*4+2];case 2:return cYZ[(W-1)*4+3]}};
u0U.prototype.get=function(W){return(this.buffer[Math.floor(W/8)]>>>7-W%8&1)==1};
u0U.prototype.put=function(W,O){for(var b=0;b<O;b++)$n1(this,(W>>>O-b-1&1)==1)};
var $n1=function(W,O){var b=Math.floor(W.length/8);W.buffer.length<=b&&W.buffer.push(0);O&&(W.buffer[b]|=128>>>W.length%8);W.length++},m2=[[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]],FJ5=function(){var W=function(O,b){this.JSC$17348__el=O;this.JSC$17348__htOption=b};
W.prototype.draw=function(O){function b(A,X){A=document.createElementNS("http://www.w3.org/2000/svg",A);for(var l in X)X.hasOwnProperty(l)&&(l==="href"?_.ML1(A,X[l]):_.HD([_.cG(rYg),_.cG(DnR),_.cG(xn2),_.cG(zfg),_.cG(CER),_.cG(qRg),_.cG(nHk)],A,l,X[l]));return A}
var T=this.JSC$17348__htOption,L=this.JSC$17348__el,h=O.moduleCount;this.clear();var Z=b("svg",{viewBox:"0 0 "+String(h)+" "+String(h),width:"100%",height:"100%",fill:T.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});L.appendChild(Z);Z.appendChild(b("rect",{fill:T.colorLight,width:"100%",height:"100%"}));Z.appendChild(b("rect",{fill:T.colorDark,width:"1",height:"1",id:"template"}));for(var a=0;a<h;a++)for(var m=0;m<h;m++)if(O.isDark(a,m)){var w=b("use",{x:String(a),y:String(m),href:"#template"});
Z.appendChild(w)}};
W.prototype.clear=function(){for(;this.JSC$17348__el.hasChildNodes();)this.JSC$17348__el.removeChild(this.JSC$17348__el.lastChild)};
return W}(),c88=document.documentElement.tagName.toLowerCase()==="svg"?FJ5:typeof CanvasRenderingContext2D!="undefined"?function(){var W=function(O,b){this._bIsPainted=!1;
J82();this.JSC$17348__htOption=b;this._elCanvas=document.createElement("canvas");this._elCanvas.width=b.width;this._elCanvas.height=b.height;O.appendChild(this._elCanvas);this.JSC$17348__el=O;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$17348__el.appendChild(this._elImage);this._bSupportDataURI=null};
W.prototype._onMakeImage=function(){var O=this._elCanvas.toDataURL("image/png");this._elImage.src=O;this._elImage.style.display="block";this._elCanvas.style.display="none"};
W.prototype._safeSetDataURI=function(O,b){var T=this;T._fFail=b;T._fSuccess=O;T._bSupportDataURI===null?(O=_.AV("IMG"),b=function(){T._bSupportDataURI=!1;T._fFail&&T._fFail.call(T)},O.onabort=b,O.onerror=b,O.onload=function(){T._bSupportDataURI=!0;
T._fSuccess&&T._fSuccess.call(T)},O.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):T._bSupportDataURI===!0&&T._fSuccess?T._fSuccess.call(T):T._bSupportDataURI===!1&&T._fFail&&T._fFail.call(T)};
W.prototype.draw=function(O){var b=this._oContext,T=this.JSC$17348__htOption,L=O.moduleCount,h=T.width/L,Z=T.height/L,a=Math.round(h),m=Math.round(Z);this._elImage.style.display="none";this.clear();for(var w=0;w<L;w++)for(var A=0;A<L;A++){var X=O.isDark(w,A),l=A*h,p=w*Z;b.strokeStyle=X?T.colorDark:T.colorLight;b.lineWidth=1;b.fillStyle=X?T.colorDark:T.colorLight;b.fillRect(l,p,h,Z);b.strokeRect(Math.floor(l)+.5,Math.floor(p)+.5,a,m);b.strokeRect(Math.ceil(l)-.5,Math.ceil(p)-.5,a,m)}this._bIsPainted=
!0};
W.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
W.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
W.prototype.round=function(O){return O?Math.floor(O*1E3)/1E3:O};
return W}():function(){var W=function(O,b){this.JSC$17348__el=O;
this.JSC$17348__htOption=b};
W.prototype.draw=function(O){for(var b=this.JSC$17348__htOption,T=this.JSC$17348__el,L=O.moduleCount,h=Math.floor(b.width/L),Z=Math.floor(b.height/L),a=['<table style="border:0;border-collapse:collapse;">'],m=0;m<L;m++){a.push("<tr>");for(var w=0;w<L;w++)a.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+h+"px;height:"+Z+"px;background-color:"+(O.isDark(m,w)?b.colorDark:b.colorLight)+';"></td>');a.push("</tr>")}a.push("</table>");O=a.join("");O=_.AXf(_.UPN,O);_.Gb(T,O);
O=T.childNodes[0];L=(b.width-O.offsetWidth)/2;h=(b.height-O.offsetHeight)/2;L>0&&h>0&&(O.style.margin=h+"px "+L+"px")};
W.prototype.clear=function(){this.JSC$17348__el.textContent=""};
return W}();
iP8.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17351__android||this.JSC$17351__android>=3)&&this._oDrawing.makeImage()};
iP8.prototype.clear=function(){this._oDrawing.clear()};
_.i1.QRCode=iP8;var FH5={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var Xw=function(){};
Xw.prototype.stringify=function(W){return _.i1.JSON.stringify(W,void 0)};
Xw.prototype.parse=function(W){return _.i1.JSON.parse(W,void 0)};var yYP=function(){_.ZB.call(this,"z")};
_.Wk(yYP,_.ZB);var WOR=function(){_.ZB.call(this,"y")};
_.Wk(WOR,_.ZB);var OWU=null,iW8=function(){return OWU=OWU||new _.ER},bW9=function(W){_.ZB.call(this,"serverreachability",W)};
_.Wk(bW9,_.ZB);var Ua=function(W){var O=iW8();O.dispatchEvent(new bW9(O,W))},jng=function(W){_.ZB.call(this,"statevent",W)};
_.Wk(jng,_.ZB);var l2=function(W){var O=iW8();O.dispatchEvent(new jng(O,W))},TNN=function(W,O,b,T){_.ZB.call(this,"timingevent",W);
this.size=O;this.rtt=b;this.retries=T};
_.Wk(TNN,_.ZB);var LOB=function(W,O,b){var T=iW8();T.dispatchEvent(new TNN(T,W,O,b))},ev=function(W,O){if(typeof W!=="function")throw Error("vk");
return _.i1.setTimeout(function(){W()},O)};var PF=function(){this.redactEnabled_=!0};
PF.prototype.disableRedact=function(){this.redactEnabled_=!1};
var dV8=function(W,O,b,T,L,h){W.info(function(){if(W.redactEnabled_)if(h){var Z="";for(var a=h.split("&"),m=0;m<a.length;m++){var w=a[m].split("=");if(w.length>1){var A=w[0];w=w[1];var X=A.split("_");Z=X.length>=2&&X[1]=="type"?Z+(A+"="+w+"&"):Z+(A+"=redacted&")}}}else Z=null;else Z=h;return"XMLHTTP REQ ("+T+") [attempt "+L+"]: "+O+"\n"+b+"\n"+Z})},hQk=function(W,O,b,T,L,h,Z){W.info(function(){return"XMLHTTP RESP ("+T+") [ attempt "+L+"]: "+O+"\n"+b+"\n"+h+" "+Z})},pk=function(W,O,b,T){W.info(function(){return"XMLHTTP TEXT ("+
O+"): "+S$D(W,b)+(T?" "+T:"")})},ZW8=function(W,O){W.info(function(){return"TIMEOUT: "+O})};
PF.prototype.debug=function(){};
PF.prototype.info=function(){};
PF.prototype.warning=function(){};
var S$D=function(W,O){if(!W.redactEnabled_)return O;if(!O)return null;try{var b=JSON.parse(O);if(b)for(var T=0;T<b.length;T++)if(Array.isArray(b[T])){var L=b[T];if(!(L.length<2)){var h=L[1];if(Array.isArray(h)&&!(h.length<1)){var Z=h[0];if(Z!="noop"&&Z!="stop"&&Z!="close")for(var a=1;a<h.length;a++)h[a]=""}}}return(0,_.Px)(b)}catch(m){return W.debug("Exception parsing expected JS array - probably was not JS"),O}};var Rp=function(W,O,b,T,L){this.JSC$17373_channel_=W;this.JSC$17373_channelDebug_=O;this.sid_=b;this.JSC$17373_rid_=T;this.JSC$17373_retryId_=L||1;this.JSC$17373_eventHandler_=new _.be(this);this.timeout_=45E3;this.JSC$17373_extraHeaders_=null;this.JSC$17373_successful_=!1;this.JSC$17373_postData_=this.JSC$17373_requestUri_=this.JSC$17373_baseUri_=this.JSC$17373_type_=this.JSC$17373_requestStartTime_=this.JSC$17373_watchDogTimeoutTime_=this.JSC$17373_watchDogTimerId_=null;this.JSC$17373_pendingMessages_=
[];this.JSC$17373_xmlHttp_=null;this.JSC$17373_xmlHttpChunkStart_=0;this.JSC$17373_lastError_=this.JSC$17373_verb_=null;this.JSC$17373_lastStatusCode_=-1;this.JSC$17373_cancelled_=!1;this.JSC$17373_readyStateChangeThrottleMs_=0;this.JSC$17373_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new I82},I82=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},a87=function(W,O){switch(W){case 0:return"Non-200 return code ("+O+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},mV8={},Y$N={};
Rp.prototype.setTimeout=function(W){this.timeout_=W};
var wyD=function(W,O,b){W.JSC$17373_type_=1;W.JSC$17373_baseUri_=_.O$(O.clone());W.JSC$17373_postData_=b;W.decodeChunks_=!0;EBN(W,null)},EBN=function(W,O){W.JSC$17373_requestStartTime_=Date.now();
AEZ(W);W.JSC$17373_requestUri_=W.JSC$17373_baseUri_.clone();LR(W.JSC$17373_requestUri_,"t",W.JSC$17373_retryId_);W.JSC$17373_xmlHttpChunkStart_=0;var b=W.JSC$17373_channel_.JSC$17392_supportsCrossDomainXhrs_;W.fetchResponseState_=new I82;W.JSC$17373_xmlHttp_=XyB(W.JSC$17373_channel_,b?O:null,!W.JSC$17373_postData_);W.JSC$17373_readyStateChangeThrottleMs_>0&&(W.JSC$17373_readyStateChangeThrottle_=new _.JI((0,_.K5)(W.JSC$17377_xmlHttpHandler_,W,W.JSC$17373_xmlHttp_),W.JSC$17373_readyStateChangeThrottleMs_));
W.JSC$17373_eventHandler_.listen(W.JSC$17373_xmlHttp_,"readystatechange",W.JSC$17377_readyStateChangeHandler_);O=W.JSC$17373_extraHeaders_?_.PQ.clone(W.JSC$17373_extraHeaders_):{};W.JSC$17373_postData_?(W.JSC$17373_verb_||(W.JSC$17373_verb_="POST"),O["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17373_xmlHttp_.send(W.JSC$17373_requestUri_,W.JSC$17373_verb_,W.JSC$17373_postData_,O)):(W.JSC$17373_verb_="GET",W.JSC$17373_xmlHttp_.send(W.JSC$17373_requestUri_,W.JSC$17373_verb_,null,O));Ua(1);
dV8(W.JSC$17373_channelDebug_,W.JSC$17373_verb_,W.JSC$17373_requestUri_,W.JSC$17373_rid_,W.JSC$17373_retryId_,W.JSC$17373_postData_)};
Rp.prototype.JSC$17377_readyStateChangeHandler_=function(W){W=W.target;var O=this.JSC$17373_readyStateChangeThrottle_;O&&_.RK(W)==3?(this.JSC$17373_channelDebug_.debug("Throttling readystatechange."),O.fire()):this.JSC$17377_xmlHttpHandler_(W)};
Rp.prototype.JSC$17377_xmlHttpHandler_=function(W){try{W==this.JSC$17373_xmlHttp_?UVN(this):this.JSC$17373_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(O){this.JSC$17373_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),l8U(this)}finally{}};
var UVN=function(W){var O=_.RK(W.JSC$17373_xmlHttp_),b=W.JSC$17373_xmlHttp_.JSC$7800_lastErrorCode_,T=W.JSC$17373_xmlHttp_.getStatus();if(!(O<3||O==3&&!l8U(W))){W.JSC$17373_cancelled_||O!=4||b==7||(b==8||T<=0?Ua(3):Ua(2));eQ2(W);var L=W.JSC$17373_xmlHttp_.getStatus();W.JSC$17373_lastStatusCode_=L;b=PB8(W);l8U(W)||W.JSC$17373_channelDebug_.debug(function(){return"No response text for uri "+W.JSC$17373_requestUri_+" status "+L});
W.JSC$17373_successful_=L==200;hQk(W.JSC$17373_channelDebug_,W.JSC$17373_verb_,W.JSC$17373_requestUri_,W.JSC$17373_rid_,W.JSC$17373_retryId_,O,L);if(W.JSC$17373_successful_){if(W.decodeInitialResponse_&&!W.initialResponseDecoded_)if(T=pyU(W))pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,T,"Initial handshake response via X-HTTP-Initial-Response"),W.initialResponseDecoded_=!0,RQB(W,T);else{W.JSC$17373_successful_=!1;W.JSC$17373_lastError_=3;l2(12);W.JSC$17373_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
W.JSC$17373_rid_+")");Kk(W);vF(W);return}W.decodeChunks_?KO9(W,O,b):(pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,b,null),RQB(W,b));O==4&&Kk(W);W.JSC$17373_successful_&&!W.JSC$17373_cancelled_&&(O==4?vB7(W.JSC$17373_channel_,W):(W.JSC$17373_successful_=!1,AEZ(W)))}else phU(W.JSC$17373_xmlHttp_),L==400&&b.indexOf("Unknown SID")>0?(W.JSC$17373_lastError_=3,l2(12),W.JSC$17373_channelDebug_.warning("XMLHTTP Unknown SID ("+W.JSC$17373_rid_+")")):(W.JSC$17373_lastError_=0,l2(13),W.JSC$17373_channelDebug_.warning("XMLHTTP Bad status "+
L+" ("+W.JSC$17373_rid_+")")),Kk(W),vF(W)}},pyU=function(W){return W.JSC$17373_xmlHttp_&&(W=mW(W.JSC$17373_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Zi(W)?W:null},PB8=function(W){if(!gBg(W))return W.JSC$17373_xmlHttp_.getResponseText();
var O=W.JSC$17373_xmlHttp_.getResponse();if(O==="")return"";var b="",T=O.length,L=_.RK(W.JSC$17373_xmlHttp_)==4;if(!W.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Kk(W),vF(W),"";W.fetchResponseState_.textDecoder=new _.i1.TextDecoder}for(var h=0;h<T;h++)W.fetchResponseState_.responseArrivedForFetch=!0,b+=W.fetchResponseState_.textDecoder.decode(O[h],{stream:!(L&&h==T-1)});O.length=0;W.fetchResponseState_.responseBuffer+=b;W.JSC$17373_xmlHttpChunkStart_=0;return W.fetchResponseState_.responseBuffer},
l8U=function(W){return W.JSC$17373_xmlHttp_?W.fetchResponseState_.responseArrivedForFetch?!0:!(!W.JSC$17373_xmlHttp_.getResponseText()&&!W.JSC$17373_xmlHttp_.getResponse()):!1},gBg=function(W){return W.JSC$17373_xmlHttp_?W.JSC$17373_verb_=="GET"&&W.JSC$17373_type_!=2&&W.JSC$17373_channel_.usesFetchStreams_:!1},KO9=function(W,O,b){for(var T=!0,L;!W.JSC$17373_cancelled_&&W.JSC$17373_xmlHttpChunkStart_<b.length;)if(L=oBg(W,b),L==Y$N){O==4&&(W.JSC$17373_lastError_=4,l2(14),T=!1);
pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,null,"[Incomplete Response]");break}else if(L==mV8){W.JSC$17373_lastError_=4;l2(15);pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,b,"[Invalid Chunk]");T=!1;break}else pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,L,null),RQB(W,L);gBg(W)&&W.JSC$17373_xmlHttpChunkStart_!=0&&(W.fetchResponseState_.responseBuffer=W.fetchResponseState_.responseBuffer.slice(W.JSC$17373_xmlHttpChunkStart_),W.JSC$17373_xmlHttpChunkStart_=0);O!=4||b.length!=0||W.fetchResponseState_.responseArrivedForFetch||
(W.JSC$17373_lastError_=1,l2(16),T=!1);W.JSC$17373_successful_=W.JSC$17373_successful_&&T;T?b.length>0&&!W.firstByteReceived_&&(W.firstByteReceived_=!0,O=W.JSC$17373_channel_,O.JSC$17392_backChannelRequest_==W&&O.detectBufferingProxy_&&!O.bpDetectionDone_&&(O.JSC$17392_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+b.length),QnD(O),O.bpDetectionDone_=!0,l2(11))):(pk(W.JSC$17373_channelDebug_,W.JSC$17373_rid_,b,"[Invalid Chunked Response]"),Kk(W),vF(W))},oBg=function(W,O){var b=
W.JSC$17373_xmlHttpChunkStart_,T=O.indexOf("\n",b);
if(T==-1)return Y$N;b=Number(O.substring(b,T));if(isNaN(b))return mV8;T+=1;if(T+b>O.length)return Y$N;O=O.slice(T,T+b);W.JSC$17373_xmlHttpChunkStart_=T+b;return O};
Rp.prototype.cancel=function(){this.JSC$17373_cancelled_=!0;Kk(this)};
var AEZ=function(W){W.JSC$17373_watchDogTimeoutTime_=Date.now()+W.timeout_;kh8(W,W.timeout_)},kh8=function(W,O){if(W.JSC$17373_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17373_watchDogTimerId_=ev((0,_.K5)(W.JSC$17377_onWatchDogTimeout_,W),O)},eQ2=function(W){W.JSC$17373_watchDogTimerId_&&(_.i1.clearTimeout(W.JSC$17373_watchDogTimerId_),W.JSC$17373_watchDogTimerId_=null)};
Rp.prototype.JSC$17377_onWatchDogTimeout_=function(){this.JSC$17373_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17373_watchDogTimeoutTime_>=0?(ZW8(this.JSC$17373_channelDebug_,this.JSC$17373_requestUri_),this.JSC$17373_type_!=2&&(Ua(3),l2(17)),Kk(this),this.JSC$17373_lastError_=2,vF(this)):(this.JSC$17373_channelDebug_.warning("WatchDog timer called too early"),kh8(this,this.JSC$17373_watchDogTimeoutTime_-W))};
var vF=function(W){W.JSC$17373_channel_.state_==0||W.JSC$17373_cancelled_||vB7(W.JSC$17373_channel_,W)},Kk=function(W){eQ2(W);
_.JU(W.JSC$17373_readyStateChangeThrottle_);W.JSC$17373_readyStateChangeThrottle_=null;W.JSC$17373_eventHandler_.removeAll();if(W.JSC$17373_xmlHttp_){var O=W.JSC$17373_xmlHttp_;W.JSC$17373_xmlHttp_=null;O.abort();O.dispose()}};
Rp.prototype.getLastError=function(){return this.JSC$17373_lastError_};
var RQB=function(W,O){try{var b=W.JSC$17373_channel_;if(b.state_!=0&&(b.JSC$17392_backChannelRequest_==W||snN(b.forwardChannelRequestPool_,W)))if(!W.initialResponseDecoded_&&snN(b.forwardChannelRequestPool_,W)&&b.state_==3){try{var T=b.wireCodec_.JSC$17387_parser_.parse(O)}catch(a){T=null}if(Array.isArray(T)&&T.length==3){O=T;if(O[0]==0)a:if(b.JSC$17392_channelDebug_.debug("Server claims our backchannel is missing."),b.JSC$17392_backChannelTimerId_)b.JSC$17392_channelDebug_.debug("But we are currently starting the request.");
else{if(b.JSC$17392_backChannelRequest_)if(b.JSC$17392_backChannelRequest_.JSC$17373_requestStartTime_+3E3<W.JSC$17373_requestStartTime_)BN1(b),rE8(b);else break a;else b.JSC$17392_channelDebug_.warning("We do not have a BackChannel established");DVZ(b);l2(18)}else{b.JSC$17392_lastPostResponseArrayId_=O[1];var L=b.JSC$17392_lastPostResponseArrayId_-b.JSC$17392_lastArrayId_;if(0<L){var h=O[2];b.JSC$17392_channelDebug_.debug(h+" bytes (in "+L+" arrays) are outstanding on the BackChannel");h<37500&&
b.enableStreaming_&&b.JSC$17392_backChannelRetryCount_==0&&!b.JSC$17392_deadBackChannelTimerId_&&(b.JSC$17392_deadBackChannelTimerId_=ev((0,_.K5)(b.JSC$17394_onBackChannelDead_,b),6E3))}}if(xVg(b.forwardChannelRequestPool_)<=1&&b.forwardChannelFlushedCallback_){try{b.forwardChannelFlushedCallback_()}catch(a){}b.forwardChannelFlushedCallback_=void 0}}else b.JSC$17392_channelDebug_.debug("Bad POST response data returned"),gJ(b,11)}else if((W.initialResponseDecoded_||b.JSC$17392_backChannelRequest_==
W)&&BN1(b),!_.Zi(O)){var Z=b.wireCodec_.JSC$17387_parser_.parse(O);b.onInput_(Z,W)}Ua(4)}catch(a){}};var zQ8=function(W,O){this.JSC$17380_mapId=W;this.map=O;this.context=null};var CB8=function(W){this.maxPoolSizeConfigured_=W||10;_.i1.PerformanceNavigationTiming?(W=_.i1.performance.getEntriesByType("navigation"),W=W.length>0&&(W[0].nextHopProtocol=="hq"||W[0].nextHopProtocol=="h2")):W=!!(_.i1.chrome&&_.i1.chrome.loadTimes&&_.i1.chrome.loadTimes()&&_.i1.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17383_maxSize_=W?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17383_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17383_request_=null;this.JSC$17383_pendingMessages_=
[]},q$7=function(W){return W.JSC$17383_request_?!0:W.requestPool_?W.requestPool_.size>=W.JSC$17383_maxSize_:!1},xVg=function(W){return W.JSC$17383_request_?1:W.requestPool_?W.requestPool_.size:0},snN=function(W,O){return W.JSC$17383_request_?W.JSC$17383_request_==O:W.requestPool_?W.requestPool_.has(O):!1},nBN=function(W,O){W.requestPool_?W.requestPool_.add(O):W.JSC$17383_request_=O},f8N=function(W,O){W.JSC$17383_request_&&W.JSC$17383_request_==O?W.JSC$17383_request_=null:W.requestPool_&&W.requestPool_.has(O)&&
W.requestPool_.delete(O)};
CB8.prototype.cancel=function(){this.JSC$17383_pendingMessages_=GhZ(this);if(this.JSC$17383_request_)this.JSC$17383_request_.cancel(),this.JSC$17383_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var W=_.S(this.requestPool_.values()),O=W.next();!O.done;O=W.next())O.value.cancel();this.requestPool_.clear()}};
var GhZ=function(W){if(W.JSC$17383_request_!=null)return W.JSC$17383_pendingMessages_.concat(W.JSC$17383_request_.JSC$17373_pendingMessages_);if(W.requestPool_!=null&&W.requestPool_.size!==0){var O=W.JSC$17383_pendingMessages_;W=_.S(W.requestPool_.values());for(var b=W.next();!b.done;b=W.next())O=O.concat(b.value.JSC$17373_pendingMessages_);return O}return _.Ov(W.JSC$17383_pendingMessages_)},HWU=function(W,O){W.JSC$17383_pendingMessages_=W.JSC$17383_pendingMessages_.concat(O)};var tYg=function(W,O){var b=new PF;b.debug("TestLoadImage: loading "+W);if(_.i1.Image){var T=new Image;T.onload=_.A3(op,b,"TestLoadImage: loaded",!0,O,T);T.onerror=_.A3(op,b,"TestLoadImage: error",!1,O,T);T.onabort=_.A3(op,b,"TestLoadImage: abort",!1,O,T);T.ontimeout=_.A3(op,b,"TestLoadImage: timeout",!1,O,T);_.i1.setTimeout(function(){if(T.ontimeout)T.ontimeout()},1E4);
T.src=W}else O(!1)},$VR=function(W,O){var b=new PF,T=new AbortController,L=setTimeout(function(){T.abort();
op(b,"TestPingServer: timeout",!1,O)},1E4);
fetch(W,{signal:T.signal}).then(function(h){clearTimeout(L);h.ok?op(b,"TestPingServer: ok",!0,O):op(b,"TestPingServer: server error",!1,O)}).catch(function(){clearTimeout(L);
op(b,"TestPingServer: error",!1,O)})},op=function(W,O,b,T,L){try{W.debug(O),L&&(L.onload=null,L.onerror=null,L.onabort=null,L.ontimeout=null),T(b)}catch(h){}};var VYk=function(){this.JSC$17387_parser_=new Xw},NN5=function(W,O,b){var T=b||"";
try{_.g35(W,function(L,h){var Z=L;_.LH(L)&&(Z=(0,_.Px)(L));O.push(T+h+"="+encodeURIComponent(Z))})}catch(L){throw O.push(T+"type="+encodeURIComponent("_badmap")),L;
}};var QZ=function(W,O,b){return b&&b.internalChannelParams?b.internalChannelParams[W]||O:O},kc=function(W){this.serverVersion_=0;
this.JSC$17392_outgoingMaps_=[];this.JSC$17392_channelDebug_=new PF;this.JSC$17392_hostPrefix_=this.JSC$17392_backChannelUri_=this.JSC$17392_forwardChannelUri_=this.JSC$17392_path_=this.JSC$17392_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17392_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17392_extraHeaders_=null;this.JSC$17392_nextMapId_=this.JSC$17392_nextRid_=0;this.JSC$17392_failFast_=QZ("failFast",!1,W);this.enableStreaming_=this.JSC$17392_deadBackChannelTimerId_=
this.JSC$17392_backChannelTimerId_=this.JSC$17392_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17392_lastPostResponseArrayId_=this.JSC$17392_lastArrayId_=-1;this.JSC$17392_backChannelAttemptId_=this.JSC$17392_backChannelRetryCount_=this.JSC$17392_forwardChannelRetryCount_=0;this.JSC$17392_baseRetryDelayMs_=QZ("baseRetryDelayMs",5E3,W);this.JSC$17392_retryDelaySeedMs_=QZ("retryDelaySeedMs",1E4,W);this.JSC$17392_forwardChannelMaxRetries_=
QZ("forwardChannelMaxRetries",2,W);this.JSC$17392_forwardChannelRequestTimeoutMs_=QZ("forwardChannelRequestTimeoutMs",2E4,W);this.JSC$17392_xmlHttpFactory_=W&&W.xmlHttpFactory||void 0;this.networkTestUrl_=W&&W.networkTestUrl||void 0;this.usesFetchStreams_=W&&W.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17392_supportsCrossDomainXhrs_=W&&W.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new CB8(W&&W.concurrentRequestLimit);this.wireCodec_=new VYk;this.fastHandshake_=
W&&W.fastHandshake||!1;this.encodeInitMessageHeaders_=W&&W.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17392_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=W&&W.blockingHandshake||!1;W&&W.disableRedact&&this.JSC$17392_channelDebug_.disableRedact();W&&W.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
W&&W.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;W&&W.longPollingTimeout&&W.longPollingTimeout>0&&(this.longPollingTimeout_=W.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
kc.prototype.JSC$17394_channelVersion_=8;kc.prototype.state_=1;
kc.prototype.connect=function(W,O,b,T){this.JSC$17392_channelDebug_.debug("connect()");l2(0);this.JSC$17392_path_=W;this.JSC$17392_extraParams_=O||{};b&&T!==void 0&&(this.JSC$17392_extraParams_.OSID=b,this.JSC$17392_extraParams_.OAID=T);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17392_channelDebug_.debug("connectChannel_()");W=MYR(this,null,this.JSC$17392_path_);this.JSC$17392_channelDebug_.debug("GetForwardChannelUri: "+W);this.JSC$17392_forwardChannelUri_=W;uVg(this)};
kc.prototype.disconnect=function(){this.JSC$17392_channelDebug_.debug("disconnect()");JE1(this);if(this.state_==3){var W=this.JSC$17392_nextRid_++,O=this.JSC$17392_forwardChannelUri_.clone();_.VC(O,"SID",this.sid_);_.VC(O,"RID",W);_.VC(O,"TYPE","terminate");sa(this,O);W=new Rp(this,this.JSC$17392_channelDebug_,this.sid_,W);W.JSC$17373_type_=2;W.JSC$17373_baseUri_=_.O$(O.clone());O=!1;if(_.i1.navigator&&_.i1.navigator.sendBeacon)try{O=_.i1.navigator.sendBeacon(W.JSC$17373_baseUri_.toString(),"")}catch(b){}!O&&
_.i1.Image&&((new Image).src=W.JSC$17373_baseUri_,O=!0);O||(W.JSC$17373_xmlHttp_=XyB(W.JSC$17373_channel_,null),W.JSC$17373_xmlHttp_.send(W.JSC$17373_baseUri_));W.JSC$17373_requestStartTime_=Date.now();AEZ(W)}cEg(this)};
var rE8=function(W){W.JSC$17392_backChannelRequest_&&(QnD(W),W.JSC$17392_backChannelRequest_.cancel(),W.JSC$17392_backChannelRequest_=null)},JE1=function(W){rE8(W);
W.JSC$17392_backChannelTimerId_&&(_.i1.clearTimeout(W.JSC$17392_backChannelTimerId_),W.JSC$17392_backChannelTimerId_=null);BN1(W);W.forwardChannelRequestPool_.cancel();W.JSC$17392_forwardChannelTimerId_&&(typeof W.JSC$17392_forwardChannelTimerId_==="number"&&_.i1.clearTimeout(W.JSC$17392_forwardChannelTimerId_),W.JSC$17392_forwardChannelTimerId_=null)};
kc.prototype.getState=function(){return this.state_};
var uVg=function(W){q$7(W.forwardChannelRequestPool_)||W.JSC$17392_forwardChannelTimerId_||(W.JSC$17392_forwardChannelTimerId_=!0,_.AY(W.JSC$17394_onStartForwardChannelTimer_,W),W.JSC$17392_forwardChannelRetryCount_=0)},yE7=function(W,O){if(xVg(W.forwardChannelRequestPool_)>=W.forwardChannelRequestPool_.JSC$17383_maxSize_-(W.JSC$17392_forwardChannelTimerId_?1:0))return!1;
if(W.JSC$17392_forwardChannelTimerId_)return W.JSC$17392_channelDebug_.debug("Use the retry request that is already scheduled."),W.JSC$17392_outgoingMaps_=O.JSC$17373_pendingMessages_.concat(W.JSC$17392_outgoingMaps_),!0;if(W.state_==1||W.state_==2||W.JSC$17392_forwardChannelRetryCount_>=(W.JSC$17392_failFast_?0:W.JSC$17392_forwardChannelMaxRetries_))return!1;W.JSC$17392_channelDebug_.debug("Going to retry POST");W.JSC$17392_forwardChannelTimerId_=ev((0,_.K5)(W.JSC$17394_onStartForwardChannelTimer_,
W,O),FOU(W,W.JSC$17392_forwardChannelRetryCount_));W.JSC$17392_forwardChannelRetryCount_++;return!0};
kc.prototype.JSC$17394_onStartForwardChannelTimer_=function(W){if(this.JSC$17392_forwardChannelTimerId_)if(this.JSC$17392_forwardChannelTimerId_=null,this.JSC$17392_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!W){this.JSC$17392_channelDebug_.debug("open_()");this.JSC$17392_nextRid_=Math.floor(Math.random()*1E5);W=this.JSC$17392_nextRid_++;var O=new Rp(this,this.JSC$17392_channelDebug_,"",W),b=this.JSC$17392_extraHeaders_;this.initHeaders_&&(b?(b=_.PQ.clone(b),_.PQ.extend(b,this.initHeaders_)):
b=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(O.JSC$17373_extraHeaders_=b,b=null);var T;if(this.fastHandshake_)a:{for(var L=T=0;L<this.JSC$17392_outgoingMaps_.length;L++){b:{var h=this.JSC$17392_outgoingMaps_[L];if("__data__"in h.map&&(h=h.map.__data__,typeof h==="string")){h=h.length;break b}h=void 0}if(h===void 0)break;T+=h;if(T>4096){T=L;break a}if(T===4096||L===this.JSC$17392_outgoingMaps_.length-1){T=L+1;break a}}T=1E3}else T=1E3;T=Wcg(this,O,T);
L=this.JSC$17392_forwardChannelUri_.clone();_.VC(L,"RID",W);_.VC(L,"CVER",22);this.httpSessionIdParam_&&_.VC(L,"X-HTTP-Session-Id",this.httpSessionIdParam_);sa(this,L);b&&(this.encodeInitMessageHeaders_?T="headers="+_.t_(psg(b))+"&"+T:this.httpHeadersOverwriteParam_&&Rcg(L,this.httpHeadersOverwriteParam_,b));nBN(this.forwardChannelRequestPool_,O);this.blockingHandshake_&&_.VC(L,"TYPE","init");this.fastHandshake_?(_.VC(L,"$req",T),_.VC(L,"SID","null"),O.decodeInitialResponse_=!0,wyD(O,L,null)):wyD(O,
L,T);this.state_=2}}else this.state_==3&&(W?Oc1(this,W):this.JSC$17392_outgoingMaps_.length==0?this.JSC$17392_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):q$7(this.forwardChannelRequestPool_)||(Oc1(this),this.JSC$17392_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Oc1=function(W,O){var b;O?b=O.JSC$17373_rid_:b=W.JSC$17392_nextRid_++;var T=W.JSC$17392_forwardChannelUri_.clone();_.VC(T,"SID",W.sid_);_.VC(T,"RID",b);_.VC(T,"AID",W.JSC$17392_lastArrayId_);sa(W,T);W.httpHeadersOverwriteParam_&&W.JSC$17392_extraHeaders_&&Rcg(T,W.httpHeadersOverwriteParam_,W.JSC$17392_extraHeaders_);b=new Rp(W,W.JSC$17392_channelDebug_,W.sid_,b,W.JSC$17392_forwardChannelRetryCount_+1);W.httpHeadersOverwriteParam_===null&&(b.JSC$17373_extraHeaders_=W.JSC$17392_extraHeaders_);O&&
(W.JSC$17392_outgoingMaps_=O.JSC$17373_pendingMessages_.concat(W.JSC$17392_outgoingMaps_));O=Wcg(W,b,1E3);b.setTimeout(Math.round(W.JSC$17392_forwardChannelRequestTimeoutMs_*.5)+Math.round(W.JSC$17392_forwardChannelRequestTimeoutMs_*.5*Math.random()));nBN(W.forwardChannelRequestPool_,b);wyD(b,T,O)},sa=function(W,O){W.JSC$17392_extraParams_&&_.PQ.forEach(W.JSC$17392_extraParams_,function(b,T){_.VC(O,T,b)});
W.handler_&&_.g35({},function(b,T){_.VC(O,T,b)})},Wcg=function(W,O,b){b=Math.min(W.JSC$17392_outgoingMaps_.length,b);
var T=W.handler_?(0,_.K5)(W.handler_.JSC$17398_badMapError,W.handler_,W):null;a:{for(var L=W.JSC$17392_outgoingMaps_,h=-1;;){var Z=["count="+b];h==-1?b>0?(h=L[0].JSC$17380_mapId,Z.push("ofs="+h)):h=0:Z.push("ofs="+h);for(var a=!0,m=0;m<b;m++){var w=L[m].JSC$17380_mapId,A=L[m].map;w-=h;if(w<0)h=Math.max(0,L[m].JSC$17380_mapId-100),a=!1;else try{NN5(A,Z,"req"+w+"_")}catch(X){T&&T(A)}}if(a){T=Z.join("&");break a}}T=void 0}W=W.JSC$17392_outgoingMaps_.splice(0,b);O.JSC$17373_pendingMessages_=W;return T},
icg=function(W){W.JSC$17392_backChannelRequest_||W.JSC$17392_backChannelTimerId_||(W.JSC$17392_backChannelAttemptId_=1,_.AY(W.JSC$17394_onStartBackChannelTimer_,W),W.JSC$17392_backChannelRetryCount_=0)},DVZ=function(W){if(W.JSC$17392_backChannelRequest_||W.JSC$17392_backChannelTimerId_||W.JSC$17392_backChannelRetryCount_>=3)return!1;
W.JSC$17392_channelDebug_.debug("Going to retry GET");W.JSC$17392_backChannelAttemptId_++;W.JSC$17392_backChannelTimerId_=ev((0,_.K5)(W.JSC$17394_onStartBackChannelTimer_,W),FOU(W,W.JSC$17392_backChannelRetryCount_));W.JSC$17392_backChannelRetryCount_++;return!0};
kc.prototype.JSC$17394_onStartBackChannelTimer_=function(){this.JSC$17392_backChannelTimerId_=null;bc8(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17392_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17392_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17392_backChannelRequest_+" "+this.handshakeRttMs_);else{var W=2*this.handshakeRttMs_;this.JSC$17392_channelDebug_.info("BP detection timer enabled: "+W);this.bpDetectionTimerId_=ev((0,_.K5)(this.onBpDetectionTimer_,
this),W)}};
kc.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17392_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17392_backChannelRequest_.JSC$17373_xmlHttp_!=null){var W=this.JSC$17392_backChannelRequest_.JSC$17373_xmlHttp_.getResponseText();W&&this.JSC$17392_channelDebug_.warning("Timer should have been cancelled : "+W)}this.JSC$17392_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;l2(10);rE8(this);bc8(this)}else this.JSC$17392_channelDebug_.warning("Invalid operation.")};
var QnD=function(W){W.bpDetectionTimerId_!=null&&(W.JSC$17392_channelDebug_.debug("Cancel the BP detection timer."),_.i1.clearTimeout(W.bpDetectionTimerId_),W.bpDetectionTimerId_=null)},bc8=function(W){W.JSC$17392_channelDebug_.debug("Creating new HttpRequest");
W.JSC$17392_backChannelRequest_=new Rp(W,W.JSC$17392_channelDebug_,W.sid_,"rpc",W.JSC$17392_backChannelAttemptId_);W.httpHeadersOverwriteParam_===null&&(W.JSC$17392_backChannelRequest_.JSC$17373_extraHeaders_=W.JSC$17392_extraHeaders_);W.JSC$17392_backChannelRequest_.JSC$17373_readyStateChangeThrottleMs_=0;var O=W.JSC$17392_backChannelUri_.clone();_.VC(O,"RID","rpc");_.VC(O,"SID",W.sid_);_.VC(O,"AID",W.JSC$17392_lastArrayId_);_.VC(O,"CI",W.enableStreaming_?"0":"1");!W.enableStreaming_&&W.longPollingTimeout_&&
_.VC(O,"TO",W.longPollingTimeout_);_.VC(O,"TYPE","xmlhttp");sa(W,O);W.httpHeadersOverwriteParam_&&W.JSC$17392_extraHeaders_&&Rcg(O,W.httpHeadersOverwriteParam_,W.JSC$17392_extraHeaders_);W.backChannelRequestTimeoutMs_&&W.JSC$17392_backChannelRequest_.setTimeout(W.backChannelRequestTimeoutMs_);var b=W.JSC$17392_backChannelRequest_,T=W.JSC$17392_hostPrefix_;b.JSC$17373_type_=1;b.JSC$17373_baseUri_=_.O$(O.clone());b.JSC$17373_postData_=null;b.decodeChunks_=!0;EBN(b,T);W.JSC$17392_channelDebug_.debug("New Request created")};
kc.prototype.JSC$17394_onBackChannelDead_=function(){this.JSC$17392_deadBackChannelTimerId_!=null&&(this.JSC$17392_deadBackChannelTimerId_=null,rE8(this),DVZ(this),l2(19))};
var BN1=function(W){W.JSC$17392_deadBackChannelTimerId_!=null&&(_.i1.clearTimeout(W.JSC$17392_deadBackChannelTimerId_),W.JSC$17392_deadBackChannelTimerId_=null)},vB7=function(W,O){W.JSC$17392_channelDebug_.debug("Request complete");
var b=null;if(W.JSC$17392_backChannelRequest_==O){BN1(W);QnD(W);W.JSC$17392_backChannelRequest_=null;var T=2}else if(snN(W.forwardChannelRequestPool_,O))b=O.JSC$17373_pendingMessages_,f8N(W.forwardChannelRequestPool_,O),T=1;else return;if(W.state_!=0)if(O.JSC$17373_successful_)T==1?(LOB(O.JSC$17373_postData_?O.JSC$17373_postData_.length:0,Date.now()-O.JSC$17373_requestStartTime_,W.JSC$17392_forwardChannelRetryCount_),uVg(W)):icg(W);else{var L=O.JSC$17373_lastStatusCode_,h=O.getLastError();if(h==3||
h==0&&L>0)W.JSC$17392_channelDebug_.debug("Not retrying due to error type"),L>200&&(W.errorResponseStatusCode_=O.JSC$17373_lastStatusCode_);else{W.JSC$17392_channelDebug_.debug(function(){return"Maybe retrying, last error: "+a87(h,W.errorResponseStatusCode_)});
if(T==1&&yE7(W,O)||T==2&&DVZ(W))return;W.JSC$17392_channelDebug_.debug("Exceeded max number of retries")}b&&b.length>0&&HWU(W.forwardChannelRequestPool_,b);W.JSC$17392_channelDebug_.debug("Error: HTTP request failed");switch(h){case 1:gJ(W,5);break;case 4:gJ(W,10);break;case 3:gJ(W,6);break;default:gJ(W,2)}}},FOU=function(W,O){var b=W.JSC$17392_baseRetryDelayMs_+Math.floor(Math.random()*W.JSC$17392_retryDelaySeedMs_);
W.isActive()||(W.JSC$17392_channelDebug_.debug("Inactive channel"),b*=2);return b*O};
kc.prototype.onInput_=function(W,O){for(var b=0;b<W.length;b++){var T=W[b];this.JSC$17392_lastArrayId_=T[0];T=T[1];if(this.state_==2)if(T[0]=="c"){this.sid_=T[1];this.JSC$17392_hostPrefix_=T[2];var L=T[3];L!=null&&(this.JSC$17394_channelVersion_=L,this.JSC$17392_channelDebug_.info("VER="+this.JSC$17394_channelVersion_));L=T[4];L!=null&&(this.serverVersion_=L,this.JSC$17392_channelDebug_.info("SVER="+this.serverVersion_));T=T[5];T!=null&&typeof T==="number"&&T>0&&(this.backChannelRequestTimeoutMs_=
T*=1.5,this.JSC$17392_channelDebug_.info("backChannelRequestTimeoutMs_="+T));if(T=O.JSC$17373_xmlHttp_){var h=mW(T,"X-Client-Wire-Protocol");h&&(L=this.forwardChannelRequestPool_,!L.requestPool_&&(_.aq(h,"spdy")||_.aq(h,"quic")||_.aq(h,"h2"))&&(L.JSC$17383_maxSize_=L.maxPoolSizeConfigured_,L.requestPool_=new Set,L.JSC$17383_request_&&(nBN(L,L.JSC$17383_request_),L.JSC$17383_request_=null)));this.httpSessionIdParam_&&((T=mW(T,"X-HTTP-Session-Id"))?(this.httpSessionId_=T,_.VC(this.JSC$17392_forwardChannelUri_,
this.httpSessionIdParam_,T)):this.JSC$17392_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17398_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-O.JSC$17373_requestStartTime_,this.JSC$17392_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));T=O;L=MYR(this,this.JSC$17392_supportsCrossDomainXhrs_?this.JSC$17392_hostPrefix_:null,this.JSC$17392_path_);this.JSC$17392_channelDebug_.debug("GetBackChannelUri: "+
L);this.JSC$17392_backChannelUri_=L;T.initialResponseDecoded_?(this.JSC$17392_channelDebug_.debug("Upgrade the handshake request to a backchannel."),f8N(this.forwardChannelRequestPool_,T),L=T,(h=this.backChannelRequestTimeoutMs_)&&L.setTimeout(h),L.JSC$17373_watchDogTimerId_&&(eQ2(L),AEZ(L)),this.JSC$17392_backChannelRequest_=T):icg(this);this.JSC$17392_outgoingMaps_.length>0&&uVg(this)}else T[0]!="stop"&&T[0]!="close"||gJ(this,7);else this.state_==3&&(T[0]=="stop"||T[0]=="close"?T[0]=="stop"?gJ(this,
7):this.disconnect():T[0]!="noop"&&this.handler_&&this.handler_.JSC$17398_channelHandleArray(T),this.JSC$17392_backChannelRetryCount_=0)}};
var gJ=function(W,O){W.JSC$17392_channelDebug_.info("Error code "+O);if(O==2){var b=(0,_.K5)(W.testNetworkCallback_,W),T=W.networkTestUrl_,L=!T;T=new _.Np(T||"//www.google.com/images/cleardot.gif");_.i1.location&&_.i1.location.protocol=="http"||_.VQ(T,"https");_.O$(T);L?tYg(T.toString(),b):$VR(T.toString(),b)}else l2(2);W.onError_(O)};
kc.prototype.testNetworkCallback_=function(W){W?(this.JSC$17392_channelDebug_.info("Successfully pinged google.com"),l2(2)):(this.JSC$17392_channelDebug_.info("Failed to ping google.com"),l2(1))};
kc.prototype.onError_=function(W){this.JSC$17392_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17398_channelError(W);cEg(this);JE1(this)};
var cEg=function(W){W.state_=0;W.nonAckedMapsAtChannelClose_=[];if(W.handler_){var O=GhZ(W.forwardChannelRequestPool_);if(O.length!=0||W.JSC$17392_outgoingMaps_.length!=0)W.JSC$17392_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+O.length+", outgoing: "+W.JSC$17392_outgoingMaps_.length}),_.Tw(W.nonAckedMapsAtChannelClose_,O),_.Tw(W.nonAckedMapsAtChannelClose_,W.JSC$17392_outgoingMaps_),W.forwardChannelRequestPool_.JSC$17383_pendingMessages_.length=0,_.Ov(W.JSC$17392_outgoingMaps_),
W.JSC$17392_outgoingMaps_.length=0;
W.handler_.JSC$17398_channelClosed()}},j$k=function(W){if(W.state_==0)return W.nonAckedMapsAtChannelClose_;
var O=[];_.Tw(O,GhZ(W.forwardChannelRequestPool_));_.Tw(O,W.JSC$17392_outgoingMaps_);return O},MYR=function(W,O,b){var T=_.tV(b);
T.JSC$8032_domain_!=""?(O&&_.Nn(T,O+"."+T.JSC$8032_domain_),_.Mn(T,T.JSC$8032_port_)):(T=_.i1.location,T=mq7(T.protocol,O?O+"."+T.hostname:T.hostname,+T.port,b));O=W.httpSessionIdParam_;b=W.httpSessionId_;O&&b&&_.VC(T,O,b);_.VC(T,"VER",W.JSC$17394_channelVersion_);sa(W,T);return T},XyB=function(W,O,b){if(O&&!W.JSC$17392_supportsCrossDomainXhrs_)throw Error("xk");
O=W.usesFetchStreams_&&!W.JSC$17392_xmlHttpFactory_?new _.pO(new sf({streamBinaryChunks:b})):new _.pO(W.JSC$17392_xmlHttpFactory_);O.JSC$7800_withCredentials_=W.JSC$17392_supportsCrossDomainXhrs_;return O};
kc.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Tq9=function(){};
_.d=Tq9.prototype;_.d.JSC$17398_channelOpened=function(){};
_.d.JSC$17398_channelHandleArray=function(){};
_.d.JSC$17398_channelError=function(){};
_.d.JSC$17398_channelClosed=function(){};
_.d.isActive=function(){return!0};
_.d.JSC$17398_badMapError=function(){};var LcU=function(){},rJ=function(W,O){_.ER.call(this);
this.JSC$17401_channel_=new kc(O);this.JSC$17401_url_=W;this.messageUrlParams_=O&&O.messageUrlParams||null;W=O&&O.messageHeaders||null;O&&O.clientProtocolHeaderRequired&&(W?_.PQ.set(W,"X-Client-Protocol","webchannel"):W=_.PQ.create("X-Client-Protocol","webchannel"));this.JSC$17401_channel_.JSC$17392_extraHeaders_=W;W=O&&O.initMessageHeaders||null;O&&O.messageContentType&&(W?_.PQ.set(W,"X-WebChannel-Content-Type",O.messageContentType):W=_.PQ.create("X-WebChannel-Content-Type",O.messageContentType));
O&&O.clientProfile&&(W?_.PQ.set(W,"X-WebChannel-Client-Profile",O.clientProfile):W=_.PQ.create("X-WebChannel-Client-Profile",O.clientProfile));this.JSC$17401_channel_.initHeaders_=W;(W=O&&O.httpHeadersOverwriteParam)&&!_.Zi(W)&&(this.JSC$17401_channel_.httpHeadersOverwriteParam_=W);this.supportsCrossDomainXhr_=O&&O.supportsCrossDomainXhr||!1;this.sendRawJson_=O&&O.sendRawJson||!1;(O=O&&O.httpSessionIdParam)&&!_.Zi(O)&&(this.JSC$17401_channel_.httpSessionIdParam_=O,_.PQ.containsKey(this.messageUrlParams_,
O)&&_.PQ.remove(this.messageUrlParams_,O));this.channelHandler_=new BF(this)};
_.Wk(rJ,_.ER);rJ.prototype.open=function(){this.JSC$17401_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17401_channel_.JSC$17392_supportsCrossDomainXhrs_=!0);this.JSC$17401_channel_.connect(this.JSC$17401_url_,this.messageUrlParams_||void 0)};
rJ.prototype.close=function(){this.JSC$17401_channel_.disconnect()};
rJ.prototype.send=function(W){var O=this.JSC$17401_channel_;if(typeof W==="string"){var b={};b.__data__=W;W=b}else this.sendRawJson_&&(b={},b.__data__=(0,_.Px)(W),W=b);O.JSC$17392_outgoingMaps_.push(new zQ8(O.JSC$17392_nextMapId_++,W));O.state_==3&&uVg(O)};
rJ.prototype.disposeInternal=function(){this.JSC$17401_channel_.handler_=null;delete this.channelHandler_;this.JSC$17401_channel_.disconnect();delete this.JSC$17401_channel_;rJ.superClass_.disposeInternal.call(this)};
var d2D=function(W){yYP.call(this);W.__headers__&&(this.headers=W.__headers__,this.statusCode=W.__status__,delete W.__headers__,delete W.__status__);var O=W.__sm__;O?this.data=(this.metadataKey=_.PQ.getAnyKey(O))?_.PQ.get(O,this.metadataKey):O:this.data=W};
_.Wk(d2D,yYP);var hjU=function(W){WOR.call(this);this.status=1;this.errorCode=W};
_.Wk(hjU,WOR);var BF=function(W){this.JSC$17408_channel_=W};
_.Wk(BF,Tq9);BF.prototype.JSC$17398_channelOpened=function(){this.JSC$17408_channel_.dispatchEvent("w")};
BF.prototype.JSC$17398_channelHandleArray=function(W){this.JSC$17408_channel_.dispatchEvent(new d2D(W))};
BF.prototype.JSC$17398_channelError=function(W){this.JSC$17408_channel_.dispatchEvent(new hjU(W))};
BF.prototype.JSC$17398_channelClosed=function(){this.JSC$17408_channel_.dispatchEvent("x")};
var SY5=function(W,O){this.transportChannel_=W;this.JSC$17411_channel_=O},Zcg=function(W){return j$k(W.JSC$17411_channel_).map(function(O){var b=W.transportChannel_;
O=O.map;"__data__"in O?(O=O.__data__,b=b.sendRawJson_?(0,_.jQw)(O):O):b=O;return b})};var D9=function(W){IRP.dispatchEvent(new aR8(IRP,W))},IRP=new _.ER,aR8=function(W){_.ZB.call(this,"statevent",W)};
_.R(aR8,_.ZB);var xc=function(W,O,b,T,L){this.JSC$17416_channel_=W;this.JSC$17416_channelDebug_=O;this.sid_=b;this.JSC$17416_rid_=T;this.JSC$17416_retryId_=L||1;this.timeout_=45E3;this.JSC$17416_eventHandler_=new _.be(this);this.pollingTimer_=new _.ie;this.pollingTimer_.setInterval(250)};
_.d=xc.prototype;_.d.JSC$17418_extraHeaders_=null;_.d.JSC$17418_successful_=!1;_.d.JSC$17418_watchDogTimerId_=null;_.d.JSC$17418_watchDogTimeoutTime_=null;_.d.JSC$17418_requestStartTime_=null;_.d.JSC$17418_type_=null;_.d.JSC$17418_baseUri_=null;_.d.JSC$17418_requestUri_=null;_.d.JSC$17418_postData_=null;_.d.JSC$17418_xmlHttp_=null;_.d.JSC$17418_xmlHttpChunkStart_=0;_.d.trident_=null;_.d.JSC$17418_verb_=null;_.d.JSC$17418_lastError_=null;_.d.JSC$17418_lastStatusCode_=-1;_.d.sendClose_=!0;
_.d.JSC$17418_cancelled_=!1;_.d.JSC$17418_readyStateChangeThrottleMs_=0;_.d.JSC$17418_readyStateChangeThrottle_=null;var m2Z=function(W,O){switch(W){case 0:return"Non-200 return code ("+O+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},YYg={},Eg1={};
xc.prototype.setTimeout=function(W){this.timeout_=W};
var ARR=function(W,O,b){W.JSC$17418_type_=1;W.JSC$17418_baseUri_=_.O$(O.clone());W.JSC$17418_postData_=b;W.decodeChunks_=!0;wTk(W,null)},XT7=function(W,O,b,T,L){W.JSC$17418_type_=1;
W.JSC$17418_baseUri_=_.O$(O.clone());W.JSC$17418_postData_=null;W.decodeChunks_=b;L&&(W.sendClose_=!1);wTk(W,T)},wTk=function(W,O){W.JSC$17418_requestStartTime_=Date.now();
U2Z(W);W.JSC$17418_requestUri_=W.JSC$17418_baseUri_.clone();LR(W.JSC$17418_requestUri_,"t",W.JSC$17416_retryId_);W.JSC$17418_xmlHttpChunkStart_=0;W.JSC$17418_xmlHttp_=W.JSC$17416_channel_.JSC$17425_createXhrIo(W.JSC$17416_channel_.JSC$17425_shouldUseSecondaryDomains()?O:null);W.JSC$17418_readyStateChangeThrottleMs_>0&&(W.JSC$17418_readyStateChangeThrottle_=new _.JI((0,_.K5)(W.JSC$17418_xmlHttpHandler_,W,W.JSC$17418_xmlHttp_),W.JSC$17418_readyStateChangeThrottleMs_));W.JSC$17416_eventHandler_.listen(W.JSC$17418_xmlHttp_,
"readystatechange",W.JSC$17418_readyStateChangeHandler_);O=W.JSC$17418_extraHeaders_?_.PQ.clone(W.JSC$17418_extraHeaders_):{};W.JSC$17418_postData_?(W.JSC$17418_verb_="POST",O["Content-Type"]="application/x-www-form-urlencoded",W.JSC$17418_xmlHttp_.send(W.JSC$17418_requestUri_,W.JSC$17418_verb_,W.JSC$17418_postData_,O)):(W.JSC$17418_verb_="GET",W.sendClose_&&!_.Lf&&(O.Connection="close"),W.JSC$17418_xmlHttp_.send(W.JSC$17418_requestUri_,W.JSC$17418_verb_,null,O));W.JSC$17416_channel_.notifyServerReachabilityEvent(1);
O=W.JSC$17416_channelDebug_;var b=W.JSC$17418_postData_;if(b){var T="";b=b.split("&");for(var L=0;L<b.length;L++){var h=b[L].split("=");if(h.length>1){var Z=h[0];h=h[1];var a=Z.split("_");T=a.length>=2&&a[1]=="type"?T+(Z+"="+h+"&"):T+(Z+"=redacted&")}}}else T=null;O.info("XMLHTTP REQ ("+W.JSC$17416_rid_+") [attempt "+W.JSC$17416_retryId_+"]: "+W.JSC$17418_verb_+"\n"+W.JSC$17418_requestUri_+"\n"+T)};
xc.prototype.JSC$17418_readyStateChangeHandler_=function(W){W=W.target;var O=this.JSC$17418_readyStateChangeThrottle_;O&&_.RK(W)==3?(this.JSC$17416_channelDebug_.debug("Throttling readystatechange."),O.fire()):this.JSC$17418_xmlHttpHandler_(W)};
xc.prototype.JSC$17418_xmlHttpHandler_=function(W){try{if(W==this.JSC$17418_xmlHttp_)a:{var O=_.RK(this.JSC$17418_xmlHttp_),b=this.JSC$17418_xmlHttp_.JSC$7800_lastErrorCode_,T=this.JSC$17418_xmlHttp_.getStatus();if(_.Lf&&!_.dQ("420+")){if(O<4)break a}else if(O<3||O==3&&!this.JSC$17418_xmlHttp_.getResponseText())break a;this.JSC$17418_cancelled_||O!=4||b==7||(b==8||T<=0?this.JSC$17416_channel_.notifyServerReachabilityEvent(3):this.JSC$17416_channel_.notifyServerReachabilityEvent(2));lRN(this);var L=
this.JSC$17418_xmlHttp_.getStatus();this.JSC$17418_lastStatusCode_=L;var h=this.JSC$17418_xmlHttp_.getResponseText();h||this.JSC$17416_channelDebug_.debug("No response text for uri "+this.JSC$17418_requestUri_+" status "+L);this.JSC$17418_successful_=L==200;this.JSC$17416_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17416_rid_+") [ attempt "+this.JSC$17416_retryId_+"]: "+this.JSC$17418_verb_+"\n"+this.JSC$17418_requestUri_+"\n"+O+" "+L);if(this.JSC$17418_successful_){O==4&&zu(this);if(this.decodeChunks_){for(W=
!0;!this.JSC$17418_cancelled_&&this.JSC$17418_xmlHttpChunkStart_<h.length;){var Z=ej5(this,h);if(Z==Eg1){O==4&&(this.JSC$17418_lastError_=4,D9(15),W=!1);Ck(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,null,"[Incomplete Response]");break}else if(Z==YYg){this.JSC$17418_lastError_=4;D9(16);Ck(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,"[Invalid Chunk]");W=!1;break}else Ck(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,Z,null),PZD(this,Z)}O==4&&h.length==0&&(this.JSC$17418_lastError_=1,
D9(17),W=!1);this.JSC$17418_successful_=this.JSC$17418_successful_&&W;W||(Ck(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,"[Invalid Chunked Response]"),zu(this),pTD(this))}else Ck(this.JSC$17416_channelDebug_,this.JSC$17416_rid_,h,null),PZD(this,h);this.JSC$17418_successful_&&!this.JSC$17418_cancelled_&&(O==4?this.JSC$17416_channel_.JSC$17425_onRequestComplete(this):(this.JSC$17418_successful_=!1,U2Z(this)))}else L==400&&h.indexOf("Unknown SID")>0?(this.JSC$17418_lastError_=3,D9(13),this.JSC$17416_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17416_rid_+")")):(this.JSC$17418_lastError_=0,D9(14),this.JSC$17416_channelDebug_.warning("XMLHTTP Bad status "+L+" ("+this.JSC$17416_rid_+")")),zu(this),pTD(this)}else this.JSC$17416_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(a){this.JSC$17416_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var ej5=function(W,O){var b=W.JSC$17418_xmlHttpChunkStart_,T=O.indexOf("\n",b);if(T==-1)return Eg1;b=Number(O.substring(b,T));if(isNaN(b))return YYg;T+=1;if(T+b>O.length)return Eg1;O=O.slice(T,T+b);W.JSC$17418_xmlHttpChunkStart_=T+b;return O};
xc.prototype.cancel=function(){this.JSC$17418_cancelled_=!0;zu(this)};
var U2Z=function(W){W.JSC$17418_watchDogTimeoutTime_=Date.now()+W.timeout_;RjB(W,W.timeout_)},RjB=function(W,O){if(W.JSC$17418_watchDogTimerId_!=null)throw Error("wk");
W.JSC$17418_watchDogTimerId_=K3((0,_.K5)(W.JSC$17418_onWatchDogTimeout_,W),O)},lRN=function(W){W.JSC$17418_watchDogTimerId_&&(_.i1.clearTimeout(W.JSC$17418_watchDogTimerId_),W.JSC$17418_watchDogTimerId_=null)};
xc.prototype.JSC$17418_onWatchDogTimeout_=function(){this.JSC$17418_watchDogTimerId_=null;var W=Date.now();W-this.JSC$17418_watchDogTimeoutTime_>=0?(this.JSC$17416_channelDebug_.info("TIMEOUT: "+this.JSC$17418_requestUri_),this.JSC$17418_type_!=2&&this.JSC$17416_channel_.notifyServerReachabilityEvent(3),zu(this),this.JSC$17418_lastError_=2,D9(18),pTD(this)):(this.JSC$17416_channelDebug_.warning("WatchDog timer called too early"),RjB(this,this.JSC$17418_watchDogTimeoutTime_-W))};
var pTD=function(W){W.JSC$17416_channel_.JSC$17425_isClosed()||W.JSC$17418_cancelled_||W.JSC$17416_channel_.JSC$17425_onRequestComplete(W)},zu=function(W){lRN(W);
_.JU(W.JSC$17418_readyStateChangeThrottle_);W.JSC$17418_readyStateChangeThrottle_=null;W.pollingTimer_.stop();W.JSC$17416_eventHandler_.removeAll();if(W.JSC$17418_xmlHttp_){var O=W.JSC$17418_xmlHttp_;W.JSC$17418_xmlHttp_=null;O.abort();O.dispose()}W.trident_&&(W.trident_=null)};
xc.prototype.getLastError=function(){return this.JSC$17418_lastError_};
var PZD=function(W,O){try{W.JSC$17416_channel_.JSC$17425_onRequestData(W,O),W.JSC$17416_channel_.notifyServerReachabilityEvent(4)}catch(b){}};var Ck=function(W,O,b,T){var L=W.info;a:if(b&&b!="y2f%"){try{var h=JSON.parse(b);if(h)for(var Z=0;Z<h.length;Z++)if(Array.isArray(h[Z])){var a=h[Z];if(!(a.length<2)){var m=a[1];if(Array.isArray(m)&&!(m.length<1)){var w=m[0];if(w!="noop"&&w!="stop")for(var A=1;A<m.length;A++)m[A]=""}}}var X=(0,_.Px)(h);break a}catch(l){W.debug("Exception parsing expected JS array - probably was not JS");X=b;break a}X=void 0}else X=b;L.call(W,"XMLHTTP TEXT ("+O+"): "+X+(T?" "+T:""))};
vE.prototype.debug=function(W){this.info(W)};
vE.prototype.info=function(){};
vE.prototype.warning=function(){};var KcD=function(W,O){this.JSC$17423_channel_=W;this.JSC$17423_channelDebug_=O;this.JSC$17423_parser_=new Xw};
_.d=KcD.prototype;_.d.JSC$17425_extraHeaders_=null;_.d.JSC$17425_request_=null;_.d.receivedIntermediateResult_=!1;_.d.JSC$17425_path_=null;_.d.state_=null;_.d.JSC$17425_lastStatusCode_=-1;_.d.JSC$17425_hostPrefix_=null;_.d.blockedPrefix_=null;
_.d.connect=function(W){this.JSC$17425_path_=W;W=vg5(this.JSC$17423_channel_,this.JSC$17425_path_);D9(3);Date.now();var O=this.JSC$17423_channel_.firstTestResults_;O!=null?(this.JSC$17425_hostPrefix_=O[0],(this.blockedPrefix_=O[1])?(this.state_=1,ggP(this)):(this.state_=2,og7(this))):(LR(W,"MODE","init"),this.JSC$17425_request_=new xc(this,this.JSC$17423_channelDebug_),this.JSC$17425_request_.JSC$17418_extraHeaders_=this.JSC$17425_extraHeaders_,XT7(this.JSC$17425_request_,W,!1,null,!0),this.state_=
0)};
var ggP=function(W){var O=Q$7(W.JSC$17423_channel_,W.blockedPrefix_,"/mail/images/cleardot.gif");_.O$(O);T3D(O.toString(),5E3,(0,_.K5)(W.checkBlockedCallback_,W),3,2E3);W.notifyServerReachabilityEvent(1)};
KcD.prototype.checkBlockedCallback_=function(W){if(W)this.state_=2,og7(this);else{D9(4);var O=this.JSC$17423_channel_;O.JSC$17426_channelDebug_.debug("Test Connection Blocked");O.JSC$17430_lastStatusCode_=O.connectionTest_.JSC$17425_lastStatusCode_;qB(O,9)}W&&this.notifyServerReachabilityEvent(2)};
var og7=function(W){W.JSC$17423_channelDebug_.debug("TestConnection: starting stage 2");var O=W.JSC$17423_channel_.secondTestResults_;O!=null?(W.JSC$17423_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+O?"Buffered":"Unbuffered"),D9(5),O?(D9(11),nk(W.JSC$17423_channel_,W,!1)):(D9(12),nk(W.JSC$17423_channel_,W,!0))):(W.JSC$17425_request_=new xc(W,W.JSC$17423_channelDebug_),W.JSC$17425_request_.JSC$17418_extraHeaders_=W.JSC$17425_extraHeaders_,O=kMR(W.JSC$17423_channel_,
W.JSC$17425_hostPrefix_,W.JSC$17425_path_),D9(5),LR(O,"TYPE","xmlhttp"),XT7(W.JSC$17425_request_,O,!1,W.JSC$17425_hostPrefix_,!1))};
_.d=KcD.prototype;_.d.JSC$17425_createXhrIo=function(W){return this.JSC$17423_channel_.JSC$17425_createXhrIo(W)};
_.d.abort=function(){this.JSC$17425_request_&&(this.JSC$17425_request_.cancel(),this.JSC$17425_request_=null);this.JSC$17425_lastStatusCode_=-1};
_.d.JSC$17425_isClosed=function(){return!1};
_.d.JSC$17425_onRequestData=function(W,O){this.JSC$17425_lastStatusCode_=W.JSC$17418_lastStatusCode_;if(this.state_==0)if(this.JSC$17423_channelDebug_.debug("TestConnection: Got data for stage 1"),O){try{var b=this.JSC$17423_parser_.parse(O)}catch(T){s$7(this.JSC$17423_channel_,this);return}this.JSC$17425_hostPrefix_=b[0];this.blockedPrefix_=b[1]}else this.JSC$17423_channelDebug_.debug("TestConnection: Null responseText"),s$7(this.JSC$17423_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(D9(7),Date.now()):O=="11111"?(D9(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17425_lastStatusCode_=200,this.JSC$17425_request_.cancel(),this.JSC$17423_channelDebug_.debug("Test connection succeeded; using streaming connection"),D9(12),nk(this.JSC$17423_channel_,this,!0)):(D9(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.d.JSC$17425_onRequestComplete=function(){this.JSC$17425_lastStatusCode_=this.JSC$17425_request_.JSC$17418_lastStatusCode_;this.JSC$17425_request_.JSC$17418_successful_?this.state_==0?(this.JSC$17423_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,ggP(this)):(this.state_=2,og7(this))):this.state_==2&&(this.JSC$17423_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17423_channelDebug_.debug("Test connection succeeded; using streaming connection"),
D9(12),nk(this.JSC$17423_channel_,this,!0)):(this.JSC$17423_channelDebug_.debug("Test connection failed; not using streaming"),D9(11),nk(this.JSC$17423_channel_,this,!1))):(this.JSC$17423_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?D9(9):this.state_==2&&D9(10),s$7(this.JSC$17423_channel_,this,this.JSC$17425_request_.getLastError()))};
_.d.JSC$17425_shouldUseSecondaryDomains=function(){return this.JSC$17423_channel_.JSC$17425_shouldUseSecondaryDomains()};
_.d.isActive=function(){return this.JSC$17423_channel_.isActive()};
_.d.notifyServerReachabilityEvent=function(W){this.JSC$17423_channel_.notifyServerReachabilityEvent(W)};var fk=function(W,O,b){this.state_=1;this.JSC$17426_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17426_channelDebug_=new vE;this.JSC$17426_parser_=new Xw;this.firstTestResults_=W||null;this.secondTestResults_=O!=null?O:null;this.asyncTest_=b||!1},Bqg=function(W,O){this.JSC$17428_mapId=W;
this.map=O;this.context=null};
_.d=fk.prototype;_.d.JSC$17430_extraHeaders_=null;_.d.JSC$17430_extraParams_=null;_.d.forwardChannelRequest_=null;_.d.JSC$17430_backChannelRequest_=null;_.d.JSC$17430_path_=null;_.d.JSC$17430_forwardChannelUri_=null;_.d.JSC$17430_backChannelUri_=null;_.d.JSC$17430_hostPrefix_=null;_.d.JSC$17430_nextRid_=0;_.d.JSC$17430_nextMapId_=0;_.d.handler_=null;_.d.JSC$17430_forwardChannelTimerId_=null;_.d.JSC$17430_backChannelTimerId_=null;_.d.JSC$17430_deadBackChannelTimerId_=null;_.d.connectionTest_=null;
_.d.useChunked_=null;_.d.JSC$17430_lastArrayId_=-1;_.d.JSC$17430_lastPostResponseArrayId_=-1;_.d.JSC$17430_lastStatusCode_=-1;_.d.JSC$17430_forwardChannelRetryCount_=0;_.d.JSC$17430_backChannelRetryCount_=0;_.d.JSC$17430_channelVersion_=8;var rRg={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},D29=function(W,O,b,T){_.ZB.call(this,"timingevent",W);this.size=O;this.rtt=b;this.retries=T};
_.Wk(D29,_.ZB);var x25=function(W){_.ZB.call(this,"serverreachability",W)};
_.Wk(x25,_.ZB);fk.prototype.connect=function(W,O,b,T,L){this.JSC$17426_channelDebug_.debug("connect()");D9(0);this.JSC$17430_path_=O;this.JSC$17430_extraParams_=b||{};T&&L!==void 0&&(this.JSC$17430_extraParams_.OSID=T,this.JSC$17430_extraParams_.OAID=L);this.asyncTest_?(K3((0,_.K5)(this.connectTest_,this,W),100),zjP(this)):this.connectTest_(W)};
fk.prototype.disconnect=function(){this.JSC$17426_channelDebug_.debug("disconnect()");CZD(this);if(this.state_==3){var W=this.JSC$17430_nextRid_++,O=this.JSC$17430_forwardChannelUri_.clone();_.VC(O,"SID",this.sid_);_.VC(O,"RID",W);_.VC(O,"TYPE","terminate");Gu(this,O);W=new xc(this,this.JSC$17426_channelDebug_,this.sid_,W);W.JSC$17418_type_=2;W.JSC$17418_baseUri_=_.O$(O.clone());(new Image).src=W.JSC$17418_baseUri_.toString();W.JSC$17418_requestStartTime_=Date.now();U2Z(W)}qY8(this)};
fk.prototype.connectTest_=function(W){this.JSC$17426_channelDebug_.debug("connectTest_()");this.connectionTest_=new KcD(this,this.JSC$17426_channelDebug_);this.connectionTest_.JSC$17425_extraHeaders_=this.JSC$17430_extraHeaders_;this.connectionTest_.JSC$17423_parser_=this.JSC$17426_parser_;this.connectionTest_.connect(W)};
var zjP=function(W){W.JSC$17426_channelDebug_.debug("connectChannel_()");W.JSC$17430_ensureInState_(1,0);W.JSC$17430_forwardChannelUri_=vg5(W,W.JSC$17430_path_);ngD(W)},CZD=function(W){W.connectionTest_&&(W.connectionTest_.abort(),W.connectionTest_=null);
W.JSC$17430_backChannelRequest_&&(W.JSC$17430_backChannelRequest_.cancel(),W.JSC$17430_backChannelRequest_=null);W.JSC$17430_backChannelTimerId_&&(_.i1.clearTimeout(W.JSC$17430_backChannelTimerId_),W.JSC$17430_backChannelTimerId_=null);fR7(W);W.forwardChannelRequest_&&(W.forwardChannelRequest_.cancel(),W.forwardChannelRequest_=null);W.JSC$17430_forwardChannelTimerId_&&(_.i1.clearTimeout(W.JSC$17430_forwardChannelTimerId_),W.JSC$17430_forwardChannelTimerId_=null)},GMU=function(W,O){if(W.state_==0)throw Error("zk");
W.JSC$17426_outgoingMaps_.length==1E3&&W.JSC$17426_parser_.stringify(O);W.JSC$17426_outgoingMaps_.push(new Bqg(W.JSC$17430_nextMapId_++,O));W.state_!=2&&W.state_!=3||ngD(W)};
fk.prototype.JSC$17425_isClosed=function(){return this.state_==0};
fk.prototype.getState=function(){return this.state_};
var ngD=function(W){W.forwardChannelRequest_||W.JSC$17430_forwardChannelTimerId_||(W.JSC$17430_forwardChannelTimerId_=K3((0,_.K5)(W.JSC$17430_onStartForwardChannelTimer_,W),0),W.JSC$17430_forwardChannelRetryCount_=0)};
fk.prototype.JSC$17430_onStartForwardChannelTimer_=function(W){this.JSC$17430_forwardChannelTimerId_=null;HcU(this,W)};
var HcU=function(W,O){W.JSC$17426_channelDebug_.debug("startForwardChannel_");if(W.state_==1){if(!O){W.JSC$17426_channelDebug_.debug("open_()");W.JSC$17430_nextRid_=Math.floor(Math.random()*1E5);O=W.JSC$17430_nextRid_++;var b=new xc(W,W.JSC$17426_channelDebug_,"",O);b.JSC$17418_extraHeaders_=W.JSC$17430_extraHeaders_;var T=tO9(W),L=W.JSC$17430_forwardChannelUri_.clone();_.VC(L,"RID",O);_.VC(L,"CVER","1");Gu(W,L);ARR(b,L,T);W.forwardChannelRequest_=b;W.state_=2}}else W.state_==3&&(O?$2g(W,O):W.JSC$17426_outgoingMaps_.length==
0?W.JSC$17426_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):W.forwardChannelRequest_||($2g(W),W.JSC$17426_channelDebug_.debug("startForwardChannel_ finished, sent request")))},$2g=function(W,O){if(O)if(W.JSC$17430_channelVersion_>6){W.JSC$17426_outgoingMaps_=W.pendingMaps_.concat(W.JSC$17426_outgoingMaps_);
W.pendingMaps_.length=0;var b=W.JSC$17430_nextRid_-1;O=tO9(W)}else b=O.JSC$17416_rid_,O=O.JSC$17418_postData_;else b=W.JSC$17430_nextRid_++,O=tO9(W);var T=W.JSC$17430_forwardChannelUri_.clone();_.VC(T,"SID",W.sid_);_.VC(T,"RID",b);_.VC(T,"AID",W.JSC$17430_lastArrayId_);Gu(W,T);b=new xc(W,W.JSC$17426_channelDebug_,W.sid_,b,W.JSC$17430_forwardChannelRetryCount_+1);b.JSC$17418_extraHeaders_=W.JSC$17430_extraHeaders_;b.setTimeout(1E4+Math.round(1E4*Math.random()));W.forwardChannelRequest_=b;ARR(b,T,O)},
Gu=function(W,O){W.handler_&&(W=W.handler_.JSC$17437_getAdditionalParams())&&_.PQ.forEach(W,function(b,T){_.VC(O,T,b)})},tO9=function(W){var O=Math.min(W.JSC$17426_outgoingMaps_.length,1E3),b=["count="+O];
if(W.JSC$17430_channelVersion_>6&&O>0){var T=W.JSC$17426_outgoingMaps_[0].JSC$17428_mapId;b.push("ofs="+T)}else T=0;for(var L={},h=0;h<O;L={mapId$jscomp$3:void 0},h++){L.mapId$jscomp$3=W.JSC$17426_outgoingMaps_[h].JSC$17428_mapId;var Z=W.JSC$17426_outgoingMaps_[h].map;L.mapId$jscomp$3=W.JSC$17430_channelVersion_<=6?h:L.mapId$jscomp$3-T;try{_.PQ.forEach(Z,function(a){return function(m,w){b.push("req"+a.mapId$jscomp$3+"_"+w+"="+encodeURIComponent(m))}}(L))}catch(a){b.push("req"+L.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}W.pendingMaps_=W.pendingMaps_.concat(W.JSC$17426_outgoingMaps_.splice(0,O));
return b.join("&")},VOg=function(W){W.JSC$17430_backChannelRequest_||W.JSC$17430_backChannelTimerId_||(W.JSC$17430_backChannelAttemptId_=1,W.JSC$17430_backChannelTimerId_=K3((0,_.K5)(W.JSC$17430_onStartBackChannelTimer_,W),0),W.JSC$17430_backChannelRetryCount_=0)},MOZ=function(W){if(W.JSC$17430_backChannelRequest_||W.JSC$17430_backChannelTimerId_||W.JSC$17430_backChannelRetryCount_>=3)return!1;
W.JSC$17426_channelDebug_.debug("Going to retry GET");W.JSC$17430_backChannelAttemptId_++;W.JSC$17430_backChannelTimerId_=K3((0,_.K5)(W.JSC$17430_onStartBackChannelTimer_,W),NqN(W,W.JSC$17430_backChannelRetryCount_));W.JSC$17430_backChannelRetryCount_++;return!0};
fk.prototype.JSC$17430_onStartBackChannelTimer_=function(){this.JSC$17430_backChannelTimerId_=null;this.JSC$17426_channelDebug_.debug("Creating new HttpRequest");this.JSC$17430_backChannelRequest_=new xc(this,this.JSC$17426_channelDebug_,this.sid_,"rpc",this.JSC$17430_backChannelAttemptId_);this.JSC$17430_backChannelRequest_.JSC$17418_extraHeaders_=this.JSC$17430_extraHeaders_;this.JSC$17430_backChannelRequest_.JSC$17418_readyStateChangeThrottleMs_=0;var W=this.JSC$17430_backChannelUri_.clone();_.VC(W,
"RID","rpc");_.VC(W,"SID",this.sid_);_.VC(W,"CI",this.useChunked_?"0":"1");_.VC(W,"AID",this.JSC$17430_lastArrayId_);Gu(this,W);_.VC(W,"TYPE","xmlhttp");XT7(this.JSC$17430_backChannelRequest_,W,!0,this.JSC$17430_hostPrefix_,!1);this.JSC$17426_channelDebug_.debug("New Request created")};
var nk=function(W,O,b){W.JSC$17426_channelDebug_.debug("Test Connection Finished");W.useChunked_=W.secondTestResults_==null?b:!W.secondTestResults_;W.JSC$17430_lastStatusCode_=O.JSC$17425_lastStatusCode_;W.asyncTest_||zjP(W)},s$7=function(W,O){W.JSC$17426_channelDebug_.debug("Test Connection Failed");
W.JSC$17430_lastStatusCode_=O.JSC$17425_lastStatusCode_;qB(W,2)};
fk.prototype.JSC$17425_onRequestData=function(W,O){if(this.state_!=0&&(this.JSC$17430_backChannelRequest_==W||this.forwardChannelRequest_==W))if(this.JSC$17430_lastStatusCode_=W.JSC$17418_lastStatusCode_,this.forwardChannelRequest_==W&&this.state_==3)if(this.JSC$17430_channelVersion_>7){try{var b=this.JSC$17426_parser_.parse(O)}catch(T){b=null}if(Array.isArray(b)&&b.length==3)if(O=b,O[0]==0)a:if(this.JSC$17426_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17430_backChannelTimerId_)this.JSC$17426_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17430_backChannelRequest_)if(this.JSC$17430_backChannelRequest_.JSC$17418_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17418_requestStartTime_)fR7(this),this.JSC$17430_backChannelRequest_.cancel(),this.JSC$17430_backChannelRequest_=null;else break a;else this.JSC$17426_channelDebug_.warning("We do not have a BackChannel established");MOZ(this);D9(19)}else this.JSC$17430_lastPostResponseArrayId_=O[1],W=this.JSC$17430_lastPostResponseArrayId_-this.JSC$17430_lastArrayId_,0<
W&&(O=O[2],this.JSC$17426_channelDebug_.debug(O+" bytes (in "+W+" arrays) are outstanding on the BackChannel"),O<37500&&this.useChunked_&&this.JSC$17430_backChannelRetryCount_==0&&!this.JSC$17430_deadBackChannelTimerId_&&(this.JSC$17430_deadBackChannelTimerId_=K3((0,_.K5)(this.JSC$17430_onBackChannelDead_,this),6E3)));else this.JSC$17426_channelDebug_.debug("Bad POST response data returned"),qB(this,11)}else O!="y2f%"&&(this.JSC$17426_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
qB(this,11));else this.JSC$17430_backChannelRequest_==W&&fR7(this),_.Zi(O)||(W=this.JSC$17426_parser_.parse(O),this.onInput_(W))};
fk.prototype.JSC$17430_onBackChannelDead_=function(){this.JSC$17430_deadBackChannelTimerId_!=null&&(this.JSC$17430_deadBackChannelTimerId_=null,this.JSC$17430_backChannelRequest_.cancel(),this.JSC$17430_backChannelRequest_=null,MOZ(this),D9(20))};
var fR7=function(W){W.JSC$17430_deadBackChannelTimerId_!=null&&(_.i1.clearTimeout(W.JSC$17430_deadBackChannelTimerId_),W.JSC$17430_deadBackChannelTimerId_=null)};
fk.prototype.JSC$17425_onRequestComplete=function(W){this.JSC$17426_channelDebug_.debug("Request complete");if(this.JSC$17430_backChannelRequest_==W){fR7(this);this.JSC$17430_backChannelRequest_=null;var O=2}else if(this.forwardChannelRequest_==W)this.forwardChannelRequest_=null,O=1;else return;this.JSC$17430_lastStatusCode_=W.JSC$17418_lastStatusCode_;if(this.state_!=0)if(W.JSC$17418_successful_)if(O==1){O=W.JSC$17418_postData_?W.JSC$17418_postData_.length:0;W=Date.now()-W.JSC$17418_requestStartTime_;
var b=IRP;b.dispatchEvent(new D29(b,O,W,this.JSC$17430_forwardChannelRetryCount_));ngD(this);this.handler_&&this.handler_.JSC$17437_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else VOg(this);else{b=W.getLastError();if(b==3||b==7||b==0&&this.JSC$17430_lastStatusCode_>0)this.JSC$17426_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17426_channelDebug_.debug("Maybe retrying, last error: "+m2Z(b,this.JSC$17430_lastStatusCode_));var T;if(T=O==1)this.forwardChannelRequest_||
this.JSC$17430_forwardChannelTimerId_||this.state_==1||this.JSC$17430_forwardChannelRetryCount_>=2?T=!1:(this.JSC$17426_channelDebug_.debug("Going to retry POST"),this.JSC$17430_forwardChannelTimerId_=K3((0,_.K5)(this.JSC$17430_onStartForwardChannelTimer_,this,W),NqN(this,this.JSC$17430_forwardChannelRetryCount_)),this.JSC$17430_forwardChannelRetryCount_++,T=!0);if(T||O==2&&MOZ(this))return;this.JSC$17426_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17426_channelDebug_.debug("Error: HTTP request failed");
switch(b){case 1:qB(this,5);break;case 4:qB(this,10);break;case 3:qB(this,6);break;case 7:qB(this,12);break;default:qB(this,2)}}};
var NqN=function(W,O){var b=5E3+Math.floor(Math.random()*1E4);W.isActive()||(W.JSC$17426_channelDebug_.debug("Inactive channel"),b*=2);return b*O};
fk.prototype.onInput_=function(W){for(var O=0;O<W.length;O++){var b=W[O];this.JSC$17430_lastArrayId_=b[0];b=b[1];this.state_==2?b[0]=="c"?(this.sid_=b[1],this.JSC$17430_hostPrefix_=b[2],b=b[3],b!=null?this.JSC$17430_channelVersion_=b:this.JSC$17430_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17437_channelOpened(),this.JSC$17430_backChannelUri_=kMR(this,this.JSC$17430_hostPrefix_,this.JSC$17430_path_),VOg(this)):b[0]=="stop"&&qB(this,7):this.state_==3&&(b[0]=="stop"?qB(this,7):
b[0]!="noop"&&this.handler_&&this.handler_.JSC$17437_channelHandleArray(b),this.JSC$17430_backChannelRetryCount_=0)}};
fk.prototype.JSC$17430_ensureInState_=function(W){if(!_.Vh(arguments,this.state_))throw Error("Ak`"+this.state_);};
var qB=function(W,O){W.JSC$17426_channelDebug_.info("Error code "+O);if(O==2||O==9){var b=null;W.handler_&&(b=null);var T=(0,_.K5)(W.testGoogleComCallback_,W);b||(b=new _.Np("//www.google.com/images/cleardot.gif"),_.O$(b));j29(b.toString(),1E4,T)}else D9(2);W.onError_(O)};
fk.prototype.testGoogleComCallback_=function(W){W?(this.JSC$17426_channelDebug_.info("Successfully pinged google.com"),D9(2)):(this.JSC$17426_channelDebug_.info("Failed to ping google.com"),D9(1),this.onError_(8))};
fk.prototype.onError_=function(W){this.JSC$17426_channelDebug_.debug("HttpChannel: error - "+W);this.state_=0;this.handler_&&this.handler_.JSC$17437_channelError(W);qY8(this);CZD(this)};
var qY8=function(W){W.state_=0;W.JSC$17430_lastStatusCode_=-1;if(W.handler_)if(W.pendingMaps_.length==0&&W.JSC$17426_outgoingMaps_.length==0)W.handler_.JSC$17437_channelClosed();else{W.JSC$17426_channelDebug_.debug("Number of undelivered maps, pending: "+W.pendingMaps_.length+", outgoing: "+W.JSC$17426_outgoingMaps_.length);var O=_.Ov(W.pendingMaps_),b=_.Ov(W.JSC$17426_outgoingMaps_);W.pendingMaps_.length=0;W.JSC$17426_outgoingMaps_.length=0;W.handler_.JSC$17437_channelClosed(O,b)}},vg5=function(W,
O){O=Q$7(W,null,O);
W.JSC$17426_channelDebug_.debug("GetForwardChannelUri: "+O);return O},kMR=function(W,O,b){O=Q$7(W,W.JSC$17425_shouldUseSecondaryDomains()?O:null,b);
W.JSC$17426_channelDebug_.debug("GetBackChannelUri: "+O);return O},Q$7=function(W,O,b){var T=_.tV(b);
if(T.JSC$8032_domain_!="")O&&_.Nn(T,O+"."+T.JSC$8032_domain_),_.Mn(T,T.JSC$8032_port_);else{var L=window.location;T=mq7(L.protocol,O?O+"."+L.hostname:L.hostname,+L.port,b)}W.JSC$17430_extraParams_&&_.PQ.forEach(W.JSC$17430_extraParams_,function(h,Z){_.VC(T,Z,h)});
_.VC(T,"VER",W.JSC$17430_channelVersion_);Gu(W,T);return T};
fk.prototype.JSC$17425_createXhrIo=function(W){if(W)throw Error("xk");W=new _.pO;W.JSC$7800_withCredentials_=!1;return W};
fk.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
fk.prototype.notifyServerReachabilityEvent=function(W){var O=IRP;O.dispatchEvent(new x25(O,W))};
fk.prototype.JSC$17425_shouldUseSecondaryDomains=function(){return!1};
new Uqg;var u81=function(){};
_.d=u81.prototype;_.d.JSC$17437_channelOpened=function(){};
_.d.JSC$17437_channelHandleArray=function(){};
_.d.JSC$17437_channelSuccess=function(){};
_.d.JSC$17437_channelError=function(){};
_.d.JSC$17437_channelClosed=function(){};
_.d.JSC$17437_getAdditionalParams=function(){return{}};
_.d.isActive=function(){return!0};var JRP=function(W){W.front_.length===0&&(W.front_=W.back_,W.front_.reverse(),W.back_=[])};
_.d=dyZ.prototype;_.d.enqueue=function(W){this.back_.push(W)};
_.d.peek=function(){JRP(this);return _.CE(this.front_)};
_.d.getCount=function(){return this.front_.length+this.back_.length};
_.d.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.d.clear=function(){this.front_=[];this.back_=[]};
_.d.contains=function(W){return _.Vh(this.front_,W)||_.Vh(this.back_,W)};
_.d.remove=function(W){var O=this.front_;var b=Array.prototype.lastIndexOf.call(O,W,O.length-1);b>=0?(_.MP(O,b),O=!0):O=!1;return O||_.c2(this.back_,W)};
_.d.getValues=function(){for(var W=[],O=this.front_.length-1;O>=0;--O)W.push(this.front_[O]);O=this.back_.length;for(var b=0;b<O;++b)W.push(this.back_[b]);return W};var HF=function(W){this.JSC$17441_map_=new _.bs;this.size=0;W&&this.addAll(W)},cR1=function(W){var O=typeof W;
return O=="object"&&W||O=="function"?"o"+_.d1(W):O.charAt(0)+W};
_.d=HF.prototype;_.d.getCount=function(){return this.JSC$17441_map_.size};
_.d.add=function(W){this.JSC$17441_map_.set(cR1(W),W);this.size=this.JSC$17441_map_.size};
_.d.addAll=function(W){W=_.$H(W);for(var O=W.length,b=0;b<O;b++)this.add(W[b]);this.size=this.JSC$17441_map_.size};
_.d.removeAll=function(W){W=_.$H(W);for(var O=W.length,b=0;b<O;b++)this.remove(W[b]);this.size=this.JSC$17441_map_.size};
_.d.delete=function(W){W=this.JSC$17441_map_.remove(cR1(W));this.size=this.JSC$17441_map_.size;return W};
_.d.remove=function(W){return this.delete(W)};
_.d.clear=function(){this.JSC$17441_map_.clear();this.size=0};
_.d.isEmpty=function(){return this.JSC$17441_map_.size===0};
_.d.has=function(W){return this.JSC$17441_map_.containsKey(cR1(W))};
_.d.contains=function(W){return this.JSC$17441_map_.containsKey(cR1(W))};
_.d.getValues=function(){return this.JSC$17441_map_.getValues()};
_.d.values=function(){return this.JSC$17441_map_.values()};
_.d.clone=function(){return new HF(this)};
_.d.equals=function(W){return this.getCount()==I69(W)&&Fc1(this,W)};
var Fc1=function(W,O){var b=I69(O);if(W.getCount()>b)return!1;!(O instanceof HF)&&b>5&&(O=new HF(O));return a65(W,function(T){var L=O;return L.contains&&typeof L.contains=="function"?L.contains(T):L.containsValue&&typeof L.containsValue=="function"?L.containsValue(T):_.j5(L)||typeof L==="string"?_.Vh(L,T):_.PQ.containsValue(L,T)})};
HF.prototype.__iterator__=function(){return this.JSC$17441_map_.__iterator__(!1)};
HF.prototype[Symbol.iterator]=function(){return this.values()};var yRP={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(W){return(this._clampValue(W)-this.min)/(this.max-this.min)},
_clampValue:function(W){return Math.min(this.max,Math.max(this.min,this._calcStep(W)))},
_calcStep:function(W){W=parseFloat(W);if(!this.step)return W;W=Math.round((W-this.min)/this.step);return this.step<1?W/(1/this.step)+this.min:W*this.step+this.min},
_validateValue:function(){var W=this._clampValue(this.value);this.value=this.oldValue=isNaN(W)?this.oldValue:W;return this.value!==W},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var WF8;var Og7;_.v_({_template:function(){if(Og7!==void 0)return Og7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;WF8===void 0&&(WF8=document.createElement("template"));var T=WF8;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Og7=W},
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(){_.My(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(W){W.keyCode===27&&(W.preventDefault(),this.close())},
_track:function(W){if(!this.persistent&&!this.disableSwipe)switch(W.preventDefault(),W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackMove(W);break;case "end":this._trackEnd(W)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var W=this.$.contentContainer.getBoundingClientRect();this._savedWidth=W.width;this._translateOffset=this.position==="left"?W.left:W.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(W){this._trackDetails&&(this._translateDrawer(W.detail.dx+this._translateOffset),this._trackDetails.push({dx:W.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(W){if(this._trackDetails){var O=W.detail.dx+this._translateOffset,b=this.getWidth();O=this.position==="left"?O>=0||O<=-b:O<=0||O>=b;if(!O){var T=this._trackDetails;this._trackDetails=null;this._flingDrawer(W,T);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}b/=2;W.detail.dx<-b?this.opened=this.position==="right":W.detail.dx>b&&(this.opened=this.position==="left");O?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(W,O){for(var b=Date.now(),T=b-100,L,h=0,Z=O.length-1;h<=Z;){var a=h+Z>>1,m=O[a];m.timeStamp>=T?(L=m,Z=a-1):h=a+1}return L?(W.detail.dx-L.dx)/(b-L.timeStamp||1):0},
_flingDrawer:function(W,O){O=this._calculateVelocity(W,O);if(!(Math.abs(O)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;W=W.detail.dx+this._translateOffset;var b=this.getWidth(),T=this.position==="left",L=O>0;L?(O=Math.max(O,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(O=Math.min(O,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");O=this._FLING_INITIAL_SLOPE*(!L&&T?-(W+b):L&&!T?b-W:-W)/O;this._styleTransitionDuration(O);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,O)}},
_styleTransitionDuration:function(W){this.style.transitionDuration=W+"ms";this.$.contentContainer.style.transitionDuration=W+"ms";this.$.scrim.style.transitionDuration=W+"ms"},
_styleTransitionTimingFunction:function(W){this.$.contentContainer.style.transitionTimingFunction=W;this.$.scrim.style.transitionTimingFunction=W},
_translateDrawer:function(W){var O=this.getWidth();this.position==="left"?(W=Math.max(-O,Math.min(W,0)),this.$.scrim.style.opacity=1+W/O):(W=Math.max(0,Math.min(W,O)),this.$.scrim.style.opacity=1-W/O);this.translate3d(W+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var W=this._drawerState;W===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;W!==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=""),W!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var W=_.Rs(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"])');W.length>0?(this._firstTabStop=W[0],this._lastTabStop=W[W.length-1]):
this._lastTabStop=this._firstTabStop=null;(W=this.getAttribute("tabindex"))&&parseInt(W,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(W){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||W.keyCode!==9||(W.shiftKey?this._firstTabStop&&_.Rs(W).localTarget===this._firstTabStop&&(W.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Rs(W).localTarget===this._lastTabStop&&(W.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(W,O){this.toggleClass("visible",W&&!O,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 igU;var bgZ;_.v_({_template:function(){if(bgZ!==void 0)return bgZ;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;igU===void 0&&(igU=document.createElement("template"));var T=igU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return bgZ=W},
is:"tp-yt-paper-progress",behaviors:[yRP],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(W){this.toggleClass("indeterminate",W,this.$.primaryProgress)},
_transformProgress:function(W,O){W.style.transform=W.style.webkitTransform="scaleX("+O/100+")"},
_mainRatioChanged:function(W){this._transformProgress(this.$.primaryProgress,W)},
_progressChanged:function(W,O,b,T,L){W=this._clampValue(W);O=this._clampValue(O);var h=this._calcRatio(W)*100,Z=this._calcRatio(O)*100;this._setSecondaryRatio(h);this._transformProgress(this.$.secondaryProgress,h);this._transformProgress(this.$.primaryProgress,Z);this.secondaryProgress=W;L?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",O);this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",T)},
_disabledChanged:function(W){this.setAttribute("aria-disabled",W?"true":"false")},
_hideSecondaryProgress:function(W){return W===0}});var j3g;var Tp1;var LFZ=function(){};
_.d=LFZ.prototype;_.d.registered=function(){};
_.d.addOwnKeyBinding=function(){};
_.d.removeOwnKeyBindings=function(){};
_.d.keyboardEventMatchesKeys=function(){};
_.d._collectKeyBindings=function(){};
_.d._prepKeyBindings=function(){};
_.d._addKeyBinding=function(){};
_.d._resetKeyEventListeners=function(){};
_.d._listenKeyEventListeners=function(){};
_.d._unlistenKeyEventListeners=function(){};
_.d._onKeyBindingEvent=function(){};
_.d._triggerKeyHandler=function(){};
_.d._tapHandler=function(){};
_.d._focusChanged=function(){};
_.d._detectKeyboardFocus=function(){};
_.d._userActivate=function(){};
_.d._upHandler=function(){};
_.d._spaceKeyDownHandler=function(){};
_.d._spaceKeyUpHandler=function(){};
_.d._asyncClick=function(){};
_.d._pressedChanged=function(){};
_.d._ariaActiveAttributeChanged=function(){};
_.d._activeChanged=function(){};
_.d._controlStateChanged=function(){};
_.d._changedButtonState=function(){};
_.d._focusBlurHandler=function(){};
_.d._disabledChanged=function(){};
_.d._changedControlState=function(){};
_.d._buttonStateChanged=function(){};
_.d._downHandler=function(){};
_.d.ensureRipple=function(){};
_.d.getRipple=function(){};
_.d.hasRipple=function(){};
_.d._noinkChanged=function(){};
_.d._calcRatio=function(){};
_.d._clampValue=function(){};
_.d._calcStep=function(){};
_.d._validateValue=function(){};
_.d._update=function(){};
_.d._setImmediateValue=function(){};
_.d._setExpand=function(){};
_.d._setDragging=function(){};
_.d._setTransiting=function(){};
_.d._setMarkers=function(){};
_.d._setPressed=function(){};
_.d._setPointerDown=function(){};
_.d._setReceivedFocusFromKeyboard=function(){};
_.d._setFocused=function(){};
_.d._setRatio=function(){};
LFZ=_.v_({_template:function(){if(Tp1!==void 0)return Tp1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;j3g===void 0&&(j3g=document.createElement("template"));var T=j3g;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return Tp1=W},
is:"tp-yt-paper-slider",behaviors:[_.wc,_.ls,_.q15,yRP],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&&_.BB(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(W,O,b){this.setAttribute("aria-valuemin",O);this.setAttribute("aria-valuemax",b);this.setAttribute("aria-valuenow",W);this._positionKnob(this._calcRatio(W)*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(W){this._setImmediateValue(this._calcStep(this._calcKnobPosition(W)));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(W){return(this.max-this.min)*W/100+this.min},
_onTrack:function(W){W.stopPropagation();switch(W.detail.state){case "start":this._trackStart(W);break;case "track":this._trackX(W);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(W){this.dragging||this._trackStart(W);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,W.detail.dx*(this._isRTL?-1:1)));W=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(W);W=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(W+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var W=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;W.transform=W.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(W){this._expandKnob();W.preventDefault();this.focus()},
_bartrack:function(W){this._allowBarEvent(W)&&this._onTrack(W)},
_barclick:function(W){this._w=this.$.sliderBar.offsetWidth;var O=this.$.sliderBar.getBoundingClientRect();O=(W.detail.x-O.left)/this._w*100;this._isRTL&&(O=100-O);var b=this.ratio;this._setTransiting(!0);this._positionKnob(O);b===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
W.preventDefault();this.focus()},
_bardown:function(W){this._allowBarEvent(W)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(W))},
_knobTransitionEnd:function(W){W.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(W,O,b,T){T||this._setMarkers([]);O=Math.round((b-O)/this.step);O>W&&(O=W);if(O<0||!isFinite(O))O=0;this._setMarkers(Array(O))},
_mergeClasses:function(W){return Object.keys(W).filter(function(O){return W[O]}).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(W){return!this.ignoreBarTouch||W.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(W){this._isRTL?this._incrementKey(W):this._decrementKey(W)},
_rightKey:function(W){this._isRTL?this._decrementKey(W):this._incrementKey(W)},
_incrementKey:function(W){this.disabled||(W.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),W.preventDefault())},
_decrementKey:function(W){this.disabled||(W.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),W.preventDefault())},
_changeValue:function(W){this.value=W.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(W){W.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.Cnz._createRipple.call(this)},
_focusedChanged:function(W){W&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=W?"":"none",this._ripple.holdDown=W)}});var dvZ;var h42;var tm=null,S91=function(){};
_.d=S91.prototype;_.d.fit=function(){};
_.d._discoverInfo=function(){};
_.d.resetFit=function(){};
_.d.refit=function(){};
_.d.position=function(){};
_.d.constrain=function(){};
_.d._sizeDimension=function(){};
_.d.__sizeDimension=function(){};
_.d.center=function(){};
_.d.__getNormalizedRect=function(){};
_.d.__getOffscreenArea=function(){};
_.d.__getPosition=function(){};
_.d.notifyResize=function(){};
_.d.assignParentResizable=function(){};
_.d.stopResizeNotificationsFor=function(){};
_.d._subscribeIronResize=function(){};
_.d._unsubscribeIronResize=function(){};
_.d.resizerShouldNotify=function(){};
_.d._onDescendantIronResize=function(){};
_.d._fireResize=function(){};
_.d._onIronRequestResizeNotifications=function(){};
_.d._parentResizableChanged=function(){};
_.d._notifyDescendant=function(){};
_.d._requestResizeNotifications=function(){};
_.d._findParent=function(){};
_.d.toggle=function(){};
_.d.open=function(){};
_.d.close=function(){};
_.d.cancel=function(){};
_.d.invalidateTabbables=function(){};
_.d._ensureSetup=function(){};
_.d._canceledChanged=function(){};
_.d._withBackdropChanged=function(){};
_.d._prepareRenderOpened=function(){};
_.d._finishRenderOpened=function(){};
_.d._finishRenderClosed=function(){};
_.d._preparePositioning=function(){};
_.d._finishPositioning=function(){};
_.d._applyFocus=function(){};
_.d._onCaptureClick=function(){};
_.d._onCaptureFocus=function(){};
_.d._onCaptureEsc=function(){};
_.d._onCaptureTab=function(){};
_.d._onIronResize=function(){};
_.d._onNodesChange=function(){};
_.d.__ensureFirstLastFocusables=function(){};
_.d.__openedChanged=function(){};
_.d.__deraf=function(){};
_.d.__updateScrollObservers=function(){};
_.d.__addScrollListeners=function(){};
_.d.__removeScrollListeners=function(){};
_.d.__isValidScrollAction=function(){};
_.d.__onCaptureScroll=function(){};
_.d.__saveScrollPosition=function(){};
_.d.__restoreScrollPosition=function(){};
_.d._setCanceled=function(){};
S91=_.v_({_template:function(){if(h42!==void 0)return h42;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;dvZ===void 0&&(dvZ=document.createElement("template"));var T=dvZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);return h42=W},
is:"tp-yt-paper-toast",behaviors:[_.Gi],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(){_.wp._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.zi.requestAvailability()},
show:function(W){typeof W=="string"&&(W={text:W});for(var O in W)O.indexOf("_")===0?_.wp._warn('The property "'+O+'" is private and was not set.'):O in this?this[O]=W[O]:_.wp._warn('The property "'+O+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(W){W&&W.target===this&&W.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(tm&&tm!==this&&tm.close(),tm=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):tm===this&&(tm=null);_.fr._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(W){this.positionTarget=W},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ZgR=new _.J("disablePersonalizationAction");var O_g=new _.J("showDmaConsentFlowCommand");var i_1=new _.J("showMmgNoticeCommand");var Icg=new _.J("saveConsentAction");var acN=function(W){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.jW(W)};
_.R(acN,_.qA);var mv2=_.i0X(acN);var Y98=new _.J("updateTopbarAvatarAction");var E81=new _.J("channelHandleValidationResultRenderer");var wqk=new _.J("generateHandleFromNameResultRenderer");var Ac9=new _.J("channelHandleInputRenderer");var Xq7=new _.J("copyLinkRenderer");var Uv7=new _.J("timedCommand");var lcg=new _.J("clearCookieAction");var e45=new _.J("getMultiPageMenuAction");var PK7=new _.J("addToGuideSectionAction"),pqU=new _.J("removeFromGuideSectionAction");var R4Z=new _.J("updateNotificationsUnseenCountAction");var KFg=new _.J("resetChannelUnreadCountCommand");var v89=new _.J("resetSubscriptionsUnreadDotCommand");var g8B=new _.J("selectLanguageCommand");var wSB=new _.J("sendFeedbackAction");var o8k=new _.J("uploadImageToScottyCommand");var Q3P=new _.J("registerPromoCommand");var kg1=new _.J("setPushNotificationsEnabledCommand");var s3U=new _.J("desktopTopbarRenderer");var BpU=new _.J("surveyFollowUpRenderer");var rc7=new _.J("handlesClaimingRadioOptionRenderer");var Dvg=new _.J("hotkeyDialogRenderer");var xvB=new _.J("modifyReportFormCommand");var z45=new _.J("accountLinkCommand");var CKB=new _.J("accountUnlinkCommand");var q9P=new _.J("logAccountLinkingEventCommand");var n87=new _.J("guideCollapsibleEntryRenderer");var fcU=new _.J("guideDownloadsEntryRenderer");var $c=new _.J("guideEntryRenderer");var GgR=new _.J("getLocationCommand");var Hg9=new _.J("locationCollectionCommand");var twR=new _.J("storiesItemViewModel");var $vP=new _.J("addToRemoteQueueAction");var VwR=new _.J("insertInRemoteQueueAction");var Np2=new _.J("removeFromRemoteQueueAction");var MwD=new _.J("notificationRenderer");var n95=new _.J("localWatchHistoryCommand");var ueN=new _.J("pdgBuyFlowHeaderRenderer");var Jc1=new _.J("pdgColorSliderRenderer");var cc9=new _.J("pdgCommentOptionRenderer");var FFZ=new _.J("pdgCommentPreviewRenderer");var yc7=new _.J("superVodSelectableItemButtonRenderer");var WQP=new _.J("switchButtonRenderer");var Ork=new _.J("upsellDialogRenderer");var irB=new _.J("feedbackQuestionRenderer"),brR=new _.J("feedbackOptionRenderer");var jz9=new _.J("sponsorshipsTierRenderer"),Tcg=new _.J("sponsorshipsPromotionChannelRenderer");var LQ7=new _.J("simpleSurveyMessageRenderer");var whB=new _.J("invokeInstrumentManagerAction");var duk=new _.J("logYpcFlowDismissCommand");var hF2=new _.J("logYpcFlowStartCommand");var S_9=new _.J("unlimitedCreateFamilyEndpoint");var Zr8=new _.J("iconBadgeRenderer");var n0k=new _.J("collaborativePlaylistVisibilityValidationRule");var Iwk=function(W){_.ZB.call(this,"channelMessage");this.message=W};
_.R(Iwk,_.ZB);var aw8=function(W){_.ZB.call(this,"channelError");this.error=W};
_.R(aw8,_.ZB);var muN={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"},Y_g={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},E2B={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
wLB={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Au8={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var VZ=function(W){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 _.bs;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";W&&(this.id=W.id||W.name,this.name=W.name,this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=W.app,this.type=W.type||"REMOTE_CONTROL",this.username=W.user||"",this.avatar=W.userAvatarUri||"",this.obfuscatedGaiaId=W.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=W.ownerObfuscatedGaiaId||"",this.theme=W.theme||"u",XL8(this,W.capabilities||""),UuD(this,W.compatibleSenderThemes||""),lw9(this,W.experiments||""),
this.remoteControllerUrl=W.remoteControllerUrl||"",this.localChannelEncryptionKey=W.localChannelEncryptionKey||"",this.deviceContext=W.deviceContext,this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=W.pairingType||"unknown",W=W.deviceInfo)&&(W=JSON.parse(W),this.brand=W.brand||"",this.model=W.model||"",this.year=W.year||
0,this.os=W.os||"",this.osVersion=W.osVersion||"",this.chipset=W.chipset||"",this.clientName=W.clientName?W.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=W.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
VZ.prototype.copy=function(){var W={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&&(W.brand=this.brand);
this.model&&(W.model=this.model);this.year&&(W.year=this.year);this.os&&(W.os=this.os);this.osVersion&&(W.osVersion=this.osVersion);this.chipset&&(W.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(W.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(W.mdxDialServerType=this.mdxDialServerType);W=new VZ(W);W.connected=this.connected;W.remoteControllerUrl=this.remoteControllerUrl;W.localChannelEncryptionKey=this.localChannelEncryptionKey;W.deviceContext=
this.deviceContext;return W};
VZ.prototype.equals=function(W){return W?this.id==W.id:!1};
var XL8=function(W,O){W.capabilities.clear();_.iM(O.split(","),_.A3(_.PQ.contains,muN)).forEach(function(b){W.capabilities.add(b)})},UuD=function(W,O){W.compatibleSenderThemes.clear();
_.iM(O.split(","),_.A3(_.PQ.contains,Y_g)).forEach(function(b){W.compatibleSenderThemes.add(b)})},lw9=function(W,O){W.experiments.clear();
O.split(",").forEach(function(b){W.experiments.add(b)})};var eFB=function(W,O){this.action=W;this.params=O||{}};_.Wk(h_k,_.R8);_.d=h_k.prototype;_.d.JSC$17477_onTick_=function(){this.JSC$17475_interval_=Math.min(3E5,this.JSC$17475_interval_*2);this.JSC$17477_listener_();this.nextTickTime_&&this.start()};
_.d.start=function(){var W=this.JSC$17475_interval_+15E3*Math.random(),O=this.delay_;O.isActive()||O.start(W);this.nextTickTime_=Date.now()+W};
_.d.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.d.isActive=function(){return this.delay_.isActive()};
_.d.reset=function(){this.delay_.stop();this.JSC$17475_interval_=5E3};_.Wk(gI,u81);_.d=gI.prototype;_.d.subscribe=function(W,O,b){return this.pubsub_.subscribe(W,O,b)};
_.d.unsubscribe=function(W,O,b){return this.pubsub_.unsubscribe(W,O,b)};
_.d.unsubscribeByKey=function(W){return this.pubsub_.unsubscribeByKey(W)};
_.d.publish=function(W,O){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.d.dispose=function(){this.JSC$17478_disposed_||(this.JSC$17478_disposed_=!0,_.JU(this.pubsub_),this.disconnect(),_.JU(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17478_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.ZM({})})};
_.d.isDisposed=function(){return this.JSC$17478_disposed_};
_.d.connect=function(W,O,b){var T=this,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return _.SP(m,2),T.useAsyncBrowserChannelHandler_?_.Y(m,T.connectPromise_,2):m.jumpTo(2);_.hx(m);if(T.JSC$17478_disposed_||T.JSC$17478_channel_&&T.JSC$17478_channel_.getState()==2)return m.return();T.sCookie_="";T.reconnectTimer_.stop();T.connectionParams_=W||null;T.connectUi_=O||0;L=T.JSC$17478_pathPrefix_+"/test";h=T.JSC$17478_pathPrefix_+"/bind";Z=new fk(b?b.firstTestResults:null,b?b.secondTestResults:null,
T.enableAsyncTest_);if(a=T.JSC$17478_channel_)a.handler_=null;Z.handler_=T;T.JSC$17478_channel_=Z;if(T.useAsyncBrowserChannelHandler_)return T.connectPromise_=PsR(T).then(function(){return pL2(T,L,h,a,b)}),m.return(T.connectPromise_.then(function(){T.connectPromise_=_.ZM()}));
pL2(T,L,h,a,b);return _.Zh(m,0)})};
var pL2=function(W,O,b,T,L){RFR(W);if(W.JSC$17478_channel_){var h=_.Cv("ID_TOKEN"),Z=W.JSC$17478_channel_.JSC$17430_extraHeaders_||{};h?Z["x-youtube-identity-token"]=h:delete Z["x-youtube-identity-token"];W.JSC$17478_channel_.JSC$17430_extraHeaders_=Z}KQ7(W);T?(T.getState(),W.JSC$17478_channel_.connect(O,b,W.defaultQueryParams_,T.sid_,T.JSC$17430_lastArrayId_)):L?W.JSC$17478_channel_.connect(O,b,W.defaultQueryParams_,L.sessionId,L.arrayId):W.JSC$17478_channel_.connect(O,b,W.defaultQueryParams_)};
gI.prototype.disconnect=function(W){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.ZM())}finally{this.disconnectUi_=W||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),RFR(this),this.JSC$17478_channel_&&(this.JSC$17478_channel_.getState()==3&&HcU(this.JSC$17478_channel_),this.JSC$17478_channel_.disconnect()),this.disconnectUi_=0}};
gI.prototype.sendMessage=function(W,O){var b=this,T;return _.I(function(L){switch(L.nextAddress){case 1:_.SP(L,2);if(!b.useAsyncBrowserChannelHandler_){L.jumpTo(2);break}return _.Y(L,b.connectPromise_,2);case 2:_.hx(L);if(b.JSC$17478_disposed_)return L.return();T={_sc:W};O&&_.PQ.extend(T,O);if(b.reconnectTimer_.isActive()||(b.JSC$17478_channel_?b.JSC$17478_channel_.getState():0)==2){b.JSC$17478_pendingMessages_.push(T);L.jumpTo(6);break}if(!b.isChannelOpened()){L.jumpTo(6);break}_.SP(L,8);if(!b.useAsyncBrowserChannelHandler_||
v2N(b,W)){L.jumpTo(8);break}return _.Y(L,PsR(b),8);case 8:_.hx(L,0,0,1);b.isChannelOpened()&&(v2N(b,W)||KQ7(b),RFR(b),GMU(b.JSC$17478_channel_,T));_.Zh(L,6,1);break;case 6:_.Zh(L,0)}})};
var v2N=function(W,O){return W.enableMdxAuthForConnectionOnly_?!0:W.disableMdxAuthForAdMessages_?Object.values(E2B).includes(O):W.disableMdxAuthForNonPlaybackMessages_?!Object.values(wLB).includes(O):W.disableMdxAuthForShortsMessages_?Object.values(Au8).includes(O):!1};
gI.prototype.JSC$17437_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17478_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)g22(this);else{var W=this.JSC$17478_pendingMessages_;this.JSC$17478_pendingMessages_=[];var O=W.length;KQ7(this);o22(this,W,O);QzP(this)}else QzP(this)};
var g22=function(W){var O,b;_.I(function(T){if(T.nextAddress==1)return _.SP(T,2),_.Y(T,PsR(W),2);_.hx(T);O=W.JSC$17478_pendingMessages_;W.JSC$17478_pendingMessages_=[];b=O.length;o22(W,O,b);QzP(W);return _.Zh(T,0)})},o22=function(W,O,b){for(var T=0;T<b;++T)GMU(W.JSC$17478_channel_,O[T]);
QzP(W)},QzP=function(W){W.publish("handlerOpened");
W.JSC$17478_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.d=gI.prototype;_.d.JSC$17437_channelError=function(W){var O=W==2&&this.JSC$17478_channel_.JSC$17430_lastStatusCode_==401;W==4||O||this.reconnectTimer_.start();this.publish("handlerError",W,O);O=Object.keys(rRg).find(function(b){return rRg[b]===W});
this.JSC$17478_channelErrorCounter.increment("BROWSER_CHANNEL",O!=null?O:"UNKNOWN")};
_.d.JSC$17437_channelClosed=function(W,O){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(O)for(var b=O.length,T=0;T<b;++T){var L=O[T].map;L&&this.JSC$17478_pendingMessages_.push(L)}this.JSC$17478_channelClosedCounter.increment("BROWSER_CHANNEL");W&&this.pendingMapsOnClosedCounter.JSC$7933_streamzService.JSC$7791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",W.length);O&&this.undeliveredMapsOnClosedCounter.JSC$7936_streamzService.JSC$7791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
O.length)};
_.d.JSC$17437_channelSuccess=function(W,O){O!=null&&W!=null&&this.channelMessageSentCounter.increment()};
_.d.JSC$17437_getAdditionalParams=function(){var W={v:2};this.sCookie_&&(W.gsessionid=this.sCookie_);this.connectUi_!=0&&(W.ui=""+this.connectUi_);this.disconnectUi_!=0&&(W.ui=""+this.disconnectUi_);this.connectionParams_&&_.PQ.extend(W,this.connectionParams_);return W};
_.d.JSC$17437_channelHandleArray=function(W){W[0]=="S"?this.sCookie_=W[1]:W[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17478_channel_.disconnect()):this.publish("handlerMessage",new eFB(W[0],W[1]));this.JSC$17478_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.d.isChannelOpened=function(){return!!this.JSC$17478_channel_&&this.JSC$17478_channel_.getState()==3};
var RFR=function(W){if(W.JSC$17478_channel_){var O=W.JSC$17478_getXsrfToken_(),b=W.JSC$17478_channel_.JSC$17430_extraHeaders_||{};O?b["x-youtube-lounge-xsrf-token"]=O:delete b["x-youtube-lounge-xsrf-token"];W.JSC$17478_channel_.JSC$17430_extraHeaders_=b}},PsR=function(W){if(W.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.ZM();
if(!W.enableCachedUpdateAuthorizationHeader_)return ki5(W);W.updateAuthorizationHeaderPromise_===null&&(W.updateAuthorizationHeaderPromise_=ki5(W));return W.updateAuthorizationHeaderPromise_},ki5=function(W){return _.UR(W.getAuthorizationHeader_().then(function(O){sz8(W,O)}).thenCatch(function(){}),function(){W.updateAuthorizationHeaderPromise_=null})},sz8=function(W,O){if(W.JSC$17478_channel_){var b=W.JSC$17478_channel_.JSC$17430_extraHeaders_||{};
O&&Object.keys(O).length>0?b=Object.assign({},b,O):delete b.Authorization;W.JSC$17478_channel_.JSC$17430_extraHeaders_=b}},KQ7=function(W){W.getAuthorizationHeaderSync_&&!W.useAsyncBrowserChannelHandler_&&sz8(W,W.getAuthorizationHeaderSync_())};
_.d=gI.prototype;_.d.setLoungeToken=function(W){(this.defaultQueryParams_.loungeIdToken=W)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17478_channel_){var O=this.JSC$17478_channel_.JSC$17430_extraHeaders_||{};W?O["X-YouTube-LoungeId-Token"]=W:delete O["X-YouTube-LoungeId-Token"];this.JSC$17478_channel_.JSC$17430_extraHeaders_=O}};
_.d.getDeviceId=function(){return this.defaultQueryParams_.id};
_.d.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var W=this.reconnectTimer_;W.delay_.fire();W.start()};
_.d.safeReconnect_=function(){var W=this.JSC$17478_channel_,O=0;W.JSC$17430_backChannelRequest_&&O++;W.forwardChannelRequest_&&O++;O==0&&this.connect(this.connectionParams_,this.connectUi_)};var De=function(W,O){var b=W.basePath;W.supportCors&&(b=W.scheme+"://"+W.domain+W.port+W.basePath);return _.uW(b+O,{})};
oX.prototype.sendRequest=function(W,O,b,T,L,h,Z){W={format:h?"RAW":"JSON",method:W,context:this,timeout:5E3,withCredentials:!!Z,onSuccess:_.A3(this.JSC$17483_onSuccess_,T,!h),onError:_.A3(this.onError_,L),onTimeout:_.A3(this.JSC$17483_onTimeout_,L)};b&&(W.postParams=b,W.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.Yv(O,W)};
oX.prototype.JSC$17483_onSuccess_=function(W,O,b,T){O?W(T):W({text:b.responseText})};
oX.prototype.onError_=function(W,O){W(Error("Bk`"+O.status))};
oX.prototype.JSC$17483_onTimeout_=function(W){W(Error("Ck"))};var ke=function(W,O){return!!O&&(W.id==O||W.uuid==O)},BcP=function(W){return{name:W.name,
screenId:W.id,loungeToken:W.token,dialId:W.uuid,screenIdType:W.idType}},ruZ=function(W){return new QD(W)},DuD=function(W){return Array.isArray(W)?_.RG(W,ruZ):[]},ACB=function(W){if(!W)return"null";
var O=W.token?".."+W.token.slice(-6):"-",b=W.uuid?".."+W.uuid.slice(-6):"-";return'{name:"'+W.name+'",id:'+W.id.substr(0,6)+"..,token:"+(O+",uuid:"+b+",idType:"+W.idType+"}")},V32=function(W){return Array.isArray(W)?"["+_.RG(W,ACB).join(",")+"]":"null"};var KAZ="",rI=null;var Dyg=function(W,O){_.ER.call(this);var b=this;this.handler=W();this.handler.subscribe("handlerOpened",this.JSC$17490_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(T,L){b.onError(L)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=O};
_.R(Dyg,_.ER);_.d=Dyg.prototype;_.d.connect=function(W,O,b){this.handler.connect(W,O,b)};
_.d.disconnect=function(W){this.handler.disconnect(W)};
_.d.reconnect=function(){this.handler.reconnect()};
_.d.getDeviceId=function(){return this.handler.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.d.JSC$17490_onOpened=function(){this.dispatchEvent("channelOpened");var W=this.handler,O=this.currentScreenId;_.ju("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!W.JSC$17478_channel_.useChunked_,sessionId:W.JSC$17478_channel_.sid_,arrayId:W.JSC$17478_channel_.JSC$17430_lastArrayId_});_.ju("yt-remote-session-screen-id",O);W=Uy1();O=lF2();_.Vh(W,O)||W.push(O);R_R(W);pBk()};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(W){this.dispatchEvent(new Iwk(W))};
_.d.onError=function(W){this.dispatchEvent(new aw8(W?1:0))};
_.d.sendMessage=function(W,O){this.handler.sendMessage(W,O)};
_.d.setLoungeToken=function(W){this.handler.setLoungeToken(W)};
_.d.dispose=function(){this.handler.dispose()};var rq9=function(W,O,b){var T=this;b=b===void 0?function(){return""}:b;
var L=L===void 0?new LcU:L;var h=h===void 0?new _.wO:h;this.pathPrefix=W;this.defaultQueryParams=O;this.getXsrfToken=b;this.JSC$17493_pubsub=h;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new h_k(function(){var Z;((Z=T.channel)==null?void 0:xVg((new SY5(Z,Z.JSC$17401_channel_)).JSC$17411_channel_.forwardChannelRequestPool_))===0&&T.connect(T.connectionParams,T.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17493_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17493_channelOpenedCounter=new S05;this.JSC$17493_channelClosedCounter=new ZP2;this.JSC$17493_channelMessageReceivedCounter=new aF1;this.JSC$17493_channelErrorCounter=new myR};
rq9.prototype.connect=function(W,O){W=W===void 0?{}:W;O=O===void 0?0:O;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=W,this.connectUi=O,xuZ(this),(W=_.Cv("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=W: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 rJ(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,zFg(this))};
var zFg=function(W){_.Rx(W.channel,"w",function(){W.channelState=3;W.reconnectTimer.reset();W.connectionParams=null;W.connectUi=0;for(var O=_.S(W.nonAckedMessagesOnChannelClosed),b=O.next();!b.done;b=O.next())b=b.value,W.channel&&W.channel.send(b);W.nonAckedMessagesOnChannelClosed=[];W.publish("webChannelOpened");W.JSC$17493_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Rx(W.channel,"x",function(){W.channelState=0;W.reconnectTimer.isActive()||W.publish("webChannelClosed");var O,b=(O=W.channel)==null?void 0:Zcg(new SY5(O,O.JSC$17401_channel_));b&&(W.nonAckedMessagesOnChannelClosed=[].concat(_.PG(b)));W.JSC$17493_channelClosedCounter.increment("WEB_CHANNEL")});
_.Rx(W.channel,"z",function(O){var b=O.data;b[0]==="gracefulReconnect"?(W.reconnectTimer.start(),W.channel&&W.channel.close()):W.publish("webChannelMessage",new eFB(b[0],b[1]));W.lastStatusCode=O.statusCode;W.JSC$17493_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Rx(W.channel,"y",function(){W.lastStatusCode===401||W.reconnectTimer.start();W.publish("webChannelError");W.JSC$17493_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.d=rq9.prototype;_.d.disconnect=function(W){this.disconnectUi=W===void 0?0:W;this.reconnectTimer.stop();xuZ(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.d.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.d.reconnect=function(){var W=this.reconnectTimer;W.delay_.fire();W.start()};
_.d.sendMessage=function(W,O){this.channel&&(xuZ(this),W=Object.assign({},{_sc:W},O),this.channel.send(W))};
_.d.setLoungeToken=function(W){W||this.reconnectTimer.stop();W?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=W:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var xuZ=function(W){var O=W.getXsrfToken();O?W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=O:delete W.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.d=rq9.prototype;_.d.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.d.publish=function(W){return this.JSC$17493_pubsub.publish.apply(this.JSC$17493_pubsub,[W].concat(_.PG(_.PD.apply(1,arguments))))};
_.d.subscribe=function(W,O,b){return this.JSC$17493_pubsub.subscribe(W,O,b)};
_.d.unsubscribe=function(W,O,b){return this.JSC$17493_pubsub.unsubscribe(W,O,b)};
_.d.unsubscribeByKey=function(W){return this.JSC$17493_pubsub.unsubscribeByKey(W)};
_.d.dispose=function(){this.JSC$17493_disposed||(this.JSC$17493_disposed=!0,_.JU(this.JSC$17493_pubsub),this.disconnect(),_.JU(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.d.isDisposed=function(){return this.JSC$17493_disposed};var B3k=function(W){_.ER.call(this);this.webChannelService=W();this.webChannelService.subscribe("webChannelOpened",this.JSC$17501_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.R(B3k,_.ER);_.d=B3k.prototype;_.d.connect=function(W,O){this.webChannelService.connect(W,O)};
_.d.disconnect=function(W){this.webChannelService.disconnect(W)};
_.d.reconnect=function(){this.webChannelService.reconnect()};
_.d.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.d.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.d.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.d.JSC$17501_onOpened=function(){this.dispatchEvent("channelOpened")};
_.d.onClosed=function(){this.dispatchEvent("channelClosed")};
_.d.onMessage=function(W){this.dispatchEvent(new Iwk(W))};
_.d.onError=function(){this.dispatchEvent(new aw8(this.webChannelService.lastStatusCode===401?1:0))};
_.d.sendMessage=function(W,O){this.webChannelService.sendMessage(W,O)};
_.d.setLoungeToken=function(W){this.webChannelService.setLoungeToken(W)};
_.d.dispose=function(){this.webChannelService.dispose()};var $y8=Date.now(),xe=null,HP1=Array(50),qU=-1,t3N=!1;_.Wk(n3,_.Jr);n3.prototype.getScreens=function(){return this.screens};
n3.prototype.contains=function(W){return!!XB5(this.screens,W)};
n3.prototype.get=function(W){return W?sX(this.screens,W):null};
var CsN=function(W,O){var b=W.get(O.uuid)||W.get(O.id);if(b)return W=b.name,b.id=O.id||b.id,b.name=O.name,b.token=O.token,b.uuid=O.uuid||b.uuid,b.name!=W;W.screens.push(O);return!0},q_7=function(W,O){var b=W.screens.length!=O.length;
W.screens=_.iM(W.screens,function(h){return!!XB5(O,h)});
for(var T=O.length,L=0;L<T;L++)b=CsN(W,O[L])||b;return b},n25=function(W,O){var b=W.screens.length;
W.screens=_.iM(W.screens,function(T){return!(T||O?!T!=!O?0:T.id==O.id:1)});
return W.screens.length<b};
n3.prototype.info=function(W){zS(this.JSC$17502_logName_,W)};var fw2=function(W,O,b,T,L){_.Jr.call(this);this.JSC$17505_http_=W;this.pairingCode_=O;this.deviceId_=b;this.friendlyName_=T;this.enableShortLivedLoungeToken_=L;this.pollIndex_=0;this.JSC$17505_xhr_=null;this.JSC$17505_timer_=NaN};
_.R(fw2,_.Jr);_.d=fw2.prototype;_.d.start=function(){!this.JSC$17505_xhr_&&isNaN(this.JSC$17505_timer_)&&this.poll_()};
_.d.stop=function(){this.JSC$17505_xhr_&&(this.JSC$17505_xhr_.abort(),this.JSC$17505_xhr_=null);isNaN(this.JSC$17505_timer_)||(_.ae(this.JSC$17505_timer_),this.JSC$17505_timer_=NaN)};
_.d.disposeInternal=function(){this.stop();_.Jr.prototype.disposeInternal.call(this)};
_.d.poll_=function(){this.JSC$17505_timer_=NaN;this.JSC$17505_xhr_=_.Yv(De(this.JSC$17505_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.K5)(this.JSC$17507_onSuccess_,this),onError:(0,_.K5)(this.onError_,this),onTimeout:(0,_.K5)(this.JSC$17507_onTimeout_,this)})};
_.d.JSC$17507_onSuccess_=function(W,O){this.JSC$17505_xhr_=null;W=O.screen||{};W.dialId=this.deviceId_;W.name=this.friendlyName_;O=-1;this.enableShortLivedLoungeToken_&&W.shortLivedLoungeToken&&W.shortLivedLoungeToken.value&&W.shortLivedLoungeToken.refreshIntervalMs&&(W.screenIdType="shortLived",W.loungeToken=W.shortLivedLoungeToken.value,O=W.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new QD(W),O)};
_.d.onError_=function(W){this.JSC$17505_xhr_=null;W.status&&W.status==404?this.pollIndex_>=GiR.length?this.publish("pairingFailed",Error("Dk")):(W=GiR[this.pollIndex_],this.JSC$17505_timer_=_.Zp((0,_.K5)(this.poll_,this),W),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+W.status))};
_.d.JSC$17507_onTimeout_=function(){this.JSC$17505_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var GiR=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Wk(GS,n3);_.d=GS.prototype;_.d.start=function(){f3(this)&&this.publish("screenChange");!_.Tz("yt-remote-lounge-token-expiration")&&Hr2(this);_.ae(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.Zp((0,_.K5)(this.start,this),1E4)};
_.d.add=function(W,O){f3(this);CsN(this,W);td2(this,!1);this.publish("screenChange");O(W);W.token||Hr2(this)};
_.d.remove=function(W,O){var b=f3(this);n25(this,W)&&(td2(this,!1),b=!0);O(W);b&&this.publish("screenChange")};
_.d.updateName=function(W,O,b,T){var L=f3(this),h=this.get(W.id);h?(h.name!=O&&(h.name=O,td2(this,!1),L=!0),b(W)):T(Error("Gk"));L&&this.publish("screenChange")};
_.d.disposeInternal=function(){_.ae(this.loungeTokenRefreshTimer_);GS.superClass_.disposeInternal.call(this)};
var Hr2=function(W){if(W.screens.length){var O=_.RG(W.screens,function(T){return T.id}),b=De(W.JSC$17509_http_,"/pairing/get_lounge_token_batch");
W.JSC$17509_http_.sendRequest("POST",b,{screen_ids:O.join(",")},(0,_.K5)(W.handleLoungeTokens_,W),(0,_.K5)(W.handleLoungeTokenError_,W))}};
GS.prototype.handleLoungeTokens_=function(W){f3(this);var O=this.screens.length;W=W&&W.screens||[];for(var b=W.length,T=0;T<b;++T){var L=W[T],h=this.get(L.screenId);h&&(h.token=L.loungeToken,--O)}td2(this,!O);O&&zS(this.JSC$17502_logName_,"Missed "+O+" lounge tokens.")};
GS.prototype.handleLoungeTokenError_=function(W){zS(this.JSC$17502_logName_,"Requesting lounge tokens failed: "+W)};
var f3=function(W){if(_.e("deprecate_pair_servlet_enabled"))return q_7(W,[]);var O=DuD(gFP());O=_.iM(O,function(b){return!b.uuid});
return q_7(W,O)},td2=function(W,O){Q2g(_.RG(W.screens,BcP));
O&&oF9()};var NB=function(W,O){_.Jr.call(this);this.getScreensToCheck_=O;O=(O=_.Tz("yt-remote-online-screen-ids")||"")?O.split(","):[];for(var b={},T=this.getScreensToCheck_(),L=T.length,h=0;h<L;++h){var Z=T[h].id;b[Z]=_.Vh(O,Z)}this.screenIdSet_=b;this.JSC$17512_http_=W;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;$uD("Initialized with "+(0,_.Px)(this.screenIdSet_))};
_.R(NB,_.Jr);NB.prototype.isOnline=function(W){return!!this.screenIdSet_[W]};
NB.prototype.start=function(){var W=parseInt(_.Tz("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.yG()-144E5<W?0:W)?VdU(this):(this.fastCheckEndTime_=_.yG()+3E5,_.ju("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
NB.prototype.isEmpty=function(){return _.PQ.isEmpty(this.screenIdSet_)};
NB.prototype.update=function(){$uD("Updating availability on schedule.");var W=this.getScreensToCheck_(),O=_.PQ.filter(this.screenIdSet_,function(b,T){return b&&!!sX(W,T)},this);
NcR(this,O)};
var Md2=function(W,O,b){var T=De(W.JSC$17512_http_,"/pairing/get_screen_availability");W.JSC$17512_http_.sendRequest("POST",T,{lounge_token:O.token},(0,_.K5)(function(L){L=L.screens||[];for(var h=L.length,Z=0;Z<h;++Z)if(L[Z].loungeToken==O.token){b(L[Z].status=="online");return}b(!1)},W),(0,_.K5)(function(){b(!1)},W))};
NB.prototype.disposeInternal=function(){_.ae(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.Jr.prototype.disposeInternal.call(this)};
var NcR=function(W,O){a:if(_.PQ.getCount(O)!=_.PQ.getCount(W.screenIdSet_))var b=!1;else{b=_.PQ.getKeys(O);for(var T=b.length,L=0;L<T;++L)if(!W.screenIdSet_[b[L]]){b=!1;break a}b=!0}b||($uD("Updated online screens: "+(0,_.Px)(W.screenIdSet_)),W.screenIdSet_=O,W.publish("screenChange"));ur2(W)},VdU=function(W){isNaN(W.refreshTimer_)||_.ae(W.refreshTimer_);
W.refreshTimer_=_.Zp((0,_.K5)(W.requestScreenAvailability_,W),W.fastCheckEndTime_>0&&W.fastCheckEndTime_<_.yG()?2E4:1E4)};
NB.prototype.requestScreenAvailability_=function(){_.ae(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var W=Juk(this);if(_.PQ.getCount(W)){var O=De(this.JSC$17512_http_,"/pairing/get_screen_availability"),b={lounge_token:_.PQ.getKeys(W).join(",")};this.currentRequest_=this.JSC$17512_http_.sendRequest("POST",O,b,(0,_.K5)(this.onScreenAvailability_,this,W),(0,_.K5)(this.onScreenAvailabilityError_,this))}else NcR(this,{}),VdU(this)};
NB.prototype.onScreenAvailability_=function(W,O){this.currentRequest_=null;var b=_.PQ.getKeys(Juk(this));if(_.Ev(b,_.PQ.getKeys(W))){O=O.screens||[];b={};for(var T=O.length,L=0;L<T;++L)b[W[O[L].loungeToken]]=O[L].status=="online";NcR(this,b);VdU(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
NB.prototype.onScreenAvailabilityError_=function(W){this.warn_("Screen availability failed: "+W);this.currentRequest_=null;VdU(this)};
var $uD=function(W){zS("OnlineScreenService",W)};
NB.prototype.warn_=function(W){zS("OnlineScreenService",W)};
var Juk=function(W){var O={};_.$X(W.getScreensToCheck_(),function(b){b.token?O[b.token]=b.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return O},ur2=function(W){W=_.PQ.getKeys(_.PQ.filter(W.screenIdSet_,function(O){return O}));
W.sort(_.a7);W.length?_.ju("yt-remote-online-screen-ids",W.join(","),60):_.Lm("yt-remote-online-screen-ids")};_.Wk(HE,n3);_.d=HE.prototype;_.d.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.d.add=function(W,O,b){this.localScreenService_.add(W,O,b)};
_.d.remove=function(W,O,b){this.localScreenService_.remove(W,O,b);this.onlineScreenService_.update()};
_.d.updateName=function(W,O,b,T){this.localScreenService_.contains(W)?this.localScreenService_.updateName(W,O,b,T):(W="Updating name of unknown screen: "+W.name,zS(this.JSC$17502_logName_,W),T(Error(W)))};
_.d.getScreens=function(W){return W?this.screens:xCk(this.screens,_.iM(this.automaticScreens_,function(O){return!this.contains(O)},this))};
_.d.JSC$17517_getOnlineScreens=function(){return _.iM(this.getScreens(!0),function(W){return this.onlineScreenService_.isOnline(W.id)},this)};
var FQ1=function(W,O,b,T,L,h){W.info("getAutomaticScreenByIds "+b+" / "+O);b||(b=W.deviceToScreenId_[O]);var Z=W.getScreens(),a=b?sX(Z,b):null;b&&(W.disableAutomaticScreenCache_||a)||(a=sX(Z,O));if(a){a.uuid=O;var m=MB(W,a);Md2(W.onlineScreenService_,m,function(w){L(w?m:null)})}else b?cuk(W,b,(0,_.K5)(function(w){var A=MB(this,new QD({name:T,
screenId:b,loungeToken:w,dialId:O||""}));Md2(this.onlineScreenService_,A,function(X){L(X?A:null)})},W),h):L(null)};
HE.prototype.JSC$17517_getScreenByPollingPairingCode=function(W,O,b,T,L,h){var Z=this;this.info("getDialScreenByPairingCode "+W+" / "+O);var a=new fw2(this.JSC$17515_http_,W,O,b,T);a.subscribe("pairingComplete",function(m,w){_.JU(a);L(MB(Z,m),w)});
a.subscribe("pairingFailed",function(m){_.JU(a);h(m)});
a.start();return(0,_.K5)(a.stop,a)};
var yug=function(W,O){for(var b=W.screens.length,T=0;T<b;++T)if(W.screens[T].name==O)return W.screens[T];return null};
HE.prototype.JSC$17517_getScreenByPairingCode=function(W,O,b,T){_.Yv(De(this.JSC$17515_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:W},timeout:5E3,onSuccess:(0,_.K5)(function(L,h){L=new QD(h.screen||{});if(!L.name||yug(this,L.name)){a:{h=L.name;for(var Z=2,a=O(h,Z);yug(this,a);){Z++;if(Z>20)break a;a=O(h,Z)}h=a}L.name=h}b(MB(this,L))},this),
onError:(0,_.K5)(function(L){T(Error("Hk`"+L.status))},this),
onTimeout:(0,_.K5)(function(){T(Error("Ik"))},this)})};
var WU9=function(W,O,b){Md2(W.onlineScreenService_,O,b)};
HE.prototype.disposeInternal=function(){_.JU(this.localScreenService_);_.JU(this.onlineScreenService_);HE.superClass_.disposeInternal.call(this)};
var cuk=function(W,O,b,T){W.info("requestLoungeToken_ for "+O);var L={postParams:{screen_ids:O},method:"POST",context:W,onSuccess:function(h,Z){h=Z&&Z.screens||[];h[0]&&h[0].screenId==O?b(h[0].loungeToken):T(Error("Jk"))},
onError:function(){T(Error("Kk"))}};
_.Yv(De(W.JSC$17515_http_,"/pairing/get_lounge_token_batch"),L)},ONB=function(W){W.screens=W.localScreenService_.getScreens();
for(var O=_.PQ.transpose(W.deviceToScreenId_),b=W.screens.length,T=0;T<b;++T){var L=W.screens[T];L.uuid=O[L.id]||""}W.info("Updated manual screens: "+V32(W.screens))};
HE.prototype.handleScreenChange_=function(){ONB(this);this.publish("screenChange");this.onlineScreenService_.update()};
var N3N=function(W){iNk(W);W.localScreenService_=new GS(W.JSC$17515_http_);W.localScreenService_.subscribe("screenChange",(0,_.K5)(W.handleScreenChange_,W));ONB(W);W.disableAutomaticScreenCache_||(W.automaticScreens_=DuD(_.Tz("yt-remote-automatic-screen-cache")||[]));iNk(W);W.info("Initializing automatic screens: "+V32(W.automaticScreens_));W.onlineScreenService_=new NB(W.JSC$17515_http_,(0,_.K5)(W.getScreens,W,!0));W.onlineScreenService_.subscribe("screenChange",(0,_.K5)(function(){this.publish("onlineScreenChange")},
W))},MB=function(W,O){var b=W.get(O.id);
b?(b.uuid=O.uuid,O=b):((b=sX(W.automaticScreens_,O.uuid))?(b.id=O.id,b.token=O.token,O=b):W.automaticScreens_.push(O),W.disableAutomaticScreenCache_||bNB(W));iNk(W);W.deviceToScreenId_[O.uuid]=O.id;_.ju("yt-remote-device-id-map",W.deviceToScreenId_,31536E3);return O},bNB=function(W){W=_.iM(W.automaticScreens_,function(O){return O.idType!="shortLived"});
_.ju("yt-remote-automatic-screen-cache",_.RG(W,BcP))},iNk=function(W){W.deviceToScreenId_=_.Tz("yt-remote-device-id-map")||{}};
HE.prototype.dispose=HE.prototype.dispose;_.Wk(tQ,_.Jr);var u2=function(W,O){W.screen_=O;W.publish("sessionScreen",W.screen_)},jPN=function(W,O){W.screen_&&(W.screen_.token=O,MB(W.JSC$17519_screenService_,W.screen_));
W.publish("sessionScreen",W.screen_)};
tQ.prototype.onSessionStopped=function(W){this.isDisposed()||(W&&(Jm(this,""+W),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
tQ.prototype.info=function(W){zS(this.JSC$17519_logName_,W)};
var Jm=function(W,O){zS(W.JSC$17519_logName_,O)};
tQ.prototype.JSC$17521_getCastSession=function(){return null};
tQ.prototype.setDisplayStatus=function(W){var O=this.receiver_;W?(O.displayStatus=new chrome.cast.ReceiverDisplayStatus(W,[]),O.displayStatus.showStop=!0):O.displayStatus=null;chrome.cast.setReceiverDisplayStatus(O,(0,_.K5)(function(){this.info("Updated receiver status for "+O.friendlyName+": "+W)},this),(0,_.K5)(function(){Jm(this,"Failed to update receiver status for: "+O.friendlyName)},this))};
tQ.prototype.disposeInternal=function(){this.setDisplayStatus("");tQ.superClass_.disposeInternal.call(this)};var cF=function(W,O,b){tQ.call(this,W,O,"CastSession");var T=this;this.config_=b;this.JSC$17524_session_=null;this.JSC$17524_boundSessionUpdate_=(0,_.K5)(this.JSC$17526_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.K5)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.Zp(function(){T52(T,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17524_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17524_isInitLoungeToken_=!1;this.JSC$17524_lastLoungeTokenRefreshError_="unknown"};
_.R(cF,tQ);_.d=cF.prototype;
_.d.setCastSession=function(W){if(this.JSC$17524_session_){if(this.JSC$17524_session_==W)return;Jm(this,"Overriding cast session with new session object");LUg(this);this.JSC$17524_isInitLoungeToken_=!1;this.JSC$17524_lastLoungeTokenRefreshError_="unknown";this.JSC$17524_session_.removeUpdateListener(this.JSC$17524_boundSessionUpdate_);this.JSC$17524_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17524_session_=W;this.JSC$17524_session_.addUpdateListener(this.JSC$17524_boundSessionUpdate_);this.JSC$17524_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);dND(this,"getMdxSessionStatus")};
_.d.launchWithParams=function(W){this.info("launchWithParams no-op for Cast: "+(0,_.Px)(W))};
_.d.stop=function(){if(this.JSC$17524_session_)this.JSC$17524_session_.stop((0,_.K5)(function(){this.onSessionStopped()},this),(0,_.K5)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.d.setDisplayStatus=function(){};
_.d.disposeInternal=function(){this.info("disposeInternal");LUg(this);this.JSC$17524_session_&&(this.JSC$17524_session_.removeUpdateListener(this.JSC$17524_boundSessionUpdate_),this.JSC$17524_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17524_session_=null;tQ.prototype.disposeInternal.call(this)};
var S21=function(W,O){_.ae(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0;O==0?hUZ(W):W.getLoungeTokenTimeoutKey_=_.Zp(function(){hUZ(W)},O)},hUZ=function(W){dND(W,"getLoungeToken");
_.ae(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=_.Zp(function(){ZNB(W,null)},3E4)},dND=function(W,O){W.info("sendYoutubeMessage_: "+O+" "+(0,_.Px)(void 0));
var b={};b.type=O;W.JSC$17524_session_?W.JSC$17524_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",b,function(){},(0,_.K5)(function(){Jm(this,"Failed to send message: "+O+".")},W)):Jm(W,"Sending yt message without session: "+(0,_.Px)(b))};
cF.prototype.onYoutubeMessage_=function(W,O){if(!this.isDisposed())if(O)if(O=(0,_.gl)(O),_.LH(O))switch(W=""+O.type,O=O.data||{},this.info("onYoutubeMessage_: "+W+" "+(0,_.Px)(O)),W){case "mdxSessionStatus":T52(this,O);break;case "loungeToken":ZNB(this,O);break;default:Jm(this,"Unknown youtube message: "+W)}else Jm(this,"Unable to parse message.");else Jm(this,"No data in message.")};
var ImZ=function(W,O){if(O)W.info("onConnectedScreenId_: Received screenId: "+O),W.screen_&&W.screen_.id==O||W.getScreen_(O,function(b){u2(W,b)},function(){return W.onSessionStopped()},5);
else W.onSessionStopped(Error("Nk"))},mNg=function(W,O,b){W.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(O));
var T=new QD(O);amg(W,T,function(L){L?(W.JSC$17524_isInitLoungeToken_=!0,MB(W.JSC$17519_screenService_,T),u2(W,T),W.JSC$17524_lastLoungeTokenRefreshError_="unknown",S21(W,b)):(_.nv(Error("Ok`"+JSON.stringify(O))),W.onSessionStopped())},5)},T52=function(W,O){_.ae(W.sessionStatusTimeoutKey_);
W.sessionStatusTimeoutKey_=0;if(O)W.config_.enableCastLoungeToken&&O.loungeToken?O.deviceId?W.screen_&&W.screen_.uuid==O.deviceId||(O.loungeTokenRefreshIntervalMs?mNg(W,{name:W.receiver_.friendlyName,screenId:O.screenId,loungeToken:O.loungeToken,dialId:O.deviceId,screenIdType:"shortLived"},O.loungeTokenRefreshIntervalMs):(_.nv(Error("Qk`"+JSON.stringify(O))),ImZ(W,O.screenId))):(_.nv(Error("Pk`"+JSON.stringify(O))),ImZ(W,O.screenId)):ImZ(W,O.screenId);else W.onSessionStopped(Error("Nk"))},ZNB=function(W,
O){_.ae(W.onLoungeTokenTimeoutKey_);
W.onLoungeTokenTimeoutKey_=0;var b=null;if(O)if(O.loungeToken){var T;((T=W.screen_)==null?void 0:T.token)==O.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";else b="noLoungeTokenResponse";b?(W.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(O)+", error: "+b)),W.JSC$17524_lastLoungeTokenRefreshError_=b,S21(W,3E4)):(jPN(W,O.loungeToken),W.JSC$17524_isInitLoungeToken_=!1,W.JSC$17524_lastLoungeTokenRefreshError_="unknown",S21(W,O.loungeTokenRefreshIntervalMs))};
cF.prototype.getScreen_=function(W,O,b,T){_.ae(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;FQ1(this.JSC$17519_screenService_,this.receiver_.label,W,this.receiver_.friendlyName,(0,_.K5)(function(L){L?O(L):T>=0?(Jm(this,"Screen "+W+" appears to be offline. "+T+" retries left."),this.getScreenTimeoutKey_=_.Zp((0,_.K5)(this.getScreen_,this,W,O,b,T-1),300)):b(Error("Rk"))},this),b)};
var amg=function(W,O,b,T){_.ae(W.JSC$17524_checkScreenAvailabilityTimeoutKey_);W.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;WU9(W.JSC$17519_screenService_,O,function(L){L||T<0?b(L):W.JSC$17524_checkScreenAvailabilityTimeoutKey_=_.Zp(function(){amg(W,O,b,T-1)},300)})};
cF.prototype.JSC$17521_getCastSession=function(){return this.JSC$17524_session_};
cF.prototype.JSC$17526_onSessionUpdate_=function(W){this.isDisposed()||W||(Jm(this,"Cast session died."),this.onSessionStopped())};
var LUg=function(W){_.ae(W.getScreenTimeoutKey_);W.getScreenTimeoutKey_=0;_.ae(W.JSC$17524_checkScreenAvailabilityTimeoutKey_);W.JSC$17524_checkScreenAvailabilityTimeoutKey_=0;_.ae(W.sessionStatusTimeoutKey_);W.sessionStatusTimeoutKey_=0;_.ae(W.onLoungeTokenTimeoutKey_);W.onLoungeTokenTimeoutKey_=0;_.ae(W.getLoungeTokenTimeoutKey_);W.getLoungeTokenTimeoutKey_=0};var Fw=function(W,O,b,T){tQ.call(this,W,O,"DialSession");this.config_=T;this.JSC$17528_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17528_theme_=b;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17528_deferredLaunchDeadlineTimer_=NaN;this.JSC$17528_boundSessionUpdate_=(0,_.K5)(this.JSC$17530_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17528_isInitLoungeToken_=!1;this.JSC$17528_lastLoungeTokenRefreshError_="unknown"};
_.R(Fw,tQ);Fw.prototype.setCastSession=function(W){this.JSC$17528_session_=W;this.JSC$17528_session_.addUpdateListener(this.JSC$17528_boundSessionUpdate_)};
Fw.prototype.launchWithParams=function(W){this.connectData_=W;this.deferredLaunch_()};
Fw.prototype.stop=function(){Y28(this);if(this.JSC$17528_session_)this.JSC$17528_session_.stop((0,_.K5)(this.onSessionStopped,this,null),(0,_.K5)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Fw.prototype.disposeInternal=function(){Y28(this);this.JSC$17528_session_&&this.JSC$17528_session_.removeUpdateListener(this.JSC$17528_boundSessionUpdate_);this.JSC$17528_session_=null;tQ.prototype.disposeInternal.call(this)};
var EV1=function(W){var O;return!!(W.config_.enableDialLoungeToken&&((O=W.JSC$17528_session_)==null?0:O.getDialAppInfo))},wXR=function(W){W.cancelPolling_=W.JSC$17519_screenService_.JSC$17517_getScreenByPollingPairingCode(W.reversePairingCode_,W.receiver_.label,W.receiver_.friendlyName,EV1(W),function(O,b){W.cancelPolling_=function(){};
W.JSC$17528_isInitLoungeToken_=!0;u2(W,O);O.idType=="shortLived"&&b>0&&yZ(W,b)},function(O){W.cancelPolling_=function(){};
W.onSessionStopped(O)})};
Fw.prototype.JSC$17530_onSessionUpdate_=function(W){this.isDisposed()||W||(Jm(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var A62=function(W){var O={};O.pairingCode=W.reversePairingCode_;O.theme=W.JSC$17528_theme_;s25()&&(O.env_useStageMdx=1);return _.ET(O)},XXD=function(W){return new Promise(function(O){W.reversePairingCode_=wBk();
if(W.connectData_){var b=new chrome.cast.DialLaunchResponse(!0,A62(W));O(b);wXR(W)}else W.deferredLaunch_=function(){_.ae(W.JSC$17528_deferredLaunchDeadlineTimer_);W.deferredLaunch_=function(){};
W.JSC$17528_deferredLaunchDeadlineTimer_=NaN;var T=new chrome.cast.DialLaunchResponse(!0,A62(W));O(T);wXR(W)},W.JSC$17528_deferredLaunchDeadlineTimer_=_.Zp(function(){W.deferredLaunch_()},100)})},lmB=function(W,O,b){W.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(O));
var T=new QD(O);return(new Promise(function(L){UND(W,T,function(h){h?(W.JSC$17528_isInitLoungeToken_=!0,MB(W.JSC$17519_screenService_,T),u2(W,T),yZ(W,b)):_.nv(Error("Tk`"+JSON.stringify(O)));L(h)},5)})).then(function(L){return L?new chrome.cast.DialLaunchResponse(!1):XXD(W)})},eUB=function(W,O){var b=W.launchData_.receiver.label,T=W.receiver_.friendlyName;
return(new Promise(function(L){FQ1(W.JSC$17519_screenService_,b,O,T,function(h){h&&h.token&&u2(W,h);L(h)},function(h){Jm(W,"Failed to get DIAL screen: "+h);
L(null)})})).then(function(L){return L&&L.token?new chrome.cast.DialLaunchResponse(!1):XXD(W)})},UND=function(W,O,b,T){_.ae(W.JSC$17528_checkScreenAvailabilityTimeoutKey_);
W.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;WU9(W.JSC$17519_screenService_,O,function(L){L||T<0?b(L):W.JSC$17528_checkScreenAvailabilityTimeoutKey_=_.Zp(function(){UND(W,O,b,T-1)},300)})},yZ=function(W,O){W.info("getDialAppInfoWithTimeout_ "+O);
EV1(W)&&(_.ae(W.getDialAppInfoTimeoutKey_),W.getDialAppInfoTimeoutKey_=0,O==0?Prg(W):W.getDialAppInfoTimeoutKey_=_.Zp(function(){Prg(W)},O))},Prg=function(W){EV1(W)&&W.JSC$17528_session_.getDialAppInfo(function(O){W.info("getDialAppInfo dialLaunchData: "+JSON.stringify(O));
O=O.extraData||{};var b=null;if(O.loungeToken){var T;((T=W.screen_)==null?void 0:T.token)==O.loungeToken&&(b="staleLoungeToken")}else b="missingLoungeToken";b?(W.JSC$17528_lastLoungeTokenRefreshError_=b,yZ(W,3E4)):(W.JSC$17528_isInitLoungeToken_=!1,W.JSC$17528_lastLoungeTokenRefreshError_="unknown",jPN(W,O.loungeToken),yZ(W,O.loungeTokenRefreshIntervalMs))},function(O){W.info("getDialAppInfo error: "+O);
W.JSC$17528_lastLoungeTokenRefreshError_="noLoungeTokenResponse";yZ(W,3E4)})},Y28=function(W){_.ae(W.JSC$17528_checkScreenAvailabilityTimeoutKey_);
W.JSC$17528_checkScreenAvailabilityTimeoutKey_=0;_.ae(W.getDialAppInfoTimeoutKey_);W.getDialAppInfoTimeoutKey_=0;W.cancelPolling_();W.cancelPolling_=function(){};
_.ae(W.JSC$17528_deferredLaunchDeadlineTimer_)};var W4=function(W,O){tQ.call(this,W,O,"ManualSession");this.JSC$17532_deferredLaunchDeadlineTimer_=_.Zp((0,_.K5)(this.launchWithParams,this,null),150)};
_.R(W4,tQ);W4.prototype.stop=function(){this.onSessionStopped()};
W4.prototype.setCastSession=function(){};
W4.prototype.launchWithParams=function(){_.ae(this.JSC$17532_deferredLaunchDeadlineTimer_);this.JSC$17532_deferredLaunchDeadlineTimer_=NaN;var W=sX(this.JSC$17519_screenService_.getScreens(),this.receiver_.label);if(W)u2(this,W);else this.onSessionStopped(Error("Uk"))};
W4.prototype.disposeInternal=function(){_.ae(this.JSC$17532_deferredLaunchDeadlineTimer_);this.JSC$17532_deferredLaunchDeadlineTimer_=NaN;tQ.prototype.disposeInternal.call(this)};var MU=function(W,O){_.Jr.call(this);this.config_=O;this.JSC$17535_screenService_=W;this.JSC$17535_appId_=O.appId||"233637DE";this.JSC$17535_theme_=O.theme||"cl";this.disableDial_=O.disableCastApi||!1;this.forceMirroring_=O.forceMirroring||!1;this.JSC$17535_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.K5)(this.onReceiverAction_,this)};
_.R(MU,_.Jr);
MU.prototype.init=function(W,O){chrome.cast.timeout.requestSession=3E4;var b=new chrome.cast.SessionRequest(this.JSC$17535_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.e("desktop_enable_cast_connect")&&(b.androidReceiverCompatible=!0);this.disableDial_||(b.dialRequest=new chrome.cast.DialRequest("YouTube"));var T=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;W=W||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var L=(0,_.K5)(this.onReceiverUpdated_,
this);b=new chrome.cast.ApiConfig(b,(0,_.K5)(this.onSessionEstablished_,this),L,T,W);b.customDialLaunchCallback=(0,_.K5)(this.onDialLaunchRequested_,this);chrome.cast.initialize(b,(0,_.K5)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),nF8(),this.JSC$17535_screenService_.subscribe("onlineScreenChange",(0,_.K5)(this.JSC$17537_onScreenChange_,this)),this.customReceivers_=pXg(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.K5)(function(h){this.warn_("Failed to set initial custom receivers: "+(0,_.Px)(h))},this)),this.publish("yt-remote-cast2-availability-change",Ob(this)),O(!0))},this),(0,_.K5)(function(h){this.warn_("Failed to initialize API: "+(0,_.Px)(h));
O(!1)},this))};
MU.prototype.setConnectedScreenStatus=function(W,O){ib("Setting connected screen ID: "+W+" -> "+O);if(this.JSC$17535_session_){var b=this.JSC$17535_session_.screen_;if(!W||b&&b.id!=W)ib("Unsetting old screen status: "+this.JSC$17535_session_.receiver_.friendlyName),bb(this,null)}if(W&&O){if(!this.JSC$17535_session_){W=sX(this.JSC$17535_screenService_.getScreens(),W);if(!W){ib("setConnectedScreenStatus: Unknown screen.");return}if(W.idType=="shortLived"){ib("setConnectedScreenStatus: Screen with id type to be short lived.");
return}b=RUg(this,W);b||(ib("setConnectedScreenStatus: Connected receiver not custom..."),b=new chrome.cast.Receiver(W.uuid?W.uuid:W.id,W.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(b),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.K5)(function(T){this.warn_("Failed to set initial custom receivers: "+(0,_.Px)(T))},this)));
ib("setConnectedScreenStatus: new active receiver: "+b.friendlyName);bb(this,new W4(this.JSC$17535_screenService_,b),!0)}this.JSC$17535_session_.setDisplayStatus(O)}else ib("setConnectedScreenStatus: no screen.")};
var RUg=function(W,O){return O?_.qP(W.customReceivers_,function(b){return ke(O,b.label)},W):null};
MU.prototype.setLaunchParams=function(W){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17535_session_?this.JSC$17535_session_.launchWithParams(W):this.warn_("Setting connection data without a session")};
MU.prototype.JSC$17537_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17535_session_?(this.JSC$17535_session_.stop(),bb(this,null)):ib("Stopping non-existing session")};
MU.prototype.requestSession=function(){chrome.cast.requestSession((0,_.K5)(this.onSessionEstablished_,this),(0,_.K5)(this.onSessionRequestFailed_,this))};
MU.prototype.disposeInternal=function(){this.JSC$17535_screenService_.unsubscribe("onlineScreenChange",(0,_.K5)(this.JSC$17537_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.c2(_.GT("yt.mdx.remote.debug.handlers_")||[],z_U);_.JU(this.JSC$17535_session_);_.Jr.prototype.disposeInternal.call(this)};
var ib=function(W){zS("Controller",W)};
MU.prototype.warn_=function(W){zS("Controller",W)};
var z_U=function(W){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(W)},Ob=function(W){return W.hasCastReceiver_||!!W.customReceivers_.length||!!W.JSC$17535_session_},bb=function(W,O,b){O!=W.JSC$17535_session_&&(_.JU(W.JSC$17535_session_),(W.JSC$17535_session_=O)?(b?W.publish("yt-remote-cast2-receiver-resumed",O.receiver_):W.publish("yt-remote-cast2-receiver-selected",O.receiver_),O.subscribe("sessionScreen",(0,_.K5)(W.onSessionScreen_,W,O)),O.subscribe("sessionFailed",
function(){return KUN(W,O)}),O.screen_?W.publish("yt-remote-cast2-session-change",O.screen_):b&&W.JSC$17535_session_.launchWithParams(null)):W.publish("yt-remote-cast2-session-change",null))},KUN=function(W,O){W.JSC$17535_session_==O&&W.publish("yt-remote-cast2-session-failed")};
_.d=MU.prototype;_.d.onSessionScreen_=function(W,O){this.JSC$17535_session_==W&&(O||bb(this,null),this.publish("yt-remote-cast2-session-change",O))};
_.d.onReceiverAction_=function(W,O){if(!this.isDisposed())if(W)switch(W.friendlyName=chrome.cast.unescape(W.friendlyName),ib("onReceiverAction_ "+W.label+" / "+W.friendlyName+"-- "+O),O){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17535_session_)if(this.JSC$17535_session_.receiver_.label!=W.label)ib("onReceiverAction_: Stopping active receiver: "+this.JSC$17535_session_.receiver_.friendlyName),this.JSC$17535_session_.stop();else{ib("onReceiverAction_: Casting to active receiver.");this.JSC$17535_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17535_session_.screen_);break}switch(W.receiverType){case chrome.cast.ReceiverType.CUSTOM:bb(this,new W4(this.JSC$17535_screenService_,W));break;case chrome.cast.ReceiverType.DIAL:bb(this,new Fw(this.JSC$17535_screenService_,W,this.JSC$17535_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:bb(this,new cF(this.JSC$17535_screenService_,W,this.config_));break;default:this.warn_("Unknown receiver type: "+W.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17535_session_&&
this.JSC$17535_session_.receiver_.label==W.label?this.JSC$17535_session_.stop():this.warn_("Stopping receiver w/o session: "+W.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.d.onDialLaunchRequested_=function(W){if(this.isDisposed())return Promise.reject(Error("Vk"));var O=W.receiver;O.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+O.friendlyName),O.receiverType=chrome.cast.ReceiverType.DIAL);var b=this.JSC$17535_session_?this.JSC$17535_session_.receiver_:null;if(!b||b.label!=O.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+O.friendlyName),Promise.reject(Error("Wk"));if(b&&b.label==O.label&&b.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17535_session_.screen_)return ib("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17535_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+b.receiverType+'" to "dial" for '+O.friendlyName);bb(this,new Fw(this.JSC$17535_screenService_,O,this.JSC$17535_theme_,this.config_))}O=this.JSC$17535_session_;O.launchData_=W;O.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(W=O.launchData_.extraData||{},b=W.screenId||null,EV1(O)&&W.loungeToken?W.loungeTokenRefreshIntervalMs?W=lmB(O,{name:O.receiver_.friendlyName,screenId:W.screenId,loungeToken:W.loungeToken,dialId:O.launchData_.receiver.label,screenIdType:"shortLived"},W.loungeTokenRefreshIntervalMs):(_.nv(Error("Sk`"+JSON.stringify(W))),W=eUB(O,b)):W=eUB(O,b)):W=XXD(O);return W};
_.d.onSessionEstablished_=function(W){var O=this;if(!this.isDisposed()&&!this.forceMirroring_){ib("New cast session ID: "+W.sessionId);var b=W.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17535_session_)if(b.receiverType==chrome.cast.ReceiverType.CAST)ib("Got resumed cast session before resumed mdx connection."),b.friendlyName=chrome.cast.unescape(b.friendlyName),bb(this,new cF(this.JSC$17535_screenService_,b,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var T=this.JSC$17535_session_.receiver_,L=sX(this.JSC$17535_screenService_.getScreens(),T.label);L&&ke(L,b.label)&&T.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==chrome.cast.ReceiverType.CAST&&(ib("onSessionEstablished_: manual to cast session change "+b.friendlyName),_.JU(this.JSC$17535_session_),this.JSC$17535_session_=new cF(this.JSC$17535_screenService_,b,this.config_),this.JSC$17535_session_.subscribe("sessionScreen",(0,_.K5)(this.onSessionScreen_,this,this.JSC$17535_session_)),
this.JSC$17535_session_.subscribe("sessionFailed",function(){return KUN(O,O.JSC$17535_session_)}),this.JSC$17535_session_.launchWithParams(null));
this.JSC$17535_session_.setCastSession(W)}}};
_.d.JSC$17537_getCastSession=function(){return this.JSC$17535_session_?this.JSC$17535_session_.JSC$17521_getCastSession():null};
_.d.onSessionRequestFailed_=function(W){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Px)(W)),W.code!=chrome.cast.ErrorCode.CANCEL&&bb(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.d.onReceiverUpdated_=function(W){ib("Receiver availability updated: "+W);if(!this.isDisposed()){var O=Ob(this);this.hasCastReceiver_=W==chrome.cast.ReceiverAvailability.AVAILABLE;Ob(this)!=O&&this.publish("yt-remote-cast2-availability-change",Ob(this))}};
var pXg=function(W){var O=W.JSC$17535_screenService_.JSC$17517_getOnlineScreens(),b=W.JSC$17535_session_&&W.JSC$17535_session_.receiver_;W=_.RG(O,function(T){b&&ke(T,b.label)&&(b=null);var L=T.uuid?T.uuid:T.id,h=RUg(this,T);h?(h.label=L,h.friendlyName=T.name):(h=new chrome.cast.Receiver(L,T.name),h.receiverType=chrome.cast.ReceiverType.CUSTOM);return h},W);
b&&(b.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(b=new chrome.cast.Receiver(b.label,b.friendlyName),b.receiverType=chrome.cast.ReceiverType.CUSTOM),W.push(b));return W};
MU.prototype.JSC$17537_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=pXg(this),ib("Updating custom receivers: "+(0,_.Px)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.K5)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",Ob(this)))};
MU.prototype.setLaunchParams=MU.prototype.setLaunchParams;MU.prototype.setConnectedScreenStatus=MU.prototype.setConnectedScreenStatus;MU.prototype.stopSession=MU.prototype.JSC$17537_stopSession;MU.prototype.getCastSession=MU.prototype.JSC$17537_getCastSession;MU.prototype.requestSession=MU.prototype.requestSession;MU.prototype.init=MU.prototype.init;MU.prototype.dispose=MU.prototype.dispose;var Zq8=[];var vV7=function(W){W.audioTrackId=null;W.trackData=null;W.playerState=-1;W.hasPrevious=!1;W.hasNext=!1;W.playerTime_=0;W.playerTimeAt_=_.yG();W.seekableStart_=0;W.seekableEnd_=0;W.duration_=0;W.loadedTime=0;W.liveIngestionTime_=NaN;W.isLive_=!1};
_.d=ul.prototype;
_.d.reset=function(W){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;W&&(this.index=W.index,this.listId=W.listId,this.videoId=W.videoId,this.playerState=W.playerState,this.volume=W.volume,this.muted=W.muted,this.audioTrackId=W.audioTrackId,this.trackData=W.trackData,this.hasPrevious=W.hasPrevious,this.hasNext=W.hasNext,this.playerTime_=W.playerTime,this.playerTimeAt_=W.playerTimeAt,this.seekableStart_=W.seekableStart,this.seekableEnd_=W.seekableEnd,this.duration_=W.duration,this.loadedTime=
W.loadedTime,this.liveIngestionTime_=W.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.d.stopPlayer=function(){this.index=-1;this.videoId="";vV7(this)};
_.d.isPlaying=function(){return this.playerState==1};
_.d.isBuffering=function(){return this.playerState==3};
_.d.isAdPlaying=function(){return this.playerState==1081};
var jG=function(W,O){W.playerTime_=O;W.playerTimeAt_=_.yG()},gVD=function(W){switch(W.playerState){case 1:case 1081:return(_.yG()-W.playerTimeAt_)/1E3+W.playerTime_;
case -1E3:return 0}return W.playerTime_};
ul.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.yG()-this.playerTimeAt_)/1E3:0):this.duration_};
var oV7=function(W,O,b){var T=W.videoId;W.videoId=O;W.index=b;O!=T&&vV7(W)},QP8=function(W){var O={};
O.index=W.index;O.listId=W.listId;O.videoId=W.videoId;O.playerState=W.playerState;O.volume=W.volume;O.muted=W.muted;O.audioTrackId=W.audioTrackId;O.trackData=_.PQ.unsafeClone(W.trackData);O.hasPrevious=W.hasPrevious;O.hasNext=W.hasNext;O.playerTime=W.playerTime_;O.playerTimeAt=W.playerTimeAt_;O.seekableStart=W.seekableStart_;O.seekableEnd=W.seekableEnd_;O.duration=W.duration_;O.loadedTime=W.loadedTime;O.liveIngestionTime=W.liveIngestionTime_;return O};
ul.prototype.clone=function(){return new ul(QP8(this))};var Td=function(W,O){_.Jr.call(this);var b=this;this.state_=0;this.connection_=W;this.contextSubscriptions_=[];this.actionQueue_=new dyZ;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.K5)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.K5)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.K5)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.K5)(this.onCloudviewAvailabilityChange_,this);var T=0;W?(T=W.getProxyState(),
T!=3&&(W.subscribe("proxyStateChange",this.setState_,this),k3g(this))):T=3;T!=0&&(O?this.setState_(T):_.Zp(function(){b.setState_(T)},0));
(W=Yk8())&&sP7(this,W);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.R(Td,_.Jr);Td.prototype.getState=function(){return this.state_};
Td.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Td.prototype.reconnect=function(){this.connection_.reconnect()};
var Lt=function(W){return new ul(W.connection_.getPlayerContextData())};
_.d=Td.prototype;_.d.play=function(){dK(this)?(this.castMedia_?this.castMedia_.play(null,_.mB,B58(this,"play")):hJ(this,"play"),r65(this,1,gVD(Lt(this))),this.publish("remotePlayerChange")):SG(this,this.play)};
_.d.pause=function(){dK(this)?(this.castMedia_?this.castMedia_.pause(null,_.mB,B58(this,"pause")):hJ(this,"pause"),r65(this,2,gVD(Lt(this))),this.publish("remotePlayerChange")):SG(this,this.pause)};
_.d.seekTo=function(W){if(dK(this)){if(this.castMedia_){var O=Lt(this),b=new chrome.cast.media.SeekRequest;b.currentTime=W;O.isPlaying()||O.isBuffering()?b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:b.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(b,_.mB,B58(this,"seekTo",{newTime:W}))}else hJ(this,"seekTo",{newTime:W});r65(this,3,W);this.publish("remotePlayerChange")}else SG(this,_.A3(this.seekTo,W))};
_.d.stop=function(){if(dK(this)){this.castMedia_?this.castMedia_.stop(null,_.mB,B58(this,"stopVideo")):hJ(this,"stopVideo");var W=Lt(this);W.stopPlayer();ZE(this,W);this.publish("remotePlayerChange")}else SG(this,this.stop)};
_.d.setVolume=function(W,O){if(dK(this)){var b=Lt(this);if(this.castSession_){if(b.volume!=W){var T=Math.round(W)/100;this.castSession_.setReceiverVolumeLevel(T,(0,_.K5)(function(){C3("set receiver volume: "+T)},this),(0,_.K5)(function(){this.warn_("failed to set receiver volume.")},this))}b.muted!=O&&this.castSession_.setReceiverMuted(O,(0,_.K5)(function(){C3("set receiver muted: "+O)},this),(0,_.K5)(function(){this.warn_("failed to set receiver muted.")},this))}else{var L={volume:W,
muted:O};b.volume!=-1&&(L.delta=W-b.volume);hJ(this,"setVolume",L)}b.muted=O;b.volume=W;ZE(this,b)}else SG(this,_.A3(this.setVolume,W,O))};
_.d.setAudioTrack=function(W,O){dK(this)?(O=O.getLanguageInfo().getId(),hJ(this,"setAudioTrack",{videoId:W,audioTrackId:O}),W=Lt(this),W.audioTrackId=O,ZE(this,W)):SG(this,_.A3(this.setAudioTrack,W,O))};
_.d.addVideo=function(W){dK(this)?hJ(this,"addVideo",{videoId:W}):SG(this,_.A3(this.addVideo,W))};
_.d.addPlaylist=function(W){dK(this)?hJ(this,"addVideos",{listId:W}):SG(this,_.A3(this.addPlaylist,W))};
_.d.addVideos=function(W){W.length==0?this.warn_("Ignore add videos request due to empty list"):dK(this)?hJ(this,"addVideos",{videoIds:W.join(",")}):SG(this,_.A3(this.addVideos,W))};
_.d.JSC$17547_removeVideo=function(W){dK(this)?hJ(this,"removeVideo",{videoId:W}):SG(this,_.A3(this.JSC$17547_removeVideo,W))};
_.d.JSC$17547_insertVideo=function(W){dK(this)?hJ(this,"insertVideo",{videoId:W}):SG(this,_.A3(this.JSC$17547_insertVideo,W))};
_.d.playVideo=function(W,O,b,T,L,h,Z){T=T===void 0?null:T;L=L===void 0?null:L;h=h===void 0?null:h;Z=Z===void 0?null:Z;var a=Lt(this),m={videoId:W};b!==void 0&&(m.currentIndex=b);oV7(a,W,b||0);O!==void 0&&(jG(a,O),m.currentTime=O);T&&(m.listId=T);L&&(m.playerParams=L);h&&(m.clickTrackingParams=h);Z&&(m.locationInfo=(0,_.Px)(Z));hJ(this,"setPlaylist",m);T||ZE(this,a)};
_.d.nextVideo=function(W,O){if(dK(this)){if(W&&O){var b=Lt(this);oV7(b,W,O);ZE(this,b)}hJ(this,"next")}else SG(this,_.A3(this.nextVideo,W,O))};
_.d.clearPlaylist=function(){if(dK(this)){hJ(this,"clearPlaylist");var W=Lt(this);W.reset();ZE(this,W);this.publish("remotePlayerChange")}else SG(this,this.clearPlaylist)};
_.d.dispose=function(){if(this.state_!=3){var W=this.state_;this.state_=3;this.publish("proxyStateChange",W,this.state_)}_.Jr.prototype.dispose.call(this)};
_.d.disposeInternal=function(){DNP(this);this.connection_=null;this.actionQueue_.clear();sP7(this,null);_.Jr.prototype.disposeInternal.call(this)};
var k3g=function(W){_.$X("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(O){this.contextSubscriptions_.push(this.connection_.subscribe(O,_.A3(this.onProxyEvent_,O),this))},W)},DNP=function(W){_.$X(W.contextSubscriptions_,function(O){this.connection_.unsubscribeByKey(O)},W);
W.contextSubscriptions_.length=0},dK=function(W){return W.getState()==1},SG=function(W,O){W.actionQueue_.getCount()<50&&W.actionQueue_.enqueue(O)},r65=function(W,O,b){var T=Lt(W);
jG(T,b);T.playerState!=-1E3&&(T.playerState=O);ZE(W,T)},hJ=function(W,O,b){W.connection_.sendMessage(O,b)},ZE=function(W,O){DNP(W);
W.connection_.setPlayerContextData(QP8(O));k3g(W)};
Td.prototype.setState_=function(W){if((W!=this.state_||W==2)&&this.state_!=3&&W!=0){var O=this.state_;this.state_=W;this.publish("proxyStateChange",O,W);if(W==1)for(;!this.actionQueue_.isEmpty();)W=this.actionQueue_,JRP(W),W.front_.pop().apply(this);else W==3&&this.dispose()}};
Td.prototype.onProxyEvent_=function(W,O){this.publish(W,O)};
var sP7=function(W,O){W.castSession_&&(W.castSession_.removeUpdateListener(W.boundCastStatusListener_),W.castSession_.removeMediaListener(W.boundCastMediaListener_),W.onCastMediaChange_(null));W.castSession_=O;if(W.castSession_&&(C3("Setting cast session: "+W.castSession_.sessionId),W.castSession_.addUpdateListener(W.boundCastStatusListener_),W.castSession_.addMediaListener(W.boundCastMediaListener_),W.castSession_.media.length))W.onCastMediaChange_(W.castSession_.media[0])};
Td.prototype.onCastStatusUpdate_=function(W){if(!W)this.onCastMediaChange_(null),sP7(this,null);else if(this.castSession_.receiver.volume){W=this.castSession_.receiver.volume;var O=Lt(this),b=Math.round(100*W.level||0);if(O.volume!=b||O.muted!=W.muted)C3("Cast volume update: "+W.level+(W.muted?" muted":"")),O.volume=b,O.muted=!!W.muted,ZE(this,O)}};
Td.prototype.onCastMediaChange_=function(W){C3("Cast media: "+!!W);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=W)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),xNU(this),this.publish("remotePlayerChange")};
var xNU=function(W){var O=W.castMedia_.media,b=W.castMedia_.customData;if(O&&b){var T=Lt(W);O.contentId!=T.videoId&&C3("Cast changing video to: "+O.contentId);T.videoId=O.contentId;T.playerState=b.playerState;jG(T,W.castMedia_.getEstimatedTime());ZE(W,T)}else C3("No cast media video. Ignoring state update.")};
Td.prototype.onCastMediaUpdate_=function(W){if(W)xNU(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Td.prototype.onCloudviewAvailabilityChange_=function(){var W=Yk8();W&&sP7(this,W)};
Td.prototype.warn_=function(W){zS("CP",W)};
var B58=function(W,O,b){return(0,_.K5)(function(T){this.warn_("Failed to "+O+" with cast v2 channel. Error code: "+T.code);T.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+O+" using MDx browser channel."),hJ(this,O,b))},W)};var aI=function(W,O,b,T){T=T===void 0?!1:T;_.Jr.call(this);var L=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$17554_http_=W;this.enableConnectWithInitialState_=T;this.listeners_.push(_.WZ(window,"beforeunload",function(){L.JSC$17557_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new ul;this.currentScreenId_=O.id;this.currentScreenIdType_=O.idType;this.channelService=xyN(this.JSC$17554_http_,b,this.JSC$17557_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){zUD(L)});
this.channelService.listen("channelClosed",function(){II("Channel closed");isNaN(L.connectTimerId_)?BE(!0):BE();L.dispose()});
this.channelService.listen("channelError",function(h){BE();isNaN(L.getReconnectTimeout_())?(h==1&&L.currentScreenIdType_=="shortLived"&&L.publish("browserChannelAuthError",h),II("Channel error: "+h+" without reconnection"),L.dispose()):(L.reconnecting_=!0,II("Channel error: "+h+" with reconnection in "+L.getReconnectTimeout_()+" ms"),Cr1(L,2))});
this.channelService.listen("channelMessage",function(h){q2N(L,h)});
this.channelService.setLoungeToken(O.token);this.subscribe("remoteQueueChange",function(){var h=L.playerContext_.videoId;e_5()&&_.ju("yt-remote-session-video-id",h)})};
_.R(aI,_.Jr);
aI.prototype.connect=function(W,O){if(O){var b=O.listId,T=O.videoId,L=O.videoIds,h=O.playerParams,Z=O.clickTrackingParams,a=O.index,m={videoId:T},w=O.currentTime,A=O.locationInfo;O=O.loopMode;w!==void 0&&(m.currentTime=w<=5?0:w);h&&(m.playerParams=h);A&&(m.locationInfo=A);Z&&(m.clickTrackingParams=Z);b&&(m.listId=b);L&&L.length>0&&(m.videoIds=L.join(","));a!==void 0&&(m.currentIndex=a);this.enableConnectWithInitialState_&&(m.loopMode=O||"LOOP_MODE_OFF");b&&(this.playerContext_.listId=b);this.playerContext_.videoId=
T;this.playerContext_.index=a||0;this.playerContext_.state=3;jG(this.playerContext_,w);this.autoplayMode_="UNSUPPORTED";b=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";II("Connecting with "+b+" and params: "+(0,_.Px)(m));this.channelService.connect({method:b,params:(0,_.Px)(m)},W,vFR())}else II("Connecting without params"),this.channelService.connect({},W,vFR());nVg(this)};
aI.prototype.setLoungeToken=function(W){this.channelService.setLoungeToken(W)};
aI.prototype.dispose=function(){this.isDisposed()||(_.c3("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),Cr1(this,3));_.Jr.prototype.dispose.call(this)};
aI.prototype.disposeInternal=function(){fmk(this);G3N(this);HN9(this);_.ae(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.ae(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.n12(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.Jr.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var tXB=function(W){return _.qP(W.connectedDevices_,function(O){return O.type=="LOUNGE_SCREEN"})},II=function(W){zS("conn",W)},Cr1=function(W,O){W.publish("proxyStateChange",O)},nVg=function(W){W.connectTimerId_=_.Zp(function(){II("Connecting timeout");
W.JSC$17557_disconnect_(1)},2E4)},fmk=function(W){_.ae(W.connectTimerId_);
W.connectTimerId_=NaN},HN9=function(W){_.ae(W.reconnectedCheckScreenTimeout_);
W.reconnectedCheckScreenTimeout_=NaN},$N2=function(W){G3N(W);
W.playingSyncTimerId_=_.Zp(function(){mL(W,"getNowPlaying")},2E4)},G3N=function(W){_.ae(W.playingSyncTimerId_);
W.playingSyncTimerId_=NaN},zUD=function(W){II("Channel opened");
W.reconnecting_&&(W.reconnecting_=!1,HN9(W),W.reconnectedCheckScreenTimeout_=_.Zp(function(){II("Timing out waiting for a screen.");W.JSC$17557_disconnect_(1)},15E3))},N5N=function(W,O){var b=null;
if(O){var T=tXB(W);T&&(b={clientName:T.clientName,deviceMake:T.brand,deviceModel:T.model,osVersion:T.osVersion})}_.c3("yt.mdx.remote.remoteClient_",b);O&&(fmk(W),HN9(W));b=W.channelService.isChannelOpened()&&isNaN(W.connectTimerId_);O==b?O&&(Cr1(W,1),mL(W,"getSubtitlesTrack")):O?(W.getOtherConnectedRemoteId_()&&W.playerContext_.reset(),Cr1(W,1),mL(W,"getNowPlaying"),VX7(W)):W.JSC$17557_disconnect_(1)},MX8=function(W,O){var b=O.params.videoId;
delete O.params.videoId;b==W.playerContext_.videoId&&(_.PQ.isEmpty(O.params)?W.playerContext_.trackData=null:W.playerContext_.trackData=O.params,W.publish("remotePlayerChange"))},uZ1=function(W,O,b){var T=O.params.videoId||O.params.video_id,L=parseInt(O.params.currentIndex,10);
W.playerContext_.listId=O.params.listId||W.playerContext_.listId;oV7(W.playerContext_,T,L);W.publish("remoteQueueChange",b)},J6g=function(W,O){O.params=O.params||{};
uZ1(W,O,"NOW_PLAYING_MAY_CHANGE");W.onStateChange_(O);W.publish("autoplayDismissed")};
aI.prototype.onStateChange_=function(W){var O=parseInt(W.params.currentTime||W.params.current_time,10);jG(this.playerContext_,isNaN(O)?0:O);O=parseInt(W.params.state,10);O=isNaN(O)?-1:O;O==-1&&this.playerContext_.playerState==-1E3&&(O=-1E3);this.playerContext_.playerState=O;O=Number(W.params.loadedTime);this.playerContext_.loadedTime=isNaN(O)?0:O;O=Number(W.params.duration);this.playerContext_.duration_=isNaN(O)?0:O;O=this.playerContext_;var b=Number(W.params.liveIngestionTime);O.liveIngestionTime_=
b;O.isLive_=isNaN(b)?!1:!0;O=this.playerContext_;b=Number(W.params.seekableStartTime);W=Number(W.params.seekableEndTime);O.seekableStart_=isNaN(b)?0:b;O.seekableEnd_=isNaN(W)?0:W;this.playerContext_.playerState==1?$N2(this):G3N(this);this.publish("remotePlayerChange")};
aI.prototype.onAdStateChange_=function(W){if(this.playerContext_.playerState!=-1E3){var O=1085;switch(parseInt(W.params.adState,10)){case 1:O=1081;break;case 2:O=1084;break;case 0:O=1083}this.playerContext_.playerState=O;W=parseInt(W.params.currentTime,10);jG(this.playerContext_,isNaN(W)?0:W);this.publish("remotePlayerChange")}};
var c69=function(W,O){var b=O.params.muted=="true";W.playerContext_.volume=parseInt(O.params.volume,10);W.playerContext_.muted=b;W.publish("remotePlayerChange")},FU2=function(W,O){W.autoplayVideoId_=O.params.videoId;
W.publish("nowAutoplaying",parseInt(O.params.timeout,10))},y69=function(W,O){W.autoplayVideoId_=O.params.videoId||null;
W.publish("autoplayUpNext",W.autoplayVideoId_)},WrD=function(W,O){W.autoplayMode_=O.params.autoplayMode;
W.publish("autoplayModeChange",W.autoplayMode_);W.autoplayMode_=="DISABLED"&&W.publish("autoplayDismissed")},OKU=function(W,O){var b=O.params.hasNext=="true";
W.playerContext_.hasPrevious=O.params.hasPrevious=="true";W.playerContext_.hasNext=b;W.publish("previousNextChange")};
aI.prototype.isCapabilitySupportedOnConnectedDevices_=function(W){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var O=_.S(this.connectedDevices_),b=O.next();!b.done;b=O.next())if(!b.value.capabilities.has(W))return!1;return!0};
var q2N=function(W,O){O=O.message;O.params?II("Received: action="+O.action+", params="+(0,_.Px)(O.params)):II("Received: action="+O.action+" {}");switch(O.action){case "loungeStatus":O=(0,_.gl)(O.params.devices);W.connectedDevices_=_.RG(O,function(T){return new VZ(T)});
O=!!_.qP(W.connectedDevices_,function(T){return T.type=="LOUNGE_SCREEN"});
N5N(W,O);O=W.isCapabilitySupportedOnConnectedDevices_("mlm");W.publish("multiStateLoopEnabled",O);break;case "loungeScreenDisconnected":DCD(W.connectedDevices_,function(T){return T.type=="LOUNGE_SCREEN"});
N5N(W,!1);break;case "remoteConnected":var b=new VZ((0,_.gl)(O.params.device));_.qP(W.connectedDevices_,function(T){return T.equals(b)})||_.NP(W.connectedDevices_,b);
break;case "remoteDisconnected":b=new VZ((0,_.gl)(O.params.device));DCD(W.connectedDevices_,function(T){return T.equals(b)});
break;case "gracefulDisconnect":break;case "playlistModified":uZ1(W,O,"QUEUE_MODIFIED");break;case "nowPlaying":J6g(W,O);break;case "onStateChange":W.onStateChange_(O);break;case "onAdStateChange":W.onAdStateChange_(O);break;case "onVolumeChanged":c69(W,O);break;case "onSubtitlesTrackChanged":MX8(W,O);break;case "nowAutoplaying":FU2(W,O);break;case "autoplayDismissed":W.publish("autoplayDismissed");break;case "autoplayUpNext":y69(W,O);break;case "onAutoplayModeChanged":WrD(W,O);break;case "onHasPreviousNextChanged":OKU(W,
O);break;case "requestAssistedSignIn":W.publish("assistedSignInRequested",O.params.authCode);break;case "onLoopModeChanged":W.publish("loopModeChange",O.params.loopMode);break;default:II("Unrecognized action: "+O.action)}};
_.d=aI.prototype;_.d.getProxyState_=function(){var W=3;this.isDisposed()||(W=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(W=1):W=2);return W};
_.d.JSC$17557_disconnect_=function(W){II("Disconnecting with "+W);_.c3("yt.mdx.remote.remoteClient_",null);fmk(this);this.publish("beforeDisconnect",W);W==1&&BE();this.channelService.disconnect(W);this.dispose()};
_.d.getPlayerContextData_=function(){var W=this.playerContext_;this.clientVideoId_&&(W=this.playerContext_.clone(),oV7(W,this.clientVideoId_,W.index));return QP8(W)};
_.d.setPlayerContextData_=function(W){var O=this,b=new ul(W);b.videoId&&b.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=b.videoId,_.ae(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.Zp(function(){if(O.clientVideoId_){var L=O.clientVideoId_;O.clientVideoId_=null;O.playerContext_.videoId!=L&&mL(O,"getNowPlaying")}},5E3));
var T=[];this.playerContext_.listId==b.listId&&this.playerContext_.videoId==b.videoId&&this.playerContext_.index==b.index||T.push("remoteQueueChange");this.playerContext_.playerState==b.playerState&&this.playerContext_.volume==b.volume&&this.playerContext_.muted==b.muted&&gVD(this.playerContext_)==gVD(b)&&(0,_.Px)(this.playerContext_.trackData)==(0,_.Px)(b.trackData)||T.push("remotePlayerChange");this.playerContext_.reset(W);_.$X(T,function(L){this.publish(L)},this)};
_.d.getOtherConnectedRemoteId_=function(){var W=this.channelService.getDeviceId(),O=_.qP(this.connectedDevices_,function(b){return b.type=="REMOTE_CONTROL"&&b.id!=W});
return O?O.id:""};
_.d.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.d.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.d.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.d.JSC$17557_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var VX7=function(W){_.ae(W.idleDisconnectTimerId_);W.idleDisconnectTimerId_=_.Zp(function(){W.JSC$17557_disconnect_(1)},864E5)},mL=function(W,O,b){b?II("Sending: action="+O+", params="+(0,_.Px)(b)):II("Sending: action="+O);
W.channelService.sendMessage(O,b)};
aI.prototype.sendMessageWithUserAction_=function(W,O){mL(this,W,O);VX7(this)};
aI.prototype.JSC$17557_getXsrfToken_=function(){var W=_.Xq.get("SAPISID","")||_.Xq.get("__Secure-1PAPISID",void 0)||"",O=_.Xq.get("__Secure-3PAPISID","")||"";if(!W&&!O)return"";W=_.WM(_.P5(W),2);O=_.WM(_.P5(O),2);return _.WM(_.P5(","+W+","+O),2)};
aI.prototype.subscribe=aI.prototype.subscribe;aI.prototype.unsubscribeByKey=aI.prototype.unsubscribeByKey;aI.prototype.getProxyState=aI.prototype.getProxyState_;aI.prototype.disconnect=aI.prototype.JSC$17557_disconnect_;aI.prototype.getPlayerContextData=aI.prototype.getPlayerContextData_;aI.prototype.setPlayerContextData=aI.prototype.setPlayerContextData_;aI.prototype.getOtherConnectedRemoteId=aI.prototype.getOtherConnectedRemoteId_;aI.prototype.getReconnectTimeout=aI.prototype.getReconnectTimeout_;
aI.prototype.getAutoplayMode=aI.prototype.getAutoplayMode_;aI.prototype.getAutoplayVideoId=aI.prototype.getAutoplayVideoId_;aI.prototype.reconnect=aI.prototype.JSC$17557_reconnect_;aI.prototype.sendMessage=aI.prototype.sendMessageWithUserAction_;aI.prototype.getXsrfToken=aI.prototype.JSC$17557_getXsrfToken_;aI.prototype.isCapabilitySupportedOnConnectedDevices=aI.prototype.isCapabilitySupportedOnConnectedDevices_;var iKB=function(W){n3.call(this,"ScreenServiceProxy");this.instance_=W;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.K5)(this.JSC$17560_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.K5)(this.onOnlineScreenChange_,this)))};
_.R(iKB,n3);_.d=iKB.prototype;_.d.getScreens=function(W){return this.instance_.$_gs(W)};
_.d.contains=function(W){return!!this.instance_.$_c(W)};
_.d.get=function(W){return this.instance_.$_g(W)};
_.d.start=function(){this.instance_.$_st()};
_.d.add=function(W,O,b){this.instance_.$_a(W,O,b)};
_.d.remove=function(W,O,b){this.instance_.$_r(W,O,b)};
_.d.updateName=function(W,O,b,T){this.instance_.$_un(W,O,b,T)};
_.d.disposeInternal=function(){for(var W=this.subscriptionKeys_.length,O=0;O<W;++O)this.instance_.$_ubk(this.subscriptionKeys_[O]);this.subscriptionKeys_.length=0;this.instance_=null;n3.prototype.disposeInternal.call(this)};
_.d.JSC$17560_onScreenChange_=function(){this.publish("screenChange")};
_.d.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
HE.prototype.$_st=HE.prototype.start;HE.prototype.$_gspc=HE.prototype.JSC$17517_getScreenByPairingCode;HE.prototype.$_gsppc=HE.prototype.JSC$17517_getScreenByPollingPairingCode;HE.prototype.$_c=HE.prototype.contains;HE.prototype.$_g=HE.prototype.get;HE.prototype.$_a=HE.prototype.add;HE.prototype.$_un=HE.prototype.updateName;HE.prototype.$_r=HE.prototype.remove;HE.prototype.$_gs=HE.prototype.getScreens;HE.prototype.$_gos=HE.prototype.JSC$17517_getOnlineScreens;HE.prototype.$_s=HE.prototype.subscribe;
HE.prototype.$_ubk=HE.prototype.unsubscribeByKey;var SL2=function(W){ksZ();if(!rI||!rI.get("yt-remote-disable-remote-module-for-dev")){W=_.Cv("MDX_CONFIG")||W;xqg();pBk();YK||(YK=new oX(W?W.loungeApiHost:void 0),s25()&&(YK.basePath="/api/loungedev"));Eb||(Eb=_.GT("yt.mdx.remote.deferredProxies_")||[],_.c3("yt.mdx.remote.deferredProxies_",Eb));bK9();var O=wK();if(!O){var b=new HE(YK,W?W.disableAutomaticScreenCache||!1:!1);_.c3("yt.mdx.remote.screenService_",b);O=wK();var T={};W&&(T={appId:W.appId,disableDial:W.disableDial,theme:W.theme,loadCastApiSetupScript:W.loadCastApiSetupScript,
disableCastApi:W.disableCastApi,enableDialLoungeToken:W.enableDialLoungeToken,enableCastLoungeToken:W.enableCastLoungeToken,forceMirroring:W.forceMirroring});_.c3("yt.mdx.remote.enableConnectWithInitialState_",W?W.enableConnectWithInitialState||!1:!1);hH8(b,function(h){h?AJ()&&wb8(AJ(),"YouTube TV"):b.subscribe("onlineScreenChange",function(){il("yt-remote-receiver-availability-change")})},T)}if(W&&!_.GT("yt.mdx.remote.initialized_")){_.c3("yt.mdx.remote.initialized_",!0);
Xx("Initializing: "+(0,_.Px)(W));Ub.push(_.de("yt-remote-cast2-api-ready",function(){il("yt-remote-api-ready")}));
Ub.push(_.de("yt-remote-cast2-availability-change",function(){il("yt-remote-receiver-availability-change")}));
Ub.push(_.de("yt-remote-cast2-receiver-selected",function(){jT8();il("yt-remote-auto-connect","cast-selector-receiver")}));
Ub.push(_.de("yt-remote-cast2-receiver-resumed",function(){il("yt-remote-receiver-resumed","cast-selector-receiver")}));
Ub.push(_.de("yt-remote-cast2-session-change",Tk5));Ub.push(_.de("yt-remote-connection-change",function(h){h?wb8(AJ(),"YouTube TV"):LrP()||(wb8(null,null),mp2())}));
Ub.push(_.de("yt-remote-cast2-session-failed",function(){il("yt-remote-connection-failed")}));
T=dg5();W.isAuto&&(T.id+="#dial");var L=W.capabilities||[];L.length>0&&(T.capabilities=L);T.name=W.device;T.app=W.app;(W=W.theme)&&(T.theme=W);Xx(" -- with channel params: "+(0,_.Px)(T));T?(_.ju("yt-remote-session-app",T.app),_.ju("yt-remote-session-name",T.name)):(_.Lm("yt-remote-session-app"),_.Lm("yt-remote-session-name"));_.c3("yt.mdx.remote.channelParams_",T);O.start();AJ()||htg()}}},ICD=function(){var W=wK().instance_.$_gos();
var O=ZK9();O&&lb()&&(XB5(W,O)||W.push(O));return AqP(W)},aC2=function(){var W=ICD(),O=ZK9();
O||(O=LrP());return _.qP(W,function(b){return O&&ke(O,b.key)?!0:!1})},ZK9=function(){var W=AJ();
if(!W)return null;var O=wK().getScreens();return sX(O,W)},Tk5=function(W){Xx("remote.onCastSessionChange_: "+ACB(W));
if(W){var O=ZK9();O&&O.id==W.id?(wb8(O.id,"YouTube TV"),W.idType=="shortLived"&&(W=W.token)&&(O=lb())&&O.setLoungeToken(W)):(O&&mgD(),YL2(W,1))}else lb()&&mgD()},mgD=function(){EJR()?NU().stopSession():VD("stopSession called before API ready.");
var W=lb();W&&(W.disconnect(1),EPN(null))},wHN=function(){var W=lb();
return W&&W.getProxyState()!=3?new Td(lb(),void 0):null},Xx=function(W){zS("remote",W)},wK=function(){if(!Ap2){var W=_.GT("yt.mdx.remote.screenService_");
Ap2=W?new iKB(W):null}return Ap2},AJ=function(){return _.GT("yt.mdx.remote.currentScreenId_")},XH5=function(W){_.c3("yt.mdx.remote.currentScreenId_",W)},jT8=function(){_.c3("yt.mdx.remote.connectData_",null)},lb=function(){return _.GT("yt.mdx.remote.connection_")},EPN=function(W){var O=lb();
jT8();W||XH5("");_.c3("yt.mdx.remote.connection_",W);Eb&&(_.$X(Eb,function(b){b(W)}),Eb.length=0);
O&&!W?il("yt-remote-connection-change",!1):!O&&W&&il("yt-remote-connection-change",!0)},LrP=function(){var W=e_5();
if(!W)return null;var O=wK();if(!O)return null;O=O.getScreens();return sX(O,W)},YL2=function(W,O){XH5(W.id);
W=new aI(YK,W,dg5(),_.GT("yt.mdx.remote.enableConnectWithInitialState_")||!1);W.connect(O,_.GT("yt.mdx.remote.connectData_"));W.subscribe("beforeDisconnect",function(b){il("yt-remote-before-disconnect",b)});
W.subscribe("beforeDispose",function(){lb()&&EPN(null)});
W.subscribe("browserChannelAuthError",function(){var b=ZK9();b&&b.idType=="shortLived"&&(EJR()?NU().handleBrowserChannelAuthError():VD("refreshLoungeToken called before API ready."))});
EPN(W)},htg=function(){var W=LrP();
W?(Xx("Resume connection to: "+ACB(W)),YL2(W,0)):(BE(),mp2(),Xx("Skipping connecting because no session screen found."))},YK=null,Eb=null,Ap2=null,bK9=function(){var W=dg5();
if(_.PQ.isEmpty(W)){W=lF2();var O=_.Tz("yt-remote-session-name")||"",b=_.Tz("yt-remote-session-app")||"";W={device:"REMOTE_CONTROL",id:W,name:O,app:b,mdxVersion:3};W.authuser=String(_.Cv("SESSION_INDEX","0"));(O=_.Cv("DELEGATED_SESSION_ID"))&&(W.pageId=String(O));_.c3("yt.mdx.remote.channelParams_",W)}},dg5=function(){return _.GT("yt.mdx.remote.channelParams_")||{}},Ub=[];var Ug7=new _.z7("yt-menu"),lCB=function(){},Ph2=function(W,O,b){W=O=="right-click"?b.rightClickMenuPopupHint:b.menuPopupHint;
if(!(et7(O)>10))return O=O||"default",Ug7.set(O+"-impression",et7(O)+1),W},et7=function(W){return parseInt(Ug7.get((W||"default")+"-impression")||0,10)};
_.Fv(lCB);var pHg=function(){this.contexts_=new WeakMap;this.JSC$17566_networkService_=this.activeContext_=null},RtD=function(W,O,b){var T=W.contexts_.get(O);
T||(T=new r47(W.JSC$17566_networkService_),W.contexts_.set(O,T));W.activeContext_=T;b&&W.activeContext_.reset();W.activeContext_.start();return W.activeContext_};var eG=function(){};
eG.prototype.enqueue=function(){var W=this,O;return _.I(function(b){if(W.isCounterfactual())return(O=W.getCounterfactualData())&&W.shouldLogCounterfactualImpression()&&W.sendImpressionEndpoints(O),b.return();W.doEnqueue();_.aD(b)})};
eG.prototype.sendImpressionEndpoints=function(W){_.$G.getInstance().triggerOptionalAction("yt-service-request",{},W[0])};var P4=function(W,O){this.renderer=W;this.page=O};
_.R(P4,eG);P4.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
P4.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
P4.prototype.shouldLogCounterfactualImpression=function(){return!0};
P4.prototype.doEnqueue=function(){var W=_.FL(this.page);W&&W.pause();this.renderer.impressionCommand&&_.$G.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.o$(_.$G.getInstance(),[this.renderer.promoCommand],this.page)};var Kr1=function(W,O){this.renderer=W;this.resolver=_.$S();this.JSC$17578_enforcementCounter=new _.va$;O?this.JSC$17578_playerManager=_.FL(O):this.JSC$17578_playerManager=null;_.mm(1,!0)};
_.R(Kr1,eG);_.d=Kr1.prototype;_.d.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var W=[];this.renderer.impressionEndpoints.forEach(function(O){(O=_.xy(O))&&W.push(O)});
return W}};
_.d.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.d.shouldLogCounterfactualImpression=function(){var W=_.dKX();W?(this.JSC$17578_enforcementCounter.increment("POPUP"),_.mm(3)):_.mm(2);return W};
_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.doEnqueue=function(){var W=this;_.dKX()?(this.JSC$17578_enforcementCounter.increment("POPUP"),_.mm(3),vP2(this)):this.JSC$17578_playerManager?(this.resolver.promise.then(function(){vP2(W)}),gPk(this.resolver,this.JSC$17578_playerManager)):_.mm(2)};
var gPk=function(W,O){var b=_.$S();O.getPlayerPromise().then(function(T){b.resolve(T)});
b.promise.then(function(T){T.addEventListener("onAbnormalityDetected",W.resolve);_.UR(W.promise,function(){T.removeEventListener("onAbnormalityDetected",W.resolve)})});
W.promise.thenCatch(function(){b.promise.cancel()})},vP2=function(W){_.mm(3);
var O={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:W.renderer}};O=_.$G.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:O},{});Promise.all(O).then(function(){oP2();W.JSC$17578_playerManager&&W.JSC$17578_playerManager.pause()})},oP2=function(){Umk(function(W,O){_.XU8(W,O);
W===0?_.mm(7):_.mm(4)})};var QTD=function(W,O){this.renderer=W;this.page=O;this.resolver=_.$S()};
_.R(QTD,eG);_.d=QTD.prototype;_.d.cancel=function(){this.resolver.promise.cancel()};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var W=this;this.resolver.promise.then(function(){var b={popup:{mealbarPromoRenderer:W.renderer},popupType:"MEALBAR"};_.$G.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var O=_.FL(this.page);O&&kng(this.resolver,O)}break;default:this.resolver.resolve()}};
var kng=function(W,O){var b=_.$S();O.getPlayerPromise().then(function(T){b.resolve(T)});
b.promise.then(function(T){T.addEventListener("onAdEnd",W.resolve);_.UR(W.promise,function(){T.removeEventListener("onAdEnd",W.resolve)})});
W.promise.thenCatch(function(){b.promise.cancel()})};var sT1=function(W,O){this.renderer=W;this.page=O};
_.R(sT1,eG);_.d=sT1.prototype;_.d.cancel=function(){this.JSC$17586_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17586_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17586_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.d.isCounterfactual=function(){return!this.renderer.isVisible};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var W=this,O,b;((O=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(b=O.playbackUpsellDialogTriggerConditionData)==null?void 0:b.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17586_downloadedVideosCountSelectorUnsubscriber=_.mr(_.uv(),YTB,function(T,L){T>L&&(Bk5(W),W.cancel())}):Bk5(this)};
var Bk5=function(W){var O={popup:{upsellDialogRenderer:W.renderer},popupType:"MODAL"};_.$G.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:O},{});(W=_.FL(W.page))&&W.pause()};var pt={},rpU=(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),DgN=function(W,O){this.renderer=W;this.targetManager=
O};
_.R(DgN,eG);_.d=DgN.prototype;_.d.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17593_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17593_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.d.getCounterfactualData=function(){if(this.isCounterfactual()){var W;return(W=this.renderer.promoConfig)==null?void 0:W.impressionEndpoints}};
_.d.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.d.shouldLogCounterfactualImpression=function(){return!0};
_.d.doEnqueue=function(){var W=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17593_downloadedVideosCountSelectorUnsubscriber=_.mr(_.uv(),YTB,function(O,b){W.renderer.targetId&&O>b&&(Z25(W.targetManager,W.renderer.targetId,xg9(W)),W.cancel())});
break;default:Z25(this.targetManager,this.renderer.targetId,xg9(this))}};
var xg9=function(W){var O;if((O=W.renderer.suggestedPosition)==null?0:O.type)var b=rpU[W.renderer.suggestedPosition.type];b||(b="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:W.renderer},popupType:"HINT",position:b}}};var ztk=function(){this.previousPage=null},ChP;
ztk.prototype.registerPromoCommand=function(W,O){qL5(this,void 0,void 0,_.P(W.roadblock,Ork),void 0,void 0,O)};
var qL5=function(W,O,b,T,L,h,Z){W.previousPage!==Z&&W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel();W.previousPage=Z;L?(W.pendingEnforcementPromo&&W.pendingEnforcementPromo.cancel(),W.pendingEnforcementPromo=new Kr1(L,Z),W.pendingEnforcementPromo.enqueue()):h?(W.pendingCommandWrapperPromo=new P4(h,Z),W.pendingCommandWrapperPromo.enqueue()):T?(W.pendingRoadblockPromo&&W.pendingRoadblockPromo.cancel(),W.pendingRoadblockPromo=new sT1(T,Z),W.pendingRoadblockPromo.enqueue()):O?(W.pendingMealbarPromo&&
W.pendingMealbarPromo.cancel(),W.pendingMealbarPromo=new QTD(O,Z),W.pendingMealbarPromo.enqueue()):b&&(W.pendingTooltipPromo&&W.pendingTooltipPromo.cancel(),W.pendingTooltipPromo=new DgN(b,_.Ae()),W.pendingTooltipPromo.enqueue())},nPB=function(){ChP||(ChP=new ztk);
return ChP};var eHD=!1;var E12=function(W,O){var b=_.Cv("SESSION_INDEX");this.actionToken_=W;this.commonToken_=O;this.sessionIndex_=b},YPR=function(W){var O=_.$S(),b=_.GT("payments.business.integration.bootstrap"),T=_.GT("payments.business.integration"),L=T.Style.create().withMaterialDesignStyle(),h=T.mashupMode.popup("instrument-manager");
b.asMashupMode(h).usingUserIndex(W.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(L).inStandaloneContext(T.standaloneContextAuthId.forUserId()).instrumentManager(W.actionToken_,W.commonToken_.length>0?W.commonToken_:void 0,function(Z){var a=Z.instrumentId;a?O.resolve(a):(a=_.GT("payments.business.integration.scenario.InstrumentManager"),O.reject(Z.errorCode&&Z.errorCode===a.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(Z){_.nv(Z);
O.reject("instrumentManagerLoadError")});
return O.promise};var WA=function(W,O,b){this.payloadName="transactionFlowFailed";this.payload={errorType:W,serializedTransactionFlowLoggingParams:O,isUserDismiss:b===void 0?!1:b}};
_.c3("yt.ypc.shared.YpcTransactionFlowError",WA);var RI=function(){return _.A1.apply(this,arguments)||this};
_.R(RI,_.A1);RI.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
RI.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
RI.prototype.onErrorMessageDismiss=RI.prototype.onErrorMessageDismiss;_.t([_.C({readOnly:!0,observer:"errorRendererChanged"}),_.N("design:type",Object)],RI.prototype,"errorRenderer",void 0);_.t([_.ai("yt-live-chat-error-message-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RI.prototype,"onErrorMessageDismiss",null);RI=_.t([_.XT()],RI);var fC5=[RI.prototype];var Gn5;var HKg;var tng=new _.z7("yt-live-chat"),$gN=new Map;$gN.set("timestamp_toggle","show-timestamps");$gN.set("reactions_toggle","allow-reactions");var Kt=function(){return _.n.apply(this,arguments)||this};
_.R(Kt,_.n);_.d=Kt.prototype;_.d.menuItemIdentifierChanged=function(){var W;(W=this.data)!=null&&W.menuItemIdentifier&&(W=$gN.get(this.data.menuItemIdentifier))&&(_.e("enable_lwe_web_mute")?(W=tng.get(W),this.isToggled=!(W===void 0?!this.data.isToggled:!W)):this.isToggled=tng.get(W))};
_.d.onFocus=function(){this.toggleButton.focus()};
_.d.onTap=function(){var W=this.data.command;W&&this.componentBehavior.resolveCommand(W)};
_.d.computeText=function(W,O,b){return this.componentBehavior.getSimpleString(W?b:O)};
_.d.computeIcon=function(W,O,b){return(W=W?b:O)&&W.iconType?_.Z6(W.iconType):""};
Kt.prototype.onTap=Kt.prototype.onTap;Kt.prototype.onFocus=Kt.prototype.onFocus;Kt.prototype.menuItemIdentifierChanged=Kt.prototype.menuItemIdentifierChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Kt.prototype,"componentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Kt.prototype,"data",void 0);
_.t([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],Kt.prototype,"icon",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],Kt.prototype,"isToggled",void 0);_.t([_.El("tp-yt-paper-toggle-button"),_.N("design:type",Object)],Kt.prototype,"toggleButton",void 0);_.t([_.m5("data.menuItemIdentifier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kt.prototype,"menuItemIdentifierChanged",null);
_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kt.prototype,"onFocus",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kt.prototype,"onTap",null);Kt=_.t([_.sl({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Kt);
_.H(Kt,"yt-live-chat-toggle-renderer",function(){if(HKg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Gn5===void 0&&(Gn5=document.createElement("template"));var T=Gn5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);HKg=W}W=HKg;return W},{mode:_.e("live_chat_enable_sink_wrapper")?2:0});var VnZ=new _.MV("NAVIGATION_PROGRESS_TOKEN");_.zT("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var Nk8={},oJB=(Nk8.CSI=function(W,O){var b={};b[W]=O;W=_.fv(_.HWE)(b);Object.keys(W).length>0&&_.k0(W)},Nk8.ECATCHER=function(W){return function(O,b){_.Cv(W)[O]=b}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),Nk8);var MnD={},uBg={},JpB=(uBg[Hg9.name]=!0,uBg),v4=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;W.tabGesturesIsActive=!1;W.actionRouterIsRoot=!0;W.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"};W.pageTitle="";W.titleSuffix="YouTube";W.unseenNotificationCount=
0;W.hasNavigated=!1;W.hasSetScrollTopForNavigation=!1;W.pagePreparer=null;W.zwiebackInitJobId=0;W.dataUpdatePromise=null;W.loadDepsPromise=_.ZM();W.hasPendingNavigation=!1;W.pendingPlayerOnResponseReceivedActions=[];return W};
_.R(v4,_.A1);v4.prototype.attached=function(){cpU(this);document.addEventListener("yt-navigate-cache",_.Ii(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var W=gK();W.init();W.dispatchElement=this.hostElement};
var cpU=function(W,O){O=O===void 0?0:O;var b=_.iq().resolve(_.OT(_.wB));if(b)FrR(W,b);else{if(O>=5)throw Error("Xk");setTimeout(function(){cpU(W,O+1)},0)}},FrR=function(W,O){O.addEventListener("yt-navigate-start",_.Ii(W,W.onYtNavigateStart));
O.addEventListener("yt-navigate-finish",_.Ii(W,W.onYtNavigateFinish));O.addEventListener("yt-navigate-error",_.Ii(W,W.onYtNavigateError));O.addEventListener("yt-page-data-fetched",_.Ii(W,W.onYtPageDataFetched))};
_.d=v4.prototype;_.d.detached=function(){var W=_.iq().resolve(_.wB);W.removeEventListener("yt-navigate-start",_.Ii(this,this.onYtNavigateStart));W.removeEventListener("yt-navigate-finish",_.Ii(this,this.onYtNavigateFinish));W.removeEventListener("yt-navigate-error",_.Ii(this,this.onYtNavigateError));W.removeEventListener("yt-page-data-fetched",_.Ii(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.Ii(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.d.setPageOffset=function(W,O){W?_.jx(this.hostElement,"yt-set-page-offset",[W,O]):_.Dt(Error("Yk"))};
_.d.setPageOffsetForNavigation=function(W,O){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(W,O))};
_.d.onYtNavigateSetPageOffset=function(W,O){this.setPageOffsetForNavigation(O.page,O.offset)};
_.d.getPageOffset=function(){var W=_.Q(this.hostElement).querySelector("#page-manager").getCurrentPage(),O=0;W&&(O=_.jx(this.hostElement,"yt-get-page-offset",[W])[0]);return O};
_.d.onYtHistoryPop=function(W,O){if(_.qC("DISABLE_WARM_LOADS"))W.preventDefault(),window.location.reload();else{var b=_.iq().resolve(_.wB);b.hasPendingNavigation()&&W.preventDefault();b.cancelPendingNavigation();_.TU(this.hostElement,"yt-pending-navigation-cancelled");O.errorMsg&&(W=O.errorMsg.split(" - "),O=Error(W[0]),W.length==2&&W[1]&&(_.CB(O,W[1]),_.z5(O)),window.location.reload())}};
_.d.onYtHistoryLoad=function(W,O){var b=this;if(_.qC("DISABLE_WARM_LOADS"))window.location.reload();else{(W=O.endpoint)&&Object.keys(W).length||(W=null);var T=O.historyEntry,L=_.iq().resolve(_.wB),h=_.iq().resolve(_.cs),Z=null;T&&T.rootData&&(Z=T.rootData);var a=Z&&yp1(Z);!Z||a||Z.filler?W?(L.navigate(W,!0),Wg7(this,W)):(O.legacyBorder||a||(O.JSC$26543_savedComponentState==null&&Z==null?_.z5(new _.pu("Incomplete history entry",O.forward)):_.xG(new _.pu("Malformed history entry",O.JSC$26543_savedComponentState,
O.forward,Z))),window.location.reload()):(_.cE8({isHot:!0}),_.k0({webInfo:{navigationReason:"h"}}),_.OC8(),_.Bg("srt"),_.Bg("pdc"),this.cancelPendingTasks(),Om7(this,O.forward,Z),Z.player&&(Z.player.loaded=!1),Wg7(this,W),_.aW1(L,W||{},Z,2,{},!1,O).then(function(){b.setPageOffset(h.getCurrentPage(),T.scrollTop||0)}))}};
_.d.initHistoryManager=function(W){if(!this.hasNavigated){this.hasNavigated=!0;var O=_.Q(this.hostElement).querySelector("#page-manager").getCurrentData();W=isNaN(W)?this.getPageOffset():W;var b=_.iq().resolve(_.wB).currentEndpoint;this.replaceState(b,O,W)}};
_.d.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.d.onYtNavigateStart=function(W,O){this.cancelPendingTasks();O.noProgressBar||(W=_.iq().resolve(_.OT(VnZ)))&&W.start();W=this.hasPendingNavigation?null:this.data;var b=_.iq().resolve(_.cs),T,L,h;_.e("kevlar_use_vimio_behavior")&&!((T=O.endpoint)==null?0:(L=T.commandMetadata)==null?0:(h=L.webCommandMetadata)==null?0:h.ignoreNavigation)&&(T=b.getCurrentPage())&&T.disconnectVisibilityRoot();b.prepareForNavigation(O.pageType,O.endpoint);_.e("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.c0(1,
"pcl"),_.FX(this.pagePreparer,b.preparePage.bind(b,O.pageType,O.endpoint)));T=this.getPageOffset();this.initHistoryManager(T);O.reload||this.hasPendingNavigation?this.replaceState(O.endpoint,W,T):(W==null?void 0:W.page)==="watch"&&O.pageType==="watch"&&_.e("kevlar_replace_watch_to_watch_history_state")?this.replaceState(O.endpoint,W,T):(W==null?void 0:W.page)!=="shorts"||O.pageType!=="shorts"||O.endpoint.reelWatchEndpoint.sequenceParams||_.e("short_to_short_back_nav_killswitch")?O.type!="navigate-back"&&
O.type!="navigate-forward"&&(O.pageType==="shorts"&&_.bX(this.hostElement,"yt-shorts-reset"),this.saveAndPush(O.url,O.endpoint,W,T)):this.replaceState(O.endpoint,W,0);this.hasPendingNavigation=!0};
var img=function(W){W.hasPendingNavigation=!1;(W=_.iq().resolve(_.OT(VnZ)))&&W.finish()};
v4.prototype.onYtNavigateError=function(W,O){img(this);W=this.get("endpoint.commandMetadata.webCommandMetadata.url",O);var b=_.NC(window.location.href);W&&!b.pbjreload&&(O=O.navigationErrorReason||"10",_.e("kevlar_parent_on_pbjreload")&&(b={csn:_.Bb()},this.get("data.endpoint.clickTrackingParams")&&(b.itct=this.data.endpoint.clickTrackingParams),_.JC(W,b)),_.GF(_.MC(W,{pbjreload:O})))};
v4.prototype.onYtNavigateCache=function(W,O){var b=this,T=O.url,L=O.endpoint,h=O.data;W=!!O.miniplayer;O=!!O.skipHistory;if(T&&L&&h){var Z=this.getPageOffset(),a=this.data||null;O||this.saveAndPush(T,L,a,Z);T=_.aW1(_.iq().resolve(_.wB),L,h,W?4:3,{},W);W&&T.then(function(){b.dataUpdatePromise&&b.dataUpdatePromise.then(function(){var m=_.iq().resolve(_.cs);b.setPageOffset(m.getCurrentPage(),0)})})}};
v4.prototype.onYtNavigateFinish=function(W,O){var b=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){bmD(b,O.fromHistory)})};
var bmD=function(W,O){img(W);if(W.pendingPlayerOnResponseReceivedActions){for(var b=_.S(W.pendingPlayerOnResponseReceivedActions),T=b.next();!T.done;T=b.next())_.mw(T.value,W.hostElement);W.pendingPlayerOnResponseReceivedActions=[]}b=_.iq().resolve(_.cs);!O&&W.hasNavigated&&((O=b.getCurrentPage())?O.is==="ytd-shorts"||W.tabGesturesIsActive||W.setPageOffsetForNavigation(O,0):_.z5(Error("Zk")));_.qe(function(){_.qe(function(){_.Bg("pda")})})};
v4.prototype.onYtNavigate=function(W){if(!W.detail.endpoint){var O=new _.pu("Error: Missing yt-navigate endpoint from target:",W.target,W.target.nodeName);_.Dt(O)}if(O=_.e("cold_missing_history"))O=gK(),O.init(!1),O=!(O.browserHistory.boundHistoryReplaceState&&O.browserHistory.boundHistoryPushState);if(O){_.zT("DISABLE_WARM_LOADS",!0);O=new _.pu("Failed to initialize history manager",this.getDebugString());var b=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
b?_.z5(O):_.Dt(O)}O=W.detail.endpoint;var T,L;_.e("debug_forward_web_query_parameters")&&((T=O.commandMetadata)==null?0:(L=T.webCommandMetadata)==null?0:L.url)&&(O=JSON.parse(JSON.stringify(O)),O.commandMetadata.webCommandMetadata.url=_.q0X(O.commandMetadata.webCommandMetadata.url,window.location.search));W={type:0,command:O,form:{params:W.detail.params,tempData:W.detail.tempData||{},requestType:W.detail.type,createScreenConfig:W.detail.createScreenConfig,reload:W.detail.reload?W.detail.reload:!1,
requestForm:W.detail}};_.e("kevlar_yt_navigate_command_handler")?(T=_.iq().resolve(_.bq),W.form.skipDefaultElement=!0,T.resolveCommand(O,{form:W.form})):this.handleNavigate(W)};
v4.prototype.handleNavigate=function(W){this.hasSetScrollTopForNavigation=!1;var O=_.iq().resolve(_.wB),b=W.form||{};O.navigate(W.command,b.reload,b.params,b.tempData,b.requestType,b.createScreenConfig,b.ignoreConfirmation,b.requestForm)&&Wg7(this,W.command,b.tempData)};
v4.prototype.onYtPageDataFetched=function(W,O){try{_.XWq().reset();this.data=O.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.iq().resolve(_.cs).updatePageData(this.data);var b=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);b&&Qs8(b);var T=this.get("response.responseContext.serviceTrackingParams",this.data);T&&Qs8(T);var L=
this.get("playerResponse.onResponseReceivedActions",this.data);L&&(L=jL2(this,L));L&&_.Sx(this.hostElement,L,this.hostElement);var h=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),Z=this.get("response.responseContext.consistencyTokenJar",this.data);if(h||Z){var a=_.AWO(),m=(0,_.PQ.getValues)(a.tokenJars);h&&a.replace(m,h);Z&&a.replace(m,Z)}}catch(w){_.Dt(w)}};
var Wg7=function(W,O,b){try{W.onYtEndpointChangeHandler(O,b)}catch(T){_.Dt(T)}};
_.d=v4.prototype;_.d.onYtEndpointChangeHandler=function(){};
_.d.setPageTitle=function(W){W=(this.pageTitle=W)?W+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+W};
_.d.onYtUpdateTitle=function(W,O){this.setPageTitle(O)};
_.d.setUnseenNotificationCount=function(W){this.unseenNotificationCount=W;this.setPageTitle(this.pageTitle)};
_.d.handleUpdateNotificationsUnseenCountAction=function(W){_.P(W,R4Z)&&((W=_.P(W,R4Z).unseenCount)?this.setUnseenNotificationCount(W):this.setUnseenNotificationCount(0))};
_.d.handleClearCookieAction=function(W){var O;(W=(O=_.P(W,lcg))==null?void 0:O.cookieName)&&_.js2(W)};
_.d.onYtUpdateUnseenNotificationCount=function(W,O){this.setUnseenNotificationCount(O)};
_.d.loadData=function(W){var O=this;this.loadDepsPromise.then(function(){var b=_.iq().resolve(_.OT(_.wB));b||_.Dt(Error("$k"));if(W&&W.response){if(!W.endpoint){var T=_.fq(window.document.location.href)||"/",L="";if(T==="/"||T.startsWith("/?"))L="WEB_PAGE_TYPE_BROWSE";W.endpoint={commandMetadata:{webCommandMetadata:{url:T,webPageType:L,rootVe:3854}}}}_.aW1(b,W.endpoint,W,5,{})}else W.endpoint?b.navigate(W.endpoint):b.navigate(_.aT);_.sF.cancelJob(O.zwiebackInitJobId);O.zwiebackInitJobId=_.sF.addLowPriorityJob(PeR)})};
var gK=function(){return _.iq().resolve(_.Zs)};
v4.prototype.getDebugString=function(){return gK().getDebugString()};
v4.prototype.getThirdPartyManipulationSuspected=function(){return gK().getThirdPartyManipulationSuspected()};
v4.prototype.replaceState=function(W,O,b){gK().saveAndReplace(W,O,b)};
v4.prototype.saveAndPush=function(W,O,b,T){gK().saveAndPush(W,O,b,T)};
var yp1=function(W){return _.e("web_honor_cache_for_back")&&(_.P(W.endpoint,_.V3)||_.P(W.endpoint,_.l8))?!0:!W||isNaN(W.expirationTime)?!1:(0,_.WO)()>W.expirationTime},Om7=function(W,O,b){var T=W.get("response.trackingParams",b),L=_.sk(),h=_.Bb();
if(T&&L&&h&&(T=W.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",b),!T&&b.rootVe&&(T=b.rootVe),L=O?"forwardButton":"backButton",O=W.get("playerResponse.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",W.data),W=W.get("response.topbar.desktopTopbarRenderer."+L+".buttonRenderer.command.clickTrackingParams",W.data),O=(W=O||W)?_.Pi(W):void 0,W=_.A4(),L=[_.ZM(b)],_.bh(W,T,O,{dataPromises:L,csnToClone:b.csn}),b.graftedVes))for(b=
_.S(b.graftedVes),T=b.next();!T.done;T=b.next())_.jn(W,T.value)};
v4.prototype.onStoreGraftedVeAction=function(W){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(W)):_.z5(Error("al"))};
var jL2=function(W,O){return O.filter(function(b){for(var T in b)if(JpB[T])return W.pendingPlayerOnResponseReceivedActions.push(b),!0;return!1})};
_.Jq.Object.defineProperties(v4.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
v4.prototype.onStoreGraftedVeAction=v4.prototype.onStoreGraftedVeAction;v4.prototype.loadData=v4.prototype.loadData;v4.prototype.onYtUpdateUnseenNotificationCount=v4.prototype.onYtUpdateUnseenNotificationCount;v4.prototype.handleClearCookieAction=v4.prototype.handleClearCookieAction;v4.prototype.handleUpdateNotificationsUnseenCountAction=v4.prototype.handleUpdateNotificationsUnseenCountAction;v4.prototype.setUnseenNotificationCount=v4.prototype.setUnseenNotificationCount;
v4.prototype.onYtUpdateTitle=v4.prototype.onYtUpdateTitle;v4.prototype.setPageTitle=v4.prototype.setPageTitle;v4.prototype.onYtEndpointChangeHandler=v4.prototype.onYtEndpointChangeHandler;v4.prototype.onYtPageDataFetched=v4.prototype.onYtPageDataFetched;v4.prototype.handleNavigate=v4.prototype.handleNavigate;v4.prototype.onYtNavigate=v4.prototype.onYtNavigate;v4.prototype.onYtNavigateFinish=v4.prototype.onYtNavigateFinish;v4.prototype.onYtNavigateCache=v4.prototype.onYtNavigateCache;
v4.prototype.onYtNavigateError=v4.prototype.onYtNavigateError;v4.prototype.onYtNavigateStart=v4.prototype.onYtNavigateStart;v4.prototype.cancelPendingTasks=v4.prototype.cancelPendingTasks;v4.prototype.initHistoryManager=v4.prototype.initHistoryManager;v4.prototype.onYtHistoryLoad=v4.prototype.onYtHistoryLoad;v4.prototype.onYtHistoryPop=v4.prototype.onYtHistoryPop;v4.prototype.onYtNavigateSetPageOffset=v4.prototype.onYtNavigateSetPageOffset;v4.prototype.setPageOffset=v4.prototype.setPageOffset;
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],v4.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],v4.prototype,"data",void 0);_.t([_.ai("yt-navigate-set-page-offset"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],v4.prototype,"onYtNavigateSetPageOffset",null);
_.t([_.ai("yt-history-pop"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],v4.prototype,"onYtHistoryPop",null);_.t([_.ai("yt-history-load"),_.N("design:type",Function),_.N("design:paramtypes",[Event,_.BLN]),_.N("design:returntype")],v4.prototype,"onYtHistoryLoad",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],v4.prototype,"onYtNavigate",null);
_.t([_.ai("yt-update-title"),_.N("design:type",Function),_.N("design:paramtypes",[Event,String]),_.N("design:returntype")],v4.prototype,"onYtUpdateTitle",null);_.t([_.ai("yt-update-unseen-notification-count"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Number]),_.N("design:returntype")],v4.prototype,"onYtUpdateUnseenNotificationCount",null);v4=_.t([_.XT()],v4);MnD.YtdAppBehavior=[_.WP.YtActionHandlerBehavior,v4.prototype];var oI=function(){var W=_.A1.apply(this,arguments)||this;W._noAccessors=!0;return W};
_.R(oI,_.A1);oI.prototype.ready=function(){var W=this;_.Q(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){W.onChange_()})};
oI.prototype.dataChanged_=function(){_.Q(this.hostElement).querySelector("#checkbox").checked=!1};
oI.prototype.onChange_=function(){var W=_.Q(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.bX(this.hostElement,"yt-dismissal-reason-"+W,this.data.feedbackToken)};
oI.prototype.dataChanged_=oI.prototype.dataChanged_;_.t([_.C(),_.N("design:type",Object)],oI.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oI.prototype,"dataChanged_",null);oI=_.t([_.XT()],oI);var TBk=[oI.prototype];var Q$=function(){var W=_.A1.apply(this,arguments)||this;W.timeoutJobId=0;W.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return W};
_.R(Q$,_.A1);Q$.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Q$.prototype.startTimeout=function(){var W=this,O=this.data&&this.data.displayDurationSeconds;O&&!this.timeoutJobId&&(this.timeoutJobId=_.KB(_.sF,function(){_.jx(W.hostElement,"yt-close-popup-action",[W.is]);W.timeoutJobId=0},O*1E3))};
Q$.prototype.cancelTimeout=function(){_.sF.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Q$.prototype.ytdHatsSurveyBehaviorDataChanged=Q$.prototype.ytdHatsSurveyBehaviorDataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Q$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Q$.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Q$=_.t([_.XT()],Q$);var Lg5=[_.WP.YtActionHandlerBehavior,Q$.prototype];var dh9=function(W,O){return W.SHARED_RENDERERS_.hasOwnProperty(O)?"yt":W.prefix},kK={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};kK.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.e("kevlar_mealbar_above_player"),modern:_.e("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
kK.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};kK.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};kK.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
kK.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)"}};
kK.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};
kK.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};
kK.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};
kK.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};kK.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"}};
kK.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};kK.TOAST={component:null,properties:{}};var hIk=new function(W,O,b){this.supportedPopups=W;this.navigationEndpointPopupMap=O;this.popupTypeMap=b;this.supportedPopups=W;this.navigationEndpointPopupMap=O;this.popupTypeMap=b}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.e("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"}),SZ5=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17645_popupConfig=kK;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 ZmD=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.vw.getInstance()},sb=function(W,O){var b=W.pageNameToElement.get(O);
if(!b){switch(O){case "watch":var T=_.e("web_watch_force_learning_journey_for_testing")?_.Je("ytd-watch-learning-journey"):_.e("kevlar_watch_fixie")?_.Je("ytd-watch-fixie"):_.e("kevlar_watch_grid")?_.Je("ytd-watch-grid"):_.Je("ytd-watch-flexy");break;case "learning_journey_watch":T=_.Je("ytd-watch-learning-journey");break;case "shorts":T=_.Je("ytd-shorts");break;case "search":T=_.Je("ytd-search");break;case "channel":T=_.Je("ytd-browse");T.pageSubtype="channels";break;case "trending":T=_.Je("ytd-browse");
T.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":T=
_.Je("ytd-browse");T.pageSubtype=O;break;case "browse":T=_.Je("ytd-browse");break;default:_.z5(new _.pu("Error getting page element for type",O))}b=T;W.pageNameToElement.set(O,b)}return b};
ZmD.prototype.preparePage=function(W,O,b){b&&(W=_.EP(b)||W);if(W!=="watch"){var T=this.elementPoolPopulator,L=W;L!=T.targetPage_&&T.pendingPages_.indexOf(L)>-1&&(T.targetPage_&&(T.pendingPages_.unshift(T.targetPage_),T.abort()),meB(T,L),_.kVU(T,L))}if((T=sb(this,W))||!_.P(b,_.t8)){T.isAttached||T===O||(T.hidden=!0);if(!(T.data||W==="watch"&&_.e("swatcheroo_page_pool_dont_provide_filler_data"))){var h;if(W=(h=_.Cv("FILLER_DATA",{})[W])==null?void 0:h.response)T.data=W}return T}};var Iz1=function(W){this.JSC$28442_clientRoot=W;this.playlistHandlerActionMap={"yt-add-to-playlist-command":rC8,"yt-end-playlist-command":Dp1,"yt-recover-playlist-command":zHg,"yt-refresh-playlist-command":nJg,"yt-playlist-remove-videos-action":CeB};_.Vj(_.$G.getInstance(),this.playlistHandlerActionMap,this.JSC$28442_clientRoot);p_g()},azN;var B4=function(W,O,b){this.apiKey=W;this.endpoint=O;this.confidenceThreshold=b===void 0?.5:b;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=O==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||O==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
O==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||O==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new LcU};
_.d=B4.prototype;
_.d.start=function(W){if(this.state===0)if(this.isOnline()){W.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=W.supportsHttpHeadersOverwriteParam);W.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=W.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.sO("voice_assistant");_.ra("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=W.languageCode||"en-US";this.supportsCrossDomainXhr=W.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=W.youtubeAssistantRequest||null;this.listeningHandler=W.listeningHandler||this.listeningHandler;this.audioDetectedHandler=W.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=W.stopHandler||this.stopHandler;this.completeHandler=W.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=W.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=W.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
W.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=W.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=W.accessToken;this.additionalHeaders=W.additionalHeaders||{};var O;this.prefetchResponseTimeoutMs=(O=W.prefetchResponseTimeoutMs)!=null?O:this.prefetchResponseTimeoutMs;mh5(this);this.startAudio();YZP(this)}else this.errorHandler("OFFLINE")};
_.d.stop=function(W){var O=W===void 0?{}:W;W=O.logCancel===void 0?!0:O.logCancel;var b=O.logMicClosed===void 0?!0:O.logMicClosed;var T=O.handleError===void 0?!0:O.handleError;O=O.handleStop===void 0?!0:O.handleStop;this.state!==0&&(W&&rK("voz_cx"),DE(this,{logMicClosed:b,handleStop:O}),T&&this.errorHandler("ABORTED"))};
_.d.getState=function(){return this.state};
_.d.isSupported=function(){return!0};
_.d.stopAudio=function(W){(W===void 0||W)&&rK("voz_mf")};
_.d.startAudio=function(){rK("voz_vp");return _.ZM(null)};
var E_B=function(W,O){W.channelOpen&&(W.state!==2&&(W.state=2,rK("voz_ss"),W.listeningHandler()),O=new Uint8Array(O),O='{ "audioIn": "'+_.WM(O)+'" }',W.channel.send(O))},DE=function(W,O){var b=O===void 0?{}:O;
O=b.logMicClosed===void 0?!0:b.logMicClosed;b=b.handleStop===void 0?!0:b.handleStop;W.vozEndOfDataTimeout>-1&&(clearTimeout(W.vozEndOfDataTimeout),W.vozEndOfDataTimeout=-1);w01(W);W.stopAudio(O);W.channel&&(W.channelOpen=!1,W.manuallyClosedChannel=!0,W.channel.close(),W.channel=void 0);W.transcribedSpeechResults=[];W.state=0;b&&W.stopHandler()},mh5=function(W){var O={httpHeadersOverwriteParam:W.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},W.additionalHeaders,W.accessToken&&W.isUsingVoz?{Authorization:"Bearer "+W.accessToken}:{"x-goog-api-key":W.apiKey}),supportsCrossDomainXhr:W.supportsCrossDomainXhr};W.channel=new rJ(W.endpoint,O);W.channel.open();_.Rx(W.channel,"w",function(){var b=W.channel,T=b.send,L=W.isUsingVoz?"PLACEHOLDER":"example";L={config:{dialogStateIn:{languageCode:W.languageCode},deviceConfig:{deviceId:L,deviceModelId:L},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!W.isUsingVoz)L.config.requestType=4;else if(W.isUsingVoz&&W.youtubeAssistantRequest){var h=JSON.stringify(W.youtubeAssistantRequest);L.config.internalIn={youtubeAssistantS3InputJson:h}}T.call(b,L);W.channelOpen=!0;W.manuallyClosedChannel=!1});
_.Rx(W.channel,"x",function(){W.manuallyClosedChannel||(W.channelOpen=!1,W.channel=void 0,DE(W))});
_.Rx(W.channel,"z",function(b){if(b.data){w01(W);for(var T=0;T<b.data.length;T++){var L=W,h=b.data[T],Z=h.speechResults;if(Z)a:{var a=[];h=[];var m=!1;Z=_.S(Z);for(var w=Z.next();!w.done;w=Z.next()){w=w.value;if(w.noSpeech){DE(L);L.errorHandler("NO_SPEECH");break a}w.transcript!==void 0&&w.stability!==void 0&&(w.stability<L.confidenceThreshold&&(m=!0),m?h.push(w.transcript):a.push(w.transcript))}if(a.length!==0||h.length!==0)a=a.join(" "),h=h.join(" "),L.receivedEndOfUtterance&&!L.isUsingVoz?L.isUsingVoz||
L.completeHandler([a,h]):(m=L,Z=a,w=h,rK("voz_sf"),m.transcriptionUpdateHandler(Z,w),m.transcribedSpeechResults=[Z,w]),L.receivedEndOfUtterance&&(rK("voz_eou"),L.transcriptionCompleteHandler([a,h]),L.isUsingVoz&&(L.prefetchResponseTimeoutMs===0?DE(L,{logMicClosed:!1,handleStop:!0}):L.prefetchResponseTimeoutMs>0&&AeU(L)))}else L.isUsingVoz&&(h==null?0:h.internalOut)?(h=JSON.parse(h.internalOut.youtubeAssistantS3OutputJson),h.userHasOptedInToVaa||h.vaaConsent?L.vaaConsentUpdateHandler(!!h.userHasOptedInToVaa,
!!h.vaaConsent):(X0U(L),h&&(a=L.transcribedSpeechResults,rK("voz_rqf"),L.completeHandler(a,h)))):h.eventType==="END_OF_UTTERANCE"?L.receivedEndOfUtterance=!0:(rK("voz_err"),L.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.z5(Error("bl")))}}});
_.Rx(W.channel,"y",function(b){DE(W);switch(b.status){case 1:b="WEBCHANNEL_NETWORK_ERROR";break;case 2:b="WEBCHANNEL_SERVER_ERROR";break;default:b="WEBCHANNEL_UNKNOWN_ERROR"}W.errorHandler(b);W.logError(Error(b))})};
B4.prototype.logError=function(W){_.Dt(W)};
B4.prototype.isOnline=function(){return!0};
var AeU=function(W){X0U(W);W.prefetchResponseSetTimeoutId=setTimeout(function(){DE(W,{logMicClosed:!1,handleStop:!0})},W.prefetchResponseTimeoutMs)},X0U=function(W){W.prefetchResponseSetTimeoutId>-1&&(clearTimeout(W.prefetchResponseSetTimeoutId),W.prefetchResponseSetTimeoutId=-1)},YZP=function(W){w01(W);
W.noResponseReceivedTimeout=window.setTimeout(function(){DE(W);W.errorHandler("NO_SPEECH")},11E3)},w01=function(W){W.noResponseReceivedTimeout>-1&&(window.clearTimeout(W.noResponseReceivedTimeout),W.noResponseReceivedTimeout=-1)},rK=function(W){_.Bg(W,void 0,"voice_assistant")};var xK=function(){B4.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.R(xK,B4);xK.prototype.isSupported=function(){return fu7()};
xK.prototype.startAudio=function(){var W=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.vi(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(T){Uh2(W,T)};
this.processor.connect(this.audioContext.destination);var O=function(T){W.stream=T;if(!W.audioContext)return _.ZM(null);T=W.audioContext.createMediaStreamSource(T);W.processor&&T.connect(W.processor);return _.ZM(null)},b={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?O(this.stream):navigator.mediaDevices.getUserMedia(b).then(O).catch(function(T){DE(W);T.name&&T.name==="NotAllowedError"?W.errorHandler("NO_MICROPHONE_PERMISSION"):(W.errorHandler("AUDIO_ERROR"),W.logError(T));return _.vi(null)});
return B4.prototype.startAudio.call(this)};
xK.prototype.stopAudio=function(W){W=W===void 0?!0:W;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(O){O.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;B4.prototype.stopAudio.call(this,W)};
xK.prototype.isOnline=function(){return navigator.onLine};
var Uh2=function(W,O){if(W.audioContext)if(window.OfflineAudioContext){var b=W.audioContext.sampleRate,T=O.inputBuffer.getChannelData(0);O=new window.OfflineAudioContext(1,T.length,16E3);for(var L=O.createBuffer(1,T.length,b),h=L.getChannelData(0),Z=0,a=0;a<T.length;a++)h[a]=T[a],Z+=h[a]*h[a];!W.audioDetected&&Math.sqrt(Z/T.length)>.01&&(W.audioDetected=!0,W.audioDetectedHandler());T=O.createBufferSource();T.buffer=L;T.connect(O.destination);T.start(0);O.oncomplete=function(m){m=m.renderedBuffer.getChannelData(0);
for(var w=Math.floor(16384E3/b),A=new Int16Array(w),X=0;X<w;++X)A[X]=Math.max(-1,Math.min(1,m[X]))*32767;E_B(W,A.buffer)};
O.startRendering()}else lz1(W,O)},lz1=function(W,O){var b=W.audioContext.sampleRate,T=O.inputBuffer.getChannelData(0),L=Math.floor((b+8E3)/16E3);
b=T.length/L;O=new Float32Array(b);for(var h=0;h<b;++h)O[h]=T[h*L];T=new Int16Array(b);for(L=0;L<b;++L)T[L]=Math.max(-1,Math.min(1,O[L]))*32767;E_B(W,T.buffer)};var eIU={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var PH2=function(){this.JSC$17710_audioEnabled=!0;this.audioFeedbackHolder={}};
PH2.prototype.isPlaying=function(W){return W.currentTime>0&&!W.paused&&!W.ended&&W.readyState>2};
var p01=function(W){for(var O=_.S(Object.values(eIU)),b=O.next();!b.done;b=O.next())b=b.value,W.audioFeedbackHolder[b]=new Audio,W.audioFeedbackHolder[b].src="/s/search/audio/"+b+".mp3",W.audioFeedbackHolder[b].load()},zd=function(W,O){if(W.JSC$17710_audioEnabled!==!1&&O in W.audioFeedbackHolder){for(var b=_.S(Object.values(W.audioFeedbackHolder)),T=b.next();!T.done;T=b.next())T=T.value,W.isPlaying(T)&&T.pause();
W.audioFeedbackHolder[O].currentTime=0;W.audioFeedbackHolder[O].play().catch(function(){})}};var RIR=function(W,O){var b=this;this.store=W;this.service=O;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){b.setState("offline");b.stop()};
this.audioPlayer=new PH2;var T;(T=this.audioPlayer)==null||p01(T)};
_.d=RIR.prototype;_.d.getService=function(){return this.service};
_.d.isEnabled=function(){return!!this.service};
_.d.isSupported=function(){var W;return(W=this.service)==null?void 0:W.isSupported()};
_.d.start=function(){var W=this,O,b,T,L,h,Z,a,m,w,A,X,l,p;return _.I(function(K){switch(K.nextAddress){case 1:W.store.dispatch(vyR("",""));if(!navigator.onLine)return W.setState("offline"),K.return();window.addEventListener("offline",W.handleOfflineEvent);W.stream=null;if(!W.permissionsSupported){K.jumpTo(2);break}_.LI(K,3);return _.Y(K,Kgk(W),5);case 5:O=K.yieldResult;if(!O)return(b=W.audioPlayer)==null||zd(b,"failure"),K.return();W.service.stream=W.stream;W.setState("listening");_.H3(K,2);break;
case 3:_.ID(K),W.permissionsSupported=!1;case 2:T={context:_.IMT(_.iP())},T.youtubeAssistantParams={searchParams:{inlineSearchResponse:W.enableInlineSearchResponse}},L=function(k,r){W.store.dispatch(gyP("transcribing"));W.store.dispatch(vyR(k,r))},h=function(){var k;
(k=W.audioPlayer)==null||zd(k,"open");W.setState("listening")},Z=function(){W.setState("transcribing")},a=function(k){W.setErrorState(k)},m=function(k,r){var q;
(q=W.audioPlayer)==null||zd(q,"success");r&&(_.e("kevlar_voice_search_inline_search")&&(W.responseProcessor=_.iq().resolve(_.aa1),W.responseProcessor&&(q=r.navigationAction,k=r.prefetchedSearchResponse,q&&k&&(q=(new _.ok$).JSC$11005_getStoreKey(q),_.nD(W.responseProcessor,k,q)))),W.JSC$17728_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",r))},w=function(){window.removeEventListener("offline",W.handleOfflineEvent)},A=_.lMQ(!1),X=A.Authorization!=null,l=W.enableFirstPartyAuth||
W.enableFPAForSignedInUsers&&X?A:{"X-Goog-Visitor-Id":A["X-Goog-Visitor-Id"]},p={completeHandler:m,
errorHandler:a,listeningHandler:h,audioDetectedHandler:Z,stopHandler:w,transcriptionUpdateHandler:L,youtubeAssistantRequest:T,languageCode:v_P(),additionalHeaders:l,supportsCrossDomainXhr:W.enableFirstPartyAuth||W.enableFPAForSignedInUsers&&X,supportsHttpHeadersOverwriteParam:!W.disableHttpHeadersOverwrite},W.service.start(p),_.aD(K)}})};
_.d.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.d.reset=function(){this.store.dispatch(_.Tc({type:"RESET_VOICE_SEARCH_STATE"}))};
_.d.setState=function(W){this.store.dispatch(gyP(W))};
_.d.setErrorState=function(W){switch(W){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var O;(O=this.audioPlayer)==null||zd(O,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)Kgk(this);else{var b;(b=this.audioPlayer)==null||zd(b,"failure");this.setState("permission-denied")}break;case "ABORTED":var T;(T=this.audioPlayer)==null||zd(T,"no_input");break;default:var L;(L=this.audioPlayer)==
null||zd(L,"no_input");this.setState("timeout")}};
var Kgk=function(W){var O,b;return _.I(function(T){switch(T.nextAddress){case 1:return _.Y(T,navigator.permissions.query({name:"microphone"}),2);case 2:O=T.yieldResult;if(O.state==="granted")return T.return(!0);if(O.state==="denied")return W.setState("permission-denied"),T.return(!1);W.setState("permission");b={audio:{sampleSize:16,channelCount:1},video:!1};_.LI(T,3);return _.Y(T,navigator.mediaDevices.getUserMedia(b),5);case 5:return W.stream=T.yieldResult,T.return(!0);case 3:return _.ID(T),W.setState("permission-denied"),
T.return(!1)}})},v_P=function(){var W=_.Cv("INNERTUBE_CONTEXT_HL"),O=_.Cv("INNERTUBE_CONTEXT_GL");
return W.indexOf("-")>-1?W:W+"-"+O};var g_D=function(W,O,b){RIR.call(this,O,b);this.JSC$17728_actionRouter=W;this.enableInlineSearchResponse=_.e("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.e("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.e("kevlar_voice_search_enable_fpa_signedin_users")},o_D;
_.R(g_D,RIR);
var QLg=function(){if(!o_D){var W="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.e("kevlar_voice_search_auth_enabled")||_.e("kevlar_voice_search_use_yt_endpoint")?W="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.e("kevlar_voice_search_use_fp_endpoint")&&(W="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");o_D=
new g_D(_.$G.getInstance(),_.uv(),new xK(_.Cv("VOZ_API_KEY"),W,.5))}return o_D};var kzg=function(W){this.JSC$17732_clientRoot=W;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17732_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)]]));W=_.S(this.eventListeners);for(var O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;b=_.S(b);for(var T=b.next();!T.done;T=b.next()){var L=
_.S(T.value);T=L.next().value;L=L.next().value;O.addEventListener(T,L)}}_.Vj(_.$G.getInstance(),this.autonavPauseActionMap,this.JSC$17732_clientRoot)},sL1,BBU=function(W){return _.e("kevlar_autonav_popup_filtering")?(W=_.Md(W))?W.hasAttribute("prevent-autonav"):!0:!0};
_.d=kzg.prototype;_.d.onIronOverlayOpened=function(W){BBU(W)&&(this.autonavPauseReasons.overlayOpen=!0,Ct(this))};
_.d.onIronOverlayClosed=function(W){BBU(W)&&(this.autonavPauseReasons.overlayOpen=!1,Ct(this))};
_.d.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Ct(this)};
_.d.onYtAutonavPauseBlur=function(){var W=this;_.sF.addJob(function(){W.isInBackground()||(W.autonavPauseReasons.inputBoxFocus=!1,Ct(W))},8,0)};
_.d.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Ct(this)};
_.d.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Ct(this)};
_.d.onYtAutonavPauseScroll=function(){var W=_.iq().resolve(_.cs);W.isOnWatch()&&(W=W.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=W.getBoundingClientRect().top<-200,Ct(this))};
_.d.onYtAutonavPauseUserEngagement=function(W){var O=this;if(_.e("user_engagement_enable_autoplay_pause_feature")){var b=Number(W.lowEngagementThresholdMs);isNaN(b)||b<=0||W.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.iq().resolve(_.Qa),_.by()<b?_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.lk7()?(this.userEngagementCsn=_.Bb(),_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
O.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Ct(this)):_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Rb1(Error("cl`"+JSON.stringify(W)))};
_.d.onYtAutonavPausePlayer=function(W){this.autonavPauseReasons.requestedByPlayer=!!W.detail;Ct(this)};
_.d.onYtAutonavVisibilityChanged=function(){var W=this,O,b,T;return _.I(function(L){if(L.nextAddress==1)return(O=_.ya())?_.Y(L,O.getPlayerPromise(),2):L.return();b=L.yieldResult;T=b.isMuted()||b.getVolume()===0;W.autonavPauseReasons.backgroundAndMute=W.isInBackground()&&T;Ct(W);_.aD(L)})};
_.d.onYtAutonavPausePlayerEnded=function(){_.iq().resolve(_.Qa);var W=144E5;_.e("user_engagement_enable_autoplay_pause_feature")||_.e("is_part_of_any_user_engagement_experiment")||(W=45E5);this.autonavPauseReasons.longIdle=_.by()>W;re8(this);Ct(this)};
_.d.onYtUserActivity=function(){var W=this;this.autonavPauseReasons.userEngagement&&(_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",W.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Ct(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",W.userEngagementCsn);_.re()}),this.autonavPauseReasons.youthereLactExperiment=!1,Ct(this));
this.autonavPauseReasons.longIdle&&!_.e("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Ct(this))};
_.d.isInBackground=function(){var W=window.document.visibilityState;return!(!W||W==="visible")};
var Ct=function(W){for(var O=!1,b=_.S(Object.values(W.autonavPauseReasons)),T=b.next();!T.done;T=b.next())T=T.value,O=O||T;O?_.NN.getInstance().pause(W.autonavPauseReasons):(W=_.NN.getInstance(),W.autonavState_==3?(W.setState(2,!1,!1),W.autonavPauseReason_=void 0):W.autonavState_==1&&(W.disabledAutonavPauseReason_=void 0))},re8=function(W){var O=!1;
if(_.e("enable_autoplay_pause_by_lact")){_.iq().resolve(_.Qa);O=_.Lu("autoplay_pause_by_lact_sec")*1E3;var b=_.Lu("autoplay_pause_by_lact_sampling_fraction");(O=_.by()>=O&&Math.random()<b)&&!_.lk7()&&(_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),O=!1)}O!==W.autonavPauseReasons.youthereLactExperiment&&(W.autonavPauseReasons.youthereLactExperiment=O)&&(W.userEngagementCsn=_.Bb(),_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",W.userEngagementCsn)}));
W.autonavPauseReasons.userEngagement&&_.KB(_.sF,function(){_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",W.userEngagementCsn)})};
kzg.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.MW("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.re(),this.autonavPauseReasons.youthereLactExperiment=!1,Ct(this));this.autonavPauseReasons.userEngagement&&(_.MW("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Ct(this))};
kzg.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var q0=function(){var W=_.n.apply(this,arguments)||this;W.miniGuideVisible=!1;W.guideOpened=_.e("disable_initial_guide_state_fix")?!1:W.canFitPersistentGuide(W.initialBodyClientWidth);W.guideUserStateOpened=W.getInitialGuideUserStateOpened();W.isFullscreenShorts=!1;W.miniGuideWidthThreshold=_.Lu("kevlar_mini_guide_width_threshold",791);W.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");W.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
W.persistentGuideBlockedPagePathRegex=new RegExp(W.persistentGuideBlockedPagesPatterns.join("|"));W.animationTransitionDuration=0;W.lateDataResolver=_.$S();W.initialGuideDataFetchFailed=!1;W.initialLoad=!0;W.guideRenderers=new Set;W.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return W};
_.R(q0,_.n);_.d=q0.prototype;_.d.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.d.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.d.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.d.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.d.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.d.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.d.ready=function(){_.iq().addProvider({provide:_.zl,useValue:this.hostElement})};
_.d.attached=function(){var W=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.Ii(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.Ii(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.Ii(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.Ii(this,this.onYtGuideShow));_.My(this,function(){W.animationTransitionDuration=200})};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ii(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.Ii(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.Ii(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.Ii(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.Ii(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.Ii(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.Ii(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.d.getData=function(){return this.data};
_.d.load=function(){var W=this,O,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=W.lateDataResolver.resolve.bind(W),h.return(W.lateDataResolver.promise);if(window.ytInitialGuideData)return O=_.$S(),O.resolve(window.ytInitialGuideData),h.return(O.promise);T=!1;_.LI(h,2);return _.Y(h,W.fetchGuideData(),4);case 4:b=h.yieldResult;_.H3(h,3);break;case 2:L=_.ID(h),L.message==="Returned error"&&(T=!0);
case 3:if(b)return h.return(b);W.onYtGuideClose();T||(W.initialGuideDataFetchFailed=!0);return h.return(W.lateDataResolver.promise)}})};
_.d.fetchGuideData=function(){var W=this,O,b,T,L,h,Z,a;return _.I(function(m){if(m.nextAddress==1)return O=_.iq(),W.guidePromise||(b=O.resolve(_.sP),W.guidePromise=_.tP(b,qPZ)),_.Y(m,W.guidePromise,2);if(m.nextAddress!=3)return T=m.yieldResult,L=O.resolve(_.GQ),_.Y(m,L(),3);(h=m.yieldResult)&&((Z=T)==null?void 0:(a=Z.responseContext)==null?void 0:a.maxAgeSeconds)!==0&&h.put("service:guide:fallback",new _.L1({innertubeResponse:T}));return m.return(T)})};
_.d.initializeGuideDataIfEmpty=function(){var W=this,O,b;return _.I(function(T){if(T.nextAddress==1){if(!W.initialGuideDataFetchFailed||W.data)return T.return();_.LI(T,2);return _.Y(T,W.fetchGuideData(),4)}if(T.nextAddress!=2)return(O=T.yieldResult)&&W.lateDataResolver.resolve(O),_.H3(T,0);b=_.ID(T);_.z5(b);_.aD(T)})};
_.d.initializeGuideData=function(){var W=this,O;return _.I(function(b){switch(b.nextAddress){case 1:return _.Id(iu1(),{mainAppWeb:_.Hh()}),_.LI(b,2),_.Y(b,W.load(),4);case 4:W.data=b.yieldResult;_.H3(b,3);break;case 2:_.ID(b),_.ad(iu1(),"FAILURE");case 3:O=W.data&&W.data.items&&W.data.items.length>0?"SUCCESS":"FAILURE",_.ad(iu1(),O),_.aD(b)}})};
_.d.setGuideData=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1)return O.disabled?L.return():O.data?(W.data=O.data,O.guideRenderers.add(W),L.return()):_.Y(L,O.initializeGuideData(),2);O.graftGuideToPage();b=_.qC("IS_HOMEPAGE_COLD")?"eop":void 0;_.e("disable_element_pool_populator")?O.setGuideDataAfterInit(W):(T=new _.c0(1,b),_.FX(T,O.setGuideDataAfterInit.bind(O,W)));_.aD(L)})};
_.d.setGuideDataAfterInit=function(W){W.data=this.data;W.markDirty();this.guideRenderers.add(W);_.qe(function(){_.Bg("gle")});
_.My(this,function(){_.Bg("gpe")})};
_.d.graftGuideToPage=function(){if(this.data){var W=this.data&&this.data.trackingParams;W&&(W=_.Pi(W),_.Tn(_.A4(),W))}};
_.d.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.Ii(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.d.onDrawerOpenedChanged=function(W,O){!O.value&&this.guideOpened&&(this.guideOpened=!1)};
_.d.onYtGuideToggle=function(W){var O=this.guideOpened;this.guideOpened=!O;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var b=_.Xt();_.UO(0,109,!this.guideUserStateOpened);b.save()}this.updateGuideDrawerElementState();if(this.guideElement){var T;this.guideOpened&&((T=W.detail)==null?0:T.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.Ii(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.Ii(this,
this.onAppDrawerTransitioned))}O||this.initializeGuideDataIfEmpty()};
_.d.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ii(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.JS(this.guideElement)};
_.d.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.Ii(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(Rbk(this.guideOpened))};
_.d.guidePersistentAndVisibleChanged=function(){_.TU(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.d.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.d.miniGuideVisibleChanged=function(){_.TU(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.d.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(Rbk(this.guideOpened)),this.initialLoad=!1);_.TU(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.d.activeEndpointChanged=function(){_.TU(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.d.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.d.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.d.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var W=this.canFitPersistentGuide(this.cachedClientWidth);W?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=W}this.updateGuideDrawerElementState()};
_.d.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.d.getGuideOpened=function(){return this.guideOpened};
_.d.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.d.getActiveEndpoint=function(){return this.activeEndpoint};
_.d.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.d.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&&_.bX(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.d.computeGuidePersistentAndVisible=function(){var W=this;_.n2(this,"computeGuidePersistentAndVisible",function(){W.guidePersistentAndVisible=W.guideOpened&&W.guidePersistent;W.guideIsVisibleButNotPersistent=!(!W.guideOpened||W.guidePersistent)})};
_.d.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.d.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.d.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.d.startLoadingWatch=function(){this.closeGuide()};
_.d.startLoadingShorts=function(){_.e("web_hide_guide_on_shorts")&&this.closeGuide()};
_.d.onYtNavigateFinish=function(W,O){if(!_.jb||O){this.activeEndpoint=O.endpoint;this.pageType=O.pageType;this.pageUrl=O.response.url;var b,T;W=(T=_.P((b=O.endpoint)==null?void 0:b.commandMetadata,_.F9))==null?void 0:T.url;!this.pageUrl&&W&&(this.pageUrl=W);_.e("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.d.getVisibleGuideRenderer=function(){for(var W=_.S(this.guideRenderers),O=W.next();!O.done;O=W.next())if(O=O.value,this.miniGuideVisible&&O.is==="ytd-mini-guide-renderer"||this.guideOpened&&O.is==="ytd-guide-renderer")return O;return null};
_.d.markGuideRendererDirty=function(W){if(W){typeof W.markDirty==="function"&&W.markDirty();W=_.S([].concat(_.PG(_.Q(W).children)));for(var O=W.next();!O.done;O=W.next())this.markGuideRendererDirty(O.value)}};
_.d.persistentGuideEnabled=function(W,O){if(!O||W==="watch"||W==="settings"||W==="shorts"&&this.isFullscreenShorts||_.e("reels_web_disable_persistent_guide_shorts")&&W==="shorts")return!1;var b=_.mp(O)||"";return _.e("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(T){return b===T}):!this.persistentGuideBlockedPagePathRegex.test(b)};
_.d.canFitPersistentGuide=function(W){var O=_.Lu("kevlar_persistent_guide_width_threshold",1312);return O===-1||_.e("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:W>O};
_.d.canFitMiniGuide=function(W){return this.miniGuideWidthThreshold===-1?!1:W>this.miniGuideWidthThreshold};
_.d.onResize=function(){var W=this;_.n2(this,"calculateGuideState",function(){W.onResizeDebounced()})};
_.d.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.d.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.d.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.d.getInitialGuideUserStateOpened=function(){return!_.Xt().getFlag(109)};
_.Jq.Object.defineProperties(q0.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Cv("initialBodyClientWidth")||window.innerWidth}}});
q0.prototype.onResize=q0.prototype.onResize;q0.prototype.observeForMiniGuideVisible=q0.prototype.observeForMiniGuideVisible;q0.prototype.computeGuidePersistentAndVisible=q0.prototype.computeGuidePersistentAndVisible;q0.prototype.cachedClientWidthChanged=q0.prototype.cachedClientWidthChanged;q0.prototype.resetGuide=q0.prototype.resetGuide;q0.prototype.activeEndpointChanged=q0.prototype.activeEndpointChanged;q0.prototype.guideOpenedChanged=q0.prototype.guideOpenedChanged;
q0.prototype.miniGuideVisibleChanged=q0.prototype.miniGuideVisibleChanged;q0.prototype.guideIsVisibleButNotPersistentChanged=q0.prototype.guideIsVisibleButNotPersistentChanged;q0.prototype.guidePersistentAndVisibleChanged=q0.prototype.guidePersistentAndVisibleChanged;q0.prototype.onGuideElementChanged=q0.prototype.onGuideElementChanged;q0.prototype.onGuidePersistentChanged=q0.prototype.onGuidePersistentChanged;q0.prototype.onRenderGuideChanged=q0.prototype.onRenderGuideChanged;
q0.prototype.onActiveEndpointChanged=q0.prototype.onActiveEndpointChanged;q0.prototype.onMiniGuideVisibleChanged=q0.prototype.onMiniGuideVisibleChanged;q0.prototype.onGuideIsVisibleButNotPersistentChanged=q0.prototype.onGuideIsVisibleButNotPersistentChanged;q0.prototype.onGuidePersistendAndVisibleChanged=q0.prototype.onGuidePersistendAndVisibleChanged;_.t([_.D(_.vL),_.N("design:type",Object)],q0.prototype,"ironResizableBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],q0.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],q0.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"disabled",void 0);
_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"guidePersistentAndVisible",void 0);_.t([_.m5("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onGuidePersistendAndVisibleChanged",null);_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"guideIsVisibleButNotPersistent",void 0);
_.t([_.m5("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.t([_.C(),_.N("design:type",Object)],q0.prototype,"miniGuideVisible",void 0);_.t([_.m5("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onMiniGuideVisibleChanged",null);_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"forceMiniGuideClose",void 0);
_.t([_.C(),_.N("design:type",Object)],q0.prototype,"activeEndpoint",void 0);_.t([_.m5("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onActiveEndpointChanged",null);_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"renderGuide",void 0);_.t([_.m5("renderGuide"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onRenderGuideChanged",null);
_.t([_.C(),_.N("design:type",Object)],q0.prototype,"guideOpened",void 0);_.t([_.C(),_.N("design:type",Boolean)],q0.prototype,"guidePersistent",void 0);_.t([_.m5("guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onGuidePersistentChanged",null);_.t([_.C(),_.N("design:type",Object)],q0.prototype,"guideUserStateOpened",void 0);_.t([_.C(),_.N("design:type",String)],q0.prototype,"pageUrl",void 0);
_.t([_.C(),_.N("design:type",String)],q0.prototype,"pageType",void 0);_.t([_.C(),_.N("design:type",Number)],q0.prototype,"cachedClientWidth",void 0);_.t([_.C(),_.N("design:type",Object)],q0.prototype,"guideElement",void 0);_.t([_.C({selector:_.ay}),_.N("design:type",Object)],q0.prototype,"isFullscreenShorts",void 0);_.t([_.m5("guideElement"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onGuideElementChanged",null);
_.t([_.m5("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"guidePersistentAndVisibleChanged",null);_.t([_.Ul("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.t([_.m5("miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"miniGuideVisibleChanged",null);_.t([_.Ul("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"guideOpenedChanged",null);_.t([_.m5("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"activeEndpointChanged",null);
_.t([_.Ul("pageUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"resetGuide",null);_.t([_.Ul("cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"cachedClientWidthChanged",null);_.t([_.m5("guideOpened","guidePersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"computeGuidePersistentAndVisible",null);
_.t([_.Ul("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"observeForMiniGuideVisible",null);_.t([_.ai("iron-resize"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],q0.prototype,"onResize",null);q0=_.t([_.G({disableElementRegistration:!0,is:"yt-guide-manager"})],q0);var Dhk=_.H(q0,"yt-guide-manager",void 0,{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var nt=function(){var W=_.n.apply(this,arguments)||this;W.JSC$17742_keyboardInUse=!1;W.boundHandleCapturedKeydownEvent=function(O){W.handleCapturedKeydownEvent(O)};
return W};
_.R(nt,_.n);_.d=nt.prototype;_.d.attached=function(){this.listenToDocument(document)};
_.d.listenToDocument=function(W){W.addEventListener("keydown",_.Ii(this,this.onKeyDownEvent));W.addEventListener("keyup",_.Ii(this,this.onKeyUpEvent));W.addEventListener("mousedown",_.Ii(this,this.onMouseDownEvent));_.e("desktop_keyboard_capture_keydown_killswitch")||W.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.addEventListener("yt-page-data-updated",_.Ii(this,this.onPageUpdate))};
_.d.detached=function(){this.unlistenFromDocument(document)};
_.d.unlistenFromDocument=function(W){W.removeEventListener("keydown",_.Ii(this,this.onKeyDownEvent));W.removeEventListener("keyup",_.Ii(this,this.onKeyUpEvent));W.removeEventListener("mousedown",_.Ii(this,this.onMouseDownEvent));_.e("desktop_keyboard_capture_keydown_killswitch")||W.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);W.removeEventListener("yt-page-data-updated",_.Ii(this,this.onPageUpdate))};
_.d.ready=function(){_.iq().addProvider({provide:_.bD,useValue:this})};
_.d.isKeyBoardInUse=function(){return this.JSC$17742_keyboardInUse};
_.d.handleCapturedKeydownEvent=function(W){if(W.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(W)};
_.d.onMouseDownEvent=function(){this.JSC$17742_keyboardInUse=!1};
_.d.onPageUpdate=function(){if(_.e("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.e("web_shorts_keyboard_shortcut_usage_log")){_.yi.clear();for(var W=_.S(_.cr),O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;b=_.gd(b);_.yi.set(O,b);_.fV(_.Bb(),_.sk(),b)}_.WE.clear();W=_.S(_.FQ);for(O=W.next();!O.done;O=W.next())b=_.S(O.value),O=b.next().value,b=b.next().value,b=_.gd(b),_.WE.set(O,b),_.fV(_.Bb(),_.sk(),b);_.GU(_.Bb(),_.sk(),[].concat(_.PG(_.WE.values()),
_.PG(_.yi.values())));_.t3(_.Bb(),[].concat(_.PG(_.WE.values()),_.PG(_.yi.values())))}};
_.d.onMiniplayerActiveChange=function(){var W;(W=_.iq().resolve(_.xq).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(W.document):this.unlistenFromDocument(W.document))};
_.d.ignoreKeyEvent=function(W){if(W.ctrlKey||W.altKey)if(_.e("kevlar_macro_markers_keyboard_shortcut")){if(W.keyCode!==37&&W.keyCode!==39)return!0}else return!0;var O=_.Nd(W)||[];return _.pU2(O)?!0:W.defaultPrevented?(aX(W.keyCode,W.shiftKey,this.isShortsPage),!0):W.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(W):!1};
_.d.isSpacebarClick=function(W){var O=W||window.event;var b;O.composedPath&&typeof O.composedPath==="function"?b=O.composedPath():b=O.path;b&&b.length?O=b[0]:(O=O||window.event,O=O.target||O.srcElement,O.nodeType==3&&(O=O.parentNode));return O&&W.keyCode===32&&(W=O.tagName==="BUTTON"||O.tagName==="A"||O.tagName==="INPUT",O=(O=O.getAttribute("role"))&&(O==="option"||O==="button"||O.indexOf("menuitem")===0),W||O)?!0:!1};
_.d.onKeyDownEvent=function(W){if(!this.ignoreKeyEvent(W)&&(W.keyCode===191&&(W.shiftKey||W.metaKey?W.repeat!=null&&W.repeat||(this.openHotkeyDialog(),aX(W.keyCode,W.shiftKey,this.isShortsPage)):(this.focusSearchBox(),W.preventDefault())),!W.metaKey)){var O=_.iq().resolve(_.xq);switch(W.keyCode){case 9:this.JSC$17742_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(W);break;case 84:O.pipController.getWindow()&&window.focus();this.toggleTheaterMode(W.keyCode,W.shiftKey);break;case 73:O.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(W.keyCode,W.shiftKey);break;case 70:if(this.isShortsPage&&_.e("web_fullscreen_shorts")){_.K3B();break}this.isMiniplayerActive()?O.pipController.getWindow()&&(O.close(!0),window.focus()):this.passEventToPlayer(W);break;case 27:this.closeMiniplayer(W.keyCode,W.shiftKey)||this.passEventToPlayer(W);break;case 13:W.shiftKey&&_.e("web_ephemeral_actions")&&_.iq().resolve(_.SF).activate(W);break;default:this.passEventToPlayer(W)}}};
_.d.onKeyUpEvent=function(W){if(!this.ignoreKeyEvent(W))if(_.e("web_speedmaster_spacebar_control")&&W.keyCode===32)this.handlePlayerSpaceKey(W,!0);else{var O=this.getPlayerManager();O&&(O=O.getPlayer())&&O.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code)}};
_.d.getPlayerManager=function(){var W=_.ya(),O=_.iq().resolve(_.OT(_.cs));return W&&O&&O.isOnWatch()?W:null};
_.d.passEventToPlayer=function(W,O){var b=this,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return!_.e("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&b.isMiniplayerActive()?T=_.iq().resolve(_.xq).getPlayerElement():b.inlinePreviewIsActive?(L=_.TU(b.hostElement,"yt-get-inline-preview-player-action"))&&L[0]&&(T=L[0]):T=_.ya(),T?_.Y(Z,T.getPlayerPromise(),3):Z.jumpTo(0);h=Z.yieldResult;O?h.handleGlobalKeyUp(W.keyCode,W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat):h.handleGlobalKeyDown(W.keyCode,
W.shiftKey,W.ctrlKey,W.altKey,W.metaKey,W.key,W.code,W.repeat);W.keyCode!==38&&W.keyCode!==40&&aX(W.keyCode,W.shiftKey,b.isShortsPage);_.aD(Z)})};
_.d.focusSearchBox=function(){_.bX(this.hostElement,"yt-focus-searchbox")};
_.d.openHotkeyDialog=function(){_.bX(this.hostElement,"yt-open-hotkey-dialog")};
_.d.isMiniplayerActive=function(){return _.iq().resolve(_.xq).isMiniplayerActive()};
_.d.closeMiniplayer=function(W,O){return this.isMiniplayerActive()?(_.iq().resolve(_.xq).close(),aX(W,O,this.isShortsPage),!0):!1};
_.d.toggleTheaterMode=function(W,O){var b=_.vp(_.uv().getState()),T=this.getPlayerManager(),L=_.e("disable_theater_mode_keyboard")||_.qC("START_IN_FULL_WINDOW_MODE");T&&!L&&(b=!b,_.y3()&&_.e("external_fullscreen")&&(b=!0),_.jx(this.hostElement,"yt-toggle-theater-mode",[b]),aX(W,O,this.isShortsPage))};
_.d.toggleMiniplayer=function(W,O){var b=this.getPlayerManager();if(this.isMiniplayerActive()){var T;((T=_.iq().resolve(_.OT(_.cs)))==null?0:T.isOnWatch())?_.iq().resolve(_.xq).close(!0):_.X_(_.iq().resolve(_.xq));aX(W,O,this.isShortsPage)}else b&&(_.jx(this.hostElement,"yt-activate-miniplayer-from-watch-action"),aX(W,O,this.isShortsPage))};
_.d.handlePlayerSpaceKey=function(W,O){var b=!!_.ya()||this.isMiniplayerActive();b=_.e("disable_space_scroll_fix")||b;_.e("global_spacebar_pause")&&!this.isKeyBoardInUse()&&b&&(W.preventDefault(),this.passEventToPlayer(W,O))};
nt.prototype.onMiniplayerActiveChange=nt.prototype.onMiniplayerActiveChange;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],nt.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],nt.prototype,"ytdReduxBehavior",void 0);_.t([_.C({selector:_.mN8}),_.N("design:type",Boolean)],nt.prototype,"inlinePreviewIsActive",void 0);_.t([_.C({selector:_.ehZ}),_.N("design:type",Boolean)],nt.prototype,"isShortsPage",void 0);
_.t([_.C({selector:_.BS}),_.N("design:type",Boolean)],nt.prototype,"miniplayerIsActive",void 0);_.t([_.m5("miniplayerIsActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nt.prototype,"onMiniplayerActiveChange",null);nt=_.t([_.G({disableElementRegistration:!0,is:"yt-hotkey-manager"})],nt);_.H(nt,"yt-hotkey-manager",void 0,{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var ft=function(){var W=_.n.apply(this,arguments)||this;W.loopStateEntityKey_=null;W.playlistLoopStateEntity_=null;W.isShuffleNextPlaylist=!1;W.PLAYER_EVENTS_=new Map;W.playerListenersSetup_=!1;W.videoSkipJob_=0;W.canAutoAdvance_=!1;W.playerManager_=null;W.TEST_ONLY={};return W};
_.R(ft,_.n);_.d=ft.prototype;_.d.ready=function(){_.iq().addProvider({provide:_.kP,useValue:this.hostElement})};
_.d.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_)};
_.d.attached=function(){document.addEventListener("yt-navigate-start",_.Ii(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.Ii(this,this.onYtNavigateFinish_))};
_.d.detached=function(){document.removeEventListener("yt-navigate-start",_.Ii(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.Ii(this,this.onYtNavigateFinish_))};
_.d.updatePlaylistEventListeners=function(W,O){O&&!this.playerListenersSetup_?(this.playerManager_=W,this.registerPlaylistEventListeners_(W)):!O&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(W))};
_.d.setPlayer=function(W){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=W};
_.d.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.d.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.d.registerPlaylistEventListeners_=function(W){var O=this;W.getPlayerPromise().then(function(b){O.playerListenersSetup_||(O.ytPlayerListenerBehavior.listenToPlayerEvents(b,O.PLAYER_EVENTS_),O.playerListenersSetup_=!0)})};
_.d.removePlaylistEventListeners_=function(W){var O=this;W.getPlayerPromise().then(function(b){O.playerListenersSetup_&&(O.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,O.PLAYER_EVENTS_),O.playerListenersSetup_=!1)})};
_.d.setPlaylistComponent=function(W){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.Ii(this,this.onPlaylistYtNavigate_)),W&&(W.data&&this.playlistComponent.data&&W.data.playlistId==this.playlistComponent.data.playlistId?(W.loopOn=this.playlistComponent.loopOn,W.shuffleOn=this.playlistComponent.shuffleOn):(W.loopOn=!1,W.shuffleOn=!1),this.isShuffleNextPlaylist&&(W.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=W;this.playlistComponent.addEventListener("yt-navigate",
_.Ii(this,this.onPlaylistYtNavigate_))};
_.d.setAutoplayRenderer=function(W){this.autoplayData=W};
_.d.setPlaylistData=function(W){this.currentPlaylistData_=W;_.bX(this.hostElement,"yt-playlist-data-updated");_.PQ.isEmpty(W)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(W)};
_.d.setPlayerPlaybackControlData=function(W){this.playerManager_&&this.playerManager_.updatePlayerComponents(W.playlistPanelRenderer)};
_.d.getPlaylistData=function(){return this.currentPlaylistData_};
_.d.getTempData_=function(W,O){if(this.playlistComponent==null)return null;W={};this.playlistComponent.shuffleOn&&(W.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(W.loop_on=this.playlistComponent.loopOn);O&&(W.autonav="1",_.iq().resolve(_.Qa),O=_.by(),O>0&&(W.lact=O),this.playerManager_&&(O=this.playerManager_.getPlayer())&&O.shouldSendVisibilityState()&&(O=O.getVisibilityState(),O!=0&&(W.vis=O)));_.e("enable_unknown_lact_fix_on_html5")&&(_.iq().resolve(_.Qa),W.lact=
_.by());return W};
_.d.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.d.setLoopStateEntityKey_=function(W){var O;this.loopStateEntityKey_=((O=this.getPlaylistLoopData_(W))==null?void 0:O.playlistLoopStateEntityKey)||null};
_.d.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.d.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.d.skipVideo=function(){var W=this,O=_.e("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||O)O=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Xg(_.sF,function(){W.onPlaylistNext();W.videoSkipJob_=0},O)};
_.d.cancelVideoSkip=function(){this.videoSkipJob_&&(_.sF.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.d.isInBackground_=function(){var W=window.document.visibilityState;return!(!W||W=="visible")};
_.d.onPlaylistIndex_=function(W){this.playlistComponent&&(W=this.playlistComponent.data.contents[W].playlistPanelVideoRenderer.navigationEndpoint,_.bX(this.hostElement,"yt-navigate",{endpoint:W,tempData:this.getTempData_(W)}))};
_.d.onPlayerStateChange_=function(W){if(W=W==0&&this.playlistComponent&&this.canAutoAdvance_)W=_.NN.getInstance(),W=!(W.autonavState_===3?W.autonavPauseReason_&&W.autonavPauseReason_.inputBoxFocus===!0:W.autonavState_===1&&W.disabledAutonavPauseReason_&&W.disabledAutonavPauseReason_.inputBoxFocus===!0);W&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.d.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.d.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.d.navigateToAutoplayWatchEndpoint_=function(W,O,b){var T=this.playlistComponent.data.currentIndex,L=this.getNumPlayableVideos_();W=="NORMAL"&&O=="autoplayVideo"&&T+1>=L&&b||!(W=this.getVideoEndpoint_(W,O))||(b=this.getTempData_(W,b),_.bX(this.hostElement,"yt-navigate",{endpoint:W,tempData:b}))};
_.d.getNumPlayableVideos_=function(){for(var W=0,O=_.S(this.playlistComponent.data.contents||[]),b=O.next();!b.done;b=O.next())b.value.playlistPanelVideoRenderer&&(W+=1);return W};
_.d.getVideoEndpoint_=function(W,O){if(this.autoplayData&&this.autoplayData.sets)for(var b=0,T=this.autoplayData.sets.length;b<T;b++){var L=this.autoplayData.sets[b];if(L.mode==W){if(L[O])return L[O];break}}else W=new _.pu("AutoplayData is undefined in playlist manager","Mode: "+W+" endpoint: "+O),_.z5(W)};
_.d.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.d.onPlaylistYtNavigate_=function(W){if(W.detail.endpoint){W.stopPropagation();var O=W.detail;O.tempData=this.getTempData_(W.detail.endpoint);_.bX(this.hostElement,"yt-navigate",O)}};
_.d.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.d.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.d.playlistLoopStateEntityChanged_=function(W){var O=this,b,T,L;return _.I(function(h){if(h.nextAddress==1){if(!W)return h.return();b=W.state==="PLAYLIST_LOOP_STATE_ONE";return O.playerManager_?_.Y(h,O.playerManager_.getPlayerPromise(),3):h.jumpTo(2)}h.nextAddress!=2&&(T=h.yieldResult,T.setLoopVideo(b));L=W.state==="PLAYLIST_LOOP_STATE_ALL";O.playlistComponent&&(O.playlistComponent.loopOn=L);_.aD(h)})};
_.d.getPlaylistLoopData_=function(W){var O,b;if(W=W==null?void 0:(O=W.playlistButtons)==null?void 0:(b=O.menuRenderer)==null?void 0:b.topLevelButtons)for(O=_.S(W),b=O.next();!b.done;b=O.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer};
_.d.getLoopStateCommand_=function(W){var O=this.getPlaylistData(),b;O=((b=this.getPlaylistLoopData_(O))==null?void 0:b.states)||[];var T;W=(T=_.P(O[W?1:2],_.Mb5))==null?void 0:T.button;var L;return(L=_.P(W,_.s2))==null?void 0:L.command};
_.d.onPlayerLoopChange_=function(W){this.playlistLoopStateEntity_&&(W?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(W=this.getLoopStateCommand_(W))&&this.ytComponentBehavior.resolveCommand(W)};
_.d.onSleepTimerSettingsChanged_=function(W){this.canAutoAdvance_=W!=="End of video"};
ft.prototype.onPlaylistLoopStateEntityChanged=ft.prototype.onPlaylistLoopStateEntityChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ft.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],ft.prototype,"ytPlayerListenerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ft.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ft.prototype,"loopStateEntityKey_",void 0);
_.t([_.C({selectorArgs:["loopStateEntityKey_"],selector:_.UMe}),_.N("design:type",Object)],ft.prototype,"playlistLoopStateEntity_",void 0);_.t([_.m5("playlistLoopStateEntity_"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ft.prototype,"onPlaylistLoopStateEntityChanged",null);ft=_.t([_.G({disableElementRegistration:!0,is:"yt-playlist-manager"})],ft);_.H(ft,"yt-playlist-manager",void 0,{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var xh1,zIZ=function(){if(xh1!==void 0)return xh1;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return xh1=W};var Gd=function(){var W=_.n.apply(this,arguments)||this;W.lastCallback=null;W.getAccountLinkPromises={};W.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);W.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return W};
_.R(Gd,_.n);_.d=Gd.prototype;_.d.getLocation=function(){return window.location.href};
_.d.getCompletionUrl=function(){return _.ue(this.getLocation())};
_.d.containsRedirectState=function(W){return(W=_.Rd(_.F6O(W)))?(new URLSearchParams(W)).get("redirect_state")!==null:!1};
_.d.createGalConfig=function(W,O){var b=new VE7;W=b=O?this.getPopupOrRedirectSetting(b,_.Cv("LINK_API_KEY"),_.Cv("LINK_API_KEY_REDIRECT"),W):Nd8(b,_.Cv("LINK_API_KEY"));W.authUser=_.Cv("SESSION_INDEX")||0;W.supportedFlows=new Set([4]);return W.build()};
_.d.getPopupOrRedirectSetting=function(W,O,b,T){this.isGalInteractionPopupMode(T)?(W.interactionMode=0,W=Nd8(W,O)):(W.interactionMode=1,O=this.getCompletionUrl(),W.completionUrl=O,W=Nd8(W,b));return W};
_.d.isGalInteractionPopupMode=function(W){if(this.redirectModeProviderAllowlist.has(W))switch(W){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.e("main_web_redirect_integration_riot");default:return!1}return!0};
_.d.getStatusEntityKeyForProviderId=function(W){return _.Z5(W+":all","accountLinkStatusEntity")};
_.d.findNestedPropValue=function(W,O){var b=!1,T=null;JSON.stringify(W,function(L,h){b||L!==O||(b=!0,T=h);return b?null:h});
return T};
_.d.findAccountLinkButtonViewModel=function(W,O){var b=null,T=!1;JSON.stringify(W,function(L,h){T||h.accountLinkStatusEntityKey!==O||h.accountLinkStatusSecondaryEntityKey||(T=!0,b=h);return T?null:h});
return b};
_.d.executeLinkingSuccessOrFailureCommands=function(W,O,b){var T=null,L;(O==null?0:(L=O.url)==null?0:L.includes("account_sharing"))?T=O==null?void 0:O.response:T=O==null?void 0:O.response;(O=this.findAccountLinkButtonViewModel(T,W))?(W=b?this.findNestedPropValue(O,"onSuccessCommand"):this.findNestedPropValue(O,"onFailureCommand"))?_.a5([W],this.hostElement):_.HU(Error("dl")):_.HU(Error("el`"+W))};
_.d.handleInitializeRequest=function(W,O){var b=this,T=oG5(this.createGalConfig(W,!0));this.containsRedirectState(this.getLocation())?EGN(W,T.config,T.galService).then(function(L){var h=b.getStatusEntityKeyForProviderId(W);if(L.statusCode===1)O&&b.executeLinkingSuccessOrFailureCommands(h,O,!0),L=b.getLocation().indexOf("#"),L!==-1&&window.history.pushState(null,"",b.getLocation().substring(0,L));else return O&&b.executeLinkingSuccessOrFailureCommands(h,O,!1),Promise.reject(Error(L.statusMessage))}).catch(function(L){_.z5(L);
_.BZ("gamingAccountLinkStatusChanged",{serviceId:W,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(L)}):this.getAccountLinkPromises[W]=T.startLinkingSession({serviceId:W})};
_.d.handleAccountLinkCommand=function(W){_.P(W,z45)&&this.handleLinkRequest(_.P(W,z45))};
_.d.handleLinkRequest=function(W){var O=this,b=W.thirdPartyId;if(b)if(this.isGalInteractionPopupMode(b)){var T=function(){O.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onFailureCommand)},L=function(){O.closeAndFire("ytd-gaming-account-link-setting-renderer",W.onSuccessCommand)};
this.lastCallback=L;this.getAccountLinkPromises[b].then(function(h){KoB(h).then(function(Z){Z.statusCode===1?L():T()})}).catch(function(){T()})}else this.getAccountLinkPromises[b].then(function(h){KoB(h).then(function(Z){if(Z.statusCode!==1)return Promise.reject(Error(Z.statusMessage))})}).catch(function(h){_.z5(h);
_.BZ("gamingAccountLinkStatusChanged",{serviceId:b,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(h)})};
_.d.closeAndFire=function(W,O){_.jx(this.hostElement,"yt-close-popup-action",[W]);O&&_.a5([O],this.hostElement)};
_.d.handleAccountUnlinkCommand=function(W){_.P(W,CKB)&&this.handleUnlinkRequest(_.P(W,CKB))};
_.d.handleUnlinkRequest=function(W){var O=this,b=W.thirdPartyId;if(b){var T=function(){O.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onFailureCommand)},L=function(){O.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",W.onSuccessCommand)};
this.lastCallback=L;var h=oG5(this.createGalConfig(b,!1));this.unlinkUserGal(h,b).then(function(Z){Z.statusCode===1?L():T()}).catch(function(){T()})}};
_.d.unlinkUserGal=function(W,O){return W.deleteLink(O)};
_.d.handleLogAccountLinkingEventCommand=function(W){_.e("enable_gel_log_commands")&&_.P(W,q9P)&&(W=_.P(W,q9P).event)&&_.BZ("gamingAccountLinkStatusChanged",W)};
_.Jq.Object.defineProperties(Gd,{template:{configurable:!0,enumerable:!0,get:function(){return zIZ()}}});
_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],Gd.prototype,"ytOpenPopupBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Gd.prototype,"ytActionHandlerBehavior",void 0);Gd=_.t([_.G({disableElementRegistration:!0,is:"ytd-third-party-manager"})],Gd);_.H(Gd,"ytd-third-party-manager",function(){return zIZ()},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var CHD,qZU=function(){return CHD!==void 0?CHD:CHD=document.createElement("template")};
document.head.appendChild(qZU().content);var n_2,fzN=function(){if(n_2!==void 0)return n_2;var W=document.createElement("template");_.v(W,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");W.content.insertBefore(qZU().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return n_2=W};var GzD=_.ts(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),H4=function(){var W=_.n.apply(this,arguments)||this;W.currentPage=void 0;W.renderLoadingStateJobId=0;W.updatePageDataJobId=0;W.pageDisposeJobsets=new WeakMap;W.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"};W.applyZoomTransition=_.dO("web_page_transition_type")==="zoom";W.applySlideTransition=_.dO("web_page_transition_type")==="slide";W.TEST_ONLY=void 0;return W};
_.R(H4,_.n);_.d=H4.prototype;_.d.ready=function(){var W=_.iq();W.addProvider({provide:_.cs,useValue:this});W.addProvider({provide:_.yfH,useValue:this})};
_.d.created=function(){this.pagePool=new ZmD;this.contextSwitcher=new pHg};
_.d.attached=function(){_.bX(this.hostElement,"attached");var W=_.iq().resolve(_.OT(_.k1));W&&(this.contextSwitcher.JSC$17566_networkService_=W);this.viewTransitionManager=_.iq().resolve(_.OT(_.Aw));this.setupPageTransitionAnimation()};
_.d.getPageOffset=function(W){return W.getScrollTop()};
_.d.setPageOffset=function(W,O){try{W.setScrollTop(O)}catch(b){}};
_.d.setPageOffsetForNavigation=function(W,O){_.bX(this.hostElement,"yt-navigate-set-page-offset",{page:W,offset:O===void 0?0:O})};
_.d.pauseActiveContext=function(){var W=this.contextSwitcher;W.activeContext_&&W.activeContext_.pause()};
_.d.getModuleNameForType=function(W){return W==="watch"?_.e("kevlar_watch_fixie")?"watchFixie":_.e("kevlar_watch_grid")?"watchGrid":"watchFlexy":W==="shorts"||W==="search"?W:"browse"};
_.d.attachPage=function(W){var O,b=!_.e("pc_is_attached_ks")&&(W==null?void 0:(O=W.polymerController)==null?void 0:O.isAttached);if(!W.isAttached&&!b)try{_.Q(this.hostElement).appendChild(W)}catch(L){var T;_.z5(new _.pu("Error attaching page element for component",{origin:(T=this.currentPage)==null?void 0:T.is,component:W.is}))}};
_.d.setActivePage=function(W){var O=this,b=!1,T=function(){var L=O.isOnWatch(),h=O.currentPage;if(W)if(W!==O.currentPage){h&&(h.hidden=!0,h.active=!1,h.removeAttribute("role"));O.currentPage=W;var Z,a=_.EP((Z=O.data)==null?void 0:Z.endpoint);h&&_.bX(O.hostElement,"yt-page-type-changed",{oldPageType:h.is,newPageType:W.is,newPageSubtype:a});_.$I().dispatch(_.Tc({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:W.is}));_.$I().dispatch(_.Tc({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:a||""}));W.hidden=
!1;O.attachPage(W);W.active=!0;W.setAttribute("role","main");h&&O.setPageOffsetForNavigation(W,0);_.e("kevlar_remove_page_dom_on_switch")&&!L&&h&&_.Q(O.hostElement).removeChild(h)}else b=!0;else L=new _.pu("Unable to set active page",h?h.is:"unknown origin",(a=O.data)==null?void 0:a.endpoint),_.Dt(L)};
this.viewTransitionManager?Ni8(this.viewTransitionManager,T,this.viewTransitionConfigForSetActivePage(this.currentPage,W)):T();return b};
_.d.viewTransitionConfigForSetActivePage=function(W,O){return _.e("web_thumbnail_to_watch_transition")&&(W==null?void 0:W.is)==="ytd-browse"&&this.isWatchPage(O)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(W==null?void 0:W.is)==="ytd-browse"&&(O==null?void 0:O.is)==="ytd-browse"&&W!==O?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.d.updatePageData=function(W){var O=this,b=this.data;this.updatePageDataJobId&&_.sF.cancelJob(this.updatePageDataJobId);this.data=W;return new _.mJ(function(T){var L=function(){W.filler?O.performDataUpdate(W,b):IQP(function(){O.performDataUpdate(W,b)});
var m=_.BH();_.rk(m,"cr")||m.processSignal("cr");T()},h=function(){W&&W.page==="watch"?O.updatePageDataJobId=_.Xg(_.sF,L):L()};
if(_.e("kevlar_enable_mss_page_modules_client")&&W){var Z=_.iq().resolve(_.CD),a=O.getModuleNameForType(W.page);(Z=$eB(Z,[a]))?Z.then(h):h()}else h()})};
_.d.isDownloadsPage=function(W){var O,b;return(W==null?void 0:(O=W.endpoint)==null?void 0:(b=O.browseEndpoint)==null?void 0:b.browseId)==="FEdownloads"};
_.d.setPlayerSyncInterval=function(W){var O;return _.I(function(b){if(b.nextAddress==1)return _.Y(b,_.iq().resolve(_.jk),2);O=b.yieldResult;O.setUpPositionSyncInterval(W);_.aD(b)})};
_.d.performDataUpdate=function(W,O){_.e("kevlar_early_popup_close")||_.jx(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var b=!W.filler;b&&(_.Bg("lps"),_.e("config_age_report_killswitch")||CqD());var T=OX(W),L,h=!1;if(_.e("kevlar_remove_page_dom_on_switch")){var Z=O&&OX(O);T===Z&&(L=this.getCurrentPage())}L||(L=sb(this.pagePool,T));b&&Yl5(this.pagePool.elementPoolPopulator,T);b&&!this.renderLoadingStateJobId&&(h=this.setActivePage(L));if(L){Z=T==="watch";var a=
T==="shorts",m=T==="learning_journey_watch";_.e("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(L);if(Z||a||m)L.playerData=W.playerResponse;if(a){W.reelWatchSequenceResponse?L.reelWatchSequenceResponse=W.reelWatchSequenceResponse:W.cachedReelWatchSequenceResponse?L.reelWatchSequenceResponse=W.cachedReelWatchSequenceResponse:_.e("web_enable_cached_reel_sequence_fix")&&L.cachedReelWatchSequenceResponse&&!L.reelWatchSequenceResponse&&(L.reelWatchSequenceResponse=L.cachedReelWatchSequenceResponse);
L.currentEndpoint=W.endpoint;var w;L.isPreviousPageShorts=!!(O==null?0:(w=O.endpoint)==null?0:w.reelWatchEndpoint);W.cachedReelWatchSequenceResponse=W.reelWatchSequenceResponse||W.cachedReelWatchSequenceResponse||(O==null?void 0:O.cachedReelWatchSequenceResponse);L.cachedReelWatchSequenceResponse=W.cachedReelWatchSequenceResponse}w=this.isDownloadsPage(W);var A=this.isDownloadsPage(O);w&&!A?this.setPlayerSyncInterval(6E5):!w&&A&&this.setPlayerSyncInterval();_.e("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(W,L,b,Z,a,m);MlD(_.iq().resolve(_.xq),O,W);_.J5(_.iq().resolve(_.Qa));_.e("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(L);b?(b=typeof L.loadPage,b==="function"?(L.pageContext=RtD(this.contextSwitcher,L,L.data!==W.response),b=function(){L.loadPage(W.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&L.is==="ytd-browse"&&h&&this.isDifferentBrowseId(W==null?void 0:W.endpoint,O==null?void 0:O.endpoint)?
this.applySlideTransition?Ni8(this.viewTransitionManager,b,{transitionName:"slide"}):Ni8(this.viewTransitionManager,b,{transitionName:"zoom"}):b()):_.xG(new _.pu("b/38014653 ",[T,
L.is,L.nodeName,b,L.isAttached,O&&OX(O),this.hostElement.children.length])),_.Bg("pdl")):(L.hidden=!0,W.response.filler=!0,L.data=W.response,this.attachPage(L));_.bX(this.hostElement,"yt-page-data-updated",{pageType:T})}_.KB(_.sF,function(){_.e("logging_avoid_blocking_during_navigation")&&_.J12().transition("none");var X=nPB(),l=L;if(W){var p=Up9(W),K=luP(W),k;a:{if(W.playerResponse){var r=W.playerResponse,q;if((k=r.auxiliaryUi)==null?0:(q=k.messageRenderers)==null?0:q.upsellDialogRenderer){k=r.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(W.response&&(k=W.response,(r=k.overlay)==null?0:r.upsellDialogRenderer)){k=k.overlay.upsellDialogRenderer;break a}k=void 0}var f;var M;q=(f=W.playerResponse)==null?void 0:(M=f.auxiliaryUi)==null?void 0:M.messageRenderers;f=(q==null?void 0:q.enforcementMessageViewModel)||(q==null?void 0:q.bkaEnforcementMessageViewModel);f=(f==null?void 0:f.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?f:void 0;var V;a:{if(W.response&&(M=W.response,(V=M.overlay)==null?0:V.commandWrapperPromoRenderer)){V=
M.overlay.commandWrapperPromoRenderer;break a}V=void 0}qL5(X,p,K,k,f,V,l)}})};
_.d.preparePrefetchRequest=function(W,O,b,T,L,h){var Z,a,m,w,A,X,l,p,K,k,r,q,f,M,V;return _.I(function(jQ){if(jQ.nextAddress==1)return!b||!(T||L||h)||_.e("kevlar_disable_background_prefetch")&&_.fv(_.GhP)()===0?jQ.return():(Z=_.FL(O))?_.Y(jQ,Z.getPlayerPromise(),2):jQ.return();a=jQ.yieldResult;m=_.iq().resolve(_.OT(_.k1));if(!m)return jQ.return();if(L)return w=_.j6(_.EZ),eX9(w,(A=W.endpoint)==null?void 0:A.reelWatchEndpoint,O.reelWatchSequenceResponse,a,m),jQ.return();p=(X=W.response)==null?void 0:
(l=X.responseContext)==null?void 0:l.webResponseContextExtensionData;if(!p)return jQ.return();f=(K=W.response)==null?void 0:(k=K.contents)==null?void 0:(r=k.twoColumnWatchNextResults)==null?void 0:(q=r.autoplay)==null?void 0:q.autoplay;M=_.iq().resolve(_.kP);V=_.j6(_.EZ);PmB(V,p,a,m,M,f);_.aD(jQ)})};
_.d.movePlayerToWatch=function(W){var O=this,b,T;return _.I(function(L){b=sb(O.pagePool,"watch");T=b.getPlayerContainer();W.appendTo(T);_.aD(L)})};
_.d.movePlayerToShorts=function(W){var O=this,b,T,L;return _.I(function(h){b=sb(O.pagePool,"shorts");T=b.getPlayerContainer();(L=W)==null||L.appendTo(T,void 0,!0);_.aD(h)})};
_.d.getPlayerFromWatch=function(){var W=sb(this.pagePool,"watch");return _.FL(W)};
_.d.getPlayerFromShorts=function(){var W=sb(this.pagePool,"shorts");return _.FL(W)};
_.d.startLoadingWatch=function(){var W=sb(this.pagePool,"watch");this.renderLoadingStateJobId?(_.sF.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(W)};
_.d.startLoadingShorts=function(){var W=sb(this.pagePool,"shorts");this.setActivePage(W)};
_.d.startLoadingLearningJourney=function(){var W=sb(this.pagePool,"learning_journey_watch");this.setActivePage(W)};
_.d.getCurrentPage=function(){return this.currentPage};
_.d.getDestinationPageType=function(){return this.destinationPageType};
_.d.getCurrentData=function(){return this.data};
_.d.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.d.isOnShorts=function(){var W;return((W=this.currentPage)==null?void 0:W.is)==="ytd-shorts"};
_.d.isWatchPage=function(W){return!!W&&(W.is==="ytd-watch-flexy"||W.is==="ytd-watch-fixie"||W.is==="ytd-watch-grid")};
_.d.preparePage=function(W,O){var b=this,T=function(){var Z=b.pagePool.preparePage(W,b.currentPage,O);Z&&b.attachPage(Z)},L=function(Z){_.CB(Z,O);
_.z5(Z)};
if(_.e("kevlar_enable_mss_page_modules_client")){var h=this.getModuleNameForType(W);if(h=$eB(_.iq().resolve(_.CD),[h])){h.then(T.bind(this)).catch(L.bind(this));return}}try{T()}catch(Z){L(Z)}};
_.d.lazyPrepareCriticalPages=function(W,O){W=_.EP(O)||W;_.e("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(W).then(this.maybePrepareWatchPage.bind(this,W)):this.maybePrepareWatchPage(W)};
_.d.maybePrepareWatchPage=function(W){W!=="watch"&&_.KB(_.sF,this.preparePage.bind(this,"watch"))};
_.d.downloadPageModules=function(W){W=this.getModuleNameForType(W);var O=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);O.delete(W);var b=_.iq().resolve(_.CD);b.JSC$16302_loadModules(W);return b.JSC$16302_loadModules.apply(b,_.PG(O))};
_.d.renderPageLoadingState=function(W,O){this.preparePage(W,O);var b=sb(this.pagePool,W);b.loadingData&&(b.loadingData.endpoint=O);b.loading=!0;this.setActivePage(b);W==="watch"&&_.bX(this.hostElement,"yt-guide-close")};
_.d.prepareForNavigation=function(W,O){var b=this;if(this.currentPage&&this.data){var T=_.EP(O)||W;this.destinationPageType=T;OX(this.data)==T&&_.bX(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(W==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.sF.cancelJob(this.renderLoadingStateJobId);_.iq().resolve(_.xq).deactivate(O);var L=this.data;this.renderLoadingStateJobId=_.pp(_.sF,function(){if(b.data!=L){var h=sb(b.pagePool,W);b.setActivePage(h)}else b.renderPageLoadingState(W,
O);b.renderLoadingStateJobId=0},150)}};
_.d.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var W=new _.c0(1);this.currentPage.pageDisposeJobs.forEach(function(O){_.FX(W,O)});
this.pageDisposeJobsets.set(this.currentPage,W)}};
_.d.flushPageDisposeJobset=function(W){var O=this.pageDisposeJobsets.get(W);O&&(O.flushJobs(),this.pageDisposeJobsets.delete(W))};
_.d.onYtStopOldPlayer=function(W,O){O=O===void 0?!1:O;var b,T=_.hL("kevlar_new_stop_old_player_logic_pages");if(_.e("kevlar_check_current_page_on_stop_old_player")&&(T.length===0||this.currentPage&&T.includes(this.currentPage.is)))if(this.data&&(b=OX(this.data)),OX(W)===b&&this.currentPage&&OX(this.currentPage.data)!==b)var L=_.FL(this.currentPage);else b=OX(this.data),L=sb(this.pagePool,b),L=_.FL(L);else this.data&&(b=OX(this.data),L=sb(this.pagePool,b),L=_.FL(L));if(L)if(W=OX(W),T=sb(this.pagePool,
W),T=_.FL(T),L==T)O&&!_.e("kevlar_disable_preemptive_player_reset")&&L.resetForNewPlayback();else if(O=b==="watch"&&W!=="watch",!O||W==="shorts"||_.rWn()&&!sW1(this.data)&&W!=="yts-products"&&W!="mini_app"&&W!="playables")b=_.iq().resolve(_.xq),O&&b.isMiniplayerActive()&&b.pipController.getWindow()||L.stop()};
_.d.setupPageTransitionAnimation=function(){var W=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){JQ(this.viewTransitionManager,"slide",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
JQ(this.viewTransitionManager,"zoom",{beforeTransition:function(){W.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){W.hostElement.style.viewTransitionName=""}});
var O=_.Lu("web_page_transition_exit_ms"),b=_.Lu("web_page_transition_wait_ms"),T=_.Lu("web_page_transition_enter_ms");if(!isNaN(O)||!isNaN(b)||!isNaN(T))if(O=qCg(GzD,O,b,T))b=document.createElement("style"),b.textContent=_.Rk2(O),document.head.appendChild(b)}};
_.d.isDifferentBrowseId=function(W,O){W=_.P(W,_.wE);O=_.P(O,_.wE);return(W==null?void 0:W.browseId)!==(O==null?void 0:O.browseId)};
_.Jq.Object.defineProperties(H4,{template:{configurable:!0,enumerable:!0,get:function(){return fzN()}}});
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],H4.prototype,"ytActionHandlerBehavior",void 0);H4=_.t([_.G({disableElementRegistration:!0,is:"ytd-page-manager"})],H4);_.H(H4,"ytd-page-manager",function(){return fzN()},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var N0=function(W,O,b){b=b===void 0?!1:b;_.R8.call(this);this.draggableElement=W;this.callbacks=O;this.allowClicks=b;this.dragOccurred=!1;this.internalDragger=new _.s$(this.draggableElement);this.dragDelay=new _.yM(this.delayedDrag.bind(this));Hm8(this);this.allowClicks&&(_.Nu7(this.internalDragger,5),W.addEventListener("click",_.Ii(this,this.validateClick),{capture:!0}))};
_.R(N0,_.R8);var Hm8=function(W){_.Rx(W.internalDragger,"earlycancel",function(){W.allowClicks&&(W.dragOccurred=!1)});
_.Rx(W.internalDragger,"start",function(O){var b,T;(T=(b=W.callbacks).onStartDrag)==null||T.call(b,O);!O.defaultPrevented&&W.allowClicks&&(W.dragOccurred=!0)});
_.Rx(W.internalDragger,"beforedrag",function(O){O.preventDefault();W.lastOffset=new _.Kw(O.clientX-W.internalDragger.startX,O.clientY-W.internalDragger.startY);W.dragDelay.start()});
_.Rx(W.internalDragger,"end",function(){W.dragDelay.stop();var O,b;(b=(O=W.callbacks).onEndDrag)==null||b.call(O);W.lastOffset=void 0})};
N0.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
N0.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.Ii(this,this.validateClick),{capture:!0})};
N0.prototype.validateClick=function(W){this.dragOccurred&&(this.dragOccurred=!1,W.stopPropagation(),W.preventDefault())};var M0=function(W,O){_.R8.call(this);this.JSC$17767_resizeContainer=W;this.callbacks=O;this.aspectRatio=16/9;this.JSC$17767_resizers=[];W=_.S(this.JSC$17767_resizeContainer.children);for(O=W.next();!O.done;O=W.next())tuP(this,O.value)};
_.R(M0,_.R8);M0.prototype.disposeInternal=function(){for(var W=_.S(this.JSC$17767_resizers),O=W.next();!O.done;O=W.next())O.value.dispose();W=_.S(this.JSC$17767_resizeContainer.children);for(O=W.next();!O.done;O=W.next())O.value.setAttribute("disabled","");this.JSC$17767_resizers.length=0};
M0.prototype.setSize=function(W){this.currentMiniplayerSize=W};
M0.prototype.setAspectRatio=function(W){this.aspectRatio=W};
M0.prototype.update=function(W,O){for(var b=_.S(this.JSC$17767_resizeContainer.children),T=b.next();!T.done;T=b.next()){T=T.value;var L=T.getAttribute("alignment");_.di(T,"disabled",L===W||L===O)}};
var tuP=function(W,O){var b=O.getAttribute("alignment"),T=new N0(O,{onStartDrag:function(L){if(O.hasAttribute("disabled"))L.preventDefault();else{W.dragStartSize=W.currentMiniplayerSize;var h,Z;(Z=(h=W.callbacks).onStartResize)==null||Z.call(h)}},
onDrag:function(L){if(W.dragStartSize){b!=="north"&&b!=="west"||L.scale(-1);var h=b==="north"||b==="south";L=h?L.y:L.x;h&&W.aspectRatio>=1?L*=W.aspectRatio:!h&&W.aspectRatio<1&&(L/=W.aspectRatio);W.callbacks.onResize(W.dragStartSize+L)}}});
W.JSC$17767_resizers.push(T)};var $hD,Vu1=function(){return $hD!==void 0?$hD:$hD=document.createElement("template")};
document.head.appendChild(Vu1().content);var NBD;var MuN=_.J1(function(W){var O=_.uy(),b=W.onDrag,T=W.onDragStart,L=W.onDragEnd,h=_.um(W,{allowClicks:!1,dragThreshold:5}),Z=h.dragThreshold,a=h.allowClicks;W=h.children;h=h.className;var m=void 0,w=void 0,A=new _.Kw(0,0),X=!1;_.kX(function(){m=new _.s$(O.value);w=new _.yM(p);l(m,w);if(a()){_.Nu7(m,Z());var k;(k=O.value)==null||k.addEventListener("click",K,{capture:!0})}_.so(function(){var r;(r=m)==null||r.dispose();if(a()){var q;(q=O.value)==null||q.removeEventListener("click",K,{capture:!0})}})});
var l=function(k,r){_.Rx(k,"earlycancel",function(){a()&&(X=!1)});
_.Rx(k,"start",function(q){T==null||T(q);q.defaultPrevented||a()&&(X=!0)});
_.Rx(k,"beforedrag",function(q){m&&w&&(q.preventDefault(),A=new _.Kw(q.clientX-m.startX,q.clientY-m.startY),w.start())});
_.Rx(k,"end",function(){r.stop();L==null||L();A=new _.Kw(0,0)})},p=function(){A&&b(A)},K=function(k){X&&(X=!1,k.stopPropagation(),k.preventDefault())};
return _.E("yt-draggable",{el:O,class:_.YS("ytDraggableComponentHost",h)},W)},"eg");var uX1=_.J1(function(W){var O=_.S(_.wu(0,void 0,"CvAwBd")),b=O.next().value,T=O.next().value;O=function(L){var h={},Z={};return _.E(MuN,{className:_.YS("ytdMiniplayerComponentResizer",(h.ytdMiniplayerComponentResizerDisabled=function(){return L===W.horizontalAlignment()||L===W.verticalAlignment()},h.ytdMiniplayerComponentResizerNorth=L==="north",h.ytdMiniplayerComponentResizerEast=L==="east",h.ytdMiniplayerComponentResizerSouth=L==="south",h.ytdMiniplayerComponentResizerWest=L==="west",h)),
onDragStart:function(){T(W.currentMiniplayerSize());if(W.onResizeStart)W.onResizeStart()},
onDrag:function(a){L!=="north"&&L!=="west"||a.scale(-1);var m;a=(m=L==="north"||L==="south")?a.y:a.x;var w=W.currentAspectRatio();m&&w>=1?a*=w:!m&&w<1&&(a/=w);m=a;W.onResize(b()+m)}},_.E("div",{class:_.YS("ytdMiniplayerComponentResizerCorner",(Z.ytdMiniplayerComponentResizerNorthCorner=L==="north",Z.ytdMiniplayerComponentResizerEastCorner=L==="east",Z.ytdMiniplayerComponentResizerSouthCorner=L==="south",Z.ytdMiniplayerComponentResizerWestCorner=L==="west",Z))}))};
return _.E("div",{class:"ytdMiniplayerComponentResizers"},O("north"),O("east"),O("south"),O("west"))},"fg");var JeP=16/9,ce1=_.J1(function(){var W=_.uy(),O=_.S(_.wu(new _.hU(NaN,NaN),void 0,"UYv80c")),b=O.next().value,T=O.next().value;O=_.S(_.wu(!1,void 0,"L9O3Tc"));var L=O.next().value,h=O.next().value;O=_.S(_.wu(!1,void 0,"nw5gMc"));var Z=O.next().value,a=O.next().value;O=_.S(_.wu(!1,void 0,"X4YUZc"));var m=O.next().value,w=O.next().value;O=_.S(_.wu(!1,void 0,"jOjwyc"));var A=O.next().value,X=O.next().value;O=_.S(_.wu(!1,void 0,"EmWIj"));var l=O.next().value,p=O.next().value;O=_.S(_.wu(!1,void 0,"pdZbNb"));
var K=O.next().value,k=O.next().value;O=_.S(_.wu(JeP,void 0,"vdAiue"));var r=O.next().value,q=O.next().value,f=_.S(_.wu(!1,void 0,"agiiqf"));O=f.next().value;var M=f.next().value;f=_.S(_.wu(!1,void 0,"z3vkHe"));var V=f.next().value,jQ=f.next().value;f=_.S(_.wu(void 0,void 0,"FMEjz"));var y=f.next().value,d8=f.next().value;f=_.S(_.wu(_.Cv("HTML_DIR")==="rtl"?"west":"east",void 0,"jGuIHe"));var pE=f.next().value,Qh=f.next().value;f=_.S(_.wu("south",void 0,"R5stie"));var KE=f.next().value,fE=f.next().value;
f=_.S(_.wu(400,void 0,"CJeuke"));var r8=f.next().value,nE=f.next().value,tX=_.iq().resolve(_.xq).miniplayerPropSignalMap[0],yh=tX.data,Gw=tX.externalPlaylistData;f=tX.toastData;var KH=tX.playabilityStatus,h9=tX.isReadyToResume,I7=tX.isDisabled,T1=tX.watchWhile,Y$=tX.playerVe,aR=tX.expandVe,f0=tX.closeVe,SQ=tX.readyToResumeVe,R7=tX.readyToResumeCloseVe,zw=tX.repositionVe,G1=tX.resizeVe;tX=_.S(_.ln(h9));var k$=tX.next().value,Nz=tX.next().value,NE=!1,XU=!1,u1;_.kX(function(){T(_.UP());W.value.addEventListener("animationend",
function(t9){t9.target===W.value&&(p(!1),k(!1))});
GD1(W.value)});
_.MJ("yt-window-resized",function(t9){t9&&T(t9)});
var pH=function(){u1&&q(u1.getVideoAspectRatio())},IN=function(){if(u1){var t9=u1.getPlayerState()===1;
k$()&&t9&&Nz(!1)}},vN=function(){var t9=aR();
if(t9){var wg=_.Bb(3);wg&&_.Vw(wg,t9)}},lk=function(){var t9=f0(),wg=R7();
t9&&_.Vw(_.Bb(3),t9);h9()&&wg&&_.Vw(_.Bb(3),wg)};
_.MJ("yt-activate-miniplayer",function(t9){var wg;return _.I(function(y2){if(y2.nextAddress==1)return L()?y2.return():_.Y(y2,(wg=_.iq().resolve(_.xq).getPlayerElement())==null?void 0:wg.getPlayerPromise(),2);u1=y2.yieldResult;if(!u1)return y2.return();!V()&&_.e("kevlar_watch_while_v2")&&(fE(t9&&!_.e("kevlar_watch_while_bottom_align")?"north":"south"),Qh(_.Cv("HTML_DIR")==="rtl"?"west":"east"));var m7=u1;m7.addEventListener("onVideoDataChange",pH);m7.addEventListener("onStateChange",IN);m7.addEventListener("onExpandMiniplayer",
vN);m7.addEventListener("onCloseMiniplayer",lk);q(u1.getVideoAspectRatio());h(!0);p(!0);_.aD(y2)})});
_.MJ("yt-deactivate-miniplayer",function(t9){return _.I(function(wg){if(!L())return wg.return();h(!1);Nz(!1);k(t9);p(!0);X(!1);a(!1);if(u1){var y2=u1;y2.removeEventListener("onVideoDataChange",pH);y2.removeEventListener("onStateChange",IN);y2.removeEventListener("onExpandMiniplayer",vN);y2.removeEventListener("onCloseMiniplayer",lk)}_.aD(wg)})});
var ZG=function(){return!(T1()&&_.e("kevlar_watch_while_modern"))},Zf=function(){var t9;
return!((t9=Gw())==null||!t9.contents)},H9=function(){var t9=r8();
var wg=b();wg=Math.min(Math.min(wg.width,wg.height)-32,720);var y2=r(),m7=ZG(),xX=Zf()&&Z(),EM=Math.min(t9,wg);t9=new _.hU(192,m7?116:192);y2=e3g(new _.hU(xX?JeP:y2,1),new _.hU(EM,m7?EM-76:EM));t9.width<=y2.width&&t9.height<=y2.height||(lr7(y2,t9),y2.width=Math.min(y2.width,wg),y2.height=Math.min(y2.height,wg));return new _.hU(y2.width,_.kq(192,y2.height+NlD(m7,xX),720))},lN=function(){var t9=H9(),wg=ZG(),y2=Zf()&&Z();
return new _.hU(t9.width,t9.height-NlD(wg,y2))},X0=function(){var t9=function(wg){wg.target===W.value&&A()&&(X(!1),W.value.removeEventListener("transitionend",t9))};
W.value.addEventListener("transitionend",t9);X(!0);a(!Z())};
_.kb(function(){var t9=Y$(),wg=_.Bb(3),y2=_.sk(3);if(wg&&y2&&t9){_.fV(wg,y2,t9);y2=zw();var m7=G1(),xX=aR(),EM=f0(),jJ=R7();xX&&EM&&jJ&&(_.GU(wg,t9,[xX,EM,jJ]),_.t3(wg,[xX,EM]));y2&&m7&&_.GU(wg,t9,[y2,m7])}});
_.kb(function(){var t9=k$(),wg=SQ();if(wg&&(t9===void 0?0:t9)){t9=_.Bb(0);var y2=_.sk(0);t9&&y2&&(_.fV(t9,y2,wg),_.t3(t9,[wg]))}});
tX={};return _.E("ytd-miniplayer",{el:W,class:_.YS("ytdMiniplayerComponentHost",(tX.ytdMiniplayerComponentVisible=function(){return L()||l()},tX.ytdMiniplayerComponentAnimatingSnap=m,tX.ytdMiniplayerComponentAnimatingPlaylistExpand=A,tX.ytdMiniplayerComponentAnimatingFade=l,tX),function(){if(l()){var t9=KE();
var wg=L(),y2=K();t9=wg?t9==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":y2?t9==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":t9==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else t9="";return t9}),
style:_.eE({top:function(){return KE()==="north"?"16px":""},
right:function(){return pE()==="east"?"16px":""},
bottom:function(){return KE()==="south"?"16px":""},
left:function(){return pE()==="west"?"16px":""},
width:function(){return H9().width+"px"},
height:function(){return H9().height+"px"},
transform:function(){var t9=y();return t9?"translate("+t9.x+"px, "+t9.y+"px)":""}})},_.E("div",{class:"ytdMiniplayerComponentContent"},_.E(MuN,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(t9){var wg=VHk(pE(),KE(),b(),H9(),y()),y2=lN();Math.abs(t9.clientY-(wg.y+y2.height))>15?(M(!0),t9=_.Bb(3),wg=zw(),NE||(NE=!0,t9&&wg&&_.t3(t9,[wg])),t9&&wg&&_.Vw(t9,wg)):t9.preventDefault()},
onDrag:function(t9){d8(t9)},
onDragEnd:function(){var t9=HqD(VHk(pE(),KE(),b(),H9(),y()),b(),H9()),wg=$pk(pE(),KE(),b(),H9()),y2=$pk(t9.horizontalAlignment,t9.verticalAlignment,b(),H9());y2=new _.Kw(y2.x-wg.x,y2.y-wg.y);var m7;wg=wg.y+(((m7=y())==null?void 0:m7.y)||0)+H9().height/2;var xX=function(){pE()===t9.horizontalAlignment&&KE()===t9.verticalAlignment||jQ(!0);Qh(t9.horizontalAlignment);fE(t9.verticalAlignment);d8(void 0)},EM=function(jJ){jJ.target===W.value&&m()&&(w(!1),xX(),W.value.removeEventListener("transitionend",
EM))};
M(!1);KE()==="south"&&wg>b().height?(xX(),_.iq().resolve(_.xq).close()):(W.value.addEventListener("transitionend",EM),w(!0),d8(y2))}},_.E(_.U,{cond:L,
then:function(){return _.E(_.y9U,{isDisabled:I7,playabilityStatus:KH,size:lN})}}),_.E(_.U,{cond:ZG,
then:function(){return _.E(_.c9R,{isReadyToResume:k$,data:yh,expanded:Z,onExpandClick:X0,playlistData:Gw})}}),_.E(_.U,{cond:O,
then:function(){return _.E("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.E(_.U,{cond:function(){return Zf()&&Z()||A()},
then:function(){return _.E(_.PY5,{className:"ytdMiniplayerComponentPlaylistPanel",data:Gw,hideHeaderText:!0,withinMiniplayer:!0})}}),_.E("div",{class:"ytdMiniplayerComponentToast"},_.E(_.W8g,{toastData:f}))),_.E(uX1,{onResize:function(t9){nE(_.kq(192,t9,720))},
onResizeStart:function(){var t9=_.Bb(3),wg=G1();XU||(XU=!0,t9&&wg&&_.t3(t9,[wg]));t9&&wg&&_.Vw(t9,wg)},
currentAspectRatio:r,currentMiniplayerSize:r8,horizontalAlignment:pE,verticalAlignment:KE}))},"gg");_.e("ytd_miniplayer_to_wiz")&&_.O1(ce1,"ytd-miniplayer",{});_.O1(_.W8g,"ytd-miniplayer-toast",{props:{toastData:_.te}});var Fg1=16/9,yeg=new _.hU(400,400/Fg1),ub=function(){var W=_.n.apply(this,arguments)||this;W.active=!1;W.hasNoData=!1;W.enabled=!1;W.expanded=!1;W.readyToResume=!1;W.isDisabled=!1;W.externalPlaylistData={};W.premiumBadges=[];W.watchWhile=!1;W.playerState=null;W.verticalAttachment="south";W.horizontalAttachment=_.Cv("HTML_DIR")==="rtl"?"west":"east";W.isAnimatingFade=!1;W.isAnimatingSnap=!1;W.isAnimatingExpand=!1;W.isDragging=!1;W.playerHidden=!1;W.hasPlaylistData=!1;W.closed=!1;W.expandedClosed=!1;
W.isForReadyToResume=!1;W.watchResponse=null;W.player=null;W.playerVe=null;W.expandVe=null;W.closeVe=null;W.readyToResumeCloseVe=null;W.disabledInitialStateIsPlaying=!1;W.PLAYER_EVENTS=new Map;W.aspectRatio=Fg1;W.currentMiniplayerSize=400;W.userSetSize=!1;W.userSetPosition=!1;W.userHasDragged=!1;W.maxMiniplayerSize=720;W.transform=new _.Kw(0,0);W.windowDimensions=new _.hU(NaN,NaN);W.dimensions=yeg;W.screenLayer=3;W.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return W};
_.R(ub,_.n);_.d=ub.prototype;_.d.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.d.ready=function(){this.setUpDragging();this.setUpResizing()};
_.d.attached=function(){this.onWindowResized(_.UP());this.hostElement.addEventListener("animationend",_.Ii(this,this.resetFadingAnimation))};
_.d.detached=function(){this.hostElement.removeEventListener("animationend",_.Ii(this,this.resetFadingAnimation))};
_.d.resetFadingAnimation=function(W){W.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.d.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.d.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.d.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var W=_.Bb(this.screenLayer);this.readyToResumeCloseVe&&W&&_.t3(W,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.d.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var W=_.Bb(0),O=_.sk(0);W&&O&&(_.fV(W,O,this.readyToResumeVe),_.t3(W,[this.readyToResumeVe]))}};
_.d.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var W=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=W===-1||W===1||W===3)&&this.player.pauseVideo()}};
_.d.activate=function(W,O){O=O===void 0?!1:O;var b=this,T;return _.I(function(L){if(L.nextAddress==1)return b.setInitialActivatePositioning(O),b.enabled=!0,b.active=!0,b.expanded=!1,b.closed=!1,b.expandedClosed=!1,b.watchWhileHidden||(b.isAnimatingFade=!0),_.iq().resolve(_.kP).setPlaylistComponent(b.JSC$17778_playlistPanel),W.appendTo(b.playerContainer),_.Y(L,W.getPlayerPromise(),2);T=L.yieldResult;T.setSizeStyle(!1,!0);b.ytPlayerListenerBehavior.listenToPlayerEvents(T,b.PLAYER_EVENTS);b.player=T;
b.watchWhile&&_.e("kevlar_watch_while_minimum_size")&&b.setMiniplayerSize(192);b.setAspectRatio(b.player.getVideoAspectRatio());b.onIsDisabledChanged();_.aD(L)})};
_.d.setInitialActivatePositioning=function(W){if(!this.userSetPosition&&_.e("kevlar_watch_while_v2")){this.verticalAttachment=W&&!_.e("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Cv("HTML_DIR")==="rtl"?"west":"east";var O;(O=this.JSC$17778_resizers)==null||O.update(this.horizontalAttachment,this.verticalAttachment)}};
_.d.deactivate=function(W,O){var b=this;return _.I(function(T){if(!b.active)return T.return();W||(b.expanded?b.expandedClosed=!0:b.closed=!0);b.active=!1;b.isForReadyToResume=!1;O&&_.e("kevlar_watch_while_counterfactual")||(b.isAnimatingFade=!0);b.player&&b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b.player,b.PLAYER_EVENTS);b.player=null;_.aD(T)})};
_.d.onMetadataTap=function(W){this.expandVe&&(W===void 0||W)&&(W=_.Bb(this.screenLayer))&&_.Vw(W,this.expandVe);_.X_(_.iq().resolve(_.xq))};
_.d.onDisabledTap=function(W){W.target===_.Q(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.d.onPlaylistExpandTap=function(W){if(this.hasPlaylistData){W=_.Nd(W)||[];W=_.S(W);for(var O=W.next();!O.done;O=W.next()){O=O.value;if(O===this.hostElement)break;if(O.classList&&O.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.d.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.Ii(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.d.animatedResizePlaylist=function(W){W.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.Ii(this,this.animatedResizePlaylist)))};
_.d.getExpandIcon=function(W){return W?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.d.onPlayerVideoDataChange=function(){var W,O=(W=this.player)==null?void 0:W.getVideoAspectRatio();O&&O!==this.aspectRatio&&this.setAspectRatio(O)};
_.d.setAspectRatio=function(W){if(this.active){this.aspectRatio=W;this.updateDimensionsAndResize();var O;(O=this.JSC$17778_resizers)==null||O.setAspectRatio(W)}};
_.d.updateDimensionsAndResize=function(){var W=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),O=this.expanded?Fg1:this.aspectRatio,b=new _.hU(192,this.showInfoBar?116:192);W=e3g(new _.hU(O,1),new _.hU(W,this.showInfoBar?W-76:W));b.width<=W.width&&b.height<=W.height||(lr7(W,b),W.width=Math.min(W.width,this.maxMiniplayerSize),W.height=Math.min(W.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&O<=1?Math.max(W.width,W.height)+76:Math.max(W.width,W.height)));this.dimensions=
new _.hU(W.width,this.clamp(W.height+this.getNonPlayerHeight()));this.resize()};
_.d.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var W=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=W.height+"px";var O;(O=this.player)==null||O.setInternalSize(W.width,W.height)};
_.d.getPlayerSize=function(W){var O=Math.max(0,W.height-this.getNonPlayerHeight());return new _.hU(W.width,O)};
_.d.getNonPlayerHeight=function(){var W=0;this.showInfoBar&&(W+=76);this.expanded&&(W+=285);return W};
_.d.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.iq().resolve(_.xq).close()};
_.d.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.d.logClosingClick=function(){this.closeVe&&_.Vw(_.Bb(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Vw(_.Bb(this.screenLayer),this.readyToResumeCloseVe)};
_.d.onPlayerExpandMiniplayer=function(){if(this.expandVe){var W=_.Bb(this.screenLayer);W&&_.Vw(W,this.expandVe)}};
_.d.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var W=this.playerState===1;this.continueWatching&&W&&(this.continueWatching=!1);this.premiumBadges.length&&W&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.d.getScreenLayer=function(){return this.screenLayer};
_.d.logMiniplayer=function(){var W=_.Bb(this.screenLayer),O=_.sk(this.screenLayer);W&&O&&this.playerVe&&(_.fV(W,O,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.GU(W,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.t3(W,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.GU(W,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.d.computePlaylistData=function(W,O){return O};
_.d.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.d.computeExpandButtonHidden=function(W,O,b){return!W||!O||b};
_.d.computePlaylistIndexHidden=function(W,O){return!W||O};
_.d.computePlaylistPanelHidden=function(W,O){return!O&&!W};
_.d.computeExpandButtonLabel=function(W){return W?_.EO("MINIPLAYER_COLLAPSE_LABEL"):_.EO("MINIPLAYER_EXPAND_LABEL")};
_.d.computeDisabledStateCloseButtonLabel=function(){return _.EO("MINIPLAYER_CLOSE",void 0,"Close")};
_.d.onWindowResized=function(W){W&&(W=this.windowDimensions=W,this.maxMiniplayerSize=Math.min(Math.min(W.width,W.height)-32,720),this.updateDimensionsAndResize())};
_.d.setUpResizing=function(){var W=this;this.JSC$17778_resizers||(this.JSC$17778_resizers=new M0(this.JSC$17778_resizeContainer,{onStartResize:function(){W.handleResizeStart()},
onResize:function(O){W.handleResize(O)}}),this.JSC$17778_resizers.setSize(this.currentMiniplayerSize),this.JSC$17778_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.d.handleResizeStart=function(){var W=_.Bb(this.screenLayer);this.userSetSize||(this.userSetSize=!0,W&&this.resizeVe&&_.t3(W,[this.resizeVe]));W&&this.resizeVe&&_.Vw(W,this.resizeVe)};
_.d.handleResize=function(W){this.setMiniplayerSize(W);this.updateDimensionsAndResize()};
_.d.setUpDragging=function(){var W=this;this.JSC$17778_dragger||(this.JSC$17778_dragger=new N0(this.draggableContainer,{onStartDrag:function(O){!W.isSafeToDrag(O)||W.isAnimatingSnap?O.preventDefault():W.handleDragStart()},
onDrag:function(O){W.transform=O;W.setTransform(W.transform)},
onEndDrag:function(){W.handleDragEnd()}},!0))};
_.d.handleDragStart=function(){this.isDragging=!0;var W=_.Bb(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,W&&this.repositionVe&&_.t3(W,[this.repositionVe]));W&&this.repositionVe&&_.Vw(W,this.repositionVe)};
_.d.handleDragEnd=function(){this.isDragging=!1;var W=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&W>this.windowDimensions.height&&_.iq().resolve(_.xq).close();this.animateSnapToCorner()};
_.d.animateSnapToCorner=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),O=this.getNearestAttachments();O=this.getGlobalPositionFromAttachments(O.horizontalAttachment,O.verticalAttachment);W=new _.Kw(O.x-W.x,O.y-W.y);this.isAnimatingSnap=!0;this.setTransform(W);this.hostElement.addEventListener("transitionend",_.Ii(this,this.endSnapAnimation))};
_.d.endSnapAnimation=function(W){W.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.Ii(this,this.endSnapAnimation)),this.endDrag())};
_.d.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.d.setTransform=function(W){this.hostElement.style.transform=W?"translate("+W.x+"px, "+W.y+"px)":""};
_.d.getGlobalPositionFromAttachments=function(W,O){return new _.Kw(W==="west"?16:this.windowDimensions.width-this.dimensions.width-16,O==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.d.updateAttachments=function(){var W=this.getNearestAttachments();if(this.horizontalAttachment!==W.horizontalAttachment||this.verticalAttachment!==W.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=W.horizontalAttachment;this.verticalAttachment=W.verticalAttachment;var O;(O=this.JSC$17778_resizers)==null||O.update(this.horizontalAttachment,this.verticalAttachment)};
_.d.getNearestAttachments=function(){var W=this.getCurrentGlobalPosition();return{horizontalAttachment:W.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:W.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.d.getCurrentGlobalPosition=function(){var W=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return tHD(W,this.transform)};
_.d.isSafeToDrag=function(W){var O=this.playerContainer.getBoundingClientRect();return Math.abs(W.clientY-(O.y+O.height))>15};
_.d.setMiniplayerSize=function(W){this.currentMiniplayerSize=this.clamp(W);var O;(O=this.JSC$17778_resizers)==null||O.setSize(this.currentMiniplayerSize)};
_.d.clamp=function(W){return _.kq(192,W,720)};
_.d.registerViewTransitionTasks=function(){var W=this,O=_.iq().resolve(_.OT(_.Aw));if(O){var b={beforeTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){W.hostElement&&(W.hostElement.style.viewTransitionName="")}};
JQ(O,"slide",b);JQ(O,"zoom",b)}};
_.Jq.Object.defineProperties(ub.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.e("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.EO("CONTINUE_WATCHING",void 0,"Continue watching")};var W;if((W=this.externalPlaylistData)==null?0:W.contents)return this.externalPlaylistData.titleText;var O;return(O=this.data)==null?void 0:O.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.externalPlaylistData)==null?0:W.contents){var O;return(O=_.Fr8(this.externalPlaylistData))==null?void 0:O.title}var b;return(b=this.data)==null?void 0:b.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var W,O,b,T;return((W=this.externalPlaylistData)==null?void 0:W.currentIndex)!==void 0&&((O=this.externalPlaylistData)==null?0:O.totalVideos)&&!((b=this.data)==null?0:(T=b.playlistData)==null?0:T.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.Tre(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.e("kevlar_watch_while_counterfactual")}}});
ub.prototype.onIsDisabledChanged=ub.prototype.onIsDisabledChanged;ub.prototype.readyToResumeVeChanged=ub.prototype.readyToResumeVeChanged;ub.prototype.premiumBrandingChanged=ub.prototype.premiumBrandingChanged;ub.prototype.onPlayerVeChange=ub.prototype.onPlayerVeChange;ub.prototype.hasPlaylistDataChanged=ub.prototype.hasPlaylistDataChanged;_.t([_.D(_.Hw.YtPlayerListenerBehavior),_.N("design:type",_.t5)],ub.prototype,"ytPlayerListenerBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],ub.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ub.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ub.prototype,"ytdReduxBehavior",void 0);_.t([_.El("#draggable"),_.N("design:type",HTMLDivElement)],ub.prototype,"draggableContainer",void 0);
_.t([_.El("#resize-container"),_.N("design:type",HTMLDivElement)],ub.prototype,"JSC$17778_resizeContainer",void 0);_.t([_.El("#video-container"),_.N("design:type",HTMLDivElement)],ub.prototype,"videoContainer",void 0);_.t([_.El("#player-container"),_.N("design:type",HTMLDivElement)],ub.prototype,"playerContainer",void 0);_.t([_.El("#playlist"),_.N("design:type",HTMLDivElement)],ub.prototype,"JSC$17778_playlistPanel",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"active",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"hasNoData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"enabled",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"expanded",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"readyToResume",void 0);
_.t([_.C(),_.N("design:type",Object)],ub.prototype,"isDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"externalPlaylistData",void 0);_.t([_.C(),_.N("design:type",Array)],ub.prototype,"premiumBadges",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"toastData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"watchWhile",void 0);_.t([_.C(),_.N("design:type",Boolean)],ub.prototype,"premiumBranding",void 0);
_.t([_.C(),_.N("design:type",Object)],ub.prototype,"playerState",void 0);_.t([_.C(),_.N("design:type",Boolean)],ub.prototype,"continueWatching",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],ub.prototype,"verticalAttachment",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],ub.prototype,"horizontalAttachment",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"isAnimatingFade",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"isAnimatingSnap",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"isAnimatingExpand",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"isDragging",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"playerHidden",void 0);
_.t([_.C({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.N("design:type",Object)],ub.prototype,"playlistData",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.N("design:type",Object)],ub.prototype,"hasPlaylistData",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"closed",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ub.prototype,"expandedClosed",void 0);
_.t([_.C({selector:_.ImP}),_.N("design:type",Boolean)],ub.prototype,"isSingleOptionSurveyActive",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.rm}),_.N("design:type",Boolean)],ub.prototype,"isWatchPage",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"showInfoBar",null);_.t([_.x("premiumBadges","showInfoBar"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"showOverlayPremiumBadges",null);
_.t([_.C(),_.N("design:type",Object)],ub.prototype,"watchResponse",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"miniplayerRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"playabilityStatus",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"playerVe",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"expandVe",void 0);_.t([_.C(),_.N("design:type",Object)],ub.prototype,"closeVe",void 0);
_.t([_.C(),_.N("design:type",Object)],ub.prototype,"readyToResumeCloseVe",void 0);_.t([_.C(),_.N("design:type",_.kJ)],ub.prototype,"readyToResumeVe",void 0);_.t([_.C(),_.N("design:type",_.kJ)],ub.prototype,"resizeVe",void 0);_.t([_.C(),_.N("design:type",_.kJ)],ub.prototype,"repositionVe",void 0);_.t([_.m5("hasPlaylistData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ub.prototype,"hasPlaylistDataChanged",null);
_.t([_.m5("playerVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ub.prototype,"onPlayerVeChange",null);_.t([_.m5("premiumBranding"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ub.prototype,"premiumBrandingChanged",null);_.t([_.m5("readyToResumeVe"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ub.prototype,"readyToResumeVeChanged",null);
_.t([_.m5("isDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ub.prototype,"onIsDisabledChanged",null);_.t([_.x("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"miniplayerSubtitle",null);_.t([_.x("data.miniplayerTitle","externalPlaylistData"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"miniplayerTitle",null);
_.t([_.x("externalPlaylistData","continueWatching"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"playlistIndexMessage",null);_.t([_.C({reflectToAttribute:!0}),_.x("playabilityStatus"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"showErrorScreen",null);_.t([_.C({reflectToAttribute:!0}),_.x("watchWhile"),_.N("design:type",Object),_.N("design:paramtypes",[])],ub.prototype,"watchWhileHidden",null);
_.e("ytd_miniplayer_to_wiz")||_.H(ub,"ytd-miniplayer",function(){if(NBD===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
W.content.insertBefore(Vu1().content.cloneNode(!0),W.content.firstChild);W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);NBD=W}W=NBD;return W},{mode:2});var WxD;var JJ=function(){var W=_.n.apply(this,arguments)||this;W.useListItemStyles=_.e("web_list_item_style_for_menu_items");W.systemIcons=_.e("kevlar_system_icons");return W};
_.R(JJ,_.n);_.d=JJ.prototype;_.d.ready=function(){this.hostElement.addEventListener("tap",_.Ii(this,this.onEndpointTapExtra))};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var W;(W=_.Q(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.d.onEndpointTapExtra=function(W){_.bX(this.hostElement,"iron-activate");var O=this.data.navigationEndpoint;O&&_.P(O,_.kVO)&&(W.stopPropagation(),_.Sx(this.hostElement,[O],this.hostElement))};
_.d.computeIcon=function(W){return W&&W.iconType?_.Z6(W.iconType):""};
_.d.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.e("kevlar_legacy_browsers")&&_.Sl(this.hostElement)};
JJ.prototype.forceUpdateStylesOnLegacyBrowsers=JJ.prototype.forceUpdateStylesOnLegacyBrowsers;JJ.prototype.onFocus=JJ.prototype.onFocus;_.t([_.D(_.tW),_.N("design:type",Object)],JJ.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.KSS.YtConditionalRendererBehavior),_.N("design:type",Object)],JJ.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],JJ.prototype,"ytEndpointBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],JJ.prototype,"data",void 0);_.t([_.C({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],JJ.prototype,"icon",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],JJ.prototype,"useIcons",void 0);_.t([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],JJ.prototype,"hasSeparator",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],JJ.prototype,"useListItemStyles",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],JJ.prototype,"systemIcons",void 0);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JJ.prototype,"onFocus",null);_.t([_.m5("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],JJ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.H(JJ,"ytd-menu-navigation-item-renderer",function(){if(WxD===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);WxD=W}W=WxD;return W},{mode:1});var O6k;var i6D=_.VV(_.EO("DOWNLOAD",{},"Download")),b69=_.VV(_.EO("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),jVP=_.VV(_.EO("RETRY",{},"Retry")),TwZ=_.VV(_.EO("PAUSE_DOWNLOADING",{},"Pause downloading")),LxZ=_.VV(_.EO("RESUME_DOWNLOAD",{},"Resume download")),c4=function(){var W=_.n.apply(this,arguments)||this;W.primaryText=i6D;W.primaryIconType="OFFLINE_DOWNLOAD";W.hasSecondaryContent=!1;W.hasSeparator=!1;W.transferState="TRANSFER_STATE_UNKNOWN";W.isVideoDeletedByUser=!1;W.isHidden=!1;W.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return W};
_.R(c4,_.n);_.d=c4.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){this.primaryEntry.focus()};
_.d.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.d.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.d.getRemoveAction=function(){return"ACTION_REMOVE"};
_.d.sendOfflineAction=function(W){var O=this.data.serviceEndpoint;if(O){var b=_.P(O,_.mo);b&&W&&(b.action=W);this.ytComponentBehavior.resolveCommand(O)}};
_.d.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=i6D,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=i6D;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=jVP;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=b69;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=LxZ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=b69;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
TwZ;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=b69;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=b69;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=i6D,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.d.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.d.isSecondaryEntryHidden=function(W,O){return W?!0:!O};
_.d.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
c4.prototype.showHideButton=c4.prototype.showHideButton;c4.prototype.onTransferStateChange=c4.prototype.onTransferStateChange;c4.prototype.onFocus=c4.prototype.onFocus;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],c4.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],c4.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],c4.prototype,"primaryText",void 0);_.t([_.C(),_.N("design:type",String)],c4.prototype,"primaryIconType",void 0);_.t([_.C(),_.N("design:type",String)],c4.prototype,"primaryAction",void 0);_.t([_.C(),_.N("design:type",Object)],c4.prototype,"secondaryText",void 0);_.t([_.C(),_.N("design:type",String)],c4.prototype,"secondaryIconType",void 0);
_.t([_.C(),_.N("design:type",String)],c4.prototype,"secondaryAction",void 0);_.t([_.C(),_.N("design:type",Object)],c4.prototype,"hasSecondaryContent",void 0);_.t([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Object)],c4.prototype,"hasSeparator",void 0);_.t([_.C({selector:_.D5,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",String)],c4.prototype,"transferState",void 0);
_.t([_.C({selector:_.sPT,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],c4.prototype,"isVideoDeletedByUser",void 0);_.t([_.C(),_.N("design:type",Object)],c4.prototype,"isHidden",void 0);_.t([_.C({selector:_.KUq,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.N("design:type",Object)],c4.prototype,"offlineabilityState",void 0);_.t([_.El("#primary-entry"),_.N("design:type",Object)],c4.prototype,"primaryEntry",void 0);
_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"onFocus",null);_.t([_.Ul("transferState","isVideoDeletedByUser"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"onTransferStateChange",null);_.t([_.Ul("offlineabilityState"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],c4.prototype,"showHideButton",null);
_.H(c4,"ytd-menu-service-item-download-renderer",function(){if(O6k===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);O6k=W}W=O6k;return W},{mode:1});var dl9;var Fx=function(){var W=_.n.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.e("kevlar_system_icons");W.useListItemStyles=_.e("web_list_item_style_for_menu_items");return W};
_.R(Fx,_.n);_.d=Fx.prototype;_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.d.onFocus=function(){var W;(W=_.Q(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.d.onTap=function(){_.TU(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var W=this.data.serviceEndpoint,O=this.data.command;if(W){var b,T=(b=this.data)==null?void 0:b.trackingParams;b=!!_.P(W,_.FOH);T&&b&&_.uv().dispatch(_.Tc({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:T}}));this.ytComponentBehavior.resolveCommand(W)||_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}})}O&&(this.ytComponentBehavior.resolveCommand(O)||_.Sx(this.hostElement,
[O],this.hostElement))};
_.d.computeIcon=function(W){return W&&W.iconType?_.Z6(W.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.computeHasSeparator=function(){var W;return!((W=this.data)==null||!W.hasSeparator)};
_.d.forceUpdateStylesOnLegacyBrowsers=function(){_.e("kevlar_legacy_browsers")&&_.Sl(this.hostElement)};
_.d.computeIsSelected=function(){var W;return!((W=this.data)==null||!W.isSelected)};
Fx.prototype.forceUpdateStylesOnLegacyBrowsers=Fx.prototype.forceUpdateStylesOnLegacyBrowsers;Fx.prototype.onTap=Fx.prototype.onTap;Fx.prototype.onFocus=Fx.prototype.onFocus;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],Fx.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Fx.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.KSS.YtConditionalRendererBehavior),_.N("design:type",Object)],Fx.prototype,"ytConditionalRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fx.prototype,"data",void 0);_.t([_.C({computed:"computeIcon(data.icon)",value:""}),_.N("design:type",String)],Fx.prototype,"icon",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"useIcons",void 0);
_.t([_.C({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Fx.prototype,"hasSeparator",void 0);_.t([_.C({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Fx.prototype,"isSelected",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Fx.prototype,"useListItemStyles",void 0);
_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fx.prototype,"onFocus",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Fx.prototype,"onTap",null);_.t([_.m5("useIcons","hasSeparator"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fx.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.H(Fx,"ytd-menu-service-item-renderer",function(){if(dl9===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);dl9=W}W=dl9;return W},{mode:2});var hig;var y$=function(){return _.n.apply(this,arguments)||this};
_.R(y$,_.n);_.d=y$.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var W=this;_.My(this,function(){W.postbox.openDialog();W.focus();_.bX(W.hostElement,"yt-refit")})};
_.d.focus=function(){this.postbox.focus()};
_.d.closePopup=function(){_.jx(this.hostElement,"yt-close-popup-action")};
_.d.onYtCommentboxDismiss=function(){this.closePopup()};
y$.prototype.onYtCommentboxDismiss=y$.prototype.onYtCommentboxDismiss;y$.prototype.onDataChanged=y$.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],y$.prototype,"data",void 0);_.t([_.C({value:function(){return _.EO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],y$.prototype,"closeButtonAriaLabel",void 0);_.t([_.El("#postbox"),_.N("design:type",Object)],y$.prototype,"postbox",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y$.prototype,"onDataChanged",null);_.t([_.ai("yt-commentbox-dismiss"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],y$.prototype,"onYtCommentboxDismiss",null);
y$=_.t([_.G({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],y$);
_.H(y$,"ytd-backstage-post-dialog-popup-renderer",function(){if(hig!==void 0)return hig;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return hig=W},{mode:1});var S6B;var W6=function(){return _.n.apply(this,arguments)||this};
_.R(W6,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],W6.prototype,"data",void 0);W6=_.t([_.G({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],W6);
_.H(W6,"ytd-sender-id-section-renderer",function(){if(S6B!==void 0)return S6B;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return S6B=W},{mode:1});var Z62;var Ix7;var ax2;var Od=function(){return _.n.apply(this,arguments)||this};
_.R(Od,_.n);Od.prototype.closePopup=function(){_.jx(this.hostElement,"yt-close-popup-action")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Od.prototype,"data",void 0);Od=_.t([_.sl({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Od);
_.H(Od,"yt-community-post-section-renderer",function(){if(ax2===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Ix7===void 0&&(Ix7=document.createElement("template"));var T=Ix7;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ax2=W}W=ax2;return W},{mode:2});var mlZ;var Y67;var Edg;var wPP;var AWD;var XPg;var i4=function(){return _.n.apply(this,arguments)||this};
_.R(i4,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],i4.prototype,"data",void 0);i4=_.t([_.sl({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],i4);
_.H(i4,"yt-share-start-time-with-context-renderer",function(){if(XPg===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;AWD===void 0&&(AWD=document.createElement("template"));var T=AWD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);XPg=W}W=XPg;return W},{mode:2});var b4=function(){return _.n.apply(this,arguments)||this};
_.R(b4,_.n);b4.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],b4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],b4.prototype,"data",void 0);b4=_.t([_.sl({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],b4);
_.H(b4,"yt-share-panel-title-v15-renderer",function(){if(wPP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Edg===void 0&&(Edg=document.createElement("template"));var T=Edg;b.call(O,T.content.cloneNode(!0),W.content.firstChild);wPP=W}W=wPP;return W},{mode:2});var j2=function(){return _.n.apply(this,arguments)||this};
_.R(j2,_.n);j2.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"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],j2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],j2.prototype,"data",void 0);j2=_.t([_.sl({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],j2);
_.H(j2,"yt-share-panel-header-renderer",function(){if(Y67===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;mlZ===void 0&&(mlZ=document.createElement("template"));var T=mlZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Y67=W}W=Y67;return W},{mode:2});var UlN;var lx2;var TW=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-open-popup-action":"onOpen"};return W};
_.R(TW,_.n);_.d=TW.prototype;_.d.attached=function(){this.onOpen()};
_.d.updateTimeSecs=function(W){this.currentTimeSecs=W};
_.d.computeTimeString=function(W){W=W.toString();var O=Math.floor(Number(W)/3600),b=Math.floor(Number(W)%3600%60);return(O>0?O+":":"")+_.FS(Math.floor(Number(W)%3600/60),O>0?2:1)+":"+_.FS(b,2)};
_.d.computeTimeStringA11y=function(W){W=_.r6e({seconds:W});var O=W.hours===void 0?0:W.hours,b=W.minutes===void 0?0:W.minutes,T=W.seconds===void 0?0:W.seconds;W=[];if(O>0){var L=X38().format({hours:O});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.qX)||O>9999)L=L.replace(O.toString(),_.DNi(O)),_.qX==="km"&&(L=L.replace(".",","));W.push(L)}b>0&&W.push(X38().format({minutes:b}));T>0&&W.push(X38().format({seconds:T}));O="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");b=_.qX==
"am"?"{0}\u1363 ":_.qX=="fa"?"{0}\u060c\u200f ":_.qX=="my"?"{0} - ":_.qX=="ne"?"{0},":_.qX=="th"?"{0} ":_.qX=="ur"?"{0}\u060c ":_.qX=="ar"||_.qX=="ar-XB"?"{0} \u0648":_.qX=="ja"||_.qX=="zh-CN"||_.qX=="zh-HK"||_.qX=="zh-TW"?"{0}\u3001":"{0}, ";T=_.qX=="am"?"\u1363 ":_.qX=="fa"?"\u060c\u200f ":_.qX=="my"?" - ":_.qX=="th"?" ":_.qX=="ur"?"\u060c ":_.qX=="ar"||_.qX=="ar-XB"?" \u0648":_.qX=="ja"||_.qX=="zh-CN"||_.qX=="zh-HK"||_.qX=="zh-TW"?"\u3001":", ";L=_.qX=="am"?" \u12a5\u1293 {0}":_.qX=="as"?" \u0986\u09f0\u09c1 {0}":
_.qX=="az"?" v\u0259 {0}":_.qX=="bn"?" \u098f\u09ac\u0982 {0}":_.qX=="cs"?" a\u00a0{0}":_.qX=="de"?" und {0}":_.qX=="el"?" \u03ba\u03b1\u03b9 {0}":_.qX=="eu"?" eta {0}":_.qX=="fa"?"\u060c \u0648 {0}":_.qX=="fil"?", at {0}":_.qX=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.qX=="hi"?", \u0914\u0930 {0}":_.qX=="hu"?" \u00e9s {0}":_.qX=="hy"?" \u0587 {0}":_.qX=="id"?", dan {0}":_.qX=="iw"?" \u05d5-{0}":_.qX=="ja"?"\u3001{0}":_.qX=="ka"?" \u10d3\u10d0 {0}":_.qX=="km"?" \u1793\u17b7\u1784 {0}":_.qX=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.qX=="ko"?" \ubc0f {0}":_.qX=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.qX=="lt"?" ir {0}":_.qX=="lv"?" un {0}":_.qX=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.qX=="mr"?" \u0906\u0923\u093f {0}":_.qX=="ms"?" dan {0}":_.qX=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.qX=="ne"?" \u0930 {0}":_.qX=="or"?", \u0b13 {0}":_.qX=="pa"?" \u0a05\u0a24\u0a47 {0}":_.qX=="ro"?" \u0219i {0}":_.qX=="si"?", \u0dc3\u0dc4 {0}":_.qX=="sk"?" a {0}":_.qX=="sl"?" in {0}":_.qX=="sq"?" dhe {0}":_.qX=="sv"?" och {0}":
_.qX=="sw"?" na {0}":_.qX=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.qX=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.qX=="th"?" \u0e41\u0e25\u0e30{0}":_.qX=="tr"?" ve {0}":_.qX=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.qX=="uz"?" va {0}":_.qX=="vi"?" v\u00e0 {0}":_.qX=="zh-HK"?"\u53ca{0}":_.qX=="zu"?", ne-{0}":_.qX=="af"||_.qX=="nl"?" en {0}":_.qX=="ar"||_.qX=="ar-XB"?" \u0648{0}":_.qX=="be"||_.qX=="uk"?" \u0456 {0}":_.qX=="en-GB"||_.qX=="en-IN"?" and {0}":_.qX=="en"||_.qX=="en-XA"?
", and {0}":_.qX=="et"||_.qX=="fi"?" ja {0}":_.qX=="fr"||_.qX=="fr-CA"?" et {0}":_.qX=="zh-CN"||_.qX=="zh-TW"?"\u548c{0}":_.qX=="da"||_.qX=="is"||_.qX=="no"?" og {0}":_.qX=="es"||_.qX=="es-419"||_.qX=="es-US"?" y {0}":_.qX=="kk"||_.qX=="lo"||_.qX=="mn"?", {0}":_.qX=="bg"||_.qX=="mk"||_.qX=="ru"||_.qX=="sr"?" \u0438 {0}":_.qX=="gl"||_.qX=="it"||_.qX=="pt-BR"||_.qX=="pt-PT"?" e {0}":" i {0}";var h=_.qX=="am"?"{0} \u12a5\u1293 {1}":_.qX=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.qX=="az"?"{0} v\u0259 {1}":
_.qX=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.qX=="de"?"{0} und {1}":_.qX=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.qX=="eu"?"{0} eta {1}":_.qX=="fa"?"{0} \u0648 {1}":_.qX=="fil"?"{0} at {1}":_.qX=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.qX=="hi"?"{0} \u0914\u0930 {1}":_.qX=="hu"?"{0} \u00e9s {1}":_.qX=="hy"?"{0} \u0587 {1}":_.qX=="iw"?"{0} \u05d5-{1}":_.qX=="ja"?"{0}\u3001{1}":_.qX=="ka"?"{0} \u10d3\u10d0 {1}":_.qX=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.qX=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.qX=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.qX=="ko"?"{0} \ubc0f {1}":_.qX=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.qX=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.qX=="lt"?"{0} ir {1}":_.qX=="lv"?"{0} un {1}":_.qX=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.qX=="mn"?"{0}, {1}":_.qX=="mr"?"{0} \u0906\u0923\u093f {1}":_.qX=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.qX=="ne"?"{0} \u0930 {1}":_.qX=="or"?"{0} \u0b13 {1}":_.qX=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.qX=="ro"?"{0} \u0219i {1}":_.qX==
"si"?"{0} \u0dc3\u0dc4 {1}":_.qX=="sl"?"{0} in {1}":_.qX=="sq"?"{0} dhe {1}":_.qX=="sv"?"{0} och {1}":_.qX=="sw"?"{0} na {1}":_.qX=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.qX=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.qX=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.qX=="tr"?"{0} ve {1}":_.qX=="ur"?"{0} \u0627\u0648\u0631 {1}":_.qX=="uz"?"{0} va {1}":_.qX=="vi"?"{0} v\u00e0 {1}":_.qX=="zh-HK"?"{0}\u53ca{1}":_.qX=="zu"?"{0} ne-{1}":_.qX=="af"||_.qX=="nl"?"{0} en {1}":_.qX=="ar"||_.qX==
"ar-XB"?"{0} \u0648{1}":_.qX=="be"||_.qX=="uk"?"{0} \u0456 {1}":_.qX=="cs"||_.qX=="sk"?"{0} a\u00a0{1}":_.qX=="et"||_.qX=="fi"?"{0} ja {1}":_.qX=="fr"||_.qX=="fr-CA"?"{0} et {1}":_.qX=="id"||_.qX=="ms"?"{0} dan {1}":_.qX=="zh-CN"||_.qX=="zh-TW"?"{0}\u548c{1}":_.qX=="da"||_.qX=="is"||_.qX=="no"?"{0} og {1}":_.qX=="es"||_.qX=="es-419"||_.qX=="es-US"?"{0} y {1}":_.qX=="bg"||_.qX=="mk"||_.qX=="ru"||_.qX=="sr"?"{0} \u0438 {1}":_.qX=="en"||_.qX=="en-GB"||_.qX=="en-IN"||_.qX=="en-XA"?"{0} and {1}":_.qX==
"gl"||_.qX=="it"||_.qX=="pt-BR"||_.qX=="pt-PT"?"{0} e {1}":"{0} i {1}";_.qX==="sq"?(L=L.replace("dhe","e"),h=h.replace("dhe","e")):_.qX==="th"?(T=T.replace("{0}"," {0}"),h=h.replace("{0}","{0} "),h=h.replace("{1}"," {1}")):_.qX==="ne"?T=",":_.qX==="zh-CN"?T="":O.includes(_.qX)&&(T=" ");return W.length<2?W.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(_.qX)?W.length===2?
h.replace("{0}",W[0]).replace("{1}",W[1]):b.replace("{0}",W[0])+W.slice(1,-1).join(T)+L.replace("{0}",W[W.length-1]):W.join(T)};
_.d.getTimeParam=function(){return MH9(this.timeString)};
_.d.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var W={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},O;_.dk(_.A4(),(O=this.data)==null?void 0:O.trackingParams,W,7)};
_.d.onChangeStartAtTimestamp=function(){for(var W=this.startAtTimestamp.value.split(":"),O=0,b=1,T=W.length-1;T>=0;T--)O+=Number(W[T])*b,b*=60;this.updateTimeSecs(O);this.setTimestamp()};
_.d.onOpen=function(){var W=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var O=_.ya();O?O.getPlayerPromise().then(function(b){b=b.getCurrentTime();W.updateTimeSecs(b)}):wO9()&&this.updateTimeSecs(wO9())};
_.d.setTimestamp=function(){var W=Math.floor(this.currentTimeSecs);_.jx(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!W,timestamp:W||""}])};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],TW.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],TW.prototype,"data",void 0);_.t([_.C({value:!1,notify:!0}),_.N("design:type",Boolean)],TW.prototype,"isStartAtChecked",void 0);_.t([_.C(),_.N("design:type",Number)],TW.prototype,"currentTimeSecs",void 0);
_.t([_.C({computed:"computeTimeString(currentTimeSecs)"}),_.N("design:type",String)],TW.prototype,"timeString",void 0);_.t([_.C({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.N("design:type",String)],TW.prototype,"timeStringA11y",void 0);_.t([_.El("#start-at-timestamp"),_.N("design:type",Object)],TW.prototype,"startAtTimestamp",void 0);TW=_.t([_.sl({is:"yt-start-at-renderer",disableElementRegistration:!0})],TW);
_.H(TW,"yt-start-at-renderer",function(){if(lx2===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;UlN===void 0&&(UlN=document.createElement("template"));var T=UlN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);lx2=W}W=lx2;return W},{mode:2});var eiU;var PDZ;var pP2=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),RiB=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),KxB=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var vd1={};vd1.YtBindingExpressionsBehavior={identity:_.GX,msg:function(W,O){O=O===void 0?{}:O;return _.EO(W,O,W)},
msgPlural:function(W,O){return _.wa(W,O)},
getMusicIconFromType:function(W){if(_.e("music_web_enable_icon_wil"))W=_.Z6(W);else if(RiB.has(W))W="yt-sys-icons:"+RiB.get(W);else{var O=pP2.get(W)||_.Z6(W).split(":")[1];O=_.KZe(O);var b;W=((b=KxB.get(W))!=null?b:"yt-sys-icons:")+O}return W}};var gdU;var od9;var QVD;var kLN=document.head,sV9=kLN.appendChild,BwN;if(QVD===void 0){var rW8=document.createElement("template");_.v(rW8,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');QVD=rW8}BwN=QVD;sV9.call(kLN,BwN.content);var Lx=function(){var W=_.n.apply(this,arguments)||this;W.screenLayer=7;return W};
_.R(Lx,_.n);Lx.prototype.getScreenLayer=function(){return this.screenLayer};
Lx.prototype.onTap=function(W){W&&W.detail&&(W.detail.x||W.detail.y)&&_.Q(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.da(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(W=this.getScreenLayer(),_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:W}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Jq.Object.defineProperties(Lx.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()}}});
Lx.prototype.onTap=Lx.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Lx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Lx.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Lx.prototype,"data",void 0);_.t([_.x("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],Lx.prototype,"title",null);
_.t([_.x("data.serviceName"),_.N("design:type",String),_.N("design:paramtypes",[])],Lx.prototype,"icon",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Lx.prototype,"onTap",null);Lx=_.t([_.sl({is:"yt-share-target-renderer",disableElementRegistration:!0})],Lx);
_.H(Lx,"yt-share-target-renderer",function(){if(od9===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;gdU===void 0&&(gdU=document.createElement("template"));var T=gdU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);od9=W}W=od9;return W},{mode:2});var DlB;var xlR;var dR=function(){var W=_.n.apply(this,arguments)||this;W.SHARE_TARGET_WIDTH=70;W.SHARE_TARGET_MARGIN_RIGHT=8;W.PAGE_SCROLL_SPEED=9;W.actionMap={"yt-share-panel-reset-action":"onReset_"};return W};
_.R(dR,_.n);_.d=dR.prototype;_.d.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.d.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Q(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Q(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.d.onReset_=function(){if(_.Q(this.hostElement).querySelector("#list")){var W=_.Q(this.hostElement).querySelector("#list");var O=_.Q(this.hostElement).querySelector("#list");var b=O.offsetLeft,T=O.offsetParent;T||_.Lnz(O)!="fixed"||(T=_.g4(O).documentElement);if(T){if(_.TR&&!_.dQ(58)){var L=_.YvH(T);b+=L.left}else Number(_.CYX)>=8&&!(Number(_.CYX)>=9)&&(L=_.YvH(T),b-=L.left);O=_.aSL(T)?T.clientWidth-(b+O.offsetWidth):b}else O=b;wi7(W,O);this.updateScrollButtons_()}};
_.d.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.d.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.d.onScrollWheel_=function(W){W.stopPropagation();W.preventDefault();var O=Ey7(_.Q(this.hostElement).querySelector("#list"));W=Math.abs(W.deltaX)>Math.abs(W.deltaY)?W.deltaX:W.deltaY;wi7(_.Q(this.hostElement).querySelector("#list"),O+W);this.updateScrollButtons_()};
_.d.smoothScrollByOnePage_=function(W){var O=_.Q(this.hostElement).querySelector("#list"),b=(Math.floor(O.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,T=Ey7(O),L=b*(W?1:-1),h=this.PAGE_SCROLL_SPEED,Z=this.updateScrollButtons_.bind(this),a=0,m;(function A(){a+=h;m=a/b*2;wi7(O,T+L*(m<1?m*m:-m*m+4*m-2));a<b?window.requestAnimationFrame(A):Z()})()};
_.d.updateScrollButtons_=function(){var W=Ey7(_.Q(this.hostElement).querySelector("#list")),O=_.Q(this.hostElement).querySelector("#list").scrollWidth-_.Q(this.hostElement).querySelector("#list").clientWidth;_.Q(this.hostElement).querySelector("#scroll-button-back").hidden=W<=0;_.Q(this.hostElement).querySelector("#scroll-button-forward").hidden=W>=O};
dR.prototype.onScrollWheel_=dR.prototype.onScrollWheel_;dR.prototype.onDataChanged_=dR.prototype.onDataChanged_;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],dR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(vd1.YtBindingExpressionsBehavior),_.N("design:type",Object)],dR.prototype,"ytBindingExpressionsBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dR.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dR.prototype,"onDataChanged_",null);_.t([_.ai("wheel"),_.N("design:type",Function),_.N("design:paramtypes",[WheelEvent]),_.N("design:returntype")],dR.prototype,"onScrollWheel_",null);
dR=_.t([_.sl({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],dR);
_.H(dR,"yt-third-party-share-target-section-renderer",function(){if(xlR===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;DlB===void 0&&(DlB=document.createElement("template"));var T=DlB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);xlR=W}W=xlR;return W},{mode:2});var hO=function(){return _.n.apply(this,arguments)||this};
_.R(hO,_.n);hO.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hO.prototype,"data",void 0);hO=_.t([_.sl({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],hO);
_.H(hO,"yt-third-party-network-section-renderer",function(){if(PDZ===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;eiU===void 0&&(eiU=document.createElement("template"));var T=eiU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);PDZ=W}W=PDZ;return W},{mode:2});_.O1(_.J1(function(W){return _.E("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.E("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.E(_.R4,{data:function(){return W.data().firstPartyItems}},{listItemViewModel:_.ve})))},"hg"),"first-party-network-section-view-model",{props:{data:_.te}});var ziN=_.ts(["data:image/svg+xml;charset=UTF-8;base64,",""]),S2=function(){var W=_.n.apply(this,arguments)||this;W.screenLayer=7;W.qrCodeEnabled=_.e("web_enable_sharing_qr_code");W.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return W};
_.R(S2,_.n);_.d=S2.prototype;_.d.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.d.attached=function(){this.JSC$17830_scroller&&(this.JSC$17830_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17830_scroller.attached&&typeof this.JSC$17830_scroller.attached==="function"&&this.JSC$17830_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.d.onDataChanged=function(){var W=this,O;(O=this.data)!=null&&O.contents&&(this.hostElement.setAttribute("links-only","true"),_.di(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.My(this,function(){_.bX(W.hostElement,"yt-refit");W.focusSharePanelHeader()}))};
_.d.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.d.handleSetTimestamp=function(W){var O=this.shortUrl();W.isSet&&(O=_.zp(O,"t",W.timestamp));this.maybeRenderQrCode(O)};
_.d.shortUrl=function(){var W,O=(W=this.data)==null?void 0:W.contents;if(O)for(W=0;W<O.length;W++){var b=void 0,T=void 0;if((b=O[W])==null?0:(T=b.thirdPartyNetworkSection)==null?0:T.copyLinkContainer){var L=T=b=void 0;return(L=_.P((b=O[W])==null?void 0:(T=b.thirdPartyNetworkSection)==null?void 0:T.copyLinkContainer,Xq7))==null?void 0:L.shortUrl}}};
_.d.maybeRenderQrCode=function(W){var O=this,b,T,L,h,Z,a,m,w,A;return _.I(function(X){if(X.nextAddress==1){b=_.Q(O.hostElement).querySelector("#qr-code");if(!O.qrCodeEnabled||!W)return b&&(b.style.display="none"),X.return();T=_.xD2(_.iq().resolve(_.Ix),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});L=document.createElement("div");return typeof T==="function"?(T(L),X.jumpTo(2)):_.Y(X,T,3)}X.nextAddress!=2&&(h=X.yieldResult,h(L));m=(Z=L)==null?void 0:(a=Z.firstChild)==null?void 0:a.firstChild;
w=document.createElement("img");A=_.RQ(ziN,btoa(m.outerHTML));w.onload=function(){var l={canvas:b,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:w},p=new Ne7;y85(p,W);WA1(p,!1,OP7(p));var K=p.modules,k=Object.assign({},FH5,l);K=structuredClone(K);l=K.length;var r,q=(r=k.canvas)!=null?r:document.createElement("canvas");r=k.cellSize;p=k.logo;var f,M=(f=k.logoSize)!=null?f:Math.floor(l/4);l%2!==M%2&&M++;var V=k.logoPadding,jQ=k.backgroundColor;f=l*r;var y=
k.width,d8=0;y&&(d8=k.padding,d8=Math.ceil(d8*f/(y-d8*2)),q.style.width=y+"px",q.style.height=y+"px");q.width!==f+d8*2&&(q.width=f+d8*2);q.height!==f+d8*2&&(q.height=f+d8*2);f=q.getContext("2d");k.autoClear&&f.clearRect(0,0,q.width,q.height);f.fillStyle=jQ;f.beginPath();f.roundRect(0,0,q.width,q.height,k.borderRadius);f.fill();f.save();f.translate(d8,d8);if(p)for(q=Math.floor(l-M)/2-V,V=Math.floor(l+M)/2+V,jQ=q;jQ<V;jQ++)for(y=q;y<V;y++)K[jQ][y]=!1;for(q=0;q<l;q++)for(V=0;V<l;V++)(q<7&&V<7||q<7&&
V>=l-7||q>=l-7&&V<7)&&(K[q][V]=!1);var pE;q=(pE=k.markerColor)!=null?pE:k.color;bP8(f,0,0,r,q);bP8(f,r*(l-7),0,r,q);bP8(f,0,r*(l-7),r,q);switch(k.cellStyle){case 0:pE=K;K=pE.length;q=k.cellSize;f.beginPath();for(V=0;V<K;V++)for(jQ=0;jQ<K;jQ++)pE[V][jQ]&&f.rect(V*q,jQ*q,q,q);f.fillStyle=k.color;f.fill();break;case 1:pE=K;K=pE.length;q=k.cellSize;V=q*k.relativeCircleSize;f.fillStyle=k.color;f.beginPath();for(k=0;k<K;k++)for(jQ=0;jQ<K;jQ++)pE[k][jQ]&&(f.beginPath(),f.ellipse((k+.5)*q,(jQ+.5)*q,V/2,V/
2,0,0,2*Math.PI),f.fill());f.fill();break;case 2:pE=K;K=pE.length;q=k.cellSize;f.fillStyle=k.color;k=[[1,1],[-1,1],[-1,-1],[1,-1]];f.beginPath();for(V=0;V<K;V++)for(jQ=0;jQ<K;jQ++)if(pE[V][jQ])f.roundRect(V*q,jQ*q,q,q,q/2),V+1<K&&pE[V+1][jQ]&&f.rect(V*q+q/2,jQ*q,q,q),jQ+1<K&&pE[V][jQ+1]&&f.rect(V*q,jQ*q+q/2,q,q);else{y=V*q+q/2;d8=jQ*q+q/2;for(var Qh=0;Qh<4;Qh++){var KE=_.S(k[Qh]),fE=KE.next().value;KE=KE.next().value;V+fE>=0&&V+fE<K&&jQ+KE>=0&&jQ+KE<K&&pE[V+fE][jQ]&&pE[V][jQ+KE]&&pE[V+fE][jQ+KE]&&
(fE=Qh*Math.PI/2,KE=q/2,f.moveTo(y+KE*Math.cos(fE),d8+KE*Math.sin(fE)),f.arc(y,d8,q/2,fE,fE+Math.PI/2,!1),f.lineTo(y+KE*(Math.cos(fE)-Math.sin(fE)),d8+KE*(Math.cos(fE)+Math.sin(fE))),f.lineTo(y+KE*Math.cos(fE),d8+KE*Math.sin(fE)))}}f.fill()}p&&f.drawImage(p,(l-M)*r/2,(l-M)*r/2,M*r,M*r);f.restore();b.style.removeProperty("display")};
w.src=_.EB(A);_.aD(X)})};
_.d.hasCommunityPostRenderer=function(){var W,O,b,T;return!!((W=this.data)==null?0:(O=W.header)==null?0:(b=O.sharePanelHeaderRenderer)==null?0:(T=b.communityPost)==null?0:T.communityPostSectionRenderer)};
_.d.onTapClose=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.d.getScreenLayer=function(){return this.screenLayer};
_.d.logSharePanelPage=function(){if(!_.e("enable_share_panel_navigation_logging_fix_on_web")){var W;if((W=this.data)!=null&&W.trackingParams){W=this.data.trackingParams;var O=this.parentClickTrackingParams;O=O?_.Pi(O):void 0;var b=_.A4();_.bh(b,21760,O,{layer:7,parentLayer:0});b.graftServerVe(W,void 0,7);_.uv().dispatch(_.Tc({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
S2.prototype.onDataChanged=S2.prototype.onDataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],S2.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],S2.prototype,"data",void 0);_.t([_.C({value:_.EO("SBOX_INAPPROPRIATE_CANCEL")}),_.N("design:type",String)],S2.prototype,"closeButtonAriaLabel",void 0);_.t([_.El("yt-share-panel-header-renderer"),_.N("design:type",HTMLElement)],S2.prototype,"header",void 0);_.t([_.C({selector:function(W){return W.share.parentClickTrackingParams}}),
_.N("design:type",String)],S2.prototype,"parentClickTrackingParams",void 0);_.t([_.C(),_.N("design:type",Object)],S2.prototype,"qrCodeEnabled",void 0);_.t([_.El("#scroller"),_.N("design:type",Object)],S2.prototype,"JSC$17830_scroller",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S2.prototype,"onDataChanged",null);S2=_.t([_.G({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],S2);
_.H(S2,"ytd-unified-share-panel-renderer",function(){if(Z62!==void 0)return Z62;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Z62=W},{mode:1});var CDg;var ZV=function(){var W=_.n.apply(this,arguments)||this;W.modernModal=_.e("kevlar_sign_in_modal_modernization");return W};
_.R(ZV,_.n);ZV.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ZV.prototype.computeShouldHideOldButtons=function(){var W;return!((W=this.data)==null?0:W.button)};
_.Jq.Object.defineProperties(ZV.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var W,O;if(this.modernModal&&((W=this.data)==null?0:(O=W.button)==null?0:O.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var b,T;return(b=this.data)==null?void 0:(T=b.button)==null?void 0:T.buttonRenderer}}});
_.t([_.C(),_.N("design:type",Object)],ZV.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],ZV.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ZV.prototype,"modernModal",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ZV.prototype,"buttonRendererData",null);
ZV=_.t([_.G({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ZV);
_.H(ZV,"ytd-modal-with-title-and-button-renderer",function(){if(CDg!==void 0)return CDg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return CDg=W},{mode:1});var q6k;var It=function(){return _.n.apply(this,arguments)||this};
_.R(It,_.n);It.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("page-changed",this.page))};
It.prototype.pageChangedForBinding=It.prototype.pageChangedForBinding;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],It.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],It.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],It.prototype,"page",void 0);_.t([_.m5("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],It.prototype,"pageChangedForBinding",null);
It=_.t([_.G({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],It);
_.H(It,"ytd-account-item-section-header-renderer",function(){if(q6k!==void 0)return q6k;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return q6k=W},{mode:1});var ndR;var at=function(){return _.n.apply(this,arguments)||this};
_.R(at,_.n);at.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"}}}};
at.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],at.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],at.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],at.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],at.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Function)],at.prototype,"onAccountItemTap",void 0);
at=_.t([_.G({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],at);
_.H(at,"ytd-account-item-section-renderer",function(){if(ndR!==void 0)return ndR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ndR=W},{mode:1});var fxD;var GLU;var mk=function(){return _.n.apply(this,arguments)||this};
_.R(mk,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],mk.prototype,"data",void 0);mk=_.t([_.G({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],mk);
_.H(mk,"ytd-accounts-dialog-header-renderer",function(){if(GLU!==void 0)return GLU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GLU=W},{mode:1});var H6U;var Yf=function(){return _.n.apply(this,arguments)||this};
_.R(Yf,_.n);Yf.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yf.prototype,"data",void 0);Yf=_.t([_.G({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Yf);
_.H(Yf,"ytd-google-account-header-renderer",function(){if(H6U!==void 0)return H6U;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return H6U=W},{mode:1});var Ed=function(){return _.n.apply(this,arguments)||this};
_.R(Ed,_.n);Ed.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"}}}};
Ed.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("page-changed",this.page))};
Ed.prototype.pageChangedForBinding=Ed.prototype.pageChangedForBinding;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ed.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ed.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ed.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Ed.prototype,"page",void 0);
_.t([_.m5("page"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ed.prototype,"pageChangedForBinding",null);Ed=_.t([_.G({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],Ed);
_.TH()(Ed,"ytd-account-section-list-renderer",function(){if(fxD===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);fxD=W}W=fxD;return W},{allowedProps:["data"],
mode:1});var tfZ;var wR=function(){var W=_.n.apply(this,arguments)||this;W.enableHandlesAccountMenuSwitcher=_.e("enable_handles_account_menu_switcher");return W};
_.R(wR,_.n);wR.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
wR.prototype.dataChanged=wR.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wR.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],wR.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.t([_.El("#avatar"),_.N("design:type",Object)],wR.prototype,"avatar",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wR.prototype,"dataChanged",null);wR=_.t([_.G({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],wR);
_.TH()(wR,"ytd-active-account-header-renderer",function(){if(tfZ===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);tfZ=W}W=tfZ;return W},{allowedProps:["data"],
mode:1});var $l2;var Vfg;var AO=function(){return _.n.apply(this,arguments)||this};
_.R(AO,_.n);AO.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
AO.prototype.onBackTap=function(){_.bX(this.hostElement,"yt-menu-back-tapped")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],AO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],AO.prototype,"data",void 0);AO=_.t([_.G({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],AO);
_.TH()(AO,"ytd-simple-menu-header-renderer",function(){if(Vfg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);Vfg=W}W=Vfg;return W},{allowedProps:["data"],
mode:2});var Nw2;var Xm=function(){return _.n.apply(this,arguments)||this};
_.R(Xm,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xm.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xm.prototype,"data",void 0);Xm=_.t([_.G({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Xm);
_.H(Xm,"ytd-comment-video-thumbnail-header-renderer",function(){if(Nw2!==void 0)return Nw2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Nw2=W},{mode:1});var MfZ;var Ud=function(){return _.n.apply(this,arguments)||this};
_.R(Ud,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ud.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ud.prototype,"data",void 0);Ud=_.t([_.G({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],Ud);
_.H(Ud,"ytd-abuse-type-selector-renderer",function(){if(MfZ!==void 0)return MfZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MfZ=W},{mode:1});var u$g;var l4=function(){return _.n.apply(this,arguments)||this};
_.R(l4,_.n);l4.prototype.attached=function(){var W=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){W.additionalContextInput.focusTextInput()})};
l4.prototype.handleAdditionalContextChanged=function(){var W=this;_.n2(this,"ytd-report-channel-additional-context-update",function(){W.ytdReduxBehavior.dispatch(_.Tc({type:"ADDITIONAL_CONTEXT_UPDATED",payload:W.additionalContext}))},300)};
l4.prototype.updateAdditionalContextFromBinding=function(W){this.additionalContext=W.detail.value};
l4.prototype.handleAdditionalContextChanged=l4.prototype.handleAdditionalContextChanged;_.t([_.D(_.sh),_.N("design:type",Object)],l4.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",String)],l4.prototype,"additionalContext",void 0);_.t([_.C({selector:function(W){return W.reportChannelAbuse.additionalContext}}),
_.N("design:type",String)],l4.prototype,"additionalContextRedux",void 0);_.t([_.C(),_.N("design:type",Object)],l4.prototype,"data",void 0);_.t([_.El("yt-text-input-form-field-renderer"),_.N("design:type",Object)],l4.prototype,"additionalContextInput",void 0);_.t([_.m5("additionalContext"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l4.prototype,"handleAdditionalContextChanged",null);
l4=_.t([_.G({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],l4);
_.H(l4,"ytd-report-channel-modal-additional-context-renderer",function(){if(u$g!==void 0)return u$g;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return u$g=W},{mode:1});var JWZ;var e2=function(){var W=_.n.apply(this,arguments)||this;W.nextButtonDisabled=null;W.submitEndpoint=null;W.navigationEndpoint=null;W.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return W};
_.R(e2,_.n);_.d=e2.prototype;_.d.computeNextButtonData=function(W,O,b){var T={};O&&(T.navigationEndpoint=O);b&&(T.serviceEndpoint=b);W&&W.buttonRenderer&&_.PQ.extend(T,W.buttonRenderer);return T};
_.d.handleReportChannelModalDisableNextButtonAction=function(W){this.setNextButtonIsDisabled(W)};
_.d.handleReportFormEndpointUpdateAction=function(W){this.setNextButtonIsDisabled(!!W.disableSubmitButton);this.resetEndpointData();W.submitEndpoint?this.submitEndpoint=W.submitEndpoint:W.submitNavigationEndpoint&&(this.navigationEndpoint=W.submitNavigationEndpoint)};
_.d.handleSignalActionSubmitForm=function(){var W,O=Object.keys(((W=this.reportChannelAbuseForm)==null?void 0:W.selectedVideoIds)||{}),b;W=((b=this.reportChannelAbuseForm)==null?void 0:b.additionalContext)||"";var T;b=((T=this.reportChannelAbuseForm)==null?void 0:T.impersonatedChannelUrl)||"";var L;if((L=this.data)==null?0:L.submitEndpoint){O={impersonated_channel_url:b,text:W,video_ids:O};var h;_.iq().resolve(_.bq).resolveCommand((h=this.data)==null?void 0:h.submitEndpoint,{form:Object.assign({},
O,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.d.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.d.onYtServiceRequestError=function(W){this.setNextButtonIsDisabled(!1);_.yU(this.hostElement,W.detail.error.message)};
_.d.setNextButtonIsDisabled=function(W){this.set("data.nextButton.buttonRenderer.isDisabled",W)};
_.d.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
e2.prototype.onYtServiceRequestError=e2.prototype.onYtServiceRequestError;e2.prototype.onYtServiceRequestCompleted=e2.prototype.onYtServiceRequestCompleted;_.t([_.C(),_.N("design:type",Object)],e2.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],e2.prototype,"nextButtonDisabled",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],e2.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],e2.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],e2.prototype,"submitEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],e2.prototype,"navigationEndpoint",void 0);_.t([_.C({selector:function(W){return W.reportChannelAbuse}}),
_.N("design:type",Object)],e2.prototype,"reportChannelAbuseForm",void 0);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e2.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],e2.prototype,"onYtServiceRequestError",null);
e2=_.t([_.G({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],e2);
_.H(e2,"ytd-report-channel-modal-footer-renderer",function(){if(JWZ!==void 0)return JWZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return JWZ=W},{mode:1});var cW2;var P6=function(){var W=_.n.apply(this,arguments)||this;W.boundOnTapDismissButton=function(){W.closePopup()};
return W};
_.R(P6,_.n);P6.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
P6.prototype.handleDataChanged=function(){_.uP(this.hostElement)};
P6.prototype.closePopup=function(){_.jx(this.hostElement,"yt-close-popup-action")};
P6.prototype.handleDataChanged=P6.prototype.handleDataChanged;_.t([_.C(),_.N("design:type",Object)],P6.prototype,"boundOnTapDismissButton",void 0);_.t([_.C(),_.N("design:type",Object)],P6.prototype,"data",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],P6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],P6.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],P6.prototype,"handleDataChanged",null);P6=_.t([_.G({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],P6);
_.H(P6,"ytd-report-channel-modal-header-renderer",function(){if(cW2!==void 0)return cW2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return cW2=W},{mode:1});var FxP;var px=function(){var W=_.n.apply(this,arguments)||this;W.autoValidate=!1;W.invalid=!1;W.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return W};
_.R(px,_.n);_.d=px.prototype;_.d.attached=function(){var W=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){W.channelUrlInput.focusTextInput()})};
_.d.disableNextButton=function(W){_.jx(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[W])};
_.d.handleImpersonatedChannelUrlChanged=function(){var W=this;this.disableNextButton(!0);this.invalid=!1;_.n2(this,"ytd-report-channel-impersonated-channel-update",function(){var O=W.impersonatedChannelUrl.trim();W.ytdReduxBehavior.dispatch(_.Tc({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:O}));var b;((b=W.data)==null?0:b.submitEndpoint)&&O&&_.iq().resolve(_.bq).resolveCommand(W.data.submitEndpoint,{form:{impersonated_channel_url:O,element:W.hostElement}})},500)};
_.d.handleModifyReportFormCommand=function(W){this.invalid=this.get("modifyReportFormCommand.action",W)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.d.updateInvalidFromBinding=function(W){this.invalid=W.detail.value};
_.d.updateImpersonatedChannelUrlFromBinding=function(W){this.impersonatedChannelUrl=W.detail.value};
px.prototype.handleImpersonatedChannelUrlChanged=px.prototype.handleImpersonatedChannelUrlChanged;_.t([_.D(_.sh),_.N("design:type",Object)],px.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],px.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],px.prototype,"autoValidate",void 0);_.t([_.C(),_.N("design:type",Object)],px.prototype,"invalid",void 0);
_.t([_.C(),_.N("design:type",String)],px.prototype,"impersonatedChannelUrl",void 0);_.t([_.C({selector:function(W){return W.reportChannelAbuse.impersonatedChannelUrl}}),
_.N("design:type",String)],px.prototype,"impersonatedChannelUrlRedux",void 0);_.t([_.C(),_.N("design:type",Object)],px.prototype,"data",void 0);_.t([_.El("#text-input"),_.N("design:type",Object)],px.prototype,"channelUrlInput",void 0);_.t([_.m5("impersonatedChannelUrl"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],px.prototype,"handleImpersonatedChannelUrlChanged",null);
px=_.t([_.G({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],px);
_.H(px,"ytd-report-channel-modal-impersonation-renderer",function(){if(FxP!==void 0)return FxP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return FxP=W},{mode:1});var yWR;var Wf8;var Rt=function(){return _.n.apply(this,arguments)||this};
_.R(Rt,_.n);Rt.prototype.onCheckboxToggled=function(W){var O,b,T=(b=_.P((O=this.data)==null?void 0:O.video,_.r5))==null?void 0:b.videoId;T&&this.ytdReduxBehavior.dispatch(W.target.checked?_.Tc({type:"VIDEO_SELECTED",payload:T}):_.Tc({type:"VIDEO_UNSELECTED",payload:T}))};
Rt.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Jq.Object.defineProperties(Rt.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var W,O=(W=this.data)==null?void 0:W.video;if(!O)return{};var b;W=(b=_.P(O,_.r5))==null?void 0:b.navigationEndpoint;if(!W)return O;_.P(W==null?void 0:W.commandMetadata,_.F9)&&(_.P(W.commandMetadata,_.F9).ignoreNavigation=!0);return O}}});
_.t([_.C({reflectToAttribute:!0,selector:function(W,O){return O in W.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.N("design:type",Boolean)],Rt.prototype,"checked",void 0);_.t([_.C(),_.N("design:type",Object)],Rt.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Rt.prototype,"video",null);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Rt.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rt.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],Rt.prototype,"ytdReduxBehavior",void 0);Rt=_.t([_.G({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Rt);
_.H(Rt,"ytd-selectable-video-renderer",function(){if(Wf8!==void 0)return Wf8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Wf8=W},{mode:1});var Kx=function(){var W=_.n.apply(this,arguments)||this;W.monitorScroll=!0;return W};
_.R(Kx,_.n);Kx.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Kx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Kx.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Kx.prototype,"data",void 0);Kx=_.t([_.G({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Kx);
_.H(Kx,"ytd-selectable-video-list-renderer",function(){if(yWR!==void 0)return yWR;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return yWR=W},{mode:1});var Ohg;_.Bs("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var v6=function(){return _.n.apply(this,arguments)||this};
_.R(v6,_.n);v6.prototype.onChange=function(W){if(W=_.Md(W).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.e("kevlar_command_handler_migration_killswitch"))_.Sx(this.hostElement,W,this.hostElement);else{W=_.S(W);for(var O=W.next();!O.done;O=W.next())this.ytComponentBehavior.resolveCommand(O.value)}};
v6.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
v6.prototype.updateDataToggledFromBinding=function(W){this.set("data.toggled",W.detail.value)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],v6.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],v6.prototype,"data",void 0);_.t([_.C({computed:"isEnabled(data)"}),_.N("design:type",Boolean)],v6.prototype,"enabled",void 0);v6=_.t([_.G({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],v6);
_.H(v6,"ytd-toggle-item-renderer",function(){if(Ohg!==void 0)return Ohg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ohg=W},{mode:1});var ihN;var bhP;var jlU;var gR=function(){var W=_.n.apply(this,arguments)||this;W.setVisible=!1;W.boundOnSubmitButtonClick=function(){W.onSubmitButtonClick()};
W.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return W};
_.R(gR,_.n);gR.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}}}}}};
gR.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
gR.prototype.onSubmitButtonClick=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&!_.e("enable_ytc_refunds_submit_form_signal_action")&&_.da(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
gR.prototype.handleSignalActionSubmitForm=function(){var W;((W=this.data)==null?0:W.submitEndpoint)&&_.da(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Jq.Object.defineProperties(gR.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.hiddenByDefault)&&!this.setVisible}}});
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],gR.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gR.prototype,"setVisible",void 0);_.t([_.C(),_.N("design:type",Object)],gR.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],gR.prototype,"surveyFeedbackData",void 0);_.t([_.C(),_.N("design:type",Object)],gR.prototype,"boundOnSubmitButtonClick",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data","setVisible"),_.N("design:type",Object),_.N("design:paramtypes",[])],gR.prototype,"visibilityHidden",null);gR=_.t([_.sl({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],gR);
_.H(gR,"yt-flow-footer-renderer",function(){if(jlU===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;bhP===void 0&&(bhP=document.createElement("template"));var T=bhP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);jlU=W}W=jlU;return W},{mode:2});var ot=function(){return _.n.apply(this,arguments)||this};
_.R(ot,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ot.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],ot.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ot.prototype,"data",void 0);_.t([_.C({selector:function(W){return W.ypc.surveyFeedbackData}}),
_.N("design:type",Object)],ot.prototype,"surveyFeedbackData",void 0);ot=_.t([_.G({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],ot);
_.H(ot,"ytd-flow-footer-renderer",function(){if(ihN!==void 0)return ihN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ihN=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var TnZ;var Lfk;var Q_=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return W};
_.R(Q_,_.n);_.d=Q_.prototype;_.d.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.rd("multiPageMenuSectionItems")}}};
_.d.handleHideEnclosingAction_=function(W){if(this.data&&this.data.items)for(var O=0;O<this.data.items.length;O++){var b=this.data.items[O].notificationRenderer;if(b&&b.notificationId==W.hideEnclosingAction.notificationId){this.splice("data.items",O,1);_.jx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.d.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.di(this.hostElement,"hidden",!0)};
_.d.updateMenu_=function(W){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&W&&!W.doNotRefreshInbox){W=this.data.continuations;for(var O=0;O<W.length;O++)if(W[O].invalidationContinuationData){var b=void 0;var T=(b=W[O].invalidationContinuationData)==null?void 0:b.continuation;break}W=_.PQ.clone(this.data.continuationUpdateEndpoint||null);W.continuation=T;W.click_tracking_params=this.data.trackingParams;_.da(this.hostElement,[W])}};
_.d.onServiceRequestCompleted_=function(W,O){if(this.data&&(W=O.actions)){O=0;for(var b=W.length;O<b;O++){var T=_.P(W[O],_.LDN);if(!T)break;if((T.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||T.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&T.continuationItems&&this.data.items){var L=this.data.items.length-1;this.data.items[L].continuationItemRenderer&&this.splice.apply(this,["data.items",L,1].concat(T.continuationItems))}}}};
Q_.prototype.onServiceRequestCompleted_=Q_.prototype.onServiceRequestCompleted_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Q_.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Q_.prototype,"data",void 0);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Q_.prototype,"onServiceRequestCompleted_",null);Q_=_.t([_.sl({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],Q_);
_.TH()(Q_,"yt-multi-page-menu-section-renderer",function(){if(Lfk===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;TnZ===void 0&&(TnZ=document.createElement("template"));var T=TnZ;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Lfk=W}W=Lfk;return W},{allowedProps:["data"],
mode:2});var d55;var hVN;var kf=function(){return _.n.apply(this,arguments)||this};
_.R(kf,_.n);kf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Jq.Object.defineProperties(kf.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.progress)==null?0:this.data.progress*100}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kf.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kf.prototype,"data",void 0);_.t([_.x("data.progress"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],kf.prototype,"showProgressBar",null);
_.t([_.x("data.progress"),_.N("design:type",Number),_.N("design:paramtypes",[])],kf.prototype,"progress",null);kf=_.t([_.sl({is:"yt-flow-header-renderer",disableElementRegistration:!0})],kf);
_.H(kf,"yt-flow-header-renderer",function(){if(hVN===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;d55===void 0&&(d55=document.createElement("template"));var T=d55;b.call(O,T.content.cloneNode(!0),W.content.firstChild);hVN=W}W=hVN;return W},{mode:2});var ShB;var ZhU;var sd=function(){return _.n.apply(this,arguments)||this};
_.R(sd,_.n);sd.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sd.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sd.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],sd.prototype,"data",void 0);sd=_.t([_.sl({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],sd);
_.H(sd,"yt-post-confirmation-flow-step-renderer",function(){if(ZhU===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;ShB===void 0&&(ShB=document.createElement("template"));var T=ShB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);ZhU=W}W=ZhU;return W},{mode:2});var IXP;var aXN;var B6=function(){return _.n.apply(this,arguments)||this};
_.R(B6,_.n);
B6.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],B6.prototype,"data",void 0);B6=_.t([_.sl({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],B6);
_.H(B6,"yt-refund-confirmation-flow-step-renderer",function(){if(aXN===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;IXP===void 0&&(IXP=document.createElement("template"));var T=IXP;b.call(O,T.content.cloneNode(!0),W.content.firstChild);aXN=W}W=aXN;return W},{mode:2});_.bO(u9B);_.bO(JCD);var cC8=_.lw({avatarViewModel:_.KF});_.bO(F15);var yCD=_.lw({commentInteractionViewModel:JCD,sharedSubscriptionViewModel:F15,buttonViewModel:_.DO});_.bO(WM9);_.bO(OVk);_.bO(iV7);_.bO(bVZ);_.bO(j5Z);var Tak=_.lw({profileIdentityInfoViewModel:_.hvg,profileInfoViewModel:j5Z});_.bO(LM5);_.Z3(LM5,"yt-profile-card-view-model",{propNames:["data"]});var rR=function(){var W=_.n.apply(this,arguments)||this;W.enableFocusFix=_.e("music_web_enable_focus_on_setting_menu_fix")&&_.qC("IS_MOBILE_WEB",!1);W.covered=!1;W.hideMenu=!1;W.isCommentNotificationOnProfileCard=!1;W.scrolledByTouch=!1;W.disableBackdropFilter=_.e("web_disable_backdrop_filter");W.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return W};
_.R(rR,_.n);_.d=rR.prototype;
_.d.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"}}}};
_.d.ready=function(){var W=this;this.JSC$17939_containerElement.addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.d.attributeChanged=function(W,O){W==="menu-style"&&_.jx(this.hostElement,"yt-multi-page-menu-closed-action",[O])};
_.d.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ii(this,this.focusOnStampFinished))};
_.d.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.Ii(this,this.focusOnStampFinished))};
_.d.reset=function(){this.closeJobId&&(_.sF.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.d.focusOnStampFinished=function(W){W.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.Ii(this,this.focusOnStampFinished)),this.doFocus())};
_.d.doFocus=function(){var W=_.Xsz(this.sectionsElement);W.length&&W[0].focus()};
_.d.computeMenuStyle=function(W){return W?W.toLowerCase().replace(/_/g,"-"):""};
_.d.computeIsCommentNotificationOnProfileCard=function(W){return _.e("enable_profile_cards_on_comments")&&W.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.d.computeHideMenu=function(W,O){return W||!(!O||!O.showLoadingSpinner)};
_.d.onPopupClosed=function(){this.isPopUpOpen=!1;_.jx(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.d.onPopupOpened=function(W,O){this.isPopUpOpen=!0;O.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.bX(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.Tc({type:"CHANNEL_REPORT_RESET"})))};
_.d.onYtNavigate=function(W,O){this.shouldCloseOnNavigateEvent(O.endpoint)&&_.jx(this.hostElement,"yt-close-all-popups-action")};
_.d.handleEndpoint=function(W){W=_.P(W,_.g5);!this.isCommentNotificationOnProfileCard&&W&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17939_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.d.handleActions=function(W){for(var O=0,b=W.length;O<b;O++){var T=_.P(W[O],e45);T&&this.handleGetMultiPageMenuAction(T);(T=_.P(W[O],_.LDN))&&this.handleAppendContinuationItemsAction(T)}};
_.d.onServiceRequestSentOrCompleted=function(W,O){W.detail&&W.detail.endpoint&&this.handleEndpoint(W.detail.endpoint);O.actions&&this.handleActions(O.actions)};
_.d.handleGetMultiPageMenuAction=function(W){var O=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Q(this.submenuElement).appendChild(O);(W=W.menu.multiPageMenuRenderer)&&this.logSubmenu(W);O.data=W;O.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.d.handleAppendContinuationItemsAction=function(W){if(this.data&&W.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&W.continuationItems&&this.data.sections){var O=this.data.sections.length-1;this.data.sections[O].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),O--);if(this.data.sections[O].multiPageMenuNotificationSectionRenderer&&W.continuationItems){W=_.S(W==null?void 0:W.continuationItems);for(var b=W.next();!b.done;b=W.next())if(b=b.value,_.P(b,MwD)){var T=
void 0,L=void 0,h=void 0,Z=void 0,a=void 0;((T=this)==null?0:(L=T.data)==null?0:(h=L.sections)==null?0:(Z=h[O])==null?0:(a=Z.multiPageMenuNotificationSectionRenderer)==null?0:a.items)&&this.push("data.sections."+O+".multiPageMenuNotificationSectionRenderer.items",b)}else if(_.P(b,_.NQ9)||_.P(b,_.bU))this.push("data.sections",b),O++}}};
_.d.logSubmenu=function(W){if(!_.e("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var O=this.ytRendererBehavior.getScreenLayer(),b=_.Bb(O),T=_.sk(O);if((W=W.trackingParams)&&b&&T){var L=_.Pi(W);_.e("combine_ve_grafts")?_.A4().graftServerVe(W,T,O):_.fV(b,T,L)}}};
_.d.emptySubmenuContainer=function(){for(var W=_.Q(this.submenuElement);W.firstChild;)W.removeChild(W.firstChild)};
_.d.onMenuBackTap=function(W){_.bX(this.hostElement,"yt-submenu-closed");W.stopPropagation()};
_.d.onSubmenuClosed=function(W){_.Md(W)!==this.hostElement&&(this.covered=!1,_.bX(this.hostElement,"yt-refit"),W.stopPropagation())};
_.d.onRetrieveLocation=function(W,O){O.hasComments&&(O.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),W.stopPropagation())};
_.d.shouldCloseOnNavigateEvent=function(W){if(!W)return!0;if(_.P(W,_.$VL)||_.P(W,_.VYf)||_.P(W,_.tY9)||_.P(W,_.t8))return!1;var O;return((O=_.P(W==null?void 0:W.commandMetadata,_.F9))==null?0:O.ignoreNavigation)?!1:!0};
_.d.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.d.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.d.refitAfterRender=function(){var W=this;_.My(this,function(){_.bX(W.hostElement,"yt-refit")})};
rR.prototype.refitAfterRender=rR.prototype.refitAfterRender;rR.prototype.onRetrieveLocation=rR.prototype.onRetrieveLocation;rR.prototype.onSubmenuClosed=rR.prototype.onSubmenuClosed;rR.prototype.onMenuBackTap=rR.prototype.onMenuBackTap;rR.prototype.onServiceRequestSentOrCompleted=rR.prototype.onServiceRequestSentOrCompleted;rR.prototype.onYtNavigate=rR.prototype.onYtNavigate;rR.prototype.onPopupOpened=rR.prototype.onPopupOpened;rR.prototype.onPopupClosed=rR.prototype.onPopupClosed;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],rR.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],rR.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rR.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],rR.prototype,"enableFocusFix",void 0);_.t([_.C(),_.N("design:type",Object)],rR.prototype,"covered",void 0);_.t([_.C({computed:"computeHideMenu(covered, data)"}),_.N("design:type",Object)],rR.prototype,"hideMenu",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.N("design:type",String)],rR.prototype,"menuStyle",void 0);
_.t([_.C({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.N("design:type",Object)],rR.prototype,"isCommentNotificationOnProfileCard",void 0);_.t([_.C(),_.N("design:type",Boolean)],rR.prototype,"isPopUpOpen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rR.prototype,"scrolledByTouch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rR.prototype,"disableBackdropFilter",void 0);
_.t([_.El("#sections"),_.N("design:type",HTMLElement)],rR.prototype,"sectionsElement",void 0);_.t([_.El("#spinner"),_.N("design:type",HTMLElement)],rR.prototype,"spinnerElement",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],rR.prototype,"headerElement",void 0);_.t([_.El("#container"),_.N("design:type",HTMLElement)],rR.prototype,"JSC$17939_containerElement",void 0);_.t([_.El("#submenu"),_.N("design:type",HTMLElement)],rR.prototype,"submenuElement",void 0);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rR.prototype,"onPopupClosed",null);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],rR.prototype,"onPopupOpened",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],rR.prototype,"onYtNavigate",null);
_.t([_.ai("yt-service-request-completed"),_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],rR.prototype,"onServiceRequestSentOrCompleted",null);_.t([_.ai("yt-menu-back-tapped"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rR.prototype,"onMenuBackTap",null);
_.t([_.ai("yt-submenu-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],rR.prototype,"onSubmenuClosed",null);_.t([_.ai("yt-retrieve-location"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],rR.prototype,"onRetrieveLocation",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rR.prototype,"refitAfterRender",null);
rR=_.t([_.G({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],rR);
_.H(rR,"ytd-multi-page-menu-renderer",function(){if($l2!==void 0)return $l2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $l2=W},{mode:1});var m52;var DV=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return W};
_.R(DV,_.n);_.d=DV.prototype;_.d.created=function(){this.showTooltips=!0};
_.d.computeAccessibility_=function(W){return this.get("accessibility.accessibilityData",W)||null};
_.d.onTap=function(){var W=_.TU(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(W&&W.length===1&&W[0])_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var O;if((O=this.data)==null?0:O.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var b;((b=this.data)==null?0:b.menuRequest)&&_.da(this.hostElement,[this.data.menuRequest])}}};
_.d.handleTopbarMenuClosedAction=function(W){var O,b;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(W)===((O=this.data)==null?void 0:(b=O.icon)==null?void 0:b.iconType)&&this.toggleIconState(!1)};
_.d.toggleIconState=function(W){_.e("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=W)};
_.d.handleUpdateTopbarAvatarAction=function(W){var O;W=(O=_.P(W,Y98))==null?void 0:O.avatarUrl;var b,T;O=(b=this.data)==null?void 0:(T=b.avatar)==null?void 0:T.thumbnails;W&&O&&(b={thumbnails:[Object.assign({},O[0],{url:W})]},this.set("data.avatar",b))};
_.Jq.Object.defineProperties(DV.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Q(this.hostElement).querySelector("#button")}}});
DV.prototype.onTap=DV.prototype.onTap;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],DV.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],DV.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.m15.YtButtonBehavior),_.N("design:type",Object)],DV.prototype,"ytButtonBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],DV.prototype,"data",void 0);
_.t([_.El("yt-icon-button#button"),_.N("design:type",Object)],DV.prototype,"iconButton",void 0);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],DV.prototype,"onTap",null);DV=_.t([_.G({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],DV);
_.H(DV,"ytd-topbar-menu-button-renderer",function(){if(m52!==void 0)return m52;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return m52=W},{mode:1});var YhZ;var xf=function(){return _.n.apply(this,arguments)||this};
_.R(xf,_.n);xf.prototype.getSelected=function(){return this.reasons.selected};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xf.prototype,"data",void 0);_.t([_.El("#reasons"),_.N("design:type",Object)],xf.prototype,"reasons",void 0);xf=_.t([_.G({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],xf);
_.H(xf,"ytd-ad-feedback-content",function(){if(YhZ!==void 0)return YhZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return YhZ=W},{mode:1});var EoZ;var zW=function(){return _.n.apply(this,arguments)||this};
_.R(zW,_.n);_.d=zW.prototype;_.d.onPopupOpened=function(){_.jx(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.d.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
_.d.computeCancelButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.cancelLabel}};
_.d.onConfirmTap=function(){var W=this.content.getSelected();W!==void 0&&(W=this.data.reasons[W].endpoint)&&(_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}}),_.jx(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.d.sendFeedbackSubmitToastAction=function(){var W;(W=this.data)!=null&&W.completionMessage&&_.jx(this.hostElement,"yt-open-popup-action",[_.cS(this.data.completionMessage),this])};
_.d.onCancelTap=function(){_.jx(this.hostElement,"yt-close-popup-action")};
zW.prototype.onPopupOpened=zW.prototype.onPopupOpened;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zW.prototype,"data",void 0);_.t([_.El("#content"),_.N("design:type",Object)],zW.prototype,"content",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],zW.prototype,"onPopupOpened",null);
zW=_.t([_.G({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],zW);
_.H(zW,"ytd-ad-feedback-renderer",function(){if(EoZ!==void 0)return EoZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return EoZ=W},{mode:1});var ww8;var Cx=function(){return _.n.apply(this,arguments)||this};
_.R(Cx,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cx.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Cx.prototype,"data",void 0);Cx=_.t([_.G({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Cx);
_.H(Cx,"ytd-ad-info-dialog-content",function(){if(ww8!==void 0)return ww8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ww8=W},{mode:1});var A5k;var qO=function(){return _.n.apply(this,arguments)||this};
_.R(qO,_.n);qO.prototype.computeConfirmButton=function(W){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:W.confirmLabel}};
qO.prototype.onConfirmTap=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
qO.prototype.computeShouldShowTitle=function(){var W;return!((W=this.data)==null||!W.title)};
qO.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
qO.prototype.onPopupClosed=qO.prototype.onPopupClosed;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qO.prototype,"data",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],qO.prototype,"onPopupClosed",null);qO=_.t([_.G({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],qO);
_.H(qO,"ytd-ad-info-dialog-renderer",function(){if(A5k!==void 0)return A5k;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return A5k=W},{mode:1});var XwB;var nx=function(){var W=_.n.apply(this,arguments)||this;W.actionButtonClass="action-button";W.dismissButtonId="dismiss-button";W.dialogDismiss=!0;return W};
_.R(nx,_.n);_.d=nx.prototype;_.d.computeInPlayer=function(W){return(W==null?void 0:W.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.d.computedLogo=function(){var W,O;return this.isDarkTheme()?(W=this.data)==null?void 0:W.logoDark:(O=this.data)==null?void 0:O.logo};
_.d.computedHeaderImage=function(){var W,O;return this.isDarkTheme()?(W=this.data)==null?void 0:W.headerImageDark:(O=this.data)==null?void 0:O.headerImage};
_.d.computeLogoIconId=function(){var W,O,b,T=(W=this.computedLogo())==null?void 0:(O=W.sources)==null?void 0:(b=O[0])==null?void 0:b.height;return T&&T%31===0?"logo-icon-with-padding":"logo-icon"};
_.d.computeLogoIconHeight=function(){var W,O,b,T=(W=this.computedLogo())==null?void 0:(O=W.sources)==null?void 0:(b=O[0])==null?void 0:b.height;return T&&T%31===0?"31":"24"};
_.d.onPopupClosed=function(){_.iq().resolve(_.bS).dispose()};
_.d.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.d.onShow=function(){this.inPlayer&&_.mm(6)};
_.d.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var W=0;W<this.data.impressionEndpoints.length;W++){var O=_.P(this.data.impressionEndpoints[W],_.D6);O&&this.ytComponentBehavior.resolveCommand(O)}};
_.d.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.jx(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Jq.Object.defineProperties(nx.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var W,O;return!((W=this.data)==null||!W.headerImageDark)&&!((O=this.data)==null||!O.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.secondaryButton)}}});
nx.prototype.onPopupClosed=nx.prototype.onPopupClosed;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nx.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],nx.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.qh.YtVisibilityBehavior),_.N("design:type",Object)],nx.prototype,"ytVisibilityBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],nx.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],nx.prototype,"actionButtonClass",void 0);_.t([_.C(),_.N("design:type",Object)],nx.prototype,"dismissButtonId",void 0);_.t([_.C(),_.N("design:type",Object)],nx.prototype,"dialogDismiss",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nx.prototype,"hasHeaderImage",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nx.prototype,"hasPremiumButton",null);
_.t([_.C({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.N("design:type",Boolean)],nx.prototype,"inPlayer",void 0);_.t([_.El("#dismiss-button"),_.N("design:type",HTMLElement)],nx.prototype,"dismissButton",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],nx.prototype,"onPopupClosed",null);nx=_.t([_.G({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],nx);
_.H(nx,"ytd-enforcement-message-view-model",function(){if(XwB!==void 0)return XwB;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return XwB=W},{mode:1});var U59;var lXg;var fx=function(){var W=_.n.apply(this,arguments)||this;W.TEST_ONLY={immediateValidation:function(){W.immediateValidation()},
onValidationResponse:function(O){W.onValidationResponse(O)},
onGenerateHandleFromNameResponse:function(O){W.onGenerateHandleFromNameResponse(O)}};
return W};
_.R(fx,_.n);_.d=fx.prototype;_.d.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.d.validate=function(){this.immediateValidation()};
_.d.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.d.setHandleInputValue=function(W){this.handleDir=this.getHandleDir(W);this.handleInput.value=W;this.validationState={status:"PENDING"};this.immediateValidation()};
_.d.getHandleDir=function(W){var O=W===""&&!1;return(O=_.Ip7.test.call(_.Ip7,W))?"rtl":"ltr"};
_.d.onDataChanged=function(){var W,O;this.handleDir=this.getHandleDir((O=(W=this.data)==null?void 0:W.handle)!=null?O:"");var b;this.validationState=((b=this.data)==null?0:b.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var T;((T=this.data)==null?0:T.validateOnInit)&&this.immediateValidation()};
_.d.stopPropagation=function(W){W.stopPropagation()};
_.d.onInput=function(){var W;this.handleDir=this.getHandleDir((W=this.handleInput.value)!=null?W:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.d.onFocusout=function(W){this.handleInput.contains(W.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.d.delayedValidation=function(){var W,O;this.debouncedValidation((O=(W=this.data)==null?void 0:W.validationDelayMs)!=null?O:1E3)};
_.d.immediateValidation=function(){this.debouncedValidation(0)};
_.d.debouncedValidation=function(W){var O=this;_.n2(this,"debouncedValidation",function(){var b,T=O.staticValidation((b=O.handleInput.value)!=null?b:"");if(T!==void 0)O.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:T};else{var L;if((L=O.data)!=null&&L.validateChannelHandleCommand){O.validationState={status:"LOADING"};var h;O.ytComponentBehavior.resolveCommand(O.data.validateChannelHandleCommand,{form:{handle:(h=O.handleInput.value)!=null?h:""},commandController:{onSuccess:function(Z,
a){O.onValidationResponse(a)},
onServerError:function(Z,a){O.onValidationServerError(a)}}})}else O.handleUnexpectedValidationError(new _.pu("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",O.data))}},W)};
_.d.staticValidation=function(W){var O;if(((O=this.data)==null?void 0:O.channelHandleStaticValidationParams)!==void 0){O=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(W)&&O.validValueRegexpErrorMessage!==void 0)return O.validValueRegexpErrorMessage;if(O.minLength!==void 0&&W.length<O.minLength&&O.minLengthErrorMessage!==void 0)return O.minLengthErrorMessage;if(O.maxLength!==void 0&&W.length>O.maxLength&&O.maxLengthErrorMessage!==void 0)return O.maxLengthErrorMessage}};
_.d.onValidationResponse=function(W){var O=_.P(W.result,E81);O===void 0?this.handleUnexpectedValidationError(new _.pu("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",W)):this.handleValidationResultRenderer(O)};
_.d.onValidationServerError=function(W){this.handleUnexpectedValidationError(new _.pu("ValidateChannelHandle request failed.",W))};
_.d.handleValidationResultRenderer=function(W){if(W.handle===void 0)this.handleUnexpectedValidationError(new _.pu("ChannelHandleValidationResultRenderer does not contain handle.",W));else if(W.handle===this.handleInput.value)switch(W.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:W.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:W.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.pu("Unrecognized ChannelHandleValidationResult",W));break;default:_.SB(W.result)}};
_.d.handleUnexpectedValidationError=function(W){var O;this.validationState={status:"UNKNOWN",handle:(O=this.handleInput.value)!=null?O:""};_.z5(W)};
_.d.stopEventPropagation=function(W){W.stopPropagation()};
_.d.updateHandleOnChannelNameInputChange=function(W){if(!this.wasEdited){var O,b;this.debouncedGenerateHandleFromName(W,(b=(O=this.data)==null?void 0:O.validationDelayMs)!=null?b:1E3)}};
_.d.debouncedGenerateHandleFromName=function(W,O){var b=this;_.n2(this,"debouncedGenerateHandleFromName",function(){var T;(T=b.data)!=null&&T.validateChannelHandleCommand?b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{name:W},commandController:{onSuccess:function(L,h){b.onGenerateHandleFromNameResponse(h)},
onServerError:function(L,h){_.z5(new _.pu("Error calling GenerateHandleFromName",h))}}}):_.z5(new _.pu("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",b.data))},O)};
_.d.onGenerateHandleFromNameResponse=function(W){this.wasEdited||((W=_.P(W.result,wqk))?this.setHandleInputValue(W.handle):_.z5(new _.pu("Invalid results when generate handle from name")))};
_.Jq.Object.defineProperties(fx.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var W;if(W=this.validationState)W=this.validationState,W=W.status==="OK"||W.status==="UNKNOWN";if(W)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var W;if(((W=this.validationState)==null?void 0:W.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 W,O=(W=this.channelHandleEntity)==null?void 0:W.handleEdit;this.handleDir=this.getHandleDir(O!=null?O:"");return O}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var W,O;if(((W=this.data)==null?void 0:(O=W.channelHandleStaticValidationParams)==null?void 0:O.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
fx.prototype.stopEventPropagation=fx.prototype.stopEventPropagation;fx.prototype.onDataChanged=fx.prototype.onDataChanged;fx.prototype.applyHandleEdit=fx.prototype.applyHandleEdit;fx.prototype.onValueChanged=fx.prototype.onValueChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],fx.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],fx.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fx.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Boolean)],fx.prototype,"wasEdited",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],fx.prototype,"handleDir",void 0);_.t([_.El("#handle-input"),_.N("design:type",Object)],fx.prototype,"handleInput",void 0);_.t([_.C(),_.x("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],fx.prototype,"value",null);
_.t([_.m5("value"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fx.prototype,"onValueChanged",null);_.t([_.x("validationState"),_.N("design:type",Object),_.N("design:paramtypes",[])],fx.prototype,"errorIndicator",null);_.t([_.C({reflectToAttribute:!0}),_.x("errorIndicator"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],fx.prototype,"borderErrorIndicator",null);
_.t([_.C({selectorArgs:["data.channelHandleEntityKey"],selector:function(W,O){return _.IJ(W.entities,"channelHandle",O)}}),
_.N("design:type",Object)],fx.prototype,"channelHandleEntity",void 0);_.t([_.x("channelHandleEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],fx.prototype,"handleEdit",null);_.t([_.m5("handleEdit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fx.prototype,"applyHandleEdit",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fx.prototype,"onDataChanged",null);
_.t([_.x("data.channelHandleStaticValidationParams.validValueRegexp"),_.N("design:type",Object),_.N("design:paramtypes",[])],fx.prototype,"validValueRegexp",null);_.t([_.ai("yt-service-request-sent"),_.ai("yt-service-request-completed"),_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],fx.prototype,"stopEventPropagation",null);fx=_.t([_.G({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],fx);
_.H(fx,"ytd-channel-handle-input-renderer",function(){if(lXg!==void 0)return lXg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return lXg=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var GW=function(){var W=_.n.apply(this,arguments)||this;W.data=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!1;W.enableNewChannelCreationOnIdForAll=_.e("enable_new_channel_creation_for_id4all");W.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};W.testOnly={setErrorMessage:function(O){W.resetErrorState();
W.setErrorState(O)}};
return W};
_.R(GW,_.n);_.d=GW.prototype;_.d.created=function(){this.logScreenVe()};
_.d.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")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var W;((W=this.zeroStepErrorMessageEntity)==null?0:W.value)&&this.set("errorMessage",_.VV(this.zeroStepErrorMessageEntity.value))};
_.d.onCreateTap=function(){var W=this;if(this.data&&this.data.channelCreationEndpoint){var O,b;if(!((O=this.data.createChannelButton)==null?0:(b=O.buttonRenderer)==null?0:b.isDisabled)){var T;if((T=this.nameInput)!=null&&T.value){this.setLoadingState();var L,h;O=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(L=this.handleInput)==null?void 0:L.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((h=this.handleInput)==null?void 0:h.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:O,commandController:{onSuccess:function(Z,a){W.onChannelCreationEndpointSuccess(a);W.obakeImageSource&&_.BZ("channelCreatedWithObakeImage",{imageSourceType:W.obakeImageSource})},
onServerError:function(){W.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.d.endpointRequiresServiceRequestAction=function(W){return!!_.P(W,_.od)||!!_.P(W,Y98)};
_.d.isNavigateAction=function(W){var O;return!!_.P(W,_.qS)||!!_.P((O=_.P(W,Uv7))==null?void 0:O.command,_.qS)};
_.d.isPlaylistAction=function(W){return!!_.P(W,_.oP)||!!_.P(W,_.Dm)};
_.d.onChannelCreationEndpointSuccess=function(W){if(W.createChannelError){var O;this.setErrorState((O=W.createChannelError)==null?void 0:O.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.e("enable_secondary_channel_creation_form")&&W.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(W.navigationEndpoint);if(W.actions){O=_.S(W.actions);for(var b=O.next();!b.done;b=O.next())if(b=b.value,this.endpointRequiresServiceRequestAction(b)&&this.ytComponentBehavior.resolveCommand(b),
this.isNavigateAction(b)){var T=void 0;b=_.P((T=_.P(b,Uv7))==null?void 0:T.command,_.qS);T=void 0;this.isPlaylistAction((T=b)==null?void 0:T.endpoint)&&(_.jx(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),T=void 0,this.ytComponentBehavior.resolveCommand((T=b)==null?void 0:T.endpoint))}}W.actions&&W.actions.some(function(L){var h;return _.P(L,_.qS)||_.P((h=_.P(L,Uv7))==null?void 0:h.command,_.qS)})||_.jx(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.d.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.d.onCancelTap=function(){var W,O,b;if(!((W=this.data)==null?0:(O=W.cancelButton)==null?0:(b=O.buttonRenderer)==null?0:b.isDisabled)){var T,L,h;W=(T=this.data)==null?void 0:(L=T.cancelButton)==null?void 0:(h=L.buttonRenderer)==null?void 0:h.command;if(!W||!_.P(W,_.h7T)){var Z;this.nameInput&&((Z=this.data)==null?0:Z.name)&&(this.nameInput.value=this.data.name);var a;this.handleInput&&((a=this.data)==null?0:a.channelHandleInput)&&(this.handleInput.data=_.P(this.data.channelHandleInput,Ac9));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.d.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.d.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.d.onClearProfilePhotoTap=function(){var W,O,b;((W=this.data)==null?0:(O=W.clearProfilePhotoButton)==null?0:(b=O.buttonRenderer)==null?0:b.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.d.onEditAvatarTap=function(){var W,O,b;((W=this.data)==null?0:(O=W.editAvatarButton)==null?0:(b=O.buttonRenderer)==null?0:b.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.d.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)};
_.d.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var W;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((W=this.data)==null?0:W.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.d.setErrorState=function(W){this.resetErrorState();if(W)this.set("errorMessage",W);else{var O;if((O=this.zeroStepErrorMessageEntity)==null?0:O.value)this.set("errorMessage",_.VV(this.zeroStepErrorMessageEntity.value));else{var b;((b=this.data)==null?0:b.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.d.fetchImageBlobWithAlr=function(W,O){O=O===void 0?5:O;var b=this,T,L,h,Z,a;return _.I(function(m){switch(m.nextAddress){case 1:return _.Y(m,fetch(W,{method:"GET",mode:"cors"}),2);case 2:T=m.yieldResult;if(T.ok){m.jumpTo(3);break}if(O===0)throw Error();L=b.addJitter(Math.pow(2,5-O));return _.Y(m,new Promise(function(w){setTimeout(w,L*1E3)}),4);
case 4:return m.return(b.fetchImageBlobWithAlr(W,O-1));case 3:if(!T.headers.get("content-type").split(";").some(function(w){return w.trim()==="text/plain"})){m.jumpTo(5);
break}h=b;Z=h.fetchImageBlobWithAlr;return _.Y(m,T.text(),6);case 6:return m.return(Z.call(h,m.yieldResult,O-1));case 5:return _.Y(m,T.blob(),7);case 7:return a=m.yieldResult,m.return(a)}})};
_.d.addJitter=function(W){var O=W*.3*Math.random();Math.random()>.5&&(O*=-1);return W+O};
_.d.openProfilePicturePicker=function(){var W=this,O,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){O=W.data.scottyUploadUrl;if(!O)return Z.return();b=document.documentElement.hasAttribute("dark");T=document.body.style.colorScheme;b&&(document.body.style.colorScheme="dark");L=e9U(PUg(lLD(mcg(b?"dark":"light")),function(a){var m,w,A,X,l;return _.I(function(p){if(p.nextAddress==1)return m=_.zp(oH9(new p3(a.photoUrl,!1)).build(),"alr","yes"),W.obakeImageSource=W.pictureChangeSourceToObakeImageSourceType(a.photoSource),
_.LI(p,2),W.setLoadingState(),_.Y(p,W.fetchImageBlobWithAlr(m),4);if(p.nextAddress!=2)return w=p.yieldResult,A=new FileReader,A.addEventListener("load",function(){var K,k,r,q,f,M;return _.I(function(V){if(V.nextAddress==1){if(w.size>15728640)return W.setErrorState((K=W.data)==null?void 0:K.imageSizeErrorMessage),_.z5(Error("il")),V.return();if(!A.result)return W.setErrorState((k=W.data)==null?void 0:k.genericImageLoadErrorMessage),_.z5(Error("jl")),V.return();r=A.result;_.LI(V,2);return _.Y(V,dkU(w,
O),4)}if(V.nextAddress!=2)return q=V.yieldResult,W.handleImageUpdatedAction(r,q),W.resetErrorState(),_.H3(V,0);f=_.ID(V);W.setErrorState((M=W.data)==null?void 0:M.uploadErrorMessage);if(f instanceof Error)_.Dt(f);else{var jQ=new _.pu(JSON.stringify(f));_.Dt(jQ)}_.aD(V)})}),A.readAsDataURL(w),_.H3(p,0);
X=_.ID(p);W.setErrorState((l=W.data)==null?void 0:l.genericImageLoadErrorMessage);X instanceof Error?_.Dt(X):_.xG(new _.pu(JSON.stringify(X)));_.aD(p)})}),function(){W.hideContainer=!1;
document.body.style.colorScheme=T});
_.LI(Z,2);return _.Y(Z,L.openPicker(),4)}if(Z.nextAddress!=2)return _.H3(Z,0);_.ID(Z);W.setErrorState((h=W.data)==null?void 0:h.selectImageErrorMessage);_.aD(Z)})};
_.d.pictureChangeSourceToObakeImageSourceType=function(W){switch(W){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.d.logScreenVe=function(){_.bh(_.A4(),124448)};
_.d.graftServerVe=function(){var W=_.sk(),O,b,T=(O=this.data)==null?void 0:(b=O.loggingDirectives)==null?void 0:b.trackingParams;T&&W&&(this.channelCreationFormVe=_.A4().graftServerVe(T,W),W={visualElement:this.channelCreationFormVe},_.Ez().reportShown(W))};
_.d.isNameChanged=function(W){var O;return((O=this.data)==null?void 0:O.name)!==W};
_.d.isHandleChanged=function(W){var O,b=_.P((O=this.data)==null?void 0:O.channelHandleInput,Ac9);return b&&W?b.handle!==W:!1};
_.d.handleImageUpdatedAction=function(W,O){this.hideContainer=!1;this.previewDataUrl=W;this.encryptedBlobId=O};
_.d.handleImageSelectionErrorAction=function(W){this.hideContainer=!1;this.setErrorState(W)};
_.d.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.d.showContainer=function(){this.hideContainer=!1};
_.d.maybeWipeZeroStepErrorMessage=function(){var W,O=(W=this.data)==null?void 0:W.zeroStepErrorMessageEntityKey,b;O&&((b=this.zeroStepErrorMessageEntity)==null?0:b.value)&&this.ytdReduxBehavior.dispatch(_.AI("stringEntity",O,{key:O,value:""}))};
_.Jq.Object.defineProperties(GW.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 W;return((W=this.photoThumbnail)==null?0:W.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 W;return!((W=this.data)==null||!W.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.descriptionInfo}}});
GW.prototype.dataChanged=GW.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],GW.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],GW.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],GW.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GW.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],GW.prototype,"errorMessage",void 0);
_.t([_.C(),_.N("design:type",Object)],GW.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",String)],GW.prototype,"previewDataUrl",void 0);_.t([_.C(),_.N("design:type",Number)],GW.prototype,"obakeImageSource",void 0);_.t([_.C(),_.N("design:type",Object)],GW.prototype,"hideContainer",void 0);_.t([_.El("#title-input"),_.N("design:type",Object)],GW.prototype,"nameInput",void 0);_.t([_.El("#handle-input"),_.N("design:type",Object)],GW.prototype,"handleInput",void 0);
_.t([_.C(),_.N("design:type",Boolean)],GW.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.t([_.C({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.V_T}),_.N("design:type",Object)],GW.prototype,"zeroStepErrorMessageEntity",void 0);_.t([_.x("data","data.isDefaultProfilePhoto","previewDataUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],GW.prototype,"photoThumbnail",null);
_.t([_.x("data","data.isDefaultProfilePhoto","photoThumbnail"),_.N("design:type",Object),_.N("design:paramtypes",[])],GW.prototype,"userSetPhotoThumbnailUrl",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GW.prototype,"hideProfilePhotoButtonLayer",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GW.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.t([_.Ul("data","zeroStepErrorMessageEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GW.prototype,"dataChanged",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.descriptionInfo","zeroStepErrorMessageEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],GW.prototype,"description",null);GW=_.t([_.G({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],GW);
_.H(GW,"ytd-channel-creation-dialog-renderer",function(){if(U59!==void 0)return U59;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return U59=W},{mode:1});var eVB;var H6=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;W.isDisabled=!1;return W};
_.R(H6,_.n);H6.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
H6.prototype.updateDisabled=function(){var W;this.isDisabled=this.isLoading||((W=this.handleInput)==null?void 0:W.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
H6.prototype.onSaveClick=function(){var W=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var O;((O=this.data)==null?void 0:O.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var b;if((b=W.data)==null?0:b.nextEndpoint){var T;W.ytComponentBehavior.resolveCommand((T=W.data)==null?void 0:T.nextEndpoint)}else W.isLoading=
!1,W.closeDialog()},
onServerError:function(){W.isLoading=!1;W.handleInput.validate();var b;W.errorMessage=(b=W.data)==null?void 0:b.errorMessage}}}))}};
H6.prototype.closeDialog=function(){_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
H6.prototype.updateDisabled=H6.prototype.updateDisabled;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],H6.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],H6.prototype,"data",void 0);_.t([_.El("#handle-input"),_.N("design:type",Object)],H6.prototype,"handleInput",void 0);_.t([_.m5("isLoading"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],H6.prototype,"updateDisabled",null);
H6=_.t([_.G({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],H6);
_.H(H6,"ytd-channel-handle-edit-dialog-renderer",function(){if(eVB!==void 0)return eVB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return eVB=W},{mode:1});var PoD;var tO=function(){return _.n.apply(this,arguments)||this};
_.R(tO,_.n);tO.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tO.prototype,"data",void 0);tO=_.t([_.G({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],tO);
_.H(tO,"ytd-channel-switcher-footer-renderer",function(){if(PoD!==void 0)return PoD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return PoD=W},{mode:1});var pwN;var RV8;var $f=function(){return _.n.apply(this,arguments)||this};
_.R($f,_.n);$f.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
$f.prototype.onIronChange=$f.prototype.onIronChange;_.t([_.C(),_.N("design:type",Object)],$f.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Function)],$f.prototype,"onDontAskAgainChanged",void 0);_.t([_.El("#checkbox"),_.N("design:type",Object)],$f.prototype,"checkbox",void 0);_.t([_.ai("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],$f.prototype,"onIronChange",null);
$f=_.t([_.G({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],$f);
_.H($f,"ytd-identity-prompt-footer-renderer",function(){if(RV8!==void 0)return RV8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return RV8=W},{mode:1});var V_=function(){var W=_.n.apply(this,arguments)||this;W.dontAskAgain=!1;W.showPopup=!1;W.boundDontAskAgainChanged=function(O){W.dontAskAgainChanged(O)};
W.boundOnAccountItemTap=function(O){W.onAccountItemTap(O)};
return W};
_.R(V_,_.n);_.d=V_.prototype;
_.d.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]]"}}}}}};
_.d.ready=function(){var W=this;_.Q(this.hostElement).querySelector("#container").addEventListener("scroll",function(){W.ytRendererBehavior.markDirty()})};
_.d.dontAskAgainChanged=function(W){this.dontAskAgain=W};
_.d.onAccountItemTap=function(W){if(W){var O={};this.dontAskAgain&&(O={dont_ask_again:this.dontAskAgain});_.GF(W,O)}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.d.redirectOnlyAccount=function(W){W.sections&&W.sections.length>0&&(W=_.P(W.sections[0],_.bD7),(W==null?0:W.contents)&&(W==null?void 0:W.contents.length)<=1?(W=_.NC(window.location.href),(W==null?0:W.next)&&_.XBe(W.next)?_.GF(W.next):_.GF("/")):this.showPopup=!0)};
V_.prototype.dataChanged=V_.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],V_.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Object)],V_.prototype,"dontAskAgain",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],V_.prototype,"showPopup",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Object)],V_.prototype,"boundDontAskAgainChanged",void 0);_.t([_.C({reflectToAttribute:!1}),_.N("design:type",Object)],V_.prototype,"boundOnAccountItemTap",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],V_.prototype,"dataChanged",null);
V_=_.t([_.G({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],V_);
_.H(V_,"ytd-channel-switcher-renderer",function(){if(pwN!==void 0)return pwN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return pwN=W},{mode:1});var KfR;var NO=function(){return _.n.apply(this,arguments)||this};
_.R(NO,_.n);_.Jq.Object.defineProperties(NO.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.t([_.C(),_.N("design:type",Object)],NO.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],NO.prototype,"steps",null);NO=_.t([_.G({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],NO);
_.H(NO,"ytd-channel-transfer-stepper-renderer",function(){if(KfR!==void 0)return KfR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return KfR=W},{mode:1});var vo2;var MO=function(){var W=_.n.apply(this,arguments)||this;W.data=null;W.isError=!1;W.isLoading=!1;return W};
_.R(MO,_.n);_.d=MO.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.d.computeProfileName=function(W){return W?W.givenNameValue+" "+W.familyNameValue:""};
_.d.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)};
_.d.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)};
MO.prototype.onYtServiceRequestError=MO.prototype.onYtServiceRequestError;MO.prototype.onYtServiceRequestSent=MO.prototype.onYtServiceRequestSent;MO.prototype.dataChanged=MO.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MO.prototype,"data",void 0);
_.t([_.C({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.N("design:type",String)],MO.prototype,"profileName",void 0);_.t([_.C(),_.N("design:type",Object)],MO.prototype,"isError",void 0);_.t([_.C(),_.N("design:type",Object)],MO.prototype,"isLoading",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],MO.prototype,"dataChanged",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],MO.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],MO.prototype,"onYtServiceRequestError",null);MO=_.t([_.G({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],MO);
_.H(MO,"ytd-channel-warm-welcome-cont-renderer",function(){if(vo2!==void 0)return vo2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return vo2=W},{mode:1});var goD;var u4=function(){var W=_.n.apply(this,arguments)||this;W.data=null;return W};
_.R(u4,_.n);u4.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
u4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],u4.prototype,"data",void 0);u4=_.t([_.G({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],u4);
_.H(u4,"ytd-channel-warm-welcome-renderer",function(){if(goD!==void 0)return goD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return goD=W},{mode:1});var ook;var JO=function(){return _.n.apply(this,arguments)||this};
_.R(JO,_.n);_.Jq.Object.defineProperties(JO.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.authorThumbnail)||{}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],JO.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],JO.prototype,"thumbnailDetails",null);JO=_.t([_.G({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],JO);
_.H(JO,"ytd-comment-preview-renderer",function(){if(ook!==void 0)return ook;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ook=W},{mode:1});var Ql5;var c6=function(){return _.n.apply(this,arguments)||this};
_.R(c6,_.n);c6.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Jq.Object.defineProperties(c6.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.submitButton}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],c6.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],c6.prototype,"submitButton",null);c6=_.t([_.G({is:"ytd-notice-renderer",disableElementRegistration:!0})],c6);
_.H(c6,"ytd-notice-renderer",function(){if(Ql5!==void 0)return Ql5;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Ql5=W},{mode:1});var kl1;var Fm=function(){return _.n.apply(this,arguments)||this};
_.R(Fm,_.n);Fm.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fm.prototype,"data",void 0);Fm=_.t([_.G({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Fm);
_.H(Fm,"ytd-preview-comment-dialog-content",function(){if(kl1!==void 0)return kl1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return kl1=W},{mode:1});var sl7;var y_=function(){return _.n.apply(this,arguments)||this};
_.R(y_,_.n);y_.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
y_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],y_.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],y_.prototype,"data",void 0);y_=_.t([_.G({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],y_);
_.H(y_,"ytd-preview-comment-dialog-renderer",function(){if(sl7!==void 0)return sl7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return sl7=W},{mode:1});var Bn7;var r5k=_.e("web_button_rework")&&_.qC("BUTTON_REWORK")||_.e("web_button_rework_with_live"),Wo=function(){var W=_.n.apply(this,arguments)||this;W.selectedAmountIndex=1;W.privacyCheckboxValue=!1;W.useAmsterdamStyle=r5k;W.amountPlaceholderIndex=-1;return W};
_.R(Wo,_.n);_.d=Wo.prototype;_.d.onAmountClick=function(W){this.selectedAmountIndex=_.Q(this.hostElement).querySelector("#amounts").indexForElement(W.currentTarget)};
_.d.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.jx(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.d.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.jx(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.jx(this.hostElement,"yt-close-popup-action",[this.is]);var W;(W=_.ya())==null||W.getPlayerPromise().then(function(O){O.pauseVideo()})}};
_.d.donationCallback=function(W){W.success?(this.hostElement.hasAttribute("live-chat")&&W.response&&W.response.data&&W.response.data.actions&&_.jx(this.hostElement,"yt-live-chat-open-popup",[W.response.data.actions[0]]),_.jx(this.hostElement,"yt-close-popup-action",[this.is]),_.jx(this.hostElement,"yt-live-chat-close-buy-flow")):W.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(W.errorMessageRenderer)};
_.d.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Q(this.hostElement).querySelector("#custom-amount-input").focus()};
_.d.updateConfirmationDialogTextWithAmount=function(W){var O=this.getConfirmDialogRuns();O&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(O),"text"],this.getFormattedAmount(W))};
_.d.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.d.getAmountPlaceholderIndex=function(W){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=W.findIndex(function(O){return O.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.d.getFormattedAmount=function(W){var O;return(new _.ne(4,((O=this.data)==null?void 0:O.currencyCode)||"")).format(W)};
_.d.isAmountValid=function(W){if(W==="")return!1;W=Number(W)*1E6;var O=this.get("minAmountMicros",this.data),b=this.get("maxAmountMicros",this.data);return O&&W<O||b&&W>b?!1:!0};
_.d.setInputError=function(){this.shouldShowValidationError?_.Q(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Q(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.d.setInitialCheckboxValue=function(){var W;this.privacyCheckboxValue=!((W=this.data)==null||!W.privacyCheckboxInitialState)};
_.d.updateCustomAmountInputFromBinding=function(W){this.customAmountInput=W.detail.value};
_.d.updatePrivacyCheckboxValueFromBinding=function(W){this.privacyCheckboxValue=W.detail.value};
_.Jq.Object.defineProperties(Wo.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var W=this,O,b;return((O=this.data)==null?void 0:(b=O.suggestedAmounts)==null?void 0:b.map(function(T,L){return{buttonRenderer:{style:W.selectedAmountIndex===L?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:T.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 W;return!((W=this.data)==null||!W.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 W=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(W&&this.amountMicros!==null)return Object.assign({},W,{ypcGetCartEndpoint:Object.assign({},W.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 W=this.get("confirmLargeAmount",this.data);if(W&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),W}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var W=this.get("donateButton.buttonRenderer",this.data);if(W)return Object.assign({},W,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Wo.prototype.setInitialCheckboxValue=Wo.prototype.setInitialCheckboxValue;Wo.prototype.setInputError=Wo.prototype.setInputError;Wo.prototype.setFocusOnCustomAmountInput=Wo.prototype.setFocusOnCustomAmountInput;_.t([_.D(fC5),_.N("design:type",Object)],Wo.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Wo.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Wo.prototype,"selectedAmountIndex",void 0);_.t([_.C(),_.N("design:type",String)],Wo.prototype,"customAmountInput",void 0);_.t([_.C(),_.N("design:type",Object)],Wo.prototype,"privacyCheckboxValue",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Wo.prototype,"useAmsterdamStyle",void 0);_.t([_.m5("customAmount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wo.prototype,"setFocusOnCustomAmountInput",null);_.t([_.x("data","selectedAmountIndex"),_.N("design:type",Array),_.N("design:paramtypes",[])],Wo.prototype,"suggestedAmountButtons",null);
_.t([_.x("data","selectedAmountIndex"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Wo.prototype,"isCustomAmountSelected",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Wo.prototype,"showPrivacyCheckbox",null);_.t([_.x("data","selectedAmountIndex","customAmount"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"amountMicros",null);
_.t([_.x("isCustomAmountSelected","customAmountInput"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"customAmount",null);_.t([_.x("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Wo.prototype,"shouldShowValidationError",null);_.t([_.x("customAmount"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Wo.prototype,"isDonateButtonEnabled",null);
_.t([_.x("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"donateCommand",null);_.t([_.x("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"donateCommandWithConfirmation",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"largeDonationThreshold",null);
_.t([_.x("customAmount","donateCommand","amountMicros"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"confirmLargeAmountCommand",null);_.t([_.x("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wo.prototype,"donateButtonRenderer",null);_.t([_.m5("shouldShowValidationError"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wo.prototype,"setInputError",null);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wo.prototype,"setInitialCheckboxValue",null);Wo=_.t([_.G({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Wo);
_.H(Wo,"ytd-donation-amount-picker-renderer",function(){if(Bn7!==void 0)return Bn7;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[msg(\'CLOSE\')]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Bn7=W},{mode:1});var D5B;var OJ=function(){return _.n.apply(this,arguments)||this};
_.R(OJ,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],OJ.prototype,"ytComponentBehavior",void 0);_.t([_.C({}),_.N("design:type",Object)],OJ.prototype,"data",void 0);OJ=_.t([_.G({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],OJ);
_.H(OJ,"ytd-donation-post-transaction-content",function(){if(D5B!==void 0)return D5B;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return D5B=W},{mode:1});var x5g;var iu=function(){return _.n.apply(this,arguments)||this};
_.R(iu,_.n);iu.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],iu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],iu.prototype,"ytRendererBehavior",void 0);_.t([_.C({}),_.N("design:type",Object)],iu.prototype,"data",void 0);iu=_.t([_.G({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],iu);
_.H(iu,"ytd-donation-post-transaction-renderer",function(){if(x5g!==void 0)return x5g;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return x5g=W},{mode:1});var zVZ;var Cog;var bu=function(){return _.n.apply(this,arguments)||this};
_.R(bu,_.n);bu.prototype.computeIsStreamingProvider=function(W){return!!W.isStreamingShelf};
bu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],bu.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],bu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],bu.prototype,"data",void 0);_.t([_.C({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],bu.prototype,"isStreamingProvider",void 0);
bu=_.t([_.G({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],bu);
_.H(bu,"ytd-media-provider-renderer",function(){if(Cog!==void 0)return Cog;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Cog=W},{mode:1});var qh8;var j$=function(){return _.n.apply(this,arguments)||this};
_.R(j$,_.n);j$.prototype.observeLightsourcePalette=function(){var W,O=(W=this.data)==null?void 0:W.vibrantsourceColorPaletteData;O&&_.kS(this.hostElement,O)};
j$.prototype.observeLightsourcePalette=j$.prototype.observeLightsourcePalette;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],j$.prototype,"data",void 0);
_.t([_.m5("data.vibrantsourceColorPaletteData"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],j$.prototype,"observeLightsourcePalette",null);j$=_.t([_.G({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],j$);
_.H(j$,"ytd-streaming-pop-up-dialog",function(){if(qh8!==void 0)return qh8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return qh8=W},{mode:1});var Ta=function(){return _.n.apply(this,arguments)||this};
_.R(Ta,_.n);Ta.prototype.onPopupOpened_=function(){var W;((W=this.data)==null?0:W.serviceEndpoint)&&_.iq().resolve(_.bq).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Ta.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Ta.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"}}}}};
Ta.prototype.onPopupOpened_=Ta.prototype.onPopupOpened_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ta.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ta.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.xE),_.N("design:type",Object)],Ta.prototype,"ytContinuationHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ta.prototype,"data",void 0);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ta.prototype,"onPopupOpened_",null);Ta=_.t([_.G({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Ta);
_.H(Ta,"ytd-brandconnect-popup-renderer",function(){if(zVZ!==void 0)return zVZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zVZ=W},{mode:1});var nog;var Lj=function(){return _.n.apply(this,arguments)||this};
_.R(Lj,_.n);_.d=Lj.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){for(var W=0;W<this.getOptionRenderers().length;W++)this.notifyPath("data.options."+W+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+W+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.d.updateSubmitButton=function(W){this.set("data.submitButton.buttonRenderer.isDisabled",!W)};
_.d.computeAlt=function(W){return _.NX(W)};
_.d.onDismissTap=function(){_.jx(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.getOptionRenderers=function(W){return(W=W||this.data)&&W.options?W.options.reduce(function(O,b){b.checkboxSurveyOptionRenderer&&O.push(b.checkboxSurveyOptionRenderer);return O},[]):[]};
_.d.onOptionChange=function(W){var O=this,b=!1;if(W.detail.checked)for(var T=this.getOptionRenderers().find(function(a){return a.value===W.detail.value}),L=this.getOptionRenderers(),h=0;h<L.length;h++){var Z=L[h];
this.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");Z.checked&&((T==null?0:T.isExclusiveOption)?!Z.isExclusiveOption:Z.isExclusiveOption)?this.set("data.options."+h+".checkboxSurveyOptionRenderer.checked",!1):Z.checked&&(b=!0)}else b=this.getOptionRenderers().some(function(a,m){O.notifyPath("data.options."+m+".checkboxSurveyOptionRenderer.checked");return a.checked});
this.updateSubmitButton(b)};
_.d.onSubmitTap=function(){var W=this.getOptionRenderers().filter(function(h){return h.checked});
if(W.length!==0){var O=W.map(function(h){return h.responseEndpoint});
W=[];for(var b=1;b<O.length;b++){var T=void 0,L=(T=_.P(O[b],_.QG))==null?void 0:T.feedbackToken;L&&W.push(L)}O=[O[0]];W.length&&O.push({extra_feedback_tokens:W});_.da(this.hostElement,O);_.jx(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);W=this.data&&this.data.submitActions||[];if(_.e("kevlar_command_handler_migration_killswitch"))_.Sx(this.hostElement,W,this.hostElement);else for(W=_.S(W),O=W.next();!O.done;O=W.next())this.ytComponentBehavior.resolveCommand(O.value)}};
Lj.prototype.onOptionChange=Lj.prototype.onOptionChange;Lj.prototype.dataChanged=Lj.prototype.dataChanged;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Lj.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Lj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Lj.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.t([_.D(Lg5),_.N("design:type",Object)],Lj.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Lj.prototype,"data",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Lj.prototype,"dataChanged",null);
_.t([_.ai("ytd-checkbox-survey-option-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Lj.prototype,"onOptionChange",null);Lj=_.t([_.G({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Lj);
_.H(Lj,"ytd-checkbox-survey-renderer",function(){if(nog!==void 0)return nog;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nog=W},{mode:1});var fX7;var GlU;var dF=function(){return _.n.apply(this,arguments)||this};
_.R(dF,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dF.prototype,"ytRendererBehavior",void 0);_.t([_.D(TBk),_.N("design:type",Object)],dF.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dF.prototype,"data",void 0);dF=_.t([_.G({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],dF);
_.H(dF,"ytd-dismissal-reason-text-renderer",function(){if(GlU!==void 0)return GlU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return GlU=W},{mode:1});var Hh5;var hF=function(){return _.n.apply(this,arguments)||this};
_.R(hF,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.t([_.D(TBk),_.N("design:type",Object)],hF.prototype,"ytdDismissalReasonBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],hF.prototype,"data",void 0);hF=_.t([_.G({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],hF);
_.H(hF,"ytd-dismissal-reason-video-renderer",function(){if(Hh5!==void 0)return Hh5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Hh5=W},{mode:1});var S$=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(S$,_.n);_.d=S$.prototype;_.d.created=function(){this.selectedFeedbackTokens=new HF};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.d.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.d.onDismissalReasonSelected=function(W,O){_.bX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(O);this.hasReasonsSelected=!0};
_.d.onDismissalReasonDeselected=function(W,O){_.bX(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(O);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.d.onCancelTap=function(){_.jx(this.hostElement,"yt-close-popup-action")};
_.d.onSubmitTap=function(){var W=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(W={feedback_tokens:W},_.iq().resolve(_.bq).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}));_.jx(this.hostElement,"yt-close-popup-action")};
S$.prototype.onDismissalReasonDeselected=S$.prototype.onDismissalReasonDeselected;S$.prototype.onDismissalReasonSelected=S$.prototype.onDismissalReasonSelected;S$.prototype.dataChanged=S$.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],S$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],S$.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Boolean)],S$.prototype,"hasReasonsSelected",void 0);_.t([_.C(),_.N("design:type",HF)],S$.prototype,"selectedFeedbackTokens",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],S$.prototype,"darkerDarkTheme",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],S$.prototype,"dataChanged",null);
_.t([_.ai("yt-dismissal-reason-selected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],S$.prototype,"onDismissalReasonSelected",null);_.t([_.ai("yt-dismissal-reason-deselected"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,String]),_.N("design:returntype")],S$.prototype,"onDismissalReasonDeselected",null);S$=_.t([_.G({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],S$);
_.H(S$,"ytd-dismissal-follow-up-renderer",function(){if(fX7!==void 0)return fX7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return fX7=W},{mode:1});var tT5;var ZY=function(){return _.n.apply(this,arguments)||this};
_.R(ZY,_.n);_.d=ZY.prototype;_.d.onCheckedChange=function(){this.multiselect||_.bX(this.hostElement,"yt-feedback-single-select-changed");_.Q(this.hostElement).querySelector("#freeform").focus();_.bX(this.hostElement,"yt-refit")};
_.d.showTextBox=function(W,O){return W&&O};
_.d.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))};
_.d.updateDataCheckedFromBinding=function(W){this.set("data.checked",W.detail.value)};
_.d.updateDataResultTextFromBinding=function(W){this.set("data.resultText",W.detail.value)};
ZY.prototype.dataChanged=ZY.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ZY.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],ZY.prototype,"multiselect",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ZY.prototype,"dataChanged",null);
ZY=_.t([_.G({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],ZY);
_.H(ZY,"ytd-feedback-option-renderer",function(){if(tT5!==void 0)return tT5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tT5=W},{mode:1});var $5g;var IE=function(){return _.n.apply(this,arguments)||this};
_.R(IE,_.n);IE.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
IE.prototype.onSingleSelectCheckedChanged=function(W){W=_.Md(W);for(var O=0;O<this.data.options.length;O++)if(W.data!==_.P(this.data.options[O],brR)){var b="data.options."+O+".feedbackOptionRenderer.checked";this.notifyPath(b);this.set(b,!1)}};
IE.prototype.onSingleSelectCheckedChanged=IE.prototype.onSingleSelectCheckedChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],IE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],IE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],IE.prototype,"data",void 0);
_.t([_.ai("yt-feedback-single-select-changed"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],IE.prototype,"onSingleSelectCheckedChanged",null);IE=_.t([_.G({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],IE);
_.H(IE,"ytd-feedback-question-renderer",function(){if($5g!==void 0)return $5g;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $5g=W},{mode:1});var VTN;var aE=function(){return _.n.apply(this,arguments)||this};
_.R(aE,_.n);aE.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
aE.prototype.getSelectedFeedbackResults=function(){for(var W={},O=0;O<this.data.questions.length;O++)for(var b=_.P(this.data.questions[O],irB),T=0;T<b.options.length;T++){var L=_.P(b.options[T],brR);L&&L.checked&&(W[L.optionKey]=L.resultText)}return W};
aE.prototype.onKeyUp=function(){var W=this;_.dd(_.sF,function(){_.bX(W.hostElement,"yt-refit")});
_.sF.start()};
aE.prototype.submitSurvey=function(){var W=this.getSelectedFeedbackResults();Object.keys(W).length>0&&this.data.submitFeedbackEndpoint&&(W={survey_results:W,is_feedback_token_unencrypted:!0},_.iq().resolve(_.bq).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],aE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],aE.prototype,"data",void 0);aE=_.t([_.G({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],aE);
_.H(aE,"ytd-feedback-survey-renderer",function(){if(VTN!==void 0)return VTN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return VTN=W},{mode:1});var Nng;var MTk;var md=function(){return _.n.apply(this,arguments)||this};
_.R(md,_.n);md.prototype.computeAlt=function(W){return _.NX(W)};
md.prototype.submitResponse=function(){var W,O;(W=this.data)!=null&&W.feedbackToken&&((O=this.data)==null?void 0:O.nextStageIndex)!==void 0&&(_.TU(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.TU(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
md.prototype.onClick=function(){this.submitResponse()};
md.prototype.onClick=md.prototype.onClick;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],md.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],md.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],md.prototype,"vertical",void 0);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],md.prototype,"onClick",null);
md=_.t([_.G({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],md);
_.H(md,"ytd-single-select-answer-option-renderer",function(){if(MTk!==void 0)return MTk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MTk=W},{mode:1});var u41;var Yr=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return W};
_.R(Yr,_.n);Yr.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Yr.prototype.dataChanged=function(){var W,O;this.vertical=((O=(W=this.data)==null?void 0:W.answerOrientation)!=null?O:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Yr.prototype.submitFeedback=function(W){var O;((O=this.data)==null?0:O.responseEndpoint)&&W&&_.da(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[W]}])};
Yr.prototype.dataChanged=Yr.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Yr.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Yr.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yr.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Yr.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Yr.prototype,"vertical",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Yr.prototype,"darkerDarkTheme",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Yr.prototype,"dataChanged",null);Yr=_.t([_.G({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Yr);
_.H(Yr,"ytd-single-select-question-renderer",function(){if(u41!==void 0)return u41;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return u41=W},{mode:1});var EJ=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return W};
_.R(EJ,_.n);_.d=EJ.prototype;_.d.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"}}}};
_.d.dataChanged=function(){this.jumpToStage(0)};
_.d.jumpToStage=function(W){var O,b;if((O=this.data)==null?0:(b=O.stages)==null?0:b[W])this.currentStage=this.data.stages[W],this.refitAfterRender()};
_.d.computeAlt=function(W){return _.NX(W)};
_.d.computeSimpleMessage=function(W){var O;return(O=_.P(W,LQ7))==null?void 0:O.messageText};
_.d.computeHideDismiss=function(W){var O;return(O=_.P(W,BpU))==null?void 0:O.hideParentDismissButton};
_.d.onDismissTap=function(){_.jx(this.hostElement,"yt-close-popup-action");_.P(this.currentStage,LQ7)||this.data.dismissalEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.d.refitAfterRender=function(){var W=this;_.My(this,function(){_.bX(W.hostElement,"yt-refit")})};
EJ.prototype.dataChanged=EJ.prototype.dataChanged;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],EJ.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],EJ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],EJ.prototype,"ytActionHandlerBehavior",void 0);
_.t([_.D(Lg5),_.N("design:type",Object)],EJ.prototype,"ytdHatsSurveyBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],EJ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],EJ.prototype,"currentStage",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EJ.prototype,"dataChanged",null);EJ=_.t([_.G({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],EJ);
_.H(EJ,"ytd-multi-stage-survey-renderer",function(){if(Nng!==void 0)return Nng;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Nng=W},{mode:1});var J51;var wF=function(){return _.n.apply(this,arguments)||this};
_.R(wF,_.n);wF.prototype.computeAlt=function(W){return _.NX(W)};
wF.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.iq().resolve(_.bq).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.jx(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.NCU(!1)))};
wF.prototype.onTap=function(){this.vertical&&this.submitResponse()};
wF.prototype.onTap=wF.prototype.onTap;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],wF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],wF.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],wF.prototype,"vertical",void 0);
_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],wF.prototype,"onTap",null);wF=_.t([_.G({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],wF);
_.H(wF,"ytd-single-option-survey-option-renderer",function(){if(J51!==void 0)return J51;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return J51=W},{mode:1});var c59;var AF=function(){return _.n.apply(this,arguments)||this};
_.R(AF,_.n);_.d=AF.prototype;_.d.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){var W,O;this.vertical=(((W=this.data)==null?void 0:(O=W.surveyOrientation)==null?void 0:O.type)||"HORIZONTAL")==="VERTICAL"};
_.d.computeAlt=function(W){return _.NX(W)};
_.d.onDismissTap=function(){_.jx(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.iq().resolve(_.bq).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.NCU(!1))};
AF.prototype.dataChanged=AF.prototype.dataChanged;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],AF.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],AF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],AF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(Lg5),_.N("design:type",Object)],AF.prototype,"ytdHatsSurveyBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],AF.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],AF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],AF.prototype,"vertical",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AF.prototype,"dataChanged",null);AF=_.t([_.G({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],AF);
_.H(AF,"ytd-single-option-survey-renderer",function(){if(c59!==void 0)return c59;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return c59=W},{mode:1});var FfN;var Xz=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(Xz,_.n);Xz.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Xz.prototype.onDismissTap=function(){_.jx(this.hostElement,"yt-close-popup-action")};
Xz.prototype.onNavigate=function(){_.jx(this.hostElement,"yt-close-popup-action")};
Xz.prototype.onNavigate=Xz.prototype.onNavigate;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Xz.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xz.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xz.prototype,"darkerDarkTheme",void 0);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Xz.prototype,"onNavigate",null);Xz=_.t([_.G({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Xz);
_.H(Xz,"ytd-survey-follow-up-renderer",function(){if(FfN!==void 0)return FfN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return FfN=W},{mode:1});var y5U;var WK5;var O1g;var UJ=function(){var W=_.n.apply(this,arguments)||this;W.polymer2="Element"in Polymer;return W};
_.R(UJ,_.n);_.d=UJ.prototype;_.d.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.d.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.d.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.d.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("minutes-changed",this.minutes))};
_.d.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("seconds-changed",this.seconds))};
_.d.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.d.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
UJ.prototype.secondsChangedForBinding=UJ.prototype.secondsChangedForBinding;UJ.prototype.minutesChangedForBinding=UJ.prototype.minutesChangedForBinding;UJ.prototype.secondsChanged=UJ.prototype.secondsChanged;_.t([_.C(),_.N("design:type",String)],UJ.prototype,"minutes",void 0);_.t([_.C(),_.N("design:type",String)],UJ.prototype,"seconds",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],UJ.prototype,"polymer2",void 0);
_.t([_.El("#seconds"),_.N("design:type",Object)],UJ.prototype,"secondsEl",void 0);_.t([_.m5("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UJ.prototype,"secondsChanged",null);_.t([_.m5("minutes"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UJ.prototype,"minutesChangedForBinding",null);
_.t([_.m5("seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],UJ.prototype,"secondsChangedForBinding",null);UJ=_.t([_.sl({is:"yt-timestamp-input",disableElementRegistration:!0})],UJ);
_.H(UJ,"yt-timestamp-input",function(){if(O1g===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;WK5===void 0&&(WK5=document.createElement("template"));var T=WK5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);O1g=W}W=O1g;return W},{mode:2});var lu=function(){return _.n.apply(this,arguments)||this};
_.R(lu,_.n);_.d=lu.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18111_scroller.dialogElement=this.hostElement.parentNode};
_.d.dataChanged=function(){var W=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.Wm().getPlayerPromise().then(function(O){O=O.getCurrentTime();W.minutes=Math.floor(O/60).toString();W.seconds=(Math.floor(O)%60).toString()})};
_.d.onTapSubmit=function(W){W.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(W={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(W.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(W.minutes=this.minutes,W.seconds=this.seconds),_.iq().resolve(_.bq).resolveCommand(this.serviceEndpoint,{form:Object.assign({},W,{element:this.hostElement})}))};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.d.onYtServiceRequestCompleted=function(W,O){O=O.actions;if(Array.isArray(O))for(var b=0,T=O.length;b<T;b++)_.P(O[b],_.pN)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(O[b]))};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.d.toggleSubmitButton=function(W){this.set("submitButton.isDisabled",!W)};
_.d.handleInput=function(){var W=this.issueType,O=this.affiliation,b=this.minutes,T=this.seconds;b=!this.showTimestamp||!!b&&!!T;this.toggleSubmitButton(!!this.descriptionText&&!!W&&!!O&&b)};
_.d.computeServiceEndpoint=function(W){return this.get("submitButton.buttonRenderer.serviceEndpoint",W)};
_.d.computeSubmitButton=function(W){(W=this.get("submitButton.buttonRenderer",W))&&(W=Object.assign({},W,{serviceEndpoint:void 0}));return W};
_.d.computeShowTimestamp=function(W){return!!W};
_.d.onValueChangedForIssueType=function(W){this.issueType=W.detail.value};
_.d.onValueChangedForAffiliation=function(W){this.affiliation=W.detail.value};
_.d.updateDescriptionTextFromBinding=function(W){this.descriptionText=W.detail.value};
_.d.updateFullNameTextFromBinding=function(W){this.fullNameText=W.detail.value};
_.d.updateMinutesFromBinding=function(W){this.minutes=W.detail.value};
_.d.updateSecondsFromBinding=function(W){this.seconds=W.detail.value};
lu.prototype.handleInput=lu.prototype.handleInput;lu.prototype.onYtServiceRequestError=lu.prototype.onYtServiceRequestError;lu.prototype.onYtServiceRequestCompleted=lu.prototype.onYtServiceRequestCompleted;lu.prototype.onYtServiceRequestSent=lu.prototype.onYtServiceRequestSent;lu.prototype.dataChanged=lu.prototype.dataChanged;_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],lu.prototype,"ytOpenPopupBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lu.prototype,"ytRendererBehavior",void 0);_.t([_.El("#scroller"),_.N("design:type",Object)],lu.prototype,"JSC$18111_scroller",void 0);_.t([_.El("#description"),_.N("design:type",HTMLInputElement)],lu.prototype,"description",void 0);_.t([_.El("#full-name"),_.N("design:type",Object)],lu.prototype,"fullName",void 0);_.t([_.C(),_.N("design:type",Object)],lu.prototype,"data",void 0);
_.t([_.C({computed:"computeShowTimestamp(data.timestampLabel)"}),_.N("design:type",Boolean)],lu.prototype,"showTimestamp",void 0);_.t([_.C({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.N("design:type",Object)],lu.prototype,"serviceEndpoint",void 0);_.t([_.C({computed:"computeSubmitButton(data)"}),_.N("design:type",Object)],lu.prototype,"submitButton",void 0);_.t([_.C(),_.N("design:type",String)],lu.prototype,"descriptionText",void 0);
_.t([_.C(),_.N("design:type",Number)],lu.prototype,"issueType",void 0);_.t([_.C(),_.N("design:type",Number)],lu.prototype,"affiliation",void 0);_.t([_.C(),_.N("design:type",String)],lu.prototype,"fullNameText",void 0);_.t([_.C(),_.N("design:type",String)],lu.prototype,"minutes",void 0);_.t([_.C(),_.N("design:type",String)],lu.prototype,"seconds",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lu.prototype,"dataChanged",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],lu.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],lu.prototype,"onYtServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],lu.prototype,"onYtServiceRequestError",null);_.t([_.m5("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lu.prototype,"handleInput",null);lu=_.t([_.G({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],lu);
_.H(lu,"ytd-legal-report-details-form-renderer",function(){if(y5U!==void 0)return y5U;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return y5U=W},{mode:1});var i1g;var e$=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return W};
_.R(e$,_.n);e$.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
e$.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var W=this.formRenderer.getForm();W&&this.data.submitEndpoint&&(_.iq().resolve(_.bq).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},W,{element:this.hostElement})}),_.jx(this.hostElement,"yt-close-popup-action"))}};
e$.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.jx(this.hostElement,"yt-close-popup-action"))};
e$.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
e$.prototype.onPopupClosed=e$.prototype.onPopupClosed;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],e$.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],e$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],e$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);
_.t([_.El("yt-form-renderer"),_.N("design:type",Object)],e$.prototype,"formRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],e$.prototype,"data",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],e$.prototype,"onPopupClosed",null);e$=_.t([_.G({is:"ytd-form-popup-content",disableElementRegistration:!0})],e$);
_.H(e$,"ytd-form-popup-content",function(){if(i1g!==void 0)return i1g;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return i1g=W},{mode:1});var b11;var Po=function(){return _.n.apply(this,arguments)||this};
_.R(Po,_.n);Po.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Po.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Po.prototype.onPopupOpened=function(){_.bX(this.hostElement,"yt-invalidate-popup-tabbables")};
Po.prototype.onYtServiceRequestCompleted=function(W,O){O.data&&O.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.bX(this.hostElement,"yt-invalidate-popup-tabbables"))};
Po.prototype.onYtServiceRequestCompleted=Po.prototype.onYtServiceRequestCompleted;Po.prototype.onPopupOpened=Po.prototype.onPopupOpened;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Po.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Po.prototype,"data",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Po.prototype,"onPopupOpened",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Po.prototype,"onYtServiceRequestCompleted",null);Po=_.t([_.G({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Po);
_.H(Po,"ytd-form-popup-renderer",function(){if(b11!==void 0)return b11;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return b11=W},{mode:1});var jCD;var pj=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;return W};
_.R(pj,_.n);_.d=pj.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");IpN(this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.isLoading=!0};
_.d.onYtServiceRequestCompleted=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.d.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.Sx(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.d.closePopupHandler=function(){this.fireOnCloseActions()};
_.d.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var W=this.get("data.headerImage.thumbnails");W&&(W=_.bn(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")")}};
_.d.onYtNavigate=function(W){(W=_.Md(W))&&W.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
pj.prototype.onYtNavigate=pj.prototype.onYtNavigate;pj.prototype.onHeaderImageChanged=pj.prototype.onHeaderImageChanged;pj.prototype.closePopupHandler=pj.prototype.closePopupHandler;pj.prototype.onYtServiceRequestCompleted=pj.prototype.onYtServiceRequestCompleted;pj.prototype.onYtServiceRequestSent=pj.prototype.onYtServiceRequestSent;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],pj.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pj.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],pj.prototype,"isLoading",void 0);_.t([_.El("#header"),_.N("design:type",HTMLDivElement)],pj.prototype,"header",void 0);_.t([_.El("#confirm-button"),_.N("design:type",_.X$)],pj.prototype,"confirmButton",void 0);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pj.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pj.prototype,"onYtServiceRequestCompleted",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],pj.prototype,"closePopupHandler",null);_.t([_.m5("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pj.prototype,"onHeaderImageChanged",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pj.prototype,"onYtNavigate",null);
pj=_.t([_.G({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],pj);
_.H(pj,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(jCD!==void 0)return jCD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return jCD=W},{mode:1});var TTg;var RE=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;return W};
_.R(RE,_.n);_.d=RE.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);IpN(this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.d.onYtServiceRequestError=function(W){_.yU(this.hostElement,W.detail.error.message)};
_.d.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.d.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.jx(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.d.onDataChanged=function(){this.isLoading=!1;var W=this.get("data.headerImage.thumbnails");W&&(W=_.bn(W,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+W+")");W=_.Bb();var O=_.sk(),b=this.get("data.trackingParams");b&&O&&W&&_.fV(W,O,_.Pi(b))};
_.Jq.Object.defineProperties(RE.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
RE.prototype.onDataChanged=RE.prototype.onDataChanged;RE.prototype.onDomChange=RE.prototype.onDomChange;RE.prototype.onYtServiceRequestError=RE.prototype.onYtServiceRequestError;RE.prototype.onYtServiceRequestCompleted=RE.prototype.onYtServiceRequestCompleted;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],RE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RE.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],RE.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],RE.prototype,"isLoading",void 0);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],RE.prototype,"hasDescription",null);_.t([_.El("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],RE.prototype,"scrollable",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],RE.prototype,"header",void 0);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RE.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RE.prototype,"onYtServiceRequestError",null);
_.t([_.ai("dom-change"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],RE.prototype,"onDomChange",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RE.prototype,"onDataChanged",null);RE=_.t([_.G({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],RE);
_.H(RE,"ytd-gaming-account-link-setting-renderer",function(){if(TTg!==void 0)return TTg;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return TTg=W},{mode:1});var LKB;var dTk;var Kj=function(){var W=_.n.apply(this,arguments)||this;W.isHeader=!1;W.getEndpointForm=function(){return mkD(W.data)};
return W};
_.R(Kj,_.n);_.d=Kj.prototype;_.d.triggerHintActions=function(){var W=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var O=_.TU(W.hostElement,"yt-get-opened-popups-action");!(O&&O.length===1?O[0]:[]).some(function(b){b=b.openPopupAction.popupType;return b==="SURVEY"||b==="MEALBAR"||b==="HINT"})&&W.data.hintActions&&W.guideOpened&&(_.Sx(W.hostElement,W.data.hintActions,W.hostElement),W.data.hintActions=void 0)})};
_.d.getBadgeIconType=function(W){return W&&W.liveBroadcasting?"live":null};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(W){if(this.data.serviceEndpoint){var O;_.e("shorts_controller_retrieve_seedless_sequence_v2")&&((O=_.P(this.data.serviceEndpoint,_.l8))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):aMB(this.data.serviceEndpoint,this);W.preventDefault()}else this.data.navigationEndpoint&&!_.un(_.Nd(W),this.hostElement,["A".toString()])&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.d.computeActive=function(W,O){if(!W)return!1;var b=W.navigationEndpoint;W=W.serviceEndpoint;if(!b&&!W||!O)return!1;if(b){W=(W=_.EP(O))&&["subscriptions","filteredsubscriptions"].includes(W);if(_.P(b,_.wE)&&_.P(O,_.wE)&&!W){var T=_.P(b,_.wE).browseId;O=_.P(O,_.wE).browseId;return T!==void 0&&O!==void 0&&(T===O||T==="VLWL"&&O==="FEwatch_later"||T==="FEwatch_later"&&O==="VLWL")}var L;b=(L=_.P(b.commandMetadata,_.F9))==null?void 0:L.url;O=(T=_.P(O.commandMetadata,_.F9))==null?void 0:T.url;return!(!b||
!O||b!==O&&b!==_.mp(O))}return this.isActiveShortsTab(W,O)};
_.d.isActiveShortsTab=function(W,O){O=!!_.P(O,_.l8)||!!_.P(O,_.Qg);return(!!_.P(W,_.l8)||!!_.P(W,_.Qg))&&O};
_.d.computeIsPrimary=function(W){return!!W};
_.Jq.Object.defineProperties(Kj.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 W=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&W)return W}}});
Kj.prototype.onTap=Kj.prototype.onTap;Kj.prototype.onUp=Kj.prototype.onUp;Kj.prototype.onDown=Kj.prototype.onDown;Kj.prototype.triggerHintActions=Kj.prototype.triggerHintActions;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Kj.prototype,"componentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Kj.prototype,"rendererBehavior",void 0);_.t([_.D(_.uH.YtTaskEmitterBehavior),_.N("design:type",Object)],Kj.prototype,"taskEmitterBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Kj.prototype,"activeEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],Kj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],Kj.prototype,"guideOpened",void 0);_.t([_.C(),_.N("design:type",String)],Kj.prototype,"type",void 0);_.t([_.El("yt-interaction"),_.N("design:type",Object)],Kj.prototype,"interaction",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Kj.prototype,"isHeader",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data","activeEndpoint"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kj.prototype,"active",null);_.t([_.C({reflectToAttribute:!0}),_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],Kj.prototype,"isPrimary",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.count","data.presentationStyle","data.badges.*"),_.N("design:type",String),_.N("design:paramtypes",[])],Kj.prototype,"lineEndStyle",null);
_.t([_.x("lineEndStyle"),_.N("design:type",Object),_.N("design:paramtypes",[])],Kj.prototype,"ariaLabel",null);_.t([_.m5("data.hintActions","guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"triggerHintActions",null);_.t([_.ai("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"onDown",null);
_.t([_.ai("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Kj.prototype,"onUp",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Kj.prototype,"onTap",null);Kj=_.t([_.G({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Kj);
_.H(Kj,"ytd-guide-entry-renderer",function(){if(dTk!==void 0)return dTk;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return dTk=W},{mode:1});var vo=function(){var W=_.n.apply(this,arguments)||this;W.userToggled=!1;return W};
_.R(vo,_.n);_.d=vo.prototype;_.d.getItemsPath=function(){return"data.expandableItems"};
_.d.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.d.onExpanderItemTapped=function(W){var O=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.e("kevlar_guide_expandable_items_killswitch")&&_.My(this,function(){_.JS(O.expandableItems)});
W.preventDefault()};
_.d.onCollapserItemTapped=function(W){var O=this;this._setExpanded(!1);this.userToggled=!0;W.preventDefault();this.expandableItems&&!_.e("kevlar_guide_collapsible_items_killswitch")&&_.My(this,function(){_.uP(O.hostElement)})};
_.d.observeActiveEndpoint=function(){for(var W=this.activeEndpoint,O=this.data,b=this.expandableItems.children,T=0,L=b.length;T<L;T++)b[T].activeEndpoint=W;O&&O.autoExpandCommand&&W&&!this.userToggled&&(b=this.data.autoExpandCommand,O=!(!_.P(b,_.wE)||!_.P(W,_.wE)||_.P(b,_.wE).browseId!==_.P(W,_.wE).browseId),W=this.get("commandMetadata.webCommandMetadata.url",W),b=this.get("commandMetadata.webCommandMetadata.url",b),O=O||!!(W&&b&&W.includes(b)),this._setExpanded(O),O&&this.ytLazyListBehavior.fillRemainingListItems())};
vo.prototype.observeActiveEndpoint=vo.prototype.observeActiveEndpoint;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],vo.prototype,"ytLazyListBehavior",void 0);_.t([_.El("#expandable-items"),_.N("design:type",HTMLElement)],vo.prototype,"expandableItems",void 0);
_.t([_.C(),_.N("design:type",Object)],vo.prototype,"data",void 0);_.t([_.C({readOnly:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],vo.prototype,"expanded",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],vo.prototype,"initialCount",void 0);_.t([_.C(),_.N("design:type",Object)],vo.prototype,"activeEndpoint",void 0);_.t([_.m5("data","activeEndpoint","canShowMore"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vo.prototype,"observeActiveEndpoint",null);
vo=_.t([_.G({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],vo);
_.H(vo,"ytd-guide-collapsible-entry-renderer",function(){if(LKB!==void 0)return LKB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return LKB=W},{mode:_.Lb("kevlar_poly_si_batch_j079")?1:2});var ho1;var SAP;var gF=function(){var W=_.n.apply(this,arguments)||this;W.allVideosCount=0;W.renderGuideEntry=!1;return W};
_.R(gF,_.n);gF.prototype.observeRenderEntry=function(){var W;this.renderGuideEntry=!((W=this.data)==null||!W.alwaysShow)||!!this.allVideosCount};
gF.prototype.observeRenderEntry=gF.prototype.observeRenderEntry;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],gF.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gF.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],gF.prototype,"activeEndpoint",void 0);_.t([_.C({selector:_.lmQ}),_.N("design:type",Object)],gF.prototype,"allVideosCount",void 0);
_.t([_.C(),_.N("design:type",Object)],gF.prototype,"renderGuideEntry",void 0);_.t([_.Ul("allVideosCount","data.alwaysShow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],gF.prototype,"observeRenderEntry",null);gF=_.t([_.G({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],gF);
_.H(gF,"ytd-guide-downloads-entry-renderer",function(){if(SAP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);SAP=W}W=SAP;return W},{mode:1});var oE=function(){var W=_.n.apply(this,arguments)||this;W.youtab=_.e("web_enable_youtab");W.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return W};
_.R(oE,_.n);_.d=oE.prototype;_.d.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]]"}}}}}};
_.d.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var W=this.sectionItems.children,O=0,b=W.length;O<b;O++)W[O].activeEndpoint=this.activeEndpoint}};
_.d.handleAddToGuideSectionAction=function(W){var O=_.P(W,PK7);if(O&&this.data&&(W=O.items,O=O.handlerData,W&&O&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(O)>-1)){O=0;for(var b=W.length;O<b;O++)W[O].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,W[O])}};
_.d.handleRemoveFromGuideSectionAction=function(W){var O=_.P(W,pqU);O&&this.data&&(W=O.guideEntryId,O=O.handlerData,W&&O&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(O)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(W,this.data.sectionItems),this.removeFromCollapsedSection(W,this.data.sectionItems)))};
_.d.removeFromExpandedSection=function(W,O){W=this.getEntryIndexMatchingId(W,O);W!==-1&&this.splice("data.sectionItems",W,1)};
_.d.removeFromCollapsedSection=function(W,O){var b=O.findIndex(function(T){return!!_.P(T,n87)});
b&&b!==-1&&O[b]&&_.P(O[b],n87)&&(O=_.P(O[b],n87).expandableItems)&&(W=this.getEntryIndexMatchingId(W,O),W!==-1&&this.splice("data.sectionItems."+b+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.d.getEntryIndexMatchingId=function(W,O){var b=this;return O.findIndex(function(T){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",T)===W})};
oE.prototype.activeEndpointChanged=oE.prototype.activeEndpointChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oE.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],oE.prototype,"actionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],oE.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#section-items"),_.N("design:type",HTMLDivElement)],oE.prototype,"sectionItems",void 0);
_.t([_.El("#header-entry"),_.N("design:type",Object)],oE.prototype,"headerEntry",void 0);_.t([_.C(),_.N("design:type",Object)],oE.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],oE.prototype,"activeEndpoint",void 0);_.t([_.C(),_.N("design:type",Object)],oE.prototype,"youtab",void 0);_.t([_.m5("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],oE.prototype,"activeEndpointChanged",null);
oE=_.t([_.G({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],oE);
_.H(oE,"ytd-guide-collapsible-section-entry-renderer",function(){if(ho1===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);ho1=W}W=ho1;return W},{mode:1});var Z12;var Isg;var QL=function(){var W=_.n.apply(this,arguments)||this;W.modernTypography=_.e("web_modern_typography");W.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 W};
_.R(QL,_.n);_.d=QL.prototype;
_.d.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}}}}};
_.d.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var W=_.TU(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);W&&W.length===1&&W[0]&&_.TU(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.d.handleResetChannelUnreadCountCommand=function(W){var O;(W=(O=_.P(W,KFg))==null?void 0:O.channelId)&&this.data&&this.data.items&&(O=this.getPathToEntryMatchingId(W))&&(this.set(O+".guideEntryRenderer.count",0),this.set(O+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.handleResetSubscriptionsUnreadDotCommand=function(W){var O,b=(O=_.P(W,v89))==null?void 0:O.targetId,T;b&&(T=this.data)!=null&&T.items&&(W=this.data.items.findIndex(function(L){var h;return((h=L.guideEntryRenderer)==null?void 0:h.targetId)===b}),W<0||this.set("data.items."+W+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.d.getPathToEntryMatchingId=function(W){if(this.data&&this.data.items){var O=this.getEntryIndexMatchingId(W,this.data.items);if(O>-1)return"data.items."+O;for(var b=0;b<this.data.items.length;b++)if(O=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[b]))if(O=this.getEntryIndexMatchingId(W,O),O>-1)return"data.items."+b+".guideCollapsibleEntryRenderer.expandableItems."+O}};
_.d.handleAddToGuideSectionAction=function(W){var O=this;if(_.P(W,PK7)){var b=_.P(W,PK7).items;W=_.P(W,PK7).handlerData;var T,L;b&&W&&((T=this.data)==null?void 0:(L=T.handlerDatas)==null?void 0:L.indexOf(W))>-1&&(b=b.filter(function(h){return(h=O.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",h))&&!O.isGuideItemPresent(h)}),this.unshift.apply(this,["data.items"].concat(_.PG(b))))}};
_.d.isGuideItemPresent=function(W){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(W,this.data.items)!==-1)return!0;var O=this.data.items.find(function(b){return!!b.guideCollapsibleEntryRenderer});
if((O==null?0:O.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(W,O.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.d.getEntryIndexMatchingId=function(W,O){var b=this;return O.findIndex(function(T){return b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",T)===W})};
_.d.handleRemoveFromGuideSectionAction=function(W){if(_.P(W,pqU)){var O=_.P(W,pqU).guideEntryId;W=_.P(W,pqU).handlerData;var b,T;O&&W&&((b=this.data)==null?void 0:(T=b.handlerDatas)==null?void 0:T.indexOf(W))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(O,this.data.items),this.removeFromCollapsedSection(O,this.data.items))}};
_.d.removeFromExpandedSection=function(W,O){W=this.getEntryIndexMatchingId(W,O);W!==-1&&this.splice("data.items",W,1)};
_.d.removeFromCollapsedSection=function(W,O){var b=O.findIndex(function(T){return!!T.guideCollapsibleEntryRenderer});
b!==-1&&(O=O[b].guideCollapsibleEntryRenderer.expandableItems)&&(W=this.getEntryIndexMatchingId(W,O),W!==-1&&this.splice("data.items."+b+".guideCollapsibleEntryRenderer.expandableItems",W,1))};
_.d.activeEndpointChanged=function(){for(var W=_.Q(this.hostElement).querySelector("#items").children,O=0,b=W.length;O<b;O++)W[O].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.d.guideOpenedChanged=function(){for(var W=_.Q(this.hostElement).querySelector("#items").children,O=0,b=W.length;O<b;O++)W[O].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
QL.prototype.guideOpenedChanged=QL.prototype.guideOpenedChanged;QL.prototype.activeEndpointChanged=QL.prototype.activeEndpointChanged;QL.prototype.persistentGuideChanged=QL.prototype.persistentGuideChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],QL.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],QL.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],QL.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],QL.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],QL.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],QL.prototype,"modernTypography",void 0);_.t([_.C(),_.N("design:type",String)],QL.prototype,"type",void 0);_.t([_.C({value:20}),_.N("design:type",Number)],QL.prototype,"initialCount",void 0);_.t([_.C({value:10}),_.N("design:type",Number)],QL.prototype,"targetFramerate",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],QL.prototype,"autoFill",void 0);_.t([_.C({value:50}),_.N("design:type",Number)],QL.prototype,"renderDelay",void 0);
_.t([_.m5("guidePersistentAndVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QL.prototype,"persistentGuideChanged",null);_.t([_.Ul("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QL.prototype,"activeEndpointChanged",null);_.t([_.Ul("guideOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QL.prototype,"guideOpenedChanged",null);
QL=_.t([_.G({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],QL);
_.H(QL,"ytd-guide-section-renderer",function(){if(Isg!==void 0)return Isg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Isg=W},{mode:_.Lb("kevlar_poly_si_batch_j073")?1:2});var as9;var kr=function(){return _.n.apply(this,arguments)||this};
_.R(kr,_.n);_.Jq.Object.defineProperties(kr.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kr.prototype,"rendererBehaviors",void 0);_.t([_.C(),_.N("design:type",Object)],kr.prototype,"data",void 0);_.t([_.C(),_.x("data.signInButton.buttonRenderer.style"),_.N("design:type",Object),_.N("design:paramtypes",[])],kr.prototype,"alignByText",null);kr=_.t([_.G({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],kr);
_.H(kr,"ytd-guide-signin-promo-renderer",function(){if(as9===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);as9=W}W=as9;return W},{mode:1});var sJ=function(){var W=_.n.apply(this,arguments)||this;W.showFooter=!1;return W};
_.R(sJ,_.n);sJ.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}}}}};
sJ.prototype.attached=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1){O=_.iq().resolve(_.OT(_.zl));if(!O)return b.jumpTo(0);O.setGuideData(W.hostElement);return _.Y(b,0,3)}W.ytLazyListBehavior.initialCount=2;return b.return()})};
sJ.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
sJ.prototype.dataChanged=sJ.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sJ.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],sJ.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.yc.YtLazyListBehavior),_.N("design:type",Object)],sJ.prototype,"ytLazyListBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sJ.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],sJ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],sJ.prototype,"showFooter",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],sJ.prototype,"autoFill",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],sJ.prototype,"dataChanged",null);sJ=_.t([_.G({is:"ytd-guide-renderer",disableElementRegistration:!0})],sJ);
_.H(sJ,"ytd-guide-renderer",function(){if(Z12!==void 0)return Z12;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Z12=W},{mode:_.Lb("kevlar_poly_si_batch_j073")?1:2});var mTN;var Bo=function(){var W=_.n.apply(this,arguments)||this;W.systemIcons=_.e("kevlar_system_icons");W.frostedGlass=_.e("web_frosted_glass");W.getEndpointForm=function(){return mkD(W.data)};
return W};
_.R(Bo,_.n);_.d=Bo.prototype;_.d.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.d.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.NX(this.data.formattedTitle))};
_.d.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.d.onDown=function(){this.interaction.triggerDown()};
_.d.onUp=function(){this.interaction.triggerUp()};
_.d.onTap=function(W){if(this.data.serviceEndpoint){var O;_.e("shorts_controller_retrieve_seedless_sequence_v2")&&((O=_.P(this.data.serviceEndpoint,_.l8))==null?void 0:O.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):aMB(this.data.serviceEndpoint,this);W.preventDefault()}else{var b;((b=this.data)==null?0:b.navigationEndpoint)&&!_.un(_.Nd(W),this.hostElement,["A".toString()])&&_.bX(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.d.computeActive=function(W,O){if(!W)return!1;var b=W.navigationEndpoint;W=W.serviceEndpoint;if(!b&&!W||!O)return!1;if(b){W=_.P(b,_.wE);var T=_.P(O,_.wE);if(W&&T)return W.browseId===T.browseId&&W.params===T.params;var L;b=(L=_.P(b.commandMetadata,_.F9))==null?void 0:L.url;var h;O=(h=_.P(O.commandMetadata,_.F9))==null?void 0:h.url;return!(!b||!O||b!==O&&b!==_.mp(O))}return this.isActiveShortsTab(W,O)};
_.d.isActiveShortsTab=function(W,O){O=!!_.P(O,_.l8)||!!_.P(O,_.Qg);return(!!_.P(W,_.l8)||!!_.P(W,_.Qg))&&O};
_.d.computeTitle=function(W,O){return O?"":_.NX(W)};
_.Jq.Object.defineProperties(Bo.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Bo.prototype.onTap=Bo.prototype.onTap;Bo.prototype.onUp=Bo.prototype.onUp;Bo.prototype.onDown=Bo.prototype.onDown;Bo.prototype.onActiveStateChange=Bo.prototype.onActiveStateChange;Bo.prototype.dataChanged=Bo.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Bo.prototype,"ytComponentBehavior",void 0);
_.t([_.D(_.QX),_.N("design:type",Object)],Bo.prototype,"ironButtonState",void 0);_.t([_.C(),_.N("design:type",Object)],Bo.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Bo.prototype,"activeEndpoint",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Bo.prototype,"noLabels",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.N("design:type",Boolean)],Bo.prototype,"isActive",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bo.prototype,"systemIcons",void 0);_.t([_.El("yt-interaction"),_.N("design:type",Object)],Bo.prototype,"interaction",void 0);_.t([_.x("isActive"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bo.prototype,"ariaSelected",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bo.prototype,"frostedGlass",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bo.prototype,"dataChanged",null);_.t([_.m5("isActive"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bo.prototype,"onActiveStateChange",null);_.t([_.ai("down"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bo.prototype,"onDown",null);
_.t([_.ai("up"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Bo.prototype,"onUp",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Bo.prototype,"onTap",null);Bo=_.t([_.G({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Bo);
_.H(Bo,"ytd-mini-guide-entry-renderer",function(){if(mTN!==void 0)return mTN;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return mTN=W},{mode:_.Lb("kevlar_poly_si_batch_j063")?1:2});var YAP;var rF=function(){var W=_.n.apply(this,arguments)||this;W.allVideosCount=0;W.noLabels=_.e("kevlar_mini_guide_no_labels");W.frostedGlass=_.e("web_frosted_glass");return W};
_.R(rF,_.n);_.d=rF.prototype;_.d.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.d.visibleChanged=function(){if(this.visible&&!this.data){var W=_.iq().resolve(_.OT(_.zl));W&&W.setGuideData(this.hostElement)}};
_.d.dataChanged=function(){var W=[],O;if((O=this.data)!=null&&O.items){O=_.S(this.data.items);for(var b=O.next();!b.done;b=O.next()){b=b.value;var T=void 0;if((T=b.guideSectionRenderer)==null?0:T.items)for(T=void 0,b=_.S((T=b.guideSectionRenderer)==null?void 0:T.items),T=b.next();!T.done;T=b.next())if(T=T.value,T.guideEntryRenderer)T=T.guideEntryRenderer,T.isPrimary&&W.push({guideEntryRenderer:T});else if(T.guideCollapsibleSectionEntryRenderer){var L=void 0;((L=_.P(T.guideCollapsibleSectionEntryRenderer.headerEntry,
$c))==null?0:L.isPrimary)&&W.push({guideEntryRenderer:_.P(T.guideCollapsibleSectionEntryRenderer.headerEntry,$c)});if(T=T.guideCollapsibleSectionEntryRenderer.sectionItems)for(T=_.S(T),L=T.next();!L.done;L=T.next()){var h=L.value;L=_.P(h,fcU);var Z=void 0;((Z=_.P(h,$c))==null?0:Z.isPrimary)?W.push({guideEntryRenderer:_.P(h,$c)}):L&&(h=void 0,_.P((h=L)==null?void 0:h.entryRenderer,$c)&&(L.alwaysShow||this.allVideosCount)&&W.push({guideEntryRenderer:_.P(L.entryRenderer,$c)}))}}}}this.miniGuideItems=
W};
_.d.activeEndpointChanged=function(){for(var W=this.items.children,O=0;O<W.length;O++)W[O].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
rF.prototype.activeEndpointChanged=rF.prototype.activeEndpointChanged;rF.prototype.dataChanged=rF.prototype.dataChanged;rF.prototype.visibleChanged=rF.prototype.visibleChanged;_.t([_.D(_.sh),_.N("design:type",Object)],rF.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rF.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],rF.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],rF.prototype,"ytComponentBehavior",void 0);_.t([_.El("#items"),_.N("design:type",Object)],rF.prototype,"items",void 0);_.t([_.C(),_.N("design:type",Object)],rF.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],rF.prototype,"visible",void 0);
_.t([_.C(),_.N("design:type",Object)],rF.prototype,"miniGuideItems",void 0);_.t([_.C({selector:_.lmQ}),_.N("design:type",Object)],rF.prototype,"allVideosCount",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"noLabels",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rF.prototype,"frostedGlass",void 0);_.t([_.Ul("visible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"visibleChanged",null);
_.t([_.Ul("data","allVideosCount"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"dataChanged",null);_.t([_.Ul("activeEndpoint"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],rF.prototype,"activeEndpointChanged",null);rF=_.t([_.G({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],rF);
_.H(rF,"ytd-mini-guide-renderer",function(){if(YAP===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);YAP=W}W=YAP;return W},{mode:1});var EYP;var w$1=/^[\x00-\x7F]+$/,DY=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(DY,_.n);_.Jq.Object.defineProperties(DY.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var W,O=_.NX((W=this.data)==null?void 0:W.handle);if(O)return _.VV("@"+O)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.NX(this.displayHandle),O,b=_.NX((O=this.data)==null?void 0:O.handleUrl);if(W&&b)return _.VV(b+W)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var W=_.NX(this.displayHandle);if(W&&!w$1.test(W)){var O;return(O=this.data)==null?void 0:O.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var W=_.NX(this.displayHandleUrl),O,b=_.NX((O=this.data)==null?void 0:O.urlInfoText);if(W&&b)return _.VV(b+" "+W)}}});
_.t([_.C(),_.N("design:type",Object)],DY.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],DY.prototype,"displayHandle",null);_.t([_.x("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],DY.prototype,"displayHandleUrl",null);_.t([_.x("displayHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],DY.prototype,"warningText",null);
_.t([_.x("displayHandleUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],DY.prototype,"urlInfoTextWithUrl",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],DY.prototype,"darkerDarkTheme",void 0);DY=_.t([_.G({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],DY);
_.H(DY,"ytd-handles-claiming-confirm-dialog-content",function(){if(EYP!==void 0)return EYP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return EYP=W},{mode:1});var Az8;var xr=function(){var W=_.n.apply(this,arguments)||this;W.okButtonOverride={style:"mono",type:"outline",size:"M"};return W};
_.R(xr,_.n);xr.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xr.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xr.prototype,"okButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],xr.prototype,"data",void 0);xr=_.t([_.G({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],xr);
_.H(xr,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(Az8!==void 0)return Az8;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Az8=W},{mode:1});var X$7;var UT5=/^[\x00-\x7F]+$/,za=function(){var W=_.n.apply(this,arguments)||this;W.isLoading=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(za,_.n);za.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var W;this.selectedHandle=(W=this.handleInput)==null?void 0:W.value;this.onSelectedHandleChanged(this.selectedHandle);_.TU(this.hostElement,"yt-refit-popups-action")}};
_.Jq.Object.defineProperties(za.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return(W=this.data)==null?void 0:W.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.VV("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.VV(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!UT5.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],za.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],za.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],za.prototype,"selectedHandle",void 0);_.t([_.C(),_.N("design:type",Object)],za.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Function)],za.prototype,"onSelectedHandleChanged",void 0);_.t([_.El("#channel-handle-input"),_.N("design:type",Object)],za.prototype,"handleInput",void 0);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],za.prototype,"handleUrlPrefix",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],za.prototype,"displayHandle",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],za.prototype,"displayHandleUrl",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],za.prototype,"warningText",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],za.prototype,"darkerDarkTheme",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],za.prototype,"ytRendererBehavior",void 0);za=_.t([_.G({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],za);
_.H(za,"ytd-handles-claiming-edit-dialog-content",function(){if(X$7!==void 0)return X$7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return X$7=W},{mode:1});var lsU;var Cj=function(){var W=_.n.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.selectButtonDisabled=!1;W.isLoading=!1;W.hasSelectedHandleEventListener=!1;W.selectedHandleChanged=function(O){W.selectedHandle=O};
return W};
_.R(Cj,_.n);_.d=Cj.prototype;_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.d.onDataChanged=function(){var W,O;this.selectedHandle=(O=_.P((W=this.data)==null?void 0:W.inputField,Ac9))==null?void 0:O.handle};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.selectedHandle="";_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var O;((O=this.data)==null?void 0:O.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,T){if(T.newHandleUpdateStatus!==void 0&&T.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&T.newHandleUpdateStatus.errorMessage)_.yU(W.hostElement,_.NX(T.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var L;if((L=W.data)==null?0:L.onChannelUpdateSuccess){b=W.data.onChannelUpdateSuccess;var h,Z;if(T=(h=_.P(b,_.pN))==null?void 0:(Z=h.popup)==null?void 0:Z.handlesClaimingConfirmDialogRenderer)T.handle=_.VV(W.selectedHandle);W.ytComponentBehavior.resolveCommand(b);_.jx(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){var b;W.content&&((b=W.content)==null?0:b.handleInput)&&W.content.handleInput.validate();W.isLoading=!1;_.yU(W.hostElement,_.EO("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Cj.prototype.onDataChanged=Cj.prototype.onDataChanged;Cj.prototype.onSelectedHandleChanged=Cj.prototype.onSelectedHandleChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"actionButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"cancelButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",String)],Cj.prototype,"selectedHandle",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"selectButtonDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"hasSelectedHandleEventListener",void 0);_.t([_.C(),_.N("design:type",Object)],Cj.prototype,"handleInput",void 0);
_.t([_.m5("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cj.prototype,"onSelectedHandleChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Cj.prototype,"onDataChanged",null);_.t([_.El("ytd-handles-claiming-edit-dialog-content"),_.N("design:type",Object)],Cj.prototype,"content",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Cj.prototype,"ytRendererstamperBehavior",void 0);Cj=_.t([_.G({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Cj);
_.H(Cj,"ytd-handles-claiming-edit-dialog-renderer",function(){if(lsU!==void 0)return lsU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lsU=W},{mode:1});var eoP;var qK=function(){return _.n.apply(this,arguments)||this};
_.R(qK,_.n);_.Jq.Object.defineProperties(qK.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null?0:W.handle){var O;return _.VV("@"+_.NX((O=this.data)==null?void 0:O.handle))}}}});
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],qK.prototype,"formattedHandle",null);_.t([_.C(),_.N("design:type",Object)],qK.prototype,"data",void 0);qK=_.t([_.G({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],qK);
_.H(qK,"ytd-handles-claiming-radio-option-renderer",function(){if(eoP!==void 0)return eoP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return eoP=W},{mode:1});var Pd9;var p$B=/^[\x00-\x7F]+$/,nj=function(){var W=_.n.apply(this,arguments)||this;W.initialRadioIndex="-1";W.isLoading=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.feedbackSurveyRenderer.submitSurvey()};
return W};
_.R(nj,_.n);nj.prototype.updateSelectedHandleIndexFromBinding=function(W){this.selectedRadioIndex=+W.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(W)};
nj.prototype.selectedHandleChanged=function(W){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var O;this.selectedHandle=(O=this.handleInput)==null?void 0:O.value;this.onSelectedHandleChanged(W)}};
_.Jq.Object.defineProperties(nj.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var W;return this.ytRendererBehavior.getSimpleString((W=this.data)==null?void 0:W.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.VV("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.VV(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!p$B.test(this.selectedHandle)){var W;return(W=this.data)==null?void 0:W.warningText}}}});
_.t([_.C(),_.N("design:type",Object)],nj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],nj.prototype,"initialRadioIndex",void 0);_.t([_.C(),_.N("design:type",Number)],nj.prototype,"selectedRadioIndex",void 0);_.t([_.C(),_.N("design:type",String)],nj.prototype,"selectedHandle",void 0);_.t([_.C(),_.N("design:type",Object)],nj.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Function)],nj.prototype,"onSelectedHandleChanged",void 0);
_.t([_.C(),_.N("design:type",Function)],nj.prototype,"onSelectedRadioIndexChanged",void 0);_.t([_.El("#channel-handle-input"),_.N("design:type",Object)],nj.prototype,"handleInput",void 0);_.t([_.El("ytd-feedback-survey-renderer"),_.N("design:type",Object)],nj.prototype,"feedbackSurveyRenderer",void 0);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],nj.prototype,"radioButtonLength",null);
_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"handleUrlPrefix",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"displayHandle",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"displayHandleUrl",null);_.t([_.x("selectedHandle"),_.N("design:type",Object),_.N("design:paramtypes",[])],nj.prototype,"warningText",null);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],nj.prototype,"darkerDarkTheme",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],nj.prototype,"ytRendererBehavior",void 0);nj=_.t([_.G({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],nj);
_.H(nj,"ytd-handles-claiming-select-dialog-content",function(){if(Pd9!==void 0)return Pd9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Pd9=W},{mode:1});var Ro8;var fj=function(){var W=_.n.apply(this,arguments)||this;W.actionButtonOverride={style:"mono",type:"filled",size:"M"};W.cancelButtonOverride={style:"mono",type:"text",size:"M"};W.initialRadioIndex="-1";W.selectButtonDisabled=!1;W.isLoading=!1;W.selectedRadioIndexChanged=function(O){W.selectedRadioIndex=Number(O.detail.value)};
W.selectedHandleChanged=function(O){W.selectedHandle=O.detail.value};
W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(fj,_.n);_.d=fj.prototype;_.d.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.d.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.d.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.TU(this.hostElement,"yt-refit-popups-action")};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onSelectHandle=function(){var W=this;if(this.selectedHandle!==void 0){var O;((O=this.data)==null?void 0:O.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(b,T){if(T.newHandleUpdateStatus!==void 0&&T.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&T.newHandleUpdateStatus.errorMessage)_.yU(W.hostElement,_.NX(T.newHandleUpdateStatus.errorMessage)),
W.isLoading=!1;else{var L;if((L=W.data)==null?0:L.onChannelUpdateSuccess){b=W.data.onChannelUpdateSuccess;T=_.P(b,_.pN);var h;if(T==null?0:(h=T.popup)==null?0:h.handlesClaimingConfirmDialogRenderer)T.popup.handlesClaimingConfirmDialogRenderer.handle=_.VV(W.selectedHandle);W.ytComponentBehavior.resolveCommand(b);_.jx(W.hostElement,"yt-close-popup-action",[W.is])}else W.isLoading=!1}},
onServerError:function(){if(W.selectedRadioIndex===W.radioButtonLength){var b;W.content&&((b=W.content)==null?0:b.handleInput)&&W.content.handleInput.validate()}W.isLoading=!1;_.yU(W.hostElement,_.EO("TRY_AGAIN_LATER"))}}}))}};
_.d.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var W,O;this.selectedHandle=(W=this.content)==null?void 0:(O=W.handleInput)==null?void 0:O.value}else this.selectedRadioIndex>=0&&((W=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(W==null?void 0:W.handle):this.selectedHandle=void 0)};
_.d.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.d.getRadioItem=function(W){if(this.radioButtonLength>W&&W>=0)return _.P(this.data.radioButton[W],rc7)};
_.Jq.Object.defineProperties(fj.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var W;return(((W=this.data)==null?void 0:W.radioButton)||[]).length}}});
fj.prototype.onSelectedHandleChanged=fj.prototype.onSelectedHandleChanged;fj.prototype.onSelectedHandleIndexChanged=fj.prototype.onSelectedHandleIndexChanged;fj.prototype.onDataChanged=fj.prototype.onDataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],fj.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],fj.prototype,"actionButtonOverride",void 0);_.t([_.C(),_.N("design:type",Object)],fj.prototype,"cancelButtonOverride",void 0);
_.t([_.C(),_.N("design:type",Object)],fj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],fj.prototype,"initialRadioIndex",void 0);_.t([_.C(),_.N("design:type",Number)],fj.prototype,"selectedRadioIndex",void 0);_.t([_.C(),_.N("design:type",String)],fj.prototype,"selectedHandle",void 0);_.t([_.C(),_.N("design:type",Object)],fj.prototype,"selectButtonDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],fj.prototype,"isLoading",void 0);
_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],fj.prototype,"radioButtonLength",null);_.t([_.El("ytd-handles-claiming-select-dialog-content"),_.N("design:type",Object)],fj.prototype,"content",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fj.prototype,"onDataChanged",null);
_.t([_.m5("selectedRadioIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fj.prototype,"onSelectedHandleIndexChanged",null);_.t([_.m5("selectedHandle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],fj.prototype,"onSelectedHandleChanged",null);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],fj.prototype,"darkerDarkTheme",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],fj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],fj.prototype,"ytRendererstamperBehavior",void 0);fj=_.t([_.G({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],fj);
_.H(fj,"ytd-handles-claiming-select-dialog-renderer",function(){if(Ro8!==void 0)return Ro8;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ro8=W},{mode:1});var KKU;var vY2;var Ga=function(){return _.n.apply(this,arguments)||this};
_.R(Ga,_.n);Ga.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ga.prototype,"data",void 0);Ga=_.t([_.G({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Ga);
_.H(Ga,"ytd-hotkey-dialog-section-option-renderer",function(){if(vY2!==void 0)return vY2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return vY2=W},{mode:1});var gY9;var Ho=function(){return _.n.apply(this,arguments)||this};
_.R(Ho,_.n);Ho.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ho.prototype,"data",void 0);Ho=_.t([_.G({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],Ho);
_.H(Ho,"ytd-hotkey-dialog-section-renderer",function(){if(gY9!==void 0)return gY9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return gY9=W},{mode:1});var tF=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(tF,_.n);tF.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],tF.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],tF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],tF.prototype,"darkerDarkTheme",void 0);tF=_.t([_.G({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],tF);
_.H(tF,"ytd-hotkey-dialog-content",function(){if(KKU!==void 0)return KKU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return KKU=W},{mode:1});var oYR;var $r=function(){return _.n.apply(this,arguments)||this};
_.R($r,_.n);$r.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W=document.querySelector("ytd-hotkey-dialog-content #scrollable");W&&(W.dialogElement=this.hostElement.parentElement)};
$r.prototype.onCloseTap=function(){_.jx(this.hostElement,"yt-close-popup-action")};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],$r.prototype,"data",void 0);$r=_.t([_.G({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],$r);
_.H($r,"ytd-hotkey-dialog-renderer",function(){if(oYR!==void 0)return oYR;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return oYR=W},{mode:1});var QCZ;var VL=function(){return _.n.apply(this,arguments)||this};
_.R(VL,_.n);VL.prototype.onYtServiceRequestError=function(){if(this.blocked){var W;var O=(W=this.data)==null?void 0:W.defaultServiceEndpoint}else{var b;O=(b=this.data)==null?void 0:b.toggledServiceEndpoint}var T;(O=(T=_.P(O,_.cNw))==null?void 0:T.onFailureAction)&&this.ytComponentBehavior.resolveCommand(O);this.updateBlockState(!this.blocked)};
VL.prototype.onYtToggleButton=function(W){this.updateBlockState(W.detail.toggled)};
VL.prototype.updateBlockState=function(W){if(W!==this.blocked){var O=this.blockedEntityKey;O&&this.ytdReduxBehavior.dispatch(_.AI("blockStateEntity",O,{key:O,blocked:W}));this.set("data.isToggled",W)}};
_.Jq.Object.defineProperties(VL.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)}}});
VL.prototype.onYtToggleButton=VL.prototype.onYtToggleButton;VL.prototype.onYtServiceRequestError=VL.prototype.onYtServiceRequestError;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],VL.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],VL.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],VL.prototype,"blockedEntityKey",void 0);
_.t([_.C({selectorArgs:["blockedEntityKey"],selector:function(W,O){return _.IJ(W.entities,"blockStateEntity",O)}}),
_.N("design:type",Object)],VL.prototype,"blockStateEntity",void 0);_.t([_.x("data","blockStateEntity"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],VL.prototype,"blocked",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VL.prototype,"onYtServiceRequestError",null);
_.t([_.ai("yt-toggle-button"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],VL.prototype,"onYtToggleButton",null);VL=_.t([_.G({is:"ytd-block-button",disableElementRegistration:!0})],VL);
_.H(VL,"ytd-block-button",function(){if(QCZ!==void 0)return QCZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return QCZ=W},
{mode:1});var kOZ;var sCD;var NK=function(){return _.n.apply(this,arguments)||this};
_.R(NK,_.n);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],NK.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],NK.prototype,"data",void 0);NK=_.t([_.G({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],NK);
_.H(NK,"ytd-kids-blocklist-picker-item-renderer",function(){if(sCD!==void 0)return sCD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return sCD=W},{mode:1});var MK=function(){return _.n.apply(this,arguments)||this};
_.R(MK,_.n);MK.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],MK.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],MK.prototype,"data",void 0);MK=_.t([_.G({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],MK);
_.H(MK,"ytd-kids-blocklist-picker-content",function(){if(kOZ!==void 0)return kOZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return kOZ=
W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var BTU;var uu=function(){var W=_.n.apply(this,arguments)||this;W.hasAnyRequestSucceeded=!1;W.hasAnyRequestFailed=!1;W.numPendingRequests=0;return W};
_.R(uu,_.n);_.d=uu.prototype;_.d.attached=function(){this.hostElement.setAttribute("dialog","")};
_.d.onDoneButtonTap=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.d.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.d.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.d.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.d.onPopupClosed=function(W){var O,b;if(((O=W.detail)==null?void 0:(b=O.popup)==null?void 0:b.is)==="tp-yt-paper-dialog"){var T;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((T=this.data)==null?0:T.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.cS(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
uu.prototype.onPopupClosed=uu.prototype.onPopupClosed;uu.prototype.onYtServiceRequestError=uu.prototype.onYtServiceRequestError;uu.prototype.onYtServiceRequestCompleted=uu.prototype.onYtServiceRequestCompleted;uu.prototype.onYtServiceRequestSent=uu.prototype.onYtServiceRequestSent;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],uu.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],uu.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],uu.prototype,"data",void 0);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uu.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uu.prototype,"onYtServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],uu.prototype,"onYtServiceRequestError",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],uu.prototype,"onPopupClosed",null);uu=_.t([_.G({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],uu);
_.H(uu,"ytd-kids-blocklist-picker-renderer",function(){if(BTU!==void 0)return BTU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return BTU=W},{mode:1});var rz5;var DT7;var JF=function(){return _.n.apply(this,arguments)||this};
_.R(JF,_.n);JF.prototype.setTip=function(W){var O=this;this.data&&(this.tip=Ph2(lCB.getInstance(),W,this.data),_.My(this,function(){_.bX(O.hostElement,"yt-refit")}))};
JF.prototype.clearTip=function(){this.tip=void 0};
JF.prototype.computeHidden=function(W){return!W};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],JF.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],JF.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.N("design:type",Boolean)],JF.prototype,"hidden",void 0);_.t([_.C(),_.N("design:type",Object)],JF.prototype,"tip",void 0);JF=_.t([_.G({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],JF);
_.H(JF,"ytd-menu-popup-tip-renderer",function(){if(DT7!==void 0)return DT7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);
return DT7=W},{mode:1});var xTg;var co=function(){var W=_.n.apply(this,arguments)||this;W.useIcons=!1;W.systemIcons=_.e("kevlar_system_icons");W.useListItemStyles=_.e("web_list_item_style_for_menu_items");return W};
_.R(co,_.n);_.d=co.prototype;_.d.onFocus=function(){var W;(W=_.Q(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.d.onTap=function(){var W=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(W&&_.P(W,_.I5))this.componentBehavior.resolveCommand(W),this.updateToggledStateInEntity();else if(W){this.componentBehavior.resolveCommand(W)||_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}});var O;((O=_.P(W,_.mM))==null?void 0:O.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.d.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.d.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.d.updateToggledStateInEntity=function(){var W=this.data.toggleMenuServiceItemEntityKey,O=!this.data.isToggled;W&&this.ytdReduxBehavior.dispatch(_.AI("toggleMenuServiceItemEntity",W,{key:W,isToggled:O}))};
_.d.computeIcon=function(W,O,b){return(W=W?b:O)&&W.iconType?_.Z6(W.iconType):""};
_.d.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.d.isIconActive=function(W){return!_.e("toggle_menu_active_icon_killswitch")&&W};
_.Jq.Object.defineProperties(co.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?0:W.isToggled)?(O=this.data)==null?void 0:O.toggledText:(b=this.data)==null?void 0:b.defaultText}}});
co.prototype.toggledStateEntityChanged=co.prototype.toggledStateEntityChanged;co.prototype.onYtServiceRequestCompleted=co.prototype.onYtServiceRequestCompleted;co.prototype.onTap=co.prototype.onTap;co.prototype.onFocus=co.prototype.onFocus;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],co.prototype,"componentBehavior",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],co.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],co.prototype,"useIcons",void 0);_.t([_.C({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.N("design:type",String)],co.prototype,"icon",void 0);
_.t([_.C({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(W,O){return _.IJ(W.entities,"toggleMenuServiceItemEntity",O)}}),
_.N("design:type",Object)],co.prototype,"toggleMenuServiceItemEntity",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],co.prototype,"systemIcons",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],co.prototype,"useListItemStyles",void 0);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],co.prototype,"onFocus",null);
_.t([_.x("data.isToggled"),_.N("design:type",Object),_.N("design:paramtypes",[])],co.prototype,"toggleButtonText",null);_.t([_.ai("tap"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],co.prototype,"onTap",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],co.prototype,"onYtServiceRequestCompleted",null);
_.t([_.m5("toggleMenuServiceItemEntity.isToggled","data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],co.prototype,"toggledStateEntityChanged",null);co=_.t([_.G({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],co);
_.H(co,"ytd-toggle-menu-service-item-renderer",function(){if(xTg!==void 0)return xTg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return xTg=W},{mode:1});var zoB;var Fz=function(){return _.n.apply(this,arguments)||this};
_.R(Fz,_.n);Fz.prototype.onFocus=function(){var W;(W=_.Q(this.hostElement).querySelector("tp-yt-paper-item"))==null||W.focus()};
_.Jq.Object.defineProperties(Fz.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.l7(this.data.iconUrl)}}});
Fz.prototype.onFocus=Fz.prototype.onFocus;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Fz.prototype,"rendererBehavior",void 0);_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],Fz.prototype,"ytEndpointBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Fz.prototype,"data",void 0);_.t([_.ai("focus"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Fz.prototype,"onFocus",null);
_.t([_.x("data.iconUrl"),_.N("design:type",Object),_.N("design:paramtypes",[])],Fz.prototype,"imageSource",null);Fz=_.t([_.G({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Fz);
_.H(Fz,"ytd-menu-custom-icon-item-renderer",function(){if(zoB!==void 0)return zoB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return zoB=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});_.O1(_.ve,"yt-list-item-view-model",{props:{data:_.te,isMenuItem:_.te,isCompact:_.te,onTap:_.Ws,trailingAccessory:_.Ws,hideSelectionTextChevron:_.te,disabled:_.te,inPopup:_.te,disableHorizontalPadding:_.te,isOverlay:_.te}});var yL=function(){var W=_.n.apply(this,arguments)||this;W.disableBackdropFilter=_.e("web_disable_backdrop_filter");return W};
_.R(yL,_.n);_.d=yL.prototype;
_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.d.computeAriaLabel=function(W){return W};
_.d.onPopupOpened=function(){this.items.selected=0;for(var W=_.S(_.Q(this.items).children),O=W.next();!O.done;O=W.next())O.value.popupPositionTarget=this.positionTarget;if(W=this.popupTip||void 0)W.setTip(this.source||""),this.source=void 0;this.veData&&(W=_.Bb())&&_.t3(W,[this.veData])};
_.d.onPopupClosed=function(){var W=this.popupTip||void 0;W&&W.clearTip()};
_.d.onIronActivate=function(W){this.shouldPersist(W)||_.jx(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(W=_.Bb())&&_.Vw(W,this.veData)};
_.d.shouldPersist=function(W){var O,b;if(((O=W.detail)==null?void 0:O.selected)===void 0||(b=this.data)==null||!b.items)return!1;var T,L;return!((L=(T=this.data.items[W.detail.selected])==null?void 0:T.toggleMenuServiceItemRenderer)==null||!L.persistentOnMenuPopup)};
_.d.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(W){return W.menuNavigationItemRenderer?!!W.menuNavigationItemRenderer.icon:W.menuServiceItemRenderer?!!W.menuServiceItemRenderer.icon:W.menuConditionalServiceItemRenderer?!!W.menuConditionalServiceItemRenderer.icon:W.menuConditionalNavigationItemRenderer?!!W.menuConditionalNavigationItemRenderer.icon:W.toggleMenuServiceItemRenderer?!!W.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
yL.prototype.onPopupClosed=yL.prototype.onPopupClosed;yL.prototype.onPopupOpened=yL.prototype.onPopupOpened;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],yL.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],yL.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],yL.prototype,"veData",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.N("design:type",String)],yL.prototype,"ariaLabel",void 0);_.t([_.C({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],yL.prototype,"useIcons",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],yL.prototype,"disableBackdropFilter",void 0);_.t([_.El("#items"),_.N("design:type",Object)],yL.prototype,"items",void 0);_.t([_.El("ytd-menu-popup-tip-renderer"),_.N("design:type",Object)],yL.prototype,"popupTip",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yL.prototype,"onPopupOpened",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],yL.prototype,"onPopupClosed",null);yL=_.t([_.G({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],yL);
_.H(yL,"ytd-menu-popup-renderer",function(){if(rz5!==void 0)return rz5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return rz5=W},{mode:1});var Cd2;var qAU=_.J1(function(W){W=_.um(W,{icon:void 0});var O=W.data;W=W.icon;var b=function(){return O().iconBadgeText},T={},L=_.YS("yt-spec-icon-badge-shape",function(){a:switch(O().iconBadgeType){case "notification":var h="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":h="yt-spec-icon-badge-shape--type-cart";break a;default:h=""}return h},function(){a:switch(O().iconBadgeStyle){case "overlay":var h="yt-spec-icon-badge-shape--style-overlay";
break a;default:h=""}return h},(T["yt-spec-icon-badge-shape--text-size-small"]=function(){var h=b();
return!!((h==null?0:h.length)&&h.length>2)},T));
return _.E("yt-icon-badge-shape",null,_.E(_.U,{cond:W,then:function(h){return _.E("div",{class:L},_.E("div",{class:"yt-spec-icon-badge-shape__icon"},_.E(_.Ps,{icon:h})),_.E(_.U,{cond:b,then:function(Z){return _.E("div",{class:"yt-spec-icon-badge-shape__badge"},Z)}}))}}))},"ig");
qAU.idomCompat=!0;_.O1(qAU,"yt-icon-badge-shape",{props:{data:_.te,icon:_.te}});var Wn=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};W.unseenCount=0;W.isOverlay=!1;return W};
_.R(Wn,_.n);_.d=Wn.prototype;_.d.attached=function(){var W=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(O){W.onServiceWorkerMessage(O)})};
_.d.onDataChanged=function(){this.isAttached&&!this.JSC$18242_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18242_lastData=this.data};
_.d.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.computeIcon=function(){var W,O;return(W=this.data)==null?void 0:(O=W.icon)==null?void 0:O.iconType};
_.d.onServiceWorkerMessage=function(W){W.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.d.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.P(this.data.updateUnseenCountEndpoint,_.mM)&&_.P(this.data.updateUnseenCountEndpoint,_.mM).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.d.handleUpdateNotificationsUnseenCountAction=function(W){var O=this;W=_.P(W,R4Z);W!=null&&W.unseenCount&&W.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(W.unseenCount),_.sF.addLowPriorityJob(function(){O.data.updateUnseenCountEndpoint&&O.ytComponentBehavior.resolveCommand(O.data.updateUnseenCountEndpoint)},W.timeoutMs))};
_.d.onClick=function(){_.bX(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var W=_.TU(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),O=this.data.menuRequest;W&&W.length===1&&W[0]?_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):O&&this.ytComponentBehavior.resolveCommand(O)};
_.d.handleTopbarMenuClosedAction=function(W){W==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.d.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
_.d.sendUnseenCountRequest=function(W){var O=this;_.KB(_.sF,function(){O.ytComponentBehavior.resolveCommand(W)})};
_.d.updateCountUI=function(W){this.set("unseenCount",W<9?W:"9+")};
_.Jq.Object.defineProperties(Wn.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
Wn.prototype.handleUpdateNotificationsUnseenCountAction=Wn.prototype.handleUpdateNotificationsUnseenCountAction;Wn.prototype.onDataChanged=Wn.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Wn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Wn.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.tW),_.N("design:type",Object)],Wn.prototype,"ytdOpenPopupBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Wn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Wn.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Wn.prototype,"unseenCount",void 0);_.t([_.C(),_.N("design:type",Object)],Wn.prototype,"isOverlay",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],Wn.prototype,"showTooltips",void 0);_.t([_.El("yt-icon-button"),_.N("design:type",Object)],Wn.prototype,"iconButton",void 0);
_.t([_.x("unseenCount"),_.N("design:type",Object),_.N("design:paramtypes",[])],Wn.prototype,"showNotificationCount",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Wn.prototype,"onDataChanged",null);_.t([_.ai("yt-update-notifications-unseen-count-action"),_.N("design:type",Function),_.N("design:paramtypes",[Object]),_.N("design:returntype")],Wn.prototype,"handleUpdateNotificationsUnseenCountAction",null);
Wn=_.t([_.G({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],Wn);
_.H(Wn,"ytd-notification-topbar-button-renderer",function(){if(Cd2!==void 0)return Cd2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Cd2=W},{mode:_.Lb("kevlar_poly_si_batch_j025")?1:2});var nYN;var Ou=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return W};
_.R(Ou,_.n);Ou.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}}}}}};
Ou.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Ou.prototype.onDarkModeToggled=function(W){this.dark=W};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ou.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ou.prototype,"data",void 0);_.t([_.C({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],Ou.prototype,"dark",void 0);
Ou=_.t([_.G({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Ou);
_.H(Ou,"yt-pdg-buy-flow-header-renderer",function(){if(nYN!==void 0)return nYN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return nYN=W},{mode:1});var fs5;var GO1;var iz=function(){var W=_.n.apply(this,arguments)||this;W.immediateValue=0;W.isDarkTheme=!1;W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(iz,_.n);_.d=iz.prototype;_.d.created=function(){_.zi.requestAvailability()};
_.d.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.d.dataChanged=function(){var W=_.Q(this.hostElement).querySelector("#color-slider");W.immediateValue&&this.updateSliderKnobAndGradientStyles(W.immediateValue);this.data.notches[0].knobColorArgb&&_.Sl(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.C_(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Cv("HTML_DIR")==="rtl"&&_.Q(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.d.onSliderImmediateChange=function(){var W=_.Q(this.hostElement).querySelector("#color-slider");W.dragging&&(W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue)),this.updateSliderAria())};
_.d.onSliderChange=function(){var W=_.Q(this.hostElement).querySelector("#color-slider");W.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(W.immediateValue),this.updateSliderKnobAndGradientStyles(W.immediateValue));this.updateSliderAria()};
_.d.updateSliderAria=function(){var W=_.Q(this.hostElement).querySelector("#color-slider"),O=_.Q(this.hostElement).querySelector("#color-slider");O=_.NX(this.data.notches[O.immediateValue].tierValue);_.B2()&&_.bX(this.hostElement,"iron-announce",{text:O});W.setAttribute("aria-valuetext",O)};
_.d.updateSuperThanksSelectedTierEntity=function(W){if(W!==this.immediateValue){var O,b,T=this==null?void 0:(O=this.data)==null?void 0:(b=O.superThanksSelectedTierEntity)==null?void 0:b.key;T&&T.length>0&&this.ytdReduxBehavior.dispatch(_.AI("superThanksSelectedTierEntity",T,{key:T,index:W}))}};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.updateSliderKnobAndGradientStyles=function(W){this.immediateValue=W;W=this.data.notches[W];if(W==null?0:W.knobColorArgb)var O={"--ytd-pdg-color-slider-knob-color":_.C_(W.knobColorArgb)};(W==null?0:W.linearGradientCssStyle)&&O!==null&&(O=Object.assign({},O,{"--ytd-pdg-color-slider-active-color":W==null?void 0:W.linearGradientCssStyle}));O!==null&&_.Sl(this.hostElement,O)};
iz.prototype.onSliderChange=iz.prototype.onSliderChange;iz.prototype.onSliderImmediateChange=iz.prototype.onSliderImmediateChange;iz.prototype.dataChanged=iz.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],iz.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],iz.prototype,"immediateValue",void 0);_.t([_.C(),_.N("design:type",Number)],iz.prototype,"maxMarkers",void 0);
_.t([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U89}),_.N("design:type",Object)],iz.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],iz.prototype,"isDarkTheme",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"dataChanged",null);
_.t([_.ai("immediate-value-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"onSliderImmediateChange",null);_.t([_.ai("change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],iz.prototype,"onSliderChange",null);iz=_.t([_.G({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],iz);
_.H(iz,"ytd-pdg-color-slider-renderer",function(){if(GO1!==void 0)return GO1;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return GO1=W},{mode:1});var H1N;var tUD;var bz=null;
_.v_({is:"ytd-comment-input",_template:function(){if(tUD!==void 0)return tUD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return tUD=W},
behaviors:[_.yzX.YtHostElementBehavior,_.wc,_.x_.YtComponentBehavior,_.y4.YtRendererstamperBehavior,_.nZU.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 _.rw}},
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",_.Ii(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;_.Lg();this.focus()},
detached:function(){document.removeEventListener("tap",_.Ii(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(W){W=W.detail;W=W.isCustomEmoji?W.shortcuts[0]:W.emojiId;var O=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(O,W);this.maybeUpdateTextDirection_();_.bX(this.hostElement,"input")},
getInputRange_:function(){var W=_.AT();if(W){W=W.getBrowserRangeObject();for(var O=W.commonAncestorContainer;O;){if(O===this.getEditableTextArea_())return W;O=O.parentNode}}W=this.getEditableTextArea_();W=_.QF(W,W.childNodes.length);W.select();return W.getBrowserRangeObject()},
insertTextWithEmojis_:function(W,O,b){(O=this.emojiManager.createDocumentFragment(O,!0,!1,b===void 0?!0:b))&&O.childNodes.length!==0&&(W.collapsed||W.deleteContents(),b=O.lastChild,W.insertNode(O),_.lM5(b).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var W=_.AT();if(W){var O=W.JSC$9251_getStartNode(),b=W.JSC$9251_getEndNode();if(YOk(O)&&YOk(b)){var T=W.JSC$9251_getStartOffset(),L;if(_.h$&&O.nodeType===Node.ELEMENT_NODE&&(L=_.rX7(O)))_.QF(L,0).select();else{L=cE(O)?O:_.sM(O,cE);var h=cE(b)?b:_.sM(b,cE);if(L||h)if(W.isCollapsed()){if(O.nodeType===Node.TEXT_NODE){W=!0;T===O.length&&(W=!1);if(bz==="end"||bz==="right")W=!1;O=O.parentNode;W=[].concat(_.PG(O.parentNode.childNodes)).indexOf(O)+(W?0:1);_.QF(O.parentNode,W).select()}}else L?
L.previousSibling&&L.previousSibling.length>0?_.k8(b,W.JSC$9251_getEndOffset(),L.previousSibling,L.previousSibling.length-1).select():(O=document.createTextNode("\u200b"),L.parentNode.insertBefore(O,L),_.k8(b,W.JSC$9251_getEndOffset(),O,0).select()):h&&(h.nextSibling&&h.nextSibling.length>0?_.k8(O,W.JSC$9251_getStartOffset(),h.nextSibling,1).select():(b=document.createTextNode("\u200b"),h.parentNode.insertBefore(b,h.nextSibling),_.k8(O,W.JSC$9251_getStartOffset(),b,b.length).select()));bz=null}}else bz=
null}else bz=null},
leftKeyPressed_:function(){bz="left"},
rightKeyPressed_:function(){bz="right"},
endKeyPressed_:function(){bz="end"},
maybeDeleteChip_:function(){var W=lMB(!0);if(W){var O=_.AT(),b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();_.R3(b,O,W,W.childNodes.length).select()}},
maybeBackspaceChip_:function(){var W=lMB(!1);if(W){var O=_.AT(),b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();_.R3(b,O,W,0).select()}},
maybeBackspaceChipWordMode_:function(W){var O=_.AT();if(O.isCollapsed()){var b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();var T=e$k(b,O,!0);T&&(_.R3(b,O,T,0).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(W){var O=_.AT();if(O.isCollapsed()){var b=O.JSC$9251_getStartNode();O=O.JSC$9251_getStartOffset();var T=e$k(b,O,!1);T&&(_.R3(b,O,T,T.childNodes.length).select(),document.execCommand("delete"),W.preventDefault(),W.stopImmediatePropagation())}},
onContentClick:function(W){W.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(W){W.defaultPrevented||W.currentTarget.tagName==="YTD-COMMENT-INPUT"&&cE(W.target)&&W.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Q(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Q(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(W,O){W=wgR(W,this.emojiManager,O).cloneNode(!0);for(O=W.firstChild;O;)if(O.nodeType!==1)O=O.nextSibling;else switch(O.tagName){case "BR":var b=_.P1();_.GX5(b,O);O=b.nextSibling;break;case "DIV":(b=O.lastChild)&&O.nextSibling&&_.v1(_.P1(),b);O.previousSibling&&(O.previousSibling.nodeType===1||O.previousSibling.nodeType===3&&!O.previousSibling.textContent.endsWith("\n"))&&_.K4(_.P1(),O);b&&b.nodeName==="BR"&&_.Xu(b);b=O;O.hasChildNodes()?(O=O.firstChild,
_.HEq(b)):(O=O.nextSibling,_.Xu(b));break;default:O=O.nextSibling}return PX5(W)},
setTextAreaValue:function(W){W||(W="");var O=this.getEditableFormattedString_();O.text="";this.getEditableTextArea_().innerText="";typeof W==="string"&&(W={runs:[{text:W}]});O.text=W},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();bz=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var W=this.getEditableTextArea_();W&&(_.QF(W,W.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Cv("HTML_DIR")==="rtl"){var W=this.getEditableTextArea_(),O=this.getTextAreaValue()!==""?"auto":"rtl";W.setAttribute("dir",O)}},
handleInputEvent_:function(){var W=null;if(this.isEmojiButtonDisplayed){var O=this.getInputRange_();O&&(W=this.emojiInput.retrieveTextBeforeRange(O))}this.insertText_(W,!0);this.updateCharCount_();W=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=W.scrollHeight>W.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var W=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:W})},
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(W){this.isEmojiButtonDisplayed&&(W.preventDefault(),W.stopImmediatePropagation(),W=W.clipboardData.getData("text/plain"),this.insertText_(W,!1,!1),_.bX(this.hostElement,"input"))},
insertText_:function(W,O,b){O=O===void 0?!1:O;b=b===void 0?!0:b;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&W){var T=this.getInputRange_().cloneRange();this.emojiManager&&T&&(O&&this.emojiInput.offsetStartOfRangeBy(T,W.length),this.insertTextWithEmojis_(T,W,b),E0D(this.getEditableTextArea_().lastChild)||(T=this.getInputRange_().cloneRange()),T&&(this.emojiInput.updateSuggestions(T,W),this.updateSuggestionOffset_(T)))}},
getSimpleString:_.NX,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(W){return W?"focused":"not-focused"},
computePlaceholderText_:function(W){return this.getSimpleString(W)},
computeEditableText_:function(W){return this.getSimpleString(W)},
onPrefilledContentDismissed_:function(W){W.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(W,O){W?this.fire("yt-autonav-pause-focus"):O!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(W){var O=this.getEditableTextArea_();[].concat(_.PG(W.dataTransfer.items)).forEach(function(b){b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(T){O.appendChild(document.createTextNode(T))})});
W.preventDefault()},
preventDefault_:function(W){W.preventDefault()},
onSuggestionInsert_:function(W){this.insertTextWithEmojis_(W.detail.range,W.detail.text)},
onEmojiSuggestionClick_:function(W){this.emojiInput.insertSuggestion(W.detail)},
updateSuggestionOffset_:function(W){if(this.emojiInput&&_.Q(this.emojiInput).querySelector("#dropdown")){var O=this.getEditableTextArea_().getBoundingClientRect().bottom,b=W.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(O-b)+5;O=this.getEditableTextArea_().getBoundingClientRect().left;W=W.getBoundingClientRect().left-O;_.Q(this.emojiInput).querySelector("#dropdown").style.marginLeft=W+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.z7("yt-post"));return this.localStorage}});var ji=function(){var W=_.n.apply(this,arguments)||this;W.currentCommentOptionIndex=0;W.isEmojiPickerDisplayed=!1;W.emojiManager=_.rw;W.isUgcEmpty=!1;W.userGeneratedCommentChangedHandler=function(){_.bX(W.hostElement,"ytd-pdg-user-generated-comment-changed");W.isEmojiYtdCommentInputEnabled&&(W.isUgcEmpty=!W.ytdCommentInputEl.getTextAreaValue())};
W.pasteHandler=function(O){O.preventDefault();O.stopImmediatePropagation();var b;if(O=(b=O.clipboardData)==null?void 0:b.getData("text/plain"))b=document.getSelection().getRangeAt(0),b.collapsed||b.deleteContents(),O=document.createTextNode(O),b.insertNode(O),b.selectNodeContents(O),b.collapse(!1),O=window.getSelection(),O.removeAllRanges(),O.addRange(b)};
W.onDocumentClick=function(O){if(W.isEmojiPickerDisplayed){var b,T,L;!(O.target instanceof Node)||(b=O.composedPath())!=null&&b.includes(W.editableTextEl)||(T=O.composedPath())!=null&&T.includes(W.emojiButtonEl)||(L=O.composedPath())!=null&&L.includes(W.emojiPickerEl)||(W.isEmojiPickerDisplayed=!1)}};
return W};
_.R(ji,_.n);_.d=ji.prototype;_.d.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.d.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.d.detached=function(){var W;(W=this.contentEl)==null||W.removeEventListener("input",this.userGeneratedCommentChangedHandler);var O;(O=this.contentEl)==null||O.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.d.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.d.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var W;this.contentEl.textContent=this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.d.reloadEmojis=function(){this.emojiPickerEl&&_.P(this.emojiPicker,_.hf7)&&this.emojiPickerEl.updateEmojiCategories()};
_.d.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Sl(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.d.handleBackgroundColorStyling=function(){var W;if((W=this.currentCommentOption)==null?0:W.commentBackgroundColorArgb){var O;_.Sl(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.C_((O=this.currentCommentOption)==null?void 0:O.commentBackgroundColorArgb)})}else _.Sl(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.d.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var W;(W=this.contentEl)==null||W.focus()}};
_.d.onEditButtonClick=function(W){var O=document.getSelection();O&&this.contentEl&&(W.stopPropagation(),W.preventDefault(),O.selectAllChildren(this.contentEl),O.collapseToEnd())};
_.d.onContentDrop=function(W){var O=this;if(W.dataTransfer){W=_.S(W.dataTransfer.items);for(var b=W.next();!b.done;b=W.next())b=b.value,b.kind==="string"&&b.type.match("^text/plain")&&b.getAsString(function(T){var L;(L=O.contentEl)==null||L.appendChild(document.createTextNode(T))})}};
_.d.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.d.getUserGeneratedCommentText=function(){var W,O=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(W=this.contentEl)==null?void 0:W.textContent;return O?O.trim():""};
_.d.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.d.onEmojiSelect=function(W){this.ytdCommentInputEl.onEmojiSelect(W)};
_.Jq.Object.defineProperties(ji.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.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 W;return!((W=this.currentCommentOption)==null||!W.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(_.P((W=this.currentCommentOption)==null?void 0:W.chipRenderer,_.lR7)){var O;return _.P((O=this.currentCommentOption)==null?void 0:O.chipRenderer,_.lR7)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var W,O;return((W=this.data)==null?0:W.commentOptionRenderers)?_.P((O=this.data)==null?void 0:O.commentOptionRenderers[this.superThanksSelectedTierEntity.index],cc9):void 0}var b,T;return((b=this.data)==null?0:b.commentOptionRenderers)?_.P((T=this.data)==null?void 0:T.commentOptionRenderers[this.currentCommentOptionIndex],cc9):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var W;return this.rendererBehavior.getSimpleString((W=this.data)==null?void 0:W.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.commentDialog,_.WD7))==null?void 0:O.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.commentDialog,_.WD7))==null?void 0:O.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=_.P((W=this.data)==null?void 0:W.commentDialog,_.WD7))==null?void 0:O.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(O=_.P((W=this.data)==null?void 0:W.commentDialog,_.WD7))==null?void 0:O.emojiPicker;if(!_.P(b,_.hf7)||!_.P(b,_.hf7).categories)return!1;W=function(h){return h.emojiPickerCategoryRenderer?h.emojiPickerCategoryRenderer.emojiIds&&h.emojiPickerCategoryRenderer.emojiIds.length>0:h.emojiPickerUpsellCategoryRenderer?h.emojiPickerUpsellCategoryRenderer.emojis&&h.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var T,L;return((T=_.P(b,_.hf7))==null?0:(L=T.categories)==null?0:L.find(W))?!0:!1}}});
ji.prototype.onEmojiSelect=ji.prototype.onEmojiSelect;ji.prototype.dataChanged=ji.prototype.dataChanged;ji.prototype.currentCommentOptionChanged=ji.prototype.currentCommentOptionChanged;_.t([_.D(_.sh),_.N("design:type",Object)],ji.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ji.prototype,"rendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ji.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.El("#content-dom-if"),_.N("design:type",_.oi)],ji.prototype,"contentDomIfEl",void 0);_.t([_.El("#content-no-emojis"),_.N("design:type",HTMLElement)],ji.prototype,"contentEl",void 0);_.t([_.El("#container"),_.N("design:type",HTMLElement)],ji.prototype,"containerEl",void 0);_.t([_.El("#comment-chip-container"),_.N("design:type",HTMLElement)],ji.prototype,"paidCommentChipContainerEl",void 0);_.t([_.El("#text-input"),_.N("design:type",HTMLElement)],ji.prototype,"editableTextEl",void 0);
_.t([_.El("#emoji-button"),_.N("design:type",HTMLElement)],ji.prototype,"emojiButtonEl",void 0);_.t([_.El("#emoji-picker > yt-emoji-picker-renderer"),_.N("design:type",Object)],ji.prototype,"emojiPickerEl",void 0);_.t([_.El("#text-input > ytd-comment-input"),_.N("design:type",Object)],ji.prototype,"ytdCommentInputEl",void 0);_.t([_.C(),_.N("design:type",Object)],ji.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ji.prototype,"currentCommentOptionIndex",void 0);
_.t([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U89}),_.N("design:type",Object)],ji.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.C(),_.N("design:type",Object)],ji.prototype,"isEmojiPickerDisplayed",void 0);_.t([_.C(),_.N("design:type",Object)],ji.prototype,"emojiManager",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],ji.prototype,"isUgcEmpty",void 0);
_.t([_.m5("currentCommentOption"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ji.prototype,"currentCommentOptionChanged",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ji.prototype,"dataChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ji.prototype,"isEmojiYtdCommentInputEnabled",null);
_.t([_.x("data.title"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"title",null);_.t([_.x("data.authorText"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"channelName",null);_.t([_.x("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ji.prototype,"shouldShowPaidCommentChipRenderer",null);
_.t([_.x("data.commentOptionRenderers","currentCommentOption"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"paidCommentChipRenderer",null);_.t([_.x("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"currentCommentOption",null);
_.t([_.x("data.defaultCommentText","superThanksSelectedTierEntity"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"commentText",null);_.t([_.x("data.placeholderText"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"placeholderText",null);_.t([_.x("data.commentDialog.commentDialogRenderer.editableText"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"editableText",null);
_.t([_.x("data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"emojiButton",null);_.t([_.x("data.commentDialog.commentDialogRenderer.emojiPicker"),_.N("design:type",Object),_.N("design:paramtypes",[])],ji.prototype,"emojiPicker",null);
_.t([_.x("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],ji.prototype,"isEmojiButtonDisplayed",null);_.t([_.ai("yt-emoji-select"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],ji.prototype,"onEmojiSelect",null);ji=_.t([_.G({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],ji);
_.H(ji,"ytd-pdg-comment-preview-renderer",function(){if(H1N!==void 0)return H1N;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return H1N=W},{mode:2});var $T1;var TA=function(){var W=_.n.apply(this,arguments)||this;W.selected=!1;return W};
_.R(TA,_.n);_.d=TA.prototype;_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.d.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.d.dataChanged=function(){this.data&&(_.T0(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Sl(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.C_(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.C_(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.d.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.d.onClick=function(){this.logClick()};
_.d.onKeyboardSelect=function(){_.bX(this.hostElement,"tap");this.onClick()};
_.d.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
TA.prototype.onClick=TA.prototype.onClick;TA.prototype.selectedChanged=TA.prototype.selectedChanged;TA.prototype.dataChanged=TA.prototype.dataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],TA.prototype,"componentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wc),_.N("design:type",Object)],TA.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.D(_.G0),_.N("design:type",Object)],TA.prototype,"ironSelectableBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],TA.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],TA.prototype,"shownThumbnail",void 0);_.t([_.C(),_.N("design:type",Object)],TA.prototype,"basePriceText",void 0);_.t([_.C(),_.N("design:type",Object)],TA.prototype,"purchaseCommand",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],TA.prototype,"selected",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TA.prototype,"dataChanged",null);_.t([_.m5("selected"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TA.prototype,"selectedChanged",null);_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],TA.prototype,"onClick",null);
TA=_.t([_.G({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],TA);
_.H(TA,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if($T1!==void 0)return $T1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return $T1=W},{mode:1});var LT=function(){var W=_.n.apply(this,arguments)||this;W.selectedItemIndex=0;W.buyButtonDisabled=!1;return W};
_.R(LT,_.n);_.d=LT.prototype;
_.d.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]]"}}}}}};
_.d.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var W;var O=(W=_.P(this.data.colorSlider,Jc1))==null?void 0:W.notches[this.selectedItemIndex].purchaseCommand}else{var b;O=(b=_.P(this.data.selectableItemButtons[this.selectedItemIndex],yc7))==null?void 0:b.purchaseCommand}if(O){W=_.P(O,_.c6N);W.productData||(W.productData={});var T;W.productData={pdgData:{commentMessageText:(T=this.commentPreviewRenderer)==null?void 0:T.getUserGeneratedCommentText()}};
_.bX(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(O)}}};
_.d.dataChanged=function(){if(this.data){_.rw.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.U3H(_.rw,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.rw.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var W;this.buyButtonDisabled=!((W=_.P(this.data.commentPreview,FFZ))==null||!W.placeholderText);this.updatePriceSelectorStatus();var O;if((O=this.data)==null?0:O.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;W=[];this.data.preloadImages&&(W=this.data.preloadImages);
W=W.map(function(b){return _.bn(b.thumbnails,1920)});
W=_.S(W);for(O=W.next();!O.done;O=W.next())(O=O.value)&&_.UR2(O).thenCatch(function(){_.z5(Error("kl"))})}};
_.d.superThanksSelectedTierEntityChanged=function(){var W;(this==null?void 0:(W=this.superThanksSelectedTierEntity)==null?void 0:W.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.d.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.d.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Q(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Q(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Q(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Q(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.d.closeBuyFlow=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.d.onUserGeneratedContentChanged=function(){var W;this.buyButtonDisabled=!((W=this.commentPreviewRenderer)==null?0:W.getUserGeneratedCommentText())};
_.d.updateSelectedItemIndexFromBinding=function(W){this.selectedItemIndex=W.detail.value};
_.Jq.Object.defineProperties(LT.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var W;return!((W=this.data)==null||!W.disclaimerText)}}});
LT.prototype.onUserGeneratedContentChanged=LT.prototype.onUserGeneratedContentChanged;LT.prototype.closeBuyFlow=LT.prototype.closeBuyFlow;LT.prototype.selectedItemIndexChanged=LT.prototype.selectedItemIndexChanged;LT.prototype.superThanksSelectedTierEntityChanged=LT.prototype.superThanksSelectedTierEntityChanged;LT.prototype.dataChanged=LT.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],LT.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],LT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],LT.prototype,"selectedItemIndex",void 0);_.t([_.C(),_.N("design:type",Boolean)],LT.prototype,"isColorSlider",void 0);
_.t([_.C(),_.N("design:type",Object)],LT.prototype,"buyButtonDisabled",void 0);_.t([_.C({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U89}),_.N("design:type",Object)],LT.prototype,"superThanksSelectedTierEntity",void 0);_.t([_.El("ytd-pdg-comment-preview-renderer"),_.N("design:type",Object)],LT.prototype,"commentPreviewRenderer",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],LT.prototype,"ytdReduxBehavior",void 0);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LT.prototype,"dataChanged",null);_.t([_.m5("superThanksSelectedTierEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LT.prototype,"superThanksSelectedTierEntityChanged",null);_.t([_.m5("selectedItemIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LT.prototype,"selectedItemIndexChanged",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LT.prototype,"closeBuyFlow",null);_.t([_.ai("ytd-pdg-user-generated-comment-changed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],LT.prototype,"onUserGeneratedContentChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],LT.prototype,"isDisclaimerTextShown",null);
LT=_.t([_.G({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],LT);
_.H(LT,"yt-super-vod-buy-flow-content-renderer",function(){if(fs5!==void 0)return fs5;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return fs5=W},{mode:1});var VU8;var d$=function(){var W=_.n.apply(this,arguments)||this;W.lottieAnimationRef={};return W};
_.R(d$,_.n);_.d=d$.prototype;_.d.created=function(){_.zi.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.Ii(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.d.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.bX(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.d.detached=function(){this.autoCloseJobId&&_.sF.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.Ii(this,this.onPopupIronOverlayOpened))};
_.d.dataChanged=function(){var W=this;this.data&&this.data.autoCloseDelay&&(_.jx(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.dd(_.sF,function(){W.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Sl(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.d.onDOMLoadedLottie=function(){var W=this,O,b,T=Number((O=this.data)==null?void 0:(b=O.autoCloseDelay)==null?void 0:b.seconds)||0;this.fadeOutJobId=_.dd(_.sF,function(){W.lottiePlayerEl.classList.add("fadeout")},(T-.25)*1E3);
this.autoCloseJobId=_.dd(_.sF,function(){W.closePopup()},T*1E3)};
_.d.openPopup=function(){this.ironOverlayBehavior.open()};
_.d.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.jx(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.Sx(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.iq().resolve(_.bq).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.sF.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.sF.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.d.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var W,O;(W=this.lottieAnimationRef)==null||(O=W.lottieEl)==null||O.destroy();W=this.data.lottie;var b,T;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:W.url+"_"+Math.random(),path:W.url,autoplay:!0,loop:(T=(b=W.settings)==null?void 0:b.loop)!=null?T:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Jq.Object.defineProperties(d$.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var W,O;return!!((W=this.data)==null?0:(O=W.lottie)==null?0:O.url)}}});
d$.prototype.maybeInitializeLottie=d$.prototype.maybeInitializeLottie;d$.prototype.dataChanged=d$.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],d$.prototype,"rendererBehavior",void 0);_.t([_.D(_.Gi),_.N("design:type",Object)],d$.prototype,"ironOverlayBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],d$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],d$.prototype,"lottiePlayerProps",void 0);
_.t([_.C(),_.N("design:type",Object)],d$.prototype,"lottieAnimationRef",void 0);_.t([_.El("ytd-lottie-player"),_.N("design:type",HTMLElement)],d$.prototype,"lottiePlayerEl",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d$.prototype,"dataChanged",null);_.t([_.x("data"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],d$.prototype,"hasLottieAnimation",null);
_.t([_.m5("data.lottie.url"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],d$.prototype,"maybeInitializeLottie",null);d$=_.t([_.G({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],d$);
_.H(d$,"ytd-desktop-image-overlay-renderer",function(){if(VU8!==void 0)return VU8;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return VU8=W},{mode:1});var NTU;var ha=function(){return _.n.apply(this,arguments)||this};
_.R(ha,_.n);_.d=ha.prototype;_.d.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"}}}}};
_.d.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",_.Ii(this,this.closePopup))};
_.d.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ii(this,this.closePopup))};
_.d.dataChanged=function(){_.TU(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.P(this.data.header,ueN)&&(this.hasBackgroundBanner=!!_.P(this.data.header,ueN).backgroundBanner)};
_.d.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.Ii(this,this.closePopup))};
_.d.closePopup=function(){this.data&&this.data.onCloseCommand&&_.da(this.hostElement,[this.data.onCloseCommand])};
ha.prototype.handleBuyflowSelectionSubmitted=ha.prototype.handleBuyflowSelectionSubmitted;ha.prototype.dataChanged=ha.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ha.prototype,"data",void 0);
_.t([_.C({value:!0,reflectToAttribute:!0}),_.N("design:type",Boolean)],ha.prototype,"hasBackgroundBanner",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ha.prototype,"dataChanged",null);_.t([_.ai("yt-pdg-buy-flow-selection-submitted"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ha.prototype,"handleBuyflowSelectionSubmitted",null);
ha=_.t([_.G({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],ha);
_.H(ha,"ytd-pdg-buy-flow-renderer",function(){if(NTU!==void 0)return NTU;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return NTU=W},{mode:1});var MUZ;var Si=function(){var W=_.n.apply(this,arguments)||this;W.isOpen=!1;W.isPlaylistCreated=!1;return W};
_.R(Si,_.n);_.d=Si.prototype;_.d.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.d.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.bX(this.hostElement,"yt-refit")};
_.d.onCreateTap=function(){var W=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.da(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(O,b){if(!_.e("killswitch_ep_in_create_playlist_response")&&(b==null?0:b.actions))for(O=_.S(b.actions),b=O.next();!b.done;b=O.next())b=b.value,_.P(b,_.od)&&W.ytComponentBehavior.resolveCommand(b)}}]),this.isPlaylistCreated=!0)};
_.d.onKeydown=function(W){if(W.keyCode===13)this.onCreateTap()};
_.d.onServiceRequestCompleted=function(W){W.stopPropagation();_.jx(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.d.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
Si.prototype.onServiceRequestCompleted=Si.prototype.onServiceRequestCompleted;Si.prototype.onKeydown=Si.prototype.onKeydown;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Si.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Si.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Si.prototype,"isOpen",void 0);
_.t([_.C(),_.N("design:type",Object)],Si.prototype,"isPlaylistCreated",void 0);_.t([_.C({value:{REQUIRED_LABEL:_.EO("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.EO("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],Si.prototype,"addToStrings",void 0);_.t([_.C({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.N("design:type",Array)],Si.prototype,"privacyBadge",void 0);
_.t([_.El("#privacy-input"),_.N("design:type",Object)],Si.prototype,"privacyInput",void 0);_.t([_.El("#name-input"),_.N("design:type",Object)],Si.prototype,"nameInput",void 0);_.t([_.ai("keydown"),_.N("design:type",Function),_.N("design:paramtypes",[KeyboardEvent]),_.N("design:returntype")],Si.prototype,"onKeydown",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Si.prototype,"onServiceRequestCompleted",null);
Si=_.t([_.G({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Si);
_.H(Si,"ytd-add-to-playlist-create-renderer",function(){if(MUZ!==void 0)return MUZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MUZ=W},{mode:1});var uo9;var JzN;var Z4=function(){var W=_.n.apply(this,arguments)||this;W.transferState="TRANSFER_STATE_UNKNOWN";return W};
_.R(Z4,_.n);Z4.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
Z4.prototype.onCheckboxChange=function(W){var O=this;this.data&&_.n2(this,"yt-playlist-checkbox-changed",function(){var b=_.Md(W).checked?O.data.addToPlaylistServiceEndpoint:O.data.removeFromPlaylistServiceEndpoint;b&&_.iq().resolve(_.bq).resolveCommand(b,{form:{element:O.hostElement}});_.e("dl_playlist_killswitch")||O.transferState!=="TRANSFER_STATE_UNKNOWN"&&O.transferState!=="TRANSFER_STATE_FAILED"&&O.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:O.data.playlistId,action:"ACTION_SYNC"}})},
100)};
Z4.prototype.computeIconType=function(W){return W?"yt-icons:"+W.toLowerCase():null};
Z4.prototype.dataChanged=Z4.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Z4.prototype,"data",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Z4.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Z4.prototype,"ytComponentBehavior",void 0);_.t([_.El("#checkbox"),_.N("design:type",HTMLInputElement)],Z4.prototype,"checkbox",void 0);
_.t([_.C({selector:_.x9,selectorArgs:["data.playlistId"]}),_.N("design:type",String)],Z4.prototype,"transferState",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z4.prototype,"dataChanged",null);Z4=_.t([_.G({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],Z4);
_.H(Z4,"ytd-playlist-add-to-option-renderer",function(){if(JzN!==void 0)return JzN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return JzN=W},{mode:1});_.bO(pgN);_.Z3(pgN,"ytd-menu-title-renderer",{propNames:["data"]});var Ik=function(){var W=_.n.apply(this,arguments)||this;W.addToStrings={ADD_TO_DROPDOWN_LABEL:_.EO("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};W.closeButtonAriaLabel=_.EO("SBOX_INAPPROPRIATE_CANCEL");W.dialog=_.e("desktop_add_to_playlist_renderer_dialog_popup");return W};
_.R(Ik,_.n);_.d=Ik.prototype;_.d.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"}}}};
_.d.onPopupOpened=function(){_.L2(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.d.onPopupClosed=function(){_.L2(this.playlists,"scrollable",!1)};
_.d.computeAriaLabel=function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.S(this.data.actions);for(var O=W.next();!O.done;O=W.next())if(O=O.value,O.menuTitleRenderer)return _.NX(O.menuTitleRenderer.title)}};
_.d.onTapClose=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Jq.Object.defineProperties(Ik.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var W;if(this==null?0:(W=this.data)==null?0:W.actions){W=_.S(this.data.actions);for(var O=W.next();!O.done;O=W.next())if(O=O.value,O.menuTitleRenderer)return O.menuTitleRenderer}return!1}}});
Ik.prototype.onPopupClosed=Ik.prototype.onPopupClosed;Ik.prototype.onPopupOpened=Ik.prototype.onPopupOpened;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Ik.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ik.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Ik.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Ik.prototype,"addToStrings",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],Ik.prototype,"ariaLabel",void 0);_.t([_.C(),_.N("design:type",String)],Ik.prototype,"closeButtonAriaLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],Ik.prototype,"dialog",void 0);
_.t([_.El("#playlists"),_.N("design:type",HTMLElement)],Ik.prototype,"playlists",void 0);_.t([_.El("ytd-add-to-playlist-create-renderer"),_.N("design:type",Object)],Ik.prototype,"createRenderer",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],Ik.prototype,"menuTitleRenderer",null);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ik.prototype,"onPopupOpened",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ik.prototype,"onPopupClosed",null);Ik=_.t([_.G({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Ik);
_.H(Ik,"ytd-add-to-playlist-renderer",function(){if(uo9!==void 0)return uo9;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return uo9=W},{mode:1});var czk;var ak=function(){var W=_.n.apply(this,arguments)||this;W.isPlaylistEditComplete=!1;W.isCollabEngagementDisabled=!1;W.closeButtonAriaLabel=_.EO("SBOX_INAPPROPRIATE_CANCEL");W.saveButton={title:_.EO("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"};W.onValueChanged=function(){W.updateSaveButtonState();W.computeCollabEngagementDisabled()};
return W};
_.R(ak,_.n);_.d=ak.prototype;_.d.attached=function(){this.JSC$18298_scroller&&(this.JSC$18298_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18298_scroller.attached&&typeof this.JSC$18298_scroller.attached==="function"&&this.JSC$18298_scroller.attached())};
_.d.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.d.onPopupClosed=function(){this.reset()};
_.d.close=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.d.onClickSave=function(){var W=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var O=[];this.nameInput.value!==null&&O.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&O.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var b=Number(this.privacyInput.value);isNaN(b)||O.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:b})}this.votingInput.value!==null&&(b=this.votingInput.value)&&O.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:b});if(O.length>0){var T;_.P((T=this.data)==null?void 0:T.updateSettingsEndpoint,_.oP).actions=O;var L;if((L=this.data)==null?0:L.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){W.close()}}}),this.isPlaylistEditComplete=!0}}};
_.d.computePrivacyBadge=function(W){return W?[{metadataBadgeRenderer:W}]:[]};
_.d.computeEditorData=function(W){var O,b;return W==null?void 0:(O=W.sections)==null?void 0:(b=O[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer};
_.d.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.d.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}}}}}};
_.d.computeAriaLabel=function(){var W,O,b,T=(W=this.data)==null?void 0:(O=W.sections)==null?void 0:(b=O[0])==null?void 0:b.playlistSettingsEditorCasualSectionRenderer;return _.NX(T==null?void 0:T.title)};
_.d.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"}))};
_.d.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.d.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.d.isNameChanged=function(){var W,O,b;return(((W=this.editorData)==null?void 0:(O=W.name)==null?void 0:(b=O.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.nameInput.value||"")};
_.d.isDescriptionChanged=function(){var W,O,b;return(((W=this.editorData)==null?void 0:(O=W.description)==null?void 0:(b=O.textInputFormFieldRenderer)==null?void 0:b.value)||"")!==(this.descriptionInput.value||"")};
_.d.isPrivacyChanged=function(){var W,O,b,T,L,h,Z,a;return((Z=(W=this.editorData)==null?void 0:(O=W.privacy)==null?void 0:(b=O.dropdownFormFieldRenderer)==null?void 0:(T=b.dropdown)==null?void 0:(L=T.dropdownRenderer)==null?void 0:(h=L.entries)==null?void 0:h.find(function(m){var w;return m==null?void 0:(w=m.privacyDropdownItemRenderer)==null?void 0:w.isSelected}))==null?void 0:(a=Z.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.privacyInput.value};
_.d.isVotingChanged=function(){var W,O,b,T,L,h,Z,a;return((Z=(W=this.editorData)==null?void 0:(O=W.voting)==null?void 0:(b=O.dropdownFormFieldRenderer)==null?void 0:(T=b.dropdown)==null?void 0:(L=T.dropdownRenderer)==null?void 0:(h=L.entries)==null?void 0:h.find(function(m){var w;return m==null?void 0:(w=m.privacyDropdownItemRenderer)==null?void 0:w.isSelected}))==null?void 0:(a=Z.privacyDropdownItemRenderer)==null?void 0:a.int32Value)!==this.votingInput.value};
ak.prototype.onPopupClosed=ak.prototype.onPopupClosed;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ak.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],ak.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],ak.prototype,"ytRendererStamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],ak.prototype,"data",void 0);_.t([_.C({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.N("design:type",Array)],ak.prototype,"privacyBadge",void 0);_.t([_.C({computed:"computeEditorData(data)"}),_.N("design:type",Object)],ak.prototype,"editorData",void 0);_.t([_.C(),_.N("design:type",Object)],ak.prototype,"isPlaylistEditComplete",void 0);_.t([_.C(),_.N("design:type",Object)],ak.prototype,"isCollabEngagementDisabled",void 0);
_.t([_.C({value:{REQUIRED_LABEL:_.EO("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.EO("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.N("design:type",Object)],ak.prototype,"addToStrings",void 0);_.t([_.C({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.N("design:type",String)],ak.prototype,"ariaLabel",void 0);_.t([_.C(),_.N("design:type",String)],ak.prototype,"closeButtonAriaLabel",void 0);
_.t([_.C(),_.N("design:type",Object)],ak.prototype,"saveButton",void 0);_.t([_.El("#name-input"),_.N("design:type",Object)],ak.prototype,"nameInput",void 0);_.t([_.El("#description-input"),_.N("design:type",Object)],ak.prototype,"descriptionInput",void 0);_.t([_.El("#privacy-input"),_.N("design:type",Object)],ak.prototype,"privacyInput",void 0);_.t([_.El("#voting-input"),_.N("design:type",Object)],ak.prototype,"votingInput",void 0);
_.t([_.El("#scroller"),_.N("design:type",Object)],ak.prototype,"JSC$18298_scroller",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ak.prototype,"onPopupClosed",null);_.t([_.C(),_.N("design:type",Object)],ak.prototype,"onValueChanged",void 0);ak=_.t([_.G({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],ak);
_.H(ak,"ytd-playlist-settings-editor-renderer",function(){if(czk===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);czk=W}W=czk;return W},{mode:1});var FKN;_.Bs("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var m0=function(){return _.n.apply(this,arguments)||this};
_.R(m0,_.n);_.d=m0.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.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 W=this.get("data.nextButton.buttonRenderer.navigationEndpoint");W&&(this.nextNavigationEndpoint=W,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.d.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 W={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",W)}}};
_.d.onPopupOpened=function(W){W.detail!==this&&W.detail!==this.hostElement||!_.e("enable_premium_voluntary_pause")||_.jx(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.d.onNextButtonTap=function(){var W=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);W&&this.ytdOpenPopupBehavior.openPopup(W)};
_.d.updateSelectedResponseIndexFromBinding=function(W){this.selectedResponseIndex=W.detail.value};
m0.prototype.onPopupOpened=m0.prototype.onPopupOpened;m0.prototype.onSelectedResponseIndexChange=m0.prototype.onSelectedResponseIndexChange;m0.prototype.dataChanged=m0.prototype.dataChanged;_.t([_.D(_.tW),_.N("design:type",Object)],m0.prototype,"ytdOpenPopupBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],m0.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],m0.prototype,"selectedResponseIndex",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m0.prototype,"dataChanged",null);_.t([_.m5("selectedResponseIndex"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],m0.prototype,"onSelectedResponseIndexChange",null);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],m0.prototype,"onPopupOpened",null);m0=_.t([_.G({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],m0);
_.H(m0,"ytd-red-cancel-survey-renderer",function(){if(FKN!==void 0)return FKN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return FKN=W},{mode:1});var yz1;var Yj=function(){var W=_.n.apply(this,arguments)||this;W.closeButtonAriaLabel=_.EO("SBOX_INAPPROPRIATE_CANCEL");return W};
_.R(Yj,_.n);Yj.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Yj.prototype.onClickClose=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Yj.prototype,"rendererStamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Yj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],Yj.prototype,"closeButtonAriaLabel",void 0);Yj=_.t([_.G({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Yj);
_.H(Yj,"ytd-search-filter-options-dialog-renderer",function(){if(yz1!==void 0)return yz1;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return yz1=W},{mode:1});var Wh9;var v0P=function(){return function(W){W=W.availabilityType;return W===void 0||W==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||W==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Eu=function(){var W=_.n.apply(this,arguments)||this;W.qualityOptions=[];W.upsellOptions=[];W.showUpsellSection=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.rememberSettingsChecked=!1;return W};
_.R(Eu,_.n);_.d=Eu.prototype;_.d.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}}}}};
_.d.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.d.updateQualityOptions=function(){if(this.formats===void 0)_.jx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var W=[],O=[];this.showUpsellSection=!1;for(var b=_.S(this.formats),T=b.next();!T.done;T=b.next())(T=T.value)&&(T.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?O.push(T):W.push(T));W.length&&(this.qualityOptions=KM5(W));O.length&&(this.showUpsellSection=!0,this.upsellOptions=KM5(O))}};
_.d.updateRememberString=function(){if(this.downloadQualityPickerEntity)var W=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var O;W=(O=this.data)==null?void 0:O.premiumRememberSettingString}else{var b;W=(b=this.data)==null?void 0:b.rememberSettingString}W=W===void 0?_.EO("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):W;this.rememberSettingsCheckboxRenderer={title:_.iv(W),disabled:!1}};
_.d.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Jq.Object.defineProperties(Eu.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
Eu.prototype.updateRememberString=Eu.prototype.updateRememberString;Eu.prototype.updateQualityOptions=Eu.prototype.updateQualityOptions;Eu.prototype.dataChanged=Eu.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Eu.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Eu.prototype,"data",void 0);
_.t([_.D(_.sh),_.N("design:type",Object)],Eu.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Boolean)],Eu.prototype,"selectedUpsellQuality",void 0);_.t([_.C({computed:"computeIcon_(data.premiumIcon)",value:""}),_.N("design:type",String)],Eu.prototype,"premiumIcon",void 0);_.t([_.C({selector:EvN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],Eu.prototype,"downloadQualityPickerEntity",void 0);
_.t([_.C(),_.N("design:type",Array)],Eu.prototype,"qualityOptions",void 0);_.t([_.C(),_.N("design:type",Array)],Eu.prototype,"upsellOptions",void 0);_.t([_.C(),_.N("design:type",Object)],Eu.prototype,"showUpsellSection",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Eu.prototype,"darkerDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],Eu.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.t([_.El("#remember-settings"),_.N("design:type",HTMLInputElement)],Eu.prototype,"rememberSettingsCheckbox",void 0);_.t([_.C(),_.N("design:type",Object)],Eu.prototype,"rememberSettingsChecked",void 0);_.t([_.C(),_.N("design:type",Function)],Eu.prototype,"onRememberSettingsCheckedChanged",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eu.prototype,"dataChanged",null);
_.t([_.m5("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eu.prototype,"updateQualityOptions",null);_.t([_.m5("selectedUpsellQuality"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Eu.prototype,"updateRememberString",null);Eu=_.t([_.G({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Eu);
_.H(Eu,"ytd-download-quality-selector-content",function(){if(Wh9!==void 0)return Wh9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Wh9=W},{mode:1});var OA2;var w$=function(){var W=_.n.apply(this,arguments)||this;W.selectedUpsellQuality=!1;W.qualityOptions=[];W.darkerDarkTheme=_.e("web_darker_dark_theme");W.useUpsellDismissAlternate=_.e("use_not_now_dl_upsell_dismiss_cta");W.shouldShowAlternateUpsellDimiss=!1;W.rememberSettings=!1;W.rememberSettingsChecked=!1;W.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};W.rememberSettingsCheckedChanged=function(O){W.rememberSettingsChecked=O};
return W};
_.R(w$,_.n);_.d=w$.prototype;
_.d.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iv(_.EO("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.d.updateQualityOptions=function(){this.formats===void 0?_.jx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=KM5(this.formats)};
_.d.onQualityOptionsSelect=function(W){if(this.qualityOptions&&W){W!==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 O=_.S(this.qualityOptions.entries()),b=O.next();!b.done;b=
O.next()){b=_.S(b.value);var T=b.next().value;b=b.next().value;var L=void 0,h=void 0;if(((L=b)==null?void 0:(h=L.settingsRadioOptionRenderer)==null?void 0:h.id)===W){this.selectedQualityIndex=T;W=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((W=this.formats[T])==null?void 0:W.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.d.onClickSubmit=function(){var W;if((W=this.downloadButtonRenderer)==null||!W.isDisabled){var O,b;W=(b=(O=this.data)==null?void 0:O.onSubmitEndpoint)!=null?b:{};var T,L;if(this.formats&&(((T=_.P(W,_.mo))==null?0:T.videoId)||((L=_.P(W,_.Yz))==null?0:L.playlistId))){var h,Z,a,m,w,A;O={formatType:(m=(h=this.formats)==null?void 0:(Z=h[(a=this.selectedQualityIndex)!=null?a:0])==null?void 0:Z.format)!=null?m:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(w=this.getOfflineEndpoint(W))==null?void 0:(A=w.actionParams)==null?void 0:A.settingsAction)};this.getOfflineEndpoint(W).actionParams=O;this.ytComponentBehavior.resolveCommand(W)}_.jx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.d.onClickUpsell=function(){var W;if((W=this.upsellButtonRenderer)==null||!W.isDisabled){var O,b;W=(b=(O=this.data)==null?void 0:O.upsellEndpoint)!=null?b:{};this.ytComponentBehavior.resolveCommand(W);_.jx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);O="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var T,L,h,Z;O=(Z=(T=this.formats)==null?void 0:(L=T[(h=this.selectedQualityIndex)!=null?h:0])==null?void 0:L.format)!=null?Z:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:O}})}};
_.d.onClickClose=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.d.getOfflineSettingsAction=function(W,O){return W?O===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":O:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.d.getOfflineEndpoint=function(W){return _.P(W,_.mo)?_.P(W,_.mo):_.P(W,_.Yz)};
_.Jq.Object.defineProperties(w$.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.iv(_.EO("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var W;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(W=this.data)==null?void 0:W.qualityFormats}}});
w$.prototype.updateQualityOptions=w$.prototype.updateQualityOptions;w$.prototype.dataChanged=w$.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Number)],w$.prototype,"selectedQualityIndex",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"selectedUpsellQuality",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);
_.t([_.C({selector:EvN,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.N("design:type",Object)],w$.prototype,"downloadQualityPickerEntity",void 0);_.t([_.C(),_.N("design:type",Array)],w$.prototype,"qualityOptions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],w$.prototype,"darkerDarkTheme",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],w$.prototype,"useUpsellDismissAlternate",void 0);
_.t([_.C(),_.N("design:type",Object)],w$.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"downloadButtonRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"upsellButtonRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"cancelButtonRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"upsellCancelButtonRenderer",void 0);_.t([_.C(),_.N("design:type",Object)],w$.prototype,"rememberSettings",void 0);
_.t([_.C(),_.N("design:type",Object)],w$.prototype,"rememberSettingsChecked",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w$.prototype,"dataChanged",null);_.t([_.m5("downloadQualityPickerEntity"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],w$.prototype,"updateQualityOptions",null);w$=_.t([_.G({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],w$);
_.H(w$,"ytd-download-quality-selector-renderer",function(){if(OA2!==void 0)return OA2;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return OA2=W},{mode:1});var iA5;var Aa=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(Aa,_.n);Aa.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Aa.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Aa.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Aa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Aa.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Aa.prototype,"darkerDarkTheme",void 0);_.t([_.C({computed:"computeIcon_(data.infoIcon)"}),_.N("design:type",Object)],Aa.prototype,"infoIcon",void 0);
_.t([_.C({computed:"computeIcon_(data.warningIcon)"}),_.N("design:type",Object)],Aa.prototype,"warningIcon",void 0);Aa=_.t([_.G({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Aa);
_.H(Aa,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(iA5!==void 0)return iA5;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return iA5=W},{mode:1});var bAN;var Xb=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(Xb,_.n);Xb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Xb.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"}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Xb.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Xb.prototype,"darkerDarkTheme",void 0);Xb=_.t([_.G({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],Xb);
_.H(Xb,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(bAN!==void 0)return bAN;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return bAN=W},{mode:1});var jb7;var Uu=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(Uu,_.n);Uu.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Uu.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"}}}}};
Uu.prototype.onServiceRequestSentOrCompleted=function(W,O){O&&O.actions&&O.actions.length>0&&_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
Uu.prototype.onServiceRequestSentOrCompleted=Uu.prototype.onServiceRequestSentOrCompleted;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Uu.prototype,"darkerDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],Uu.prototype,"data",void 0);
_.t([_.ai("yt-service-request-completed"),_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],Uu.prototype,"onServiceRequestSentOrCompleted",null);Uu=_.t([_.G({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],Uu);
_.H(Uu,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(jb7!==void 0)return jb7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return jb7=W},{mode:1});var Tog;var lz=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.submitButtonDisabled=!0;return W};
_.R(lz,_.n);_.d=lz.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.d.onDataChanged=function(){var W,O,b;if(((W=this.data)==null?void 0:(O=W.confirmButton)==null?void 0:(b=O.buttonRenderer)==null?void 0:b.isDisabled)!==void 0){var T,L,h;this.submitButtonDisabled=(T=this.data)==null?void 0:(L=T.confirmButton)==null?void 0:(h=L.buttonRenderer)==null?void 0:h.isDisabled}};
_.d.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.d.updateSubmitButtonDisabledFromBinding=function(W){this.submitButtonDisabled=W.detail.value};
_.d.updateSubmitButtonDisabledFromConfirmCheckbox=function(W){this.submitButtonDisabled=!W.detail.value};
lz.prototype.onDataChanged=lz.prototype.onDataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],lz.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],lz.prototype,"darkerDarkTheme",void 0);
_.t([_.C(),_.N("design:type",Object)],lz.prototype,"submitButtonDisabled",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],lz.prototype,"onDataChanged",null);lz=_.t([_.G({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],lz);
_.H(lz,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(Tog!==void 0)return Tog;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Tog=W},{mode:1});var LhU;var ei=function(){return _.n.apply(this,arguments)||this};
_.R(ei,_.n);_.Jq.Object.defineProperties(ei.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var W,O,b;return((W=this.data)==null?void 0:W.title)+" "+((O=this.data)==null?void 0:O.metadataPrimary)+" "+((b=this.data)==null?void 0:b.metadataSecondary)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ei.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ei.prototype,"data",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],ei.prototype,"ariaLabel",null);ei=_.t([_.G({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],ei);
_.H(ei,"ytd-compact-product-list-item-renderer",function(){if(LhU!==void 0)return LhU;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return LhU=W},{mode:1});var do1;var Pn=function(){return _.n.apply(this,arguments)||this};
_.R(Pn,_.n);Pn.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]]"}}}}}};
_.Jq.Object.defineProperties(Pn.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Pn.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Pn.prototype,"data",void 0);Pn=_.t([_.G({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Pn);
_.H(Pn,"ytd-compact-product-list-renderer",function(){if(do1!==void 0)return do1;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return do1=W},{mode:1});var hY9;var pT=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(pT,_.n);_.d=pT.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.d.getBackgroundUrl=function(){var W=this.get("data.headerImage.thumbnails");return W?"url("+_.bn(W,this.hostElement.clientWidth)+")":""};
_.d.onDataChanged=function(){var W=this.getBackgroundUrl();W&&(this.header.style.backgroundImage=W);W=_.Bb();var O=_.sk(),b=this.get("data.trackingParams");b&&O&&W&&_.fV(W,O,_.Pi(b));W=_.S(this.hostElement.querySelectorAll("yt-img-shadow"));for(O=W.next();!O.done;O=W.next())O.value.onShow()};
_.d.onPopupClosed=function(W){_.Md(W).localName==="ytd-membership-post-cancel-renderer"&&_.jx(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
pT.prototype.onPopupClosed=pT.prototype.onPopupClosed;pT.prototype.onDataChanged=pT.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pT.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],pT.prototype,"darkerDarkTheme",void 0);
_.t([_.El("#header"),_.N("design:type",HTMLDivElement)],pT.prototype,"header",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pT.prototype,"onDataChanged",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],pT.prototype,"onPopupClosed",null);pT=_.t([_.G({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],pT);
_.H(pT,"ytd-membership-post-cancel-renderer",function(){if(hY9!==void 0)return hY9;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return hY9=W},{mode:1});var SSD;var Rk=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(Rk,_.n);Rk.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
Rk.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Rk.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Rk.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Rk.prototype,"darkerDarkTheme",void 0);_.t([_.El("ytd-feedback-survey-renderer"),_.N("design:type",Object)],Rk.prototype,"feedbackSurveyRenderer",void 0);Rk=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],Rk);
_.H(Rk,"ytd-sponsorship-confirm-cancel-content",function(){if(SSD!==void 0)return SSD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return SSD=W},{mode:1});var ZAD;var KT=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.maybeSubmitFeedback=function(){W.content&&W.content.maybeSubmitFeedback()};
return W};
_.R(KT,_.n);_.d=KT.prototype;_.d.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.d.onYtPopupOpened=function(W,O){O===this&&this.data&&this.data.onOpenCommands&&_.Sx(this.hostElement,this.data.onOpenCommands,this.hostElement);_.jx(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.d.onYtPopupClosed=function(W,O){(O&&O.canceled===!0||O&&O.canceled===!1&&O.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.Sx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestCompleted=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.d.onYtServiceRequestError=function(W){_.yU(this.hostElement,W.detail.error.message)};
_.d.onDataChanged=function(){if(this.isAttached){var W=this.backgroundUrl;W&&(_.Q(this.hostElement).querySelector("#header").style.backgroundImage=W)}};
_.Jq.Object.defineProperties(KT.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return W?"url("+_.bn(W,this.hostElement.clientWidth)+")":""}}});
KT.prototype.onDataChanged=KT.prototype.onDataChanged;KT.prototype.onYtServiceRequestError=KT.prototype.onYtServiceRequestError;KT.prototype.onYtServiceRequestCompleted=KT.prototype.onYtServiceRequestCompleted;KT.prototype.onYtPopupClosed=KT.prototype.onYtPopupClosed;KT.prototype.onYtPopupOpened=KT.prototype.onYtPopupOpened;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],KT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],KT.prototype,"data",void 0);_.t([_.C({value:function(){return _.EO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],KT.prototype,"closeButtonAriaLabel",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],KT.prototype,"darkerDarkTheme",void 0);_.t([_.El("#scrollable"),_.N("design:type",Object)],KT.prototype,"scrollable",void 0);_.t([_.El("ytd-sponsorship-confirm-cancel-content"),_.N("design:type",Object)],KT.prototype,"content",void 0);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],KT.prototype,"onYtPopupOpened",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],KT.prototype,"onYtPopupClosed",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],KT.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],KT.prototype,"onYtServiceRequestError",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],KT.prototype,"onDataChanged",null);
KT=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],KT);
_.H(KT,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ZAD!==void 0)return ZAD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ZAD=W},{mode:_.Lb("kevlar_poly_si_batch_j081")?1:2});var IHg;var vn=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(vn,_.n);vn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vn.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],vn.prototype,"darkerDarkTheme",void 0);vn=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],vn);
_.H(vn,"ytd-sponsorships-celebration-content",function(){if(IHg!==void 0)return IHg;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return IHg=
W},{mode:1});var aHB;var moN=_.ts(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),g$=function(){var W=_.n.apply(this,arguments)||this;W.scriptsAppended=!1;W.buttonOverrides={type:"tonal",style:"overlay-dark"};return W};
_.R(g$,_.n);_.d=g$.prototype;
_.d.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:_.e("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.onDataChanged=function(){var W;(W=this.header)==null||W.style.setProperty("background-color",this.backgroundColor);if(W=this.headerImageUrl){var O;(O=this.header)==null||O.style.setProperty("background-image",W)}O=_.Bb(4);W=_.sk(4);var b=this.get("data.trackingParams");if(b&&W&&O){var T=_.Pi(b);_.fV(O,W,T);_.e("combine_ve_grafts")?_.A4().graftServerVe(b,W,4):_.fV(O,W,T)}O=_.S(this.hostElement.querySelectorAll("yt-img-shadow"));for(W=O.next();!W.done;W=O.next())W.value.onShow();if(O=this.get("data.gtmId"))_.eu(O,
_.Cv("GL","")),this.setupConversionTracking()};
_.d.setupConversionTracking=function(){if(!this.scriptsAppended){var W=document.createElement("script");var O=_.Cz(moN.join(""));_.nz(W,O);document.head.appendChild(W);W=document.createElement("noscript");W.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(W);this.scriptsAppended=!0}};
_.d.onPopupClosed=function(W){if(_.Md(W).localName==="ytd-sponsorships-celebration-renderer"){_.jx(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var O;this.data&&((O=this.data)==null?0:O.dismissCommand)&&_.ax.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Jq.Object.defineProperties(g$.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.C_(W)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return W?"url("+_.bn(W,this.hostElement.getBoundingClientRect().width)+")":""}}});
g$.prototype.onPopupClosed=g$.prototype.onPopupClosed;g$.prototype.onDataChanged=g$.prototype.onDataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],g$.prototype,"data",void 0);_.t([_.El("#header"),_.N("design:type",HTMLElement)],g$.prototype,"header",void 0);
_.t([_.C(),_.N("design:type",Object)],g$.prototype,"scriptsAppended",void 0);_.t([_.C(),_.N("design:type",Object)],g$.prototype,"buttonOverrides",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],g$.prototype,"onDataChanged",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],g$.prototype,"onPopupClosed",null);
g$=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],g$);
_.H(g$,"ytd-sponsorships-celebration-renderer",function(){if(aHB!==void 0)return aHB;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return aHB=W},{mode:1});var YS1;var ok=function(){var W=_.n.apply(this,arguments)||this;W.isToggleChecked=!1;return W};
_.R(ok,_.n);ok.prototype.onDataChanged=function(){var W;this.isToggleChecked=((W=this.data)==null?void 0:W.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
ok.prototype.close=function(){var W;((W=this.data)==null?0:W.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
ok.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var W,O=_.P((W=this.data)==null?void 0:W.switchButton,WQP);O&&(this.isToggleChecked&&O.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(O.switchOnInnertubeCommand),!this.isToggleChecked&&O.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(O.switchOffInnertubeCommand))};
ok.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ok.prototype.onDataChanged=ok.prototype.onDataChanged;_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],ok.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],ok.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],ok.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],ok.prototype,"isToggleChecked",void 0);_.t([_.C({value:_.EO("CLOSE")}),_.N("design:type",String)],ok.prototype,"closeButtonAriaLabel",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],ok.prototype,"onDataChanged",null);ok=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],ok);
_.H(ok,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(YS1!==void 0)return YS1;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return YS1=W},{mode:1});var EuU;var QA=function(){return _.n.apply(this,arguments)||this};
_.R(QA,_.n);_.d=QA.prototype;_.d.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"}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.playerElement.stop()};
_.d.onYtServiceRequestCompleted=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.d.onYtServiceRequestError=function(W){_.yU(this.hostElement,W.detail.error.message)};
_.d.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.d.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.d.getTier=function(W,O){return!W||!W.tiers||O<0?null:_.P(W.tiers[O],jz9)};
_.d.moreThanOne=function(W){return!!(W&&W.length>1)};
_.d.tierOverviewTap=function(W){var O=this;this.selectedTier=W.model.index;_.My(this,function(){_.bX(O.hostElement,"yt-refit")})};
_.d.computeSelectedClass=function(W,O){return this.isSelected(W,O)?"selected":""};
_.d.computeButtonAriaPressed=function(W,O){return this.isSelected(W,O)?"true":"false"};
_.d.isSelected=function(W,O){return W===O};
_.d.onDataChanged=function(){_.Q(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Q(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 W=_.S(this.hostElement.querySelectorAll("yt-img-shadow")),
O=W.next();!O.done;O=W.next())O.value.onShow();var b;this.set("selectedTier",(b=this.get("data.targetTierIndex"))!=null?b:0);var T;(W=(T=this.data)==null?void 0:T.onVisible)&&this.ytComponentBehavior.resolveCommand(W)};
_.d.initializeVe=function(W){var O=_.Bb(),b=_.sk(),T=this.get("data.trackingParams");b&&O&&(this.screenLayer=4,O=_.fv(_.Zc8)(void 0,69877,{clientScreenNonce:O,visualElement:b},void 0,void 0,void 0),_.Du(O,69877,4),b=_.sk(4),T&&b&&(T=_.Pi(T),_.fV(O,b,T),W&&(this.offerVideoVe=_.gd(74659),_.fV(O,T,this.offerVideoVe))))};
_.d.setHeaderBackground=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Q(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.C_(W);if(W=this.getHeaderImage())W=_.bn(W,screen.width),_.Q(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+W+")"};
_.d.getHeaderImage=function(){var W=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&W?W:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setupVideoPlayer=function(W){var O=this,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1)return b=O.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),T=O.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.e("kevlar_player_update_killswitch")?O.playerElement.update({args:{autoplay:b,video_id:W,player_params:T}}):O.playerElement.loadVideoWithPlayerVars({autoplay:b,video_id:W,player_params:T}),
_.Y(Z,O.playerElement.getPlayerPromise(),2);L=Z.yieldResult;L.addEventListener("onStateChange",function(a){O.onPlayerStateChange(a)});
L.setScreenLayer(O.screenLayer);(h=_.Bb(4))&&O.offerVideoVe&&_.Hg(h,O.offerVideoVe);b&&(O.pauseOtherPlayers(),O.playerElement.focusOnPlayer(),O.playerElement.getPlayer().hideControls(),_.KB(_.sF,function(){O.fadeOutHeaderOverlay()},4E3));
_.aD(Z)})};
_.d.onPlayerStateChange=function(W){W===1?this.backgroundPlayerElement&&(W=this.backgroundPlayerElement.player_.getPlayerState(),W!==1&&W!==3||this.backgroundPlayerElement.pause()):W===0&&(_.Q(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Q(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.d.fadeOutHeaderOverlay=function(){_.Q(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.d.onHeaderTap=function(){if(this.offerVideo){_.Q(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var W;((W=this.playerElement.player_)==null?void 0:W.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(W=_.Bb(4))&&this.offerVideoVe&&_.Vw(W,this.offerVideoVe)}};
_.d.getBackgroundImageLayerClass=function(W){return W?"background-image-layer-with-video":""};
_.d.getHeaderClass=function(W){return W?"header-with-video":""};
_.d.getHeaderOverlayClass=function(W){return W?"header-overlay-with-video":""};
_.d.getTitleContainerClass=function(W,O){return W?"title-container-with-video":O?"title-container-without-video-flexible":"title-container-without-video"};
_.d.tierTitleDisplayStatus=function(W){return this.moreThanOne(W)?"hide":"show"};
_.d.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.iq().resolve(_.xq).getPlayerElement():this.backgroundPlayerElement=_.ya();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var W=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=W===1||W===3;this.backgroundPlayerElement.pause()}};
_.d.isMiniplayerActive=function(){return _.iq().resolve(_.xq).isMiniplayerActive()};
_.d.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("selected-tier-changed",this.selectedTier))};
QA.prototype.selectedTierChangedForBinding=QA.prototype.selectedTierChangedForBinding;QA.prototype.onDataChanged=QA.prototype.onDataChanged;QA.prototype.onYtPopupClosed=QA.prototype.onYtPopupClosed;QA.prototype.onYtPopupOpened=QA.prototype.onYtPopupOpened;QA.prototype.onYtServiceRequestError=QA.prototype.onYtServiceRequestError;QA.prototype.onYtServiceRequestCompleted=QA.prototype.onYtServiceRequestCompleted;
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],QA.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],QA.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],QA.prototype,"data",void 0);_.t([_.C({value:0}),_.N("design:type",Number)],QA.prototype,"selectedTier",void 0);
_.t([_.C({value:""}),_.N("design:type",String)],QA.prototype,"offerVideo",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],QA.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.t([_.C({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.d1(this)}}),
_.N("design:type",String)],QA.prototype,"playerId",void 0);_.t([_.El("tp-yt-paper-dialog-scrollable"),_.N("design:type",Object)],QA.prototype,"scrollable",void 0);_.t([_.El("ytd-sponsorships-tier-renderer"),_.N("design:type",Object)],QA.prototype,"tierRenderer",void 0);_.t([_.El("#player"),_.N("design:type",Object)],QA.prototype,"playerElement",void 0);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QA.prototype,"onYtServiceRequestCompleted",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],QA.prototype,"onYtServiceRequestError",null);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QA.prototype,"onYtPopupOpened",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QA.prototype,"onYtPopupClosed",null);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QA.prototype,"onDataChanged",null);
_.t([_.m5("selectedTier"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],QA.prototype,"selectedTierChangedForBinding",null);QA=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],QA);
_.H(QA,"ytd-sponsorships-offer-renderer",function(){if(EuU!==void 0)return EuU;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return EuU=W},{mode:_.Lb("kevlar_poly_si_batch_j077")?1:2});var wdP;var kj=function(){var W=_.n.apply(this,arguments)||this;W.buttonOverrides={type:"filled",style:"mono"};return W};
_.R(kj,_.n);kj.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}}}}}};
kj.prototype.backgroundColorChanged=function(){var W,O,b,T=(O=_.P((W=this.data)==null?void 0:W.content,Tcg))==null?void 0:(b=O.backgroundColor)==null?void 0:b.backgroundColor;T&&(W=_.zF(T),_.Q(this.hostElement).querySelector("#banner").style.backgroundColor=W,_.Q(this.hostElement).querySelector("#abstract-art").style.backgroundColor=W)};
kj.prototype.attached=function(){this.JSC$18384_scroller&&(this.JSC$18384_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18384_scroller.attached&&typeof this.JSC$18384_scroller.attached==="function"&&this.JSC$18384_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
kj.prototype.backgroundColorChanged=kj.prototype.backgroundColorChanged;_.t([_.C(),_.N("design:type",Object)],kj.prototype,"data",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#scroller"),_.N("design:type",Object)],kj.prototype,"JSC$18384_scroller",void 0);_.t([_.C(),_.N("design:type",Object)],kj.prototype,"buttonOverrides",void 0);
_.t([_.m5("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],kj.prototype,"backgroundColorChanged",null);kj=_.t([_.G({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],kj);
_.H(kj,"ytd-sponsorships-promotion-celebration-renderer",function(){if(wdP!==void 0)return wdP;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return wdP=W},{mode:_.Lb("kevlar_poly_si_batch_j077")?1:2});var ADN;var Xd7;var su=function(){return _.n.apply(this,arguments)||this};
_.R(su,_.n);su.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
su.prototype.computeIsInitiallyChecked=function(W){return W===1};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],su.prototype,"data",void 0);_.t([_.El("#checkbox"),_.N("design:type",Object)],su.prototype,"checkbox",void 0);su=_.t([_.G({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],su);
_.H(su,"ytd-subscription-toggle-option-renderer",function(){if(Xd7!==void 0)return Xd7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Xd7=W},{mode:1});var Bn=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return W};
_.R(Bn,_.n);Bn.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"}}}};
Bn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Bn.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var W=_.Q(this.hostElement).querySelector("#options").selected;W=this.data.options[W].subscriptionRadioOptionRenderer.serviceEndpoint;var O=_.Q(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");O&&W&&W.modifyChannelNotificationPreferenceEndpoint&&(O=O.getValue())&&(W.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[O]);_.iq().resolve(_.bq).resolveCommand(W,{form:{element:this.hostElement}});
_.jx(this.hostElement,"yt-close-popup-action")};
_.Jq.Object.defineProperties(Bn.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var W=this.data.options,O=0;O<W.length;O++){var b=W[O].subscriptionRadioOptionRenderer;if(b&&b.selected)return O}return null}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Bn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Bn.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Bn.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],Bn.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],Bn.prototype,"darkerDarkTheme",void 0);_.t([_.x("data.options"),_.N("design:type",Object),_.N("design:paramtypes",[])],Bn.prototype,"initialIndex",null);Bn=_.t([_.G({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Bn);
_.H(Bn,"ytd-subscription-notification-options-renderer",function(){if(ADN!==void 0)return ADN;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ADN=W},{mode:1});var UoZ;var r$=function(){return _.n.apply(this,arguments)||this};
_.R(r$,_.n);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],r$.prototype,"data",void 0);r$=_.t([_.G({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],r$);
_.H(r$,"ytd-tvfilm-offer-groups-renderer",function(){if(UoZ!==void 0)return UoZ;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return UoZ=W},{mode:1});var lHD;var D4=function(){var W=_.n.apply(this,arguments)||this;W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(D4,_.n);_.d=D4.prototype;_.d.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"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.d.computeThumbnailClass=function(W){return W.thumbnailOverlays?W.isShow?"thumbnail-show":"thumbnail-movie":W.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.d.computeCommerceSectionClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.d.computeTitleClass=function(W){return W.offers&&W.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.d.onDataChanged=function(){[].concat(_.PG(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(W){W.onShow()})};
D4.prototype.onDataChanged=D4.prototype.onDataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],D4.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],D4.prototype,"darkerDarkTheme",void 0);
_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D4.prototype,"onDataChanged",null);D4=_.t([_.G({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],D4);
_.H(D4,"ytd-ypc-offers-overlay-renderer",function(){if(lHD!==void 0)return lHD;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return lHD=W},{mode:_.Lb("kevlar_poly_si_batch_j028")?1:2});var eYZ;var PLg=function(){this.usedMethods=new Set};
PLg.prototype.add=function(W){this.usedMethods.add(W)};
PLg.prototype.reset=function(){this.usedMethods.clear()};var Kh7=function(W,O){this.query=W;this.previousSearchQuery=O;this.id=pd5++;if(!RY5){O=_.Cv("SBOX_SETTINGS");W="https://"+((O==null?void 0:O.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var b=O==null?void 0:O.REQUEST_LANGUAGE;b&&(W+="&hl="+b);(b=O==null?void 0:O.REQUEST_DOMAIN)&&(W+="&gl="+b);W+="&client=youtube&gs_ri=youtube";(b=O==null?void 0:O.SUGG_EXP_ID)&&(W+="&sugexp="+encodeURIComponent(b));(b=O==null?void 0:O.PSUGGEST_TOKEN)&&(W+="&tok="+b);(O=
O==null?void 0:O.SESSION_INDEX)&&(W+="&authuser="+O);_.e("desktop_enable_visual_suggest")&&(W+="&h=180&w=320&ytvs=1");RY5=W}},vuR=function(W){var O="q="+encodeURIComponent(W.query);
W.previousSearchQuery&&(O+="&pq="+encodeURIComponent(W.previousSearchQuery));return O},guN=function(){var W=_.Cv("SBOX_SETTINGS"),O={};
if(W==null?0:W.SEND_VISITOR_DATA)O["X-Goog-Visitor-Id"]=W==null?void 0:W.VISITOR_DATA;return O},ou7=function(W){var O=RY5;
O+="&gs_id="+W.id.toString(36);O+="&q="+encodeURIComponent(W.query);O+="&cp="+W.query.length;W.previousSearchQuery&&(O+="&pq="+encodeURIComponent(W.previousSearchQuery));(W=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(O+="&video_id="+W);return O},pd5=0,RY5="";var Qb5=_.tr.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,kGD=_.tr.SEARCH_ENTITY_SUGGESTION_MOVIE,sbg=_.tr.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,BoU=_.tr.SEARCH_ENTITY_SUGGESTION_TV_SHOW,rD9=function(W,O){this.text=W;this.bold=O},Do7=function(W,O,b){this.input=O;
this.index=b;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=W[0];this.type=W[1];this.subtypes=W[2];var T;this.displayText=yD((T=W[3])==null?void 0:T.b);var L;this.ignoredPrefix=yD((L=W[3])==null?void 0:L.a);var h,Z;this.hasNewVideo=((h=W[3])==null?void 0:(Z=h.zam)==null?void 0:Z.toString())==="true"?!0:!1;var a;this.visualSuggestUrl=(a=W[3])==null?void 0:a.zai;var m;this.entityType=yD((m=W[3])==null?void 0:m.zap);var w;this.entityName=yD((w=W[3])==null?void 0:w.zao);var A;O=yD((A=
W[3])==null?void 0:A.zaf);var X;this.entityMid=(X=W[3])==null?void 0:X.zae;A=o0g(this.subtypes,this.entityMid);if(O&&A){if(O){X="";switch(A){case "YOUTUBE_ENTITY_TYPE_SONG":X=sbg;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":X=Qb5;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":X=BoU;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":X=kGD}A=A==="YOUTUBE_ENTITY_TYPE_SONG"||A==="YOUTUBE_ENTITY_TYPE_ALBUM"?X+" \u2022  \u2022 "+O:O}else A="";this.entitySubtitle=A}var l;this.externalChannelId=(l=W[3])==null?void 0:l.zav},xo8=
function(W){var O=[],b,T=(b=W.displayText)!=null?b:W.text;
if(W.type===33)return O.push(new rD9(T,!1)),O;if(T.length>=W.input.length&&T.substring(0,W.input.length)===W.input)O.push(new rD9(W.input,!1)),O.push(new rD9(T.substring(W.input.length),!0));else{var L=new Set(W.input.split(/\s/)),h=T.split(/\s/);O=h.map(function(Z,a){return new rD9(Z.trim()+(a===h.length-1?"":" "),!L.has(Z))})}return O};var zYg=function(W){this.rawResponse=["",[],{}];this.suggestions=[];try{var O=JSON.parse(Q5g(W));if(typeof O==="object"&&O!==null)this.rawResponse=O;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(T){console.log("Suggest: Failed to parse SuggestResponse!");return}var b=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(T,L){return new Do7(T,b,L)})};var CLZ=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new PLg;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18420_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},qS5,nuP=function(){qS5||(qS5=new CLZ);
return qS5};
CLZ.prototype.updateSuggestions=function(W){var O=this;this.availableSuggestions.forEach(function(b){O.previousSuggestions[b]=!0});
this.availableSuggestions=W.map(function(b){var T=b.type.toString();b.subtypes.length>0&&(T+="i"+b.subtypes.join("i"),T+="k"+b.suggestionSources.COMPLETE_SERVER.toString());return T})};
var fH1=function(W,O){var b=Date.now();W.firstEditTime<0&&(W.firstEditTime=b);O&&(W.lastQueryBuildTime=b);W.lastEditTime=b};
CLZ.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18420_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var GGk=function(W){var O="";W.availableSuggestions.forEach(function(L){delete W.previousSuggestions[L]});
for(var b=_.S(Object.keys(W.previousSuggestions)),T=b.next();!T.done;T=b.next())T=T.value,W.previousSuggestions[T]&&(O+=(O?"j":"")+T);return O},HAU=function(W,O){var b=[];
O&&(b[1]=O.toString());b[0]="youtube";b[7]=Date.now()-W.startTime;b[6]=W.sessionNumber;W.zeroPrefixSuggestionCount>=0&&(b[33]=W.zeroPrefixSuggestionCount);b[13]=W.outOfSyncResponseCount;if(W.availableSuggestions.length>0){for(var T=O="",L=0,h=_.S(W.availableSuggestions),Z=h.next();!Z.done;Z=h.next())Z=Z.value,Z!==T&&(L>1&&(O+="l"+L),O+=(T?"j":"")+Z,L=0,T=Z),L+=1;L>1&&(O+="l"+L);b[3]=O}b[35]=GGk(W);W.selectedSuggestionIndex>=0&&(b[2]=W.selectedSuggestionIndex);var a;if(O=(a=_.Cv("SBOX_SETTINGS"))==
null?void 0:a.SUGG_EXP_ID)b[19]=W.normalize(O),a=0,W.experimentTriggeredBeforeFinal&&(a|=1),W.experimentTriggeredFinal&&(a|=2),b[20]=a;b[26]=Array.from(W.inputMethodsTracker.usedMethods).join("j");if(W.JSC$18420_totalRoundTripTime>0){b[15]=W.JSC$18420_totalRoundTripTime;b[14]=W.maxRoundTripTime;a=[];for(L=O=0;L<10;L++)T=W.roundTripTimeHistogram[L],T===0?O++:(O>1?a.push(L+"-"+T):O===1?a.push("0j"+T):a.push(T.toString()),O=0);a=a.join("j");b[16]=a}W.zeroPrefixRoundTripTime>0&&(b[36]=W.zeroPrefixRoundTripTime);
W.lastQueryBuildTime>0&&(b[18]=W.lastQueryBuildTime-W.startTime);W.firstEditTime>0&&(b[4]=W.firstEditTime-W.startTime);W.lastEditTime>0&&(b[5]=W.lastEditTime-W.startTime);return b.join(".")};
CLZ.prototype.normalize=function(W){return W.replaceAll(".","-")};
var te9=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var xj=function(){var W=_.n.apply(this,arguments)||this;W.microphoneSpinnerActive=!1;W.noAnimations=!1;W.boundExitClick=function(){W.onExitButtonClick()};
W.speechOverlayClassName="";W.isLevelAnimating=!1;W.playCloseDialogAudioFeedback=!0;W.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return W};
_.R(xj,_.n);_.d=xj.prototype;_.d.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.d.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=QLg()};
_.d.dataChanged=function(){this.logDialog()};
_.d.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var W;(W=this.manager.audioPlayer)!=null&&(W.JSC$17710_audioEnabled=!1)}this.manager.stop();(W=this.manager.audioPlayer)!=null&&(W.JSC$17710_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.d.handleSpeechQueryCompleteAction=function(W){var O=W.navigationAction;O&&(W.trackingParams&&_.A4().graftServerVe(W.trackingParams,this.dialogVe,5),_.bX(this.hostElement,"yt-navigate",{endpoint:O,tempData:this.getNavigationParams(O),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.d.onExitButtonClick=function(){this.closeDialog()};
_.d.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var W;if((W=this.manager)!=null){var O;(O=W.audioPlayer)==null||zd(O,"failure");W.setState("microphone-off");W.stop()}}else(W=this.manager)==null||W.start()};
_.d.transcriptionChanged=function(){var W,O;(((W=this.transcription)==null?0:W.low)||((O=this.transcription)==null?0:O.high))&&this.setState("transcribing",this.transcription)};
_.d.stateChanged=function(){this.setState(this.state,this.transcription)};
_.d.logDialog=function(){var W;(W=this.data)!=null&&W.trackingParams&&(W=_.A4(),_.bh(W,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=W.graftServerVe(this.data.trackingParams,void 0,5))};
_.d.getNavigationParams=function(W){var O={};if(_.e("web_yt_searchbox")){var b=nuP();b.inputMethodsTracker.add(6);b=HAU(b,15);O.gs_l=b;var T;O.oq=((T=_.P(W,_.Ao))==null?void 0:T.query)||""}else if(W=window.ytvoicesearchloggingparams){if(W=W())O.oq=W.oq,O.gs_l=W.gs_l}else _.HU(Error("ll"));return O};
_.d.closeDialog=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.d.setState=function(W,O){if(this.data){var b=this.data,T={};switch(W){case "listening":T={headerText:b.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "timeout":T={headerText:b.promptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,microphoneAriaLabel:b.promptMicrophoneLabel};break;case "microphone-off":T={headerText:b.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:b.promptMicrophoneLabel,
microphoneAriaLabel:b.promptMicrophoneLabel};break;case "transcribing":(O==null?0:O.low)||(O==null?0:O.high)?T={transcriptionLow:O==null?void 0:O.low,transcriptionHigh:O==null?void 0:O.high,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel}:T={headerText:b.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:b.microphoneButtonAriaLabel};break;case "processing":T={headerText:b.loadingHeader,microphoneState:"processing",microphoneAriaLabel:b.microphoneButtonAriaLabel};
break;case "offline":T={headerText:b.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:b.connectionErrorMicrophoneLabel,microphoneAriaLabel:b.connectionErrorMicrophoneLabel};break;case "permission":T={headerText:b.permissionsHeader,bodyLine1:b.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:b.permissionsSubtext};break;case "permission-denied":T={headerText:b.disabledHeader,bodyLine1:b.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:b.disabledSubtext}}T.className=
W;this.speechOverlayState=T;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.d.setMicrophoneState=function(W){var O=this.isLevelAnimating;this.isLevelAnimating=W==="speaking";!O&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=W==="processing"&&!this.noAnimations};
_.d.setClass=function(W){this.speechOverlayClassName&&_.L2(this.hostElement,this.speechOverlayClassName,!1);W&&(this.speechOverlayClassName=W,_.L2(this.hostElement,W,!0))};
_.d.runLevelAnimation=function(){var W=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var O=1+Math.random()*.75,b=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+b/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+O+")");_.sF.addJob(function(){W.runLevelAnimation()},3,b)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
xj.prototype.stateChanged=xj.prototype.stateChanged;xj.prototype.transcriptionChanged=xj.prototype.transcriptionChanged;xj.prototype.onPopupClosed=xj.prototype.onPopupClosed;xj.prototype.dataChanged=xj.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],xj.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],xj.prototype,"rendererStamperBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],xj.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],xj.prototype,"eventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xj.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],xj.prototype,"speechOverlayState",void 0);
_.t([_.C(),_.N("design:type",Object)],xj.prototype,"microphoneSpinnerActive",void 0);_.t([_.C({type:_.e("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.N("design:type",Object)],xj.prototype,"noAnimations",void 0);_.t([_.C({selector:function(W){var O;return(O=W.voiceSearch)==null?void 0:O.transcription}}),
_.N("design:type",Object)],xj.prototype,"transcription",void 0);_.t([_.C({selector:function(W){var O;return(O=W.voiceSearch)==null?void 0:O.overlay}}),
_.N("design:type",String)],xj.prototype,"state",void 0);_.t([_.C(),_.N("design:type",Object)],xj.prototype,"boundExitClick",void 0);_.t([_.El("#microphone-levels"),_.N("design:type",HTMLElement)],xj.prototype,"level",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xj.prototype,"dataChanged",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xj.prototype,"onPopupClosed",null);
_.t([_.Ul("transcription"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xj.prototype,"transcriptionChanged",null);_.t([_.Ul("state"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],xj.prototype,"stateChanged",null);xj=_.t([_.G({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],xj);
_.H(xj,"ytd-voice-search-dialog-renderer",function(){if(eYZ!==void 0)return eYZ;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return eYZ=W},{mode:1});var $oU;var zA=function(){var W=_.n.apply(this,arguments)||this;W.isOverlay=!1;W.hidden=!1;return W};
_.R(zA,_.n);_.d=zA.prototype;_.d.onPopupClosed=function(){this.toggleIconState(!1)};
_.d.computeIcon=function(){var W,O,b;return(O=_.P((W=this.data)==null?void 0:W.icon,Zr8))==null?void 0:(b=O.icon)==null?void 0:b.iconType};
_.d.computeIconBadgeShape=function(){var W;return{iconBadgeType:"cart",iconBadgeText:(W=this.iconBadgeEntity)==null?void 0:W.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.d.onClick=function(){var W;(W=this.data)!=null&&W.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.d.computeHidden=function(W){return!W};
_.d.toggleIconState=function(W){this.iconButton&&(this.iconButton.pressed=W)};
zA.prototype.onPopupClosed=zA.prototype.onPopupClosed;_.t([_.D(_.sh),_.N("design:type",Object)],zA.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],zA.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zA.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],zA.prototype,"isOverlay",void 0);
_.t([_.C({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.N("design:type",Object)],zA.prototype,"hidden",void 0);_.t([_.C({selectorArgs:["data.iconBadgeEntityKey"],selector:function(W,O){return _.IJ(W.entities,"iconBadgeEntity",O)}}),
_.N("design:type",Object)],zA.prototype,"iconBadgeEntity",void 0);_.t([_.El("yt-icon-button"),_.N("design:type",HTMLButtonElement)],zA.prototype,"iconButton",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zA.prototype,"onPopupClosed",null);zA=_.t([_.G({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],zA);
_.H(zA,"ytd-icon-badge-topbar-button-renderer",function(){if($oU!==void 0)return $oU;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return $oU=W},{mode:1});var Ve5;var CT=function(){var W=_.n.apply(this,arguments)||this;W.premiumOptions=[];W.darkerDarkTheme=_.e("web_darker_dark_theme");return W};
_.R(CT,_.n);CT.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Jq.Object.defineProperties(CT.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],CT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Array)],CT.prototype,"premiumOptions",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],CT.prototype,"darkerDarkTheme",void 0);_.t([_.x("premiumOptions"),_.N("design:type",Object),_.N("design:paramtypes",[])],CT.prototype,"hasPremiumOptions",null);
CT=_.t([_.G({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],CT);
_.H(CT,"ytd-offline-promo-content",function(){if(Ve5!==void 0)return Ve5;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return Ve5=W},{mode:1});var NoN;var qH=function(){var W=_.n.apply(this,arguments)||this;W.premiumOptions=[];return W};
_.R(qH,_.n);qH.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var W;this.premiumOptions=g0D((W=this.data)==null?void 0:W.formats)};
qH.prototype.onClickSubmit=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var W;(W=_.ya())==null||W.pause()};
qH.prototype.attached=function(){this.JSC$18440_scroller&&(this.JSC$18440_scroller.dialogElement=this.hostElement.parentNode)};
_.Jq.Object.defineProperties(qH.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
qH.prototype.dataChanged=qH.prototype.dataChanged;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],qH.prototype,"data",void 0);
_.t([_.C({computed:"computeIcon_(data.headersIcon)",value:""}),_.N("design:type",String)],qH.prototype,"headersIcon",void 0);_.t([_.C(),_.N("design:type",Array)],qH.prototype,"premiumOptions",void 0);_.t([_.El("#scroller"),_.N("design:type",Object)],qH.prototype,"JSC$18440_scroller",void 0);_.t([_.x("headersIcon"),_.N("design:type",Object),_.N("design:paramtypes",[])],qH.prototype,"showIcon",null);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],qH.prototype,"dataChanged",null);qH=_.t([_.G({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],qH);
_.H(qH,"ytd-offline-promo-renderer",function(){if(NoN!==void 0)return NoN;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return NoN=W},{mode:1});var MeB;var nT=function(){var W=_.n.apply(this,arguments)||this;W.playbackPauseInterval=NaN;W.isLoading=!1;W.hasError=!1;W.dialogClass="";W.youtubeLabel=_.EO("LOGO_ALT_LABEL",{},"YouTube Home");W.logoName="yt-logos-ext:yt-logo-updated";W.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return W};
_.R(nT,_.n);_.d=nT.prototype;_.d.onDataChange=function(){var W;if(this.showEOMV1Text=!((W=this.data)==null||!W.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.d.attached=function(){this.pausePlayer()};
_.d.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.d.handleLangSelect=function(W){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[W.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.d.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.d.handleSaveConsent=function(W){var O=this;this.showLoadingSpinner();this.showLoadingSpinner();jek(_.P(W,Icg)).catch(function(b){_.z5(new _.pu("Something went wrong when save consent "+(b.message?b.message:b)+"."));O.hideLoadingSpinner();O.showErrorMessage()})};
_.d.handleDisablePersonalization=function(W){var O=this;this.showLoadingSpinner();TO5(_.P(W,ZgR)).then(function(){O.dialog.close();O.resumePlayer()}).catch(function(b){_.z5(new _.pu("Something went wrong when disable personalization "+(b.message?b.message:b)+"."));
O.hideLoadingSpinner();O.showErrorMessage()})};
_.d.showLoadingSpinner=function(){var W=this;this.showSpinnerJobId=_.sF.addLowPriorityJob(function(){W.isLoading=!0},500)};
_.d.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.sF.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.d.showErrorMessage=function(){var W=this;this.hasError=!0;_.sF.addLowPriorityJob(function(){W.hasError=!1},2E3)};
_.d.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.Ie(function(){try{var W=_.ya();W&&W.pause()}catch(O){}},100))};
_.d.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var W=_.ya();W&&W.play()}catch(O){}};
_.Jq.Object.defineProperties(nT.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var O=["SHIELD","WARNING","BAR_CHART"],b=this.data.eomV1Text.essentialCookieMsg.items,T=0;T<O.length&&T<b.length;T++)W.push({icon:O[T],text:b[T]});return W}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var W;if((W=this.data)==null||!W.eomV1Text)return[];W=[];for(var O=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],b=this.data.eomV1Text.nonEssentialCookieMsg.items,T=0;T<O.length&&T<b.length;T++)W.push({icon:O[T],text:b[T]});return W}}});
nT.prototype.onDataChange=nT.prototype.onDataChange;_.t([_.C(),_.N("design:type",Object)],nT.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],nT.prototype,"showEOMV1Text",void 0);_.t([_.C(),_.N("design:type",Object)],nT.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Object)],nT.prototype,"hasError",void 0);_.t([_.C(),_.N("design:type",Number)],nT.prototype,"showSpinnerJobId",void 0);_.t([_.C(),_.N("design:type",Object)],nT.prototype,"dialogClass",void 0);
_.t([_.El("#dialog"),_.N("design:type",Object)],nT.prototype,"dialog",void 0);_.t([_.El("#cb-header"),_.N("design:type",HTMLElement)],nT.prototype,"header",void 0);_.t([_.El("#lang-select"),_.N("design:type",HTMLElement)],nT.prototype,"langSelect",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],nT.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],nT.prototype,"ytComponentBehavior",void 0);
_.t([_.C(),_.N("design:type",String)],nT.prototype,"youtubeLabel",void 0);_.t([_.C(),_.N("design:type",Object)],nT.prototype,"logoName",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],nT.prototype,"onDataChange",null);_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nT.prototype,"eomEssentialCookieMsgItems",null);
_.t([_.x("data"),_.N("design:type",Array),_.N("design:paramtypes",[])],nT.prototype,"eomNonEssentialCookieMsgItems",null);nT=_.t([_.G({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],nT);
_.H(nT,"ytd-consent-bump-v2-lightbox",function(){if(MeB!==void 0)return MeB;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return MeB=W},{mode:1});var ui2;var fT=function(){return _.n.apply(this,arguments)||this};
_.R(fT,_.n);fT.prototype.ready=function(){if(!_.lq()||pi9)var W=!0;else pi9=!0,W=!1;W||(W=document.querySelector("ytd-app"),W||(W=document.body),this.internalLightBox=_.Q(W).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.t([_.C(),_.N("design:type",Object)],fT.prototype,"data",void 0);_.t([_.El("#lightbox"),_.N("design:type",Object)],fT.prototype,"lightBox",void 0);fT=_.t([_.G({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],fT);
_.H(fT,"ytd-consent-bump-v2-renderer",function(){if(ui2!==void 0)return ui2;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ui2=W},{mode:1});var JDB;var cD5;var FhZ;var GA=function(){var W=_.n.apply(this,arguments)||this;W.ephemeralActionsEnabled=_.e("web_ephemeral_actions");return W};
_.R(GA,_.n);_.d=GA.prototype;_.d.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&fQD(this.toastManager,this.toastType)};
_.d.open=function(W){this.toast&&(this.ephemeralAction&&_.iq().resolve(_.SF).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=W!=null?W:0,this.toastManager.enqueue(this.toast,W)):this.toast.open())};
_.d.close=function(W){var O;(O=this.toast)==null||O.close();this.toastManager&&W===1&&fQD(this.toastManager,W)};
_.d.refit=function(){var W;(W=this.toast)==null||W.refit()};
_.d.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var W;(W=this.toast)==null||W.close()}};
_.d.setVerticalOffset=function(W){this.toast&&(this.toast.verticalOffset=W,this.toast.fit())};
_.d.computeButtonClass_=function(W){return W?"toast-button":""};
_.d.computeText_=function(W){return _.NX(W)};
_.d.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.C6("toast-opened-changed",this.toastOpened))};
_.d.updateToastOpenedFromBinding=function(W){this.toastOpened=W.detail.value};
_.Jq.Object.defineProperties(GA.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var W,O,b=(W=this.data)==null?void 0:(O=W.actionButton)==null?void 0:O.buttonRenderer;return(b==null?void 0:b.command)||(b==null?void 0:b.serviceEndpoint)||(b==null?void 0:b.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var W=[],O;((O=this.data)==null?0:O.responseText)&&W.push(_.NX(this.data.responseText));var b;((b=this.data)==null?0:b.subText)&&W.push(_.NX(this.data.subText));var T,L;if((T=this.data)==null?0:(L=T.actionButton)==null?0:L.buttonRenderer){var h,Z;W.push(((h=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(Z=h.accessibilityData)==null?void 0:Z.label)||_.NX(this.data.actionButton.buttonRenderer.text))}return W.filter(function(a){return a}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var W,O;return(O=(W=this.toast)==null?void 0:W.opened)!=null?O:!1}}});
GA.prototype.toastOpenedChangedForBinding=GA.prototype.toastOpenedChangedForBinding;GA.prototype.toastOpenedChanged=GA.prototype.toastOpenedChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],GA.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],GA.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],GA.prototype,"duration",void 0);
_.t([_.C(),_.N("design:type",Number)],GA.prototype,"toastType",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],GA.prototype,"useCloseButton",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],GA.prototype,"closeToastOnActionButtonClick",void 0);_.t([_.C({value:function(){return _.EO("SBOX_INAPPROPRIATE_CANCEL")}}),
_.N("design:type",String)],GA.prototype,"closeButtonAriaLabel",void 0);_.t([_.C(),_.N("design:type",Boolean)],GA.prototype,"toastOpened",void 0);_.t([_.C(),_.N("design:type",Boolean)],GA.prototype,"hasOpened",void 0);_.t([_.C(),_.N("design:type",Object)],GA.prototype,"ephemeralActionsEnabled",void 0);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],GA.prototype,"command",null);
_.t([_.x("ephemeralActionsEnabled","labelText","command","duration"),_.N("design:type",Object),_.N("design:paramtypes",[])],GA.prototype,"ephemeralAction",null);_.t([_.x("ephemeralAction"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],GA.prototype,"hasEphemeralAction",null);_.t([_.El("#toast"),_.N("design:type",Object)],GA.prototype,"toast",void 0);_.t([_.C({value:function(){return{style:"call-to-action-inverse"}}}),
_.N("design:type",Object)],GA.prototype,"buttonOverrides",void 0);_.t([_.C({value:{style:"mono-inverse"}}),_.N("design:type",Object)],GA.prototype,"closeButtonOverrides",void 0);_.t([_.C({value:function(){return _.iq().resolve(_.OT(_.Hon))}}),
_.N("design:type",Object)],GA.prototype,"toastManager",void 0);_.t([_.x("data.responseText","data.subText","data.actionButton"),_.N("design:type",Object),_.N("design:paramtypes",[])],GA.prototype,"labelText",null);_.t([_.m5("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GA.prototype,"toastOpenedChanged",null);
_.t([_.m5("toastOpened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],GA.prototype,"toastOpenedChangedForBinding",null);GA=_.t([_.sl({is:"yt-notification-action-renderer",disableElementRegistration:!0})],GA);
_.H(GA,"yt-notification-action-renderer",function(){if(FhZ===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;cD5===void 0&&(cD5=document.createElement("template"));var T=cD5;b.call(O,T.content.cloneNode(!0),W.content.firstChild);FhZ=W}W=FhZ;return W},{mode:2});var Hn=function(){var W=_.n.apply(this,arguments)||this;W.duration=4E3;W.downloadingCount=0;W.downloadedCount=0;W.downloadingOnlySmartDownloads=!1;W.sessionTotalDownloads=0;W.sessionDownloaded=0;W.previousSessionsDownloaded=0;W.totalDownloadPercentage=0;W.currentDownloadProgress=0;W.currentDownloadPercentage=0;W.isLeaderTab=!0;W.isFullScreen=!1;W.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};W.boundBeforeUnload=function(O){W.isLeaderTab&&W.downloadingCount>0&&(O.preventDefault(),
O.returnValue=!0)};
return W};
_.R(Hn,_.n);_.d=Hn.prototype;
_.d.open=function(){this.updateDownloadState();if(this.data){var W=this.sessionDownloaded+1,O=this.sessionTotalDownloads>1?_.EO("VIDEOS_DOWNLOADING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+W+"/"+this.sessionTotalDownloads):_.EO("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(O=this.sessionTotalDownloads>1?_.EO("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:W.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
W+"/"+this.sessionTotalDownloads):_.EO("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));W=this.isLeaderTab?_.EO("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.NX(this.data.responseText)!==O||_.NX(this.data.subText)!==W)this.set("data.responseText",_.VV(O)),this.set("data.subText",_.VV(W)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.d.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.d.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.d.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.d.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var W=this.downloadedCount-this.previousSessionsDownloaded;W<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-W);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.d.handleFullscreenChange=function(W){(this.isFullScreen=W)||this.updatePopup()};
Hn.prototype.updateCurrentDownloadProgress=Hn.prototype.updateCurrentDownloadProgress;Hn.prototype.updatePopup=Hn.prototype.updatePopup;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],Hn.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],Hn.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],Hn.prototype,"actionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"duration",void 0);_.t([_.C({selector:function(W){return _.lw2(W.entities).length}}),
_.N("design:type",Object)],Hn.prototype,"downloadingCount",void 0);_.t([_.C({selector:YTB}),_.N("design:type",Object)],Hn.prototype,"downloadedCount",void 0);_.t([_.C({selector:function(W){var O=_.lw2(W.entities);return mmB(W.entities,O)}}),
_.N("design:type",Object)],Hn.prototype,"downloadingOnlySmartDownloads",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"sessionTotalDownloads",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"sessionDownloaded",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"previousSessionsDownloaded",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"totalDownloadPercentage",void 0);
_.t([_.C({selector:function(W){var O;W=(O=_.lw2(W.entities))!=null?O:[];return W.length>0?_.S_2(W.slice(-1)):0}}),
_.N("design:type",Object)],Hn.prototype,"currentDownloadProgress",void 0);_.t([_.C(),_.N("design:type",Object)],Hn.prototype,"currentDownloadPercentage",void 0);_.t([_.C({selector:_.RUX}),_.N("design:type",Object)],Hn.prototype,"isLeaderTab",void 0);_.t([_.El("yt-notification-action-renderer"),_.N("design:type",Object)],Hn.prototype,"notificationActionRenderer",void 0);
_.t([_.Ul("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hn.prototype,"updatePopup",null);_.t([_.Ul("currentDownloadProgress"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Hn.prototype,"updateCurrentDownloadProgress",null);Hn=_.t([_.G({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Hn);
_.H(Hn,"ytd-video-download-toast-renderer",function(){if(JDB!==void 0)return JDB;var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return JDB=W},{mode:1});var yDU;var WGg;var jI=function(){return _.n.apply(this,arguments)||this};
_.R(jI,_.n);jI.prototype.computeIsRedLogo=function(W,O){!W&&O&&(W=O);return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
jI.prototype.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],jI.prototype,"componentBehavior",void 0);_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.N("design:type",Boolean)],jI.prototype,"isRedLogo",void 0);_.t([_.C({computed:"computeLogoName(data)"}),_.N("design:type",String)],jI.prototype,"logoName",void 0);_.t([_.C({value:{}}),_.N("design:type",Object)],jI.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],jI.prototype,"logoType",void 0);jI=_.t([_.G({disableElementRegistration:!0,is:"ytd-logo"})],jI);
_.H(jI,"ytd-logo",function(){if(WGg!==void 0)return WGg;var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return WGg=W},{mode:_.Lb("kevlar_poly_si_batch_j074")?1:2});var Tk=function(){var W=_.n.apply(this,arguments)||this;W.animationRef={};return W};
_.R(Tk,_.n);_.d=Tk.prototype;_.d.attached=function(){document.addEventListener("yt-navigate-finish",_.Ii(this,this.logYoodle))};
_.d.detached=function(){document.removeEventListener("yt-navigate-finish",_.Ii(this,this.logYoodle))};
_.d.logYoodle=function(){var W,O;if((W=this.data)==null?0:(O=W.loggingDirectives)==null?0:O.trackingParams)this.ytRendererBehavior.markDirty(),_.A4().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.d.computeHideImg=function(W,O){return!!W||!!O};
_.d.computeHideYtdLogo=function(W,O){return!W||!!O};
_.d.computeHideLottie=function(W){return!W};
_.d.computeIsRedLogo=function(W){return W==="YOUTUBE_RED_LOGO"||W==="YOUTUBE_PREMIUM_LOGO"};
_.d.renderLogoEntity=function(){var W=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),O=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getLogoTitleText(this.data),T=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==W&&(this.url=W);this.animatedUrl!==O&&(this.animatedUrl=O);this.logoTitleText!==b&&(this.logoTitleText=b);this.lottieUrl!==T&&(this.lottieUrl=T,this.lottiePlayerProps=this.computeLottiePlayerProps(T))};
_.d.getSanitizedThumbnail=function(W){return W&&W.thumbnails?_.V9X(W.thumbnails,122)||"":""};
_.d.getThumbnailUrl=function(W,O){if(!O)return"";var b,T;W=W?(b=O.darkThemeLogo)==null?void 0:b.thumbnail:(T=O.lightThemeLogo)==null?void 0:T.thumbnail;return this.getSanitizedThumbnail(W)};
_.d.getAnimatedThumbnailUrl=function(W,O){return O?this.getSanitizedThumbnail(W?O.darkThemeAnimatedLogo:O.lightThemeAnimatedLogo):""};
_.d.getLogoTitleText=function(W){if(W)return _.NX(W.tooltipText)};
_.d.computeLogoIcon=function(W,O){if(O){var b,T;return W?(b=O.darkThemeLogo)==null?void 0:b.icon:(T=O.lightThemeLogo)==null?void 0:T.icon}};
_.d.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.d.getLottieUrl=function(W,O){var b,T,L,h;return W?O==null?void 0:(b=O.darkThemeLogo)==null?void 0:(T=b.lottieAnimation)==null?void 0:T.url:O==null?void 0:(L=O.lightThemeLogo)==null?void 0:(h=L.lottieAnimation)==null?void 0:h.url};
_.d.computeLottiePlayerProps=function(W){if(W){var O;if((O=this.animationRef)==null?0:O.lottieEl){var b;(b=this.animationRef)==null||b.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:W,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.d.onLottieError=function(){this.data&&this.lottieUrl&&_.bX(this.hostElement,"yoodle-error")};
_.d.onImgError=function(){this.data&&!this.lottieUrl&&_.bX(this.hostElement,"yoodle-error")};
Tk.prototype.playAnimation=Tk.prototype.playAnimation;Tk.prototype.renderLogoEntity=Tk.prototype.renderLogoEntity;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Tk.prototype,"data",void 0);_.t([_.C({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],Tk.prototype,"hideImg",void 0);
_.t([_.C({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.N("design:type",Boolean)],Tk.prototype,"hideYtdLogo",void 0);_.t([_.C({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.N("design:type",Boolean)],Tk.prototype,"hideLottie",void 0);_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.N("design:type",Boolean)],Tk.prototype,"isRedLogo",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Tk.prototype,"useDarkThemeYoodle",void 0);_.t([_.C(),_.N("design:type",String)],Tk.prototype,"url",void 0);_.t([_.C(),_.N("design:type",String)],Tk.prototype,"animatedUrl",void 0);_.t([_.C(),_.N("design:type",String)],Tk.prototype,"logoTitleText",void 0);_.t([_.C({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.N("design:type",Object)],Tk.prototype,"logoIcon",void 0);_.t([_.C(),_.N("design:type",Object)],Tk.prototype,"logoType",void 0);
_.t([_.C(),_.N("design:type",String)],Tk.prototype,"lottieUrl",void 0);_.t([_.C(),_.N("design:type",Object)],Tk.prototype,"lottiePlayerProps",void 0);_.t([_.C(),_.N("design:type",Object)],Tk.prototype,"animationRef",void 0);_.t([_.m5("data"),_.m5("useDarkThemeYoodle"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Tk.prototype,"renderLogoEntity",null);
_.t([_.ai("click"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],Tk.prototype,"playAnimation",null);Tk=_.t([_.G({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],Tk);
_.H(Tk,"ytd-yoodle-renderer",function(){if(yDU!==void 0)return yDU;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return yDU=W},{mode:_.Lb("kevlar_poly_si_batch_j074")?1:2});var OQN;var iQ7;var La=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return W};
_.R(La,_.n);_.d=La.prototype;_.d.onYoodleError=function(){_.e("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.d.computeLogoName=function(W){W=this.componentBehavior.computeIcon_(W);return W===""?"yt-logos-ext:yt-logo-updated":W};
_.d.computeTitle=function(W,O,b){return b&&(O==null?0:O.tooltipText)?_.NX(O.tooltipText):_.NX(W)};
_.d.computeAriaLabel=function(W,O,b){return b&&(O==null?0:O.tooltipText)?_.NX(W):""};
_.d.computeShowYoodle=function(W,O,b){return!W||!O&&!!b&&!_.PQ.isEmpty(b)};
_.d.onNavigateHomeAction=function(){if(_.e("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W;(W=_.Q(this.hostElement).querySelector(".yt-simple-endpoint"))==null||W.click()}};
_.d.computeLogoHref=function(W,O,b){var T;(b==null?0:b.onTapCommand)?T=this.componentBehavior.computeHref_(b.onTapCommand):W&&(T=this.componentBehavior.computeHref_(W));return T?T:O};
_.d.computeCommand=function(W,O){return(O==null?void 0:O.onTapCommand)||W};
_.d.getEndpointForm=function(){if(_.e("kevlar_topbar_disable_cache_only_home")){var W=_.iq().resolve(_.sZ),O=lf7(W.getState())||"";W=_.Cx8(W.getState())||"";return{disableCache:O==="ytd-browse"&&W==="home"}}return{disableCache:!0}};
La.prototype.onYoodleError=La.prototype.onYoodleError;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],La.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],La.prototype,"componentBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],La.prototype,"ytdReduxBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],La.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],La.prototype,"countryCode",void 0);_.t([_.C({selectorArgs:["data.overrideEntityKey"],selector:function(W,O){return _.IJ(W.entities,"logoEntity",O)}}),
_.N("design:type",Object)],La.prototype,"logoEntity",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.N("design:type",Boolean)],La.prototype,"showYoodle",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],La.prototype,"yoodleError",void 0);_.t([_.C({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],La.prototype,"titleText",void 0);
_.t([_.C({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.N("design:type",String)],La.prototype,"ariaLabelText",void 0);_.t([_.C({value:"/"}),_.N("design:type",String)],La.prototype,"defaultEndpointUrl",void 0);_.t([_.C({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.N("design:type",String)],La.prototype,"endpointUrl",void 0);
_.t([_.C({computed:"computeCommand(data.endpoint, logoEntity)"}),_.N("design:type",String)],La.prototype,"command",void 0);_.t([_.C(),_.N("design:type",Object)],La.prototype,"logoType",void 0);_.t([_.C({}),_.N("design:type",Boolean)],La.prototype,"useDarkThemeYoodle",void 0);_.t([_.ai("yoodle-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],La.prototype,"onYoodleError",null);La=_.t([_.G({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],La);
_.H(La,"ytd-topbar-logo-renderer",function(){if(iQ7!==void 0)return iQ7;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return iQ7=W},{mode:_.Lb("kevlar_poly_si_batch_j027")?1:2});var bQZ=0;var jr7=_.tr.SEARCH_APPEND_LABEL,TZ2=_.tr.SUGGESTION_NEW_VIDEOS_TEXT,LGP=_.tr.SUGGESTION_THUMBNAIL_LABEL,diB=_.J1(function(W){function O(XU){var u1,pH;return _.I(function(IN){if(IN.nextAddress==1)return u1=new Request(XU),_.LI(IN,2),_.Y(IN,fetch(u1,{credentials:"include"}),4);if(IN.nextAddress!=2)return T1(!0),_.H3(IN,0);pH=_.ID(IN);_.z5(pH);_.aD(IN)})}
var b=W.isHighlighted;var T=W.suggestion;var L=W.onClickCallback;var h=W.onHoverUpdateCallback;var Z=W.labels;var a=W.queryBuilderFunction;var m=W.onRemoveCallback;var w=W.suggestionIndex;var A=W.generateUniqueId;var X=W.highlightedId;var l=W.useScrollMargin;var p=W.isKeyboardMode;var K=null,k=null,r=_.uy(),q=_.uy(),f=_.J8(function(XU){XU&&_.sQ(237477,XU,k,function(u1){k=u1})}),M=_.J8(function(XU){XU&&_.sQ(237477,XU,k,function(u1){k=u1})}),V=_.XL(function(XU){if((XU==null?void 0:XU.button)===2)return XU.preventDefault(),
!1;
var u1=_.Bb();u1&&K&&_.Nk(u1,K,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var pH;L(XU,T().text,T().index,T().entityMid,XU==null?void 0:(pH=XU.detail)==null?void 0:pH.wasSelectedByKeyboard);return!1}),jQ=function(){return T().type===35},y=function(){return _.e("desktop_enable_single_suggestion_highlight")},d8=function(){return _.Lu("desktop_suggestions_panel_row_height")||0},pE=function(){var XU;
return _.e("desktop_enable_new_video_metadata")&&((XU=T())==null?void 0:XU.hasNewVideo)===!0},Qh=function(){return _.e("desktop_enable_visual_suggest")},KE=function(){var XU;
if(XU=_.e("desktop_enable_entity_suggest")){var u1=T();XU=!!o0g(u1.subtypes);u1=!!u1.entityMid;XU=XU||u1}return XU},fE=function(){return T().entitySubtitle},r8=function(){return y()?(b==null?void 0:b())||f0()&&!(p==null?0:p()):(b==null?void 0:b())||f0()},nE=function(){var XU=_.Cv("SBOX_SETTINGS");
return jQ()&&!(XU==null?0:XU.HIDE_REMOVE_LINK)},tX=function(){return xo8(T())},yh,Gw=!((yh=_.iq().resolve(_.OT(_.t4)))==null||!yh()),KH=function(){return jQ()?_.e("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},h9=function(){return Z==null?void 0:Z().SUGGESTION_DISMISS_LABEL},I7=function(){return Z==null?void 0:Z().SUGGESTION_DISMISSED_LABEL};
yh=_.S(_.wu(!1,void 0,"DYKome"));W=yh.next().value;var T1=yh.next().value;yh=_.S(_.wu(!1,void 0,"H8xu6b"));var Y$=yh.next().value,aR=yh.next().value,f0=Y$,SQ=_.XL(function(){a(q.value.innerText);return!1}),R7=_.XL(function(XU){XU.preventDefault();
return!1}),zw=_.XL(function(XU){var u1=T().text,pH=_.Cv("SBOX_SETTINGS"),IN="https://"+(pH.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
IN+="&delq="+encodeURIComponent(u1);(u1=pH==null?void 0:pH.PSUGGEST_TOKEN)&&(IN+="&tok="+u1);(pH=pH==null?void 0:pH.SESSION_INDEX)&&(IN+="&authuser="+pH);O(IN);XU.preventDefault();(XU=_.Bb())&&k&&_.Nk(XU,k,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");m(w==null?void 0:w());return!1}),G1=_.XL(function(){if(y()&&(p==null?0:p()))return!1;
aR(!0);h(!0);return!1}),k$=_.XL(function(){aR(!1);
h(!1);return!1});
yh=_.S(_.wu("",void 0,"H3zPCe"));var Nz=yh.next().value,NE=yh.next().value;_.oW(function(){nE()&&NE(A==null?void 0:A(w==null?void 0:w()));r.value&&_.sQ(12453,r.value,K,function(XU){K=XU})});
return _.E(_.U,{cond:W,then:function(){var XU={};return _.E("div",{class:_.YS("ytSuggestionComponentRemovedText",(XU.ytSuggestionComponentLargerRemovedText=function(){return Qh()},XU)),
style:function(){return d8()>0?"height: "+d8()+"px;":""},
role:"button"},I7)},
else:function(){var XU={},u1={};return _.E("div",{class:_.YS("ytSuggestionComponentSuggestion",(XU.ytSuggestionComponentSuggestionHover=function(){return!y()},XU.ytSuggestionComponentHighlighted=r8,XU.ytSuggestionComponentPersonalizedSuggestion=jQ,XU.ytSuggestionComponentMweb=!1,XU.ytSuggestionComponentLargerSuggestion=function(){return pE()||Qh()},XU.ytSuggestionComponentThumbnailSuggestion=function(){return Qh()},XU.ytSuggestionComponentRoundedSuggestion=function(){return _.e("desktop_enable_scrollable_suggestions_panel")&&
_.e("desktop_enable_suggestions_panel_padding")},XU.ytSuggestionComponentThumbnailPadding=function(){return Qh()&&!jQ()},XU)),
style:function(){return d8()>0?"height: "+d8()+"px;":""},
role:"presentation","on:mousedown":V,"on:mouseover":G1,"on:mouseout":k$,el:r},_.E("div",{class:_.YS("ytSuggestionComponentText",(u1.ytSuggestionComponentScrollMargin=l,u1)),"aria-label":function(){return pE()?T().text+" "+TZ2:T().text},
id:function(){return A==null?void 0:A(w==null?void 0:w())},
"on:mousedown":V,role:"option"},_.E(_.U,{cond:function(){return T().type!==33},
then:function(){return _.E(_.Ps,{icon:KH,className:"ytSuggestionComponentIcon"})}}),_.E("div",{class:"ytSuggestionComponentLeftContainer"},_.E("span",{el:q,
role:"button",tabindex:0},_.E(_.pv,{each:tX},function(pH){return pH.bold?_.E("span",{class:"ytSuggestionComponentBold"},pH.text):_.E("span",null,pH.text)})),_.E(_.U,{cond:function(){return KE()&&!!T().entitySubtitle||pE()},
then:function(){return _.E("div",{class:"ytSuggestionComponentMetadataContainer"},_.E(_.U,{cond:function(){return KE()&&!!T().entitySubtitle},
then:function(){return _.E("div",{class:"ytSuggestionComponentEntitySubtitle"},fE)}}),_.E(_.U,{cond:function(){return pE()},
then:function(){return _.E("div",{class:"ytSuggestionComponentNewVideoContainer"},_.E("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.E("div",{class:"ytSuggestionComponentNewVideoText"},TZ2))}}))}}))),_.E("div",{class:"ytSuggestionComponentRightContainer"},_.E(_.U,{cond:function(){return Qh()&&T().visualSuggestUrl!==void 0},
then:function(){var pH={};return _.E("div",{class:"ytSuggestionComponentThumbnailContainer"},_.E("img",{"aria-label":LGP,class:_.YS("ytSuggestionComponentVisualSuggestThumbnail",(pH.ytSuggestionComponentCircularFrame=function(){return KE()&&T().subtypes.includes(790)},pH.ytSuggestionComponentEntitySuggestThumbnail=function(){return KE()},pH)),
src:function(){return T().visualSuggestUrl}}))}}),_.E(_.vU,null,_.E(_.RW,{when:function(){return Qh()&&nE()}},function(){var pH={};
return _.E("button",{class:_.YS("ytSuggestionComponentRemoveLinkClearButton",(pH.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Nz()&&Nz()===(X==null?void 0:X())},pH.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!r8()},pH)),
el:M,"on:mousedown":zw,"aria-label":h9,id:function(){return Nz()}},_.E(_.Ps,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.E(_.RW,{when:function(){return!(Qh()&&T().visualSuggestUrl!==void 0)&&nE()}},function(){var pH={};
return _.E("a",{class:_.YS("ytSuggestionComponentRemoveLink",(pH.ytSuggestionComponentRemoveLinkDark=Gw,pH.ytSuggestionComponentRemoveLinkSelected=function(){return Nz()&&Nz()===(X==null?void 0:X())},pH)),
el:f,"on:mousedown":zw,"aria-label":h9,tabindex:0,role:"button",id:function(){return Nz()}},h9)}),_.E(_.RW,{when:function(){return!1}},function(){return _.E("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":SQ,"on:mousedown":R7,role:"button","aria-label":jr7},_.E(_.Ps,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"jg");var hP2=_.J1(function(){var W=_.XL(function(){nuP().inputMethodsTracker.add(3);var O,b=(O=_.Cv("SBOX_SETTINGS"))==null?void 0:O.REQUEST_LANGUAGE;if(b)return _.qp("//www.google.com/textinputassistant/14/"+b+"_tia.js"),!1});
return _.E("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.E("button",{class:"ytdTextInputAssistantButton","on:click":W},_.E("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"kg");var Sg7=function(){this.cache=new Map},ZQU=function(W){for(var O=_.S(W.cache.entries()),b=O.next();!b.done;b=O.next()){var T=_.S(b.value);
b=T.next().value;T=T.next().value;T.suggestions.some(function(L){return L.type===35})&&W.cache.delete(b)}};var Iy5=_.tr.SEARCH,ay9=_.tr.SEARCH_CLEAR_LABEL,miP=new _.MV("FAKE_SUGGEST_RESPONSE");_.O1(_.J1(function(W){function O(){XU||(XU=setTimeout(function(){pH()},1E3))}
function b(e5,Uv,m8){if(e5.trim()){NE=e5;_.zT("REFINEMENTS_TUPLE",void 0);k$=!0;var p0;Uv=HAU(f0,Uv);var S5=(p0=W.searchEndpoint)==null?void 0:p0.call(W);p0=I7.value.value;S5||(S5=C81);var UB;(UB=_.P(S5.commandMetadata,_.F9))!=null&&UB.url||(UB=Error("ml`"+JSON.stringify(S5)),_.Dt(UB),S5=C81);UB=_.PQ.unsafeClone(S5);S5=_.nB(_.P(UB.commandMetadata,_.F9).url,"search_query",e5);_.GP(location.href,"sv")==="1"&&(_.P(UB,_.Ao).params="EgOAAgE%3D",S5=_.nB(S5,"sv","1"));_.P(UB,_.Ao)&&(_.P(UB,_.Ao).query=e5);
S5=S5.replace(/%20/g,"+");_.P(UB.commandMetadata,_.F9).url=S5;m8=_.e("desktop_enable_entity_suggest")?{entityMid:m8}:{};_.iq().resolve(_.bq).resolveCommand(UB,{form:{tempData:Object.assign({},{gs_l:Uv,oq:p0!=null?p0:e5},m8)}});pH();I7.value.value=e5;I7.value.blur();f0.reset()}}
function T(e5){return _.I(function(Uv){return Uv.return(new Promise(function(m8){var p0=new XMLHttpRequest;p0.open("GET",ou7(e5),!0);p0.withCredentials=!0;var S5=_.Cv("SBOX_SETTINGS");(S5==null?0:S5.SEND_VISITOR_DATA)&&p0.setRequestHeader("X-Goog-Visitor-Id",S5==null?void 0:S5.VISITOR_DATA);p0.onload=function(){m8(p0.responseText)};
p0.onerror=function(){_.z5(Error("nl"));m8(null)};
setTimeout(function(){p0.abort()},1E4);
p0.send(null)}))})}
function L(e5){var Uv,m8,p0,S5;return _.I(function(UB){switch(UB.nextAddress){case 1:return Uv={credentials:"include",headers:guN()},window.AbortController&&(m8=new AbortController,setTimeout(function(){m8.abort("ytsbox-suggest-timeout")},1E4),Uv.signal=m8.signal),_.LI(UB,2),_.Y(UB,fetch(ou7(e5),Uv),4);
case 4:p0=UB.yieldResult.text();_.H3(UB,3);break;case 2:return S5=_.ID(UB),S5!=="ytsbox-abort-last"&&S5!=="ytsbox-suggest-timeout"&&_.z5(S5),UB.return(null);case 3:return UB.return(p0)}})}
function h(e5){var Uv,m8,p0;return _.I(function(S5){switch(S5.nextAddress){case 1:if(Uv=_.iq().resolve(_.OT(miP)))return S5.return(Uv);m8=Date.now();O();return _.e("yt_searchbox_xhr")?_.Y(S5,T(e5),5):_.Y(S5,L(e5),4);case 4:p0=S5.yieldResult;S5.jumpTo(3);break;case 5:p0=S5.yieldResult;case 3:if(p0){XU&&(clearTimeout(XU),XU=null);var UB=f0,gD=m8,xh=e5.query.length===0;gD=Date.now()-gD;xh?UB.zeroPrefixRoundTripTime=gD:(UB.JSC$18420_totalRoundTripTime+=gD,UB.maxRoundTripTime=Math.max(UB.maxRoundTripTime,
gD),xh=Math.floor(gD/100),xh>=te9.length?++UB.roundTripTimeHistogram[9]:++UB.roundTripTimeHistogram[te9[xh]])}return S5.return(p0)}})}
function Z(e5){var Uv,m8,p0;return _.I(function(S5){if(S5.nextAddress==1)return(Uv=aR.cache.get(vuR(e5)))?S5.return(Uv):_.Y(S5,h(e5),2);m8=S5.yieldResult;if(m8===null)return S5.return(null);p0=new zYg(m8);e5.query.length===0&&p0.suggestions.length===0||aR.cache.set(vuR(e5),p0);return S5.return(p0)})}
function a(e5){var Uv,m8;return _.I(function(p0){if(p0.nextAddress==1){Nz=!1;var S5=NE;S5=_.Wei()==="search"?(_.GP(location.href,"search_query")||_.GP(location.href,"q"))===S5:!1;Uv=new Kh7(e5,S5?NE:null);return _.Y(p0,Z(Uv),2)}m8=p0.yieldResult;if(m8===null)return p0.return();Uv.query.length===0&&(f0.zeroPrefixSuggestionCount=m8.suggestions.length);if(Uv.id<=u1)return f0.outOfSyncResponseCount++,p0.return();if(document.activeElement!==I7.value)return p0.return();u1=Uv.id;var UB=f0,gD=m8.rawResponse[2]||
{};UB.experimentTriggeredBeforeFinal||(UB.experimentTriggeredBeforeFinal=UB.experimentTriggeredFinal);UB.experimentTriggeredFinal=!!gD.e;f0.updateSuggestions(m8.suggestions);r(-1);yh([]);m8.suggestions!==p()&&Um(m8.suggestions.length);K(m8.suggestions);pE(m8.suggestions.length>0&&m8.suggestions[0].type===33);Y$&&(Y$.hidden=m8.suggestions.length===0,d8()?(Y$.style.minWidth="",UB=Y$.style,gD=(S5=p()[0])==null?void 0:S5.ignoredPrefix,UB.marginLeft=(gD?Math.min(gD.length*6,T1.value.offsetWidth):0).toString()+
"px"):(Y$.style.minWidth=T1.value.offsetWidth+"px",Y$.style.marginLeft="0"),rC());_.aD(p0)})}
function m(){if(!k$)return!1;var e5=_.Cv("REFINEMENTS_TUPLE");return e5?(e5=e5[1].map(function(Uv,m8){return new Do7([Uv,0,[71]],I7.value.value,m8)}),p()!==e5&&Um(e5.length),yh([]),K(e5),f0.updateSuggestions(e5),k$=!1,Y$.hidden=e5.length===0,Nz=e5.length>0,!0):!1}
function w(){var e5=I7.value.value;(typeof e5==="string"||e5 instanceof String)&&e5!==""?V(!0):V(!1)}
function A(){if(_.Wei()==="search"){var e5=window.location.href;try{var Uv=_.GP(e5,"search_query")||_.GP(e5,"q")||""}catch(m8){Uv=""}Uv&&(I7.value.value=Uv,V(!0))}}
var X=_.S(_.wu([],void 0,"kGFAjf")),l=X.next().value;X=X.next().value;var p=l,K=X;l=_.S(_.wu(-1,void 0,"mLGL9e"));var k=l.next().value,r=l.next().value;l=_.S(_.wu(-1,void 0,"u2rYdc"));var q=l.next().value,f=l.next().value;l=_.S(_.wu(!1,void 0,"W9DFC"));var M=l.next().value,V=l.next().value;l=_.S(_.wu(!1,void 0,"Ip4dNc"));var jQ=l.next().value,y=l.next().value;X=_.S(_.wu(!1,void 0,"ZNKSQb"));l=X.next().value;X=X.next().value;var d8=l,pE=X;X=_.S(_.wu(!1,void 0,"JBrGLd"));l=X.next().value;var Qh=X.next().value;
X=_.S(_.wu(!1,void 0,"P2pD6e"));var KE=X.next().value,fE=X.next().value;X=_.S(_.wu(1,void 0,"SjP20c"));var r8=X.next().value,nE=X.next().value;X=_.S(_.wu([],void 0,"h4dRaf"));var tX=X.next().value,yh=X.next().value;X=_.S(_.wu(!1,void 0,"TUTzaf"));var Gw=X.next().value,KH=X.next().value;X=_.e("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var h9=_.uy(),I7=_.uy(),T1=_.uy(),Y$,aR=new Sg7,f0=nuP(),SQ=_.iq().resolve(_.OT(_.t4)),
R7=function(){var e5;return((e5=W.forceDarkMode)==null?void 0:e5.call(W))||!(SQ==null||!SQ())},zw=function(){return _.e("desktop_enable_scrollable_suggestions_panel")},G1="i"+bQZ++,k$=!1,Nz=!1,NE="",XU=null,u1=-1,pH=function(){yh([]);
K([]);pE(!1);Y$&&(Y$.hidden=!0);XU&&(clearTimeout(XU),XU=null);r(-1)},IN=function(e5,Uv){e5.preventDefault();
KH(!0);Y$&&(Y$.hidden=!1);var m8=k();e5=p();var p0=tX();Uv=kUg(Uv);m8+=Uv;for(m8>=e5.length?m8=-1:m8<-1&&(m8=e5.length-1);m8!==-1&&(p0.includes(m8)||m8>=e5.length||m8<0);)m8+=Uv,m8>=e5.length&&(m8=-1);r(m8);k()>=0&&(I7.value.value=p()[k()].text,f(0),w(),e5=k(),p0=q(),(p0=document.getElementById(EM[e5][p0]))&&zw()&&(e5===p().length-1?Y$.scrollTop=Y$.scrollHeight:p0.scrollIntoView({block:"nearest",inline:"start"})))},vN=_.XL(function(e5){if(!(e5.relatedTarget instanceof Element&&e5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!0);
var Uv;(Uv=W.focusCallback)==null||Uv.call(W,!0);m()||(Nz?Y$.hidden=!1:(_.bX(h9.value,"yt-autonav-pause-focus",{}),a(e5.target.value)))}}),lk=_.XL(function(e5){if(!(e5.relatedTarget instanceof Element&&e5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){y(!1);
var Uv;(Uv=W.focusCallback)==null||Uv.call(W,!1);Y$.scrollTop=0;Y$.hidden=!0;_.bX(h9.value,"yt-autonav-pause-blur",{})}}),ZG=function(e5){e5=kUg(e5);
var Uv;((Uv=EM[k()])==null?0:Uv[q()+e5])&&f(q()+e5)},Zf=_.XL(function(e5){var Uv=e5.target;
switch(e5.keyCode){case 13:e5.preventDefault();var m8;if((m8=EM[k()])==null?0:m8[q()]){var p0;(p0=document.getElementById(EM[k()][q()]))==null||p0.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}e5=e5.shiftKey?4:3;m8=f0;p0=k();m8.selectedSuggestionIndex=p0;b(Uv.value,e5);break;case 27:Y$&&(Y$.hidden=!0);break;case 40:IN(e5,40);break;case 38:IN(e5,38);break;case 39:ZG(39);break;case 37:ZG(37);break;case 229:f0.inputMethodsTracker.add(4);break;default:f0.inputMethodsTracker.add(1),
fH1(f0)}return!1}),H9=_.XL(function(e5){a(e5.target.value);
w();zw()&&Y$&&(Y$.scrollTop=0);return!1}),lN=_.XL(function(){f0.inputMethodsTracker.add(2);
fH1(f0);return!1});
_.oW(function(){if(Y$){f0.reset();if(window.ResizeObserver){var e5=new ResizeObserver(function(){d8()||(Y$.style.minWidth=T1.value.offsetWidth+"px")});
e5.observe(T1.value);(new ResizeObserver(function(){rC()})).observe(Y$);
_.so(function(){e5.disconnect()})}A();
window.addEventListener("yt-navigate-finish",A);window.addEventListener("yt-focus-searchbox",function(){I7.value.focus()});
var Uv;Qh((Uv=_.Cv("SBOX_SETTINGS"))==null?void 0:Uv.HAS_ON_SCREEN_KEYBOARD)}else _.Dt(new _.pu("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var X0=_.XL(function(e5){e5.preventDefault();b(I7.value.value,12);return!1}),t9=_.XL(function(e5){e5.preventDefault();
var Uv,m8;(Uv=I7)==null||(m8=Uv.value)==null||m8.focus();var p0,S5;((p0=I7)==null?void 0:(S5=p0.value)==null?void 0:S5.value)!==""&&(I7.value.value="",I7.value.dispatchEvent(new Event("input")));return!1}),wg=_.XL(function(){var e5=eA9(I7.value.value,p().filter(function(Uv){return Uv.type!==35}).map(function(Uv){return{label:Uv.text}}));
_.jx(h9.value,"yt-open-popup-action",[{openPopupAction:e5},document.body]);return!1}),y2=_.XL(function(){I7.value.focus();
return!1}),m7=function(e5,Uv,m8,p0,S5){f0.selectedSuggestionIndex=m8;
b(Uv,S5?3:1,p0)},xX=function(e5){I7.value.value=e5;
I7.value.dispatchEvent(new Event("input"));f0.inputMethodsTracker.add(5);fH1(f0,!0)},EM=[[]],jJ=function(e5){var Uv="searchbox-suggestion"+_.gN(_.p8);
EM[e5].push(Uv);return Uv},Um=function(e5){if(p()){EM=[[]];
for(var Uv=0;Uv<e5;Uv++)EM.push([])}},rC=function(){if(zw()){var e5=Y$,Uv=e5.scrollTop;
e5=e5.scrollHeight-e5.clientHeight;fE(Uv>=e5);Uv=Math.abs(e5-Uv);Uv<=40?nE(1-(40-Uv)/40):nE(1)}},h3=function(){return"opacity: "+r8()*100+"%"},eQ=_.XL(function(){rC();
return!1}),Di=_.XL(function(){KH(!1);
return!1}),H2,A9={},LU={},oR={},aN={};
return _.E("yt-searchbox",{class:_.YS("ytSearchboxComponentHost",(A9.ytSearchboxComponentMweb=!1,A9.ytSearchboxComponentDesktop=!0,A9["yt-searchbox-filled-query"]=function(){return M()},A9["ytd-masthead"]=function(){return!jQ()},A9.ytSearchboxComponentHostDark=R7,A9)),
role:"search",el:h9,"client-ve-type":10349},_.E("div",{el:T1,"on:click":y2,class:_.YS("ytSearchboxComponentInputBox",(LU.ytSearchboxComponentInputBoxDark=R7,LU.ytSearchboxComponentInputBoxHasFocus=jQ,LU))},_.E("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":X0},_.E(_.U,{cond:jQ,then:function(){return _.E("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.E(_.Ps,{icon:"SEARCH"}))}}),_.E("input",{el:I7,
class:_.YS("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":G1,"aria-expanded":!((H2=Y$)==null?0:H2.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":lk,"on:focus":vN,"on:input":H9,"on:keydown":Zf,"on:paste":lN,placeholder:W.placeholderText,"aria-activedescendant":function(){var e5;return(e5=EM[k()])==null?void 0:e5[q()]},
"aria-autocomplete":"list",role:"combobox"})),_.E(_.U,{cond:l,then:function(){return _.E("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.E(hP2,null))}}),_.E(_.U,{cond:M,
then:function(){return _.E("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.E("button",{class:"ytSearchboxComponentClearButton","on:click":t9,"aria-label":W.clearButtonAriaLabel||ay9},_.E(_.Ps,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.E(_.Kd,{model:{}})))}})),_.E("button",{class:_.YS("ytSearchboxComponentSearchButton",(oR.ytSearchboxComponentSearchButtonDark=R7,oR)),
"on:click":X0,"aria-label":Iy5,title:W.placeholderText},_.E(_.Ps,{icon:"SEARCH"})),_.E(_.U,{cond:function(){if(fu7()&&_.e("mweb_voice_search")&&W.voiceSearchButton)return W.voiceSearchButton()},
then:function(e5){var Uv={};return _.E("div",{class:_.YS("ytSearchboxComponentVoiceSearchWrapper",(Uv.ytSearchboxComponentHideVoiceSearchButton=function(){return M()},Uv))},_.E(_.R4,{data:e5},{buttonRenderer:function(m8){return _.E(_.fA,{data:m8.data,
onButtonClickCallback:function(){}})}}))}}),_.E("div",{el:_.ci(function(e5){return void(Y$=e5)}),
id:G1,class:_.YS("ytSearchboxComponentSuggestionsContainer",(aN.ytSearchboxComponentSuggestionsContainerDark=R7,aN["yt-searchbox-suggestions-container"]=!1,aN.ytSearchboxComponentSuggestionsContainerScrollable=zw(),aN.ytSearchboxComponentSuggestionsContainerAnimated=X,aN)),"on:scroll":eQ,"on:mousemove":Di,role:"listbox",hidden:!0},_.E(_.pv,{each:p},function(e5,Uv){return _.E(diB,{suggestion:e5,isHighlighted:function(){return Uv()===k()},
onClickCallback:m7,onHoverUpdateCallback:function(m8){if(_.e("desktop_enable_single_suggestion_highlight")){var p0=Uv();m8&&(f(0),r(p0))}},
onRemoveCallback:function(m8){ZQU(aR);m8===void 0||m8<0||tX().includes(m8)||yh([].concat(_.PG(tX()),[m8]))},
labels:W.labels,queryBuilderFunction:xX,suggestionIndex:Uv,generateUniqueId:jJ,highlightedId:function(){var m8;return(m8=EM[k()])==null?void 0:m8[q()]},
useScrollMargin:zw(),isKeyboardMode:Gw})}),_.E(_.U,{cond:function(){return!d8()&&p().find(function(e5){return e5.type!==35})&&_.e("searchbox_reporting")},
then:function(){return _.E("button",{class:"ytSearchboxComponentReportButton","on:mousedown":wg},_.EO("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.E(_.U,{cond:function(){return!KE()&&zw()},
then:function(){return _.E("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.E("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:h3}))}})))},"lg"),"yt-searchbox",{props:{searchEndpoint:_.te,
placeholderText:_.te,labels:_.te,voiceSearchButton:_.te,focusCallback:_.Ws,clearButtonAriaLabel:_.te,forceDarkMode:_.te}});var dr=function(){var W=_.n.apply(this,arguments)||this;W.menuButtonTargetId="topbar-guide-menu";W.narrow=!1;W.menuStrings={BACK_ALT_LABEL:_.EO("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.EO("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.EO("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.EO("SBOX_PLACEHOLDER",void 0,"Search")};W.pageDarkTheme=document.documentElement.hasAttribute("dark");W.watchPageScrollTop=0;W.theater=!1;W.fullscreen=!1;W.desktopUnifiedSearchPanelMode=_.e("desktop_enable_unified_search_panel");
W.cinematicTheaterMode=_.e("web_cinematic_theater_mode");W.ytSearchboxFocused=!1;W.searchboxLabels=_.Cv("SBOX_LABELS");W.topbarIsAboveChipbar=!1;W.isDarkThemeForced=!1;W.areGhostCardsHidden=!1;W.guideKeyboardToggle=!1;W.voiceSearchManager=QLg();W.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};W.setYtSearchboxFocused=function(O){W.ytSearchboxFocused=O};
return W};
_.R(dr,_.n);_.d=dr.prototype;_.d.computeSimpleText=function(W){return _.NX(W)};
_.d.onDarkChanged=function(){for(var W=_.S(this.buttons||[]),O=W.next();!O.done;O=W.next())O.value.isOverlay=!!this.dark;W=_.S(this.buttonRenderers||[]);for(O=W.next();!O.done;O=W.next())O.value.overrides=this.computeButtonOverride()};
_.d.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.d.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var W=_.rk(_.BH(),"aa");_.L2(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||W||(this.isDarkThemeForced=this.dark=!0);this.logoType?(W=this.hostElement.querySelector("#masthead-logo"))&&(_.e("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.Xu(W)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.Ii(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.Ii(this,this.onSetTheaterModeEnabled))};
_.d.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.Ii(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.Ii(this,this.onSetTheaterModeEnabled))};
_.d.dataChanged=function(){var W=this.data;W&&(this.voiceEnabled=W.voiceSearchButton?QLg().isSupported():!1,_.rDN(_.Ae(),this.menuButtonTargetId,this.guideButton),W.onReceivedActions&&W.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.Sx(this.hostElement,W.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&W&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.L2(this.hostElement,"dark",!1),_.L2(this.hostElement,"theater",!1),
(W=this.hostElement.querySelector("#masthead-logo"))&&(_.e("polymer_on_demand_shady_dom")?W.setAttribute("slot","masthead-logo-old"):_.Xu(W))))};
_.d.computeCenterHidden=function(){var W;return this.data&&!((W=this.data.searchbox)==null?0:W.fusionSearchboxRenderer)};
_.d.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.L2(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.d.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.d.onWatchScroll=function(W){this.watchPageScrollTop=W.detail||0;this.updateMastheadBackgroundOpacity()};
_.d.onFullscreenChangeAction=function(W){W||(this.watchPageScrollTop=0);this.fullscreen=W;this.updateMastheadBackgroundOpacity()};
_.d.onSetTheaterModeEnabled=function(W){this.theater=W.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.d.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.d.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.d.setBackgroundOpacity=function(W){W=this.calculateBackgroundOpacity(W);this.background.style.opacity=""+W};
_.d.calculateBackgroundOpacity=function(W){var O=this.theater&&this.cinematicTheaterMode?.6:0,b=this.hostElement.clientHeight/2;return Math.min(Math.max(W,0),b)/b*(1-O)+O};
_.d.shouldShowCinematicMastHead=function(){var W=_.e("kevlar_watch_grid")&&!_.e("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(W||this.pageDarkTheme)};
_.d.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.d.focusGuide=function(){this.guideButton.focus()};
_.d.onGuideToggleTap=function(){_.bX(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.d.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.d.onGuideToggleHover=function(){_.bX(this.hostElement,"yt-guide-hover")};
_.d.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.d.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.d.closeOnOutsideClickCondition=function(W){for(W=_.Nd(W);W[0];){var O=W.shift();if(O instanceof Element&&O.id==="kbd")return!1}return!0};
_.d.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.d.pausePlayer=function(){var W;(W=_.ya())==null||W.pause();this.pauseMiniplayer()};
_.d.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var W;(W=_.iq().resolve(_.xq).getPlayerElement())==null||W.pause()}};
_.d.isMiniplayerActive=function(){return _.iq().resolve(_.xq).isMiniplayerActive()};
_.d.updateNarrowFromBinding=function(W){this.narrow=W.detail.value};
_.d.onYtSendFeedbackAction=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Jq.Object.defineProperties(dr.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.e("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var W;return(W=this.data)==null?void 0:W.voiceSearchButton}}}});
dr.prototype.narrowChanged=dr.prototype.narrowChanged;dr.prototype.onWatchPageChange=dr.prototype.onWatchPageChange;dr.prototype.onRendererStamperFinished=dr.prototype.onRendererStamperFinished;dr.prototype.dataChanged=dr.prototype.dataChanged;dr.prototype.onDarkChanged=dr.prototype.onDarkChanged;_.t([_.D(_.vL),_.N("design:type",Object)],dr.prototype,"ironResizableBehavior",void 0);_.t([_.D(_.BCP),_.N("design:type",Object)],dr.prototype,"ytdExpandableInputBehavior",void 0);
_.t([_.D(_.Ch.YtdGuideStateAwareBehavior),_.N("design:type",Object)],dr.prototype,"ytdGuideStateAwareBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],dr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],dr.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],dr.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],dr.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.sh),_.N("design:type",Object)],dr.prototype,"ytdReduxBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"narrow",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"logoType",void 0);_.t([_.C(),_.N("design:type",Boolean)],dr.prototype,"voiceEnabled",void 0);
_.t([_.C(),_.N("design:type",Object)],dr.prototype,"menuStrings",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],dr.prototype,"dark",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dr.prototype,"pageDarkTheme",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"watchPageScrollTop",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.rm}),_.N("design:type",Boolean)],dr.prototype,"isWatchPage",void 0);
_.t([_.C({reflectToAttribute:!0,selector:_.am8}),_.N("design:type",Boolean)],dr.prototype,"isShortsPage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dr.prototype,"theater",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],dr.prototype,"fullscreen",void 0);_.t([_.C({reflectToAttribute:!0,selector:_.A6h}),_.N("design:type",String)],dr.prototype,"frostedGlassMode",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"ytSearchboxFocused",void 0);
_.t([_.wi("#buttons > *"),_.N("design:type",Array)],dr.prototype,"buttons",void 0);_.t([_.wi("ytd-button-renderer"),_.N("design:type",Array)],dr.prototype,"buttonRenderers",void 0);_.t([_.El("#background"),_.N("design:type",HTMLDivElement)],dr.prototype,"background",void 0);_.t([_.El("#guide-button"),_.N("design:type",Object)],dr.prototype,"guideButton",void 0);_.t([_.El("#logo"),_.N("design:type",Object)],dr.prototype,"logo",void 0);
_.t([_.C({computed:"computeButtonOverride(dark)"}),_.N("design:type",Object)],dr.prototype,"buttonOverrides",void 0);_.t([_.Ul("dark"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dr.prototype,"onDarkChanged",null);_.t([_.C({value:function(){return this.onVoiceTap.bind(this)}}),
_.N("design:type",Function)],dr.prototype,"boundOnTapVoiceButton",void 0);_.t([_.C(),_.N("design:type",Object)],dr.prototype,"topbarIsAboveChipbar",void 0);_.t([_.C(),_.N("design:type",String),_.N("design:paramtypes",[])],dr.prototype,"guideIcon",null);_.t([_.x("voiceEnabled"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],dr.prototype,"shouldShowVoiceSearchButton",null);_.t([_.x("data"),_.N("design:type",Object),_.N("design:paramtypes",[])],dr.prototype,"voiceSearchButton",null);
_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dr.prototype,"dataChanged",null);_.t([_.ai("yt-rendererstamper-finished"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dr.prototype,"onRendererStamperFinished",null);_.t([_.Ul("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dr.prototype,"onWatchPageChange",null);
_.t([_.Ul("narrow"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],dr.prototype,"narrowChanged",null);dr=_.t([_.G({disableElementRegistration:!0,is:"ytd-masthead"})],dr);
_.H(dr,"ytd-masthead",function(){if(OQN!==void 0)return OQN;var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return OQN=W},{mode:_.Lb("kevlar_poly_si_batch_j036")?1:2});var Yg2;var EE9={},wV9={},AjR={},XVP={},Ui5=(XVP.OFFLINE=(EE9["publicytnetworkstatus-online"]="BACK_ONLINE",EE9),XVP.ONLINE=(wV9["publicytnetworkstatus-offline"]="OFFLINE",wV9),XVP.BACK_ONLINE=(AjR["publicytnetworkstatus-offline"]="OFFLINE",AjR.TIMER_TRIGGER="ONLINE",AjR),XVP),hZ=function(){var W=_.n.apply(this,arguments)||this;W.currentState="ONLINE";W.scheduledJobId=0;W.bannerString="";W.bannerVe=null;W.networkStatusManagerInstance=new _.Vy;return W};
_.R(hZ,_.n);_.d=hZ.prototype;_.d.attached=function(){var W=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.detached=function(){var W=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){W.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){W.stateChangeHandler("publicytnetworkstatus-offline")})};
_.d.enterState=function(W){var O=this;this.scheduledJobId&&_.sF.cancelJob(this.scheduledJobId);W==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):W==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.EO("NO_INTERNET_CONNECTION",void 0,"No internet connection")):W==="BACK_ONLINE"&&(this.bannerString=_.EO("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.KB(_.sF,function(){O.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=W};
_.d.stateChangeHandler=function(W){(W=Ui5[this.currentState][W])&&this.enterState(W)};
_.d.logVisibility=function(W){var O=_.Bb();this.createBannerVe(W);O&&this.bannerVe&&(W?_.t3(O,[this.bannerVe]):_.$0(O,[this.bannerVe]))};
_.d.createBannerVe=function(W){!this.bannerVe&&W&&(this.bannerVe=_.gd(37929),_.Tn(_.A4(),this.bannerVe))};
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",String)],hZ.prototype,"currentState",void 0);_.t([_.C(),_.N("design:type",Object)],hZ.prototype,"scheduledJobId",void 0);_.t([_.C(),_.N("design:type",Object)],hZ.prototype,"bannerString",void 0);hZ=_.t([_.G({disableElementRegistration:!0,is:"ytd-network-status-banner"})],hZ);
_.H(hZ,"ytd-network-status-banner",function(){if(Yg2!==void 0)return Yg2;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return Yg2=
W},{mode:1});var ly7;var SI=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};W.hidden=!0;W.frostedGlass=_.e("web_frosted_glass");return W};
_.R(SI,_.n);SI.prototype.computeHidden=function(W){return W&&W.status?!1:!0};
SI.prototype.handleUpdatePermissionRoleCommand=function(W){if(W=_.P(W,_.PZU))if(W=_.P(W.renderer,_.ejv))this.data=W};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],SI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],SI.prototype,"componentBehavior",void 0);_.t([_.C({value:!0,computed:"computeHidden(data)"}),_.N("design:type",Object)],SI.prototype,"hidden",void 0);_.t([_.C(),_.N("design:type",Object)],SI.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],SI.prototype,"frostedGlass",void 0);
SI=_.t([_.G({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],SI);
_.H(SI,"ytd-permission-role-bottom-bar-renderer",function(){if(ly7!==void 0)return ly7;var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);return ly7=W},{mode:1});var ePZ;var PFD;var s5B={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var Z0=function(){return _.n.apply(this,arguments)||this};
_.R(Z0,_.n);_.d=Z0.prototype;_.d.attached=function(){this.JSC$18522_scroller&&(this.JSC$18522_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18522_scroller.attached&&typeof this.JSC$18522_scroller.attached==="function"&&this.JSC$18522_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(b){b.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var W=_.Q(this.hostElement);W.querySelector("tp-yt-paper-radio-group").selected="";var O=W.querySelector("#reason-text");O&&(O.value="");W.querySelector("#description-text").value=""}};
_.d.canSubmit=function(W,O){_.bX(this.hostElement,"yt-invalidate-popup-tabbables");return!(W&&O)};
_.d.onCancel=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.d.onSubmit=function(){var W=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(h){return h.active}).map(function(h){return h.innerText.trim()}),O=this.hostElement.querySelector("tp-yt-paper-radio-group"),b=O.selectedItem,T=b.name;
b=b.innerText.trim();var L=O.querySelector("#reason-text");O=void 0;L&&(O=L.value);(L=this.descriptionText.value)&&(L=L.trim());BaZ(this.data.searchQuery,W,T,b,L,O);_.jx(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.d.sendFormSubmitToast=function(){var W=_.FW(_.EO("SBOX_INAPPROPRIATE_TOAST"));_.jx(this.hostElement,"yt-open-popup-action",[W,this])};
_.d.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(W){return W.active})};
_.d.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
Z0.prototype.onIronSelect=Z0.prototype.onIronSelect;Z0.prototype.onIronChange=Z0.prototype.onIronChange;Z0.prototype.dataChanged=Z0.prototype.dataChanged;_.t([_.C(),_.N("design:type",Object)],Z0.prototype,"data",void 0);_.t([_.C({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.N("design:type",Boolean)],Z0.prototype,"submitDisabled",void 0);_.t([_.C(),_.N("design:type",Boolean)],Z0.prototype,"suggestionSelected",void 0);
_.t([_.C(),_.N("design:type",Boolean)],Z0.prototype,"catagorySelected",void 0);_.t([_.El("#scroller"),_.N("design:type",Object)],Z0.prototype,"JSC$18522_scroller",void 0);_.t([_.El("#description-text"),_.N("design:type",Object)],Z0.prototype,"descriptionText",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z0.prototype,"dataChanged",null);
_.t([_.ai("iron-change"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z0.prototype,"onIronChange",null);_.t([_.ai("iron-select"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Z0.prototype,"onIronSelect",null);Z0=_.t([_.G({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],Z0);
_.H(Z0,"ytd-search-suggestion-report-dialog",function(){if(PFD!==void 0)return PFD;var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return PFD=W},{mode:1});var IS=function(W){var O=W.openPopupAction;var b=W.target;var T=W.container;var L=W.popupContainerConfig;var h=W.getElement;W=W.removeWhenClosed===void 0?!1:W.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=O;this.target=b;this.container=T;this.popupContainerConfig=L;this.getElement=h;this.JSC$18528_popupConfig=this.popupContainerConfig.JSC$17645_popupConfig[this.openPopupAction.popupType];this.rendererName=(O=this.getName())?_.kH8(O,dh9(this.popupContainerConfig,
O)):"";_.e("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=W);this.createPopup()};
IS.prototype.updatePopup=function(W){this.openPopupAction=W;this.JSC$18528_popupConfig=this.popupContainerConfig.JSC$17645_popupConfig[this.openPopupAction.popupType];pVR(this);_.e("reorder_popup_updates_killswitch")&&RPg(this);_.e("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var gE5=function(W,O,b){W.target=b;var T;b=((T=W.target.polymerController)!=null?T:W.target).popupPositionTarget||W.target;W.JSC$18528_popupConfig.targetContainer&&(b=W.container);W.popup.positionTarget=b;W.popupContent.positionTarget=b;_.e("reorder_popup_updates_killswitch")||RPg(W);W.JSC$18528_popupConfig.forceFocus&&(W.popupContent.style.outline="none");W.popupContent.tabIndex=-1;W.JSC$18528_popupConfig.narrowProperties&&(W.popup.style.position="static");W.JSC$18528_popupConfig.preventAutonav&&
W.popup.setAttribute("prevent-autonav",!0);W.JSC$18528_popupConfig.forceCloseOnOutsideClick&&W.popup.setAttribute("force-close-on-outside-click",!0);KGU(W,O);vED(W,W.JSC$18528_popupConfig.styles);W.isRtl()&&vED(W,W.JSC$18528_popupConfig.rtlStyles);if(!W.openPopupAction.shouldStopParentSignal){var L;O=(L=W.target.polymerController)!=null?L:W.target;(W.popupContent.startForwardingEvents||W.popupContainerConfig.forwardingEnabledPopups.has(W.rendererName))&&O.parentComponent!==W.popupContent&&W.popupContent!==
W.target&&W.target!==document.body&&(W.popupContent.startForwardingEvents?W.popupContent.startForwardingEvents(W.popupContainerConfig.forwardedEvents,W.target):(W.JSC$18528_eventForwarder||(W.JSC$18528_eventForwarder=new _.ZL(W.popupContent)),W.JSC$18528_eventForwarder.start(W.popupContainerConfig.forwardedEvents,W.target)))}};
IS.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var KGU=function(W,O){oEg(W,O&&W.JSC$18528_popupConfig.narrowProperties?W.JSC$18528_popupConfig.narrowProperties:W.JSC$18528_popupConfig.properties);W.isRtl()&&oEg(W,W.JSC$18528_popupConfig.rtlProperties);RPg(W)};
IS.prototype.createPopup=function(){var W=this.JSC$18528_popupConfig.component;if(this.popupContent=QrD(this,this.rendererName)){if(W){this.popup=QrD(this,W);var O=this.popupContent;_.e("web_enable_wrapper_for_cow_component_in_popup")&&(O=document.createElement("div"),O.appendChild(this.popupContent));_.e("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18528_popupConfig.slotName&&O.setAttribute("slot",this.JSC$18528_popupConfig.slotName);W=this.popup;var b=this.container.tagName.toLowerCase(),
T=_.u8(O);_.O1X(_.yB(W),_.im(O,b,T));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.e("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Q(this.container).appendChild(this.popup)}};
var pVR=function(W){var O,b,T=(O=W.openPopupAction.accessibilityData)==null?void 0:(b=O.accessibilityData)==null?void 0:b.label;T&&(W.popup.ariaLabel=T);var L;((L=W.popupContent.polymerController)!=null?L:W.popupContent).data=(0,_.PQ.unsafeClone)(W.openPopupAction.popup[W.getName()]);W.popupContent.duration=kjR(W);W.popupContent.positionType=W.openPopupAction.position;var h=W.openPopupAction.properties;h&&Object.keys(h).forEach(function(Z){W.popupContent[Z]=h[Z]})},oEg=function(W,O){if(O)for(var b=
_.S(Object.keys(O)),T=b.next();!T.done;T=b.next())T=T.value,W.popup[T]=O[T]},RPg=function(W){if(W.openPopupAction.position){var O=W.JSC$18528_popupConfig.positionalProperties&&W.JSC$18528_popupConfig.positionalProperties[W.openPopupAction.position],b=W.JSC$18528_popupConfig.rtlPositionalProperties&&W.JSC$18528_popupConfig.rtlPositionalProperties[W.openPopupAction.position];
O=W.isRtl()&&b?b:O;O.shiftedHorizontalOffset&&(b=W.popup.style.display,W.popup.style.display="block",W.popupContent&&W.popup.positionTarget&&W.popupContent.clientWidth>W.popup.positionTarget.clientWidth&&(O.horizontalOffset=W.popup.positionTarget.clientWidth/2-O.shiftedHorizontalOffset),W.popup.style.display=b);oEg(W,O)}},vED=function(W,O){if(O)for(var b=_.S(Object.keys(O)),T=b.next();!T.done;T=b.next())T=T.value,W.popup.style[T]=O[T]};
IS.prototype.getName=function(){return _.r0(this.openPopupAction.popup,"renderer")||_.r0(this.openPopupAction.popup,"dialog")||_.r0(this.openPopupAction.popup,"model")||void 0};
var kjR=function(W){W=W.openPopupAction.durationHintMs;return W===0?W:Math.max(4E3,W||4E3)};
IS.prototype.isRtl=function(){return _.Cv("HTML_DIR")==="rtl"};
var QrD=function(W,O){W=W.getElement(O,W.target);W==null&&_.z5(new _.pu("popup getElement returned null",O));return W};var sr7={};
sr7.YtPopupContainerBehavior=[_.x_.YtComponentBehavior,_.WP.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.OO(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.iX(this.hostElement)},
closePopup:function(W){var O=this.createCacheKey(void 0,W);this.popups_[O]&&this.handleClosePopupAction_(void 0,W)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.sF.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.sF.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(W){W.opened&&W.keepBelowPlayer&&this.ensurePopupBelowPlayer(W)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var W in this.popups_){var O=this.popups_[W];if(O.popup.scrollAction==="refit"){var b=O.popup.positionTarget.getBoundingClientRect(),T=O.popup;b=b.top;var L=O;if(!L.naturalHeight){L.popup.hidden=!1;L.popup.style.position="fixed";L.popup.style.top="0px";L.popup.style.left="0px";var h=L.popup.getBoundingClientRect();L.naturalHeight=h.bottom-h.top;L.popup.refit()}T.hidden=!(b>=L.naturalHeight+60);O.popupContent.clientHeight===0&&O.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(W){this.popupContainerConfig=W},
handleOpenPopupAction:function(W,O){var b=W.openPopupAction,T=_.iq().resolve(_.OT(_.Hon))&&b.popupType==="TOAST";T&&!b.uniqueId&&(b.uniqueId=_.g2());if(!_.e("popup_container_parent_target_killswitch")){var L;O=(L=this.getParentTarget(O))!=null?L:O}var h=this.ensurePopup_(b,O);return new _.mJ(function(Z){h.then(function(a){if(!a)return Z();this.maybeCreateNarrowMediaQuery_();var m=this.createCacheKey(a.rendererName,a.openPopupAction.uniqueId);if(b.showOncePerUniqueId){if(this.shownPopupKeys_.has(m))return Z();
this.shownPopupKeys_.add(m)}m=this.popups_[m];var w=!(!m||!m.openPopupAction.beReused);w=!!b.reusePopup||w;if(a.popup.opened&&!w){T&&!a.openPopupAction.replacePopup||this.handleClosePopupAction_(a.rendererName,a.openPopupAction.uniqueId);w=b.popupType==="DIALOG"&&!_.e("popup_container_dialog_reopen_killswitch");if(!T&&!w&&m&&m.target==O&&!a.openPopupAction.replacePopup)return Z();_.My(a.popup,function(){this.completeOpenPopupAction_(b,O,a);Z()}.bind(this))}else a.popup.opened?a.updatePopup(b):this.completeOpenPopupAction_(b,
O,a),Z()}.bind(this))}.bind(this))},
getParentTarget:function(W){if(W&&W instanceof HTMLElement)for(var O=_.S(Object.entries(this.popups_)),b=O.next();!b.done;b=O.next())if(b=_.S(b.value),b.next(),b=b.next().value,b.popup.tagName==="TP-YT-IRON-DROPDOWN"&&b.popup.opened&&W.closest(b.rendererName))return b.target},
completeOpenPopupAction_:function(W,O,b){_.e("reorder_popup_updates_killswitch")?(gE5(b,this.narrowMediaQuery_.queryMatches,O),b.updatePopup(W)):(b.updatePopup(W),gE5(b,this.narrowMediaQuery_.queryMatches,O));W=b.popup;W.addEventListener("iron-overlay-opened",_.Ii(this,this.onPopupIronOverlayOpened_));W.addEventListener("iron-overlay-closed",_.Ii(this,this.onPopupIronOverlayClosed_));W.addEventListener("iron-overlay-canceled",_.Ii(this,this.onPopupIronOverlayCanceled_));W.addEventListener("yt-refit",
_.Ii(this,this.refitPopup_));W.addEventListener("yt-invalidate-popup-tabbables",_.Ii(this,this.handleInvalidatePopupTabbables_));W.open()},
getPopupDurationMs_:function(W){return W.durationHintMs===0?W.durationHintMs:Math.max(4E3,W.durationHintMs||4E3)},
handleClosePopupAction_:function(W,O){var b=_.e("web_popup_cache_key_killswitch")||!!O;if(W||b){var T=this.createCacheKey(W,O);W=(W=this.popups_[T])&&W.popup}else W=_.ecq(_.nr);if(W&&W.close){if(O=_.iq().resolve(_.OT(_.bD)))W.restoreFocusOnClose=O.isKeyBoardInUse();W.close();this.removePopup_(W,T)}},
handleClosePopupCommand_:function(W){W.closePopupCommand&&W.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,W.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(W){var O={},b;for(b in this.popups_)if(O={key$jscomp$1161:O.key$jscomp$1161},O.key$jscomp$1161=b,!W||!W.some(function(h){return function(Z){return Z==h.key$jscomp$1161}}(O))){var T=this.popups_[O.key$jscomp$1161],L=T.popup;
_.iq().resolve(_.OT(_.Hon))&&T.openPopupAction.popupType==="TOAST"||(L&&L.close&&L.close(),this.removePopup_(L,O.key$jscomp$1161))}},
handleClosePopupsAction_:function(W){W.forEach(function(O){var b=this.popups_[O];b&&((b=b.popup)&&b.close&&b.close(),this.removePopup_(b,O))}.bind(this))},
handleGetPopupOpenedAction_:function(W,O){return(O=this.createCacheKey(W,O))&&this.popups_[O]?this.popups_[W].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var W=[],O;for(O in this.popups_){var b=this.popups_[O];b.popup.opened&&W.push(b)}return W},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(W,O){_.e("ytpopup_disable_default_html_caching")&&W&&W.removeWhenClosed&&(_.Q(this.hostElement).removeChild(W),O&&this.popups_[O]&&delete this.popups_[O])},
shouldReusePopup_:function(W){return!(!W||!W.reusePopup)||!(!W||!W.beReused)},
ensurePopup_:function(W,O){this.maybeCreateNarrowMediaQuery_();var b=_.r0(W.popup,"renderer")||_.r0(W.popup,"dialog")||_.r0(W.popup,"model");if(!b)return _.ZM();b=_.kH8(b,dh9(this.popupContainerConfig,b));return _.ZM(this.getAndMaybeCreatePopup_(W,b,O))},
getAndMaybeCreatePopup_:function(W,O,b){var T=this.createCacheKey(O,W.uniqueId);if(this.popups_[T])return this.popups_[T];W=new IS({openPopupAction:W,target:b,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(O)});return this.popups_[T]=W},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(W){return _.e("ytpopup_disable_default_html_caching")?W&&W.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",_.Ii(this,this.openPopupQueryMatchesChanged_)),_.Q(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(W){W=W.detail.value;for(var O in this.popups_)KGU(this.popups_[O],W)},
onPopupIronOverlayClosed_:function(W){var O=W.currentTarget,b=_.eoi(O);b=b.length>0?b[0]:O;if(b.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){W.detail.popup=O;W.detail.popupRenderer=b;var T,L={context:{openingElement:((T=this.popups_[(b==null?void 0:b.is)||""])==null?void 0:T.target)||void 0}};Object.assign(L,W.detail);var h;_.bX((h=b.hostElement)!=null?h:b,"yt-popup-closed",L);O.removeEventListener("yt-refit",_.Ii(this,this.refitPopup_));O.removeEventListener("yt-invalidate-popup-tabbables",
_.Ii(this,this.handleInvalidatePopupTabbables_));O.removeEventListener("iron-overlay-canceled",_.Ii(this,this.onPopupIronOverlayCanceled_));O.removeEventListener("iron-overlay-closed",_.Ii(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(O)}},
onPopupIronOverlayCanceled_:function(W,O){var b=W.currentTarget,T=_.eoi(b);T=T.length>0?T[0]:b;if(T.is!=="ytd-reel-watch-while-dialog-renderer"||W.target.is!=="tp-yt-iron-dropdown"){var L;_.bX((L=T.hostElement)!=null?L:T,"yt-popup-canceled",W.detail);L=O?_.Nd(O):null;(!O||["click","tap"].includes(O.type))&&!b.hasAttribute("force-close-on-outside-click")&&b.positionTarget&&L&&L.includes(b.positionTarget)&&W.preventDefault();b.restoreFocusOnClose=_.wc.keyboardEventMatchesKeys(O,"esc")}},
onPopupIronOverlayOpened_:function(W){W=W.currentTarget;var O=_.eoi(W);O=O.length>0?O[0]:W;var b,T;_.bX((b=O.hostElement)!=null?b:O,"yt-popup-opened",(T=O.hostElement)!=null?T:O);W.keepBelowPlayer&&(this.ensurePopupBelowPlayer(W,!0),this.dynamicallyPositionedElements_.add(W));b=_.iq().resolve(_.OT(_.bD));T=!!O.querySelector("#toast");b&&b.isKeyBoardInUse()&&!T&&(typeof O.focusFirstItem==="function"?O.focusFirstItem():(O=_.Xsz(W),O.length&&O[0].focus()));W.removeEventListener("iron-overlay-opened",
_.Ii(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(W){W=W.currentTarget;W.refit&&W.refit()},
refitPopups_:function(){for(var W in this.popups_)this.popups_[W].refit()},
handleInvalidatePopupTabbables_:function(W){W=W.currentTarget;W.invalidateTabbables&&W.invalidateTabbables()},
createCacheKey:function(W,O){return _.e("web_popup_cache_key_killswitch")?O?W+"#"+O:W:O?"#"+O:W},
openSheet:function(W,O){var b=W==null?void 0:W.openPopupActionCommand;!b&&(W==null?0:W.viewModel)&&(b={openPopupAction:{popup:{sheetViewModel:W.viewModel},popupType:"CONTEXTUAL_SHEET"}});b&&this.handleOpenPopupAction(b,O)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var W=this;return _.I(function(O){return O.return(W.handleGetOpenedPopupsAction_().filter(function(b){var T;return((T=b.openPopupAction)==null?void 0:T.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(W,O,b){if(_.e("web_dialog_utils_killswitch")){var T=W==null?void 0:W.openPopupActionCommand,L=(b==null?0:b.ariaLabel)?{accessibilityData:{accessibilityData:{label:b.ariaLabel}}}:void 0;!T&&(W==null?0:W.viewModel)&&(T={openPopupAction:Object.assign({},{popup:{dialogViewModel:W.viewModel},popupType:(b==null?0:b.isModal)?"MODAL":"DIALOG"},L&&L)});T&&this.handleOpenPopupAction(T,O)}else{if(L=W==null?void 0:W.viewModel){var h=b=b===void 0?{}:b;b=h.ariaLabel;L={popup:{dialogViewModel:L},
popupType:h.isModal?"MODAL":"DIALOG"};h={accessibilityData:{label:b}};b&&(L.accessibilityData=h);L={openPopupAction:L}}else L=void 0;(L=(T=L)!=null?T:W==null?void 0:W.openPopupActionCommand)&&this.handleOpenPopupAction(L,O)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var W=this;return _.I(function(O){return O.return(W.handleGetOpenedPopupsAction_().filter(function(b){var T;return((T=b.openPopupAction)==null?void 0:T.popupType)==="DIALOG"}).length>0)})}}];var BZD;var rj2;var Dik=_.ts(["about:blank"]),aS=function(){var W=_.n.apply(this,arguments)||this;W.isMuted=!1;W.pageLoadTimeoutId=void 0;return W};
_.R(aS,_.n);_.d=aS.prototype;_.d.dataChanged=function(){var W=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var O=this.data.url,b=_.BO(O);_.e("enable_yt_ata_iframe_authuser")?(b=_.BO(O),_.k4(this.iframe,r39(b))):_.k4(this.iframe,b);this.pageLoadTimeoutId=_.KB(_.KD(),function(){return void W.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.uM({destination:window,iframe:this.iframe,origin:_.g$n(b.toString()),channelName:"ataiframe",onMessage:_.q48(acN,function(T){mv2(T.data)?(T=_.eW(T.data,1,_.KU,_.W5()),T.length!==1?_.z5(Error("ol")):(T=T[0],T===3?(W.isMuted=!0,W.logStateChanged({adMuteRequested:!0})):T===1&&W.close())):_.z5(Error("pl"))}),
onEstablished:function(){W.cancelPageLoadTimeout();W.logStateChanged({pageLoadSucceeded:!0})}})}};
_.d.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.KD().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.d.logStateChanged=function(W){var O;if((O=this.data)==null?0:O.trackingParams)W={adsClientData:{aboutThisAdData:W}},_.A4().stateChanged(this.data.trackingParams,W)};
_.d.close=function(){_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.handlesPopupClosed=function(W,O){var b=this,T,L;return _.I(function(h){if(h.nextAddress==1)return _.Cv("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.jx(b.hostElement,"on-about-this-ad-popup-closed",[b.isMuted,O]),h.jumpTo(0)):W&&Dk9(W)?_.Y(h,xkU(W),4):(b.isMuted&&_.jx(b.hostElement,"yt-mute-ad-action",[b.is,b]),h.jumpTo(0));if(T=h.yieldResult){var Z=L=new _.Aj(T),a=b.isMuted;Z.getOptions().includes("onAboutThisAdPopupClosed")?_.MRH(Z,"onAboutThisAdPopupClosed",{isMuted:a,layoutId:O}):_.Fg("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.aD(h)})};
_.d.onPopupClosed=function(W){var O=this,b,T;return _.I(function(L){b=_.yN(Dik);_.k4(O.iframe,b);O.cancelPageLoadTimeout();if(!O.data)return L.jumpTo(0);O.ytRendererBehavior.markDirty();T=W.detail.context.openingElement;return _.Y(L,O.handlesPopupClosed(T,O.data.layoutId),0)})};
_.d.detached=function(){this.cancelPageLoadTimeout()};
_.d.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
aS.prototype.onPopupClosed=aS.prototype.onPopupClosed;aS.prototype.dataChanged=aS.prototype.dataChanged;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],aS.prototype,"ytRendererBehavior",void 0);_.t([_.El("#iframe"),_.N("design:type",HTMLIFrameElement)],aS.prototype,"iframe",void 0);_.t([_.C(),_.N("design:type",Object)],aS.prototype,"data",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],aS.prototype,"dataChanged",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype",Promise)],aS.prototype,"onPopupClosed",null);aS=_.t([_.sl({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],aS);
_.H(aS,"yt-about-this-ad-renderer",function(){if(rj2===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;BZD===void 0&&(BZD=document.createElement("template"));var T=BZD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);rj2=W}W=rj2;return W},{mode:2});var xiR;var zPB;var mt=function(W){var O=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=O.message;"stack"in O&&(this.stack=O.stack);this.maxFileSizeMB=W;Object.setPrototypeOf(this,mt.prototype)};
_.R(mt,Error);var CF9=function(W,O){var b=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.minWidth=W;this.minHeight=O;Object.setPrototypeOf(this,CF9.prototype)};
_.R(CF9,Error);var qg5=function(W){this.requirements=W;this.JSC$18556_maxFileSize=W.maxFileSizeMB*1024*1024},nE5=function(W,O){if(O.size>W.JSC$18556_maxFileSize)throw new mt(W.requirements.maxFileSizeMB);
};var fyB=function(W,O){this.canvas=W;this.imageEditorBuilder=O};
fyB.prototype.addEventListeners=function(W){var O=function(L){GjP(W,L)};
this.JSC$18562_mouseDownEvent=O;var b=function(L){HQ5(W,L)};
this.JSC$18562_mouseMoveEvent=b;var T=function(){tCD(W)};
this.JSC$18562_mouseUpEvent=T;this.canvas.addEventListener("mousedown",O);this.canvas.addEventListener("mousemove",b);document.addEventListener("mouseup",T)};
fyB.prototype.removeEventListeners=function(){this.JSC$18562_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18562_mouseDownEvent);this.JSC$18562_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18562_mouseMoveEvent);this.JSC$18562_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18562_mouseUpEvent)};
var $ik=function(W,O){W.removeEventListeners();return new Promise(function(b){var T=new Image;T.crossOrigin="anonymous";T.onload=function(){var L=W.imageEditorBuilder(W.canvas,T);W.addEventListeners(L);b(L)};
T.src=O})},Yn=function(W,O,b,T,L,h,Z,a){this.canvas=W;
this.image=O;this.requiredRatio=b;this.minImageCropDimension=T;this.minOutputImageResolution=L;this.component=h;this.styleFocusedCorner=a===void 0?!0:a;this.action=2;this.focusedCorner=this.resizeCorner=0;W=this.canvas.getContext("2d");if(!W)throw Error("ql");this.ctx=W;this.canvasMargin=Z!=null?Z:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;Z=this.image;W=this.canvasInnerWidth/Z.width;Z.height*W>912&&(W=Z.width/Z.height*912/Z.width);Z=W;this.scaledImageWidth=this.canvas.width%2?
CXD(this.image.width*Z):z$8(this.image.width*Z);this.scaledImageHeight=Math.round(this.image.height*Z);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18565_overlayMarginBottom=this.JSC$18565_overlayMarginTop=this.canvasMargin;this.JSC$18565_overlayMarginRight=this.JSC$18565_overlayMarginLeft=this.horizontalMargin;this.JSC$18565_overlayWidth=this.scaledImageWidth;this.JSC$18565_overlayHeight=this.scaledImageHeight;
W=this.image.width/this.image.height;W>this.requiredRatio?(this.JSC$18565_overlayWidth=this.canvas.width%2?CXD(this.scaledImageHeight*this.requiredRatio):z$8(this.scaledImageHeight*this.requiredRatio),this.JSC$18565_overlayMarginRight=this.JSC$18565_overlayMarginLeft=(this.canvas.width-this.JSC$18565_overlayWidth)/2):W<this.requiredRatio&&(this.JSC$18565_overlayHeight=this.canvas.height%2?CXD(this.scaledImageWidth/this.requiredRatio):z$8(this.scaledImageWidth/this.requiredRatio),this.JSC$18565_overlayMarginBottom=
this.JSC$18565_overlayMarginTop=(this.canvas.height-this.JSC$18565_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*Z,this.scaledImageWidth);VC7(this)};
Yn.prototype.getContext=function(){return this.ctx};
var GjP=function(W,O){O={x:Math.round(O.pageX-W.canvas.getBoundingClientRect().left),y:Math.round(O.pageY-W.canvas.getBoundingClientRect().top)};W.dragStart=O;NZg(W,O)!==0?(W.action=1,MC1(W,O),W.resizeCorner=NZg(W,O)):O.x>W.JSC$18565_overlayMarginLeft&&O.x<W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth&&O.y>W.JSC$18565_overlayMarginTop&&O.y<W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight&&(W.action=0)},uM9=function(W,O){switch(O){case 1:return{x:W.JSC$18565_overlayMarginLeft,
y:W.JSC$18565_overlayMarginTop};case 2:return{x:W.JSC$18565_overlayMarginLeft,y:W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight};case 3:return{x:W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth,y:W.JSC$18565_overlayMarginTop};case 4:return{x:W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth,y:W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight};default:throw Error("rl");}},cjk=function(W,O){if(W.focusedCorner!==0){W.dragStart=uM9(W,W.focusedCorner);
W.action=1;W.resizeCorner=W.focusedCorner;var b=W.dragStart.x,T=W.dragStart.y;switch(O){case 0:W.focusedCorner===1||W.focusedCorner===4?(b-=10,T-=10):(b-=10,T+=10);break;case 1:W.focusedCorner===1||W.focusedCorner===4?(b+=10,T+=10):(b+=10,T-=10);break;case 2:b=W.focusedCorner===1||W.focusedCorner===4?b-10:b+10;T-=10;break;case 3:b=W.focusedCorner===1||W.focusedCorner===4?b+10:b-10;T+=10;break;default:throw Error("sl");}Jj7(W,{x:b,y:T});VC7(W);W.action=2;W.dragStart=void 0}},HQ5=function(W,O){O={x:Math.round(O.pageX-
W.canvas.getBoundingClientRect().left),
y:Math.round(O.pageY-W.canvas.getBoundingClientRect().top)};MC1(W,O);switch(W.action){case 1:Jj7(W,O);break;case 0:W.dragStart&&(W.JSC$18565_overlayMarginLeft=Math.max(W.horizontalMargin,Math.min(W.JSC$18565_overlayMarginLeft-(W.dragStart.x-O.x),W.horizontalMargin+W.scaledImageWidth-W.JSC$18565_overlayWidth)),W.JSC$18565_overlayMarginRight=W.canvas.width-W.JSC$18565_overlayMarginLeft-W.JSC$18565_overlayWidth,W.JSC$18565_overlayMarginTop=Math.max(W.canvasMargin,Math.min(W.JSC$18565_overlayMarginTop-
(W.dragStart.y-O.y),W.scaledImageHeight-W.JSC$18565_overlayHeight+W.canvasMargin)),W.JSC$18565_overlayMarginBottom=W.canvas.height-(W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight));break;default:return}VC7(W);W.dragStart=O},tCD=function(W){W.action=2;
W.dragStart=void 0;document.body.style.cursor="auto"},MC1=function(W,O){switch(NZg(W,O)){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:W.action!==1&&(document.body.style.cursor="auto")}},NZg=function(W,O){var b=W.JSC$18565_overlayMarginLeft-5,T=W.JSC$18565_overlayMarginTop-5,L=W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth-5;
W=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-5;return FGk(O,{x:b,y:T})?1:FGk(O,{x:L,y:T})?3:FGk(O,{x:b,y:W})?2:FGk(O,{x:L,y:W})?4:0},FGk=function(W,O){return W.x>=O.x&&W.x<=O.x+10&&W.y>=O.y&&W.y<=O.y+10},Jj7=function(W,O){if(W.dragStart)switch(W.resizeCorner){case 2:Math.abs((W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth-O.x)/(O.y-W.JSC$18565_overlayMarginTop))>=W.requiredRatio?yj2(W,O.x):Wu9(W,O.y);
break;case 1:Math.abs((W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth-O.x)/(W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-O.y))>=W.requiredRatio?OZ2(W,O.x):Wu9(W,O.y);break;case 4:Math.abs((O.x-W.JSC$18565_overlayMarginLeft)/(O.y-W.JSC$18565_overlayMarginTop))>=W.requiredRatio?yj2(W,O.x):iZk(W,O.y);break;case 3:Math.abs((O.x-W.JSC$18565_overlayMarginLeft)/(W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-O.y))>=W.requiredRatio?OZ2(W,O.x):iZk(W,O.y);break;default:throw Error("tl");
}},yj2=function(W,O){var b=W.JSC$18565_overlayMarginTop;
W.JSC$18565_overlayMarginBottom=bZ5(W,O);W.JSC$18565_overlayHeight=W.canvas.height-W.JSC$18565_overlayMarginBottom-b;W.JSC$18565_overlayWidth=Math.round(W.JSC$18565_overlayHeight*W.requiredRatio);jHg(W)},OZ2=function(W,O){var b=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight;
W.JSC$18565_overlayMarginTop=bZ5(W,O);W.JSC$18565_overlayHeight=b-W.JSC$18565_overlayMarginTop;W.JSC$18565_overlayWidth=Math.round(W.JSC$18565_overlayHeight*W.requiredRatio);jHg(W)},jHg=function(W){switch(W.resizeCorner){case 2:case 1:W.JSC$18565_overlayMarginLeft=W.canvas.width-W.JSC$18565_overlayMarginRight-W.JSC$18565_overlayWidth;
break;case 4:case 3:W.JSC$18565_overlayMarginRight=W.canvas.width-W.JSC$18565_overlayMarginLeft-W.JSC$18565_overlayWidth;break;default:throw Error("tl");}},Wu9=function(W,O){var b=W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth;
W.JSC$18565_overlayMarginLeft=TW7(W,O);W.JSC$18565_overlayWidth=b-W.JSC$18565_overlayMarginLeft;W.JSC$18565_overlayHeight=Math.round(W.JSC$18565_overlayWidth/W.requiredRatio);LuP(W)},iZk=function(W,O){var b=W.JSC$18565_overlayMarginLeft;
W.JSC$18565_overlayMarginRight=TW7(W,O);W.JSC$18565_overlayWidth=W.canvas.width-W.JSC$18565_overlayMarginRight-b;W.JSC$18565_overlayHeight=Math.round(W.JSC$18565_overlayWidth/W.requiredRatio);LuP(W)},LuP=function(W){switch(W.resizeCorner){case 2:case 4:W.JSC$18565_overlayMarginBottom=W.canvas.height-W.JSC$18565_overlayMarginTop-W.JSC$18565_overlayHeight;
break;case 1:case 3:W.JSC$18565_overlayMarginTop=W.canvas.height-W.JSC$18565_overlayMarginBottom-W.JSC$18565_overlayHeight;break;default:throw Error("tl");}},bZ5=function(W,O){switch(W.resizeCorner){case 2:O=W.canvas.height-(W.JSC$18565_overlayMarginTop+d6g(W,O));
break;case 4:O=W.canvas.height-(W.JSC$18565_overlayMarginTop+hNU(W,O));break;case 1:O=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-d6g(W,O);break;case 3:O=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-hNU(W,O);break;default:throw Error("tl");}return Math.max(O,W.canvasMargin)},d6g=function(W,O){O=W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth-Math.max(O,W.horizontalMargin);
O=O<0?W.JSC$18565_overlayWidth:Math.max(O,W.minOverlayWidth);return Math.round(O/W.requiredRatio)},hNU=function(W,O){O=W.canvas.width-Math.max(W.canvas.width-O,W.horizontalMargin)-W.JSC$18565_overlayMarginLeft;
O=O<0?W.JSC$18565_overlayWidth:Math.max(O,W.minOverlayWidth);return Math.round(O/W.requiredRatio)},TW7=function(W,O){switch(W.resizeCorner){case 2:O=W.canvas.width-W.JSC$18565_overlayMarginRight-Sp2(W,O);
break;case 4:O=W.canvas.width-W.JSC$18565_overlayMarginLeft-Sp2(W,O);break;case 1:O=W.canvas.width-W.JSC$18565_overlayMarginRight-ZZg(W,O);break;case 3:O=W.canvas.width-W.JSC$18565_overlayMarginLeft-ZZg(W,O);break;default:throw Error("tl");}return Math.max(O,W.horizontalMargin)},Sp2=function(W,O){O=W.canvas.height-Math.max(W.canvas.height-O,W.canvasMargin)-W.JSC$18565_overlayMarginTop;
return O<0?W.JSC$18565_overlayWidth:Math.max(Math.round(O*W.requiredRatio),W.minOverlayWidth)},ZZg=function(W,O){O=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-Math.max(O,W.canvasMargin);
return O<0?W.JSC$18565_overlayWidth:Math.max(Math.round(O*W.requiredRatio),W.minOverlayWidth)},VC7=function(W){W.ctx.clearRect(0,0,W.canvas.width,W.canvas.height);
W.ctx.drawImage(W.image,0,0,W.image.width,W.image.height,W.horizontalMargin,W.canvasMargin,W.canvas.width-2*W.horizontalMargin,W.scaledImageHeight);W.ctx.fillStyle="rgba(0, 0, 0, 0.7)";W.ctx.fillRect(W.horizontalMargin,W.JSC$18565_overlayMarginTop,W.JSC$18565_overlayMarginLeft-W.horizontalMargin,W.JSC$18565_overlayHeight);W.ctx.fillRect(W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth,W.JSC$18565_overlayMarginTop,W.JSC$18565_overlayMarginRight-W.horizontalMargin,W.JSC$18565_overlayHeight);W.ctx.fillRect(W.horizontalMargin,
W.canvasMargin,W.scaledImageWidth,W.JSC$18565_overlayMarginTop-W.canvasMargin);W.ctx.fillRect(W.horizontalMargin,W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight,W.scaledImageWidth,W.JSC$18565_overlayMarginBottom-W.canvasMargin);W.drawOverlay();W.component&&_.bX(W.component,"image-updated")};
Yn.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18565_overlayMarginLeft,this.JSC$18565_overlayMarginTop,this.JSC$18565_overlayWidth,this.JSC$18565_overlayHeight);I77(this)};
var I77=function(W){var O=W.JSC$18565_overlayMarginLeft-5,b=W.JSC$18565_overlayMarginTop-5,T=W.JSC$18565_overlayMarginLeft+W.JSC$18565_overlayWidth-5,L=W.JSC$18565_overlayMarginTop+W.JSC$18565_overlayHeight-5;W.ctx.fillStyle="#FFF";W.ctx.fillRect(O,b,10,10);W.ctx.strokeRect(O,b,10,10);W.ctx.fillRect(T,b,10,10);W.ctx.strokeRect(T,b,10,10);W.ctx.fillRect(O,L,10,10);W.ctx.strokeRect(O,L,10,10);W.ctx.fillRect(T,L,10,10);W.ctx.strokeRect(T,L,10,10);if(W.focusedCorner!==0&&W.styleFocusedCorner){W.ctx.lineWidth=
4;W.ctx.strokeStyle="#3EA6FF";switch(W.focusedCorner){case 1:--O;--b;break;case 2:--O;b=L-1;break;case 3:O=T-1;--b;break;case 4:O=T-1;b=L-1;break;default:return}W.ctx.strokeRect(O,b,12,12)}};
Yn.prototype.crop=function(W,O){O=O===void 0?!0:O;var b=this.image.width/this.scaledImageWidth,T=document.createElement("canvas"),L=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],h=this.JSC$18565_overlayWidth*b,Z=this.JSC$18565_overlayHeight*b;T.width=Math.max(h,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);T.height=Math.max(Z,L);W&&(T.width=Math.min(T.width,T.height),T.height=Math.min(T.width,T.height));
W=T.getContext("2d");if(!W)throw Error("hl");L=(this.JSC$18565_overlayMarginLeft-this.horizontalMargin)*b;b*=this.JSC$18565_overlayMarginTop-this.canvasMargin;O||(W.fillStyle="white",W.fillRect(0,0,T.width,T.height));W.drawImage(this.image,L,b,h,Z,0,0,T.width,T.height);return T};var a7U=function(W,O,b,T,L){Yn.call(this,W,O,b,T,void 0,L,8,!1)};
_.R(a7U,Yn);a7U.prototype.drawOverlay=function(){var W=this.getContext(),O=this.JSC$18565_overlayWidth,b=this.JSC$18565_overlayHeight,T=this.JSC$18565_overlayMarginTop,L=this.JSC$18565_overlayMarginLeft;W.lineWidth=2;W.strokeStyle="#3EA6FF";W.beginPath();W.arc(L+O/2,T+b/2,O/2,0,2*Math.PI);W.stroke();W.strokeRect(L,T,O,b);I77(this)};
var m65={maxFileSizeMB:15,minWidth:98,minHeight:98},Yp5=["image/png","image/jpeg","image/gif"],EH=function(){var W=_.n.apply(this,arguments)||this;W.fileSelectorFocusListener=null;W.errorMessage=null;W.isLoading=!0;W.hideContainer=!0;W.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return W};
_.R(EH,_.n);_.d=EH.prototype;_.d.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.d.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.d.computePlaylistThumbnail=function(W){return W==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.d.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.jx(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.d.setErrorState=function(W){this.resetErrorState();W&&(this.errorMessage=W)};
_.d.showPopup=function(){var W=this;this.hideContainer=!1;_.KB(_.sF,function(){_.bX(W.hostElement,"yt-refit")});
this.isLoading=!1};
_.d.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.d.closePopup=function(){this.resetFileSelector();_.jx(this.hostElement,"yt-close-popup-action",[this.is])};
_.d.onCancelTap=function(){this.isPlaylistThumbnail||_.jx(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.d.openFileSelector=function(){var W=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.KB(_.sF,function(){setTimeout(function(){if(!W.fileSelector.files||W.fileSelector.files.length===0)W.onCancelTap();W.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(O){O instanceof Error?_.Dt(O):_.xG(new _.pu(JSON.stringify(O)))}};
_.d.handleFileSelection=function(){var W=this,O,b,T,L,h,Z;return _.I(function(a){switch(a.nextAddress){case 1:_.LI(a,2);if(!W.fileSelector.files||!W.imageEditorCanvas)return W.onCancelTap(),a.return();O=W.fileSelector.files[0];nE5(W.imageChecker,O);_.LI(a,4);return _.Y(a,SO7(O),6);case 6:W.mimeType=a.yieldResult;_.H3(a,5,2);break;case 4:_.ID(a,2),_.jx(W.hostElement,"yt-image-selection-error-action",[(b=W.data)==null?void 0:b.genericImageLoadErrorMessage]),W.onCancelTap();case 5:T=new FileReader;T.addEventListener("load",
function(){var m,w;return _.I(function(A){if(A.nextAddress==1){if(!T.result)return _.z5(Error("jl")),A.return();m=T.result;w=new Image;w.src=m;w.onload=function(){try{var X=W.imageChecker;if(w.width<X.requirements.minWidth||w.height<X.requirements.minHeight)throw new CF9(X.requirements.minWidth,X.requirements.minHeight);}catch(p){if(p instanceof CF9){var l;_.jx(W.hostElement,"yt-image-selection-error-action",[(l=W.data)==null?void 0:l.imageDimensionErrorMessage]);W.logImageDimensionErrorVe()}else p instanceof
Error?_.Dt(p):(X=new _.pu(JSON.stringify(p)),_.Dt(X));W.onCancelTap()}W.showPopup()};
w.onerror=function(){var X;_.jx(W.hostElement,"yt-image-selection-error-action",[(X=W.data)==null?void 0:X.genericImageLoadErrorMessage]);W.onCancelTap()};
return _.Y(A,$ik(W.imageEditorCanvas,m),2)}W.imageEditor=A.yieldResult;W.updatePositionOfAllCorners();W.addEventListeners(W.imageEditor);_.aD(A)})},!1);
T.readAsDataURL(O);_.H3(a,0);break;case 2:L=_.ID(a),L instanceof mt?_.jx(W.hostElement,"yt-image-selection-error-action",[(h=W.data)==null?void 0:h.imageSizeErrorMessage]):(L instanceof Error?_.Dt(L):_.xG(new _.pu(JSON.stringify(L))),_.jx(W.hostElement,"yt-image-selection-error-action",[(Z=W.data)==null?void 0:Z.genericImageLoadErrorMessage])),W.onCancelTap(),_.aD(a)}})};
_.d.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var W=_.wG(_.A4(),{veType:232707,visualElement:_.gd(232707)});W&&(W={visualElement:W},_.Ez().reportShown(W))}};
_.d.handleImageSelectionErrorAction=function(W){this.isPlaylistThumbnail&&_.NIh(this.hostElement,W)};
_.d.convertToImageFormatBundle=function(W){var O=this,b,T,L;return _.I(function(h){switch(h.nextAddress){case 1:return b=W.toDataURL(O.outputMimeType,1),_.Y(h,ZVg(b),2);case 2:T=h.yieldResult;_.LI(h,3);nE5(O.imageChecker,T);_.H3(h,4);break;case 3:L=_.ID(h);if(!(L instanceof mt))throw L;_.z5(new _.pu("Output size is bigger than input size for image",O.mimeType,O.outputMimeType,T.size));b=W.toDataURL("image/jpeg",.95);return _.Y(h,ZVg(b),6);case 6:T=h.yieldResult;case 4:return h.return({dataUrl:b,imageFile:T})}})};
_.d.handleUploadImageToScottyCommand=function(W){var O=this,b,T,L,h,Z,a,m,w,A,X;return _.I(function(l){switch(l.nextAddress){case 1:if(!O.imageEditor||!_.P(W,o8k))return l.return();b=_.P(W,o8k).scottyUploadUrl;if(!b){var p=new _.pu("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Dt(p);return l.return()}_.LI(l,2);O.setLoadingState();T=O.imageEditor.crop(!1,!1);return _.Y(l,O.convertToImageFormatBundle(T),4);case 4:return L=l.yieldResult,_.Y(l,dkU(L.imageFile,b),5);case 5:h=
l.yieldResult;((Z=O.data)==null?0:Z.onUploadEndpoint)?(a=O.buildUploadServiceEndpoint(h),O.ytComponentBehavior.resolveCommand(a),m=_.P(a,_.oP),((w=m)==null?0:w.params)?O.closePopup():O.resetFileSelector()):(_.jx(O.hostElement,"yt-image-updated-action",[L.dataUrl,h]),O.closePopup());_.H3(l,0);break;case 2:A=_.ID(l),O.setErrorState((X=O.data)==null?void 0:X.uploadErrorMessage),A instanceof Error?_.Dt(A):(p=new _.pu(JSON.stringify(A)),_.Dt(p)),_.aD(l)}})};
_.d.buildUploadServiceEndpoint=function(W){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",W),this.data.onUploadEndpoint):null};
_.d.dataChanged=function(){var W=this,O;return _.I(function(b){if(b.nextAddress==1){if(!W.data||!W.canvasElement)return b.return();W.data.imageRatio&&W.data.minImageCropWidth||_.xG(new _.pu("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));O=function(T,L){return W.data.imageType==="IMAGE_TYPE_AVATAR"?new a7U(T,L,W.data.imageRatio,[W.data.minImageCropWidth,W.data.minImageCropWidth/W.data.imageRatio],W.hostElement):new Yn(T,L,W.data.imageRatio,[W.data.minImageCropWidth,
W.data.minImageCropWidth/W.data.imageRatio],void 0,W.hostElement,8,!1)};
W.imageEditorCanvas=new fyB(W.canvasElement,O);return W.data.url?_.Y(b,$ik(W.imageEditorCanvas,W.data.url),3):(W.hideContainer=!0,W.openFileSelector(),b.jumpTo(0))}W.imageEditor=b.yieldResult;W.showPopup();W.addEventListeners(W.imageEditor);_.aD(b)})};
_.d.addEventListeners=function(W){this.removeEventListeners();var O=function(L){GjP(W,L)};
this.JSC$18573_mouseDownEvent=O;var b=function(L){HQ5(W,L)};
this.JSC$18573_mouseMoveEvent=b;var T=function(){tCD(W)};
this.JSC$18573_mouseUpEvent=T;this.topLeftCorner.addEventListener("mousedown",O);this.topLeftCorner.addEventListener("mousemove",b);this.topLeftCorner.addEventListener("mouseup",T);this.topRightCorner.addEventListener("mousedown",O);this.topRightCorner.addEventListener("mousemove",b);this.topRightCorner.addEventListener("mouseup",T);this.bottomLeftCorner.addEventListener("mousedown",O);this.bottomLeftCorner.addEventListener("mousemove",b);this.bottomLeftCorner.addEventListener("mouseup",T);this.bottomRightCorner.addEventListener("mousedown",
O);this.bottomRightCorner.addEventListener("mousemove",b);this.bottomRightCorner.addEventListener("mouseup",T)};
_.d.removeEventListeners=function(){this.JSC$18573_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18573_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18573_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18573_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18573_mouseDownEvent));this.JSC$18573_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18573_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18573_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18573_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18573_mouseMoveEvent));this.JSC$18573_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18573_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18573_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18573_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18573_mouseUpEvent))};
_.d.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var W=document.activeElement;W&&W.shadowRoot&&W.shadowRoot.activeElement;)W=W.shadowRoot.activeElement;switch(W){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};
_.d.updatePositionOfCorner=function(W,O){var b=W.y-O.offsetHeight/2+4;O.style.left=W.x-O.offsetWidth/2+16+"px";O.style.top=b+"px"};
_.d.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var W=_.S([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),O=W.next();!O.done;O=W.next()){O=O.value;var b=uM9(this.imageEditor,O.corner);this.updatePositionOfCorner(b,O.div)}};
_.d.onLeft=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(cjk(this.imageEditor,0),this.updatePositionOfAllCorners(),W.preventDefault())};
_.d.onRight=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(cjk(this.imageEditor,1),this.updatePositionOfAllCorners(),W.preventDefault())};
_.d.onUp=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(cjk(this.imageEditor,2),this.updatePositionOfAllCorners(),W.preventDefault())};
_.d.onDown=function(W){this.imageEditor&&this.setFocusInImageEditor()&&(cjk(this.imageEditor,3),this.updatePositionOfAllCorners(),W.preventDefault())};
_.d.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Jq.Object.defineProperties(EH.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Yp5.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var W,O,b;((O=this.data)==null?0:O.imageRatio)&&((b=this.data)==null?0:b.minImageCropWidth)?W={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:W=m65;return new qg5(W)}}});
EH.prototype.updatePositionOfAllCorners=EH.prototype.updatePositionOfAllCorners;EH.prototype.dataChanged=EH.prototype.dataChanged;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],EH.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],EH.prototype,"ytComponentBehavior",void 0);_.t([_.D(_.wc),_.N("design:type",Object)],EH.prototype,"ironA11yKeysBehavior",void 0);
_.t([_.El("#canvas"),_.N("design:type",HTMLCanvasElement)],EH.prototype,"canvasElement",void 0);_.t([_.El("#file-selector"),_.N("design:type",HTMLInputElement)],EH.prototype,"fileSelector",void 0);_.t([_.El("#top-left-corner"),_.N("design:type",HTMLDivElement)],EH.prototype,"topLeftCorner",void 0);_.t([_.El("#top-right-corner"),_.N("design:type",HTMLDivElement)],EH.prototype,"topRightCorner",void 0);
_.t([_.El("#bottom-left-corner"),_.N("design:type",HTMLDivElement)],EH.prototype,"bottomLeftCorner",void 0);_.t([_.El("#bottom-right-corner"),_.N("design:type",HTMLDivElement)],EH.prototype,"bottomRightCorner",void 0);_.t([_.C(),_.N("design:type",Object)],EH.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],EH.prototype,"errorMessage",void 0);_.t([_.C(),_.N("design:type",Object)],EH.prototype,"isLoading",void 0);_.t([_.C(),_.N("design:type",Object)],EH.prototype,"hideContainer",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.N("design:type",Boolean)],EH.prototype,"isPlaylistThumbnail",void 0);_.t([_.Ul("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],EH.prototype,"dataChanged",null);_.t([_.ai("image-updated"),_.ai("yt-refit"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],EH.prototype,"updatePositionOfAllCorners",null);
EH=_.t([_.sl({is:"yt-image-editor-renderer",disableElementRegistration:!0})],EH);
_.H(EH,"yt-image-editor-renderer",function(){if(zPB===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;xiR===void 0&&(xiR=document.createElement("template"));var T=xiR;b.call(O,T.content.cloneNode(!0),W.content.firstChild);zPB=W}W=zPB;return W},{mode:2});var ER8;var w7g;var wr=function(){return _.n.apply(this,arguments)||this};
_.R(wr,_.n);wr.prototype.updateMinutesFromBinding=function(W){this.handleMinutesChanged&&this.handleMinutesChanged(W)};
wr.prototype.updateSecondsFromBinding=function(W){this.handleSecondsChanged&&this.handleSecondsChanged(W)};
wr.prototype.updateDescriptionFromBinding=function(W){this.handleDescriptionChanged&&this.handleDescriptionChanged(W)};
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],wr.prototype,"ytComponentBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],wr.prototype,"data",void 0);_.t([_.C(),_.N("design:type",String)],wr.prototype,"minutes",void 0);_.t([_.C(),_.N("design:type",String)],wr.prototype,"seconds",void 0);_.t([_.C(),_.N("design:type",String)],wr.prototype,"description",void 0);_.t([_.C(),_.N("design:type",Function)],wr.prototype,"handleMinutesChanged",void 0);
_.t([_.C(),_.N("design:type",Function)],wr.prototype,"handleSecondsChanged",void 0);_.t([_.C(),_.N("design:type",Function)],wr.prototype,"handleDescriptionChanged",void 0);_.t([_.C(),_.N("design:type",Number)],wr.prototype,"characterLimit",void 0);_.t([_.C(),_.N("design:type",Number)],wr.prototype,"textNumRows",void 0);wr=_.t([_.sl({is:"yt-report-details-form-content",disableElementRegistration:!0})],wr);
_.H(wr,"yt-report-details-form-content",function(){if(w7g===void 0){var W=document.createElement("template");_.v(W,'\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>');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;ER8===void 0&&(ER8=document.createElement("template"));var T=ER8;b.call(O,T.content.cloneNode(!0),W.content.firstChild);w7g=W}W=w7g;return W},{mode:2});var AdB;var X78;var AZ=function(){var W=_.n.apply(this,arguments)||this;W.updateMinutesFromBinding=function(O){W.minutes=O.detail.value};
W.updateSecondsFromBinding=function(O){W.seconds=O.detail.value};
W.updateDescriptionFromBinding=function(O){W.description=O.detail.value};
return W};
_.R(AZ,_.n);_.d=AZ.prototype;_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.d.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"}}}};
_.d.ready=function(){_.Q(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.d.onSubmitYtAction=function(W){var O=W.detail;O.actionName==="yt-service-request"&&(O=O.args[1],O.flagEndpoint&&(W.stopPropagation(),this.refireAction(O)))};
_.d.refireAction=function(W){var O={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(O.vss_id=this.vssId);_.da(this.hostElement,[W,O]);this.submitDisabled=!0};
_.d.dataChanged=function(){var W=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var O=_.ya();O&&O.getPlayerPromise().then(function(b){var T=b.getOption("cc","track")||b.getOption("captions","track");T&&(W.vssId=T.vss_id);b=b.getCurrentTime();W.minutes=Math.floor(b/60).toString();W.seconds=(Math.floor(b)%60).toString()})};
_.d.updateSubmitButtonState=function(){var W;((W=this.data)==null?0:W.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==="")};
_.d.onYtServiceRequestCompleted=function(){_.jx(this.hostElement,"yt-close-popup-action")};
_.d.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Jq.Object.defineProperties(AZ.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var W;return((W=this.data)==null?void 0:W.textNumRows)||4}}});
AZ.prototype.onYtServiceRequestError=AZ.prototype.onYtServiceRequestError;AZ.prototype.onYtServiceRequestCompleted=AZ.prototype.onYtServiceRequestCompleted;AZ.prototype.updateSubmitButtonState=AZ.prototype.updateSubmitButtonState;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],AZ.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],AZ.prototype,"ytRendererBehavior",void 0);
_.t([_.C({observer:"dataChanged"}),_.N("design:type",Object)],AZ.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Boolean)],AZ.prototype,"submitDisabled",void 0);_.t([_.C(),_.N("design:type",String)],AZ.prototype,"minutes",void 0);_.t([_.C(),_.N("design:type",String)],AZ.prototype,"seconds",void 0);_.t([_.C(),_.N("design:type",String)],AZ.prototype,"description",void 0);_.t([_.C(),_.N("design:type",String)],AZ.prototype,"vssId",void 0);
_.t([_.C({value:_.Cv("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.N("design:type",Boolean)],AZ.prototype,"isMusic",void 0);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],AZ.prototype,"characterLimit",null);_.t([_.x("data"),_.N("design:type",Number),_.N("design:paramtypes",[])],AZ.prototype,"textNumRows",null);
_.t([_.Ul("minutes","seconds","description","submitDisabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AZ.prototype,"updateSubmitButtonState",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AZ.prototype,"onYtServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],AZ.prototype,"onYtServiceRequestError",null);AZ=_.t([_.sl({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],AZ);
_.H(AZ,"yt-report-details-form-renderer",function(){if(X78===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;AdB===void 0&&(AdB=document.createElement("template"));var T=AdB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);X78=W}W=X78;return W});var U6N;var l7g;var eNU;var PV5;var XK=function(){return _.n.apply(this,arguments)||this};
_.R(XK,_.n);
XK.prototype.onCheckedChanged_=function(){if(this.data){var W=_.Q(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.jx(this.hostElement,"yt-additional-detail-checkbox-update",[W]):this.data.identifier==="yt-hide-user-checkbox"?_.jx(this.hostElement,"yt-hide-user-checkbox-update",[W]):W&&this.data.enableCommand?_.jx(this.hostElement,"yt-modify-report-form-command",[_.P(this.data.enableCommand,xvB)]):!W&&this.data.disableCommand&&_.jx(this.hostElement,
"yt-modify-report-form-command",[_.P(this.data.enableCommand,xvB)])}};
XK.prototype.onLabelTap_=function(W){W.target.tagName!="A"&&(_.Q(this.hostElement).querySelector("#checkbox").checked=!_.Q(this.hostElement).querySelector("#checkbox").checked)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],XK.prototype,"data",void 0);XK=_.t([_.sl({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],XK);
_.H(XK,"yt-boolean-form-field-v2-renderer",function(){if(PV5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;eNU===void 0&&(eNU=document.createElement("template"));var T=eNU;b.call(O,T.content.cloneNode(!0),W.content.firstChild);PV5=W}W=PV5;return W});var UH=function(){var W=_.n.apply(this,arguments)||this;W.canShowAdditionalDetailCheckbox=!1;W.canShowCheckbox=!1;W.keepDropdownFocusedAfterSelection=!0;return W};
_.R(UH,_.n);UH.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}}}}};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],UH.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],UH.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.C(),_.N("design:type",Object)],UH.prototype,"canShowCheckbox",void 0);_.t([_.C(),_.N("design:type",Object)],UH.prototype,"keepDropdownFocusedAfterSelection",void 0);
UH=_.t([_.sl({is:"yt-report-form-modal-content",disableElementRegistration:!0})],UH);
_.H(UH,"yt-report-form-modal-content",function(){if(l7g===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;U6N===void 0&&(U6N=document.createElement("template"));var T=U6N;b.call(O,T.content.cloneNode(!0),W.content.firstChild);l7g=W}W=l7g;return W},{mode:2});var p77;var RN1;var l5=function(){var W=_.n.apply(this,arguments)||this;W.submitting=!1;W.submitButtonDisabled=!0;W.command=null;W.canShowCheckbox=!1;W.canShowAdditionalDetailCheckbox=!1;W.canShowNextButton=!1;W.additionalDetailCheckboxChecked=!1;W.refitJob=0;W.keepDropdownFocusedAfterSelection=!0;W.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 W};
_.R(l5,_.n);_.d=l5.prototype;_.d.created=function(){this.refitJob=0};
_.d.attached=function(){this.JSC$18596_scroller&&(this.JSC$18596_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18596_scroller.attached&&typeof this.JSC$18596_scroller.attached==="function"&&this.JSC$18596_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.dataChanged=function(W){W&&(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,W.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),W.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.d.onYtPopupOpened=function(){var W=_.ya();W&&W.getPlayerPromise().then(function(O){O.pauseVideo()})};
_.d.onYtNavigate=function(W){_.P(W.detail.endpoint,_.xcw)&&(W.stopPropagation(),this.hideReportForm=!0)};
_.d.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.d.onYtServiceRequestCompleted=function(W,O){var b=O.actions;if(b){if(b.length===1&&_.P(b[0],_.I5)){var T;b=((T=_.P(b[0],_.I5))==null?void 0:T.commands)||[]}T=0;for(var L=b.length;T<L;T++)_.P(b[T],_.pN)&&(W.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(b[T]))}if(O.data&&(W=this.get("feedbackResponses",O.data)))for(O=0;O<W.length;O++)if(W[O].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.d.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.d._onDescendantIronResize=function(W){W.stopPropagation();return!1};
_.d.handleReportFormEndpointUpdateAction=function(W){if(W.submitEndpoint){var O=this.command=W.submitEndpoint;O=_.P(O,_.PQ1);if(O==null?0:O.additionalDetailCheckboxChecked)O.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else W.submitNavigationEndpoint?(this.command=W.submitNavigationEndpoint,this.toggleSubmitButton(!1)):W.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:W.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;W.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",W));this.refit()};
_.d.handleConfirmDialogCloseAction=function(W){W.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.d.submitButtonDisabledChanged=function(){var W=this.hostElement.parentElement;W&&W.invalidateTabbables&&W.invalidateTabbables()};
_.d.handleModifyReportFormCommand=function(W){W=this.get("action",W);W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:W==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:W==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:W==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:W==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.d.updateDialogStyling=function(){var W,O,b,T,L,h=((L=(W=this.data)==null?void 0:(O=W.optionsSupportedRenderers)==null?void 0:(b=O.optionsRenderer)==null?void 0:(T=b.items)==null?void 0:T.length)!=null?L:0)<=2?0:240;_.Sl(this.hostElement,{"--yt-report-form-modal-renderer-min-width":h+"px"})};
_.d.toggleSubmitButton=function(W){this.submitButtonDisabled=!W;this.submitButtonDisabled=W};
_.d.computeSubmitButtonData=function(W,O){var b={};_.P(O,_.xcw)?b.navigationEndpoint=O:b.command=O||void 0;W&&W.buttonRenderer&&_.PQ.extend(b,W.buttonRenderer);return b};
_.d.computeNextButtonData=function(W,O){var b={};if(!W||!W.buttonRenderer)return b;_.PQ.extend(b,W.buttonRenderer);if(!O)return b;if(_.P(O,_.xcw))b.navigationEndpoint=J19(O);else if(b.command=J19(O),W=_.P(b.command,_.PQ1))W.legalCheckboxChecked=!0;return b};
_.d.computeShowNextButton=function(W,O,b){return!!W&&O&&b};
_.d.refit=function(){var W=this;this.refitJob||(this.refitJob=_.sF.addLowPriorityJob(function(){_.bX(W.hostElement,"yt-refit");W.refitJob=0}))};
_.d.handleAdditionalDetailCheckboxUpdateAction=function(W){this.additionalDetailCheckboxChecked=W;_.P(this.command,_.PQ1).additionalDetailCheckboxChecked=W};
_.Jq.Object.defineProperties(l5,{template:{configurable:!0,enumerable:!0,get:function(){if(RN1===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;p77===void 0&&(p77=document.createElement("template"));var T=p77;b.call(O,T.content.cloneNode(!0),W.content.firstChild);RN1=W}W=RN1;return W}}});
l5.prototype.onYtServiceRequestError=l5.prototype.onYtServiceRequestError;l5.prototype.onYtServiceRequestCompleted=l5.prototype.onYtServiceRequestCompleted;l5.prototype.onYtServiceRequestSent=l5.prototype.onYtServiceRequestSent;l5.prototype.onYtNavigate=l5.prototype.onYtNavigate;l5.prototype.onYtPopupOpened=l5.prototype.onYtPopupOpened;_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],l5.prototype,"openPopupBehavior",void 0);
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],l5.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],l5.prototype,"eventForwardingBehavior",void 0);_.t([_.D(_.vL),_.N("design:type",Object)],l5.prototype,"ironResizableBehavior",void 0);_.t([_.C({observer:"dataChanged"}),_.N("design:type",Object)],l5.prototype,"data",void 0);
_.t([_.C(),_.N("design:type",Object)],l5.prototype,"submitting",void 0);_.t([_.C({observer:"submitButtonDisabledChanged"}),_.N("design:type",Object)],l5.prototype,"submitButtonDisabled",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"command",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],l5.prototype,"hideReportForm",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"canShowCheckbox",void 0);
_.t([_.C(),_.N("design:type",Object)],l5.prototype,"canShowAdditionalDetailCheckbox",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"canShowNextButton",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"additionalDetailCheckboxChecked",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"refitJob",void 0);_.t([_.C(),_.N("design:type",Object)],l5.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.t([_.El("#scroller"),_.N("design:type",Object)],l5.prototype,"JSC$18596_scroller",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],l5.prototype,"onYtPopupOpened",null);_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],l5.prototype,"onYtNavigate",null);
_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],l5.prototype,"onYtServiceRequestSent",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],l5.prototype,"onYtServiceRequestCompleted",null);
_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],l5.prototype,"onYtServiceRequestError",null);l5=_.t([_.sl({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],l5);var Ku2;var vR5;var eI=function(){return _.n.apply(this,arguments)||this};
_.R(eI,_.n);_.d=eI.prototype;_.d.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.d.onVisible=function(){if(_.e("web_ephemeral_actions_focus")){var W,O;(O=_.iq().resolve(_.OT(_.SF)))==null||O.enqueue({label:_.NX((W=this.data)==null?void 0:W.messageTitle),elementToFocus:this.hostElement})}};
_.d.onThumbnailLoaded=function(){_.bX(this.hostElement,"yt-refit")};
_.d.onDismissTap=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.d.computeAlternateIcon=function(W){return W?W==="BACKSTAGE_ARTWORK"?"backstage:artwork":W:null};
_.d.computeFontFamily=function(W){return W==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.d.computeBackgroundStyle=function(W,O){if(W=this.computeBackgroundImage(W,O))if(W=_.jE(W.thumbnails))return'background-image: url("'+W+'");'};
_.d.computeHasFullHeightImage=function(W){return!(!(W&&W.thumbnails&&W.thumbnails.length>0)||this.modern)};
_.d.isModernStyle=function(W){return W.style==="STYLE_MODERN"};
_.d.computeIcon=function(W,O){if(W&&W.icon)return O?W.iconDark:W.icon};
_.d.computeBackgroundImage=function(W,O){if(W&&W.backgroundImage)return O?W.backgroundImageDark:W.backgroundImage};
_.d.computeLogo=function(W,O){if(W&&W.logo)return O?W.logoDark:W.logo};
_.d.computeShouldShowModernIcon=function(W,O){return W&&!!O};
_.d.getLogoContainerClassName=function(W){return this.logoWithPadding(W)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.d.getLogoImageId=function(W){return this.logoWithPadding(W)?"mealbar-logo-with-padding":"mealbar-logo"};
_.d.logoWithPadding=function(W){var O,b,T;return(W=(O=this.computeLogo(W,this.isDarkTheme))==null?void 0:(b=O.thumbnails)==null?void 0:(T=b[0])==null?void 0:T.height)&&W%31===0?!0:!1};
eI.prototype.onThumbnailLoaded=eI.prototype.onThumbnailLoaded;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.t([_.C({}),_.N("design:type",Object)],eI.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.N("design:type",Boolean)],eI.prototype,"modern",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],eI.prototype,"isDarkTheme",void 0);
_.t([_.C({computed:"computeIcon(data, isDarkTheme)"}),_.N("design:type",Object)],eI.prototype,"icon",void 0);_.t([_.C({computed:"computeLogo(data, isDarkTheme)"}),_.N("design:type",Object)],eI.prototype,"logo",void 0);_.t([_.C({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.N("design:type",Object)],eI.prototype,"backgroundStyle",void 0);_.t([_.C({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.N("design:type",Object)],eI.prototype,"alternateIcon",void 0);
_.t([_.C({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.N("design:type",Boolean)],eI.prototype,"hasFullHeightImage",void 0);_.t([_.C({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.N("design:type",Boolean)],eI.prototype,"useYoutubeSans",void 0);_.t([_.C({computed:"computeShouldShowModernIcon(modern, icon)"}),_.N("design:type",Boolean)],eI.prototype,"shouldShowModernIcon",void 0);
_.t([_.ai("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],eI.prototype,"onThumbnailLoaded",null);eI=_.t([_.sl({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],eI);
_.H(eI,"yt-mealbar-promo-renderer",function(){if(vR5===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;Ku2===void 0&&(Ku2=document.createElement("template"));var T=Ku2;b.call(O,T.content.cloneNode(!0),W.content.firstChild);vR5=W}W=vR5;return W},{mode:2});var gR1;var oRU;var PI=function(){return _.n.apply(this,arguments)||this};
_.R(PI,_.n);_.d=PI.prototype;_.d.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]]"}}}}}};
_.d.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.acceptButton)};
_.d.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d.observeImpressionEndpoints_=function(){var W=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(O){O.clickTrackingParams&&delete O.clickTrackingParams;_.da(W.hostElement,[O])})};
_.d.onTap_=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
PI.prototype.observeImpressionEndpoints_=PI.prototype.observeImpressionEndpoints_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],PI.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],PI.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],PI.prototype,"positionType",void 0);_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],PI.prototype,"hasButtons_",void 0);_.t([_.C({value:function(){return this.onTap_.bind(this)}}),
_.N("design:type",Function)],PI.prototype,"boundOnTap_",void 0);_.t([_.C({value:{style:"mono-inverse"}}),_.N("design:type",Object)],PI.prototype,"buttonOverride",void 0);_.t([_.m5("data.promoConfig.impressionEndpoints"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],PI.prototype,"observeImpressionEndpoints_",null);PI=_.t([_.sl({is:"yt-tooltip-renderer",disableElementRegistration:!0})],PI);
_.H(PI,"yt-tooltip-renderer",function(){if(oRU===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;gR1===void 0&&(gR1=document.createElement("template"));var T=gR1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);oRU=W}W=oRU;return W},{mode:2});var QHD;var kEg;var sHD={},BW2=(sHD.WEB_REMIX="music.youtube.com",sHD),pa=function(){var W=_.n.apply(this,arguments)||this;W.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return W};
_.R(pa,_.n);_.d=pa.prototype;_.d.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.created=function(){this.embedHost_=BW2[_.Cv("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.d.ready=function(){_.Q(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.d.computeEmbedCode_=function(W,O,b,T,L){if(!W)return"";var h=W.videoId,Z=W.fullListId,a=[];W.attributionId&&a.push("si="+W.attributionId);T||a.push("controls=0");b&&Number(O)>0&&a.push("start="+O);Z&&(h="videoseries",a.push("list="+Z));b="https://"+(L?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+h;W.clipId&&(a.push("clip="+W.clipId),a.push("clipt="+W.clipTiming));O=a.length>0?b+"?"+a.join("&amp;"):b;W.encryptedEmbedConfig&&a.push("embed_config="+JSON.stringify({enc:W.encryptedEmbedConfig}));
a=a.length>0?b+"?"+a.join("&amp;"):b;_.e("web_sharing_embed_preview_killswitch")?_.Q(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(a,W.previewWidth||854,W.previewHeight||480):(_.RB(this.videoPreviewContainer),_.Q(this.videoPreviewContainer).appendChild(this.buildIframeElement(a)));return this.getEmbedCode_(O,W.width||560,W.height||315)};
_.d.buildIframeElement=function(W){var O=document.createElement("iframe"),b,T;O.width=""+((T=(b=this.data)==null?void 0:b.previewWidth)!=null?T:854);var L,h;O.height=""+((h=(L=this.data)==null?void 0:L.previewHeight)!=null?h:480);_.UAO(O,2,W);O.title="YouTube video player";O.frameBorder="0";O.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";O.referrerPolicy="strict-origin-when-cross-origin";O.allowFullscreen=!0;return O};
_.d.computeIsSquareAspectRatio_=function(W){return W.previewHeight&&W.previewWidth?W.previewHeight==W.previewWidth:!1};
_.d.computeShowEmbedOptions_=function(W){return!!W.enablePrivacyModeOptionLabel||!!W.showPlayerControlsOptionLabel};
_.d.getEmbedCode_=function(W,O,b){return'<iframe width="'+O+'" height="'+b+'" src="'+W+'" 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>'};
_.d.handleSignalActionCopyShareEmbedUrl_=function(){_.Q(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.d.handleSetTimestamp_=function(W){this.startAtTimeStamp_=(this.startAtChecked_=W.isSet)?W.timestamp:0};
_.d.closePanel_=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.d.onEmbedCode_=function(){_.Q(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.d.onYtPopupClosed_=function(){_.RB(_.Q(this.hostElement).querySelector("#video-preview"))};
_.d.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.P(this.data.actionButtons[0],_.s2)&&this.ytRendererBehavior.logExplicitClick(_.P(this.data.actionButtons[0],_.s2))};
pa.prototype.onYtPopupClosed_=pa.prototype.onYtPopupClosed_;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],pa.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],pa.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],pa.prototype,"data",void 0);
_.t([_.C({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.N("design:type",String)],pa.prototype,"embedCode_",void 0);_.t([_.C({value:!0}),_.N("design:type",Boolean)],pa.prototype,"isPlayerControlsOptionChecked_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],pa.prototype,"isPrivacyModeOptionChecked_",void 0);_.t([_.C({value:!1,notify:!0}),_.N("design:type",Boolean)],pa.prototype,"startAtChecked_",void 0);
_.t([_.C({value:0}),_.N("design:type",Number)],pa.prototype,"startAtTimeStamp_",void 0);_.t([_.C({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],pa.prototype,"isSquareAspectRatio_",void 0);_.t([_.El("#video-preview"),_.N("design:type",HTMLElement)],pa.prototype,"videoPreviewContainer",void 0);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],pa.prototype,"onYtPopupClosed_",null);
pa=_.t([_.sl({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],pa);
_.H(pa,"yt-sharing-embed-renderer",function(){if(kEg===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;QHD===void 0&&(QHD=document.createElement("template"));var T=QHD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);kEg=W}W=kEg;return W},{mode:2});var rdg={};
rdg.YtUnlimitedFamilyInterstitialBehavior=[_.aV.YtOpenPopupBehavior,_.WP.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(W){W=_.bH9(_.Md(W),"yt-button-renderer");return W?W.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(W){this.dialogHistory_.push(W)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var W=this.popFromHistory();if(W){var O={openPopupAction:{popupType:"DIALOG",popup:{}}};O.openPopupAction.popup[W.renderer]=W.data;this.showingPreviousDialog_=!0;this.openPopup(O)}},
handleOpenPopupAction_:function(W){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var O=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(T){return!!W.openPopupAction.popup[T]}),b=this.getElementName_();
O&&this.data&&(this.pushToHistory({renderer:b,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(W){if(W=_.P(W,S_9))this.loading=!0,_.jx(this.hostElement,"yt-open-create-family-dialog",[W,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var W=this.hostElement.nodeName.split("-").slice(1).map(function(O){return""+O[0].toUpperCase()+O.slice(1).toLowerCase()}).join("");
return W[0].toLowerCase()+W.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var D6k;var x65;var RS=function(){return _.n.apply(this,arguments)||this};
_.R(RS,_.n);_.d=RS.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.jx(this.hostElement,"yt-register-create-family-dialog");_.Q(this.hostElement).querySelector("#thumbnail").onShow()};
_.d.fireOnCloseCommand_=function(){var W;((W=this.data)==null?0:W.onCloseCommand)&&_.Sx(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.d.onYtServiceRequestSent_=function(W,O){O&&O.endpoint&&_.P(O.endpoint,_.mM)||(this.loading=!0)};
_.d.onYtServiceRequestCompleted_=function(){var W=this.hostElement.parentElement;W.close&&W.close();this.loading=!1};
_.d.openPopupHandler_=function(W){if(W.detail==this){var O;((O=this.data)==null?0:O.onOpenCommands)&&_.Sx(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.d.closePopupHandler_=function(W,O){this.fireOnCloseCommand_();if(O&&O.canceled===!0||O&&O.canceled===!1&&O.confirmed===!1){var b;((b=this.data)==null?0:b.onDismissCommands)&&_.Sx(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.d.dataChanged_=function(){this.loading=!1};
RS.prototype.dataChanged_=RS.prototype.dataChanged_;RS.prototype.closePopupHandler_=RS.prototype.closePopupHandler_;RS.prototype.openPopupHandler_=RS.prototype.openPopupHandler_;RS.prototype.onYtServiceRequestCompleted_=RS.prototype.onYtServiceRequestCompleted_;RS.prototype.onYtServiceRequestSent_=RS.prototype.onYtServiceRequestSent_;_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],RS.prototype,"ytEventForwardingBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],RS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(rdg.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],RS.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],RS.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],RS.prototype,"loading",void 0);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],RS.prototype,"onYtServiceRequestSent_",null);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],RS.prototype,"onYtServiceRequestCompleted_",null);
_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],RS.prototype,"openPopupHandler_",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],RS.prototype,"closePopupHandler_",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],RS.prototype,"dataChanged_",null);
RS=_.t([_.sl({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],RS);
_.H(RS,"yt-unlimited-family-message-interstitial-renderer",function(){if(x65===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;D6k===void 0&&(D6k=document.createElement("template"));var T=D6k;b.call(O,T.content.cloneNode(!0),W.content.firstChild);x65=W}W=x65;return W},{mode:2});var zN1;var CV9;var Ka=function(){return _.n.apply(this,arguments)||this};
_.R(Ka,_.n);Ka.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"}}}};
Ka.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(W){W.onShow()});
_.Q(this.hostElement).querySelector("#main-thumbnail").onShow()};
Ka.prototype.onButtonTap_=function(W){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(W)};
Ka.prototype.computeMainThumbnailWidth_=function(W){return W&&W.length!==0?72:96};
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.t([_.D(rdg.YtUnlimitedFamilyInterstitialBehavior),_.N("design:type",Object)],Ka.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Ka.prototype,"data",void 0);
_.t([_.C({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.N("design:type",Number)],Ka.prototype,"mainThumbnailWidth_",void 0);_.t([_.C({value:function(){return this.onButtonTap_.bind(this)}}),
_.N("design:type",Function)],Ka.prototype,"boundButtonTap_",void 0);Ka=_.t([_.sl({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Ka);
_.H(Ka,"yt-unlimited-family-profile-interstitial-renderer",function(){if(CV9===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;zN1===void 0&&(zN1=document.createElement("template"));var T=zN1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);CV9=W}W=CV9;return W},{mode:2});var qpN;var nRU;var vI=function(){var W=_.n.apply(this,arguments)||this;W.sliderAriaValueText_=null;W.selectedIndex_=0;W.messages={PAUSE_SLIDER:_.EO("PAUSE_SLIDER",void 0,"Pause Duration")};return W};
_.R(vI,_.n);_.d=vI.prototype;_.d.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_]]"}}}}}};
_.d.onPopupOpened_=function(W){W.detail==this&&_.e("enable_premium_voluntary_pause")&&(_.jx(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d.setDialogData=function(W){this.data=W;this.resetSlider_()};
_.d.dataChanged_=function(){this.data&&this.resetSlider_()};
_.d.onSubmitTap_=function(){if(this.data.confirmCommand){var W=this.data.confirmCommand;_.P(W,_.xNH)&&_.da(this.hostElement,[W,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.d.onExitButtonTap_=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.d.closePopupHandler_=function(W,O){(O&&O.canceled===!0||O.canceled===!1&&O.confirmed===!1)&&this.handleOnDismissCommands_()};
_.d.onSliderChange_=function(){this.selectedIndex_=_.Q(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.d.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.d.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.d.resetSlider_=function(){if(this.data){var W=this.data.defaultEndOptionIndex||0,O=_.Q(this.hostElement).querySelector("#id-pause-slider");if(O.immediateValue<W)for(;O.immediateValue!=W;)O.increment();else if(W<O.immediateValue)for(;O.immediateValue!=W;)O.decrement();this.selectedIndex_=W;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.d.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.Sx(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.Sx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestSent=function(){this.loading=!0};
_.d.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
vI.prototype.onYtServiceRequestCompleted=vI.prototype.onYtServiceRequestCompleted;vI.prototype.onYtServiceRequestSent=vI.prototype.onYtServiceRequestSent;vI.prototype.closePopupHandler_=vI.prototype.closePopupHandler_;vI.prototype.dataChanged_=vI.prototype.dataChanged_;vI.prototype.onPopupOpened_=vI.prototype.onPopupOpened_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],vI.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],vI.prototype,"loading",void 0);_.t([_.C(),_.N("design:type",Number)],vI.prototype,"selectIndexMax_",void 0);_.t([_.C(),_.N("design:type",Object)],vI.prototype,"selectedData_",void 0);
_.t([_.C(),_.N("design:type",Object)],vI.prototype,"sliderAriaValueText_",void 0);_.t([_.C({value:function(){return this.onSubmitTap_.bind(this)}}),
_.N("design:type",Function)],vI.prototype,"onButtonTap_",void 0);_.t([_.C({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.N("design:type",Function)],vI.prototype,"onSecondaryTap_",void 0);_.t([_.C(),_.N("design:type",Object)],vI.prototype,"messages",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],vI.prototype,"onPopupOpened_",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],vI.prototype,"dataChanged_",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],vI.prototype,"closePopupHandler_",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],vI.prototype,"onYtServiceRequestSent",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],vI.prototype,"onYtServiceRequestCompleted",null);vI=_.t([_.sl({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],vI);
_.H(vI,"yt-unplugged-pause-membership-dialog-renderer",function(){if(nRU===void 0){var W=document.createElement("template");_.v(W,'\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>');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;qpN===void 0&&(qpN=document.createElement("template"));var T=qpN;b.call(O,T.content.cloneNode(!0),W.content.firstChild);nRU=W}W=nRU;return W},{mode:2});var f7k;var GE7;var gr=function(){return _.n.apply(this,arguments)||this};
_.R(gr,_.n);gr.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.rd("vcBalanceRenderer")}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],gr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],gr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],gr.prototype,"data",void 0);gr=_.t([_.sl({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],gr);
_.H(gr,"yt-vc-offer-layout-header-renderer",function(){if(GE7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;f7k===void 0&&(f7k=document.createElement("template"));var T=f7k;b.call(O,T.content.cloneNode(!0),W.content.firstChild);GE7=W}W=GE7;return W},{mode:2});var HZD;var tS7;var $6D;var VSD;var oS=function(){return _.n.apply(this,arguments)||this};
_.R(oS,_.n);oS.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Jq.Object.defineProperties(oS.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)}}});
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],oS.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],oS.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.KPv.YtTappableItemBehavior),_.N("design:type",Object)],oS.prototype,"ytTappableItemBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],oS.prototype,"data",void 0);
_.t([_.C({reflectToAttribute:!0}),_.x("data.accessibilityText"),_.N("design:type",String),_.N("design:paramtypes",[])],oS.prototype,"ariaLabel",null);_.t([_.C({reflectToAttribute:!0}),_.x("data.style"),_.N("design:type",String),_.N("design:paramtypes",[])],oS.prototype,"vcOfferStyle",null);_.t([_.x("data.style","data.titleText"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],oS.prototype,"showTitleText",null);oS=_.t([_.sl({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],oS);
_.H(oS,"yt-vc-offer-renderer",function(){if(VSD===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;$6D===void 0&&($6D=document.createElement("template"));var T=$6D;b.call(O,T.content.cloneNode(!0),W.content.firstChild);VSD=W}W=VSD;return W},{mode:2});var Qn=function(){return _.n.apply(this,arguments)||this};
_.R(Qn,_.n);Qn.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Qn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Qn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],Qn.prototype,"data",void 0);Qn=_.t([_.sl({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],Qn);
_.H(Qn,"yt-vc-offer-layout-renderer",function(){if(tS7===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;HZD===void 0&&(HZD=document.createElement("template"));var T=HZD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);tS7=W}W=tS7;return W},{mode:2});var NWD;var MSR;var unB;var Jd1;var kn=function(){return _.n.apply(this,arguments)||this};
_.R(kn,_.n);kn.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}}}}}};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],kn.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],kn.prototype,"data",void 0);kn=_.t([_.sl({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],kn);
_.H(kn,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Jd1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;unB===void 0&&(unB=document.createElement("template"));var T=unB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Jd1=W}W=Jd1;return W},{mode:2});var sH=function(){return _.n.apply(this,arguments)||this};
_.R(sH,_.n);sH.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"}}}}};
sH.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
sH.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var W=this.scrollable;W.attached&&typeof W.attached==="function"&&W.attached()};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],sH.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],sH.prototype,"ytRendererstamperBehavior",void 0);_.t([_.El("#scrollable"),_.N("design:type",Object)],sH.prototype,"scrollable",void 0);_.t([_.C(),_.N("design:type",Object)],sH.prototype,"data",void 0);sH=_.t([_.sl({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],sH);
_.H(sH,"yt-ypc-offers-modal-renderer",function(){if(MSR===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;NWD===void 0&&(NWD=document.createElement("template"));var T=NWD;b.call(O,T.content.cloneNode(!0),W.content.firstChild);MSR=W}W=MSR;return W},{mode:2});var cdk;var FuR;var BI=function(){return _.n.apply(this,arguments)||this};
_.R(BI,_.n);_.d=BI.prototype;_.d.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}}}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.d.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.jx(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.d.onYtPopupOpened_=function(W,O){(O==null?void 0:O.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.Sx(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.d.onYtPopupClosed_=function(W,O){this.continueButtonTapped||O&&(O.canceled===!0||O.canceled===!1&&O.confirmed===!1)&&this.data.onDismissCommands&&_.Sx(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.d.onYtServiceRequestError_=function(W){this.set("showSpinner",!1);_.yU(this.hostElement,W.detail.error.message)};
_.d.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.e("enable_ypc_spinners")?_.jx(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
BI.prototype.onYtServiceRequestError_=BI.prototype.onYtServiceRequestError_;BI.prototype.onYtPopupClosed_=BI.prototype.onYtPopupClosed_;BI.prototype.onYtPopupOpened_=BI.prototype.onYtPopupOpened_;BI.prototype.onYtServiceRequestCompleted_=BI.prototype.onYtServiceRequestCompleted_;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],BI.prototype,"ytRendererstamperBehavior",void 0);
_.t([_.C(),_.N("design:type",Object)],BI.prototype,"data",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],BI.prototype,"showSpinner",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],BI.prototype,"continueButtonTapped",void 0);_.t([_.C({value:function(){return this.onContinueTapped_.bind(this)}}),
_.N("design:type",Function)],BI.prototype,"bindOnContinueTapped_",void 0);_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],BI.prototype,"onYtServiceRequestCompleted_",null);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],BI.prototype,"onYtPopupOpened_",null);
_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],BI.prototype,"onYtPopupClosed_",null);_.t([_.ai("yt-service-request-error"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],BI.prototype,"onYtServiceRequestError_",null);BI=_.t([_.sl({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],BI);
_.H(BI,"yt-ypc-upgrade-dialog-renderer",function(){if(FuR===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;cdk===void 0&&(cdk=document.createElement("template"));var T=cdk;b.call(O,T.content.cloneNode(!0),W.content.firstChild);FuR=W}W=FuR;return W},{mode:2});var yd1;var WZR;var rr=function(){return _.n.apply(this,arguments)||this};
_.R(rr,_.n);rr.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
rr.prototype.computeHasButtons_=function(W){return!(!W.dismissButton&&!W.confirmButton)};
rr.prototype.computeStyle_=function(W){return W||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],rr.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],rr.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],rr.prototype,"ytRendererstamperBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],rr.prototype,"data",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],rr.prototype,"positionType",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.N("design:type",Boolean)],rr.prototype,"hasButtons_",void 0);_.t([_.C({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.N("design:type",Boolean)],rr.prototype,"style_",void 0);rr=_.t([_.sl({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],rr);
_.H(rr,"yt-bubble-hint-renderer",function(){if(WZR===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;yd1===void 0&&(yd1=document.createElement("template"));var T=yd1;b.call(O,T.content.cloneNode(!0),W.content.firstChild);WZR=W}W=WZR;return W},{mode:2});var O7P;var i7N;var D0=function(){var W=_.cB.apply(this,arguments)||this;W.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return W};
_.R(D0,_.cB);_.d=D0.prototype;_.d.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.d.attached=function(){var W=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){W.$.thumbnail.onShow();W.$["header-image"].onShow()})};
_.d.handleCheckBoxUpdateAction_=function(W){this.canShowCheckboxEnabledConfirmButton=W};
_.d.computeUseOverlayForSpinner_=function(W,O){return!!W&&O};
_.d.computeShowSpinner_=function(W,O){return W||!!O};
_.d.fireOnCloseActions_=function(){var W,O=_.S(((W=this.data)==null?void 0:W.onClosedActions)||[]);for(W=O.next();!W.done;W=O.next())this.ytRendererBehavior.resolveCommand(W.value)};
_.d.fireOnOpenCommands_=function(W){var O,b=(O=this.data)==null?void 0:O.onOpenCommands;if(b)for(W.stopImmediatePropagation(),W=_.S(b),O=W.next();!O.done;O=W.next())this.ytRendererBehavior.resolveCommand(O.value)};
_.d.fireOnDismissCommands_=function(W){var O,b=(O=this.data)==null?void 0:O.onDismissCommands;if(b)for(W.stopImmediatePropagation(),W=_.S(b),O=W.next();!O.done;O=W.next())this.ytRendererBehavior.resolveCommand(O.value)};
_.d.openPopupHandler_=function(W){W.detail==this&&this.fireOnOpenCommands_(W)};
_.d.closePopupHandler_=function(W,O){_.TU(this,"yt-confirm-dialog-close-action",[O]);this.fireOnCloseActions_();(O&&O.canceled===!0||O&&O.canceled===!1&&O.confirmed===!1)&&this.fireOnDismissCommands_(W)};
_.d.onHeaderImageChanged_=function(){var W;((W=this.data)==null?0:W.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.d.computeHasHeaderImageWidth_=function(W){return W!=void 0};
_.d.computeHasLoadingMessage=function(W){return!!W};
_.d.onHeaderImageWidthChanged_=function(){var W,O=(W=this.data)==null?void 0:W.headerImageWidth;if(O){if(W=1.25*O*2+O,this.$.main.style.width=W+"px",O=this.$.scroller.firstElementChild)O.style.minWidth=W+"px"}else this.$.main.style.width="100%"};
_.d.onThumbnailChanged_=function(){var W;((W=this.data)==null?0:W.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")};
_.d.onYtNavigate_=function(W){W=_.Md(W);W instanceof Node&&_.T0(this.$["confirm-button"]).contains(W)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.d.computePrimaryIsCancel_=function(W){return W};
_.d.computeIsCancelButtonHidden_=function(W){return W.skipCancelButton||!W.cancelButton};
_.d.computeIsCheckboxHidden_=function(W){return!W.checkbox};
_.d.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.d.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.d.onYtServiceRequestCompleted_=function(){var W;((W=this.data)==null?0:W.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Jq.Object.defineProperties(D0,{template:{configurable:!0,enumerable:!0,get:function(){if(i7N===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;O7P===void 0&&(O7P=document.createElement("template"));var T=O7P;b.call(O,T.content.cloneNode(!0),W.content.firstChild);i7N=W}W=i7N;return W}}});
D0.prototype.onYtServiceRequestCompleted_=D0.prototype.onYtServiceRequestCompleted_;D0.prototype.onYtServiceRequestSent_=D0.prototype.onYtServiceRequestSent_;D0.prototype.onThumbnailLoaded_=D0.prototype.onThumbnailLoaded_;D0.prototype.onYtNavigate_=D0.prototype.onYtNavigate_;D0.prototype.onThumbnailChanged_=D0.prototype.onThumbnailChanged_;D0.prototype.onHeaderImageWidthChanged_=D0.prototype.onHeaderImageWidthChanged_;D0.prototype.onHeaderImageChanged_=D0.prototype.onHeaderImageChanged_;
D0.prototype.closePopupHandler_=D0.prototype.closePopupHandler_;D0.prototype.openPopupHandler_=D0.prototype.openPopupHandler_;_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],D0.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);
_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],D0.prototype,"ytEventForwardingBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],D0.prototype,"data",void 0);_.t([_.C({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.N("design:type",Boolean)],D0.prototype,"primaryIsCancel",void 0);_.t([_.C({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],D0.prototype,"isCancelButtonHidden",void 0);
_.t([_.C({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.N("design:type",Boolean)],D0.prototype,"isCheckboxHidden",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],D0.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.t([_.C({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.N("design:type",Boolean)],D0.prototype,"useOverlayForSpinner_",void 0);
_.t([_.C({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.N("design:type",Boolean)],D0.prototype,"showSpinner_",void 0);_.t([_.C({value:!1}),_.N("design:type",Boolean)],D0.prototype,"isActionInProgress_",void 0);_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.N("design:type",Boolean)],D0.prototype,"hasHeaderImageWidth_",void 0);
_.t([_.C({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.N("design:type",Boolean)],D0.prototype,"hasLoadingMessage",void 0);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],D0.prototype,"openPopupHandler_",null);_.t([_.ai("yt-popup-closed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],D0.prototype,"closePopupHandler_",null);
_.t([_.m5("data.headerImage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D0.prototype,"onHeaderImageChanged_",null);_.t([_.m5("data.headerImageWidth"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D0.prototype,"onHeaderImageWidthChanged_",null);_.t([_.m5("data.thumbnail"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D0.prototype,"onThumbnailChanged_",null);
_.t([_.ai("yt-navigate"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],D0.prototype,"onYtNavigate_",null);_.t([_.ai("yt-img-shadow-loaded"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],D0.prototype,"onThumbnailLoaded_",null);_.t([_.ai("yt-service-request-sent"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.nd]),_.N("design:returntype")],D0.prototype,"onYtServiceRequestSent_",null);
_.t([_.ai("yt-service-request-completed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,_.Mf]),_.N("design:returntype")],D0.prototype,"onYtServiceRequestCompleted_",null);D0=_.t([_.sl({is:"yt-confirm-dialog-renderer",noInjection:!0})],D0);var b7Z;var j_B;var xn=function(){return _.n.apply(this,arguments)||this};
_.R(xn,_.n);xn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Q(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
xn.prototype.computeConfirmButton_=function(W){var O={text:W.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};W.confirmNavigationEndpoint?O.navigationEndpoint=W.confirmNavigationEndpoint:W.confirmServiceEndpoint&&(O.serviceEndpoint=W.confirmServiceEndpoint);return O};
xn.prototype.computeShowTitle_=function(W){return!(W==null||!W.title)};
_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],xn.prototype,"data",void 0);_.t([_.C({computed:"computeShowTitle_(data)"}),_.N("design:type",Boolean)],xn.prototype,"showTitle",void 0);xn=_.t([_.sl({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],xn);
_.H(xn,"yt-fancy-dismissible-dialog-renderer",function(){if(j_B===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;b7Z===void 0&&(b7Z=document.createElement("template"));var T=b7Z;b.call(O,T.content.cloneNode(!0),W.content.firstChild);j_B=W}W=j_B;return W});var TPB;var LZ1;var zk=function(){var W=_.n.apply(this,arguments)||this;W.spinnerActive=!1;return W};
_.R(zk,_.n);zk.prototype.created=function(){o12(2201)};
zk.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
zk.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
zk.prototype.onIronOverlayClosed=zk.prototype.onIronOverlayClosed;zk.prototype.onIronOverlayOpened=zk.prototype.onIronOverlayOpened;_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.Gi),_.N("design:type",Object)],zk.prototype,"tpYtIronOverlayBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],zk.prototype,"data",void 0);_.t([_.C(),_.N("design:type",Object)],zk.prototype,"spinnerActive",void 0);
_.t([_.ai("iron-overlay-opened"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zk.prototype,"onIronOverlayOpened",null);_.t([_.ai("iron-overlay-closed"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],zk.prototype,"onIronOverlayClosed",null);zk=_.t([_.sl({is:"yt-loading-renderer",disableElementRegistration:!0})],zk);
_.H(zk,"yt-loading-renderer",function(){if(LZ1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;TPB===void 0&&(TPB=document.createElement("template"));var T=TPB;b.call(O,T.content.cloneNode(!0),W.content.firstChild);LZ1=W}W=LZ1;return W},{mode:2});var dQ9;var hT8;var Ca=function(){var W=_.n.apply(this,arguments)||this;W.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);W.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);W.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";W.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return W};
_.R(Ca,_.n);_.d=Ca.prototype;_.d.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.d.onDarkModeToggledAction=function(W){this.isDarkTheme=W};
_.d.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.d.openPopupHandler_=function(W){W.detail===this.hostElement&&this.hostElement.hidden&&_.jx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.d.onDismissButtonTap_=function(){var W;this.closeOnDismissButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.jx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.onAcceptButtonTap_=function(){var W;this.closeOnAcceptButton_.has(((W=this.data)==null?void 0:W.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.jx(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.d.computeHasHeader_=function(W){return!!W.headerBackgroundImage};
_.d.computeLayoutStyle_=function(W){return W};
_.d.computePopupSize_=function(W){return W};
_.d.computeIconType_=function(W){return W.dialogIcon&&W.dialogIcon.iconType?W.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":W.dialogIcon.iconType:""};
_.d.computeIsLogo_=function(W){return!!W.dialogIcon&&!!W.dialogIcon.iconType&&(W.dialogIcon.iconType==="YOUTUBE_LOGO"||W.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||W.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.d.computeHasCustomLogo=function(W){return!(W==null||!W.headerForegroundImage)};
_.d.computeCustomLogo=function(W,O){if(W!=null&&W.headerForegroundImage)return W.headerForegroundImageDark?O?W.headerForegroundImageDark:W.headerForegroundImage:W.headerForegroundImage};
_.d.computeHeaderBackgroundImage=function(W,O){if(W!=null&&W.headerBackgroundImage)return O&&(W==null?0:W.headerBackgroundImageDark)?W.headerBackgroundImageDark:W.headerBackgroundImage};
_.d.shouldShowIconContainer=function(W,O){return W&&!O};
_.d.shouldShowNonYouTubeIcon=function(W,O){return!W&&!O};
_.d.getLogoImageId=function(W){var O,b,T;return(W=(O=this.computeCustomLogo(W,this.isDarkTheme))==null?void 0:(b=O.thumbnails)==null?void 0:(T=b[0])==null?void 0:T.height)&&W%31===0?"custom-logo-with-padding":"custom-logo"};
Ca.prototype.openPopupHandler_=Ca.prototype.openPopupHandler_;Ca.prototype.dataChanged_=Ca.prototype.dataChanged_;_.t([_.D(_.y4.YtRendererstamperBehavior),_.N("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.t([_.C(),_.N("design:type",Boolean)],Ca.prototype,"isDarkTheme",void 0);
_.t([_.C({computed:"computeCustomLogo(data, isDarkTheme)"}),_.N("design:type",Object)],Ca.prototype,"customLogo",void 0);_.t([_.C({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.N("design:type",Object)],Ca.prototype,"headerBackgroundImage",void 0);_.t([_.C(),_.N("design:type",Object)],Ca.prototype,"data",void 0);_.t([_.C({computed:"computeHasHeader_(data)"}),_.N("design:type",Boolean)],Ca.prototype,"hasHeader",void 0);
_.t([_.C({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.N("design:type",Object)],Ca.prototype,"layoutStyle",void 0);_.t([_.C({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.N("design:type",Object)],Ca.prototype,"popupSize",void 0);_.t([_.C({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ca.prototype,"hasLogo",void 0);
_.t([_.C({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.N("design:type",Boolean)],Ca.prototype,"hasCustomLogo",void 0);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],Ca.prototype,"dataChanged_",null);_.t([_.ai("yt-popup-opened"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],Ca.prototype,"openPopupHandler_",null);
Ca=_.t([_.sl({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Ca);
_.H(Ca,"yt-upsell-dialog-renderer",function(){if(hT8===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;dQ9===void 0&&(dQ9=document.createElement("template"));var T=dQ9;b.call(O,T.content.cloneNode(!0),W.content.firstChild);hT8=W}W=hT8;return W},{mode:2});var SqR=_.J1(function(W){return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.E(_.U,{cond:W.title,then:function(O){return _.E("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},O)}}))},"mg"),Z7B=_.J1(function(W){return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.E(_.R4,{data:W.closeButton},{buttonViewModel:function(O){return _.E("div",null,_.E(_.DO,{data:O.data}))}}))},"ng"),I1g=_.J1(function(W){var O=
W.data;
return _.E(_.TT,null,_.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.E(_.U,{cond:function(){return!!O().image&&!!O().title},
then:function(){return _.E(_.uj,{data:function(){return O().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.E(_.U,{cond:function(){return O().title},
then:function(b){return _.E("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},b)}}),_.E(_.U,{cond:function(){return O().primaryGenre},
then:function(b){return _.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},b)}}))),_.E(_.U,{cond:function(){var b=O().description;
return b&&b.length<=150},
then:function(){return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return O().description}))}}))},"og"),a1B=_.J1(function(W){W=W.infoRows;
var O=_.iq().resolve(_.ry),b=_.e("enable_displaying_ppn");return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.E(_.pv,{each:W},function(T){return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.E(_.U,{cond:function(){return T.label},
then:function(L){return _.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},L)}}),_.E(_.U,{cond:function(){return T.attributedLabel},
then:function(L){return _.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.E(_.uw,{text:L,noPreWrap:!0}))}}),_.E(_.U,{cond:function(){return T.value},
then:function(L){return _.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},L)}}),_.E(_.U,{cond:function(){return T.attributedValue},
then:function(L){return _.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.E(_.uw,{text:L,noPreWrap:!0}))}}))}),_.E(_.U,{cond:function(){return b&&O.clientData.has("post_play_nonce")},
then:function(){return _.E("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.E("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},O.getData("post_play_nonce")))}}))},"pg"),mQ8=_.J1(function(W){var O=W.data;
return _.E("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.E(SqR,{title:function(){return O().dialogTitle}}),_.E(I1g,{data:O}),_.E(_.U,{cond:function(){return O().infoRow},
then:function(b){return _.E(a1B,{infoRows:b})}}),_.E(Z7B,{closeButton:function(){return O().closeButton}}))},"qg");
mQ8.idomCompat=!0;_.O1(mQ8,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;return _.E("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.E(_.uj,{data:function(){return O().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.E("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.E("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.E(_.U,{cond:function(){var b=O().ytLogo;return b?b.iconType:null},
then:function(b){return _.E(_.Ps,{icon:b,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.E("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.E("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.E(_.uw,{text:function(){return O().body}})),_.E("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.E(_.uw,{text:function(){return O().verifyStateText}}))),
_.E("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.E("div",null,_.E(_.R4,{data:function(){return O().dismissButton}},{buttonViewModel:_.DO})),_.E("div",null,_.E(_.R4,{data:function(){return O().linkParentButton}},{buttonViewModel:_.DO})))))},"rg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.te}});var Yq2=_.J1(function(W){var O=W.data;return _.E("installment-agreements-view-model",{class:_.YS("ytInstallmentAgreementsViewModelHost")},_.E(_.pv,{each:_.Me(function(){return O().agreements},[])},function(b){return _.E("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.E("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.E(_.uw,{text:b.label})),_.E("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.E(_.R4,{data:function(){return b.openButton}},{buttonViewModel:_.DO})))}))},
"sg");
Yq2.idomCompat=!0;var EAN=_.J1(function(W){return _.E("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.E(_.uw,{text:function(){return W.data().inviteMessage}})),_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.E(_.uw,{text:function(){return W.data().attributedAccountSectionHeaderText}})),_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.E(_.R4,{data:function(){return W.data().accountAvatar}},{avatarViewModel:_.KF}),_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.E(_.uw,{text:function(){return W.data().accountName}}),_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.E(_.uw,{text:function(){return W.data().handle}}))),_.E(_.R4,{data:function(){return W.data().trailingButton}},{buttonViewModel:_.DO})),_.E("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.E(_.uw,{text:function(){return W.data().termsOfService}})))},"tg");var wW2=_.J1(function(W){var O=_.S(_.ln(function(){var y,d8;return((y=W.data().createPlaylistDialogFormSchema)==null?0:(d8=y.initialValues)==null?0:d8.title)?W.data().createPlaylistDialogFormSchema.initialValues.title:""})),b=O.next().value,T=O.next().value;
O=_.S(_.ln(function(){W.data();return!1}));
var L=O.next().value,h=O.next().value;O=_.S(_.ln(function(){W.data();return!1}));
var Z=O.next().value,a=O.next().value;O=_.S(_.ln(function(){var y,d8;return(y=W.data().createPlaylistDialogFormSchema)==null?void 0:(d8=y.initialValues)==null?void 0:d8.visibility}));
var m=O.next().value,w=O.next().value;O=_.S(_.ln(function(){W.data();return!1}));
var A=O.next().value,X=O.next().value;O=_.S(_.ln(function(){var y,d8;return(y=W.data().createPlaylistDialogFormSchema)==null?void 0:(d8=y.initialValues)==null?void 0:d8.isCollaborative}));
var l=O.next().value,p=O.next().value,K=_.uy();_.kb(function(){var y=K.value.querySelector("textarea");y&&(y.value=b())});
_.kX(function(){var y;_.CNk((y=W.data().createPlaylistDialogFormSchema)==null?void 0:y.id,{onSubmit:function(){var d8=b();var pE=m(),Qh=l(),KE=W.data();d8={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:d8,privacyStatus:pE,videoIds:KE.videoIds,sourcePlaylistId:KE.sourcePlaylistId,params:Qh?KE.createPlaylistParamsCollaborationEnabled:KE.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.iq().resolve(_.bq).resolveCommand(d8)},
isValid:function(){return L()&&!Z()&&!A()}})});
var k=function(y){if(y!==void 0&&(T(y),!L()&&y.length>0&&h(!0),L())){var d8=qOZ(W.data());if(d8){var pE=d8.minLength;d8=d8.maxLength;pE&&y.length<pE?a(!0):d8&&y.length>d8?a(!0):a(!1)}}},r=function(){var y=!(!l()||m()!=="PRIVATE");
X(y)},q=function(y){y!==void 0&&(w(y),r())},f=function(){if(A())return fMP(W.data())},M=function(){p(!l());
r()},V=function(){return{validate:function(y){if(L()){var d8=qOZ(W.data());
if(d8){var pE=d8.minLength;d8=d8.translations;if(pE&&y.length<pE)return d8==null?void 0:d8.minLengthErrorMessage}}}}},jQ=function(){var y=qOZ(W.data()),d8=y==null?void 0:y.maxLength,pE;
y=y==null?void 0:(pE=y.translations)==null?void 0:pE.maxLengthErrorMessage;if(d8&&y)return{maxChars:d8,errorMessage:y}};
return _.E("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.E("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:K},_.E(_.R4,{data:function(){return W.data().playlistTitle}},{textFormFieldViewModel:function(y){return _.E(_.lqU,{data:y.data,
text:b,onInput:k,validation:V,characterLimit:jQ})},
textFieldViewModel:function(y){return _.E(_.Ur5,{data:y.data,text:b,onInput:k,validation:V,characterLimit:jQ})}})),_.E("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.E(_.R4,{data:function(){return W.data().playlistVisibility}},{dropdownViewModel:function(y){return _.E(_.Bu2,{data:y.data,
onSelected:q,error:f})}})),_.E(_.U,{cond:function(){return!!W.data().playlistCollaborate},
then:function(){return _.E("div",null,_.E(_.R4,{data:function(){return W.data().playlistCollaborate}},{switchListItemViewModel:function(y){return _.E(_.xHL,{data:y.data,
onTap:M})}}))}}))},"ug");var A02=_.J1(function(W){var O=_.Me(W.noPadding,!1),b=function(){var L,h;return(h=(L=W.data().logo.accessibilityData)==null?void 0:L.label)!=null?h:""},T={};
return _.E("upsell-view-model",{class:_.YS("ytUpsellViewModelHost",(T.ytUpsellViewModelHostNoPadding=function(){return O()},T))},_.E("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.E(_.U,{cond:function(){return _.ML(W.data().logo)},
then:function(L){return _.E(_.uj,{data:L,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:b})}})),_.E("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.E(_.uw,{text:function(){return W.data().title}})),_.E("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.E(_.pv,{each:function(){var L;
return(L=W.data().subtitles)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.E("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.E(_.uw,{text:L}))})),_.E("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.E(_.pv,{each:function(){var L;
return(L=W.data().benefitInfos)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.E(_.U,{cond:function(){return L().info},
then:function(h){return _.E("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.E(_.Ps,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.E(_.uw,{text:h}))}})})),_.E("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.E(_.pv,{each:function(){var L;
return(L=W.data().legalInfos)!=null?L:[]},
keyBy:"INDEX"},function(L){return _.E("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.E(_.uw,{text:L}))})))},"vg");var XW2=_.J1(function(W){var O=W.data;W={};W=(W.ytMiniAppScoreChallengeViewModelScoreRadial=!0,W.ytMiniAppScoreChallengeViewModelDarkScoreRadial=GUP(),W);return _.E("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.E("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return O().title}),_.E("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return O().subtitle}),_.E("div",{class:_.wd(W)},_.E("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return O().score})),_.E("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return O().prompt}))},"wg");var UQZ=function(){this.store=_.$I();this.formId=""};var l17=_.J1(function(W){function O(a){if(a&&(a=_.P(a,_.oWT)))return Object.assign({},a,{isSelected:h()})}
var b=_.S(_.ln(function(){var a,m;return(m=(a=_.P(W.data().option,_.oWT))==null?void 0:a.isSelected)!=null?m:!1})),T=b.next().value,L=b.next().value,h=T;
_.kX(function(){var a;_.CNk((a=W.data().formSchema)==null?void 0:a.id,{onSubmit:function(){var m=_.iq().resolve(_.bq),w=!!W.data().selectedCommand,A=!!W.data().unselectedCommand;if(h()){if(w)var X=W.data().selectedCommand}else A&&(X=W.data().unselectedCommand);X=_.xy(X);O(W.data().option)&&!X?(m="",!w&&A?m="selected ":w&&!A&&(m="unselected "),w=new _.pu("No "+m+"command found for SelectionListItemFormViewModel"),_.Dt(w)):X&&m.resolveCommand(X)},
isValid:function(){return!0}})});
var Z=function(){L(!h())};
_.so(function(){var a,m,w=(a=W.data())==null?void 0:(m=a.formSchema)==null?void 0:m.id;w&&_.xE5()().delete(w)});
return _.E("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.E("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.E(_.uw,{text:function(){return W.data().paragraph}})),_.E(_.U,{cond:function(){return O(W.data().option)},
then:function(a){return _.E(_.ve,{data:a,isCompact:!0,hideSelectionTextChevron:!0,onTap:Z,disableHorizontalPadding:!0})}}))},"xg");var eTD=_.J1(function(W){var O=W.data;var b=W.disablePadding;var T=W.className;var L=_.uy(),h=function(){return HVk(O().banner,O().assetContainerPaddingStyle)},Z=function(){return HVk(O().imageBanner,O().assetContainerPaddingStyle)},a=function(){return O().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.kX(function(){var m=function(){_.jx(L.value,"yt-refit-popups-action")},w;
(w=L.value)==null||w.addEventListener("image-loaded",m);_.so(function(){var A;(A=L.value)==null||A.removeEventListener("image-loaded",m)})});
W={};return _.E("yt-dialog-header-view-model",{el:L,class:_.YS(T,(W.ytDialogHeaderViewModelHost=!0,W.ytDialogHeaderViewModelHostDisablePadding=b,W))},_.E(_.U,{cond:function(){return O().banner},
then:function(){var m={};return _.E("div",{class:_.YS(T,(m.ytDialogHeaderViewModelBanner=!0,m.ytDialogHeaderViewModelBannerFullBleed=a,m)),style:_.eE({"max-height":function(){return O().assetContainerMaxHeight?O().assetContainerMaxHeight+"px":""}})},_.E(_.Fi,{data:h,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.E(_.U,{cond:function(){return O().imageBanner},
then:function(){var m={};return _.E("div",{class:_.YS(T,(m.ytDialogHeaderViewModelBanner=!0,m.ytDialogHeaderViewModelBannerFullBleed=a,m)),style:_.eE({"max-height":function(){return O().assetContainerMaxHeight!==void 0?O().assetContainerMaxHeight+"px":void 0}})},_.E(_.Fi,{data:Z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.E(_.U,{cond:function(){return O().customAssetContainer},
then:function(m){return _.E("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.E(_.R4,{data:m},{avatarStackViewModel:_.vd}))}}),_.E(_.U,{cond:function(){return O().customBanner},
then:function(m){return _.E("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.E(_.R4,{data:m},{avatarStackViewModel:_.vd}))}}),_.E(_.U,{cond:function(){return O().headline},
then:function(m){return _.E("h2",null,_.E(_.uw,{text:m,className:"ytDialogHeaderViewModelText"}))}}))},"yg");
eTD.idomCompat=!0;var PGk=_.J1(function(W){var O=_.qK5(function(){return W.data().formId}),b=O.onSubmit,T=O.isValid;
return _.E("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.E(_.R4,{data:function(){return W.data().panelFooter}},{panelFooterViewModel:function(L){return _.E(_.nl,{data:L.data,
disablePadding:!0,disablePrimaryButton:function(){return!T()},
onClickPrimaryButton:function(){b()}})}}))},"zg");var pWR=_.J1(function(W){var O=function(){var b,T;return(T=(b=_.P(W.data().rendererContext,_.A6))==null?void 0:b.label)!=null?T:""};
return _.E("yt-dialog-image-content-view-model",{class:_.YS("ytDialogImageContentViewModelHost",W.className)},_.E(_.U,{cond:function(){return _.ML(W.data().image)},
then:function(b){return _.E(_.uj,{data:b,alt:O,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.E(_.uw,{text:function(){return W.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Ag");var vA2=_.J1(function(W){var O=_.um(W,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),b=O.elRefCallback;W=O.iconWiz;var T=O.assetWiz,L=O.assetType,h=O.titleWiz,Z=O.leadingActionHeaderWiz,a=O.trailingActionHeaderWiz,m=O.headerPosition,w=O.contentWiz,A=O.buttonLayout,X=O.buttonStyle,l=O.primaryButtonWiz,p=O.secondaryButtonWiz,K=O.contentAlignment,k=O.isFullscreen,r=O.width,q=O.maxHeight,f=O.isHeaderWizDefined,
M=O.headerWiz,V=O.isFooterWizDefined,jQ=O.footerWiz;O=_.uy(function(tX){b==null||b(tX)});
var y=T?function(){return T({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,d8=l?function(){var tX={};
return l({buttonOverrides:function(){return{style:(X==null?void 0:X())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.YS((tX["yt-spec-dialog-layout__dialog-layout-button"]=!0,tX["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(A==null?void 0:A())===0||(A==null?void 0:A())===2},tX))})}:void 0,pE=p?function(){var tX={};
return p({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.YS((tX["yt-spec-dialog-layout__dialog-layout-button"]=!0,tX["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(A==null?void 0:A())===0||(A==null?void 0:A())===2},tX))})}:void 0,Qh=function(){return(!!h||!!Z||!!a)&&m()===0},KE={},fE={},r8={},nE={};
return _.E("dialog-layout",{el:O,class:_.YS((KE["yt-spec-dialog-layout"]=!0,KE["yt-spec-dialog-layout--dialog-layout-fullscreen"]=k,KE["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!k()},KE["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return q()===1},KE["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(L==null?void 0:L())===1},KE)),
style:function(){return(r==null?void 0:r())!==void 0?"width: "+r+"px;":""}},W?_.E("div",{class:_.YS((fE["yt-spec-dialog-layout__dialog-layout-icon"]=!0,fE["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!T&&m()===1},fE["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return K()===1},fE))},_.E(W,null)):null,_.E(_.U,{cond:f,
then:function(){return M?_.E("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.E(M,null)):null},
else:function(){return _.E(_.TT,null,_.E(_.U,{cond:Qh,then:function(){return _.E(RTD,{contentAlignment:K,LeadingActionHeader:Z,TrailingActionHeader:a,Title:h,isAboveAsset:!!y})}}),y?_.E("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.E(y,null)):null)}}),_.E("div",{class:_.YS((r8["yt-spec-dialog-layout__dialog-layout-container"]=!0,r8["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(K==null?void 0:K())===1},r8["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!h&&!M||!!y&&(m==null?void 0:m())===0},r8))},_.E(_.U,{cond:function(){return h&&!M&&(m==null?void 0:m())===1},
then:function(){return _.E(RTD,{contentAlignment:K,LeadingActionHeader:Z,TrailingActionHeader:a,Title:h,isAboveAsset:!1})}}),w?_.E("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.E("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.E(w,null))):null,_.E(_.U,{cond:V,
then:function(){return jQ?_.E("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.E(jQ,null)):null}}),d8||pE?_.E(KZ5,{footerClasses:_.YS((nE["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,nE["yt-spec-dialog-layout__dialog-layout-footer"]=!0,nE["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(A==null?void 0:A())===2},nE["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(A==null?void 0:A())===1},nE)),
PrimaryButton:d8,SecondaryButton:pE}):null))},"Bg"),RTD=_.J1(function(W){var O=_.um(W,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),b=O.contentAlignment,T=O.LeadingActionHeader;W=O.Title;var L=O.TrailingActionHeader,h=O.isAboveAsset,Z=O.enableLeadingActionHeader;O={};return _.E("div",{class:_.YS((O["yt-spec-dialog-layout__dialog-header-container"]=!0,O["yt-spec-dialog-layout__dialog-header"]=!0,O["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=h,O["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(b==null?void 0:b())===1&&Z()},O))},_.E(_.U,{cond:function(){return Z()},
then:function(){return T?_.E("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.E(T,null)):null}}),W?_.E("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.E(W,null)):null,L?_.E("div",null,_.E(L,null)):null)},"Cg"),KZ5=_.J1(function(W){var O=W.footerClasses;
var b=W.PrimaryButton;W=W.SecondaryButton;return _.E("div",{class:O},W?_.E(W,null):null,b?_.E(b,null):null)},"Dg");var gAZ=_.J1(function(W){var O=W.data;return _.E("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.E("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.E(_.R4,{data:function(){return O().avatar}},{avatarViewModel:_.KF})),_.E("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E(_.uw,{text:function(){return O().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Eg");var oAU=_.J1(function(W){var O=W.data;return _.E("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.E("div",{class:"ytAccessConfirmationViewModelContent"},_.E(_.R4,{data:function(){return O().dualAvatar}},{dualAvatarViewModel:function(b){return _.E("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.E(_.ZXU,{data:b.data}))}}),_.E("h2",{class:"ytAccessConfirmationViewModelTitle"},_.E(_.uw,{text:function(){return O().title}})),_.E(_.uw,{text:function(){return O().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Fg");var Q_P=_.J1(function(W){var O=W.data;var b=void 0;W=_.S(_.wu("",void 0,"bj3Bbf"));var T=W.next().value,L=W.next().value,h,Z=function(){L("");var w;(w=b)!=null&&w.store.dispatch(_.Tc({type:"RESET_COMMAND_MAP"}))};
_.kX(function(){b=new UQZ;window.addEventListener("yt-popup-closed",Z)});
_.kb(function(){if(b&&h!==O().formId){var w=b,A=O();A.formId&&(w.formId=A.formId,w.store.dispatch(_.Tc({type:"SET_CURRENT_FORM_ID",payload:{formId:w.formId}})));h=O().formId}});
_.so(function(){window.removeEventListener("yt-popup-closed",Z)});
var a=function(w,A,X){A.key&&X&&A.key!==T()&&(L(A.key),b&&A.command&&b.store.dispatch(_.Tc({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:X,command:A.command}})))},m=function(){if(_.P(O().content,_.O5U))return!(T==null?0:T())};
return _.E("yt-dialog-view-model",{class:_.YS("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.E(vA2,{headerWiz:function(){return _.E("span",{skip:!0},_.E(_.R4,{data:function(){return O().header}},{dialogHeaderViewModel:function(w){return _.E(eTD,{data:w.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!O().header},
contentWiz:function(){return _.E("span",{skip:!0},_.E(_.R4,{data:function(){return O().customContent?O().customContent:O().content}},{basicContentViewModel:_.$4z,
createPlaylistDialogFormViewModel:wW2,collaborativePlaylistInviteMessageViewModel:EAN,miniAppScoreChallengeViewModel:XW2,radioButtonGroupViewModel:function(w){return _.E(_.Qvg,{data:w.data,selectedKey:T,onSelected:a})},
selectionListItemFormViewModel:l17,upsellViewModel:function(w){return _.E(A02,{data:w.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:gAZ,installmentAgreementsViewModel:Yq2,accessConfirmationViewModel:oAU,listViewModel:function(w){return _.E(_.HTN,{data:w.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:pWR}))},
footerWiz:function(){return _.E("span",{skip:!0},_.E(_.R4,{data:function(){return O().footer}},{panelFooterViewModel:function(w){return _.E(_.nl,{data:w.data,
disablePadding:!0,disablePrimaryButton:m})},
formPanelFooterViewModel:PGk,formFooterViewModel:function(w){return _.E(_.wjR,{data:w.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!O().footer}}))},"Gg");
Q_P.idomCompat=!0;_.O1(Q_P,"yt-dialog-view-model",{props:{data:_.te},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var kY2=_.J1(function(W){var O=W.data;W={};return _.E("yt-panel-header-view-model",{class:_.YS("yt-panel-header-view-model-wiz",(W["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!O().shouldHideDivider},W["yt-panel-header-view-model-wiz--compact"]=function(){return!!O().subtitle},W))},_.E("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.E(_.U,{cond:function(){return O().title},
then:function(b){return _.E(_.uw,{text:b,className:"yt-panel-header-view-model-wiz__title"})}}),_.E(_.U,{cond:function(){return O().subtitle},
then:function(b){return _.E(_.uw,{text:b,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.E("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.E(_.R4,{data:function(){return O().trailingButtons}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Hg");
kY2.idomCompat=!0;var s_7=_.J1(function(W){var O=_.XL(function(h){var Z;if((Z=W.skipContentClick)==null?0:Z.call(W))return!1;W.onContentWrapperClick(h);return!0}),b,T,L;
return _.E("div",{class:_.YS("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return W.isAnimating()?"transform: translateY("+W.currentY()+"px);transition: 0.2s":""}},(b=W.header)==null?void 0:b.call(W),_.E("div",{id:W.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.eE({"max-height":(0,_.RF)(W.maxHeightForContentWrapper)}),"on:scroll":Na1(W.onScroll),"on:touchmove":Na1(function(h){return void h.stopPropagation()})},_.E("div",{el:{onRender:W.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":O},(T=W.body)==null?void 0:T.call(W))),(L=W.footer)==null?void 0:L.call(W))},"Ig");
s_7.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var BP8=_.J1(function(W){var O=_.Me(W.leadingLabel),b=_.Me(W.trailingLabel),T=_.Me(W.footerButtonType),L=function(){return O()||b()||W.hasPrimaryButton()||W.hasSecondaryButton()},h={},Z=_.YS("yt-spec-bottom-sheet-layout__primary-button",(h["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return T()===0&&W.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return T()===1&&W.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return T()===2&&W.hasPrimaryButton()},h["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return T()===3&&W.hasPrimaryButton()},h));
h={};var a=_.YS("yt-spec-bottom-sheet-layout__secondary-button",(h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return T()===1&&W.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return T()===2&&W.hasSecondaryButton()},h["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return T()===3&&W.hasPrimaryButton()},h));
return _.E(_.U,{cond:W.hasFooterOverride,then:function(){var m;return _.E(_.TT,null,(m=W.footerOverride)==null?void 0:m.call(W))},
else:function(){return _.E(_.U,{cond:L,then:function(){return _.E("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.E(_.U,{cond:function(){return O()||b()},
then:function(){var m={};return _.E("div",{class:_.YS("yt-spec-bottom-sheet-layout__footer-label-wrapper",(m["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!W.hasPrimaryButton()},m))},_.E(_.U,{cond:O,
then:function(){return _.E("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},O)}}),_.E(_.U,{cond:b,
then:function(){return _.E("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},b)}}))}}),_.E(_.U,{cond:function(){return W.hasPrimaryButton()||W.hasSecondaryButton()},
then:function(){var m={};return _.E("div",{class:_.YS("yt-spec-bottom-sheet-layout__footer-button-wrapper",(m["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.TP5,m))},_.E(_.U,{cond:function(){return W.hasSecondaryButton()&&T()!==0},
then:function(){var w;return _.E("div",{class:a},(w=W.secondaryButton)==null?void 0:w.call(W))}}),_.E(_.U,{cond:W.hasPrimaryButton,
then:function(){var w;return _.E("div",{class:Z},(w=W.primaryButton)==null?void 0:w.call(W))}}))}}))}})}})},"Jg");
BP8.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var r07=_.J1(function(W){var O=_.Me(W.title),b=_.Me(W.subtitle),T=_.XL(function(Z){var a;(a=W.touchstart)==null||a.call(W,Z);return!1}),L=_.XL(function(Z){var a;
(a=W.touchmove)==null||a.call(W,Z);return!1}),h=_.XL(function(Z){var a;
(a=W.touchend)==null||a.call(W,Z);return!1});
return _.E("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:W.headerId,"on:touchstart":T,"on:touchmove":L,"on:touchend":h},_.E("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.E(_.U,{cond:W.hasHeaderOverride,then:function(){var Z;return _.E(_.TT,null,(Z=W.headerOverride)==null?void 0:Z.call(W))},
else:function(){var Z={};return _.E("div",{class:_.YS((Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,Z["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=O,Z))},_.E("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.E(_.U,{cond:O,then:function(){return _.E(_.TT,null,_.E("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},O),_.E(_.U,{cond:b,then:function(){return _.E("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
b)}}))}})),_.E(_.U,{cond:function(){return O()&&W.hasActionHeader()},
then:function(){var a;return _.E("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(a=W.actionHeader)==null?void 0:a.call(W))}}))}}))},"Kg");
r07.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.J1(function(W){function O(y){if(!q&&typeof MutationObserver!=="undefined"){var d8={childList:!0};"MutationObserver"in window&&(q=new MutationObserver(b.bind(void 0,y)),q.observe(y,d8))}}
function b(y){typeof q!=="undefined"&&(f["content-wrapper"]===void 0&&(f["content-wrapper"]=y.children[0].clientHeight),p(f["content-wrapper"]),l()>K()||k(l()))}
function T(){X(window.innerHeight);l()>K()||k(l());M.isFullScreen[0]()&&l()>K()?V().dispatch("Snap To Full Screen",{maxHeight:r()}):V().dispatch("Snap To Neutral Position",{maxHeight:K()})}
function L(y){document.body.style.overscrollBehavior="none";y.preventDefault();V().dispatch("Touch Start",{event:y})}
function h(y){y.preventDefault();V().dispatch("Touch Move",{event:y,contentScrollable:l()>K(),fullContentWrapperHeight:r(),contentWrapperHeight:K(),contentHeightMap:f,contentWrapperId:"content-wrapper",header:ut7(W),footer:ut7(W)})}
function Z(){document.body.style.overscrollBehavior="";M.isFullScreen[0]()?M.currentY[0]()>=60?V().dispatch("Snap To Neutral Position",{maxHeight:K()}):V().dispatch("Snap To Full Screen",{maxHeight:r()}):M.currentY[0]()>=60?a():M.currentY[0]()<=-60&&l()>K()?V().dispatch("Snap To Full Screen",{maxHeight:r()}):V().dispatch("Snap To Neutral Position",{maxHeight:K()})}
function a(){V().dispatch("Close Sheet",{clientHeight:A(),maxHeight:0});setTimeout(function(){Mx8()},250)}
var m=_.S(_.wu(window.innerHeight,void 0,"NWeFS")),w=m.next().value;m=m.next().value;var A=w,X=m;m=_.S(_.wu(0,void 0,"oxfm4"));w=m.next().value;m=m.next().value;var l=w,p=m;m=_.S(_.ln(function(){var y=ut7(W);return.6*A()-tx2(y)-$k1(y)}));
w=m.next().value;m=m.next().value;var K=w,k=m,r=function(){var y=ut7(W);return A()-tx2(y)-$k1(y)-24-24},q=null,f={},M={initialY:_.wu(0,void 0,"cYBE5c"),
currentY:_.wu(0,void 0,"RndqHc"),isAnimating:_.wu(!1,void 0,"vO9DVd"),isFullScreen:_.wu(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.ln(K)},V=function(){var y=null;return function(){if(!y){var d8={initialY:M.initialY[0](),currentY:M.currentY[0](),isAnimating:M.isAnimating[0](),isFullScreen:M.isFullScreen[0](),maxHeightForContentWrapper:M.maxHeightForContentWrapper[0]()};y=Vx1(d8)}return y}}();
_.kX(function(){window.addEventListener("resize",T);V().subscribe(function(y){M.initialY[1](y.initialY);M.currentY[1](y.currentY);M.isAnimating[1](y.isAnimating);M.isFullScreen[1](y.isFullScreen);M.maxHeightForContentWrapper[1](y.maxHeightForContentWrapper)})});
_.so(function(){window.removeEventListener("resize",T);q&&(q.disconnect(),q=null)});
var jQ=_.YS({"bottom-sheet-content-without-icon":function(){var y;return!((y=W.shouldShowIcons)==null?0:y.call(W))}});
return _.E("bottom-sheet-layout",null,_.E(s_7,{contentWrapperId:"content-wrapper",isAnimating:function(){return M.isAnimating[0]()},
currentY:function(){return M.currentY[0]()},
maxHeightForContentWrapper:function(){return M.maxHeightForContentWrapper[0]()},
shouldShowIcons:W.shouldShowIcons,skipContentClick:W.skipContentClick,onScroll:function(){var y=document.getElementById("header-wrapper"),d8=document.getElementById("content-wrapper");if(y&&d8){var pE={};pE=(pE["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,pE["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,pE);y.className=d8.scrollTop>1?_.wd(pE):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Mx8,contentWrapperEl:function(y){O(y);requestAnimationFrame(function(){b(y)})},
header:function(){return _.E(r07,{touchstart:L,touchmove:h,touchend:Z,title:W.headerTitle,subtitle:W.headerSubtitle,headerId:"header-wrapper",headerOverride:W.headerFn,hasHeaderOverride:W.hasHeaderFn,actionHeader:W.headerActionHeader,hasActionHeader:W.hasHeaderActionHeader})},
footer:function(){return _.E(BP8,{footerButtonType:W.footerButtonType,leadingLabel:W.footerLeadingLabel,trailingLabel:W.footerTrailingLabel,primaryButton:W.footerPrimaryButton,hasPrimaryButton:W.hasFooterPrimaryButton,secondaryButton:W.footerSecondaryButton,hasSecondaryButton:W.hasFooterSecondaryButton,footerOverride:W.footerFn,hasFooterOverride:W.hasFooterFn})},
body:function(){return _.E(_.U,{cond:W.hasContentFn,then:function(){var y;return _.E("div",{class:jQ},(y=W.contentFn)==null?void 0:y.call(W))}})}}))},"Lg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var DQR=_.J1(function(W){var O=_.iq().resolve(_.p1),b=_.XL(function(){return void O.closeSheet()});
return _.E("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":b},_.E(_.U,{cond:function(){return!!W.header},
then:function(){return _.E("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},W.header())}}),_.E(_.U,{cond:function(){return!!W.content},
then:function(){return _.E("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},W.content())}}),_.E(_.U,{cond:function(){return!!W.footer},
then:function(){return _.E("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},W.footer())}}))},"Mg");
DQR.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var xQ5=_.J1(function(W){W=W.data;var O=_.uy(function(T){if(_.e("web_focus_first_element_sheet"))return T.addEventListener("focus",function(){BvU(T)}),function(){T.removeEventListener("focus",function(){BvU(T)})}}),b={};
return _.E("yt-sheet-view-model",{class:_.YS("yt-sheet-view-model-wiz",(b["yt-sheet-view-model-wiz--contextual"]=!0,b["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.e("web_disable_backdrop_filter"),b)),el:O,tabindex:-1},_.E(_.U,{cond:W,then:function(T){return _.E(DQR,{header:function(){return _.E(_.R4,{data:function(){return T().header}},{panelHeaderViewModel:kY2})},
content:function(){return _.E(_.R4,{data:function(){return T().content}},{listViewModel:function(L){return _.E(_.HTN,{data:L.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:A02,miniAppScoreChallengeViewModel:XW2})},
footer:function(){return _.E(_.R4,{data:function(){return T().footer}},{panelFooterViewModel:_.nl})}})}}))},"Ng");
xQ5.idomCompat=!0;_.O1(xQ5,"yt-sheet-view-model",{props:{data:_.te}});var CG1=_.J1(function(W){var O=function(){var b;return(b=W.data().enableDebuggingFeatures)!=null?b:!1};
return _.E("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.E(_.pv,{each:function(){var b;return(b=W.data().stickers)!=null?b:[]}},function(b){return _.E(zT2,{data:function(){return b},
debugMode:O})}))},"Og"),zT2=_.J1(function(W){var O=_.um(W,{debugMode:!1}).debugMode,b=_.Me(function(){var m;
return(m=W.data().region)==null?void 0:m.w},0),T=_.Me(function(){var m;
return(m=W.data().region)==null?void 0:m.h},0),L=_.Me(function(){var m;
return(m=W.data().region)==null?void 0:m.x},0),h=_.Me(function(){var m;
return(m=W.data().region)==null?void 0:m.y},0),Z=_.XL(function(){var m=W.data().onTap;
m&&_.nb(m)}),a={};
return _.E("div",{class:_.YS("ytStoriesStickerLayerViewModelSticker",(a.ytStoriesStickerLayerViewModelDebugMode=O,a)),style:_.eE({width:function(){return 100*b()+"%"},
height:function(){return 100*T()+"%"},
left:function(){return 100*L()+"%"},
top:function(){return 100*h()+"%"},
"flex-direction":function(){return J3g(W.data().flexDirection)},
"justify-content":function(){return c3D(W.data().justifyContent)},
"align-items":function(){return FM5(W.data().alignItems)}}),
"on:click":Z},_.E(_.R4,{data:function(){return W.data().button||W.data().toggleButton}},{buttonViewModel:function(m){return _.E(_.DO,{data:m.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(m){return _.E(_.gt,{data:m.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Pg");var nAk=_.J1(function(W){var O=function(){return W.data()},b=_.Me(function(){return O().backgroundColor},0),T=_.Me(function(){return O().actionButtons},[]),L=_.Me(function(){return O().stickerLayer},{}),h={},Z=function(){var m,w;
return{animationRef:h,animationConfig:{autoplay:!1,loop:!1,path:(w=(m=O().foregroundAnimation)==null?void 0:m.url)!=null?w:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){W.navigateToNextItemOnLottieComplete()}}}},a=function(){var m,w,A,X,l,p,K,k;
return{animationConfig:{autoplay:(p=(m=O().backgroundAnimation)==null?void 0:(w=m.settings)==null?void 0:w.autoplay)!=null?p:!1,loop:(K=(A=O().backgroundAnimation)==null?void 0:(X=A.settings)==null?void 0:X.loop)!=null?K:!1,path:(k=(l=O().backgroundAnimation)==null?void 0:l.url)!=null?k:"",name:"stories_item_background_animation"}}};
_.kb(function(){if(W.isVisible()){var m;(m=h.lottieEl)==null||m.play()}else{var w;(w=h.lottieEl)==null||w.stop()}});
return _.E("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.eE({"background-color":function(){return _.C_(b())+";"}})},_.E("div",{class:"ytStoriesItemViewModelAssetContent"},_.E(_.U,{cond:function(){return!!O().backgroundAnimation},
then:function(){return _.E(_.E1,{data:a,animationName:function(){return a().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.E(_.U,{cond:function(){return!!O().backgroundImage},
then:function(){return _.E(_.uj,{data:function(){return O().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.E(_.U,{cond:function(){return!!O().foregroundAnimation},
then:function(){return _.E(_.E1,{data:Z,animationName:function(){return Z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.E(_.U,{cond:function(){return!!O().foregroundImage},
then:function(){return _.E(_.uj,{data:function(){return O().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.E("div",{class:"ytStoriesItemViewModelTopShadow"}),_.E(_.R4,{data:function(){return L()}},{storiesStickerLayerViewModel:CG1})),_.E("div",{class:"ytStoriesItemViewModelBottomShadow"},_.E("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.XL(W.pauseAutoNavigation)},_.E(_.pv,{each:T},function(m){return _.E(qq9,{data:function(){return m}})}))))},"Qg"),qq9=_.J1(function(W){var O={};
return _.E("div",{class:_.YS("ytStoriesItemViewModelActionButton",(O.ytStoriesItemViewModelStretchedActionButton=function(){return W.data().size==="STORIES_BUTTON_SIZE_STRETCH"},O))},_.E(_.R4,{data:function(){return W.data().button}},{buttonViewModel:function(b){return _.E(_.DO,{data:b.data,
className:"ytStoriesItemViewModelButton"})}}))},"Rg");_.O1(_.J1(function(W){var O=_.S(_.ln(function(){var f;return(f=W.data().startIndex)!=null?f:0})),b=O.next().value,T=O.next().value;
O=_.S(_.wu(!1,void 0,"klmjc"));var L=O.next().value,h=O.next().value,Z=function(){var f;return(f=W.data().storyItems)!=null?f:[]},a=function(){return W.data().dismissButton},m=function(){var f;
return _.P((f=_.P(a(),_.Kp))==null?void 0:f.onTap,_.D6)},w=_.uy(),A,X=function(){var f;
(f=A)==null||f.cancel();A=l(b()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});A.onfinish=function(){l(b()).style.width="100%";var M=_.P(Z()[b()],twR),V,jQ;M!=null&&M.foregroundAnimation&&((M==null?0:(V=M.foregroundAnimation)==null?0:V.url)||(M==null?0:(jQ=M.foregroundAnimation)==null?0:jQ.payload))||(b()!==Z().length-1?(T(b()+1),X()):m()&&_.zH(m()))}},l=function(f){return w.value.children[f].children[0]},p=function(){for(var f=0;f<b();f++)l(f).style.width="100%"};
O=_.XL(function(){L()?h(!1):(b()===Z().length-1&&m()&&_.zH(m()),l(b()).style.width="100%",b()!==Z().length-1&&(T(b()+1),X()))});
var K=_.XL(function(){L()?h(!1):(l(b()).style.width="0%",b()!==0?T(b()-1):T(b()),X())}),k=function(){h(!0)},r=function(){l(b()).style.width="100%";
b()!==Z().length-1?(T(b()+1),X()):m()&&_.zH(m())},q=_.XL(function(){var f;
(f=A)==null||f.pause()});
_.kb(function(){if(L()){var f;(f=A)==null||f.pause()}else{var M;(M=A)==null||M.play()}});
_.kb(function(){p();b()===W.data().startIndex&&X()});
_.kX(function(){p();X()});
return _.E("yt-stories-viewer-view-model",{class:_.YS("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.E("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.E("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":K,"on:mousedown":q}),_.E("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":O,"on:mousedown":q})),_.E(_.R4,{data:Z},{storiesItemViewModel:function(f,M){var V=f.data;return _.E(_.U,{cond:function(){return Math.abs(M()-
b())<=1},
then:function(){var jQ={};return _.E("div",{class:_.YS("ytStoriesViewerViewModelStoryItem",(jQ.ytStoriesViewerViewModelHiddenStoryItem=function(){return M()!==b()},jQ))},_.E(nAk,{data:V,
pauseAutoNavigation:k,navigateToNextItemOnLottieComplete:r,isVisible:function(){return M()===b()}}))}})}}),_.E("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:w},_.E(_.pv,{each:Z},function(){return _.E("div",{class:"ytStoriesViewerViewModelProgressBar"},_.E("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.E("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.E(_.R4,{data:a},{buttonViewModel:_.DO})))},"Sg"),"yt-stories-viewer-view-model",{props:{data:_.te}});_.O1(_.J1(function(W){var O=W.data;var b=_.uy(),T=[];return _.E("yt-gen-ai-feedback-form-view-model",{el:b,class:"ytGenAiFeedbackFormViewModelHost"},_.E(_.uw,{text:function(){return O().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.E("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.E(_.R4,{data:function(){return O().feedbackChips}},{toggleButtonViewModel:function(L){var h=L.data;
return _.E(_.gt,{data:h,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(Z){var a=h();a=_.P(a,_.vm);a=_.P(a==null?void 0:a.defaultButtonViewModel,_.Kp).trackingParams;Z?T.push(a):(Z=T.indexOf(a),Z>-1&&T.splice(Z,1))}})}})),_.E(_.uw,{text:function(){return O().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.E("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.E(_.R4,{data:function(){return O().submitButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){y3g(b.value,T,O().uniqueId)}})}}),_.E(_.R4,{data:function(){return O().moreFeedbackButton}},{buttonViewModel:function(L){return _.E(_.DO,{data:L.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Tg"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.te},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var qt=function(){return _.n.apply(this,arguments)||this};
_.R(qt,_.n);qt.prototype.created=function(){o12(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(SZ5);var W=_.iq().resolve(_.Kiq);W&&(W.container=this.ytPopupContainerBehavior);if(W=_.iq().resolve(_.p1))W.container=this.ytPopupContainerBehavior;if(W=_.iq().resolve(_.RC)){var O=this.ytPopupContainerBehavior;W.containerWasInjected?_.z5(Error("bj")):W.container=O}};
qt.prototype.ensurePopupBelowPlayer=function(W,O){var b=_.iq().resolve(_.OT(_.cs));if(!b||!b.isOnWatch()||!_.ya())return!1;b=b.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.UP().height>b+this.getPopupHeight(W,O)?(W.style.top="auto",W.style.bottom="0px"):(W.style.top=b+"px",W.style.bottom="auto");return!0};
qt.prototype.getPopupHeight=function(W,O){O&&(W.cachedPopupHeight=0);if(!W.cachedPopupHeight){O=0;var b=W.clientHeight,T=window.getComputedStyle(W);O+=parseInt(T.marginTop,10);O+=parseInt(T.marginBottom,10);W.cachedPopupHeight=b+O}return W.cachedPopupHeight};
qt.prototype.getElement=function(W){return document.createElement(W)};
_.t([_.D(sr7.YtPopupContainerBehavior),_.N("design:type",Object)],qt.prototype,"ytPopupContainerBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],qt.prototype,"ytComponentBehavior",void 0);qt=_.t([_.G({disableElementRegistration:!0,is:"ytd-popup-container"})],qt);
_.H(qt,"ytd-popup-container",function(){if(ePZ!==void 0)return ePZ;var W=document.createElement("template");_.v(W,"\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");W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);return ePZ=W},{mode:1});var f18;var GYP={};GYP.YtLogYpcFlowCommandsBehavior=[_.WP.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(W){_.P(W,hF2)&&(W=_.P(W,hF2))&&(W.serializedTransactionFlowLoggingParams?_.PoO(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.kC("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.kC("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=W.serializedYpcPauseFlowLoggingParams)&&
_.kC("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams?(W=W.serializedYpcRefundFlowLoggingParams)&&IfB("YPC_EVENT_TYPE_START",W):W.serializedYpcDeactivateFlowLoggingParams?(W=W.serializedYpcDeactivateFlowLoggingParams)&&_.kC("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",W):W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(W=W.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.kC("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",W))},
handleLogYpcFlowDismiss_:function(W){_.P(W,duk)&&(W=_.P(W,duk),W.serializedTransactionFlowLoggingParams?_.pwq(W.serializedTransactionFlowLoggingParams):W.serializedYpcCancelFlowLoggingParams?(W=W.serializedYpcCancelFlowLoggingParams)&&_.kC("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",W):W.serializedYpcResumeFlowLoggingParams?(W=W.serializedYpcResumeFlowLoggingParams)&&_.kC("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",W):W.serializedYpcPauseFlowLoggingParams?(W=
W.serializedYpcPauseFlowLoggingParams)&&_.kC("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",W):W.serializedYpcRefundFlowLoggingParams&&(W=W.serializedYpcRefundFlowLoggingParams)&&IfB("YPC_EVENT_TYPE_CANCEL",W))}}];var H72={};H72.YtCancelRecurrenceBehavior=[_.x_.YtComponentBehavior,_.fKz,{attached:function(){var W=this;aQ8(this,function(O,b){return W.ypcCancelRecurrenceHandler(O,b)})},
ypcCancelRecurrenceHandler:function(W,O){var b=this;if(!O||!O.ypcCancelRecurrenceEndpoint)return!1;if(!O.ypcCancelRecurrenceEndpoint.params)return _.nv(Error("ul")),!0;_.VI(this.hostElement);var T=_.GB.instance,L=_.iq().resolve(_.OT(_.k1));T&&_.Hs(T,O)?_.tP(T,O).then(function(h){b.ypcCancelRecurrenceSuccess_(W,O,{data:h})},function(h){b.ypcCancelRecurrenceFailure_(W,O,h)}).thenCatch(function(){_.nv(Error("vl"))}):L?L.requestDataForServiceEndpoint(O).then(function(h){b.ypcCancelRecurrenceSuccess_(W,
O,h)},function(h){b.ypcCancelRecurrenceFailure_(W,O,h)}).thenCatch(function(){_.nv(Error("vl"))}):_.nv(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(W,O,b){_.Ns(this.hostElement);b.data||(b={data:b});b.data&&b.data.actions&&_.Sx(this.hostElement,b.data.actions,this.hostElement);b.data.messageRenderer?m8U(O.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(O=O.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.kC("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",O);_.bX(W,"yt-service-request-completed",b)},
ypcCancelRecurrenceFailure_:function(W,O,b){_.Ns(this.hostElement);m8U(O.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.bX(W,"yt-service-request-error",{error:b,params:[W,O]})}}];var tZR=function(W,O){_.W2.call(this,O)};
_.R(tZR,zbg);var $Qk={};$Qk.YtCompleteTransactionBehavior=[_.x_.YtComponentBehavior,_.fKz,{attached:function(){var W=this;aQ8(this,function(O,b){return W.ypcCompleteTransactionHandler(O,b)})},
completeTransaction:function(W,O){var b=this;O={payments_payload:window.btoa(O.integratorData),buybucket_params:W.data.buybucketParams,offer_params:W.data.offerParams};var T=_.iq().resolve(_.k1),L=W.data.completeTransactionEndpoint,h=this.get("ypcCompleteTransactionEndpoint.actions",L);h&&_.Sx(this.hostElement,h,this.hostElement);return(h=_.GB.instance)&&_.Hs(h,L)?_.tP(h,L,O).then(function(Z){return!Z||(Z==null?0:Z.error)?(Z=b.get("data.serializedTransactionFlowLoggingParams",W),_.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
Z))):{data:Z}}).then(function(Z){return b.handleCompleteTransactionSuccess_(Z,W)},function(){return b.handleCompleteTransactionFailure_(W)}):T.requestDataForServiceEndpoint(L,O).then(function(Z){return b.handleCompleteTransactionSuccess_(Z,W)},function(){return b.handleCompleteTransactionFailure_(W)})},
handleCompleteTransactionSuccess_:function(W,O){W.data||(W={data:W});if(W.data.messageRenderer)return _.vi(new tZR(W.data.messageRenderer));if(W.data.trackingParams){var b=_.Bb(),T=_.sk();b&&T&&_.fV(b,T,_.Pi(W.data.trackingParams))}O=this.get("data.serializedTransactionFlowLoggingParams",O);afU(O);return _.ZM(W)},
handleCompleteTransactionFailure_:function(W){W=this.get("data.serializedTransactionFlowLoggingParams",W);_.$1("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W);return _.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",W))},
ypcCompleteTransactionHandler:function(W,O){var b=this;if(!O.ypcCompleteTransactionEndpoint)return!1;if(!O.ypcCompleteTransactionEndpoint.transactionParams)return _.nv(Error("xl")),!0;O.ypcCompleteTransactionEndpoint&&O.ypcCompleteTransactionEndpoint.gtmData&&_.P0(O.ypcCompleteTransactionEndpoint.gtmData);var T=_.iq().resolve(_.OT(_.k1));if(T){_.VI(this.hostElement);var L=_.GB.instance;L&&_.Hs(L,O)?_.tP(L,O).then(function(h){return!h||(h==null?0:h.error)?(h=b.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
O),_.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",h))):{data:h}}).then(function(h){_.bX(W,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(O,h)},function(){return b.ypcCompleteTransactionFailure_(O)}):T.requestDataForServiceEndpoint(O).then(function(h){_.bX(W,"yt-service-request-completed");
b.ypcCompleteTransactionSuccess_(O,h)},function(){return b.ypcCompleteTransactionFailure_(O)})}return!0},
ypcCompleteTransactionSuccess_:function(W,O){_.Ns(this.hostElement);O.data||(O={data:O});_.jx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);O.data.messageRenderer||O.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(W):(_.P0('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",W));O.data.actions&&(W=vJN(O.data.actions),O=gJP(O.data.actions),W.length&&_.da(this.hostElement,
W),O.length&&_.Sx(this.hostElement,O,this.hostElement))},
ypcCompleteTransactionFailure_:function(W){_.Ns(this.hostElement);_.jx(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",W,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(W,O,b){if(O=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",O))O={serializedTransactionFlowLoggingParams:O},b&&(O.errorType=b),_.BZ(W,O),_.re()}}];var VZg={};VZg.YtEndpointHandlerWithYpcBehavior=[_.fKz,_.WP.YtActionHandlerBehavior,[{openWalletDialog:function(W,O,b,T,L,h,Z){var a=this,m=_.$S();O=O.replace(/-/g,"+").replace(/_/g,"/");var w=_.Xt().get("hl");_.hZ8(_.j6(_.VB),O,m.resolve,L,function(A){h&&h();m.reject(A)},w,function(A){return a.onServerBackendAnalyticEvent_(W,b,A)},this.onDialogClose_.bind(this),T,Z);
return m.promise},
openFixFlowDialog:function(W,O,b,T){W=W.replace(/-/g,"+").replace(/_/g,"/");_.j6(_.VB).openFixFlowDialog(W,O,b,T)},
onDialogClose_:function(){_.jx(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(W,O,b){_.bX(W,"yt-commerce-action-init-done");O&&_.da(this.hostElement,[O,{backend_analytics:b}])}}],
_.aV.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(W,O){W=this.get("data.nativeFlowEndpoint",O);O=this.get("data.fallbackEndpoint",O);W?_.da(this.hostElement,[W]):O&&_.bX(this.hostElement,"yt-navigate",{endpoint:O})}}],
H72.YtCancelRecurrenceBehavior,$Qk.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 W=this;aQ8(this,function(O,b,T){return W.handleYPCEndpoint(O,b,T)});
this.ypcRegisterActionMapJobId_=_.KB(_.sF,function(){W.registerActionMap(W.buyFlowActionMap_)})},
detached:function(){var W=this;_.sF.cancelJob(this.ypcRegisterActionMapJobId_);_.KB(_.sF,function(){W.unregisterActionMap(W.buyFlowActionMap_)})},
handleYPCEndpoint:function(W,O,b){var T=O.ypcGetCartEndpoint;if(T){_.sO("commerce_transaction");var L=T.gtmId;L&&_.eu(L);(T=T.gtmData)&&_.P0(T)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",O)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(W,O),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",O)!=null?(this.handleYPCFixInstrumentEndpoint_(W,O),!0):O.ypcPauseSubscriptionCommand?(hg8(this.hostElement,W,O,b),
!0):O.ypcResumeSubscriptionCommand?(I57(this.hostElement,W,O),!0):O.getPaymentInstrumentsParamsCommand?(Tmg(this.hostElement,W,O),!0):O.ypcHandleTransactionEndpoint?(beg(this.hostElement,W,O,b),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(W,O){var b=this;_.Bg("ttcr",void 0,"commerce_transaction");O=O.ypcGetCartEndpoint;var T=O.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,L=T.encryptedPurchaseParams,h=T.serializedTransactionFlowLoggingParams,Z=T.serializedPaymentsClientParams,a=this.createGetCartResponseFromParams_(T,O.offerParams,h);this.changeButtonState(W,!0);_.UR(this.openWalletDialog(W,L,T.ypcLogWalletAnalyticDataEndpoint,h,function(){b.changeButtonState(W,!1)},function(){b.changeButtonState(W,
!1)},Z).then(function(m){return b.handleBuyFlowCompleteCallback_(W,a,m)},function(){return b.handleOnLoadError(a)}).then(function(m){return void b.handlePostPurchaseSuccess_(W,a,m)},function(m){return void b.handlePostPurchaseError_(m)}),function(){b.changeButtonState(W,!1);
W instanceof Element&&_.bX(W,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(W,O,b){var T=W.completeTransactionEndpoint,L=W.handleTransactionEndpoint;O={data:{offerParams:window.btoa(O),serializedTransactionFlowLoggingParams:b}};L?O.data.handleTransactionEndpoint=L:O.data.completeTransactionEndpoint=T;W.onCartDismissCommand&&(O.data.onCartDismissCommand=W.onCartDismissCommand);return O},
onGetCartServiceRequestCompleted_:function(W,O){var b=this,T=W.target;if(O&&O.data&&O.data.messageRenderer)_.Ns(this.hostElement),this.handleMessageRenderer_(O.data.messageRenderer),this.changeButtonState(T,!1);else{var L=this.get("data.encryptedPurchaseParams",O),h=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",O),Z=this.get("data.ypcLogWalletAnalyticDataEndpoint",O),a=this.get("data.serializedPaymentsClientParams",O),m=this.getLoggingParams_(O);if(m||L||h)W.stopPropagation(),_.Bg("ttcr",
void 0,"commerce_transaction"),L||_.Ns(this.hostElement),this.changeButtonState(T,!1),h?_.jx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Cv("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:h}}},this]):L&&(this.changeButtonState(T,!0),W=null,W=this.openWalletDialog(T,L,Z,m,function(){_.Ns(b.hostElement);b.changeButtonState(T,!1)},function(){_.Ns(b.hostElement);
b.changeButtonState(T,!1)},a),_.UR(W.then(function(w){return b.handleBuyFlowCompleteCallback_(T,O,w)},function(){return b.handleOnLoadError(O)}).then(function(w){return b.handlePostPurchaseSuccess_(T,O,w)},function(w){return b.handlePostPurchaseError_(w)}),function(){b.changeButtonState(T,!1);
_.bX(T,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(W,O){O&&O.endpoint&&O.endpoint.ypcGetCartEndpoint&&!O.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",O.endpoint.ypcGetCartEndpoint)&&_.Sx(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",O.endpoint.ypcGetCartEndpoint)],W.target),_.VI(this.hostElement),this.changeButtonState(W.target,!0))},
onServiceRequestError_:function(W,O){if(O&&O.params&&O.params.length){O=_.S(O.params);for(var b=O.next();!b.done;b=O.next())if((b=b.value)&&b.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)&&_.Sx(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",b.ypcGetCartEndpoint)],W.target);_.Ns(this.hostElement);this.changeButtonState(W.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(W,O,b){var T=b.integratorData;return T==null||T===""||b.error!=null?(T=this.getLoggingParams_(O),String(b.error)==="-1"?(O.data.onCartDismissCommand&&_.Sx(this.hostElement,[O.data.onCartDismissCommand],W),_.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",T,!0))):_.vi(new WA("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",T))):O.data.handleTransactionEndpoint?jJ9(this.hostElement,O.data.handleTransactionEndpoint,{payments_payload:T,funds_guarantee_callback_client_data:b.integratorClientCallbackData}):
this.completeTransaction(O,b)},
handlePostPurchaseSuccess_:function(W,O,b){O=b.data;var T=!1,L,h;if(O&&((L=O.command)==null?0:(h=L.commandExecutorCommand)==null?0:h.commands)){var Z,a;L=(Z=O.command)==null?void 0:(a=Z.commandExecutorCommand)==null?void 0:a.commands;for(Z=0;Z<L.length;Z++)if(_.P(L[Z],_.r6v)){T=!0;break}}T||(O&&O.gtmDatas&&O.gtmDatas.length?_.P0(O.gtmDatas[0]):_.P0('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));b.data&&b.data.actions&&(O=vJN(b.data.actions),b=gJP(b.data.actions),O.length&&
_.da(this.hostElement,O),b.length&&_.Sx(this.hostElement,b,W))},
handlePostPurchaseError_:function(W){W&&W.payload&&W.payload.isUserDismiss||_.Dt(Error("zl"))},
handleOnLoadError:function(W){W=this.getLoggingParams_(W);return _.vi(new WA("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",W))},
getLoggingParams_:function(W){return this.get("data.serializedTransactionFlowLoggingParams",W)},
handleMessageRenderer_:function(W){var O=_.r0(W,"renderer"),b=_.Cv("openPopupConfig");O==="confirmDialogRenderer"&&b&&_.jx(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:b.popupTypeMap[O],popup:W}},this])},
handleYPCFixInstrumentEndpoint_:function(W,O){var b=this,T=O.ypcFixInstrumentEndpoint;O=T.encryptedFixInstrumentParameters;this.logFixFopEvent_(T,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(W,!0);this.openFixFlowDialog(O,function(L,h){b.onFixFlowCompleteCallback_(T,L,h)},function(){return b.changeButtonState(W,!1)},function(){b.changeButtonState(W,!1);
b.logFixFopEvent_(T,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(W,O,b){var T=_.GT("payments.business.integration.scenario.FixInstrument");if(O==T.IntegratorCallbackType.ON_COMPLETE){O="FIX_FOP_EVENT_TYPE_CANCEL";var L=null;b.error!=null?b.error!=T.OnCompleteCallbackError.USER_CANCELLED&&(_.Sx(this.hostElement,[W.errorAction],this.hostElement),O="FIX_FOP_EVENT_TYPE_FAILURE",L="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.Sx(this.hostElement,[W.successAction],this.hostElement),O="FIX_FOP_EVENT_TYPE_SUCCESS");_.Sx(this.hostElement,[W.onFinishAction],
this.hostElement);this.logFixFopEvent_(W,O,L)}},
logFixFopEvent_:function(W,O,b){(W=W.serializedFixFopLoggingParams)?(O={eventType:O,serializedFixFopLoggingParams:W},b!=null&&(O.errorType=b),_.BZ("fixFopFlow",O),_.re()):_.Dt(Error("Al"))},
changeButtonState:function(W,O){_.e("enable_ypc_spinners")&&W&&(W.is==="yt-button-renderer"||W.is==="ytd-button-renderer")&&(W.disabled=O)}}];var NP7=function(W){this.JSC$28741_clientRoot=W;this.feedbackCollectorActionMap={"yt-help-dialog-requested":mX1,"yt-feedback-dialog-requested":a5g,"yt-signal-action-help":Yrg,"yt-signal-action-send-feedback":E91,"yt-send-feedback-action":AH8,"yt-user-feedback-endpoint":XSD};_.Vj(_.$G.getInstance(),this.feedbackCollectorActionMap,this.JSC$28741_clientRoot)},MZP;var ujk=function(W){this.JSC$28746_clientRoot=W;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":UX9.bind(null,this.JSC$28746_clientRoot),"yt-signal-action-delete-all-downloads":egP,"yt-signal-action-delete-download":PvR,"yt-signal-action-delete-playlist-download":RgB,"yt-signal-action-install-pwa":kcD,"yt-signal-action-refresh-downloads":o92,"yt-offline-video-endpoint":Bm2,"yt-offline-playlist-endpoint":DX7,"yt-update-local-app-setting-command":zg7,"yt-offline-orchestration-action-command":qr5,
"yt-signal-action-undo-delete-download":v97,"yt-local-watch-history-command":GcN};_.Vj(_.$G.getInstance(),this.downloadManagerActionMap,this.JSC$28746_clientRoot);_.gE.instance=new _.gE},J0N;var na=function(){var W=_.n.apply(this,arguments)||this;W.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_"};W.remoteApi_=null;return W};
_.R(na,_.n);_.d=na.prototype;
_.d.ready=function(){_.e("polymer_enable_mdx")&&(SL2({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.e("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.e("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.e("enable_cast_short_lived_lounge_token")}),_.de("yt-remote-connection-change",this.handleConnectionChange_,this),_.de("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=wHN())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.d.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.d.handleConnectionChange_=function(W){(this.mdxConnected=W)?(W=aC2(),!W&&IuN()&&auB()&&(W={key:"cast-selector-receiver",name:auB()}),W=W.name):W=null;this.receiverName=W;_.JU(this.remoteApi_);(this.remoteApi_=wHN())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.d.handleReceiverAvailabilityChange_=function(){var W=ICD();IuN()&&_.Tz("yt-remote-cast-available")&&W.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=W.length>0};
_.d.handleRemoteQueueChange_=function(){var W=this.currentVideoId_,O=this.currentListId_,b=Lt(this.remoteApi_);this.currentVideoId_=b.videoId;this.currentListId_=b.listId;this.currentVideoId_&&_.jx(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.e("polymer_enable_mdx_queue")?this.currentListId_:null,W,O])};
_.d.handleAddToQueueAction_=function(W){W=_.P(W,$vP);this.remoteApi_&&(W.videoId?this.remoteApi_.addVideo(W.videoId):W.playlistId&&this.remoteApi_.addPlaylist(W.playlistId))};
_.d.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.d.handleInsertInQueueAction_=function(W){W=_.P(W,VwR);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17547_insertVideo(W.videoId)};
_.d.handleRemoveFromQueueAction_=function(W){W=_.P(W,Np2);this.remoteApi_&&W.videoId&&this.remoteApi_.JSC$17547_removeVideo(W.videoId)};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],na.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C(),_.N("design:type",Object)],na.prototype,"appId",void 0);_.t([_.C(),_.N("design:type",Boolean)],na.prototype,"mdxConnected",void 0);_.t([_.C(),_.N("design:type",Boolean)],na.prototype,"receiverAvailable",void 0);_.t([_.C(),_.N("design:type",Object)],na.prototype,"receiverName",void 0);_.t([_.C(),_.N("design:type",Object)],na.prototype,"currentVideoId_",void 0);
_.t([_.C(),_.N("design:type",Object)],na.prototype,"currentListId_",void 0);na=_.t([_.sl({is:"yt-mdx-manager",disableElementRegistration:!0})],na);_.H(na,"yt-mdx-manager",void 0,{mode:2});var c01;var FZP;var fa=function(){var W=_.n.apply(this,arguments)||this;W.APP_IDS={ytr:3,ytm:5};W.JSC$18785_timeoutId_=0;W.actionMap={"yt-open-create-family-dialog":"open"};return W};
_.R(fa,_.n);_.d=fa.prototype;_.d.created=function(){o12(2200)};
_.d.detached=function(){this.observer_&&this.observer_.disconnect()};
_.d.open=function(W,O){var b=this,T=W.serializedYpcFamilyCreateLoggingParams;this.JSC$18785_timeoutId_=setTimeout(this.abort_.bind(this,W.postFlowErrorEndpoint,T),3E4);O&&(this.onReadyCallback_=O);var L=_.Q(this.hostElement).querySelector("#unicorn-iframe");T&&T&&Z98("ypcFamilyCreateFlowStarted",T);_.S$O("family_creation",function(){var h=_.GT("gapi.family_creation.render");_.GT("gapi.config.update")("iframes/family_creation/url",b.getFamilyCreationUrlWithUnicornParams_());var Z=3;W.appId&&W.appId in
b.APP_IDS&&(Z=b.APP_IDS[W.appId]);Z={authUser:_.Cv("SESSION_INDEX")||0,clientId:Z,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Cv("HL"),initialflow:[4,5,6,7],m:b.isMobile?1:0,onFlowComplete:b.onUnicornFlowComplete_.bind(b,W.postFlowSuccessEndpoint,T),onError:b.onUnicornFlowError_.bind(b,W.postFlowErrorEndpoint,T),onReady:b.onUnicornFlowReady_.bind(b,W.referencePcidParams)};h(L,Z)})};
_.d.close=function(){_.Q(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.d.onUnicornFlowComplete_=function(W,O){this.close();O&&O&&Z98("ypcFamilyCreateFlowSucceeded",O);_.bX(this.hostElement,"yt-navigate",{endpoint:W})};
_.d.onUnicornFlowError_=function(W,O){this.close();O&&Z98("ypcFamilyCreateFlowCancelled",O);_.bX(this.hostElement,"yt-navigate",{endpoint:W})};
_.d.onUnicornFlowReady_=function(W){var O=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();W&&_.GT("gapi.family_creation.setConfig")(0,W);this.observer_=new MutationObserver(function(){_.Q(O.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Q(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Q(this.hostElement).querySelector("#dialog").open()};
_.d.getFamilyCreationUrlWithUnicornParams_=function(){return _.Cv("YTR_FAMILY_CREATION_URL")};
_.d.getCurrentUrl_=function(){return document.location.href};
_.d.abort_=function(W,O){this.clearTimeout_();this.onUnicornFlowError_(W,O)};
_.d.clearTimeout_=function(){clearTimeout(this.JSC$18785_timeoutId_)};
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],fa.prototype,"ytActionHandlerBehavior",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],fa.prototype,"isMobile",void 0);_.t([_.C(),_.N("design:type",Object)],fa.prototype,"onReadyCallback_",void 0);_.t([_.C(),_.N("design:type",Object)],fa.prototype,"observer_",void 0);fa=_.t([_.sl({is:"yt-create-family-dialog",disableElementRegistration:!0})],fa);
_.H(fa,"yt-create-family-dialog",function(){if(FZP===void 0){var W=document.createElement("template");_.v(W,'\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');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);var O=W.content,b=O.insertBefore;c01===void 0&&(c01=document.createElement("template"));var T=c01;b.call(O,T.content.cloneNode(!0),W.content.firstChild);FZP=W}W=FZP;return W},{mode:2});var y0D;var Wz1;var Gk=function(){var W=_.n.apply(this,arguments)||this;W.STEP=1;W.BLOCK_ON=80;W.MIN_PROGESS=0;W.MAX_PROGESS=100;return W};
_.R(Gk,_.n);_.d=Gk.prototype;_.d.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.d.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));_.iq().addProvider({provide:VnZ,useValue:this})};
_.d.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.d.finish=function(){var W=this;this.progress=this.MAX_PROGESS;HeB(function(){W.progress==W.MAX_PROGESS&&(W.hostElement.hidden=!0)})};
_.d.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Jq.Object.defineProperties(Gk.prototype,{progress:{configurable:!0,enumerable:!0,set:function(W){this.progress_=W;var O="scaleX("+W/this.MAX_PROGESS+")",b=_.Q(this.hostElement).querySelector("#progress").style;b.transform=O;b.webkitTransform=O;this.hostElement.setAttribute("aria-valuenow",String(W))},
get:function(){return this.progress_}}});
_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],Gk.prototype,"ytComponentBehavior",void 0);Gk=_.t([_.sl({is:"yt-page-navigation-progress",disableElementRegistration:!0})],Gk);
_.H(Gk,"yt-page-navigation-progress",function(){if(Wz1===void 0){var W=document.createElement("template");_.v(W,'\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');W.content.insertBefore(_.c().content.cloneNode(!0),
W.content.firstChild);var O=W.content,b=O.insertBefore;y0D===void 0&&(y0D=document.createElement("template"));var T=y0D;b.call(O,T.content.cloneNode(!0),W.content.firstChild);Wz1=W}W=Wz1;return W},{mode:2});var OY2={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"},iY9={"font-size":"12px","font-style":"italic"},bYg={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.NmU=function(){return _.I(function(W){_.aD(W)})};_.O1(_.J1(function(){var W=_.D3(_.ske);return _.E("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var O;return(O=W())==null?void 0:O.announcement})},"Ug"),"yt-ephemeral-actions");var Ir1=new Map;var tsR=function(W,O){var b=this;this.handleError=W;this.logEventInternal=O;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){b.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
tsR.prototype.logError=function(W){this.handleError(W)};
tsR.prototype.logEvent=function(W,O){switch(W){case "IDB_DATA_CORRUPTED":_.e("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",O);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",O);break;case "IS_SUPPORTED_COMPLETED":_.e("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",O);break;case "QUOTA_EXCEEDED":jmD(this,O);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",O);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":W=Object.assign({},O,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",W)}};
var jmD=function(W,O){_.Ig.getInstance().estimate().then(function(b){b=Object.assign({},O,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:md5(b==null?void 0:b.usage),deviceStorageQuotaMbytes:md5(b==null?void 0:b.quota)});W.logEventInternal("idbQuotaExceeded",b)})};var HI=function(){var W=_.n.apply(this,arguments)||this;W.tabGesturesIsActive=!1;W.deprecateFullerscreenUi=_.e("web_watch_fullerscreen_deprecation_ui");W.hasDelegation=!1;W.darkerDarkTheme=_.e("web_darker_dark_theme");W.isFrostedGlassInitialized=!1;W.frostedGlassExp=_.e("web_frosted_glass");W.mastheadHiddenFocusWithinKillswitch=_.e("web_masthead_hidden_focus_within_killswitch");W.ephemeralActionsEnabled=_.e("web_ephemeral_actions");W.scrollAtTop=!0;W.guideScrollTop=0;W.isTheaterModeSession=_.qC("START_IN_THEATER_MODE");
W.iMaxTheaterMode=_.e("web_watch_imax_theater_mode");W.isFullWindowSession=_.qC("START_IN_FULL_WINDOW_MODE");W.hasCreateFamilyDialog=!1;W.mastheadHeight=56;W.networkStatusManager=new _.Vy;W.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"};W.dynamicActionMap={"yt-run-attestation-command":function(O){var b=_.Tj7.instance,T=_.P(O,_.yT$);return T?_.e("use_rta_manager_for_async")&&
oXD()?X_8(b,T,O.clickTrackingParams):A1P(b,T,O.clickTrackingParams):_.vi(Error("li"))}};
W.isFrostedGlassDisabled=!1;W.isChannelOrPlaylistPage=!1;return W};
_.R(HI,_.n);_.d=HI.prototype;_.d.created=function(){var W=_.iq();_.e("kevlar_clear_duplicate_pref_cookie")&&_.KB(_.sF,function(){var O=_.Xq.get("PREF");O&&!/f\d=/.test(O)&&(O=_.dO("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=O?"PREF=null;domain="+O+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.e("gzip_gel_with_worker")&&_.v9T();_.e("jspb_serialize_with_worker")&&Wpk();_.e("web_worker_availability_check")&&ark();_.e("nwl_init_killswitch")||F31().then(function(){_.sF.addLowPriorityJob(XbD)});
this.pageManagerAttachedPromise=_.$S();this.ytdAppBehavior.loadDepsPromise=_.XG([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.JI(this.onThrottledScroll,200,this);_.e("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);$Cg();DqN=!!_.GT("ytappsettings.initialized");Sc=_.GT("ytappsettings.previousValue");gv5=_.GT("ytappsettings.previousSnapshotTime");DqN||(DqN=!0,ovU());RHg();K1B();_.zT("DEFERRED_DETACH",
_.e("kevlar_tuner_should_defer_detach"));_.zT("REUSE_COMPONENTS",!0);_.zT("STAMPER_STABLE_LIST",!0);_.zT("SCHEDULED_LAZY_LIST",!0);_.zT("openPopupConfig",hIk);_.zT("useClickHandler",!0);_.e("kevlar_shell_cleanup")&&_.sF.addLowPriorityJob(xm7.bind(this,_.i1.caches));_.qC("IS_SHELL_LOAD")&&_.k0({shellStartupDurationMs:Math.round((0,_.WO)()-_.R5())});cH2(this.networkStatusManager);_.e("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",tKR(OY2)),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!",
tKR(iY9)),console.log("%cVisit http://go/join-youtube-web to apply today.",tKR(bYg)));_.$GP(W.resolve(_.d2),1E3)};
_.d.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var W=ZuU();W&&!_.e("external_fullscreen_killswitch")&&document.addEventListener(W,this.setFullscreen.bind(this));(W=window.matchMedia("(prefers-color-scheme: dark)"))&&W.addEventListener&&W.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.d.attached=function(){var W=this;_.BH().processSignal("ci");_.e("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.B_q?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.ad(_.QK1(),"SUCCESS");this.updateIconSet();_.OO(this.guideInnerContent,!1);_.Ae().initVisibilityObserver();this.guideService.guideElement=this.guide;var O=document.createElement("ytd-miniplayer"),b=_.Q(this.hostElement).querySelector("#content");
_.Q(this.hostElement).insertBefore(O,b);_.BH().processSignal("ma");_.iq().resolve(_.xq).init(O);_.qC("IS_SHELL_LOAD")&&(b=document.createElement("ytd-network-status-banner"),_.Q(this.hostElement).insertBefore(b,O));_.e("kevlar_right_click_on_lockups")&&_.nr._onCaptureClick&&document.addEventListener("contextmenu",_.nr._onCaptureClick.bind(_.nr),!0);var T=function(){var L=_.Je("yt-page-navigation-progress");_.Q(W.hostElement).appendChild(L)};
setTimeout(function(){_.BH().parkOrScheduleJob(T,0,"eocs",16)},0);
_.e("service_worker_push_enabled")&&_.KB(_.sF,SFP);_.Vj(_.$G.getInstance(),this.dynamicActionMap,this.hostElement);_.bX(this.hostElement,"ytd-app-attached");_.BH().processSignal("aa");vvg(this.hostElement);_.c3("gapi.load",_.S$O);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.KB(_.sF,
function(){var L=document.createElement("ytd-video-preview");_.Q(_.Q(W.hostElement).querySelector("#video-preview")).appendChild(L)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.KB(_.sF,function(){MK2();W.registerViewTransitionTasks()});
if(_.vh()&&this.isAppDarkTheme()!==_.Ru())this.onDarkModeToggledAction();else O=_.K_()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==O&&(_.e("enable_dark_theme_only_on_shorts")?_.GF(_.e("enable_dark_theme_only_on_shorts_control")?window.location.href:_.MC(window.location.href,{theme:"dark"})):_.z5(new _.pu("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(azN=new Iz1(this.hostElement)),J0N=new ujk(this.hostElement),MZP=new NP7(this.hostElement),sL1=new kzg(this.hostElement)};
_.d.getThemeSettingsToLog=function(){var W=_.K_()==="USER_INTERFACE_THEME_DARK";W=_.vh()?_.Ru()?"os-dark":"os-light":W?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:W,cookiesEnabled:_.lq()}};
_.d.detached=function(){_.iX(this.guideInnerContent);_.sF.cancelJob(L3);L3=0;_.sF.cancelJob(hQ);hQ=0;_.n12(Kpg);Kpg.length=0;PqD=_.b62=null;_.Ae().dispose();_.e("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.NJ(_.$G.getInstance(),azN.playlistHandlerActionMap,azN.JSC$28442_clientRoot);_.NJ(_.$G.getInstance(),J0N.downloadManagerActionMap,J0N.JSC$28746_clientRoot);_.NJ(_.$G.getInstance(),MZP.feedbackCollectorActionMap,MZP.JSC$28741_clientRoot);
for(var W=_.S(sL1.eventListeners),O=W.next();!O.done;O=W.next()){var b=_.S(O.value);O=b.next().value;b=b.next().value;b=_.S(b);for(var T=b.next();!T.done;T=b.next()){var L=_.S(T.value);T=L.next().value;L=L.next().value;O.removeEventListener(T,L)}}_.NJ(_.$G.getInstance(),sL1.autonavPauseActionMap,sL1.JSC$17732_clientRoot)};
_.d.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Xt().getFlag(186)};
_.d.computeIsInlinePreviewEnabled=function(W,O,b){return!b&&_.fIU({miniplayerIsActive:W,miniplayerPlaybackState:O})};
_.d.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_FROSTED_GLASS_MODE",payload:!_.e("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"}))};
_.d.computeIsFrostedGlassDisabled=function(W,O,b,T){return W||O||b||T&&_.e("web_frosted_glass_disable_watch")};
_.d.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.e("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.d.computeIsHomePage=function(W,O){if(!W||O==null||!O.endpoint)return!1;var b;return((b=_.P(O.endpoint,_.wE))==null?void 0:b.browseId)==="FEwhat_to_watch"};
_.d.updateIsChannelOrPlaylistPage=function(){if(_.e("web_frosted_glass")){var W,O,b=(O=(W=_.iq().resolve(_.OT(_.cs)))==null?void 0:W.getCurrentPage())==null?void 0:O.pageSubtype;this.isChannelOrPlaylistPage=b?["channel","channels","playlist"].includes(b):!1}};
_.d.scheduleFrostedGlassInitialization=function(){var W=this;_.e("web_frosted_glass")&&_.BH().parkOrScheduleJob(function(){W.isFrostedGlassInitialized=!0},0,_.sG(["eocs",
"cr"]),300)};
_.d.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.Qlv(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.Tc({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.d.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kw5(!0))};
_.d.onYtSignalActionRequestPersistentStorage=function(){if(!_.e("request_persistent_storage_killswitch")){var W=_.iq().resolve(_.nmU);W.cachedPersistStatePromise||(W.cachedPersistStatePromise=tlP())}};
_.d.handleYtChannelCreationFormEndpoints=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.d.handleShowEngagementPanelEndpoint=function(W){W&&this.ytComponentBehavior.resolveCommand(W)};
_.d.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(Kw5(!1))};
_.d.initIconDefs=function(W,O,b){var T=document.createElement("iron-iconset-svg");T.name=W;W=document.createElementNS("http://www.w3.org/2000/svg","svg");T.appendChild(W);W.appendChild(O);if(b)for(var L in b)T[L]=b[L];document.body.appendChild(T);return T};
_.d.onWindowResized=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var W=_.nY7.getInstance();W.documentWidth_=document.body.clientWidth;$d7(W)};
_.d.onWindowScrolled=function(){var W=_.iq().resolve(_.cs).getCurrentPage();if(W!=null&&W.getScrollTop){var O=this.ytdReduxBehavior,b=O.dispatch;W=W.getScrollTop()<=0;b.call(O,_.Tc({type:"SET_SCROLL_AT_TOP",payload:W}))}};
_.d.guideIsVisibleButNotPersistentSelectorChanged=function(){var W=_.iq().resolve(_.cs).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=W.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"),
W.setScrollTop(this.guideScrollTop));_.TU(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.d.getCurrentPageScrollableElementType=function(){var W=_.iq().resolve(_.cs).getCurrentPage();if(W&&W.getPageScrollingElement())return W.getPageScrollingElement().nodeName};
_.d.observeGuideVisibility=function(){var W=_.nY7.getInstance(),O=this.miniGuideVisible;W.guidePersistentAndVisible_=this.guidePersistentAndVisible;W.miniGuideVisible_=O;$d7(W)};
_.d.handleEduDismissAction=function(W){W&&W.eduDismissAction&&(_.jx(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.DT$.getInstance(),_.VR.set(W.eduDismissAction.key+"-dismissed",!0))};
_.d.handleEduImpressionAction=function(W){if(W&&W.eduImpressionAction){var O=_.DT$.getInstance();W=W.eduImpressionAction.key;O.JSC$10906_eduDisplayedThisLoad_[_.rzv[W].setKey||W]=!0;_.VR.set(W+"-impression",parseInt(_.VR.get(W+"-impression")||0,10)+1)}};
_.d.onYtSignalActionConfirmMentionsEdu=function(){_.jx(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.uh.getInstance();_.Mg.set("edu-dismissed",!0)};
_.d.onYtSignalActionRecordMentionsEduImpression=function(){_.uh.getInstance();var W=_.Mg.set,O=parseInt(_.Mg.get("edu-impressions"),10);W.call(_.Mg,"edu-impressions",(isFinite(O)?O:0)+1)};
_.d.onYtPageManagerAttached=function(W){var O;((O=_.Md(W))==null?void 0:O.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.d.onInvokeInstrumentManagerAction=function(W,O){AoU(O,W)};
_.d.updateIconSet=function(){var W=this.hostElement.querySelector("#masthead");if(W){var O=_.T0(W),b=O.querySelector("g#yt-logo-updated");b&&(W=document.createElementNS("http://www.w3.org/2000/svg","defs"),W.appendChild(b.cloneNode(!0)),(O=O.querySelector("g#yt-logo-red-updated"))&&W.appendChild(O.cloneNode(!0)),this.initIconDefs("yt-logos-ext",W))}};
_.d.updateMastheadData=function(){var W=this,O,b,T,L,h;return _.I(function(Z){if(Z.nextAddress==1){O=W.data;b=W.hostElement.querySelector("#masthead");if(!b)return Z.return();_.My(W,function(){b.data=W.topbarData});
if(!W.get("response.topbar",O)||W.get("response.topbar.responseContext.maxAgeSeconds",O)===0)return Z.jumpTo(0);if(T=_.iq().resolve(_.GQ))return _.Y(Z,T(),6);L=_.iq().resolve(_.TO);return _.Y(Z,L.put("service:topbar:fallback",new _.L1({innertubeResponse:W.get("response.topbar",O)})),0)}return(h=Z.yieldResult)?_.Y(Z,h.put("service:topbar:fallback",new _.L1({innertubeResponse:W.get("response.topbar",O)})),0):Z.jumpTo(0)})};
_.d.computeTopbarData=function(W){if(!W)return null;var O;return this.isShortsPage&&this.topbarData&&!_.P((O=W.response)==null?void 0:O.topbar,s3U)?this.topbarData:W.response&&"topbar"in W.response?_.P(W.response.topbar,s3U)||null:null};
_.d.onSetTheaterModeEnabled=function(W,O){this.isTheaterModeSession=O.enabled;this.setTheaterModeStyles(O.enabled)};
_.d.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.d.onDarkModeToggledAction=function(){var W=_.mp(window.location.href);if(!_.Y6T(W)){(W=!!_.NC(window.location.href).themeRefresh)&&_.z5(new _.pu("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!W){ovU();W={themeRefresh:1};var O=_.iq().resolve(_.cs);if(O.isOnWatch()){var b,T;O=((b=O.getPlayerFromWatch())==null?void 0:(T=b.getPlayer())==null?void 0:T.getCurrentTime())||0;O>=1&&(W.time_continue=Math.floor(O))}_.lq()||_.K_()!=="USER_INTERFACE_THEME_DARK"||(W.theme="dark");_.GF(_.MC(window.location.href,
W))}_.e("web_appshell_refresh_trigger")&&_.i1.caches&&this.refreshAppShellResponse();b=_.fq(window.location.href);_.SU(_.iq().resolve(_.Zs),_.cb(b,"theme"))}};
_.d.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.d.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.d.onPlayerFullscreen=function(W){_.y3();this.playerFullscreen=W};
_.d.setRestrictedMode=function(W){var O=_.Xt();_.UO(0,58,W);O.save();_.iq().resolve(_.wB).reload()};
_.d.onPageChanged=function(W){W.detail.newPageType==="ytd-watch-flexy"||W.detail.newPageType==="ytd-watch-fixie"||W.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.vR("WEB_PAGE_TYPE_WATCH")):W.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.vR("WEB_PAGE_TYPE_SHORTS")):W.detail.newPageType==="ytd-browse"&&W.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.vR("WEB_PAGE_TYPE_MINI_APP")):_.e("web_frosted_glass")&&W.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.vR("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.vR("WEB_PAGE_TYPE_UNKNOWN"));W.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.d.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.d.onGuideToggleTap=function(){_.bX(this.hostElement,"yt-guide-toggle")};
_.d.onGuideToggleHover=function(){_.bX(this.hostElement,"yt-guide-hover")};
_.d.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.d.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d.setMastheadTheme=function(){var W=_.T0(this.hostElement).querySelector("#masthead");W&&(W.dark=W.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),W.isDarkThemeForced=!1)};
_.d.onRequestPanelModeChange=function(W,O){this.hideHeaderShadow=O.mode!=="seamed"};
_.d.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.d.onDrawerIronSelect=function(W){_.Md(W).id==="guide"&&this.processDrawerIronSelect()};
_.d.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var W="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(W="opened"));_.bX(this.hostElement,"yt-autonav-pause-guide-"+W)};
_.d.onAddElementToApp=function(W){_.Q(this.hostElement).appendChild(W.detail)};
_.d.onThrottledScroll=function(){var W=_.iq().resolve(_.cs).getCurrentPage();W&&(this.scrollAtTop=W.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.d.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.d.setFullscreen=function(){if(_.e("external_fullscreen")||!this.isWatchPage){var W=_.e("kevlar_fullerscreen_root_only_killswitch")?!!_.y3():!!_.y3()&&_.y3()===document.documentElement;W=(this.isWatchPage||_.e("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(W||this.isFullWindowSession);this.fullscreen!==W&&((this.fullscreen=W)&&_.TU(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.uv().dispatch(_.RhR(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.jx(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.d.setFullscreenLoggingForShorts=function(W){var O,b,T;return _.I(function(L){if(L.nextAddress==1)return _.Y(L,(O=_.ya())==null?void 0:O.getPlayerPromise(),2);b=L.yieldResult;(T=b)==null||T.setAppFullscreen(W);_.aD(L)})};
_.d.updateMastheadCssHeight=function(){var W=this.mastheadHeight;this.fullscreen&&(W=0);_.Sl(this.hostElement,{"--ytd-masthead-height":W+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.d.updateNetworkStatusBannerDisplayStatus=function(){var W="unset";this.fullscreen&&(W="none");_.Sl(this.hostElement,{"--ytd-network-status-banner-display":W})};
_.d.updateNetworkStatusBannerCssHeight=function(){var W="unset";this.fullscreen&&(W="0px");_.Sl(this.hostElement,{"--ytd-network-status-banner-max-height":W})};
_.d.updateScrollAndMasthead=function(W,O,b,T){this.iMaxTheaterMode||(T=!1);var L=_.iq().resolve(_.cs).getCurrentPage();W||O||T?(document.body.classList.add("no-scroll"),L.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.Ii(this,this.onScroll)),L.setScrollTop(0),_.Sl(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.og()+"px"})):b?_.bX(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.bX(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
L.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.Ii(this,this.onScroll)));this.mastheadHidden=W||O||b;this.updateMastheadCssHeight();_.e("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.d.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.d.onYtNavigateAction=function(W){W=this.get("navigateAction.endpoint",W);_.bX(this.hostElement,"yt-navigate",{endpoint:W})};
_.d.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var W=document.createElement("yt-create-family-dialog");_.Q(this.hostElement).appendChild(W);this.hasCreateFamilyDialog=!0}};
_.d.onSetPushNotificationsEnabledCommand=function(W){var O=this,b=_.P(W,kg1);b&&typeof b.enabled==="boolean"&&(Notification.permission!=="granted"?jaP().then(function(){Notification.permission==="granted"?(Hu1(!b.enabled).then(VJZ),b.successAction&&_.da(O.hostElement,[b.successAction])):b.failureAction&&_.da(O.hostElement,[b.failureAction])}):(Hu1(!b.enabled).then(VJZ),b.successAction&&_.da(this.hostElement,[b.successAction])))};
_.d.onYtSignalActionEnableChromeNotifications=function(){Tvk(!0)};
_.d.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.P(this.topbarData.hotkeyDialog,Dvg)}}})};
_.d.onYtSignalActionShowKeyboardShortcutDialog=function(){_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.d.onYtEndpointChangeHandler=function(W,O){var b=_.j6(_.EZ);b.pendingPrefetchJob_&&(O=!(!O||O.autonav!="1"),b.pendingPrefetchJob_.resolve(W&&_.jVi(W)?_.TwP(W,O):""),b.pendingPrefetchJob_=null);_.jx(this.hostElement,"yt-pause-active-page-context");_.jx(this.hostElement,"ytd-log-youthere-nav");_.jx(this.hostElement,"yt-prepare-page-dispose")};
_.d.handleCommandWithCommandHandler=function(W,O){_.ax.instance.resolveCommand(W,{form:{element:O}})};
_.d.onYtTimedCommand=function(W){var O=this;W=_.P(W,Uv7);var b=W.command;b&&_.pp(_.sF,function(){var T=_.P(b,_.S_N);T?(_.ax.instance.resolveCommand(b),O.maybeLogGetAnswerRequestTick(T)):_.Sx(O.hostElement,[b],O.hostElement)},W.timeoutMs||0)};
_.d.maybeLogGetAnswerRequestTick=function(W){W&&W.isFirstRequest&&(_.sO("search_overview_answer"),_.Bg("so_rq",void 0,"search_overview_answer"))};
_.d.onYtSignalActionSkipNavigation=function(){var W=_.iq().resolve(_.cs).getCurrentPage();_.JS(W)};
_.d.onYtSignalActionCopyDebugData=function(){XO1()};
_.d.handleEntityUpdateCommand=function(W){_.wm(_.P(W,_.huv).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.d.logFlowLoggingEventCommand=function(W){if(W=_.P(W,_.tZ8))if(W.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var O=W.flowEventNamespace,b=W.flowEventType,T=W.flowType;T&&O&&b&&_.ceX(_.Zr(O,b,W.flowEventMetadata),T)}else{O=_.au();b=W.flowEventNamespace;T=W.flowEventType;var L=W.flowType;L&&b&&T&&_.Iu(O,_.Zr(b,T,W.flowEventMetadata),L,W.flowNonce)}};
_.d.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.d.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.d.onTouchStart=function(){var W=_.XX();_.Bb()&&_.fd(W.JSC$11133_screenManager,{visualElement:W.ve})};
_.d.handleSelectLanguageCommand=function(W){if(W=_.P(W,g8B).hl){var O=_.Xt();O.set("hl",W);O.save();_.iq().resolve(_.wB).reload()}};
_.d.handleConfirmDialogEndpoint=function(W){(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W)};
_.d.handleOpenPopupNavigationEndpoints=function(W,O){_.e("web_button_rework")&&(W=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(W))&&this.ytOpenPopupBehavior.openPopup(W,O)};
_.d.handleSaveCommandToSessionStorage=function(W){if(W=_.P(W,_.TY9)){var O=W.key;O&&W.command&&window.sessionStorage.setItem(O,JSON.stringify(W.command))}};
_.d.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(W){W&&W.active&&W.active.postMessage({type:"refresh_shell"})}).catch(function(W){W.name!=="SecurityError"&&_.Dt(W)})};
_.d.onDeviceThemeChanged=function(){var W=_.Ru();_.UO(_.Xt(),185,W);_.Xt().save()};
_.d.handleYtRegisterPromoCommand=function(W){if(_.P(W,Q3P)){var O=_.iq().resolve(_.cs).getCurrentPage()||this.hostElement;nPB().registerPromoCommand(_.P(W,Q3P),O)}};
_.d.onYtNavigateHomeAction=function(){if(!_.e("kevlar_miniplayer_navigate_home_from_app_killswitch")){var W,O,b,T,L=(T=(W=this.topbarData)==null?void 0:(O=W.logo)==null?void 0:(b=O.topbarLogoRenderer)==null?void 0:b.endpoint)!=null?T:_.aT;this.ytComponentBehavior.resolveCommand(L)}};
_.d.onYtLocationCollectionCommand=function(W){VKg(_.P(W,Hg9))};
_.d.onYtGetLocationCommand=function(W){ssN(_.P(W,GgR),this)};
_.d.updateRenderGuideFromBinding=function(W){this.renderGuide=W.detail.value};
_.d.updateGuidePersistentAndVisibleFromBinding=function(W){this.guidePersistentAndVisible=W.detail.value};
_.d.updateMiniGuideVisibleFromBinding=function(W){this.miniGuideVisible=W.detail.value};
_.d.onThemeSelected=function(W,O){var b=_.Xt(),T=W||O?W:_.Ru(),L=(T&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!T&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.Y6T(_.mp(window.location.href));_.UO(0,165,W);_.UO(0,174,O);b.save();L&&_.jx(this.hostElement,"yt-dark-mode-toggled-action",[T]);_.jx(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.d.getCurrentTheme=function(){return _.vh()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.K_()};
_.d.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.d.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.d.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.d.handleShowConsentPrimitive=function(W){var O=this,b,T;return _.I(function(L){if(L.nextAddress==1){try{b=(T=_.ya())==null?void 0:T.getPlayerPromise()}catch(h){}return _.Y(L,Z_N(W,b),2)}_.jx(O.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.aD(L)})};
_.d.handleSelectActiveIdentityEndpointInternal=function(W){_.n_();W=_.P(W,_.RFL);if(W!=null&&W.supportedTokens){W=_.S(W.supportedTokens);for(var O=W.next();!O.done;O=W.next())O=O.value,O.accountSigninToken&&_.GF(O.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.d.handleUpdatePermissionRoleCommand=function(W){if(W=_.P(W,_.PZU)){var O;this.hasDelegation=!((O=_.P(W.renderer,_.ejv))==null||!O.status)}};
_.d.registerViewTransitionTasks=function(){var W=this,O=_.iq().resolve(_.OT(_.Aw));if(O){var b,T=(b=this.guide)==null?void 0:b.querySelector("#scrim"),L,h=(L=this.guide)==null?void 0:L.querySelector("#contentContainer");T&&h&&(b={beforeTransition:function(){var Z;(Z=W.guide)!=null&&Z.persistent||(T.style.viewTransitionName="app-drawer-scrim",h.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var Z;(Z=W.guide)!=null&&Z.persistent||(T.style.viewTransitionName="",h.style.viewTransitionName="")}},JQ(O,"slide",b),JQ(O,"zoom",b))}};
_.Jq.Object.defineProperties(HI.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.e("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Jq.Object.defineProperties(HI,{template:{configurable:!0,enumerable:!0,get:function(){if(f18===void 0){var W=document.createElement("template");_.v(W,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
W.content.insertBefore(_.c().content.cloneNode(!0),W.content.firstChild);f18=W}W=f18;return W}}});
HI.prototype.onOpenHotkeyDialog=HI.prototype.onOpenHotkeyDialog;HI.prototype.setFullscreen=HI.prototype.setFullscreen;HI.prototype.onAddElementToApp=HI.prototype.onAddElementToApp;HI.prototype.onDrawerIronSelect=HI.prototype.onDrawerIronSelect;HI.prototype.onGuideOpenButtonHover=HI.prototype.onGuideOpenButtonHover;HI.prototype.onRequestPanelModeChange=HI.prototype.onRequestPanelModeChange;HI.prototype.onPageDataUpdated=HI.prototype.onPageDataUpdated;HI.prototype.onPageChanged=HI.prototype.onPageChanged;
HI.prototype.onSetTheaterModeEnabled=HI.prototype.onSetTheaterModeEnabled;HI.prototype.updateMastheadData=HI.prototype.updateMastheadData;HI.prototype.onYtPageManagerAttached=HI.prototype.onYtPageManagerAttached;HI.prototype.observeGuideVisibility=HI.prototype.observeGuideVisibility;HI.prototype.guideIsVisibleButNotPersistentSelectorChanged=HI.prototype.guideIsVisibleButNotPersistentSelectorChanged;HI.prototype.isInlinePreviewEnabledChanged=HI.prototype.isInlinePreviewEnabledChanged;
HI.prototype.isWatchPageChanged=HI.prototype.isWatchPageChanged;HI.prototype.dispatchFrostedGlassMode=HI.prototype.dispatchFrostedGlassMode;_.t([_.D(_.sh),_.N("design:type",Object)],HI.prototype,"ytdReduxBehavior",void 0);_.t([_.D(_.wo.YtEventForwardingBehavior),_.N("design:type",Object)],HI.prototype,"ytEventForwardingBehavior",void 0);_.t([_.D(_.aV.YtOpenPopupBehavior),_.N("design:type",Object)],HI.prototype,"ytOpenPopupBehavior",void 0);
_.t([_.D(_.WP.YtActionHandlerBehavior),_.N("design:type",Object)],HI.prototype,"ytActionHandlerBehavior",void 0);_.t([_.D({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.$G.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.e("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var W;((W=this.actionRouterNode.hostElement)!=null?W:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(W){this.actionRouter_.handleAction(W.detail)}}),
_.N("design:type",Object)],HI.prototype,"ytActionRouterBehavior",void 0);_.t([_.D(MnD.YtdAppBehavior),_.N("design:type",Object)],HI.prototype,"ytdAppBehavior",void 0);_.t([_.D(_.mx.YtEndpointBehavior),_.N("design:type",Object)],HI.prototype,"ytEndpointBehavior",void 0);_.t([_.D(VZg.YtEndpointHandlerWithYpcBehavior),_.N("design:type",Object)],HI.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.t([_.D(GYP.YtLogYpcFlowCommandsBehavior),_.N("design:type",Object)],HI.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.t([_.D(_.F.YtRendererBehavior),_.N("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);_.t([_.D(_.x_.YtComponentBehavior),_.N("design:type",Object)],HI.prototype,"ytComponentBehavior",void 0);_.t([_.C({selector:_.UI9}),_.N("design:type",Object)],HI.prototype,"tabGesturesIsActive",void 0);_.t([_.C(),_.N("design:type",Boolean)],HI.prototype,"renderGuide",void 0);
_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"guidePersistentAndVisible",void 0);_.t([_.C({selector:_.XDZ}),_.N("design:type",Boolean)],HI.prototype,"guideIsVisibleButNotPersistent",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"standalone",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"miniGuideVisible",void 0);
_.t([_.C({selector:_.EVX}),_.N("design:type",Number)],HI.prototype,"miniplayerPlaybackState",void 0);_.t([_.C({selector:_.BS,reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"miniplayerIsActive",void 0);_.t([_.C({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.N("design:type",Boolean)],HI.prototype,"isInlinePreviewEnabled",void 0);_.t([_.C(),_.N("design:type",Boolean)],HI.prototype,"isInlinePreviewDisabled",void 0);
_.t([_.C({reflectToAttribute:!0,value:function(){return _.qC("START_IN_FULL_WINDOW_MODE")}}),
_.N("design:type",Boolean)],HI.prototype,"mastheadHidden",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"playerFullscreen",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HI.prototype,"deprecateFullerscreenUi",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"fullscreen",void 0);_.t([_.C({value:!1,reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"hideHeaderShadow",void 0);
_.t([_.C({value:{GUIDE_ALT_LABEL:_.EO("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.N("design:type",Object)],HI.prototype,"menuStrings",void 0);_.t([_.C({computed:"computeTopbarData(data)"}),_.N("design:type",Object)],HI.prototype,"topbarData",void 0);_.t([_.C({selector:_.rm}),_.N("design:type",Boolean)],HI.prototype,"isWatchPage",void 0);_.t([_.C({selector:_.am8,reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"isShortsPage",void 0);
_.t([_.C({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.N("design:type",Boolean)],HI.prototype,"isMiniAppPage",void 0);_.t([_.C({selector:function(W){return W.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.N("design:type",Boolean)],HI.prototype,"isBrowsePage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Boolean)],HI.prototype,"scrolling",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HI.prototype,"hasDelegation",void 0);_.t([_.C({reflectToAttribute:!0,value:!1}),_.N("design:type",Boolean)],HI.prototype,"guideScrolledByTouch",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HI.prototype,"darkerDarkTheme",void 0);
_.t([_.C(),_.N("design:type",Object)],HI.prototype,"isFrostedGlassInitialized",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HI.prototype,"frostedGlassExp",void 0);_.t([_.C({selector:function(W){return W.ui.chipBarIsSticky}}),
_.N("design:type",Boolean)],HI.prototype,"chipBarIsSticky",void 0);_.t([_.C({computed:"computeIsHomePage(isBrowsePage, data)"}),_.N("design:type",Boolean)],HI.prototype,"isHomePage",void 0);_.t([_.C({reflectToAttribute:!0}),_.N("design:type",Object)],HI.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.t([_.C(),_.N("design:type",Object)],HI.prototype,"ephemeralActionsEnabled",void 0);_.t([_.ux("guide"),_.N("design:type",Object)],HI.prototype,"guide",void 0);
_.t([_.ux("guide-service"),_.N("design:type",Dhk)],HI.prototype,"guideService",void 0);_.t([_.ux("guide-inner-content"),_.N("design:type",HTMLDivElement)],HI.prototype,"guideInnerContent",void 0);_.t([_.C({selector:_.A6h}),_.N("design:type",String)],HI.prototype,"frostedGlassMode",void 0);
_.t([_.m5("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"dispatchFrostedGlassMode",null);_.t([_.C({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.N("design:type",Object)],HI.prototype,"isFrostedGlassDisabled",void 0);
_.t([_.m5("isWatchPage"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"isWatchPageChanged",null);_.t([_.x("isHomePage","chipBarIsSticky"),_.N("design:type",Boolean),_.N("design:paramtypes",[])],HI.prototype,"applyFrostedGlassToChipBar",null);_.t([_.C(),_.N("design:type",Object)],HI.prototype,"isChannelOrPlaylistPage",void 0);
_.t([_.Ul("isInlinePreviewEnabled"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"isInlinePreviewEnabledChanged",null);_.t([_.m5("guideIsVisibleButNotPersistent"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.t([_.m5("guidePersistentAndVisible","miniGuideVisible"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"observeGuideVisibility",null);_.t([_.ai("attached"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],HI.prototype,"onYtPageManagerAttached",null);_.t([_.m5("data"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype",Promise)],HI.prototype,"updateMastheadData",null);
_.t([_.ai("yt-set-theater-mode-enabled"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent,Object]),_.N("design:returntype")],HI.prototype,"onSetTheaterModeEnabled",null);_.t([_.ai("yt-page-type-changed"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],HI.prototype,"onPageChanged",null);_.t([_.ai("yt-page-data-updated"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"onPageDataUpdated",null);
_.t([_.ai("yt-request-panel-mode-change"),_.N("design:type",Function),_.N("design:paramtypes",[Event,Object]),_.N("design:returntype")],HI.prototype,"onRequestPanelModeChange",null);_.t([_.ai("yt-guide-hover"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"onGuideOpenButtonHover",null);_.t([_.ai("app-drawer-transitioned"),_.N("design:type",Function),_.N("design:paramtypes",[Event]),_.N("design:returntype")],HI.prototype,"onDrawerIronSelect",null);
_.t([_.ai("yt-add-element-to-app"),_.N("design:type",Function),_.N("design:paramtypes",[CustomEvent]),_.N("design:returntype")],HI.prototype,"onAddElementToApp",null);_.t([_.ai("yt-set-fullerscreen-styles"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"setFullscreen",null);_.t([_.ai("yt-open-hotkey-dialog"),_.N("design:type",Function),_.N("design:paramtypes",[]),_.N("design:returntype")],HI.prototype,"onOpenHotkeyDialog",null);
HI=_.t([_.G({is:"ytd-app"})],HI);_.BH().processSignal("eor");
_.DN();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
